@rhinestone/deposit-modal 0.0.0-dev-20260611141108 → 0.0.0-dev-20260617120607

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 (29) hide show
  1. package/dist/{DepositModalReown-QVVFHL2N.cjs → DepositModalReown-KFTMS2WX.cjs} +9 -9
  2. package/dist/{DepositModalReown-O4VWVJYG.mjs → DepositModalReown-PC7EX5VK.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-GLOHYSUG.mjs → WithdrawModalReown-BE23LUMT.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-3GK2F2AF.cjs → WithdrawModalReown-Z2YF2FSJ.cjs} +8 -8
  5. package/dist/{chunk-7KHWMSID.cjs → chunk-3MXWIYAT.cjs} +16 -6
  6. package/dist/{chunk-NWCRGZG3.mjs → chunk-3PVDRSJ7.mjs} +36 -52
  7. package/dist/{chunk-MMPRPDLS.cjs → chunk-7MP2UWIQ.cjs} +349 -365
  8. package/dist/{chunk-MILJQWPT.cjs → chunk-ABVRVW3P.cjs} +133 -8
  9. package/dist/{chunk-7AADPL52.cjs → chunk-AE5LHTPM.cjs} +121 -101
  10. package/dist/{chunk-TQ2AYMWS.mjs → chunk-F7P4MV72.mjs} +1 -1
  11. package/dist/{chunk-BAEB5AFZ.mjs → chunk-FJWLC4AM.mjs} +1 -1
  12. package/dist/{chunk-E25DOT37.mjs → chunk-GKC22JC4.mjs} +217 -103
  13. package/dist/{chunk-R5CPOBCF.cjs → chunk-NRNJAQUA.cjs} +4 -4
  14. package/dist/{chunk-GQCEQZGF.cjs → chunk-OQVLEVNR.cjs} +256 -142
  15. package/dist/{chunk-AJHFNHG3.cjs → chunk-UEKPBRBY.cjs} +3 -3
  16. package/dist/{chunk-KAYBLYUS.mjs → chunk-UFKFSGT3.mjs} +14 -4
  17. package/dist/{chunk-RVBLNCWE.mjs → chunk-WCIGOV34.mjs} +32 -12
  18. package/dist/{chunk-6YRDD462.mjs → chunk-WJX3TJFK.mjs} +135 -10
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.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/withdraw.cjs +5 -5
  28. package/dist/withdraw.mjs +4 -4
  29. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkR5CPOBCFcjs = require('./chunk-R5CPOBCF.cjs');
10
+ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
11
11
 
12
12
 
13
13
 
@@ -60,12 +60,12 @@ var _chunkR5CPOBCFcjs = require('./chunk-R5CPOBCF.cjs');
60
60
 
61
61
 
62
62
 
63
- var _chunkGQCEQZGFcjs = require('./chunk-GQCEQZGF.cjs');
64
63
 
65
64
 
66
- var _chunkAJHFNHG3cjs = require('./chunk-AJHFNHG3.cjs');
65
+ var _chunkOQVLEVNRcjs = require('./chunk-OQVLEVNR.cjs');
67
66
 
68
67
 
68
+ var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
69
69
 
70
70
 
71
71
 
@@ -93,7 +93,9 @@ var _chunkAJHFNHG3cjs = require('./chunk-AJHFNHG3.cjs');
93
93
 
94
94
 
95
95
 
96
- var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
96
+
97
+
98
+ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
97
99
 
98
100
  // src/DepositModal.tsx
99
101
 
@@ -140,13 +142,13 @@ function AssetSelectStep({
140
142
  const [error, setError] = _react.useState.call(void 0, null);
141
143
  const defaultAssetId = _react.useMemo.call(void 0, () => {
142
144
  if (!defaultSourceChain || !defaultSourceToken) return null;
143
- return _chunkGQCEQZGFcjs.getAssetId.call(void 0, {
145
+ return _chunkOQVLEVNRcjs.getAssetId.call(void 0, {
144
146
  chainId: defaultSourceChain,
145
147
  token: defaultSourceToken
146
148
  });
147
149
  }, [defaultSourceChain, defaultSourceToken]);
148
- const onTotalBalanceComputedRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
149
- const onAssetsLoadedRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onAssetsLoaded);
150
+ const onTotalBalanceComputedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
151
+ const onAssetsLoadedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onAssetsLoaded);
150
152
  _react.useEffect.call(void 0, () => {
151
153
  let active = true;
152
154
  function emitAssetsUpdate(currentAssets) {
@@ -167,11 +169,11 @@ function AssetSelectStep({
167
169
  try {
168
170
  const portfolio = await service.fetchPortfolio(address);
169
171
  if (!active) return;
170
- const portfolioAssets = _chunkGQCEQZGFcjs.portfolioToAssets.call(void 0, portfolio.tokens);
172
+ const portfolioAssets = _chunkOQVLEVNRcjs.portfolioToAssets.call(void 0, portfolio.tokens);
171
173
  setAssets(portfolioAssets);
172
174
  emitAssetsUpdate(portfolioAssets);
173
175
  const hasNative = portfolioAssets.some(
174
- (asset) => asset.token.toLowerCase() === _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
176
+ (asset) => asset.token.toLowerCase() === _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
175
177
  );
176
178
  if (!hasNative) {
177
179
  const nativeAssets = await fetchNativeAssets(
@@ -243,7 +245,7 @@ function AssetSelectStep({
243
245
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
244
246
  const numeric = Number(raw);
245
247
  if (!Number.isFinite(numeric)) return raw;
246
- return _chunkGQCEQZGFcjs.tokenFormatter.format(numeric);
248
+ return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
247
249
  } catch (e3) {
248
250
  return asset.balance;
249
251
  }
@@ -251,20 +253,20 @@ function AssetSelectStep({
251
253
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
252
254
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
253
255
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
254
- _chunkGQCEQZGFcjs.BodyHeader,
256
+ _chunkOQVLEVNRcjs.BodyHeader,
255
257
  {
256
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}),
258
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
257
259
  title: "Your assets",
258
260
  subtitle: "Select source assets to transfer"
259
261
  }
260
262
  ),
261
263
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
262
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, { className: "rs-text-tertiary" }),
264
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-text-tertiary" }),
263
265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
264
266
  ] }),
265
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
267
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
266
268
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
267
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, { className: "rs-empty-icon" }),
269
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, { className: "rs-empty-icon" }),
268
270
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
269
271
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
270
272
  address.slice(0, 6),
@@ -284,9 +286,9 @@ function AssetSelectStep({
284
286
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
285
287
  const isSelected = selectedAssetId === asset.id;
286
288
  const tokenAmount = formatBalance(asset);
287
- const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
288
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
289
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
289
+ const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
290
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
291
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
290
292
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
291
293
  "button",
292
294
  {
@@ -302,7 +304,7 @@ function AssetSelectStep({
302
304
  "img",
303
305
  {
304
306
  src: chainIcon,
305
- alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
307
+ alt: _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
306
308
  }
307
309
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
308
310
  "span",
@@ -321,7 +323,7 @@ function AssetSelectStep({
321
323
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
322
324
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
323
325
  "on ",
324
- _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
326
+ _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
325
327
  ] })
326
328
  ] }),
327
329
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -331,14 +333,14 @@ function AssetSelectStep({
331
333
  ] })
332
334
  ] })
333
335
  ] }),
334
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkGQCEQZGFcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
336
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
335
337
  ]
336
338
  },
337
339
  asset.id
338
340
  );
339
341
  }) }),
340
342
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
341
- _chunkGQCEQZGFcjs.Button,
343
+ _chunkOQVLEVNRcjs.Button,
342
344
  {
343
345
  onClick: () => selectedAsset && onContinue(selectedAsset),
344
346
  disabled: !selectedAsset,
@@ -347,17 +349,17 @@ function AssetSelectStep({
347
349
  }
348
350
  )
349
351
  ] }),
350
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
352
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
351
353
  ] });
352
354
  }
353
355
  async function fetchNativeAssets(address, publicClient, existing) {
354
356
  const existingIds = new Set(existing.map((asset) => asset.id));
355
357
  const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
356
358
  if (!connectedChainId) return [];
357
- if (!_chunkMILJQWPTcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
358
- const id = _chunkGQCEQZGFcjs.getAssetId.call(void 0, {
359
+ if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
360
+ const id = _chunkOQVLEVNRcjs.getAssetId.call(void 0, {
359
361
  chainId: connectedChainId,
360
- token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
362
+ token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
361
363
  });
362
364
  if (existingIds.has(id)) return [];
363
365
  try {
@@ -366,7 +368,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
366
368
  {
367
369
  id,
368
370
  chainId: connectedChainId,
369
- token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS,
371
+ token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS,
370
372
  symbol: "ETH",
371
373
  name: "Ethereum",
372
374
  decimals: 18,
@@ -527,8 +529,8 @@ function AmountStep({
527
529
  const chainMismatch = Boolean(
528
530
  _optionalChain([walletClient, 'optionalAccess', _16 => _16.chain, 'optionalAccess', _17 => _17.id]) && walletClient.chain.id !== asset.chainId
529
531
  );
530
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
531
- const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, asset.symbol);
532
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
533
+ const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, asset.symbol);
532
534
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
533
535
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
534
536
  return tokenPriceUsdOverride;
@@ -552,7 +554,7 @@ function AmountStep({
552
554
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
553
555
  if (!balanceTarget || !publicClient) return;
554
556
  try {
555
- const bal = _chunkGQCEQZGFcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
557
+ const bal = _chunkOQVLEVNRcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
556
558
  address: asset.token,
557
559
  abi: _viem.erc20Abi,
558
560
  functionName: "balanceOf",
@@ -573,7 +575,7 @@ function AmountStep({
573
575
  hasAttemptedSwitch.current = true;
574
576
  switchChain(asset.chainId).catch((err) => {
575
577
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
576
- setError(_chunkGQCEQZGFcjs.formatUserError.call(void 0, raw));
578
+ setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
577
579
  });
578
580
  }
579
581
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -626,7 +628,7 @@ function AmountStep({
626
628
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
627
629
  const numeric = Number(raw);
628
630
  if (!Number.isFinite(numeric)) return raw;
629
- return _chunkGQCEQZGFcjs.tokenFormatter.format(numeric);
631
+ return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
630
632
  } catch (e8) {
631
633
  return "\u2026";
632
634
  }
@@ -645,7 +647,7 @@ function AmountStep({
645
647
  return null;
646
648
  }
647
649
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
648
- const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
650
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
649
651
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _20 => _20.maxDepositUsd]), () => ( null));
650
652
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
651
653
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -739,13 +741,13 @@ function AmountStep({
739
741
  };
740
742
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
741
743
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
742
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
743
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
744
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
745
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
744
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId);
745
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
746
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
747
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
746
748
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
747
749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
748
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}), title: "Wallet deposit" }),
750
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Wallet deposit" }),
749
751
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
750
752
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
751
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -765,13 +767,13 @@ function AmountStep({
765
767
  " available",
766
768
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
767
769
  " (~",
768
- _chunkGQCEQZGFcjs.currencyFormatter.format(balanceUsd),
770
+ _chunkOQVLEVNRcjs.currencyFormatter.format(balanceUsd),
769
771
  ")"
770
772
  ] })
771
773
  ] }),
772
774
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
773
775
  "Min. deposit ",
774
- _chunkGQCEQZGFcjs.currencyFormatter.format(minDepositUsd)
776
+ _chunkOQVLEVNRcjs.currencyFormatter.format(minDepositUsd)
775
777
  ] })
776
778
  ] })
777
779
  ] }),
@@ -812,13 +814,13 @@ function AmountStep({
812
814
  ] }),
813
815
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
814
816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
815
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkGQCEQZGFcjs.currencyFormatter.format(balanceAfterUsd) })
817
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkOQVLEVNRcjs.currencyFormatter.format(balanceAfterUsd) })
816
818
  ] })
817
819
  ] }),
818
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
819
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
820
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
821
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
820
822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
821
- _chunkGQCEQZGFcjs.Button,
823
+ _chunkOQVLEVNRcjs.Button,
822
824
  {
823
825
  onClick: handleContinue,
824
826
  fullWidth: true,
@@ -829,7 +831,7 @@ function AmountStep({
829
831
  }
830
832
  )
831
833
  ] }),
832
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
834
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
833
835
  ] });
834
836
  }
835
837
 
@@ -869,32 +871,28 @@ function ConfirmStep({
869
871
  _optionalChain([walletClient, 'optionalAccess', _25 => _25.chain, 'optionalAccess', _26 => _26.id]) && walletClient.chain.id !== asset.chainId
870
872
  );
871
873
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
872
- const targetSymbol = sameRoute ? asset.symbol : _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
873
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
874
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
875
- const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
876
- const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
877
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
878
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
879
- const formattedSendAmount = amount && !Number.isNaN(Number(amount)) ? Number(amount).toLocaleString("en-US", {
880
- minimumFractionDigits: 2,
881
- maximumFractionDigits: 6
882
- }) : "0";
883
- const formattedReceiveAmount = (() => {
884
- if (sameRoute) return formattedSendAmount;
885
- const dollarValue = Number(targetAmount);
886
- if (!Number.isFinite(dollarValue) || dollarValue <= 0)
887
- return formattedSendAmount;
888
- if (targetTokenPriceUsd !== null && targetTokenPriceUsd > 0) {
889
- const tokenAmount = dollarValue / targetTokenPriceUsd;
890
- return tokenAmount.toLocaleString("en-US", {
891
- minimumFractionDigits: 2,
892
- maximumFractionDigits: 6
893
- });
894
- }
895
- return formattedSendAmount;
874
+ const targetSymbol = sameRoute ? asset.symbol : _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
875
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId);
876
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
877
+ const sourceChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
878
+ const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
879
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
880
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
881
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkOQVLEVNRcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
882
+ const receiveDisplay = (() => {
883
+ if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
884
+ const usdValue = Number(targetAmount);
885
+ const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
886
+ const estimate = _chunkOQVLEVNRcjs.formatReceiveEstimate.call(void 0, {
887
+ sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
888
+ sourceSymbol: asset.symbol,
889
+ targetSymbol,
890
+ sourceAmountUsd,
891
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
892
+ });
893
+ if (estimate !== void 0) return estimate;
894
+ return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedSendAmount} ${asset.symbol}`;
896
895
  })();
897
- const receiveAmount = sameRoute ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
898
896
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeSponsored]), () => ( false));
899
897
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
900
898
  const feeDisplay = quote ? `$${quote.fees.totalUsd.toFixed(2)}` : null;
@@ -904,7 +902,7 @@ function ConfirmStep({
904
902
  hasAttemptedSwitch.current = true;
905
903
  switchChain(asset.chainId).catch((err) => {
906
904
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
907
- setError(_chunkGQCEQZGFcjs.formatUserError.call(void 0, raw));
905
+ setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
908
906
  });
909
907
  }
910
908
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -984,7 +982,7 @@ function ConfirmStep({
984
982
  const result = await executeTransfer(amountUnits);
985
983
  hash = result.txHash;
986
984
  resolvedSourceToken = result.sourceToken;
987
- } else if (_chunkGQCEQZGFcjs.isNativeAsset.call(void 0, asset)) {
985
+ } else if (_chunkOQVLEVNRcjs.isNativeAsset.call(void 0, asset)) {
988
986
  hash = await walletClient.sendTransaction({
989
987
  account,
990
988
  chain,
@@ -1005,7 +1003,7 @@ function ConfirmStep({
1005
1003
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1006
1004
  } catch (err) {
1007
1005
  const raw = err instanceof Error ? err.message : "Transfer failed";
1008
- const message = _chunkGQCEQZGFcjs.formatUserError.call(void 0, raw);
1006
+ const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
1009
1007
  setError(message);
1010
1008
  _optionalChain([onError, 'optionalCall', _30 => _30(message, "TRANSFER_ERROR")]);
1011
1009
  } finally {
@@ -1014,7 +1012,7 @@ function ConfirmStep({
1014
1012
  };
1015
1013
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1016
1014
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1017
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}), title: "Review deposit" }),
1015
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Review deposit" }),
1018
1016
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1019
1017
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1020
1018
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1048,11 +1046,7 @@ function ConfirmStep({
1048
1046
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1049
1047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1050
1048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1051
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
1052
- receiveAmount,
1053
- " ",
1054
- targetSymbol
1055
- ] }),
1049
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1056
1050
  targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
1057
1051
  ] })
1058
1052
  ] }),
@@ -1072,14 +1066,14 @@ function ConfirmStep({
1072
1066
  children: feeDisplay
1073
1067
  }
1074
1068
  ),
1075
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.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, _chunkGQCEQZGFcjs.InfoIcon, {}) }) })
1069
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.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, _chunkOQVLEVNRcjs.InfoIcon, {}) }) })
1076
1070
  ] })
1077
1071
  ] })
1078
1072
  ] }),
1079
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1080
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
1073
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1074
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
1081
1075
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1082
- _chunkGQCEQZGFcjs.Button,
1076
+ _chunkOQVLEVNRcjs.Button,
1083
1077
  {
1084
1078
  onClick: handleConfirm,
1085
1079
  loading: isSubmitting,
@@ -1090,7 +1084,7 @@ function ConfirmStep({
1090
1084
  }
1091
1085
  )
1092
1086
  ] }),
1093
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
1087
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
1094
1088
  ] });
1095
1089
  }
1096
1090
 
@@ -1113,9 +1107,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1113
1107
  var MAX_POLL_INTERVAL = 3e4;
1114
1108
  var BACKOFF_MULTIPLIER = 1.5;
1115
1109
  function isEventForTx(event, txHash) {
1116
- const eventTxHash = _chunkGQCEQZGFcjs.getEventTxHash.call(void 0, event);
1110
+ const eventTxHash = _chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event);
1117
1111
  if (!eventTxHash) return false;
1118
- return _chunkGQCEQZGFcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1112
+ return _chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1119
1113
  }
1120
1114
  function truncateHash(hash) {
1121
1115
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1165,7 +1159,7 @@ function formatBridgeFailedMessage(event) {
1165
1159
  }
1166
1160
  return "Bridge failed";
1167
1161
  }
1168
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1162
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1169
1163
  function DepositNotification({
1170
1164
  deposit,
1171
1165
  smartAccount,
@@ -1200,7 +1194,7 @@ function DepositNotification({
1200
1194
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1201
1195
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1202
1196
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1203
- const depositContextRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, {
1197
+ const depositContextRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, {
1204
1198
  amount,
1205
1199
  sourceChain,
1206
1200
  sourceToken: token,
@@ -1209,8 +1203,8 @@ function DepositNotification({
1209
1203
  targetToken,
1210
1204
  hasPostBridgeActions
1211
1205
  });
1212
- const onCompleteRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onComplete);
1213
- const onFailedRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onFailed);
1206
+ const onCompleteRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onComplete);
1207
+ const onFailedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onFailed);
1214
1208
  const handleComplete = _react.useCallback.call(void 0,
1215
1209
  (destTxHash) => {
1216
1210
  if (completedRef.current) return;
@@ -1311,11 +1305,11 @@ function DepositNotification({
1311
1305
  status,
1312
1306
  txHash
1313
1307
  ]);
1314
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1315
- const destExplorerUrl = destinationTxHash ? _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1308
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1309
+ const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1316
1310
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1317
1311
  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.";
1318
- 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, _chunkGQCEQZGFcjs.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, _chunkGQCEQZGFcjs.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,
1312
+ 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, _chunkOQVLEVNRcjs.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, _chunkOQVLEVNRcjs.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,
1319
1313
  "svg",
1320
1314
  {
1321
1315
  className: "rs-deposit-notification-spinner",
@@ -1365,7 +1359,7 @@ function DepositNotification({
1365
1359
  className: "rs-deposit-notification-close",
1366
1360
  onClick: () => onDismiss(deposit.id),
1367
1361
  "aria-label": "Dismiss",
1368
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CloseIcon, {})
1362
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
1369
1363
  }
1370
1364
  )
1371
1365
  ] }),
@@ -1381,7 +1375,7 @@ function DepositNotification({
1381
1375
  "aria-expanded": expanded,
1382
1376
  children: [
1383
1377
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1378
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1385
1379
  ]
1386
1380
  }
1387
1381
  ),
@@ -1470,7 +1464,7 @@ function asString(value) {
1470
1464
  function resolveSolanaTokenMeta(token) {
1471
1465
  if (!token) return {};
1472
1466
  const normalized = token.toLowerCase();
1473
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
1467
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
1474
1468
  (entry) => entry.mint.toLowerCase() === normalized
1475
1469
  );
1476
1470
  if (matched) {
@@ -1513,7 +1507,7 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1513
1507
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1514
1508
  }
1515
1509
  function computeTokensForChain(chainId, allowedTokenSet) {
1516
- const all = chainId === "solana" ? _chunkMILJQWPTcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1510
+ const all = chainId === "solana" ? _chunkABVRVW3Pcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1517
1511
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1518
1512
  }
1519
1513
  function pickFallbackToken(tokens, current) {
@@ -1546,7 +1540,7 @@ function DepositAddressStep({
1546
1540
  [_optionalChain([allowedRoutes, 'optionalAccess', _60 => _60.sourceTokens])]
1547
1541
  );
1548
1542
  const evmChainIds = _react.useMemo.call(void 0, () => {
1549
- const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
1543
+ const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
1550
1544
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1551
1545
  }, [allowedChainSet]);
1552
1546
  const chainOptions = _react.useMemo.call(void 0, () => {
@@ -1584,7 +1578,7 @@ function DepositAddressStep({
1584
1578
  setLiquidityHelper({ kind: "idle" });
1585
1579
  return;
1586
1580
  }
1587
- const sourceTokenAddress = _chunkMILJQWPTcjs.getTokenAddress.call(void 0,
1581
+ const sourceTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress.call(void 0,
1588
1582
  sourceTokenSymbol,
1589
1583
  sourceChainId
1590
1584
  );
@@ -1728,10 +1722,10 @@ function DepositAddressStep({
1728
1722
  return;
1729
1723
  }
1730
1724
  const event = status.lastEvent;
1731
- const eventTxHash = _chunkGQCEQZGFcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkGQCEQZGFcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1725
+ const eventTxHash = _chunkOQVLEVNRcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1732
1726
  if (baselineTxHashRef.current === void 0) {
1733
1727
  baselineTxHashRef.current = eventTxHash;
1734
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkGQCEQZGFcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1728
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1735
1729
  const details = getDepositEventDetails(event);
1736
1730
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1737
1731
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1740,7 +1734,7 @@ function DepositAddressStep({
1740
1734
  baselineTxHashRef.current = eventTxHash;
1741
1735
  isTrackingRef.current = true;
1742
1736
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1743
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkMILJQWPTcjs.findTokenDecimals.call(void 0,
1737
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkABVRVW3Pcjs.findTokenDecimals.call(void 0,
1744
1738
  token,
1745
1739
  typeof chainId === "number" ? chainId : void 0
1746
1740
  ) : void 0)));
@@ -1805,10 +1799,10 @@ function DepositAddressStep({
1805
1799
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1806
1800
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1807
1801
  }, []);
1808
- const qrIconSrc = _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId);
1802
+ const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1809
1803
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1810
1804
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1811
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1805
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1812
1806
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1813
1807
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1814
1808
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1823,16 +1817,16 @@ function DepositAddressStep({
1823
1817
  setTokenDropdownOpen(false);
1824
1818
  },
1825
1819
  children: [
1826
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1820
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1827
1821
  "img",
1828
1822
  {
1829
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId),
1823
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId),
1830
1824
  alt: "",
1831
1825
  className: "rs-deposit-address-dropdown-icon"
1832
1826
  }
1833
1827
  ),
1834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) }),
1835
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1828
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) }),
1829
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1836
1830
  ]
1837
1831
  }
1838
1832
  ),
@@ -1843,15 +1837,15 @@ function DepositAddressStep({
1843
1837
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1844
1838
  onClick: () => handleSelectChain(chainId),
1845
1839
  children: [
1846
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1840
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1847
1841
  "img",
1848
1842
  {
1849
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId),
1843
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chainId),
1850
1844
  alt: "",
1851
1845
  className: "rs-deposit-address-dropdown-icon"
1852
1846
  }
1853
1847
  ),
1854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, chainId) })
1848
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, chainId) })
1855
1849
  ]
1856
1850
  },
1857
1851
  String(chainId)
@@ -1862,9 +1856,9 @@ function DepositAddressStep({
1862
1856
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1863
1857
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1864
1858
  "Min.$",
1865
- (targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1866
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1867
- _chunkGQCEQZGFcjs.InfoIcon,
1859
+ (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1860
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1861
+ _chunkOQVLEVNRcjs.InfoIcon,
1868
1862
  {
1869
1863
  className: "rs-deposit-address-min-icon",
1870
1864
  "aria-hidden": "true"
@@ -1883,16 +1877,16 @@ function DepositAddressStep({
1883
1877
  setChainDropdownOpen(false);
1884
1878
  },
1885
1879
  children: [
1886
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1880
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1887
1881
  "img",
1888
1882
  {
1889
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1883
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1890
1884
  alt: "",
1891
1885
  className: "rs-deposit-address-dropdown-icon"
1892
1886
  }
1893
1887
  ),
1894
1888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1895
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1889
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1896
1890
  ]
1897
1891
  }
1898
1892
  ),
@@ -1906,10 +1900,10 @@ function DepositAddressStep({
1906
1900
  setTokenDropdownOpen(false);
1907
1901
  },
1908
1902
  children: [
1909
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1903
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1910
1904
  "img",
1911
1905
  {
1912
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol),
1906
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, symbol),
1913
1907
  alt: "",
1914
1908
  className: "rs-deposit-address-dropdown-icon"
1915
1909
  }
@@ -1943,7 +1937,7 @@ function DepositAddressStep({
1943
1937
  className: "rs-deposit-address-copy",
1944
1938
  onClick: handleCopy,
1945
1939
  children: [
1946
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CopyIcon, {}),
1940
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CopyIcon, {}),
1947
1941
  copied ? "Copied!" : "Copy address"
1948
1942
  ]
1949
1943
  }
@@ -1951,7 +1945,7 @@ function DepositAddressStep({
1951
1945
  ]
1952
1946
  }
1953
1947
  ),
1954
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.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." }),
1948
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.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." }),
1955
1949
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1956
1950
  "div",
1957
1951
  {
@@ -1969,16 +1963,16 @@ function DepositAddressStep({
1969
1963
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1970
1964
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1971
1965
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1972
- _chunkGQCEQZGFcjs.Tooltip,
1966
+ _chunkOQVLEVNRcjs.Tooltip,
1973
1967
  {
1974
1968
  className: "rs-price-impact-info",
1975
1969
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1976
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.InfoIcon, { "aria-hidden": "true" })
1970
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
1977
1971
  }
1978
1972
  )
1979
1973
  ] }),
1980
1974
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1981
- _chunkGQCEQZGFcjs.ChevronDownIcon,
1975
+ _chunkOQVLEVNRcjs.ChevronDownIcon,
1982
1976
  {
1983
1977
  className: "rs-price-impact-chevron",
1984
1978
  "aria-hidden": "true"
@@ -1989,29 +1983,29 @@ function DepositAddressStep({
1989
1983
  ),
1990
1984
  /* @__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: [
1991
1985
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1992
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PercentIcon, {}) }),
1986
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PercentIcon, {}) }),
1993
1987
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1994
1988
  "Max slippage: ",
1995
1989
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1996
1990
  ] }),
1997
1991
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1998
- _chunkGQCEQZGFcjs.Tooltip,
1992
+ _chunkOQVLEVNRcjs.Tooltip,
1999
1993
  {
2000
1994
  className: "rs-price-impact-info",
2001
1995
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2002
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.InfoIcon, { "aria-hidden": "true" })
1996
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
2003
1997
  }
2004
1998
  )
2005
1999
  ] }),
2006
2000
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2007
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ClockIcon, {}) }),
2001
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ClockIcon, {}) }),
2008
2002
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2009
2003
  "Processing time: ",
2010
2004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2011
2005
  ] })
2012
2006
  ] }),
2013
2007
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2014
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PlusCircleIcon, {}) }),
2008
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PlusCircleIcon, {}) }),
2015
2009
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2016
2010
  "Max deposit:",
2017
2011
  " ",
@@ -2043,7 +2037,7 @@ function DepositAddressStep({
2043
2037
  },
2044
2038
  deposit.id
2045
2039
  )) }),
2046
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2040
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2047
2041
  ] });
2048
2042
  }
2049
2043
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2059,13 +2053,13 @@ DepositAddressStep.displayName = "DepositAddressStep";
2059
2053
  function FinalisingDepositStep() {
2060
2054
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2061
2055
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-finalising-body", children: [
2062
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, {}) }),
2056
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2063
2057
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2064
2058
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2065
2059
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2066
2060
  ] })
2067
2061
  ] }),
2068
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2062
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2069
2063
  ] });
2070
2064
  }
2071
2065
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2096,7 +2090,7 @@ function SwappedOrderTracker({
2096
2090
  ];
2097
2091
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2098
2092
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2099
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HandCoinsIcon, {}), title }),
2093
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HandCoinsIcon, {}), title }),
2100
2094
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2101
2095
  const status = stepStates[idx];
2102
2096
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2110,7 +2104,7 @@ function SwappedOrderTracker({
2110
2104
  {
2111
2105
  className: "rs-swapped-tracker-step-marker",
2112
2106
  "aria-hidden": "true",
2113
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, {}) : null
2107
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) : null
2114
2108
  }
2115
2109
  )
2116
2110
  ]
@@ -2137,7 +2131,7 @@ function SwappedOrderTracker({
2137
2131
  }
2138
2132
  )
2139
2133
  ] }),
2140
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2134
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2141
2135
  ] });
2142
2136
  }
2143
2137
  function formatTrackerAmount(amount) {
@@ -2301,10 +2295,10 @@ function SwappedIframeStep({
2301
2295
  const status = await service.fetchLatestStatus(smartAccount);
2302
2296
  if (cancelled) return;
2303
2297
  const event = status.lastEvent;
2304
- const eventTxHash = _chunkGQCEQZGFcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkGQCEQZGFcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2298
+ const eventTxHash = _chunkOQVLEVNRcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2305
2299
  if (baselineDepositTxHashRef.current === void 0) {
2306
2300
  baselineDepositTxHashRef.current = eventTxHash;
2307
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkGQCEQZGFcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2301
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2308
2302
  currentDepositTxHashRef.current = eventTxHash;
2309
2303
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2310
2304
  }
@@ -2365,10 +2359,10 @@ function SwappedIframeStep({
2365
2359
  [orderState, latestEvent]
2366
2360
  );
2367
2361
  const terminalState = _react.useMemo.call(void 0, () => {
2368
- if (_chunkGQCEQZGFcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2362
+ if (_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2369
2363
  return {
2370
2364
  kind: "failed",
2371
- message: _chunkGQCEQZGFcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2365
+ message: _chunkOQVLEVNRcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2372
2366
  };
2373
2367
  }
2374
2368
  if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
@@ -2390,19 +2384,19 @@ function SwappedIframeStep({
2390
2384
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2391
2385
  // Base-unit source amount from the deposit row/event, consistent with the
2392
2386
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2393
- amount: _nullishCoalesce(_chunkGQCEQZGFcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2387
+ amount: _nullishCoalesce(_chunkOQVLEVNRcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2394
2388
  });
2395
2389
  }, [latestEvent, orderState]);
2396
2390
  _react.useEffect.call(void 0, () => {
2397
2391
  if (failedFiredRef.current || completeFiredRef.current) return;
2398
- if (!_chunkGQCEQZGFcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2392
+ if (!_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2399
2393
  const txHash = currentDepositTxHashRef.current;
2400
2394
  if (!txHash) return;
2401
2395
  failedFiredRef.current = true;
2402
2396
  setPhase("tracker");
2403
2397
  _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2404
2398
  txHash,
2405
- _chunkGQCEQZGFcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2399
+ _chunkOQVLEVNRcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2406
2400
  )]);
2407
2401
  }, [latestEvent]);
2408
2402
  if (phase === "tracker") {
@@ -2425,9 +2419,9 @@ function SwappedIframeStep({
2425
2419
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
2426
2420
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2427
2421
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2428
- _chunkGQCEQZGFcjs.BodyHeader,
2422
+ _chunkOQVLEVNRcjs.BodyHeader,
2429
2423
  {
2430
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HandCoinsIcon, {}),
2424
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HandCoinsIcon, {}),
2431
2425
  title: "Deposit",
2432
2426
  subtitle: "Add money to your balance"
2433
2427
  }
@@ -2445,7 +2439,7 @@ function SwappedIframeStep({
2445
2439
  }
2446
2440
  )
2447
2441
  ] }),
2448
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, {}) }),
2442
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2449
2443
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2450
2444
  "iframe",
2451
2445
  {
@@ -2460,11 +2454,11 @@ function SwappedIframeStep({
2460
2454
  )
2461
2455
  ] })
2462
2456
  ] }),
2463
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2457
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2464
2458
  ] });
2465
2459
  }
2466
2460
  function deriveStepStates(swappedStatus, latestEvent) {
2467
- if (_chunkGQCEQZGFcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2461
+ if (_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2468
2462
  return ["complete", "complete", "failed", "pending"];
2469
2463
  }
2470
2464
  if (swappedStatus === "order_cancelled") {
@@ -2728,7 +2722,7 @@ function getExchangeLogo(name, connection) {
2728
2722
  function ExchangeLogo({ exchange }) {
2729
2723
  const [failed, setFailed] = _react.useState.call(void 0, false);
2730
2724
  if (!exchange.logoUrl || failed) {
2731
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BankIcon, {});
2725
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BankIcon, {});
2732
2726
  }
2733
2727
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2734
2728
  "img",
@@ -2774,14 +2768,14 @@ function ExchangeSelectStep({
2774
2768
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2775
2769
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2776
2770
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2777
- _chunkGQCEQZGFcjs.BodyHeader,
2771
+ _chunkOQVLEVNRcjs.BodyHeader,
2778
2772
  {
2779
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.UnplugIcon, {}),
2773
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.UnplugIcon, {}),
2780
2774
  title: "Connect exchange",
2781
2775
  subtitle: "Select an exchange to connect"
2782
2776
  }
2783
2777
  ),
2784
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, {}) }),
2778
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2785
2779
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2786
2780
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2787
2781
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2830,7 +2824,7 @@ function ExchangeSelectStep({
2830
2824
  );
2831
2825
  }) })
2832
2826
  ] }),
2833
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2827
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2834
2828
  ] });
2835
2829
  }
2836
2830
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2845,22 +2839,22 @@ function DepositAddressSkeleton({
2845
2839
  const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2846
2840
  const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2847
2841
  const evmChainIds = (() => {
2848
- const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
2842
+ const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2849
2843
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2850
2844
  })();
2851
2845
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2852
2846
  const tokensForChain = (() => {
2853
- const all = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2847
+ const all = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2854
2848
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2855
2849
  })();
2856
2850
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2857
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, defaultChainId);
2858
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, defaultChainId);
2859
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, defaultToken);
2851
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, defaultChainId);
2852
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, defaultChainId);
2853
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, defaultToken);
2860
2854
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2861
2855
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2862
2856
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2863
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2857
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2864
2858
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2865
2859
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2866
2860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2874,7 +2868,7 @@ function DepositAddressSkeleton({
2874
2868
  }
2875
2869
  ),
2876
2870
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2871
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2878
2872
  ] })
2879
2873
  ] }),
2880
2874
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2883,8 +2877,8 @@ function DepositAddressSkeleton({
2883
2877
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2884
2878
  "Min.$",
2885
2879
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2886
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2887
- _chunkGQCEQZGFcjs.InfoIcon,
2880
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2881
+ _chunkOQVLEVNRcjs.InfoIcon,
2888
2882
  {
2889
2883
  className: "rs-deposit-address-min-icon",
2890
2884
  "aria-hidden": "true"
@@ -2902,7 +2896,7 @@ function DepositAddressSkeleton({
2902
2896
  }
2903
2897
  ),
2904
2898
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2905
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2899
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2906
2900
  ] })
2907
2901
  ] })
2908
2902
  ] }),
@@ -2923,7 +2917,7 @@ function DepositAddressSkeleton({
2923
2917
  disabled: true,
2924
2918
  "aria-hidden": "true",
2925
2919
  children: [
2926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CopyIcon, {}),
2920
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CopyIcon, {}),
2927
2921
  "Copy address"
2928
2922
  ]
2929
2923
  }
@@ -2936,16 +2930,16 @@ function DepositAddressSkeleton({
2936
2930
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2937
2931
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2938
2932
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2939
- _chunkGQCEQZGFcjs.Tooltip,
2933
+ _chunkOQVLEVNRcjs.Tooltip,
2940
2934
  {
2941
2935
  className: "rs-price-impact-info",
2942
2936
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2943
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.InfoIcon, { "aria-hidden": "true" })
2937
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
2944
2938
  }
2945
2939
  )
2946
2940
  ] }),
2947
2941
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2948
- _chunkGQCEQZGFcjs.ChevronDownIcon,
2942
+ _chunkOQVLEVNRcjs.ChevronDownIcon,
2949
2943
  {
2950
2944
  className: "rs-price-impact-chevron",
2951
2945
  "aria-hidden": "true"
@@ -2953,7 +2947,7 @@ function DepositAddressSkeleton({
2953
2947
  )
2954
2948
  ] }) })
2955
2949
  ] }),
2956
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
2950
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2957
2951
  ] });
2958
2952
  }
2959
2953
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2985,14 +2979,14 @@ function SolanaTokenSelectStep({
2985
2979
  setError(null);
2986
2980
  const portfolioBySymbol = {};
2987
2981
  try {
2988
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2982
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2989
2983
  solanaAddress
2990
2984
  });
2991
2985
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
2992
2986
  if (!active) return;
2993
2987
  for (const t of portfolio.tokens) {
2994
2988
  const symbol = t.symbol.toUpperCase();
2995
- if (!_chunkMILJQWPTcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2989
+ if (!_chunkABVRVW3Pcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2996
2990
  let parsed = 0n;
2997
2991
  try {
2998
2992
  parsed = BigInt(t.balance || "0");
@@ -3008,12 +3002,12 @@ function SolanaTokenSelectStep({
3008
3002
  };
3009
3003
  }
3010
3004
  }
3011
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3005
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3012
3006
  symbols: Object.keys(portfolioBySymbol)
3013
3007
  });
3014
3008
  } catch (err) {
3015
3009
  if (!active) return;
3016
- _chunkGQCEQZGFcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3010
+ _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3017
3011
  solanaAddress
3018
3012
  });
3019
3013
  setError(
@@ -3024,7 +3018,7 @@ function SolanaTokenSelectStep({
3024
3018
  return;
3025
3019
  }
3026
3020
  const results = [];
3027
- for (const token of _chunkMILJQWPTcjs.SOLANA_TOKENS) {
3021
+ for (const token of _chunkABVRVW3Pcjs.SOLANA_TOKENS) {
3028
3022
  const fromPortfolio = portfolioBySymbol[token.symbol];
3029
3023
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3030
3024
  results.push({
@@ -3060,30 +3054,30 @@ function SolanaTokenSelectStep({
3060
3054
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3061
3055
  const numeric = Number(raw);
3062
3056
  if (!Number.isFinite(numeric)) return raw;
3063
- return _chunkGQCEQZGFcjs.tokenFormatter.format(numeric);
3057
+ return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
3064
3058
  } catch (e20) {
3065
3059
  return "--";
3066
3060
  }
3067
3061
  };
3068
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
3069
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
3062
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, "solana");
3063
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, "solana");
3070
3064
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3071
3065
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3072
3066
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3073
- _chunkGQCEQZGFcjs.BodyHeader,
3067
+ _chunkOQVLEVNRcjs.BodyHeader,
3074
3068
  {
3075
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}),
3069
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
3076
3070
  title: "Your assets",
3077
3071
  subtitle: "Select source assets to transfer"
3078
3072
  }
3079
3073
  ),
3080
3074
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3081
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, { className: "rs-text-tertiary" }),
3075
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-text-tertiary" }),
3082
3076
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3083
3077
  ] }),
3084
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
3078
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
3085
3079
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3086
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, { className: "rs-empty-icon" }),
3080
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, { className: "rs-empty-icon" }),
3087
3081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3088
3082
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3089
3083
  solanaAddress.slice(0, 6),
@@ -3103,7 +3097,7 @@ function SolanaTokenSelectStep({
3103
3097
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
3104
3098
  const isSelected = selectedSymbol === entry.token.symbol;
3105
3099
  const tokenAmount = formatBalance(entry);
3106
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, entry.token.symbol);
3100
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, entry.token.symbol);
3107
3101
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3108
3102
  "button",
3109
3103
  {
@@ -3132,14 +3126,14 @@ function SolanaTokenSelectStep({
3132
3126
  ] })
3133
3127
  ] })
3134
3128
  ] }),
3135
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkGQCEQZGFcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3129
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3136
3130
  ]
3137
3131
  },
3138
3132
  entry.token.symbol
3139
3133
  );
3140
3134
  }) }),
3141
3135
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3142
- _chunkGQCEQZGFcjs.Button,
3136
+ _chunkOQVLEVNRcjs.Button,
3143
3137
  {
3144
3138
  onClick: () => selectedEntry && onContinue(
3145
3139
  selectedEntry.token,
@@ -3152,7 +3146,7 @@ function SolanaTokenSelectStep({
3152
3146
  }
3153
3147
  )
3154
3148
  ] }),
3155
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
3149
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3156
3150
  ] });
3157
3151
  }
3158
3152
 
@@ -3184,7 +3178,7 @@ function SolanaAmountStep({
3184
3178
  const [amount, setAmount] = _react.useState.call(void 0, "");
3185
3179
  const [error, setError] = _react.useState.call(void 0, null);
3186
3180
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3187
- const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, token.symbol);
3181
+ const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, token.symbol);
3188
3182
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3189
3183
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3190
3184
  if (isSourceStablecoin) return 1;
@@ -3205,7 +3199,7 @@ function SolanaAmountStep({
3205
3199
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3206
3200
  const numeric = Number(raw);
3207
3201
  if (!Number.isFinite(numeric)) return raw;
3208
- return _chunkGQCEQZGFcjs.tokenFormatter.format(numeric);
3202
+ return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
3209
3203
  } catch (e22) {
3210
3204
  return "\u2026";
3211
3205
  }
@@ -3222,7 +3216,7 @@ function SolanaAmountStep({
3222
3216
  }
3223
3217
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3224
3218
  const spendableBalance = _react.useMemo.call(void 0, () => {
3225
- if (!_chunkMILJQWPTcjs.isNativeSol.call(void 0, token)) return balance;
3219
+ if (!_chunkABVRVW3Pcjs.isNativeSol.call(void 0, token)) return balance;
3226
3220
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3227
3221
  }, [balance, token]);
3228
3222
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3287,7 +3281,7 @@ function SolanaAmountStep({
3287
3281
  return null;
3288
3282
  }
3289
3283
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3290
- const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3284
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3291
3285
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3292
3286
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3293
3287
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -3298,7 +3292,7 @@ function SolanaAmountStep({
3298
3292
  const handlePresetClick = (percentage) => {
3299
3293
  const formatted = computePresetAmount(percentage);
3300
3294
  if (!formatted) return;
3301
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3295
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3302
3296
  percentage,
3303
3297
  symbol: token.symbol,
3304
3298
  formatted
@@ -3333,7 +3327,7 @@ function SolanaAmountStep({
3333
3327
  try {
3334
3328
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3335
3329
  } catch (e27) {
3336
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3330
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3337
3331
  amount,
3338
3332
  sourceAmount: sourceAmountStr,
3339
3333
  reason: "parse-units-failed"
@@ -3342,13 +3336,13 @@ function SolanaAmountStep({
3342
3336
  return;
3343
3337
  }
3344
3338
  if (amountInUnits > spendableBalance) {
3345
- const isReserveIssue = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3339
+ const isReserveIssue = _chunkABVRVW3Pcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3346
3340
  setError(
3347
3341
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3348
3342
  );
3349
3343
  return;
3350
3344
  }
3351
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3345
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3352
3346
  symbol: token.symbol,
3353
3347
  inputAmountUsd: amount,
3354
3348
  sourceAmount: sourceAmountStr,
@@ -3359,10 +3353,10 @@ function SolanaAmountStep({
3359
3353
  };
3360
3354
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
3361
3355
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3362
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3356
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3363
3357
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3364
3358
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3365
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}), title: "Wallet deposit" }),
3359
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Wallet deposit" }),
3366
3360
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3367
3361
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3368
3362
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3382,13 +3376,13 @@ function SolanaAmountStep({
3382
3376
  " available",
3383
3377
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3384
3378
  " (~",
3385
- _chunkGQCEQZGFcjs.currencyFormatter.format(computedBalanceUsd),
3379
+ _chunkOQVLEVNRcjs.currencyFormatter.format(computedBalanceUsd),
3386
3380
  ")"
3387
3381
  ] })
3388
3382
  ] }),
3389
3383
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3390
3384
  "Min. deposit ",
3391
- _chunkGQCEQZGFcjs.currencyFormatter.format(minDepositUsd)
3385
+ _chunkOQVLEVNRcjs.currencyFormatter.format(minDepositUsd)
3392
3386
  ] })
3393
3387
  ] })
3394
3388
  ] }),
@@ -3427,13 +3421,13 @@ function SolanaAmountStep({
3427
3421
  ] }),
3428
3422
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3429
3423
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3430
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkGQCEQZGFcjs.currencyFormatter.format(balanceAfterUsd) })
3424
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkOQVLEVNRcjs.currencyFormatter.format(balanceAfterUsd) })
3431
3425
  ] })
3432
3426
  ] }),
3433
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3434
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
3427
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3428
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
3435
3429
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3436
- _chunkGQCEQZGFcjs.Button,
3430
+ _chunkOQVLEVNRcjs.Button,
3437
3431
  {
3438
3432
  onClick: handleContinue,
3439
3433
  fullWidth: true,
@@ -3442,7 +3436,7 @@ function SolanaAmountStep({
3442
3436
  }
3443
3437
  )
3444
3438
  ] }),
3445
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
3439
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3446
3440
  ] });
3447
3441
  }
3448
3442
 
@@ -3578,38 +3572,32 @@ function SolanaConfirmStep({
3578
3572
  }) {
3579
3573
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3580
3574
  const [error, setError] = _react.useState.call(void 0, null);
3581
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3582
- const isSameToken = token.symbol.toUpperCase() === targetSymbol.toUpperCase();
3583
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
3584
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
3585
- const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
3586
- const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
3587
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3588
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
3575
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3576
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, "solana");
3577
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
3578
+ const sourceChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, "solana");
3579
+ const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3580
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3581
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
3589
3582
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeSponsored]), () => ( false));
3590
3583
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _116 => _116.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3591
- const formattedAmount = sourceAmount && !Number.isNaN(Number(sourceAmount)) ? Number(sourceAmount).toLocaleString("en-US", {
3592
- minimumFractionDigits: 2,
3593
- maximumFractionDigits: 6
3594
- }) : "0";
3595
- const formattedReceiveAmount = (() => {
3596
- if (isSameToken) return formattedAmount;
3597
- const dollarValue = Number(targetAmount);
3598
- if (!Number.isFinite(dollarValue) || dollarValue <= 0)
3599
- return formattedAmount;
3600
- if (targetTokenPriceUsd !== null && targetTokenPriceUsd > 0) {
3601
- const tokenAmount = dollarValue / targetTokenPriceUsd;
3602
- return tokenAmount.toLocaleString("en-US", {
3603
- minimumFractionDigits: 2,
3604
- maximumFractionDigits: 6
3605
- });
3606
- }
3607
- return formattedAmount;
3584
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkOQVLEVNRcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3585
+ const receiveDisplay = (() => {
3586
+ const usdValue = Number(targetAmount);
3587
+ const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3588
+ const estimate = _chunkOQVLEVNRcjs.formatReceiveEstimate.call(void 0, {
3589
+ sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3590
+ sourceSymbol: token.symbol,
3591
+ targetSymbol,
3592
+ sourceAmountUsd,
3593
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3594
+ });
3595
+ if (estimate !== void 0) return estimate;
3596
+ return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedAmount} ${token.symbol}`;
3608
3597
  })();
3609
- const receiveAmount = isSameToken ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
3610
3598
  const handleConfirm = async () => {
3611
3599
  if (!solanaProvider) {
3612
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3600
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3613
3601
  reason: "missing-provider"
3614
3602
  });
3615
3603
  setError("Solana wallet not connected");
@@ -3617,7 +3605,7 @@ function SolanaConfirmStep({
3617
3605
  }
3618
3606
  const parsedAmount = parseFloat(sourceAmount);
3619
3607
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3620
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3608
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3621
3609
  reason: "invalid-amount",
3622
3610
  sourceAmount
3623
3611
  });
@@ -3626,7 +3614,7 @@ function SolanaConfirmStep({
3626
3614
  }
3627
3615
  setError(null);
3628
3616
  setIsSubmitting(true);
3629
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3617
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3630
3618
  smartAccount,
3631
3619
  solanaAddress,
3632
3620
  solanaDepositAddress,
@@ -3636,7 +3624,7 @@ function SolanaConfirmStep({
3636
3624
  });
3637
3625
  try {
3638
3626
  const check = await service.checkAccount(smartAccount);
3639
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3627
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3640
3628
  smartAccount,
3641
3629
  isRegistered: check.isRegistered,
3642
3630
  targetChain: check.targetChain,
@@ -3649,12 +3637,12 @@ function SolanaConfirmStep({
3649
3637
  }
3650
3638
  const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3651
3639
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3652
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3640
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3653
3641
  token: token.symbol,
3654
3642
  sourceAmount,
3655
3643
  amountUnits: amountUnits.toString()
3656
3644
  });
3657
- const transaction = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3645
+ const transaction = _chunkABVRVW3Pcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3658
3646
  connection,
3659
3647
  solanaAddress,
3660
3648
  solanaDepositAddress,
@@ -3666,7 +3654,7 @@ function SolanaConfirmStep({
3666
3654
  token.mint,
3667
3655
  amountUnits
3668
3656
  );
3669
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3657
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3670
3658
  token: token.symbol,
3671
3659
  instructionCount: transaction.instructions.length,
3672
3660
  feePayer: _optionalChain([transaction, 'access', _117 => _117.feePayer, 'optionalAccess', _118 => _118.toBase58, 'call', _119 => _119()]),
@@ -3677,15 +3665,15 @@ function SolanaConfirmStep({
3677
3665
  connection,
3678
3666
  transaction
3679
3667
  );
3680
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3668
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3681
3669
  txHash,
3682
3670
  amountUnits: amountUnits.toString()
3683
3671
  });
3684
3672
  onConfirm(txHash, amountUnits.toString());
3685
3673
  } catch (err) {
3686
3674
  const raw = err instanceof Error ? err.message : "Transfer failed";
3687
- const message = _chunkGQCEQZGFcjs.formatUserError.call(void 0, raw);
3688
- _chunkGQCEQZGFcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3675
+ const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
3676
+ _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3689
3677
  smartAccount,
3690
3678
  token: token.symbol,
3691
3679
  sourceAmount
@@ -3698,7 +3686,7 @@ function SolanaConfirmStep({
3698
3686
  };
3699
3687
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3700
3688
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3701
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}), title: "Review deposit" }),
3689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Review deposit" }),
3702
3690
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3703
3691
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3704
3692
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3732,11 +3720,7 @@ function SolanaConfirmStep({
3732
3720
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3733
3721
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3734
3722
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3735
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
3736
- receiveAmount,
3737
- " ",
3738
- targetSymbol
3739
- ] }),
3723
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3740
3724
  targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3741
3725
  ] })
3742
3726
  ] }),
@@ -3750,13 +3734,13 @@ function SolanaConfirmStep({
3750
3734
  children: "$0.04"
3751
3735
  }
3752
3736
  ),
3753
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.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, _chunkGQCEQZGFcjs.InfoIcon, {}) }) })
3737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.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, _chunkOQVLEVNRcjs.InfoIcon, {}) }) })
3754
3738
  ] })
3755
3739
  ] })
3756
3740
  ] }),
3757
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Callout, { variant: "error", children: error }),
3741
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
3758
3742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3759
- _chunkGQCEQZGFcjs.Button,
3743
+ _chunkOQVLEVNRcjs.Button,
3760
3744
  {
3761
3745
  onClick: handleConfirm,
3762
3746
  loading: isSubmitting,
@@ -3767,7 +3751,7 @@ function SolanaConfirmStep({
3767
3751
  }
3768
3752
  )
3769
3753
  ] }),
3770
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
3754
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3771
3755
  ] });
3772
3756
  }
3773
3757
 
@@ -3781,21 +3765,21 @@ function DappImportAssetSelectStep({
3781
3765
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3782
3766
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3783
3767
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3784
- _chunkGQCEQZGFcjs.BodyHeader,
3768
+ _chunkOQVLEVNRcjs.BodyHeader,
3785
3769
  {
3786
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}),
3770
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
3787
3771
  title: `Transfer from ${sourceLabel}`,
3788
3772
  subtitle: "Pick the balance to import"
3789
3773
  }
3790
3774
  ),
3791
3775
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3792
- const tokenAmount = asset.balance ? _chunkGQCEQZGFcjs.tokenFormatter.format(
3776
+ const tokenAmount = asset.balance ? _chunkOQVLEVNRcjs.tokenFormatter.format(
3793
3777
  Number(asset.balance) / 10 ** asset.decimals
3794
3778
  ) : "0";
3795
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkGQCEQZGFcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3796
- const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol)));
3797
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
3798
- const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
3779
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3780
+ const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3781
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3782
+ const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
3799
3783
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3800
3784
  "button",
3801
3785
  {
@@ -3810,7 +3794,7 @@ function DappImportAssetSelectStep({
3810
3794
  "img",
3811
3795
  {
3812
3796
  src: chainIcon,
3813
- alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
3797
+ alt: _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
3814
3798
  }
3815
3799
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3816
3800
  "span",
@@ -3843,7 +3827,7 @@ function DappImportAssetSelectStep({
3843
3827
  );
3844
3828
  }) })
3845
3829
  ] }),
3846
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
3830
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3847
3831
  ] });
3848
3832
  }
3849
3833
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3860,9 +3844,9 @@ function DappImportAssetSelectSkeleton({
3860
3844
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3861
3845
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3862
3846
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3863
- _chunkGQCEQZGFcjs.BodyHeader,
3847
+ _chunkOQVLEVNRcjs.BodyHeader,
3864
3848
  {
3865
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.WalletIcon, {}),
3849
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
3866
3850
  title: `Transfer from ${sourceLabel}`,
3867
3851
  subtitle: "Pick the balance to import"
3868
3852
  }
@@ -3900,7 +3884,7 @@ function DappImportAssetSelectSkeleton({
3900
3884
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3901
3885
  }
3902
3886
  ) }),
3903
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
3887
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3904
3888
  ] });
3905
3889
  }
3906
3890
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3957,7 +3941,7 @@ async function detectPolymarketWalletKind(params) {
3957
3941
  contracts: [
3958
3942
  {
3959
3943
  address: proxyWallet,
3960
- abi: _chunkAJHFNHG3cjs.SAFE_ABI,
3944
+ abi: _chunkUEKPBRBYcjs.SAFE_ABI,
3961
3945
  functionName: "isOwner",
3962
3946
  args: [eoa]
3963
3947
  },
@@ -3990,7 +3974,7 @@ async function buildSignedDepositWalletBatch(params) {
3990
3974
  if (!account || !chain) {
3991
3975
  throw new Error("Wallet not connected");
3992
3976
  }
3993
- if (chain.id !== _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID) {
3977
+ if (chain.id !== _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID) {
3994
3978
  throw new Error("Switch to Polygon to sign");
3995
3979
  }
3996
3980
  const owner = await publicClient.readContract({
@@ -4035,14 +4019,14 @@ async function buildSignedDepositWalletBatch(params) {
4035
4019
  })),
4036
4020
  signature
4037
4021
  },
4038
- sourceToken: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
4022
+ sourceToken: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
4039
4023
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4040
4024
  };
4041
4025
  }
4042
4026
  function buildUsdceTransferCalls(recipient, amount) {
4043
4027
  return [
4044
4028
  {
4045
- target: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
4029
+ target: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
4046
4030
  value: 0n,
4047
4031
  data: _viem.encodeFunctionData.call(void 0, {
4048
4032
  abi: _viem.erc20Abi,
@@ -4055,21 +4039,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4055
4039
  function buildPusdUnwrapCalls(recipient, amount) {
4056
4040
  return [
4057
4041
  {
4058
- target: _chunkR5CPOBCFcjs.POLYMARKET_PUSD_ADDRESS,
4042
+ target: _chunkNRNJAQUAcjs.POLYMARKET_PUSD_ADDRESS,
4059
4043
  value: 0n,
4060
4044
  data: _viem.encodeFunctionData.call(void 0, {
4061
4045
  abi: _viem.erc20Abi,
4062
4046
  functionName: "approve",
4063
- args: [_chunkR5CPOBCFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4047
+ args: [_chunkNRNJAQUAcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4064
4048
  })
4065
4049
  },
4066
4050
  {
4067
- target: _chunkR5CPOBCFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4051
+ target: _chunkNRNJAQUAcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4068
4052
  value: 0n,
4069
4053
  data: _viem.encodeFunctionData.call(void 0, {
4070
4054
  abi: COLLATERAL_OFFRAMP_ABI,
4071
4055
  functionName: "unwrap",
4072
- args: [_chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4056
+ args: [_chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4073
4057
  })
4074
4058
  }
4075
4059
  ];
@@ -4082,18 +4066,18 @@ var polymarketProvider = {
4082
4066
  label: "Transfer from Polymarket",
4083
4067
  sourceLabel: "Polymarket",
4084
4068
  icon: _react.createElement.call(void 0, "img", {
4085
- src: _chunkR5CPOBCFcjs.POLYMARKET_ICON_URL,
4069
+ src: _chunkNRNJAQUAcjs.POLYMARKET_ICON_URL,
4086
4070
  alt: "Polymarket",
4087
4071
  style: { width: 24, height: 24, borderRadius: 6 }
4088
4072
  }),
4089
- chainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
4073
+ chainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
4090
4074
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4091
- const proxyWallet = await _chunkR5CPOBCFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4075
+ const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4092
4076
  if (!proxyWallet) return null;
4093
4077
  if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
4094
- const polygonClient = getPublicClient2(_chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID);
4078
+ const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
4095
4079
  if (!polygonClient) return null;
4096
- const balances = await _chunkR5CPOBCFcjs.readPolymarketBalances.call(void 0, {
4080
+ const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
4097
4081
  publicClient: polygonClient,
4098
4082
  proxyWallet
4099
4083
  });
@@ -4151,7 +4135,7 @@ var polymarketProvider = {
4151
4135
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4152
4136
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4153
4137
  }
4154
- const result = await _chunkR5CPOBCFcjs.executePolymarketSafeTransfer.call(void 0, {
4138
+ const result = await _chunkNRNJAQUAcjs.executePolymarketSafeTransfer.call(void 0, {
4155
4139
  walletClient,
4156
4140
  publicClient,
4157
4141
  safeAddress: metadata.proxyWallet,
@@ -4170,17 +4154,17 @@ var polymarketProvider = {
4170
4154
  function buildAsset(params) {
4171
4155
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4172
4156
  const isPusd = tokenKind === "pusd";
4173
- const tokenAddress = isPusd ? _chunkR5CPOBCFcjs.POLYMARKET_PUSD_ADDRESS : _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS;
4157
+ const tokenAddress = isPusd ? _chunkNRNJAQUAcjs.POLYMARKET_PUSD_ADDRESS : _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS;
4174
4158
  const symbol = isPusd ? "pUSD" : "USDC.e";
4175
4159
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4176
4160
  const metadata = { proxyWallet, tokenKind, walletKind };
4177
4161
  return {
4178
4162
  id: `polymarket:${tokenKind}`,
4179
- chainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
4163
+ chainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
4180
4164
  token: tokenAddress,
4181
4165
  symbol,
4182
4166
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4183
- icon: isPusd ? _chunkR5CPOBCFcjs.POLYMARKET_ICON_URL : void 0,
4167
+ icon: isPusd ? _chunkNRNJAQUAcjs.POLYMARKET_ICON_URL : void 0,
4184
4168
  decimals: 6,
4185
4169
  balance: balance.toString(),
4186
4170
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4190,8 +4174,8 @@ function buildAsset(params) {
4190
4174
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4191
4175
  // arrives at the smart account, so it's also what the orchestrator
4192
4176
  // bridges from.
4193
- depositToken: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
4194
- depositChainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
4177
+ depositToken: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
4178
+ depositChainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
4195
4179
  providerMetadata: metadata
4196
4180
  };
4197
4181
  }
@@ -5026,15 +5010,15 @@ var SetupError = class extends Error {
5026
5010
  }
5027
5011
  };
5028
5012
  async function resolveSessionOwner(eoaAddress) {
5029
- const local = _chunkGQCEQZGFcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5013
+ const local = _chunkOQVLEVNRcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5030
5014
  if (local) {
5031
5015
  return {
5032
- account: _chunkGQCEQZGFcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5016
+ account: _chunkOQVLEVNRcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5033
5017
  address: local.address
5034
5018
  };
5035
5019
  }
5036
- const created = _chunkGQCEQZGFcjs.createSessionOwnerKey.call(void 0, );
5037
- _chunkGQCEQZGFcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5020
+ const created = _chunkOQVLEVNRcjs.createSessionOwnerKey.call(void 0, );
5021
+ _chunkOQVLEVNRcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5038
5022
  return { account: created.account, address: created.address };
5039
5023
  }
5040
5024
  function stableStringify(value) {
@@ -5102,7 +5086,7 @@ async function runAccountSetup(input, deps) {
5102
5086
  try {
5103
5087
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5104
5088
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5105
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5089
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5106
5090
  owner: input.ownerAddress,
5107
5091
  sessionOwner: sessionOwner.address,
5108
5092
  hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length])),
@@ -5111,7 +5095,7 @@ async function runAccountSetup(input, deps) {
5111
5095
  const setup = await service.setupAccount({
5112
5096
  ownerAddress: input.ownerAddress,
5113
5097
  sessionOwnerAddress: sessionOwner.address,
5114
- targetChain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
5098
+ targetChain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5115
5099
  targetToken: input.targetToken,
5116
5100
  recipient: input.recipient,
5117
5101
  postBridgeActions: input.postBridgeActions,
@@ -5150,7 +5134,7 @@ async function runAccountSetup(input, deps) {
5150
5134
  primaryType: typedData.primaryType,
5151
5135
  message: typedData.message
5152
5136
  });
5153
- const sessionDetails = _chunkGQCEQZGFcjs.buildSessionDetails.call(void 0,
5137
+ const sessionDetails = _chunkOQVLEVNRcjs.buildSessionDetails.call(void 0,
5154
5138
  setup.sessionDetailsUnsigned,
5155
5139
  signature
5156
5140
  );
@@ -5164,7 +5148,7 @@ async function runAccountSetup(input, deps) {
5164
5148
  eoaAddress: input.ownerAddress,
5165
5149
  sessionOwner: sessionOwner.address,
5166
5150
  target: {
5167
- chain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
5151
+ chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5168
5152
  token: input.targetToken,
5169
5153
  ...input.recipient && { recipient: input.recipient },
5170
5154
  ..._optionalChain([input, 'access', _135 => _135.postBridgeActions, 'optionalAccess', _136 => _136.length]) && {
@@ -5186,7 +5170,7 @@ async function runAccountSetup(input, deps) {
5186
5170
  isRegistered: true
5187
5171
  };
5188
5172
  } catch (error) {
5189
- _chunkGQCEQZGFcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5173
+ _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5190
5174
  owner: input.ownerAddress
5191
5175
  });
5192
5176
  if (error instanceof SetupError) throw error;
@@ -5197,7 +5181,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5197
5181
  const now = Date.now();
5198
5182
  const existing = setupRequestDedupe.get(requestKey);
5199
5183
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5200
- _chunkGQCEQZGFcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5184
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5201
5185
  owner: input.ownerAddress,
5202
5186
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5203
5187
  });
@@ -5462,7 +5446,7 @@ function DepositFlow({
5462
5446
  postBridgeActions,
5463
5447
  outputTokenRules,
5464
5448
  rejectUnmapped,
5465
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
5449
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
5466
5450
  sessionChainIds,
5467
5451
  forceRegister = false,
5468
5452
  enableSolana = true,
@@ -5485,10 +5469,10 @@ function DepositFlow({
5485
5469
  onError,
5486
5470
  debug
5487
5471
  }) {
5488
- const onStepChangeRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onStepChange);
5489
- const onEventRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onEvent);
5490
- const onLifecycleRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onLifecycle);
5491
- const onErrorRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onError);
5472
+ const onStepChangeRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onStepChange);
5473
+ const onEventRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onEvent);
5474
+ const onLifecycleRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onLifecycle);
5475
+ const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
5492
5476
  const hasInitialReownSession = Boolean(
5493
5477
  enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _139 => _139.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _140 => _140.address]) : _optionalChain([reownWallet, 'optionalAccess', _141 => _141.address])
5494
5478
  );
@@ -5513,13 +5497,13 @@ function DepositFlow({
5513
5497
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5514
5498
  const logFlow = _react.useCallback.call(void 0,
5515
5499
  (message, data) => {
5516
- _chunkGQCEQZGFcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5500
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5517
5501
  },
5518
5502
  [debug]
5519
5503
  );
5520
5504
  const logFlowError = _react.useCallback.call(void 0,
5521
5505
  (message, error, data) => {
5522
- _chunkGQCEQZGFcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5506
+ _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5523
5507
  },
5524
5508
  [debug]
5525
5509
  );
@@ -5637,9 +5621,9 @@ function DepositFlow({
5637
5621
  isConnectSelectionConfirmed,
5638
5622
  selectedWalletId
5639
5623
  ]);
5640
- const setupChainId = typeof targetChain === "number" && !_chunkMILJQWPTcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5641
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5642
- const isTargetStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5624
+ const setupChainId = typeof targetChain === "number" && !_chunkABVRVW3Pcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5625
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5626
+ const isTargetStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5643
5627
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5644
5628
  _react.useEffect.call(void 0, () => {
5645
5629
  targetMarketPriceRef.current = null;
@@ -5665,7 +5649,7 @@ function DepositFlow({
5665
5649
  return {
5666
5650
  ownerAddress: dappAddress,
5667
5651
  walletClient: void 0,
5668
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, setupChainId))),
5652
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5669
5653
  switchChain: void 0
5670
5654
  };
5671
5655
  }
@@ -5674,7 +5658,7 @@ function DepositFlow({
5674
5658
  return {
5675
5659
  ownerAddress: dappWalletClient.account.address,
5676
5660
  walletClient: dappWalletClient,
5677
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, fallbackChainId))),
5661
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, fallbackChainId))),
5678
5662
  switchChain: dappSwitchChain
5679
5663
  };
5680
5664
  }
@@ -5688,7 +5672,7 @@ function DepositFlow({
5688
5672
  return {
5689
5673
  ownerAddress: dappAddress,
5690
5674
  walletClient: void 0,
5691
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, setupChainId))),
5675
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5692
5676
  switchChain: void 0
5693
5677
  };
5694
5678
  }
@@ -5697,7 +5681,7 @@ function DepositFlow({
5697
5681
  return {
5698
5682
  ownerAddress: dappWalletClient.account.address,
5699
5683
  walletClient: dappWalletClient,
5700
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, fallbackChainId))),
5684
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, fallbackChainId))),
5701
5685
  switchChain: dappSwitchChain
5702
5686
  };
5703
5687
  }
@@ -5705,7 +5689,7 @@ function DepositFlow({
5705
5689
  return {
5706
5690
  ownerAddress: reownWallet.address,
5707
5691
  walletClient: reownWallet.walletClient,
5708
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, setupChainId))),
5692
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5709
5693
  switchChain: reownWallet.switchChain
5710
5694
  };
5711
5695
  }
@@ -5743,7 +5727,7 @@ function DepositFlow({
5743
5727
  return {
5744
5728
  ownerAddress: dappAddress,
5745
5729
  walletClient: void 0,
5746
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkGQCEQZGFcjs.getPublicClient.call(void 0, setupChainId))),
5730
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5747
5731
  switchChain: void 0
5748
5732
  };
5749
5733
  }
@@ -5939,8 +5923,8 @@ function DepositFlow({
5939
5923
  pred_balance: totalBalanceUsd
5940
5924
  })]);
5941
5925
  } else if (effectiveStep.type === "deposit-address") {
5942
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
5943
- const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5926
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5927
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5944
5928
  _optionalChain([onEventRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5945
5929
  type: "deposit_modal_transfer_crypto_open",
5946
5930
  default_chain: chainName,
@@ -5948,7 +5932,7 @@ function DepositFlow({
5948
5932
  pred_balance: totalBalanceUsd
5949
5933
  })]);
5950
5934
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5951
- const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5935
+ const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5952
5936
  _optionalChain([onEventRef, 'access', _187 => _187.current, 'optionalCall', _188 => _188({
5953
5937
  type: "deposit_modal_connected_wallet_enter_value_open",
5954
5938
  send_token: stepSendToken,
@@ -6066,7 +6050,7 @@ function DepositFlow({
6066
6050
  eoa: dappImportOwner,
6067
6051
  getPublicClient: (chainId) => {
6068
6052
  try {
6069
- return _chunkGQCEQZGFcjs.getPublicClient.call(void 0, chainId);
6053
+ return _chunkOQVLEVNRcjs.getPublicClient.call(void 0, chainId);
6070
6054
  } catch (e29) {
6071
6055
  return null;
6072
6056
  }
@@ -6334,7 +6318,7 @@ function DepositFlow({
6334
6318
  try {
6335
6319
  sessionOwner = await resolveSessionOwner(owner);
6336
6320
  } catch (error) {
6337
- _chunkGQCEQZGFcjs.debugError.call(void 0,
6321
+ _chunkOQVLEVNRcjs.debugError.call(void 0,
6338
6322
  debug,
6339
6323
  "deposit-flow",
6340
6324
  "session-owner:resolve-failed",
@@ -6444,8 +6428,8 @@ function DepositFlow({
6444
6428
  );
6445
6429
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6446
6430
  (token, sourceAmount, inputAmountUsd) => {
6447
- const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6448
- const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6431
+ const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6432
+ const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6449
6433
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6450
6434
  logFlow("solana:amount:continue", {
6451
6435
  token: token.symbol,
@@ -6521,8 +6505,8 @@ function DepositFlow({
6521
6505
  activeOwner
6522
6506
  );
6523
6507
  if (entry.status !== "ready") return;
6524
- const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6525
- const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6508
+ const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6509
+ const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6526
6510
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6527
6511
  storeApi.dispatch({
6528
6512
  type: "amount/entered",
@@ -6713,7 +6697,7 @@ function DepositFlow({
6713
6697
  );
6714
6698
  if (showConnectStep) {
6715
6699
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6716
- _chunkGQCEQZGFcjs.ConnectStep,
6700
+ _chunkOQVLEVNRcjs.ConnectStep,
6717
6701
  {
6718
6702
  walletRows,
6719
6703
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6797,8 +6781,8 @@ function DepositFlow({
6797
6781
  onDepositComplete: handleDepositComplete,
6798
6782
  onDepositFailed: handleDepositFailed,
6799
6783
  onCopyAddress: () => {
6800
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
6801
- const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6784
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6785
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6802
6786
  _optionalChain([onEvent, 'optionalCall', _231 => _231({
6803
6787
  type: "deposit_modal_transfer_crypto_cta_click",
6804
6788
  default_chain: chainName,
@@ -6843,7 +6827,7 @@ function DepositFlow({
6843
6827
  }
6844
6828
  ),
6845
6829
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6846
- _chunkGQCEQZGFcjs.ProcessingStep,
6830
+ _chunkOQVLEVNRcjs.ProcessingStep,
6847
6831
  {
6848
6832
  smartAccount: step.smartAccount,
6849
6833
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6910,7 +6894,7 @@ function DepositFlow({
6910
6894
  }
6911
6895
  ),
6912
6896
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6913
- _chunkGQCEQZGFcjs.ProcessingStep,
6897
+ _chunkOQVLEVNRcjs.ProcessingStep,
6914
6898
  {
6915
6899
  smartAccount: step.smartAccount,
6916
6900
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6974,10 +6958,10 @@ function DepositFlow({
6974
6958
  defaultAmount: effectiveStep.inputAmountUsd,
6975
6959
  uiConfig,
6976
6960
  targetChain,
6977
- targetChainName: _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain),
6978
- targetTokenSymbol: _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6979
- targetTokenIcon: _chunkMILJQWPTcjs.getTokenIcon.call(void 0,
6980
- _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6961
+ targetChainName: _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain),
6962
+ targetTokenSymbol: _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6963
+ targetTokenIcon: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0,
6964
+ _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6981
6965
  ),
6982
6966
  appBalanceUsd,
6983
6967
  onContinue: handleSolanaAmountContinue,
@@ -7040,7 +7024,7 @@ function DepositFlow({
7040
7024
  ) })
7041
7025
  ] }) : null,
7042
7026
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7043
- _chunkGQCEQZGFcjs.ProcessingStep,
7027
+ _chunkOQVLEVNRcjs.ProcessingStep,
7044
7028
  {
7045
7029
  smartAccount: effectiveStep.smartAccount,
7046
7030
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7093,7 +7077,7 @@ function DepositFlow({
7093
7077
  if (_optionalChain([signerContext, 'access', _247 => _247.publicClient, 'access', _248 => _248.chain, 'optionalAccess', _249 => _249.id]) === chainId) {
7094
7078
  return signerContext.publicClient;
7095
7079
  }
7096
- return _chunkGQCEQZGFcjs.getPublicClient.call(void 0, chainId);
7080
+ return _chunkOQVLEVNRcjs.getPublicClient.call(void 0, chainId);
7097
7081
  };
7098
7082
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7099
7083
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7150,7 +7134,7 @@ function DepositFlow({
7150
7134
  service,
7151
7135
  onContinue: handleAmountContinue,
7152
7136
  onCtaClick: (ctaName) => {
7153
- const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7137
+ const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7154
7138
  _optionalChain([onEvent, 'optionalCall', _253 => _253({
7155
7139
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7156
7140
  send_token: effectiveStep.asset.symbol,
@@ -7203,7 +7187,7 @@ function DepositFlow({
7203
7187
  }
7204
7188
  ),
7205
7189
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7206
- _chunkGQCEQZGFcjs.ProcessingStep,
7190
+ _chunkOQVLEVNRcjs.ProcessingStep,
7207
7191
  {
7208
7192
  smartAccount: effectiveStep.smartAccount,
7209
7193
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7255,8 +7239,8 @@ function formatDate(iso) {
7255
7239
  function resolveChainId(value) {
7256
7240
  if (value === void 0 || value === null) return null;
7257
7241
  if (typeof value === "number") return value;
7258
- if (_chunkMILJQWPTcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7259
- const parsed = _chunkMILJQWPTcjs.parseEvmChainId.call(void 0, value);
7242
+ if (_chunkABVRVW3Pcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7243
+ const parsed = _chunkABVRVW3Pcjs.parseEvmChainId.call(void 0, value);
7260
7244
  if (parsed !== null) return parsed;
7261
7245
  const num = Number(value);
7262
7246
  return Number.isFinite(num) ? num : null;
@@ -7265,7 +7249,7 @@ function resolveTokenSymbol(token, chainId) {
7265
7249
  if (!token) return "";
7266
7250
  if (chainId === "solana") {
7267
7251
  const normalized = token.toLowerCase();
7268
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
7252
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
7269
7253
  (entry) => entry.mint.toLowerCase() === normalized
7270
7254
  );
7271
7255
  if (matched) return matched.symbol;
@@ -7274,7 +7258,7 @@ function resolveTokenSymbol(token, chainId) {
7274
7258
  }
7275
7259
  }
7276
7260
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7277
- const sym = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, token, chainId);
7261
+ const sym = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, token, chainId);
7278
7262
  if (sym !== "Token") return sym;
7279
7263
  }
7280
7264
  return shortenHash(token);
@@ -7285,7 +7269,7 @@ function formatAmount(rawAmount, token, chainId) {
7285
7269
  if (token && chainId !== null && chainId !== void 0) {
7286
7270
  if (chainId === "solana") {
7287
7271
  const normalized = token.toLowerCase();
7288
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
7272
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
7289
7273
  (entry) => entry.mint.toLowerCase() === normalized
7290
7274
  );
7291
7275
  if (matched) {
@@ -7294,7 +7278,7 @@ function formatAmount(rawAmount, token, chainId) {
7294
7278
  decimals = 9;
7295
7279
  }
7296
7280
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7297
- decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7281
+ decimals = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7298
7282
  }
7299
7283
  }
7300
7284
  try {
@@ -7312,7 +7296,7 @@ function formatAmount(rawAmount, token, chainId) {
7312
7296
  }
7313
7297
  function getTxExplorerUrl(txHash, chainId) {
7314
7298
  if (!chainId) return null;
7315
- const base2 = _chunkMILJQWPTcjs.getExplorerUrl.call(void 0, chainId);
7299
+ const base2 = _chunkABVRVW3Pcjs.getExplorerUrl.call(void 0, chainId);
7316
7300
  if (!base2) return null;
7317
7301
  return `${base2}/tx/${txHash}`;
7318
7302
  }
@@ -7377,7 +7361,7 @@ function DepositHistoryPanel({
7377
7361
  className: "rs-modal-header-back",
7378
7362
  "aria-label": "Back",
7379
7363
  onClick: onClose,
7380
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronLeftIcon, {})
7364
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronLeftIcon, {})
7381
7365
  }
7382
7366
  ) }),
7383
7367
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7387,29 +7371,29 @@ function DepositHistoryPanel({
7387
7371
  className: "rs-modal-close",
7388
7372
  "aria-label": "Close",
7389
7373
  onClick: onCloseModal,
7390
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CloseIcon, {})
7374
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
7391
7375
  }
7392
7376
  ) })
7393
7377
  ] }),
7394
7378
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7395
7379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7396
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HistoryIcon, {}), title: "History" }),
7380
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}), title: "History" }),
7397
7381
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7398
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HistoryIcon, {}) }),
7382
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}) }),
7399
7383
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7400
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.Spinner, { className: "rs-spinner--sm" }),
7384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-spinner--sm" }),
7401
7385
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7402
7386
  ] })
7403
7387
  ] }),
7404
7388
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7405
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.AlertTriangleIcon, {}) }),
7389
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.AlertTriangleIcon, {}) }),
7406
7390
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7407
7391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7408
7392
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7409
7393
  ] })
7410
7394
  ] }),
7411
7395
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7412
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HistoryIcon, {}) }),
7396
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}) }),
7413
7397
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7414
7398
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7415
7399
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7429,7 +7413,7 @@ function DepositHistoryPanel({
7429
7413
  )
7430
7414
  ] })
7431
7415
  ] }),
7432
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.PoweredBy, {})
7416
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
7433
7417
  ] })
7434
7418
  ]
7435
7419
  }
@@ -7440,12 +7424,12 @@ function HistoryCard({ deposit }) {
7440
7424
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7441
7425
  const sourceChainId = resolveChainId(deposit.chain);
7442
7426
  const targetChainId = resolveChainId(deposit.targetChain);
7443
- const sourceChainName = sourceChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) : null;
7444
- const targetChainName = targetChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, targetChainId) : null;
7445
- const sourceChainIcon = sourceChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7446
- const targetChainIcon = targetChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7427
+ const sourceChainName = sourceChainId ? _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) : null;
7428
+ const targetChainName = targetChainId ? _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChainId) : null;
7429
+ const sourceChainIcon = sourceChainId ? _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7430
+ const targetChainIcon = targetChainId ? _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7447
7431
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7448
- const sourceTokenIcon = sourceSymbol ? _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7432
+ const sourceTokenIcon = sourceSymbol ? _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7449
7433
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7450
7434
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
7451
7435
  const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
@@ -7504,7 +7488,7 @@ function HistoryCard({ deposit }) {
7504
7488
  onClick: (e) => e.stopPropagation(),
7505
7489
  children: [
7506
7490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7507
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ArrowUpRightIcon, {})
7491
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ArrowUpRightIcon, {})
7508
7492
  ]
7509
7493
  }
7510
7494
  )
@@ -7519,7 +7503,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7519
7503
  // src/DepositModal.tsx
7520
7504
 
7521
7505
  var ReownDepositInner = _react.lazy.call(void 0,
7522
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-QVVFHL2N.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7506
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-KFTMS2WX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7523
7507
  );
7524
7508
  function sortByCreatedAtDesc(items) {
7525
7509
  return [...items].sort((a, b) => {
@@ -7568,9 +7552,9 @@ function DepositModalInner({
7568
7552
  defaultAmount,
7569
7553
  recipient,
7570
7554
  appBalanceUsd,
7571
- backendUrl = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL,
7555
+ backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
7572
7556
  solanaRpcUrl,
7573
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
7557
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
7574
7558
  sessionChainIds,
7575
7559
  forceRegister = false,
7576
7560
  enableSolana = true,
@@ -7598,7 +7582,7 @@ function DepositModalInner({
7598
7582
  debug
7599
7583
  }) {
7600
7584
  const modalRef = _react.useRef.call(void 0, null);
7601
- const onReadyRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onReady);
7585
+ const onReadyRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onReady);
7602
7586
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7603
7587
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7604
7588
  void 0
@@ -7614,19 +7598,19 @@ function DepositModalInner({
7614
7598
  const cursorRef = _react.useRef.call(void 0, null);
7615
7599
  const historyStaleRef = _react.useRef.call(void 0, false);
7616
7600
  const historyLoadedRef = _react.useRef.call(void 0, false);
7617
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
7618
- const sourceChain = sourceChainProp ? _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7601
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7602
+ const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7619
7603
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7620
- const onErrorRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onError);
7604
+ const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
7621
7605
  _react.useEffect.call(void 0, () => {
7622
- if (targetChain !== _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7606
+ if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7623
7607
  setRecipientIsContract(false);
7624
7608
  return;
7625
7609
  }
7626
7610
  let cancelled = false;
7627
- _chunkGQCEQZGFcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7611
+ _chunkOQVLEVNRcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7628
7612
  if (cancelled) return;
7629
- const isContract = _chunkMILJQWPTcjs.isContractBytecode.call(void 0, code);
7613
+ const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7630
7614
  setRecipientIsContract(isContract);
7631
7615
  if (isContract) {
7632
7616
  _optionalChain([onErrorRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260({
@@ -7642,7 +7626,7 @@ function DepositModalInner({
7642
7626
  };
7643
7627
  }, [targetChain, recipient, onErrorRef]);
7644
7628
  const service = _react.useMemo.call(void 0,
7645
- () => _chunkGQCEQZGFcjs.createDepositService.call(void 0, backendUrl, {
7629
+ () => _chunkOQVLEVNRcjs.createDepositService.call(void 0, backendUrl, {
7646
7630
  debug,
7647
7631
  debugScope: "service:deposit"
7648
7632
  }),
@@ -7658,7 +7642,7 @@ function DepositModalInner({
7658
7642
  }, [store, targetChain, targetToken]);
7659
7643
  _react.useEffect.call(void 0, () => {
7660
7644
  if (isOpen && modalRef.current) {
7661
- _chunkGQCEQZGFcjs.applyTheme.call(void 0, modalRef.current, theme);
7645
+ _chunkOQVLEVNRcjs.applyTheme.call(void 0, modalRef.current, theme);
7662
7646
  }
7663
7647
  }, [isOpen, theme]);
7664
7648
  _react.useEffect.call(void 0, () => {
@@ -7742,7 +7726,7 @@ function DepositModalInner({
7742
7726
  fetchHistory("initial");
7743
7727
  }
7744
7728
  }, [historyOpen, fetchHistory]);
7745
- const onLifecycleRef = _chunkGQCEQZGFcjs.useLatestRef.call(void 0, onLifecycle);
7729
+ const onLifecycleRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onLifecycle);
7746
7730
  const handleLifecycle = _react.useCallback.call(void 0,
7747
7731
  (event) => {
7748
7732
  _optionalChain([onLifecycleRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(event)]);
@@ -7774,7 +7758,7 @@ function DepositModalInner({
7774
7758
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _265 => _265.showBackButton]), () => ( true));
7775
7759
  const canGoBack = backHandler !== void 0;
7776
7760
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7777
- _chunkGQCEQZGFcjs.Modal,
7761
+ _chunkOQVLEVNRcjs.Modal,
7778
7762
  {
7779
7763
  isOpen,
7780
7764
  onClose,
@@ -7790,7 +7774,7 @@ function DepositModalInner({
7790
7774
  className: "rs-modal-header-back",
7791
7775
  "aria-label": "Go back",
7792
7776
  onClick: backHandler,
7793
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.ChevronLeftIcon, {})
7777
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronLeftIcon, {})
7794
7778
  }
7795
7779
  ) }),
7796
7780
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7802,7 +7786,7 @@ function DepositModalInner({
7802
7786
  "aria-label": "Deposit history",
7803
7787
  onClick: handleHistoryOpen,
7804
7788
  disabled: !recipient,
7805
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.HistoryIcon, {})
7789
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {})
7806
7790
  }
7807
7791
  ),
7808
7792
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7812,12 +7796,12 @@ function DepositModalInner({
7812
7796
  onClick: onClose,
7813
7797
  className: "rs-modal-close",
7814
7798
  "aria-label": "Close",
7815
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.CloseIcon, {})
7799
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
7816
7800
  }
7817
7801
  )
7818
7802
  ] })
7819
7803
  ] }),
7820
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQCEQZGFcjs.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,
7804
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.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,
7821
7805
  DepositFlow,
7822
7806
  {
7823
7807
  dappWalletClient,