@rhinestone/deposit-modal 0.4.1 → 0.4.3

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.
@@ -63,7 +63,8 @@ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
63
63
 
64
64
 
65
65
 
66
- var _chunkLJJCPDZOcjs = require('./chunk-LJJCPDZO.cjs');
66
+
67
+ var _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
67
68
 
68
69
 
69
70
  var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
@@ -120,7 +121,6 @@ var _viem = require('viem');
120
121
 
121
122
 
122
123
 
123
-
124
124
  // src/components/steps/AssetSelectStep.tsx
125
125
 
126
126
 
@@ -134,7 +134,6 @@ function AssetSelectStep({
134
134
  service,
135
135
  onContinue,
136
136
  onTotalBalanceComputed,
137
- onAssetsLoaded,
138
137
  onDisconnect
139
138
  }) {
140
139
  const [assets, setAssets] = _react.useState.call(void 0, []);
@@ -143,13 +142,12 @@ function AssetSelectStep({
143
142
  const [error, setError] = _react.useState.call(void 0, null);
144
143
  const defaultAssetId = _react.useMemo.call(void 0, () => {
145
144
  if (!defaultSourceChain || !defaultSourceToken) return null;
146
- return _chunkLJJCPDZOcjs.getAssetId.call(void 0, {
145
+ return _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
147
146
  chainId: defaultSourceChain,
148
147
  token: defaultSourceToken
149
148
  });
150
149
  }, [defaultSourceChain, defaultSourceToken]);
151
- const onTotalBalanceComputedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
152
- const onAssetsLoadedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onAssetsLoaded);
150
+ const onTotalBalanceComputedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
153
151
  _react.useEffect.call(void 0, () => {
154
152
  let active = true;
155
153
  function emitAssetsUpdate(currentAssets) {
@@ -158,7 +156,6 @@ function AssetSelectStep({
158
156
  0
159
157
  );
160
158
  _optionalChain([onTotalBalanceComputedRef, 'access', _2 => _2.current, 'optionalCall', _3 => _3(total)]);
161
- if (currentAssets.length > 0) _optionalChain([onAssetsLoadedRef, 'access', _4 => _4.current, 'optionalCall', _5 => _5(currentAssets)]);
162
159
  }
163
160
  async function loadPortfolio() {
164
161
  if (!address) {
@@ -170,7 +167,7 @@ function AssetSelectStep({
170
167
  try {
171
168
  const portfolio = await service.fetchPortfolio(address);
172
169
  if (!active) return;
173
- const portfolioAssets = _chunkLJJCPDZOcjs.portfolioToAssets.call(void 0, portfolio.tokens);
170
+ const portfolioAssets = _chunkEDUWRMQIcjs.portfolioToAssets.call(void 0, portfolio.tokens);
174
171
  setAssets(portfolioAssets);
175
172
  emitAssetsUpdate(portfolioAssets);
176
173
  const hasNative = portfolioAssets.some(
@@ -202,7 +199,7 @@ function AssetSelectStep({
202
199
  return () => {
203
200
  active = false;
204
201
  };
205
- }, [address, publicClient, service, onTotalBalanceComputedRef, onAssetsLoadedRef]);
202
+ }, [address, publicClient, service, onTotalBalanceComputedRef]);
206
203
  _react.useEffect.call(void 0, () => {
207
204
  if (!defaultAssetId || selectedAssetId) return;
208
205
  if (assets.some((asset) => asset.id === defaultAssetId)) {
@@ -210,12 +207,12 @@ function AssetSelectStep({
210
207
  }
211
208
  }, [assets, defaultAssetId, selectedAssetId]);
212
209
  const allowedChainSet = _react.useMemo.call(void 0,
213
- () => _optionalChain([allowedRoutes, 'optionalAccess', _6 => _6.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
214
- [_optionalChain([allowedRoutes, 'optionalAccess', _7 => _7.sourceChains])]
210
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _4 => _4.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
211
+ [_optionalChain([allowedRoutes, 'optionalAccess', _5 => _5.sourceChains])]
215
212
  );
216
213
  const allowedTokenSet = _react.useMemo.call(void 0,
217
- () => _optionalChain([allowedRoutes, 'optionalAccess', _8 => _8.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
218
- [_optionalChain([allowedRoutes, 'optionalAccess', _9 => _9.sourceTokens])]
214
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _6 => _6.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
215
+ [_optionalChain([allowedRoutes, 'optionalAccess', _7 => _7.sourceTokens])]
219
216
  );
220
217
  const rows = _react.useMemo.call(void 0, () => {
221
218
  return assets.filter((a) => {
@@ -246,7 +243,7 @@ function AssetSelectStep({
246
243
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
247
244
  const numeric = Number(raw);
248
245
  if (!Number.isFinite(numeric)) return raw;
249
- return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
246
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
250
247
  } catch (e3) {
251
248
  return asset.balance;
252
249
  }
@@ -254,20 +251,20 @@ function AssetSelectStep({
254
251
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
255
252
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
256
253
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
257
- _chunkLJJCPDZOcjs.BodyHeader,
254
+ _chunkEDUWRMQIcjs.BodyHeader,
258
255
  {
259
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
256
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
260
257
  title: "Your assets",
261
258
  subtitle: "Select source assets to transfer"
262
259
  }
263
260
  ),
264
261
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
265
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-text-tertiary" }),
262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
266
263
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
267
264
  ] }),
268
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
265
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
269
266
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
270
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, { className: "rs-empty-icon" }),
267
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
271
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
272
269
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
273
270
  address.slice(0, 6),
@@ -334,14 +331,14 @@ function AssetSelectStep({
334
331
  ] })
335
332
  ] })
336
333
  ] }),
337
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
334
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
338
335
  ]
339
336
  },
340
337
  asset.id
341
338
  );
342
339
  }) }),
343
340
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
344
- _chunkLJJCPDZOcjs.Button,
341
+ _chunkEDUWRMQIcjs.Button,
345
342
  {
346
343
  onClick: () => selectedAsset && onContinue(selectedAsset),
347
344
  disabled: !selectedAsset,
@@ -350,15 +347,15 @@ function AssetSelectStep({
350
347
  }
351
348
  )
352
349
  ] }),
353
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
350
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
354
351
  ] });
355
352
  }
356
353
  async function fetchNativeAssets(address, publicClient, existing) {
357
354
  const existingIds = new Set(existing.map((asset) => asset.id));
358
- const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
355
+ const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
359
356
  if (!connectedChainId) return [];
360
357
  if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
361
- const id = _chunkLJJCPDZOcjs.getAssetId.call(void 0, {
358
+ const id = _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
362
359
  chainId: connectedChainId,
363
360
  token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
364
361
  });
@@ -526,9 +523,9 @@ function AmountStep({
526
523
  const [isCheckingLiquidity, setIsCheckingLiquidity] = _react.useState.call(void 0, false);
527
524
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
528
525
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
529
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13(), 'access', _14 => _14.toLowerCase, 'call', _15 => _15()]) === "max";
526
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11(), 'access', _12 => _12.toLowerCase, 'call', _13 => _13()]) === "max";
530
527
  const chainMismatch = Boolean(
531
- _optionalChain([walletClient, 'optionalAccess', _16 => _16.chain, 'optionalAccess', _17 => _17.id]) && walletClient.chain.id !== asset.chainId
528
+ _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
532
529
  );
533
530
  const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
534
531
  const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, asset.symbol);
@@ -555,7 +552,7 @@ function AmountStep({
555
552
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
556
553
  if (!balanceTarget || !publicClient) return;
557
554
  try {
558
- const bal = _chunkLJJCPDZOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
555
+ const bal = _chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
559
556
  address: asset.token,
560
557
  abi: _viem.erc20Abi,
561
558
  functionName: "balanceOf",
@@ -576,7 +573,7 @@ function AmountStep({
576
573
  hasAttemptedSwitch.current = true;
577
574
  switchChain(asset.chainId).catch((err) => {
578
575
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
579
- setError(_chunkLJJCPDZOcjs.formatUserError.call(void 0, raw));
576
+ setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
580
577
  });
581
578
  }
582
579
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -629,7 +626,7 @@ function AmountStep({
629
626
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
630
627
  const numeric = Number(raw);
631
628
  if (!Number.isFinite(numeric)) return raw;
632
- return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
629
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
633
630
  } catch (e8) {
634
631
  return "\u2026";
635
632
  }
@@ -648,8 +645,8 @@ function AmountStep({
648
645
  return null;
649
646
  }
650
647
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
651
- const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
652
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _20 => _20.maxDepositUsd]), () => ( null));
648
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
649
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
653
650
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
654
651
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
655
652
  const exceedsBalance = Boolean(
@@ -658,7 +655,7 @@ function AmountStep({
658
655
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
659
656
  const handlePresetClick = (percentage) => {
660
657
  if (balance === null) return;
661
- _optionalChain([onCtaClick, 'optionalCall', _21 => _21(percentage === 100 ? "Max" : `${percentage}%`)]);
658
+ _optionalChain([onCtaClick, 'optionalCall', _19 => _19(percentage === 100 ? "Max" : `${percentage}%`)]);
662
659
  const next = formatAmountFromBalance(
663
660
  balance,
664
661
  asset.decimals,
@@ -705,33 +702,35 @@ function AmountStep({
705
702
  return;
706
703
  }
707
704
  setError(null);
708
- _optionalChain([onCtaClick, 'optionalCall', _22 => _22("continue")]);
709
- setIsCheckingLiquidity(true);
705
+ _optionalChain([onCtaClick, 'optionalCall', _20 => _20("continue")]);
710
706
  let liquidityWarning;
711
- try {
712
- const liquidity = await service.checkLiquidity({
713
- sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _23 => _23.chainId]), () => ( asset.chainId)),
714
- sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _24 => _24.token]), () => ( asset.token)),
715
- destinationChainId: targetChain,
716
- destinationToken: targetToken,
717
- amount: amountInUnits.toString()
718
- });
719
- if (liquidity.unlimited || liquidity.hasLiquidity) {
720
- liquidityWarning = void 0;
721
- } else if (liquidity.maxAmount !== null) {
722
- liquidityWarning = {
723
- kind: "low",
724
- maxAmount: liquidity.maxAmount,
725
- decimals: liquidity.decimals,
726
- symbol: liquidity.symbol
727
- };
728
- } else {
729
- liquidityWarning = { kind: "unavailable" };
707
+ if (_optionalChain([uiConfig, 'optionalAccess', _21 => _21.checkLiquidity])) {
708
+ setIsCheckingLiquidity(true);
709
+ try {
710
+ const liquidity = await service.checkLiquidity({
711
+ sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _22 => _22.chainId]), () => ( asset.chainId)),
712
+ sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _23 => _23.token]), () => ( asset.token)),
713
+ destinationChainId: targetChain,
714
+ destinationToken: targetToken,
715
+ amount: amountInUnits.toString()
716
+ });
717
+ if (liquidity.unlimited || liquidity.hasLiquidity) {
718
+ liquidityWarning = void 0;
719
+ } else if (liquidity.maxAmount !== null) {
720
+ liquidityWarning = {
721
+ kind: "low",
722
+ maxAmount: liquidity.maxAmount,
723
+ decimals: liquidity.decimals,
724
+ symbol: liquidity.symbol
725
+ };
726
+ } else {
727
+ liquidityWarning = { kind: "unavailable" };
728
+ }
729
+ } catch (e11) {
730
+ liquidityWarning = { kind: "check-failed" };
731
+ } finally {
732
+ setIsCheckingLiquidity(false);
730
733
  }
731
- } catch (e11) {
732
- liquidityWarning = { kind: "check-failed" };
733
- } finally {
734
- setIsCheckingLiquidity(false);
735
734
  }
736
735
  onContinue(
737
736
  sourceAmount.toString(),
@@ -748,7 +747,7 @@ function AmountStep({
748
747
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
749
748
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
750
749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
751
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Wallet deposit" }),
750
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
752
751
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
753
752
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
754
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -768,13 +767,13 @@ function AmountStep({
768
767
  " available",
769
768
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
770
769
  " (~",
771
- _chunkLJJCPDZOcjs.currencyFormatter.format(balanceUsd),
770
+ _chunkEDUWRMQIcjs.currencyFormatter.format(balanceUsd),
772
771
  ")"
773
772
  ] })
774
773
  ] }),
775
774
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
776
775
  "Min. deposit ",
777
- _chunkLJJCPDZOcjs.currencyFormatter.format(minDepositUsd)
776
+ _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
778
777
  ] })
779
778
  ] })
780
779
  ] }),
@@ -815,13 +814,13 @@ function AmountStep({
815
814
  ] }),
816
815
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
817
816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
818
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkLJJCPDZOcjs.currencyFormatter.format(balanceAfterUsd) })
817
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
819
818
  ] })
820
819
  ] }),
821
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
822
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
820
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.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, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
823
822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
824
- _chunkLJJCPDZOcjs.Button,
823
+ _chunkEDUWRMQIcjs.Button,
825
824
  {
826
825
  onClick: handleContinue,
827
826
  fullWidth: true,
@@ -832,7 +831,7 @@ function AmountStep({
832
831
  }
833
832
  )
834
833
  ] }),
835
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
834
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
836
835
  ] });
837
836
  }
838
837
 
@@ -869,7 +868,7 @@ function ConfirmStep({
869
868
  const [quote, setQuote] = _react.useState.call(void 0, null);
870
869
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
871
870
  const chainMismatch = Boolean(
872
- _optionalChain([walletClient, 'optionalAccess', _25 => _25.chain, 'optionalAccess', _26 => _26.id]) && walletClient.chain.id !== asset.chainId
871
+ _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
873
872
  );
874
873
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
875
874
  const targetSymbol = sameRoute ? asset.symbol : _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
@@ -879,12 +878,16 @@ function ConfirmStep({
879
878
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
880
879
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
881
880
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
882
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkLJJCPDZOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
881
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
883
882
  const receiveDisplay = (() => {
884
883
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
884
+ if (quote) {
885
+ const quoted = _chunkEDUWRMQIcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
886
+ if (quoted !== void 0) return quoted;
887
+ }
885
888
  const usdValue = Number(targetAmount);
886
889
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
887
- const estimate = _chunkLJJCPDZOcjs.formatReceiveEstimate.call(void 0, {
890
+ const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
888
891
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
889
892
  sourceSymbol: asset.symbol,
890
893
  targetSymbol,
@@ -892,10 +895,10 @@ function ConfirmStep({
892
895
  prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
893
896
  });
894
897
  if (estimate !== void 0) return estimate;
895
- return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedSendAmount} ${asset.symbol}`;
898
+ return targetSymbol;
896
899
  })();
897
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeSponsored]), () => ( false));
898
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
900
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _26 => _26.feeSponsored]), () => ( false));
901
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
899
902
  const feeDisplay = quote ? `$${quote.fees.totalUsd.toFixed(2)}` : null;
900
903
  const estimatedTimeDisplay = quote ? quote.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.estimatedFillTimeSeconds / 60)} min` : estimatedTime;
901
904
  _react.useEffect.call(void 0, () => {
@@ -903,7 +906,7 @@ function ConfirmStep({
903
906
  hasAttemptedSwitch.current = true;
904
907
  switchChain(asset.chainId).catch((err) => {
905
908
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
906
- setError(_chunkLJJCPDZOcjs.formatUserError.call(void 0, raw));
909
+ setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
907
910
  });
908
911
  }
909
912
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -983,7 +986,7 @@ function ConfirmStep({
983
986
  const result = await executeTransfer(amountUnits);
984
987
  hash = result.txHash;
985
988
  resolvedSourceToken = result.sourceToken;
986
- } else if (_chunkLJJCPDZOcjs.isNativeAsset.call(void 0, asset)) {
989
+ } else if (_chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset)) {
987
990
  hash = await walletClient.sendTransaction({
988
991
  account,
989
992
  chain,
@@ -1000,20 +1003,20 @@ function ConfirmStep({
1000
1003
  args: [transferTo, amountUnits]
1001
1004
  });
1002
1005
  }
1003
- _optionalChain([onDepositSubmitted, 'optionalCall', _29 => _29(hash, asset.chainId, amountUnits.toString())]);
1006
+ _optionalChain([onDepositSubmitted, 'optionalCall', _28 => _28(hash, asset.chainId, amountUnits.toString())]);
1004
1007
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1005
1008
  } catch (err) {
1006
1009
  const raw = err instanceof Error ? err.message : "Transfer failed";
1007
- const message = _chunkLJJCPDZOcjs.formatUserError.call(void 0, raw);
1010
+ const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
1008
1011
  setError(message);
1009
- _optionalChain([onError, 'optionalCall', _30 => _30(message, "TRANSFER_ERROR")]);
1012
+ _optionalChain([onError, 'optionalCall', _29 => _29(message, "TRANSFER_ERROR")]);
1010
1013
  } finally {
1011
1014
  setIsSubmitting(false);
1012
1015
  }
1013
1016
  };
1014
1017
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1015
1018
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1016
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Review deposit" }),
1019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
1017
1020
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1018
1021
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1019
1022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1067,14 +1070,14 @@ function ConfirmStep({
1067
1070
  children: feeDisplay
1068
1071
  }
1069
1072
  ),
1070
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, {}) }) })
1073
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.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, _chunkEDUWRMQIcjs.InfoIcon, {}) }) })
1071
1074
  ] })
1072
1075
  ] })
1073
1076
  ] }),
1074
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1075
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
1077
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1078
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
1076
1079
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1077
- _chunkLJJCPDZOcjs.Button,
1080
+ _chunkEDUWRMQIcjs.Button,
1078
1081
  {
1079
1082
  onClick: handleConfirm,
1080
1083
  loading: isSubmitting,
@@ -1085,7 +1088,7 @@ function ConfirmStep({
1085
1088
  }
1086
1089
  )
1087
1090
  ] }),
1088
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
1091
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
1089
1092
  ] });
1090
1093
  }
1091
1094
 
@@ -1108,9 +1111,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1108
1111
  var MAX_POLL_INTERVAL = 3e4;
1109
1112
  var BACKOFF_MULTIPLIER = 1.5;
1110
1113
  function isEventForTx(event, txHash) {
1111
- const eventTxHash = _chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event);
1114
+ const eventTxHash = _chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event);
1112
1115
  if (!eventTxHash) return false;
1113
- return _chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1116
+ return _chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1114
1117
  }
1115
1118
  function truncateHash(hash) {
1116
1119
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1140,7 +1143,7 @@ function formatTimestamp(ms) {
1140
1143
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
1141
1144
  }
1142
1145
  function formatBridgeFailedMessage(event) {
1143
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _31 => _31.data]), () => ( {}));
1146
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _30 => _30.data]), () => ( {}));
1144
1147
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1145
1148
  if (backendMessage.length > 0) {
1146
1149
  const lower = backendMessage.toLowerCase();
@@ -1160,7 +1163,7 @@ function formatBridgeFailedMessage(event) {
1160
1163
  }
1161
1164
  return "Bridge failed";
1162
1165
  }
1163
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1166
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1164
1167
  function DepositNotification({
1165
1168
  deposit,
1166
1169
  smartAccount,
@@ -1195,7 +1198,7 @@ function DepositNotification({
1195
1198
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1196
1199
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1197
1200
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1198
- const depositContextRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, {
1201
+ const depositContextRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, {
1199
1202
  amount,
1200
1203
  sourceChain,
1201
1204
  sourceToken: token,
@@ -1204,8 +1207,8 @@ function DepositNotification({
1204
1207
  targetToken,
1205
1208
  hasPostBridgeActions
1206
1209
  });
1207
- const onCompleteRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onComplete);
1208
- const onFailedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onFailed);
1210
+ const onCompleteRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onComplete);
1211
+ const onFailedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onFailed);
1209
1212
  const handleComplete = _react.useCallback.call(void 0,
1210
1213
  (destTxHash) => {
1211
1214
  if (completedRef.current) return;
@@ -1214,7 +1217,7 @@ function DepositNotification({
1214
1217
  setCompletedAt(Date.now());
1215
1218
  setStatus("complete");
1216
1219
  const context = depositContextRef.current;
1217
- _optionalChain([onCompleteRef, 'access', _32 => _32.current, 'optionalCall', _33 => _33(txHash, destTxHash, {
1220
+ _optionalChain([onCompleteRef, 'access', _31 => _31.current, 'optionalCall', _32 => _32(txHash, destTxHash, {
1218
1221
  amount: context.amount,
1219
1222
  sourceChain: context.sourceChain,
1220
1223
  sourceToken: context.sourceToken,
@@ -1230,7 +1233,7 @@ function DepositNotification({
1230
1233
  if (completedRef.current) return;
1231
1234
  completedRef.current = true;
1232
1235
  setStatus("failed");
1233
- _optionalChain([onFailedRef, 'access', _34 => _34.current, 'optionalCall', _35 => _35(txHash, error)]);
1236
+ _optionalChain([onFailedRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34(txHash, error)]);
1234
1237
  },
1235
1238
  [onFailedRef, txHash]
1236
1239
  );
@@ -1249,26 +1252,26 @@ function DepositNotification({
1249
1252
  const lastEvent = data.lastEvent;
1250
1253
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
1251
1254
  const awaitingPostBridgeSwap = depositContextRef.current.hasPostBridgeActions;
1252
- if (_optionalChain([eventForTx, 'optionalAccess', _36 => _36.type]) === "post-bridge-swap-complete") {
1253
- const swapTxHash = _optionalChain([eventForTx, 'access', _37 => _37.data, 'optionalAccess', _38 => _38.swap, 'optionalAccess', _39 => _39.transactionHash]);
1255
+ if (_optionalChain([eventForTx, 'optionalAccess', _35 => _35.type]) === "post-bridge-swap-complete") {
1256
+ const swapTxHash = _optionalChain([eventForTx, 'access', _36 => _36.data, 'optionalAccess', _37 => _37.swap, 'optionalAccess', _38 => _38.transactionHash]);
1254
1257
  handleComplete(swapTxHash);
1255
1258
  return;
1256
1259
  }
1257
- if (_optionalChain([eventForTx, 'optionalAccess', _40 => _40.type]) === "post-bridge-swap-failed") {
1260
+ if (_optionalChain([eventForTx, 'optionalAccess', _39 => _39.type]) === "post-bridge-swap-failed") {
1258
1261
  handleFailed(formatBridgeFailedMessage(eventForTx));
1259
1262
  return;
1260
1263
  }
1261
- if (_optionalChain([eventForTx, 'optionalAccess', _41 => _41.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1262
- const destTx = _optionalChain([eventForTx, 'access', _42 => _42.data, 'optionalAccess', _43 => _43.destination, 'optionalAccess', _44 => _44.transactionHash]);
1264
+ if (_optionalChain([eventForTx, 'optionalAccess', _40 => _40.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1265
+ const destTx = _optionalChain([eventForTx, 'access', _41 => _41.data, 'optionalAccess', _42 => _42.destination, 'optionalAccess', _43 => _43.transactionHash]);
1263
1266
  handleComplete(destTx);
1264
1267
  return;
1265
1268
  }
1266
- if (_optionalChain([eventForTx, 'optionalAccess', _45 => _45.type]) === "bridge-failed") {
1269
+ if (_optionalChain([eventForTx, 'optionalAccess', _44 => _44.type]) === "bridge-failed") {
1267
1270
  handleFailed(formatBridgeFailedMessage(eventForTx));
1268
1271
  return;
1269
1272
  }
1270
- if (_optionalChain([eventForTx, 'optionalAccess', _46 => _46.type]) === "error") {
1271
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _47 => _47.data, 'optionalAccess', _48 => _48.message]), () => ( "Unknown error"));
1273
+ if (_optionalChain([eventForTx, 'optionalAccess', _45 => _45.type]) === "error") {
1274
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.message]), () => ( "Unknown error"));
1272
1275
  handleFailed(errorMessage);
1273
1276
  return;
1274
1277
  }
@@ -1310,7 +1313,7 @@ function DepositNotification({
1310
1313
  const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1311
1314
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1312
1315
  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.";
1313
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1316
+ 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, _chunkEDUWRMQIcjs.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, _chunkEDUWRMQIcjs.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,
1314
1317
  "svg",
1315
1318
  {
1316
1319
  className: "rs-deposit-notification-spinner",
@@ -1360,7 +1363,7 @@ function DepositNotification({
1360
1363
  className: "rs-deposit-notification-close",
1361
1364
  onClick: () => onDismiss(deposit.id),
1362
1365
  "aria-label": "Dismiss",
1363
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
1366
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
1364
1367
  }
1365
1368
  )
1366
1369
  ] }),
@@ -1376,7 +1379,7 @@ function DepositNotification({
1376
1379
  "aria-expanded": expanded,
1377
1380
  children: [
1378
1381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1379
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1382
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1380
1383
  ]
1381
1384
  }
1382
1385
  ),
@@ -1477,7 +1480,7 @@ function resolveSolanaTokenMeta(token) {
1477
1480
  return {};
1478
1481
  }
1479
1482
  function getDepositEventDetails(event) {
1480
- if (!_optionalChain([event, 'optionalAccess', _49 => _49.type]) || !isRecord(event.data)) return {};
1483
+ if (!_optionalChain([event, 'optionalAccess', _48 => _48.type]) || !isRecord(event.data)) return {};
1481
1484
  if (event.type === "deposit-received") {
1482
1485
  const chainId = asChainId(event.data.chain);
1483
1486
  const token = asString(event.data.token);
@@ -1492,12 +1495,12 @@ function getDepositEventDetails(event) {
1492
1495
  const source = isRecord(event.data.source) ? event.data.source : void 0;
1493
1496
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1494
1497
  if (source || deposit) {
1495
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _50 => _50.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _51 => _51.chain]))));
1496
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _52 => _52.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _53 => _53.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _54 => _54.token]))));
1498
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _49 => _49.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _50 => _50.chain]))));
1499
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _51 => _51.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _52 => _52.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _53 => _53.token]))));
1497
1500
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
1498
1501
  return {
1499
1502
  chainId,
1500
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _55 => _55.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _56 => _56.amount])))),
1503
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _54 => _54.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _55 => _55.amount])))),
1501
1504
  token,
1502
1505
  ...solanaMeta
1503
1506
  };
@@ -1533,12 +1536,12 @@ function DepositAddressStep({
1533
1536
  }) {
1534
1537
  const hasSolana = Boolean(solanaDepositAddress);
1535
1538
  const allowedChainSet = _react.useMemo.call(void 0,
1536
- () => _optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1537
- [_optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceChains])]
1539
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _56 => _56.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1540
+ [_optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceChains])]
1538
1541
  );
1539
1542
  const allowedTokenSet = _react.useMemo.call(void 0,
1540
- () => _optionalChain([allowedRoutes, 'optionalAccess', _59 => _59.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1541
- [_optionalChain([allowedRoutes, 'optionalAccess', _60 => _60.sourceTokens])]
1543
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1544
+ [_optionalChain([allowedRoutes, 'optionalAccess', _59 => _59.sourceTokens])]
1542
1545
  );
1543
1546
  const evmChainIds = _react.useMemo.call(void 0, () => {
1544
1547
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
@@ -1630,8 +1633,8 @@ function DepositAddressStep({
1630
1633
  function handlePointerDown(event) {
1631
1634
  const target = event.target;
1632
1635
  if (!target) return;
1633
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _61 => _61.current, 'optionalAccess', _62 => _62.contains, 'call', _63 => _63(target)]);
1634
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _64 => _64.current, 'optionalAccess', _65 => _65.contains, 'call', _66 => _66(target)]);
1636
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _60 => _60.current, 'optionalAccess', _61 => _61.contains, 'call', _62 => _62(target)]);
1637
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _63 => _63.current, 'optionalAccess', _64 => _64.contains, 'call', _65 => _65(target)]);
1635
1638
  if (clickedChainDropdown || clickedTokenDropdown) return;
1636
1639
  setChainDropdownOpen(false);
1637
1640
  setTokenDropdownOpen(false);
@@ -1644,7 +1647,7 @@ function DepositAddressStep({
1644
1647
  };
1645
1648
  }, [chainDropdownOpen, tokenDropdownOpen]);
1646
1649
  const handleCopy = _react.useCallback.call(void 0, async () => {
1647
- _optionalChain([onCopyAddress, 'optionalCall', _67 => _67()]);
1650
+ _optionalChain([onCopyAddress, 'optionalCall', _66 => _66()]);
1648
1651
  try {
1649
1652
  await navigator.clipboard.writeText(displayAddress);
1650
1653
  setCopied(true);
@@ -1723,10 +1726,10 @@ function DepositAddressStep({
1723
1726
  return;
1724
1727
  }
1725
1728
  const event = status.lastEvent;
1726
- const eventTxHash = _chunkLJJCPDZOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1729
+ const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1727
1730
  if (baselineTxHashRef.current === void 0) {
1728
1731
  baselineTxHashRef.current = eventTxHash;
1729
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1732
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1730
1733
  const details = getDepositEventDetails(event);
1731
1734
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1732
1735
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1758,7 +1761,7 @@ function DepositAddressStep({
1758
1761
  directTransfer
1759
1762
  };
1760
1763
  setNotifications((prev) => [notification, ...prev]);
1761
- _optionalChain([onDepositSubmittedRef, 'access', _68 => _68.current, 'optionalCall', _69 => _69({
1764
+ _optionalChain([onDepositSubmittedRef, 'access', _67 => _67.current, 'optionalCall', _68 => _68({
1762
1765
  txHash: eventTxHash,
1763
1766
  sourceChain: chainId,
1764
1767
  amount,
@@ -1770,7 +1773,7 @@ function DepositAddressStep({
1770
1773
  if (!cancelled) {
1771
1774
  const msg = err instanceof Error ? err.message : "Failed to check status";
1772
1775
  setPollingError(msg);
1773
- _optionalChain([onErrorRef, 'access', _70 => _70.current, 'optionalCall', _71 => _71(msg, "STATUS_POLL_ERROR")]);
1776
+ _optionalChain([onErrorRef, 'access', _69 => _69.current, 'optionalCall', _70 => _70(msg, "STATUS_POLL_ERROR")]);
1774
1777
  }
1775
1778
  }
1776
1779
  if (!cancelled) {
@@ -1786,14 +1789,14 @@ function DepositAddressStep({
1786
1789
  const handleNotificationComplete = _react.useCallback.call(void 0,
1787
1790
  (txHash, destinationTxHash, context) => {
1788
1791
  isTrackingRef.current = false;
1789
- _optionalChain([onDepositCompleteRef, 'access', _72 => _72.current, 'optionalCall', _73 => _73(txHash, destinationTxHash, context)]);
1792
+ _optionalChain([onDepositCompleteRef, 'access', _71 => _71.current, 'optionalCall', _72 => _72(txHash, destinationTxHash, context)]);
1790
1793
  },
1791
1794
  []
1792
1795
  );
1793
1796
  const handleNotificationFailed = _react.useCallback.call(void 0,
1794
1797
  (txHash, error) => {
1795
1798
  isTrackingRef.current = false;
1796
- _optionalChain([onDepositFailedRef, 'access', _74 => _74.current, 'optionalCall', _75 => _75(txHash, error)]);
1799
+ _optionalChain([onDepositFailedRef, 'access', _73 => _73.current, 'optionalCall', _74 => _74(txHash, error)]);
1797
1800
  },
1798
1801
  []
1799
1802
  );
@@ -1803,7 +1806,7 @@ function DepositAddressStep({
1803
1806
  const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1804
1807
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1805
1808
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1806
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1809
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1807
1810
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1808
1811
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1809
1812
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1827,7 +1830,7 @@ function DepositAddressStep({
1827
1830
  }
1828
1831
  ),
1829
1832
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) }),
1830
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1833
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1831
1834
  ]
1832
1835
  }
1833
1836
  ),
@@ -1857,9 +1860,9 @@ function DepositAddressStep({
1857
1860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1858
1861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1859
1862
  "Min.$",
1860
- (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1861
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1862
- _chunkLJJCPDZOcjs.InfoIcon,
1863
+ (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _75 => _75.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0.1))).toFixed(2),
1864
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1865
+ _chunkEDUWRMQIcjs.InfoIcon,
1863
1866
  {
1864
1867
  className: "rs-deposit-address-min-icon",
1865
1868
  "aria-hidden": "true"
@@ -1887,7 +1890,7 @@ function DepositAddressStep({
1887
1890
  }
1888
1891
  ),
1889
1892
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1890
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1893
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1891
1894
  ]
1892
1895
  }
1893
1896
  ),
@@ -1938,7 +1941,7 @@ function DepositAddressStep({
1938
1941
  className: "rs-deposit-address-copy",
1939
1942
  onClick: handleCopy,
1940
1943
  children: [
1941
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CopyIcon, {}),
1944
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
1942
1945
  copied ? "Copied!" : "Copy address"
1943
1946
  ]
1944
1947
  }
@@ -1946,7 +1949,7 @@ function DepositAddressStep({
1946
1949
  ]
1947
1950
  }
1948
1951
  ),
1949
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1952
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.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." }),
1950
1953
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1951
1954
  "div",
1952
1955
  {
@@ -1964,16 +1967,16 @@ function DepositAddressStep({
1964
1967
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1965
1968
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1966
1969
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1967
- _chunkLJJCPDZOcjs.Tooltip,
1970
+ _chunkEDUWRMQIcjs.Tooltip,
1968
1971
  {
1969
1972
  className: "rs-price-impact-info",
1970
1973
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1971
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
1974
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
1972
1975
  }
1973
1976
  )
1974
1977
  ] }),
1975
1978
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1976
- _chunkLJJCPDZOcjs.ChevronDownIcon,
1979
+ _chunkEDUWRMQIcjs.ChevronDownIcon,
1977
1980
  {
1978
1981
  className: "rs-price-impact-chevron",
1979
1982
  "aria-hidden": "true"
@@ -1984,29 +1987,29 @@ function DepositAddressStep({
1984
1987
  ),
1985
1988
  /* @__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: [
1986
1989
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1987
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PercentIcon, {}) }),
1990
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PercentIcon, {}) }),
1988
1991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1989
1992
  "Max slippage: ",
1990
1993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1991
1994
  ] }),
1992
1995
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1993
- _chunkLJJCPDZOcjs.Tooltip,
1996
+ _chunkEDUWRMQIcjs.Tooltip,
1994
1997
  {
1995
1998
  className: "rs-price-impact-info",
1996
1999
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
1997
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
2000
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
1998
2001
  }
1999
2002
  )
2000
2003
  ] }),
2001
2004
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2002
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ClockIcon, {}) }),
2005
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ClockIcon, {}) }),
2003
2006
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2004
2007
  "Processing time: ",
2005
2008
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2006
2009
  ] })
2007
2010
  ] }),
2008
2011
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2009
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PlusCircleIcon, {}) }),
2012
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PlusCircleIcon, {}) }),
2010
2013
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2011
2014
  "Max deposit:",
2012
2015
  " ",
@@ -2038,7 +2041,7 @@ function DepositAddressStep({
2038
2041
  },
2039
2042
  deposit.id
2040
2043
  )) }),
2041
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2042
2045
  ] });
2043
2046
  }
2044
2047
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2054,13 +2057,13 @@ DepositAddressStep.displayName = "DepositAddressStep";
2054
2057
  function FinalisingDepositStep() {
2055
2058
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2056
2059
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-finalising-body", children: [
2057
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2060
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2058
2061
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2059
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2060
2063
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2061
2064
  ] })
2062
2065
  ] }),
2063
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2064
2067
  ] });
2065
2068
  }
2066
2069
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2091,7 +2094,7 @@ function SwappedOrderTracker({
2091
2094
  ];
2092
2095
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2093
2096
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2094
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HandCoinsIcon, {}), title }),
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HandCoinsIcon, {}), title }),
2095
2098
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2096
2099
  const status = stepStates[idx];
2097
2100
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2105,7 +2108,7 @@ function SwappedOrderTracker({
2105
2108
  {
2106
2109
  className: "rs-swapped-tracker-step-marker",
2107
2110
  "aria-hidden": "true",
2108
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) : null
2111
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) : null
2109
2112
  }
2110
2113
  )
2111
2114
  ]
@@ -2132,7 +2135,7 @@ function SwappedOrderTracker({
2132
2135
  }
2133
2136
  )
2134
2137
  ] }),
2135
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2138
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2136
2139
  ] });
2137
2140
  }
2138
2141
  function formatTrackerAmount(amount) {
@@ -2250,7 +2253,7 @@ function SwappedIframeStep({
2250
2253
  if (cancelled) return;
2251
2254
  const message = err instanceof Error ? err.message : loadErrorFallback;
2252
2255
  setLoadError(message);
2253
- _optionalChain([onErrorRef, 'access', _78 => _78.current, 'optionalCall', _79 => _79(message, loadErrorCode)]);
2256
+ _optionalChain([onErrorRef, 'access', _77 => _77.current, 'optionalCall', _78 => _78(message, loadErrorCode)]);
2254
2257
  });
2255
2258
  return () => {
2256
2259
  cancelled = true;
@@ -2296,10 +2299,10 @@ function SwappedIframeStep({
2296
2299
  const status = await service.fetchLatestStatus(smartAccount);
2297
2300
  if (cancelled) return;
2298
2301
  const event = status.lastEvent;
2299
- const eventTxHash = _chunkLJJCPDZOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2302
+ const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2300
2303
  if (baselineDepositTxHashRef.current === void 0) {
2301
2304
  baselineDepositTxHashRef.current = eventTxHash;
2302
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2305
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2303
2306
  currentDepositTxHashRef.current = eventTxHash;
2304
2307
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2305
2308
  }
@@ -2324,10 +2327,10 @@ function SwappedIframeStep({
2324
2327
  }, [service, smartAccount]);
2325
2328
  _react.useEffect.call(void 0, () => {
2326
2329
  if (fastDepositPollEnabledRef.current) return;
2327
- const status = _optionalChain([orderState, 'optionalAccess', _80 => _80.status]);
2330
+ const status = _optionalChain([orderState, 'optionalAccess', _79 => _79.status]);
2328
2331
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
2329
2332
  fastDepositPollEnabledRef.current = true;
2330
- _optionalChain([rescheduleDepositPollRef, 'access', _81 => _81.current, 'optionalCall', _82 => _82(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2333
+ _optionalChain([rescheduleDepositPollRef, 'access', _80 => _80.current, 'optionalCall', _81 => _81(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2331
2334
  }, [orderState]);
2332
2335
  _react.useEffect.call(void 0, () => {
2333
2336
  function onMessage(e) {
@@ -2335,16 +2338,16 @@ function SwappedIframeStep({
2335
2338
  const parsed = parseSwappedIframeMessage(e.data);
2336
2339
  if (!parsed) return;
2337
2340
  setOrderState((prev) => ({
2338
- orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderId]))), () => ( "")),
2341
+ orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderId]))), () => ( "")),
2339
2342
  status: parsed.status,
2340
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCrypto]))), () => ( null)),
2341
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.orderCryptoAmount]))), () => ( null)),
2342
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _86 => _86.transactionId]))), () => ( null)),
2343
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderCrypto]))), () => ( null)),
2344
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCryptoAmount]))), () => ( null)),
2345
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.transactionId]))), () => ( null)),
2343
2346
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
2344
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountUsd]), () => ( null)),
2345
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.paidAmountEur]), () => ( null)),
2346
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.onrampFeeUsd]), () => ( null)),
2347
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _90 => _90.paymentMethod]), () => ( null))
2347
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _86 => _86.paidAmountUsd]), () => ( null)),
2348
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountEur]), () => ( null)),
2349
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.onrampFeeUsd]), () => ( null)),
2350
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.paymentMethod]), () => ( null))
2348
2351
  }));
2349
2352
  }
2350
2353
  window.addEventListener("message", onMessage);
@@ -2356,17 +2359,17 @@ function SwappedIframeStep({
2356
2359
  }
2357
2360
  }, [phase, orderState]);
2358
2361
  const stepStates = _react.useMemo.call(void 0,
2359
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _91 => _91.status]), () => ( null)), latestEvent),
2362
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _90 => _90.status]), () => ( null)), latestEvent),
2360
2363
  [orderState, latestEvent]
2361
2364
  );
2362
2365
  const terminalState = _react.useMemo.call(void 0, () => {
2363
- if (_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2366
+ if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2364
2367
  return {
2365
2368
  kind: "failed",
2366
- message: _chunkLJJCPDZOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2369
+ message: _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2367
2370
  };
2368
2371
  }
2369
- if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
2372
+ if (_optionalChain([orderState, 'optionalAccess', _91 => _91.status]) === "order_cancelled") {
2370
2373
  const banner = bannerForStatus("order_cancelled", {});
2371
2374
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
2372
2375
  }
@@ -2374,7 +2377,7 @@ function SwappedIframeStep({
2374
2377
  }, [latestEvent, orderState, bannerForStatus]);
2375
2378
  _react.useEffect.call(void 0, () => {
2376
2379
  if (completeFiredRef.current || failedFiredRef.current) return;
2377
- const t = _optionalChain([latestEvent, 'optionalAccess', _93 => _93.type]);
2380
+ const t = _optionalChain([latestEvent, 'optionalAccess', _92 => _92.type]);
2378
2381
  const isSuccess = t === "bridge-complete" || t === "post-bridge-swap-complete";
2379
2382
  if (!isSuccess) return;
2380
2383
  const txHash = currentDepositTxHashRef.current;
@@ -2382,22 +2385,22 @@ function SwappedIframeStep({
2382
2385
  completeFiredRef.current = true;
2383
2386
  onSwappedCompleteRef.current({
2384
2387
  txHash,
2385
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2388
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _93 => _93.orderCrypto]), () => ( null)),
2386
2389
  // Base-unit source amount from the deposit row/event, consistent with the
2387
2390
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2388
- amount: _nullishCoalesce(_chunkLJJCPDZOcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2391
+ amount: _nullishCoalesce(_chunkEDUWRMQIcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2389
2392
  });
2390
2393
  }, [latestEvent, orderState]);
2391
2394
  _react.useEffect.call(void 0, () => {
2392
2395
  if (failedFiredRef.current || completeFiredRef.current) return;
2393
- if (!_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2396
+ if (!_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2394
2397
  const txHash = currentDepositTxHashRef.current;
2395
2398
  if (!txHash) return;
2396
2399
  failedFiredRef.current = true;
2397
2400
  setPhase("tracker");
2398
- _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2401
+ _optionalChain([onSwappedFailedRef, 'access', _94 => _94.current, 'optionalCall', _95 => _95(
2399
2402
  txHash,
2400
- _chunkLJJCPDZOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2403
+ _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2401
2404
  )]);
2402
2405
  }, [latestEvent]);
2403
2406
  if (phase === "tracker") {
@@ -2408,8 +2411,8 @@ function SwappedIframeStep({
2408
2411
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2409
2412
  SwappedOrderTracker,
2410
2413
  {
2411
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCryptoAmount]), () => ( null)),
2412
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _98 => _98.orderCrypto]), () => ( "USDC")),
2414
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _96 => _96.orderCryptoAmount]), () => ( null)),
2415
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCrypto]), () => ( "USDC")),
2413
2416
  stepStates,
2414
2417
  terminal: terminalState,
2415
2418
  onRetry: () => setRetryToken((n) => n + 1),
@@ -2431,7 +2434,7 @@ function SwappedIframeStep({
2431
2434
  }
2432
2435
  )
2433
2436
  ] }),
2434
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2437
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2435
2438
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2436
2439
  "iframe",
2437
2440
  {
@@ -2445,11 +2448,11 @@ function SwappedIframeStep({
2445
2448
  retryToken
2446
2449
  )
2447
2450
  ] }) }),
2448
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2451
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2449
2452
  ] });
2450
2453
  }
2451
2454
  function deriveStepStates(swappedStatus, latestEvent) {
2452
- if (_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2455
+ if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2453
2456
  return ["complete", "complete", "failed", "pending"];
2454
2457
  }
2455
2458
  if (swappedStatus === "order_cancelled") {
@@ -2457,7 +2460,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2457
2460
  }
2458
2461
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2459
2462
  const step2Complete = latestEvent !== null;
2460
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _100 => _100.type]) === "post-bridge-swap-complete";
2463
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _98 => _98.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "post-bridge-swap-complete";
2461
2464
  if (step3Complete) {
2462
2465
  return ["complete", "complete", "complete", "pending"];
2463
2466
  }
@@ -2609,7 +2612,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2609
2612
  function ExchangeLogo({ exchange }) {
2610
2613
  const [failed, setFailed] = _react.useState.call(void 0, false);
2611
2614
  if (!exchange.logoUrl || failed) {
2612
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BankIcon, {});
2615
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BankIcon, {});
2613
2616
  }
2614
2617
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2615
2618
  "img",
@@ -2644,7 +2647,7 @@ function ExchangeSelectStep({
2644
2647
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2645
2648
  setExchanges([]);
2646
2649
  setError(message);
2647
- _optionalChain([onError, 'optionalCall', _101 => _101(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2650
+ _optionalChain([onError, 'optionalCall', _100 => _100(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2648
2651
  }).finally(() => {
2649
2652
  if (!cancelled) setLoading(false);
2650
2653
  });
@@ -2655,14 +2658,14 @@ function ExchangeSelectStep({
2655
2658
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2656
2659
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2657
2660
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2658
- _chunkLJJCPDZOcjs.BodyHeader,
2661
+ _chunkEDUWRMQIcjs.BodyHeader,
2659
2662
  {
2660
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.UnplugIcon, {}),
2663
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.UnplugIcon, {}),
2661
2664
  title: "Connect exchange",
2662
2665
  subtitle: "Select an exchange to connect"
2663
2666
  }
2664
2667
  ),
2665
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2668
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2666
2669
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2667
2670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2668
2671
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2688,7 +2691,7 @@ function ExchangeSelectStep({
2688
2691
  )
2689
2692
  ] }),
2690
2693
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2691
- const brand = _chunkLJJCPDZOcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2694
+ const brand = _chunkEDUWRMQIcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2692
2695
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2693
2696
  "button",
2694
2697
  {
@@ -2711,7 +2714,7 @@ function ExchangeSelectStep({
2711
2714
  );
2712
2715
  }) })
2713
2716
  ] }),
2714
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2717
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2715
2718
  ] });
2716
2719
  }
2717
2720
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2723,8 +2726,8 @@ function DepositAddressSkeleton({
2723
2726
  uiConfig,
2724
2727
  allowedRoutes
2725
2728
  }) {
2726
- const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2727
- const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2729
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _101 => _101.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2730
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2728
2731
  const evmChainIds = (() => {
2729
2732
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2730
2733
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
@@ -2741,7 +2744,7 @@ function DepositAddressSkeleton({
2741
2744
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2742
2745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2743
2746
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2744
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2747
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2745
2748
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2746
2749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2747
2750
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2755,7 +2758,7 @@ function DepositAddressSkeleton({
2755
2758
  }
2756
2759
  ),
2757
2760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2758
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2759
2762
  ] })
2760
2763
  ] }),
2761
2764
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2763,9 +2766,9 @@ function DepositAddressSkeleton({
2763
2766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2764
2767
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2765
2768
  "Min.$",
2766
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2767
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2768
- _chunkLJJCPDZOcjs.InfoIcon,
2769
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _103 => _103.minDepositUsd]), () => ( 0.1))).toFixed(2),
2770
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2771
+ _chunkEDUWRMQIcjs.InfoIcon,
2769
2772
  {
2770
2773
  className: "rs-deposit-address-min-icon",
2771
2774
  "aria-hidden": "true"
@@ -2783,7 +2786,7 @@ function DepositAddressSkeleton({
2783
2786
  }
2784
2787
  ),
2785
2788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2786
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2789
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2787
2790
  ] })
2788
2791
  ] })
2789
2792
  ] }),
@@ -2804,7 +2807,7 @@ function DepositAddressSkeleton({
2804
2807
  disabled: true,
2805
2808
  "aria-hidden": "true",
2806
2809
  children: [
2807
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CopyIcon, {}),
2810
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
2808
2811
  "Copy address"
2809
2812
  ]
2810
2813
  }
@@ -2817,16 +2820,16 @@ function DepositAddressSkeleton({
2817
2820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2818
2821
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2819
2822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2820
- _chunkLJJCPDZOcjs.Tooltip,
2823
+ _chunkEDUWRMQIcjs.Tooltip,
2821
2824
  {
2822
2825
  className: "rs-price-impact-info",
2823
2826
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2824
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
2827
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
2825
2828
  }
2826
2829
  )
2827
2830
  ] }),
2828
2831
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2829
- _chunkLJJCPDZOcjs.ChevronDownIcon,
2832
+ _chunkEDUWRMQIcjs.ChevronDownIcon,
2830
2833
  {
2831
2834
  className: "rs-price-impact-chevron",
2832
2835
  "aria-hidden": "true"
@@ -2834,7 +2837,7 @@ function DepositAddressSkeleton({
2834
2837
  )
2835
2838
  ] }) })
2836
2839
  ] }),
2837
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2840
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2838
2841
  ] });
2839
2842
  }
2840
2843
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2866,7 +2869,7 @@ function SolanaTokenSelectStep({
2866
2869
  setError(null);
2867
2870
  const portfolioBySymbol = {};
2868
2871
  try {
2869
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2872
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2870
2873
  solanaAddress
2871
2874
  });
2872
2875
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -2889,12 +2892,12 @@ function SolanaTokenSelectStep({
2889
2892
  };
2890
2893
  }
2891
2894
  }
2892
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2895
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2893
2896
  symbols: Object.keys(portfolioBySymbol)
2894
2897
  });
2895
2898
  } catch (err) {
2896
2899
  if (!active) return;
2897
- _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2900
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2898
2901
  solanaAddress
2899
2902
  });
2900
2903
  setError(
@@ -2919,7 +2922,7 @@ function SolanaTokenSelectStep({
2919
2922
  setTokenBalances(results);
2920
2923
  setLoading(false);
2921
2924
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
2922
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _105 => _105(totalUsd)]);
2925
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _104 => _104(totalUsd)]);
2923
2926
  }
2924
2927
  void loadBalances();
2925
2928
  return () => {
@@ -2941,7 +2944,7 @@ function SolanaTokenSelectStep({
2941
2944
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2942
2945
  const numeric = Number(raw);
2943
2946
  if (!Number.isFinite(numeric)) return raw;
2944
- return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
2947
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
2945
2948
  } catch (e20) {
2946
2949
  return "--";
2947
2950
  }
@@ -2951,20 +2954,20 @@ function SolanaTokenSelectStep({
2951
2954
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2952
2955
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2953
2956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2954
- _chunkLJJCPDZOcjs.BodyHeader,
2957
+ _chunkEDUWRMQIcjs.BodyHeader,
2955
2958
  {
2956
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
2959
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
2957
2960
  title: "Your assets",
2958
2961
  subtitle: "Select source assets to transfer"
2959
2962
  }
2960
2963
  ),
2961
2964
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2962
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-text-tertiary" }),
2965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
2963
2966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2964
2967
  ] }),
2965
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
2968
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
2966
2969
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
2967
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, { className: "rs-empty-icon" }),
2970
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
2968
2971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2969
2972
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2970
2973
  solanaAddress.slice(0, 6),
@@ -3013,14 +3016,14 @@ function SolanaTokenSelectStep({
3013
3016
  ] })
3014
3017
  ] })
3015
3018
  ] }),
3016
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3017
3020
  ]
3018
3021
  },
3019
3022
  entry.token.symbol
3020
3023
  );
3021
3024
  }) }),
3022
3025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3023
- _chunkLJJCPDZOcjs.Button,
3026
+ _chunkEDUWRMQIcjs.Button,
3024
3027
  {
3025
3028
  onClick: () => selectedEntry && onContinue(
3026
3029
  selectedEntry.token,
@@ -3033,7 +3036,7 @@ function SolanaTokenSelectStep({
3033
3036
  }
3034
3037
  )
3035
3038
  ] }),
3036
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3039
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3037
3040
  ] });
3038
3041
  }
3039
3042
 
@@ -3066,7 +3069,7 @@ function SolanaAmountStep({
3066
3069
  const [error, setError] = _react.useState.call(void 0, null);
3067
3070
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3068
3071
  const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, token.symbol);
3069
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3072
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _105 => _105.trim, 'call', _106 => _106(), 'access', _107 => _107.toLowerCase, 'call', _108 => _108()]) === "max";
3070
3073
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3071
3074
  if (isSourceStablecoin) return 1;
3072
3075
  try {
@@ -3086,7 +3089,7 @@ function SolanaAmountStep({
3086
3089
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3087
3090
  const numeric = Number(raw);
3088
3091
  if (!Number.isFinite(numeric)) return raw;
3089
- return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
3092
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
3090
3093
  } catch (e22) {
3091
3094
  return "\u2026";
3092
3095
  }
@@ -3168,8 +3171,8 @@ function SolanaAmountStep({
3168
3171
  return null;
3169
3172
  }
3170
3173
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3171
- const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3172
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3174
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( null));
3175
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.maxDepositUsd]), () => ( null));
3173
3176
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3174
3177
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3175
3178
  const exceedsBalance = Boolean(
@@ -3179,7 +3182,7 @@ function SolanaAmountStep({
3179
3182
  const handlePresetClick = (percentage) => {
3180
3183
  const formatted = computePresetAmount(percentage);
3181
3184
  if (!formatted) return;
3182
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3185
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3183
3186
  percentage,
3184
3187
  symbol: token.symbol,
3185
3188
  formatted
@@ -3214,7 +3217,7 @@ function SolanaAmountStep({
3214
3217
  try {
3215
3218
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3216
3219
  } catch (e27) {
3217
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3220
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3218
3221
  amount,
3219
3222
  sourceAmount: sourceAmountStr,
3220
3223
  reason: "parse-units-failed"
@@ -3229,7 +3232,7 @@ function SolanaAmountStep({
3229
3232
  );
3230
3233
  return;
3231
3234
  }
3232
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3235
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3233
3236
  symbol: token.symbol,
3234
3237
  inputAmountUsd: amount,
3235
3238
  sourceAmount: sourceAmountStr,
@@ -3243,7 +3246,7 @@ function SolanaAmountStep({
3243
3246
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3244
3247
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3245
3248
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3246
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Wallet deposit" }),
3249
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
3247
3250
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3248
3251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3249
3252
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3263,13 +3266,13 @@ function SolanaAmountStep({
3263
3266
  " available",
3264
3267
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3265
3268
  " (~",
3266
- _chunkLJJCPDZOcjs.currencyFormatter.format(computedBalanceUsd),
3269
+ _chunkEDUWRMQIcjs.currencyFormatter.format(computedBalanceUsd),
3267
3270
  ")"
3268
3271
  ] })
3269
3272
  ] }),
3270
3273
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3271
3274
  "Min. deposit ",
3272
- _chunkLJJCPDZOcjs.currencyFormatter.format(minDepositUsd)
3275
+ _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
3273
3276
  ] })
3274
3277
  ] })
3275
3278
  ] }),
@@ -3308,13 +3311,13 @@ function SolanaAmountStep({
3308
3311
  ] }),
3309
3312
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3310
3313
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3311
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkLJJCPDZOcjs.currencyFormatter.format(balanceAfterUsd) })
3314
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
3312
3315
  ] })
3313
3316
  ] }),
3314
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3315
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
3317
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3318
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3316
3319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3317
- _chunkLJJCPDZOcjs.Button,
3320
+ _chunkEDUWRMQIcjs.Button,
3318
3321
  {
3319
3322
  onClick: handleContinue,
3320
3323
  fullWidth: true,
@@ -3323,7 +3326,7 @@ function SolanaAmountStep({
3323
3326
  }
3324
3327
  )
3325
3328
  ] }),
3326
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3329
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3327
3330
  ] });
3328
3331
  }
3329
3332
 
@@ -3347,7 +3350,7 @@ var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3347
3350
  var configuredSolanaRpcUrl = null;
3348
3351
  var cachedConnections = /* @__PURE__ */ new Map();
3349
3352
  function configureSolanaRpcUrl(rpcUrl) {
3350
- const normalized = _optionalChain([rpcUrl, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]);
3353
+ const normalized = _optionalChain([rpcUrl, 'optionalAccess', _112 => _112.trim, 'call', _113 => _113()]);
3351
3354
  configuredSolanaRpcUrl = normalized ? normalized : null;
3352
3355
  cachedConnections.clear();
3353
3356
  }
@@ -3466,13 +3469,13 @@ function SolanaConfirmStep({
3466
3469
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3467
3470
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3468
3471
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
3469
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeSponsored]), () => ( false));
3470
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _116 => _116.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3471
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkLJJCPDZOcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3472
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _114 => _114.feeSponsored]), () => ( false));
3473
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3474
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3472
3475
  const receiveDisplay = (() => {
3473
3476
  const usdValue = Number(targetAmount);
3474
3477
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3475
- const estimate = _chunkLJJCPDZOcjs.formatReceiveEstimate.call(void 0, {
3478
+ const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
3476
3479
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3477
3480
  sourceSymbol: token.symbol,
3478
3481
  targetSymbol,
@@ -3480,11 +3483,11 @@ function SolanaConfirmStep({
3480
3483
  prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3481
3484
  });
3482
3485
  if (estimate !== void 0) return estimate;
3483
- return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedAmount} ${token.symbol}`;
3486
+ return targetSymbol;
3484
3487
  })();
3485
3488
  const handleConfirm = async () => {
3486
3489
  if (!solanaProvider) {
3487
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3490
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3488
3491
  reason: "missing-provider"
3489
3492
  });
3490
3493
  setError("Solana wallet not connected");
@@ -3492,7 +3495,7 @@ function SolanaConfirmStep({
3492
3495
  }
3493
3496
  const parsedAmount = parseFloat(sourceAmount);
3494
3497
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3495
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3498
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3496
3499
  reason: "invalid-amount",
3497
3500
  sourceAmount
3498
3501
  });
@@ -3501,7 +3504,7 @@ function SolanaConfirmStep({
3501
3504
  }
3502
3505
  setError(null);
3503
3506
  setIsSubmitting(true);
3504
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3507
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3505
3508
  smartAccount,
3506
3509
  solanaAddress,
3507
3510
  solanaDepositAddress,
@@ -3511,7 +3514,7 @@ function SolanaConfirmStep({
3511
3514
  });
3512
3515
  try {
3513
3516
  const check = await service.checkAccount(smartAccount);
3514
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3517
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3515
3518
  smartAccount,
3516
3519
  isRegistered: check.isRegistered,
3517
3520
  targetChain: check.targetChain,
@@ -3524,7 +3527,7 @@ function SolanaConfirmStep({
3524
3527
  }
3525
3528
  const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3526
3529
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3527
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3530
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3528
3531
  token: token.symbol,
3529
3532
  sourceAmount,
3530
3533
  amountUnits: amountUnits.toString()
@@ -3541,10 +3544,10 @@ function SolanaConfirmStep({
3541
3544
  token.mint,
3542
3545
  amountUnits
3543
3546
  );
3544
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3547
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3545
3548
  token: token.symbol,
3546
3549
  instructionCount: transaction.instructions.length,
3547
- feePayer: _optionalChain([transaction, 'access', _117 => _117.feePayer, 'optionalAccess', _118 => _118.toBase58, 'call', _119 => _119()]),
3550
+ feePayer: _optionalChain([transaction, 'access', _116 => _116.feePayer, 'optionalAccess', _117 => _117.toBase58, 'call', _118 => _118()]),
3548
3551
  recentBlockhash: transaction.recentBlockhash
3549
3552
  });
3550
3553
  const txHash = await sendSolanaTransaction(
@@ -3552,28 +3555,28 @@ function SolanaConfirmStep({
3552
3555
  connection,
3553
3556
  transaction
3554
3557
  );
3555
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3558
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3556
3559
  txHash,
3557
3560
  amountUnits: amountUnits.toString()
3558
3561
  });
3559
3562
  onConfirm(txHash, amountUnits.toString());
3560
3563
  } catch (err) {
3561
3564
  const raw = err instanceof Error ? err.message : "Transfer failed";
3562
- const message = _chunkLJJCPDZOcjs.formatUserError.call(void 0, raw);
3563
- _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3565
+ const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
3566
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3564
3567
  smartAccount,
3565
3568
  token: token.symbol,
3566
3569
  sourceAmount
3567
3570
  });
3568
3571
  setError(message);
3569
- _optionalChain([onError, 'optionalCall', _120 => _120(message, "SOLANA_TRANSFER_ERROR")]);
3572
+ _optionalChain([onError, 'optionalCall', _119 => _119(message, "SOLANA_TRANSFER_ERROR")]);
3570
3573
  } finally {
3571
3574
  setIsSubmitting(false);
3572
3575
  }
3573
3576
  };
3574
3577
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3575
3578
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Review deposit" }),
3579
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
3577
3580
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3578
3581
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3579
3582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3621,13 +3624,13 @@ function SolanaConfirmStep({
3621
3624
  children: "$0.04"
3622
3625
  }
3623
3626
  ),
3624
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, {}) }) })
3627
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.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, _chunkEDUWRMQIcjs.InfoIcon, {}) }) })
3625
3628
  ] })
3626
3629
  ] })
3627
3630
  ] }),
3628
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
3631
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3629
3632
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3630
- _chunkLJJCPDZOcjs.Button,
3633
+ _chunkEDUWRMQIcjs.Button,
3631
3634
  {
3632
3635
  onClick: handleConfirm,
3633
3636
  loading: isSubmitting,
@@ -3638,7 +3641,7 @@ function SolanaConfirmStep({
3638
3641
  }
3639
3642
  )
3640
3643
  ] }),
3641
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3644
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3642
3645
  ] });
3643
3646
  }
3644
3647
 
@@ -3652,18 +3655,18 @@ function DappImportAssetSelectStep({
3652
3655
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3653
3656
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3654
3657
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3655
- _chunkLJJCPDZOcjs.BodyHeader,
3658
+ _chunkEDUWRMQIcjs.BodyHeader,
3656
3659
  {
3657
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
3660
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3658
3661
  title: `Transfer from ${sourceLabel}`,
3659
3662
  subtitle: "Pick the balance to import"
3660
3663
  }
3661
3664
  ),
3662
3665
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3663
- const tokenAmount = asset.balance ? _chunkLJJCPDZOcjs.tokenFormatter.format(
3666
+ const tokenAmount = asset.balance ? _chunkEDUWRMQIcjs.tokenFormatter.format(
3664
3667
  Number(asset.balance) / 10 ** asset.decimals
3665
3668
  ) : "0";
3666
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3669
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3667
3670
  const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3668
3671
  const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3669
3672
  const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
@@ -3714,7 +3717,7 @@ function DappImportAssetSelectStep({
3714
3717
  );
3715
3718
  }) })
3716
3719
  ] }),
3717
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3720
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3718
3721
  ] });
3719
3722
  }
3720
3723
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3731,9 +3734,9 @@ function DappImportAssetSelectSkeleton({
3731
3734
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3732
3735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3733
3736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3734
- _chunkLJJCPDZOcjs.BodyHeader,
3737
+ _chunkEDUWRMQIcjs.BodyHeader,
3735
3738
  {
3736
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
3739
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3737
3740
  title: `Transfer from ${sourceLabel}`,
3738
3741
  subtitle: "Pick the balance to import"
3739
3742
  }
@@ -3771,7 +3774,7 @@ function DappImportAssetSelectSkeleton({
3771
3774
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3772
3775
  }
3773
3776
  ) }),
3774
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3775
3778
  ] });
3776
3779
  }
3777
3780
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3961,21 +3964,21 @@ var polymarketProvider = {
3961
3964
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
3962
3965
  const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
3963
3966
  if (!proxyWallet) return null;
3964
- if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3967
+ if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
3965
3968
  const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
3966
3969
  if (!polygonClient) return null;
3967
3970
  const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
3968
3971
  publicClient: polygonClient,
3969
3972
  proxyWallet
3970
3973
  });
3971
- if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
3974
+ if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3972
3975
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
3973
3976
  const walletKind = await detectPolymarketWalletKind({
3974
3977
  publicClient: polygonClient,
3975
3978
  proxyWallet,
3976
3979
  eoa
3977
3980
  });
3978
- if (_optionalChain([signal, 'optionalAccess', _123 => _123.aborted])) return null;
3981
+ if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
3979
3982
  if (!walletKind) return null;
3980
3983
  const assets = [];
3981
3984
  if (balances.pusd > 0n) {
@@ -4100,7 +4103,7 @@ function readSetupForOwner(setup, owner) {
4100
4103
  function computeDappImportStatus(providerId, inputs) {
4101
4104
  const { owner, availability, availabilityOwner, setup } = inputs;
4102
4105
  if (!owner) return "needs-connect";
4103
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _124 => _124.toLowerCase, 'call', _125 => _125()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4106
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _123 => _123.toLowerCase, 'call', _124 => _124()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4104
4107
  if (entry === "loading" || entry === void 0) return "loading";
4105
4108
  if (entry === "error") {
4106
4109
  return {
@@ -4454,12 +4457,12 @@ function applyAction(state, action) {
4454
4457
  requestKey: action.requestKey,
4455
4458
  cacheKey: action.cacheKey,
4456
4459
  status: "loading",
4457
- smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.smartAccount]), () => ( null)),
4458
- sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.sessionOwnerAddress]), () => ( null)),
4459
- solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.solanaDepositAddress]), () => ( null)),
4460
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _125 => _125.smartAccount]), () => ( null)),
4461
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.sessionOwnerAddress]), () => ( null)),
4462
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.solanaDepositAddress]), () => ( null)),
4460
4463
  message: null,
4461
4464
  cacheable: action.cacheable,
4462
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _129 => _129.attemptNonce]), () => ( 0))
4465
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.attemptNonce]), () => ( 0))
4463
4466
  }));
4464
4467
  }
4465
4468
  case "setup/ready": {
@@ -4897,15 +4900,15 @@ var SetupError = class extends Error {
4897
4900
  }
4898
4901
  };
4899
4902
  async function resolveSessionOwner(eoaAddress) {
4900
- const local = _chunkLJJCPDZOcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4903
+ const local = _chunkEDUWRMQIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4901
4904
  if (local) {
4902
4905
  return {
4903
- account: _chunkLJJCPDZOcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4906
+ account: _chunkEDUWRMQIcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4904
4907
  address: local.address
4905
4908
  };
4906
4909
  }
4907
- const created = _chunkLJJCPDZOcjs.createSessionOwnerKey.call(void 0, );
4908
- _chunkLJJCPDZOcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4910
+ const created = _chunkEDUWRMQIcjs.createSessionOwnerKey.call(void 0, );
4911
+ _chunkEDUWRMQIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4909
4912
  return { account: created.account, address: created.address };
4910
4913
  }
4911
4914
  function stableStringify(value) {
@@ -4955,14 +4958,14 @@ function computeCacheKey(input, sessionOwnerAddress) {
4955
4958
  });
4956
4959
  }
4957
4960
  function computeIsCacheable(input) {
4958
- return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _130 => _130.postBridgeActions, 'optionalAccess', _131 => _131.length]), () => ( 0)));
4961
+ return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _129 => _129.postBridgeActions, 'optionalAccess', _130 => _130.length]), () => ( 0)));
4959
4962
  }
4960
4963
  var SETUP_REQUEST_DEDUPE_TTL_MS = 3e4;
4961
4964
  var setupRequestDedupe = /* @__PURE__ */ new Map();
4962
4965
  function readDedupedAccountSetupResult(requestKey) {
4963
4966
  const now = Date.now();
4964
4967
  const existing = setupRequestDedupe.get(requestKey);
4965
- if (_optionalChain([existing, 'optionalAccess', _132 => _132.settled]) && existing.expiresAt > now && existing.result) {
4968
+ if (_optionalChain([existing, 'optionalAccess', _131 => _131.settled]) && existing.expiresAt > now && existing.result) {
4966
4969
  return existing.result;
4967
4970
  }
4968
4971
  return null;
@@ -4973,10 +4976,10 @@ async function runAccountSetup(input, deps) {
4973
4976
  try {
4974
4977
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
4975
4978
  const cacheKey = computeCacheKey(input, sessionOwner.address);
4976
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4979
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4977
4980
  owner: input.ownerAddress,
4978
4981
  sessionOwner: sessionOwner.address,
4979
- hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length])),
4982
+ hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _132 => _132.postBridgeActions, 'optionalAccess', _133 => _133.length])),
4980
4983
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
4981
4984
  });
4982
4985
  const setup = await service.setupAccount({
@@ -5021,7 +5024,7 @@ async function runAccountSetup(input, deps) {
5021
5024
  primaryType: typedData.primaryType,
5022
5025
  message: typedData.message
5023
5026
  });
5024
- const sessionDetails = _chunkLJJCPDZOcjs.buildSessionDetails.call(void 0,
5027
+ const sessionDetails = _chunkEDUWRMQIcjs.buildSessionDetails.call(void 0,
5025
5028
  setup.sessionDetailsUnsigned,
5026
5029
  signature
5027
5030
  );
@@ -5038,10 +5041,10 @@ async function runAccountSetup(input, deps) {
5038
5041
  chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5039
5042
  token: input.targetToken,
5040
5043
  ...input.recipient && { recipient: input.recipient },
5041
- ..._optionalChain([input, 'access', _135 => _135.postBridgeActions, 'optionalAccess', _136 => _136.length]) && {
5044
+ ..._optionalChain([input, 'access', _134 => _134.postBridgeActions, 'optionalAccess', _135 => _135.length]) && {
5042
5045
  postBridgeActions: input.postBridgeActions
5043
5046
  },
5044
- ..._optionalChain([input, 'access', _137 => _137.outputTokenRules, 'optionalAccess', _138 => _138.length]) && {
5047
+ ..._optionalChain([input, 'access', _136 => _136.outputTokenRules, 'optionalAccess', _137 => _137.length]) && {
5045
5048
  outputTokenRules: input.outputTokenRules
5046
5049
  },
5047
5050
  ...input.rejectUnmapped != null && {
@@ -5057,7 +5060,7 @@ async function runAccountSetup(input, deps) {
5057
5060
  isRegistered: true
5058
5061
  };
5059
5062
  } catch (error) {
5060
- _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5063
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5061
5064
  owner: input.ownerAddress
5062
5065
  });
5063
5066
  if (error instanceof SetupError) throw error;
@@ -5068,7 +5071,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5068
5071
  const now = Date.now();
5069
5072
  const existing = setupRequestDedupe.get(requestKey);
5070
5073
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5071
- _chunkLJJCPDZOcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5074
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5072
5075
  owner: input.ownerAddress,
5073
5076
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5074
5077
  });
@@ -5355,10 +5358,10 @@ function DepositFlow({
5355
5358
  onError,
5356
5359
  debug
5357
5360
  }) {
5358
- const onStepChangeRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onStepChange);
5359
- const onEventRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onEvent);
5360
- const onLifecycleRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onLifecycle);
5361
- const onErrorRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onError);
5361
+ const onStepChangeRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onStepChange);
5362
+ const onEventRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onEvent);
5363
+ const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
5364
+ const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
5362
5365
  const storeApi = useDepositStoreApi();
5363
5366
  const flowSlice = useDepositStore((s) => s.flow);
5364
5367
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5370,46 +5373,27 @@ function DepositFlow({
5370
5373
  const isConnectSelectionConfirmed = flowSlice.isConnectSelectionConfirmed;
5371
5374
  const selectedWalletId = useDepositStore(selectedWalletIdSelector);
5372
5375
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
5373
- const portfolioAssetsRef = _react.useRef.call(void 0, []);
5374
5376
  const stableWalletSignerRef = _react.useRef.call(void 0, null);
5375
5377
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5376
5378
  const logFlow = _react.useCallback.call(void 0,
5377
5379
  (message, data) => {
5378
- _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5380
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5379
5381
  },
5380
5382
  [debug]
5381
5383
  );
5382
5384
  const logFlowError = _react.useCallback.call(void 0,
5383
5385
  (message, error, data) => {
5384
- _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5386
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5385
5387
  },
5386
5388
  [debug]
5387
5389
  );
5388
- const handleAssetsLoaded = _react.useCallback.call(void 0, (assets) => {
5389
- portfolioAssetsRef.current = assets;
5390
- }, []);
5391
- const getTokenPriceUsd = _react.useCallback.call(void 0, (symbol) => {
5392
- const sym = symbol.toLowerCase();
5393
- for (const asset of portfolioAssetsRef.current) {
5394
- if (asset.symbol.toLowerCase() === sym && asset.balanceUsd && asset.balance) {
5395
- try {
5396
- const balanceUnits = Number(
5397
- _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals)
5398
- );
5399
- if (balanceUnits > 0) return asset.balanceUsd / balanceUnits;
5400
- } catch (e28) {
5401
- }
5402
- }
5403
- }
5404
- return null;
5405
- }, []);
5406
5390
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5407
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _139 => _139.switchChain])) return void 0;
5391
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _138 => _138.switchChain])) return void 0;
5408
5392
  return async (chainId) => {
5409
- await _optionalChain([dappWalletClient, 'access', _140 => _140.switchChain, 'optionalCall', _141 => _141({ id: chainId })]);
5393
+ await _optionalChain([dappWalletClient, 'access', _139 => _139.switchChain, 'optionalCall', _140 => _140({ id: chainId })]);
5410
5394
  };
5411
5395
  }, [dappWalletClient]);
5412
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _142 => _142.account, 'optionalAccess', _143 => _143.address]), () => ( null));
5396
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _141 => _141.account, 'optionalAccess', _142 => _142.address]), () => ( null));
5413
5397
  const walletOptions = _react.useMemo.call(void 0, () => {
5414
5398
  const options = [];
5415
5399
  const seen = /* @__PURE__ */ new Set();
@@ -5423,7 +5407,7 @@ function DepositFlow({
5423
5407
  });
5424
5408
  seen.add(id);
5425
5409
  }
5426
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5410
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _143 => _143.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5427
5411
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5428
5412
  if (!seen.has(id)) {
5429
5413
  options.push({
@@ -5435,7 +5419,7 @@ function DepositFlow({
5435
5419
  });
5436
5420
  seen.add(id);
5437
5421
  }
5438
- } else if (_optionalChain([reownWallet, 'optionalAccess', _145 => _145.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5422
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5439
5423
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5440
5424
  if (!seen.has(id)) {
5441
5425
  options.push({
@@ -5452,20 +5436,20 @@ function DepositFlow({
5452
5436
  }, [
5453
5437
  connectedWalletAddress,
5454
5438
  dappAddress,
5455
- _optionalChain([reownWallet, 'optionalAccess', _146 => _146.address]),
5456
- _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isConnected]),
5457
- _optionalChain([reownWallet, 'optionalAccess', _148 => _148.walletClient]),
5458
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.publicClient]),
5459
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.icon]),
5439
+ _optionalChain([reownWallet, 'optionalAccess', _145 => _145.address]),
5440
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.isConnected]),
5441
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.walletClient]),
5442
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.publicClient]),
5443
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.icon]),
5460
5444
  enableSolana,
5461
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.isSolana]),
5462
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.solanaAddress]),
5463
- _optionalChain([reownWallet, 'optionalAccess', _153 => _153.caipAddress])
5445
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isSolana]),
5446
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.solanaAddress]),
5447
+ _optionalChain([reownWallet, 'optionalAccess', _152 => _152.caipAddress])
5464
5448
  ]);
5465
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _154 => _154.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5449
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _153 => _153.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5466
5450
  const hasWalletOptions = walletOptions.length > 0;
5467
5451
  const hasReownSession = Boolean(
5468
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _155 => _155.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address]) : _optionalChain([reownWallet, 'optionalAccess', _157 => _157.address])
5452
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address]) : _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address])
5469
5453
  );
5470
5454
  const isDappImportWalletHydrating = Boolean(
5471
5455
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -5513,16 +5497,16 @@ function DepositFlow({
5513
5497
  return {
5514
5498
  ownerAddress: dappAddress,
5515
5499
  walletClient: void 0,
5516
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5500
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5517
5501
  switchChain: void 0
5518
5502
  };
5519
5503
  }
5520
5504
  if (canAutoLock) {
5521
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.chain, 'optionalAccess', _159 => _159.id]), () => ( setupChainId));
5505
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
5522
5506
  return {
5523
5507
  ownerAddress: dappWalletClient.account.address,
5524
5508
  walletClient: dappWalletClient,
5525
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, fallbackChainId))),
5509
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5526
5510
  switchChain: dappSwitchChain
5527
5511
  };
5528
5512
  }
@@ -5536,24 +5520,24 @@ function DepositFlow({
5536
5520
  return {
5537
5521
  ownerAddress: dappAddress,
5538
5522
  walletClient: void 0,
5539
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5523
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5540
5524
  switchChain: void 0
5541
5525
  };
5542
5526
  }
5543
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _160 => _160.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5544
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.chain, 'optionalAccess', _162 => _162.id]), () => ( setupChainId));
5527
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _159 => _159.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5528
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _160 => _160.chain, 'optionalAccess', _161 => _161.id]), () => ( setupChainId));
5545
5529
  return {
5546
5530
  ownerAddress: dappWalletClient.account.address,
5547
5531
  walletClient: dappWalletClient,
5548
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, fallbackChainId))),
5532
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5549
5533
  switchChain: dappSwitchChain
5550
5534
  };
5551
5535
  }
5552
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5536
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5553
5537
  return {
5554
5538
  ownerAddress: reownWallet.address,
5555
5539
  walletClient: reownWallet.walletClient,
5556
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5540
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5557
5541
  switchChain: reownWallet.switchChain
5558
5542
  };
5559
5543
  }
@@ -5591,7 +5575,7 @@ function DepositFlow({
5591
5575
  return {
5592
5576
  ownerAddress: dappAddress,
5593
5577
  walletClient: void 0,
5594
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5578
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5595
5579
  switchChain: void 0
5596
5580
  };
5597
5581
  }
@@ -5616,37 +5600,37 @@ function DepositFlow({
5616
5600
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5617
5601
  if (!selectedWalletId) return null;
5618
5602
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5619
- if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "external" && opt.address) {
5603
+ if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "external" && opt.address) {
5620
5604
  return opt.address;
5621
5605
  }
5622
- if (_optionalChain([opt, 'optionalAccess', _165 => _165.kind]) === "connected" && opt.address) {
5606
+ if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "connected" && opt.address) {
5623
5607
  return opt.address;
5624
5608
  }
5625
5609
  return null;
5626
5610
  }, [selectedWalletId, walletOptions]);
5627
5611
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5628
5612
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5629
- if (_optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]) && reownWallet.isConnected) {
5613
+ if (_optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]) && reownWallet.isConnected) {
5630
5614
  return reownWallet.address;
5631
5615
  }
5632
5616
  if (connectedWalletAddress) return connectedWalletAddress;
5633
5617
  return null;
5634
5618
  }, [
5635
5619
  selectedEvmWalletOwner,
5636
- _optionalChain([reownWallet, 'optionalAccess', _167 => _167.address]),
5637
- _optionalChain([reownWallet, 'optionalAccess', _168 => _168.isConnected]),
5620
+ _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]),
5621
+ _optionalChain([reownWallet, 'optionalAccess', _167 => _167.isConnected]),
5638
5622
  connectedWalletAddress
5639
5623
  ]);
5640
5624
  const activeOwner = _react.useMemo.call(void 0,
5641
5625
  () => resolveOwnerForMode(flowMode, {
5642
5626
  dappAddress,
5643
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5627
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5644
5628
  dappImportOwner
5645
5629
  }),
5646
5630
  [
5647
5631
  flowMode,
5648
5632
  dappAddress,
5649
- _optionalChain([signerContext, 'optionalAccess', _170 => _170.ownerAddress]),
5633
+ _optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]),
5650
5634
  canAutoLock,
5651
5635
  connectedWalletAddress,
5652
5636
  selectedEvmWalletOwner,
@@ -5675,12 +5659,12 @@ function DepositFlow({
5675
5659
  return;
5676
5660
  }
5677
5661
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5678
- _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
5662
+ _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
5679
5663
  type: "smart-account-changed",
5680
5664
  evm: activeEntry.smartAccount,
5681
5665
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5682
5666
  })]);
5683
- _optionalChain([onLifecycleRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174({
5667
+ _optionalChain([onLifecycleRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173({
5684
5668
  type: "connected",
5685
5669
  address: activeOwner,
5686
5670
  smartAccount: activeEntry.smartAccount
@@ -5714,14 +5698,10 @@ function DepositFlow({
5714
5698
  );
5715
5699
  const step = effectiveStep;
5716
5700
  const handleBack = _react.useCallback.call(void 0, () => {
5717
- const stepBeforeBack = storeApi.getState().flow.step;
5718
5701
  storeApi.dispatch({
5719
5702
  type: "back/requested",
5720
5703
  hasWalletOptions: hasWalletOptions || Boolean(reownWallet)
5721
5704
  });
5722
- if (stepBeforeBack === "deposit-address" || stepBeforeBack === "select-asset" || stepBeforeBack === "solana-token-select") {
5723
- portfolioAssetsRef.current = [];
5724
- }
5725
5705
  }, [storeApi, hasWalletOptions, reownWallet]);
5726
5706
  const canGoBackFromHere = effectiveStep.type === "deposit-address" || effectiveStep.type === "solana-token-select" || effectiveStep.type === "solana-amount" || effectiveStep.type === "solana-confirm" || effectiveStep.type === "amount" || effectiveStep.type === "confirm" || // Escape hatch from a slow or stuck pre-routed resolve. Mode-gated so
5727
5707
  // the chevron doesn't linger if a disconnect cleared the mode out from
@@ -5730,7 +5710,7 @@ function DepositFlow({
5730
5710
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5731
5711
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5732
5712
  _react.useEffect.call(void 0, () => {
5733
- _optionalChain([onStepChangeRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176(currentBackHandler, currentScreen)]);
5713
+ _optionalChain([onStepChangeRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175(currentBackHandler, currentScreen)]);
5734
5714
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5735
5715
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5736
5716
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5740,7 +5720,7 @@ function DepositFlow({
5740
5720
  modalContentElRef.current = mc;
5741
5721
  const ro = new ResizeObserver((entries) => {
5742
5722
  for (const entry of entries) {
5743
- const border = _optionalChain([entry, 'access', _177 => _177.borderBoxSize, 'optionalAccess', _178 => _178[0], 'optionalAccess', _179 => _179.blockSize]);
5723
+ const border = _optionalChain([entry, 'access', _176 => _176.borderBoxSize, 'optionalAccess', _177 => _177[0], 'optionalAccess', _178 => _178.blockSize]);
5744
5724
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5745
5725
  }
5746
5726
  });
@@ -5781,7 +5761,7 @@ function DepositFlow({
5781
5761
  }
5782
5762
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5783
5763
  if (effectiveStep.type === "select-asset") {
5784
- _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
5764
+ _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
5785
5765
  type: "deposit_modal_connected_wallet_select_source_open",
5786
5766
  total_balance_in_external_wallet: totalBalanceUsd,
5787
5767
  pred_balance: totalBalanceUsd
@@ -5789,7 +5769,7 @@ function DepositFlow({
5789
5769
  } else if (effectiveStep.type === "deposit-address") {
5790
5770
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5791
5771
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5792
- _optionalChain([onEventRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5772
+ _optionalChain([onEventRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
5793
5773
  type: "deposit_modal_transfer_crypto_open",
5794
5774
  default_chain: chainName,
5795
5775
  default_token: tokenSymbol,
@@ -5797,7 +5777,7 @@ function DepositFlow({
5797
5777
  })]);
5798
5778
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5799
5779
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5800
- _optionalChain([onEventRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5780
+ _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5801
5781
  type: "deposit_modal_connected_wallet_enter_value_open",
5802
5782
  send_token: stepSendToken,
5803
5783
  receive_token: receiveSymbol,
@@ -5830,7 +5810,7 @@ function DepositFlow({
5830
5810
  targetToken
5831
5811
  ]);
5832
5812
  _react.useEffect.call(void 0, () => {
5833
- _optionalChain([onLifecycleRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187({
5813
+ _optionalChain([onLifecycleRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5834
5814
  type: "balance-changed",
5835
5815
  totalUsd: totalBalanceUsd
5836
5816
  })]);
@@ -5846,7 +5826,7 @@ function DepositFlow({
5846
5826
  const handleConfirmWallet = _react.useCallback.call(void 0,
5847
5827
  (walletId) => {
5848
5828
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5849
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _188 => _188.kind]) === "solana" ? "solana-wallet" : "wallet";
5829
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _187 => _187.kind]) === "solana" ? "solana-wallet" : "wallet";
5850
5830
  storeApi.dispatch({
5851
5831
  type: "connect/wallet-confirmed",
5852
5832
  walletId,
@@ -5856,7 +5836,7 @@ function DepositFlow({
5856
5836
  [walletOptions, enableSolana, storeApi]
5857
5837
  );
5858
5838
  const isSolanaWalletConnected = Boolean(
5859
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _190 => _190.isSolana])
5839
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isSolana])
5860
5840
  );
5861
5841
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5862
5842
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -5873,7 +5853,7 @@ function DepositFlow({
5873
5853
  const owner = dappImportOwner;
5874
5854
  if (owner) {
5875
5855
  const wallet = walletOptions.find(
5876
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === owner.toLowerCase()
5856
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === owner.toLowerCase()
5877
5857
  );
5878
5858
  if (wallet) {
5879
5859
  storeApi.dispatch({
@@ -5914,8 +5894,8 @@ function DepositFlow({
5914
5894
  eoa: dappImportOwner,
5915
5895
  getPublicClient: (chainId) => {
5916
5896
  try {
5917
- return _chunkLJJCPDZOcjs.getPublicClient.call(void 0, chainId);
5918
- } catch (e29) {
5897
+ return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
5898
+ } catch (e28) {
5919
5899
  return null;
5920
5900
  }
5921
5901
  },
@@ -5990,7 +5970,7 @@ function DepositFlow({
5990
5970
  }, [activeDappImportProviderId, enabledDappImportProviders]);
5991
5971
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
5992
5972
  if (!activeDappImportProviderId) return null;
5993
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _193 => _193.toLowerCase, 'call', _194 => _194()]) !== dappImportOwner.toLowerCase()) {
5973
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _192 => _192.toLowerCase, 'call', _193 => _193()]) !== dappImportOwner.toLowerCase()) {
5994
5974
  return null;
5995
5975
  }
5996
5976
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6031,7 +6011,7 @@ function DepositFlow({
6031
6011
  setup: setupSlice
6032
6012
  });
6033
6013
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6034
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) === dappImportOwner.toLowerCase()
6014
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === dappImportOwner.toLowerCase()
6035
6015
  ), () => ( null)) : null;
6036
6016
  const outcome = resolveBootOutcome({
6037
6017
  status,
@@ -6073,7 +6053,7 @@ function DepositFlow({
6073
6053
  if (dappImportOwner) {
6074
6054
  const plan = bootRetryPlan({
6075
6055
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
6076
- availabilityEntry: _optionalChain([snapshot, 'access', _197 => _197.dappImport, 'access', _198 => _198.availabilityOwner, 'optionalAccess', _199 => _199.toLowerCase, 'call', _200 => _200()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6056
+ availabilityEntry: _optionalChain([snapshot, 'access', _196 => _196.dappImport, 'access', _197 => _197.availabilityOwner, 'optionalAccess', _198 => _198.toLowerCase, 'call', _199 => _199()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6077
6057
  });
6078
6058
  if (plan.restartSetup) {
6079
6059
  storeApi.dispatch({
@@ -6114,13 +6094,12 @@ function DepositFlow({
6114
6094
  [storeApi]
6115
6095
  );
6116
6096
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6117
- _optionalChain([onLifecycleRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202({
6097
+ _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
6118
6098
  type: "smart-account-changed",
6119
6099
  evm: null,
6120
6100
  solana: null
6121
6101
  })]);
6122
6102
  storeApi.dispatch({ type: "flow/reset" });
6123
- portfolioAssetsRef.current = [];
6124
6103
  stableWalletSignerRef.current = null;
6125
6104
  stableWalletSelectionKeyRef.current = null;
6126
6105
  }, [onLifecycleRef, storeApi]);
@@ -6162,13 +6141,13 @@ function DepositFlow({
6162
6141
  };
6163
6142
  push(dappAddress);
6164
6143
  push(connectedWalletAddress);
6165
- push(_optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]));
6144
+ push(_optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]));
6166
6145
  push(dappImportOwner);
6167
6146
  return owners;
6168
6147
  }, [
6169
6148
  dappAddress,
6170
6149
  connectedWalletAddress,
6171
- _optionalChain([reownWallet, 'optionalAccess', _204 => _204.address]),
6150
+ _optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]),
6172
6151
  dappImportOwner
6173
6152
  ]);
6174
6153
  _react.useEffect.call(void 0, () => {
@@ -6182,7 +6161,7 @@ function DepositFlow({
6182
6161
  try {
6183
6162
  sessionOwner = await resolveSessionOwner(owner);
6184
6163
  } catch (error) {
6185
- _chunkLJJCPDZOcjs.debugError.call(void 0,
6164
+ _chunkEDUWRMQIcjs.debugError.call(void 0,
6186
6165
  debug,
6187
6166
  "deposit-flow",
6188
6167
  "session-owner:resolve-failed",
@@ -6273,7 +6252,7 @@ function DepositFlow({
6273
6252
  sourceChain: data.sourceChain,
6274
6253
  amount: data.amount
6275
6254
  });
6276
- _optionalChain([onLifecycleRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({ type: "submitted", ...data })]);
6255
+ _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({ type: "submitted", ...data })]);
6277
6256
  },
6278
6257
  [logFlow, onLifecycleRef]
6279
6258
  );
@@ -6294,7 +6273,7 @@ function DepositFlow({
6294
6273
  (token, sourceAmount, inputAmountUsd) => {
6295
6274
  const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6296
6275
  const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6297
- const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6276
+ const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6298
6277
  logFlow("solana:amount:continue", {
6299
6278
  token: token.symbol,
6300
6279
  sourceAmount,
@@ -6310,7 +6289,7 @@ function DepositFlow({
6310
6289
  targetTokenPriceUsd
6311
6290
  });
6312
6291
  },
6313
- [targetToken, targetChain, getTokenPriceUsd, logFlow, storeApi]
6292
+ [targetToken, targetChain, logFlow, storeApi]
6314
6293
  );
6315
6294
  const handleSolanaConfirmed = _react.useCallback.call(void 0,
6316
6295
  (txHash, amountUnits) => {
@@ -6333,7 +6312,7 @@ function DepositFlow({
6333
6312
  sourceDecimals: tokenAtSubmit.decimals,
6334
6313
  inputAmountUsd: amountUsd
6335
6314
  });
6336
- _optionalChain([onLifecycleRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
6315
+ _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({
6337
6316
  type: "submitted",
6338
6317
  txHash,
6339
6318
  sourceChain: "solana",
@@ -6346,7 +6325,7 @@ function DepositFlow({
6346
6325
  );
6347
6326
  const handleAssetContinue = _react.useCallback.call(void 0,
6348
6327
  (asset) => {
6349
- _optionalChain([onEventRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210({
6328
+ _optionalChain([onEventRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6350
6329
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6351
6330
  total_balance_in_external_wallet: totalBalanceUsd,
6352
6331
  pred_balance: totalBalanceUsd,
@@ -6371,7 +6350,7 @@ function DepositFlow({
6371
6350
  if (entry.status !== "ready") return;
6372
6351
  const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6373
6352
  const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6374
- const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6353
+ const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6375
6354
  storeApi.dispatch({
6376
6355
  type: "amount/entered",
6377
6356
  amount,
@@ -6381,7 +6360,7 @@ function DepositFlow({
6381
6360
  liquidityWarning
6382
6361
  });
6383
6362
  },
6384
- [targetToken, targetChain, getTokenPriceUsd, storeApi, activeOwner]
6363
+ [targetToken, targetChain, storeApi, activeOwner]
6385
6364
  );
6386
6365
  const handleDepositSubmitted = _react.useCallback.call(void 0,
6387
6366
  (txHash, chainId, amount, token) => {
@@ -6400,8 +6379,8 @@ function DepositFlow({
6400
6379
  sourceChain: chainId,
6401
6380
  sourceToken: token,
6402
6381
  amount,
6403
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _211 => _211.symbol]),
6404
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _212 => _212.decimals]),
6382
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _210 => _210.symbol]),
6383
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _211 => _211.decimals]),
6405
6384
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6406
6385
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6407
6386
  });
@@ -6424,7 +6403,7 @@ function DepositFlow({
6424
6403
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6425
6404
  sourceDecimals: SWAPPED_SOURCE_DECIMALS
6426
6405
  });
6427
- _optionalChain([onLifecycleRef, 'access', _213 => _213.current, 'optionalCall', _214 => _214({
6406
+ _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6428
6407
  type: "submitted",
6429
6408
  txHash: info.txHash,
6430
6409
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6437,12 +6416,12 @@ function DepositFlow({
6437
6416
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6438
6417
  (txHash, sourceChain, amount) => {
6439
6418
  const depositAtSubmit = storeApi.getState().deposit;
6440
- _optionalChain([onLifecycleRef, 'access', _215 => _215.current, 'optionalCall', _216 => _216({
6419
+ _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
6441
6420
  type: "submitted",
6442
6421
  txHash,
6443
6422
  sourceChain,
6444
6423
  amount,
6445
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _217 => _217.selectedAsset, 'optionalAccess', _218 => _218.decimals]),
6424
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _216 => _216.selectedAsset, 'optionalAccess', _217 => _217.decimals]),
6446
6425
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6447
6426
  })]);
6448
6427
  },
@@ -6451,7 +6430,7 @@ function DepositFlow({
6451
6430
  const handleDepositComplete = _react.useCallback.call(void 0,
6452
6431
  (txHash, destinationTxHash, context) => {
6453
6432
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6454
- _optionalChain([onLifecycleRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({
6433
+ _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6455
6434
  type: "complete",
6456
6435
  txHash,
6457
6436
  destinationTxHash,
@@ -6463,14 +6442,14 @@ function DepositFlow({
6463
6442
  const handleDepositFailed = _react.useCallback.call(void 0,
6464
6443
  (txHash, error) => {
6465
6444
  logFlowError("deposit:failed", error, { txHash });
6466
- _optionalChain([onLifecycleRef, 'access', _221 => _221.current, 'optionalCall', _222 => _222({ type: "failed", txHash, error })]);
6445
+ _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({ type: "failed", txHash, error })]);
6467
6446
  },
6468
6447
  [logFlowError, onLifecycleRef]
6469
6448
  );
6470
6449
  const handleError = _react.useCallback.call(void 0,
6471
6450
  (message, code) => {
6472
6451
  logFlowError("flow:error", message, { code });
6473
- _optionalChain([onErrorRef, 'access', _223 => _223.current, 'optionalCall', _224 => _224({ message, code })]);
6452
+ _optionalChain([onErrorRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ message, code })]);
6474
6453
  },
6475
6454
  [logFlowError, onErrorRef]
6476
6455
  );
@@ -6541,7 +6520,7 @@ function DepositFlow({
6541
6520
  );
6542
6521
  if (showConnectStep) {
6543
6522
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6544
- _chunkLJJCPDZOcjs.ConnectStep,
6523
+ _chunkEDUWRMQIcjs.ConnectStep,
6545
6524
  {
6546
6525
  walletRows,
6547
6526
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6573,7 +6552,7 @@ function DepositFlow({
6573
6552
  },
6574
6553
  dappImports: connectStepDappImports,
6575
6554
  onSelectDappImport: (providerId) => {
6576
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _225 => _225.toLowerCase, 'call', _226 => _226()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6555
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6577
6556
  if (availabilityEntry === "error") {
6578
6557
  storeApi.dispatch({
6579
6558
  type: "dapp-import/availability-retry-requested"
@@ -6619,7 +6598,7 @@ function DepositFlow({
6619
6598
  allowedRoutes,
6620
6599
  targetChain,
6621
6600
  targetToken,
6622
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _227 => _227.length])),
6601
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _226 => _226.length])),
6623
6602
  uiConfig,
6624
6603
  onDepositSubmitted: handleDepositAddressSubmitted,
6625
6604
  onDepositComplete: handleDepositComplete,
@@ -6627,7 +6606,7 @@ function DepositFlow({
6627
6606
  onCopyAddress: () => {
6628
6607
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6629
6608
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6630
- _optionalChain([onEvent, 'optionalCall', _228 => _228({
6609
+ _optionalChain([onEvent, 'optionalCall', _227 => _227({
6631
6610
  type: "deposit_modal_transfer_crypto_cta_click",
6632
6611
  default_chain: chainName,
6633
6612
  default_token: tokenSymbol,
@@ -6671,7 +6650,7 @@ function DepositFlow({
6671
6650
  }
6672
6651
  ),
6673
6652
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6674
- _chunkLJJCPDZOcjs.ProcessingStep,
6653
+ _chunkEDUWRMQIcjs.ProcessingStep,
6675
6654
  {
6676
6655
  smartAccount: step.smartAccount,
6677
6656
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6684,7 +6663,7 @@ function DepositFlow({
6684
6663
  sourceSymbol: step.sourceSymbol,
6685
6664
  sourceDecimals: step.sourceDecimals,
6686
6665
  amountUsd: step.inputAmountUsd,
6687
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6666
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6688
6667
  service,
6689
6668
  directTransfer: step.directTransfer,
6690
6669
  isSwappedOrder: true,
@@ -6738,7 +6717,7 @@ function DepositFlow({
6738
6717
  }
6739
6718
  ),
6740
6719
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6741
- _chunkLJJCPDZOcjs.ProcessingStep,
6720
+ _chunkEDUWRMQIcjs.ProcessingStep,
6742
6721
  {
6743
6722
  smartAccount: step.smartAccount,
6744
6723
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6751,7 +6730,7 @@ function DepositFlow({
6751
6730
  sourceSymbol: step.sourceSymbol,
6752
6731
  sourceDecimals: step.sourceDecimals,
6753
6732
  amountUsd: step.inputAmountUsd,
6754
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _230 => _230.length])),
6733
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6755
6734
  service,
6756
6735
  directTransfer: step.directTransfer,
6757
6736
  isSwappedOrder: true,
@@ -6769,8 +6748,8 @@ function DepositFlow({
6769
6748
  }
6770
6749
  if (isSolanaWalletMode) {
6771
6750
  if (!dappAddress) return null;
6772
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaAddress]);
6773
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaProvider]);
6751
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
6752
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
6774
6753
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6775
6754
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6776
6755
  AccountPreparingSkeleton,
@@ -6827,7 +6806,7 @@ function DepositFlow({
6827
6806
  targetToken,
6828
6807
  service,
6829
6808
  solanaProvider,
6830
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _233 => _233.solanaConnection]),
6809
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
6831
6810
  uiConfig,
6832
6811
  onConfirm: handleSolanaConfirmed,
6833
6812
  onError: handleError,
@@ -6868,7 +6847,7 @@ function DepositFlow({
6868
6847
  ) })
6869
6848
  ] }) : null,
6870
6849
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6871
- _chunkLJJCPDZOcjs.ProcessingStep,
6850
+ _chunkEDUWRMQIcjs.ProcessingStep,
6872
6851
  {
6873
6852
  smartAccount: effectiveStep.smartAccount,
6874
6853
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6881,7 +6860,7 @@ function DepositFlow({
6881
6860
  sourceSymbol: effectiveStep.sourceSymbol,
6882
6861
  sourceDecimals: effectiveStep.sourceDecimals,
6883
6862
  amountUsd: effectiveStep.inputAmountUsd,
6884
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _234 => _234.length])),
6863
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
6885
6864
  service,
6886
6865
  directTransfer: effectiveStep.directTransfer,
6887
6866
  onClose,
@@ -6904,7 +6883,7 @@ function DepositFlow({
6904
6883
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6905
6884
  DappImportAssetSelectSkeleton,
6906
6885
  {
6907
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _235 => _235.sourceLabel]), () => ( "")),
6886
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _234 => _234.sourceLabel]), () => ( "")),
6908
6887
  error: dappImportBootError,
6909
6888
  onRetry: handleBootRetry
6910
6889
  }
@@ -6912,16 +6891,16 @@ function DepositFlow({
6912
6891
  }
6913
6892
  );
6914
6893
  }
6915
- if (!_optionalChain([signerContext, 'optionalAccess', _236 => _236.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _237 => _237.publicClient])) {
6894
+ if (!_optionalChain([signerContext, 'optionalAccess', _235 => _235.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _236 => _236.publicClient])) {
6916
6895
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-state", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: "Connecting wallet\u2026" }) }) }) }) });
6917
6896
  }
6918
6897
  const ownerAddress = signerContext.ownerAddress;
6919
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _238 => _238.walletClient, 'optionalAccess', _239 => _239.chain, 'optionalAccess', _240 => _240.id]), () => ( _optionalChain([signerContext, 'access', _241 => _241.publicClient, 'access', _242 => _242.chain, 'optionalAccess', _243 => _243.id]))), () => ( setupChainId));
6898
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _237 => _237.walletClient, 'optionalAccess', _238 => _238.chain, 'optionalAccess', _239 => _239.id]), () => ( _optionalChain([signerContext, 'access', _240 => _240.publicClient, 'access', _241 => _241.chain, 'optionalAccess', _242 => _242.id]))), () => ( setupChainId));
6920
6899
  const getReadClientForChain = (chainId) => {
6921
- if (_optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]) === chainId) {
6900
+ if (_optionalChain([signerContext, 'access', _243 => _243.publicClient, 'access', _244 => _244.chain, 'optionalAccess', _245 => _245.id]) === chainId) {
6922
6901
  return signerContext.publicClient;
6923
6902
  }
6924
- return _chunkLJJCPDZOcjs.getPublicClient.call(void 0, chainId);
6903
+ return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
6925
6904
  };
6926
6905
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6927
6906
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6942,7 +6921,6 @@ function DepositFlow({
6942
6921
  service,
6943
6922
  onContinue: handleAssetContinue,
6944
6923
  onTotalBalanceComputed: handleTotalBalanceComputed,
6945
- onAssetsLoaded: handleAssetsLoaded,
6946
6924
  onDisconnect: onDisconnect ? () => {
6947
6925
  onDisconnect();
6948
6926
  handleBack();
@@ -6952,7 +6930,7 @@ function DepositFlow({
6952
6930
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6953
6931
  DappImportAssetSelectStep,
6954
6932
  {
6955
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _247 => _247.assets, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6933
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _246 => _246.assets, 'access', _247 => _247[0], 'optionalAccess', _248 => _248.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6956
6934
  assets: activeDappImportAvailability.assets,
6957
6935
  onSelect: handleDappImportAssetSelected
6958
6936
  }
@@ -6979,7 +6957,7 @@ function DepositFlow({
6979
6957
  onContinue: handleAmountContinue,
6980
6958
  onCtaClick: (ctaName) => {
6981
6959
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6982
- _optionalChain([onEvent, 'optionalCall', _250 => _250({
6960
+ _optionalChain([onEvent, 'optionalCall', _249 => _249({
6983
6961
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
6984
6962
  send_token: effectiveStep.asset.symbol,
6985
6963
  receive_token: receiveSymbol,
@@ -7031,7 +7009,7 @@ function DepositFlow({
7031
7009
  }
7032
7010
  ),
7033
7011
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7034
- _chunkLJJCPDZOcjs.ProcessingStep,
7012
+ _chunkEDUWRMQIcjs.ProcessingStep,
7035
7013
  {
7036
7014
  smartAccount: effectiveStep.smartAccount,
7037
7015
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7044,7 +7022,7 @@ function DepositFlow({
7044
7022
  sourceSymbol: effectiveStep.sourceSymbol,
7045
7023
  sourceDecimals: effectiveStep.sourceDecimals,
7046
7024
  amountUsd: effectiveStep.inputAmountUsd,
7047
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _251 => _251.length])),
7025
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _250 => _250.length])),
7048
7026
  service,
7049
7027
  directTransfer: effectiveStep.directTransfer,
7050
7028
  uiConfig,
@@ -7076,7 +7054,7 @@ function formatDate(iso) {
7076
7054
  month: "short",
7077
7055
  year: "numeric"
7078
7056
  });
7079
- } catch (e30) {
7057
+ } catch (e29) {
7080
7058
  return iso;
7081
7059
  }
7082
7060
  }
@@ -7134,7 +7112,7 @@ function formatAmount(rawAmount, token, chainId) {
7134
7112
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
7135
7113
  if (frac.length < 2) frac = frac.padEnd(2, "0");
7136
7114
  return `${whole}.${frac}`;
7137
- } catch (e31) {
7115
+ } catch (e30) {
7138
7116
  return rawAmount;
7139
7117
  }
7140
7118
  }
@@ -7183,7 +7161,7 @@ function DepositHistoryPanel({
7183
7161
  );
7184
7162
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7185
7163
  const sourceHashes = new Set(
7186
- deposits.map((d) => _optionalChain([d, 'access', _252 => _252.sourceTxHash, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()])).filter((h) => Boolean(h))
7164
+ deposits.map((d) => _optionalChain([d, 'access', _251 => _251.sourceTxHash, 'optionalAccess', _252 => _252.toLowerCase, 'call', _253 => _253()])).filter((h) => Boolean(h))
7187
7165
  );
7188
7166
  return deposits.filter(
7189
7167
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7205,7 +7183,7 @@ function DepositHistoryPanel({
7205
7183
  className: "rs-modal-header-back",
7206
7184
  "aria-label": "Back",
7207
7185
  onClick: onClose,
7208
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronLeftIcon, {})
7186
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7209
7187
  }
7210
7188
  ) }),
7211
7189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7215,29 +7193,29 @@ function DepositHistoryPanel({
7215
7193
  className: "rs-modal-close",
7216
7194
  "aria-label": "Close",
7217
7195
  onClick: onCloseModal,
7218
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
7196
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7219
7197
  }
7220
7198
  ) })
7221
7199
  ] }),
7222
7200
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7223
7201
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7224
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}), title: "History" }),
7202
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}), title: "History" }),
7225
7203
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7226
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}) }),
7204
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}) }),
7227
7205
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7228
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-spinner--sm" }),
7206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-spinner--sm" }),
7229
7207
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7230
7208
  ] })
7231
7209
  ] }),
7232
7210
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7233
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.AlertTriangleIcon, {}) }),
7211
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.AlertTriangleIcon, {}) }),
7234
7212
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7235
7213
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7236
7214
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7237
7215
  ] })
7238
7216
  ] }),
7239
7217
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7240
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}) }),
7218
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}) }),
7241
7219
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7242
7220
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7243
7221
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7257,7 +7235,7 @@ function DepositHistoryPanel({
7257
7235
  )
7258
7236
  ] })
7259
7237
  ] }),
7260
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
7238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
7261
7239
  ] })
7262
7240
  ]
7263
7241
  }
@@ -7332,7 +7310,7 @@ function HistoryCard({ deposit }) {
7332
7310
  onClick: (e) => e.stopPropagation(),
7333
7311
  children: [
7334
7312
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7335
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ArrowUpRightIcon, {})
7313
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ArrowUpRightIcon, {})
7336
7314
  ]
7337
7315
  }
7338
7316
  )
@@ -7347,7 +7325,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7347
7325
  // src/DepositModal.tsx
7348
7326
 
7349
7327
  var ReownDepositInner = _react.lazy.call(void 0,
7350
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-FMAPWBQM.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7328
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-MCDIOJLT.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7351
7329
  );
7352
7330
  function sortByCreatedAtDesc(items) {
7353
7331
  return [...items].sort((a, b) => {
@@ -7426,12 +7404,12 @@ function DepositModalInner({
7426
7404
  debug
7427
7405
  }) {
7428
7406
  const modalRef = _react.useRef.call(void 0, null);
7429
- const onReadyRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onReady);
7407
+ const onReadyRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onReady);
7430
7408
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7431
7409
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7432
7410
  void 0
7433
7411
  );
7434
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _255 => _255.showHistoryButton]), () => ( false));
7412
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _254 => _254.showHistoryButton]), () => ( false));
7435
7413
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7436
7414
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7437
7415
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7445,19 +7423,19 @@ function DepositModalInner({
7445
7423
  const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7446
7424
  const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7447
7425
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7448
- const onErrorRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onError);
7426
+ const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
7449
7427
  _react.useEffect.call(void 0, () => {
7450
7428
  if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7451
7429
  setRecipientIsContract(false);
7452
7430
  return;
7453
7431
  }
7454
7432
  let cancelled = false;
7455
- _chunkLJJCPDZOcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7433
+ _chunkEDUWRMQIcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7456
7434
  if (cancelled) return;
7457
7435
  const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7458
7436
  setRecipientIsContract(isContract);
7459
7437
  if (isContract) {
7460
- _optionalChain([onErrorRef, 'access', _256 => _256.current, 'optionalCall', _257 => _257({
7438
+ _optionalChain([onErrorRef, 'access', _255 => _255.current, 'optionalCall', _256 => _256({
7461
7439
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7462
7440
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7463
7441
  })]);
@@ -7470,7 +7448,7 @@ function DepositModalInner({
7470
7448
  };
7471
7449
  }, [targetChain, recipient, onErrorRef]);
7472
7450
  const service = _react.useMemo.call(void 0,
7473
- () => _chunkLJJCPDZOcjs.createDepositService.call(void 0, backendUrl, {
7451
+ () => _chunkEDUWRMQIcjs.createDepositService.call(void 0, backendUrl, {
7474
7452
  debug,
7475
7453
  debugScope: "service:deposit"
7476
7454
  }),
@@ -7486,7 +7464,7 @@ function DepositModalInner({
7486
7464
  }, [store, targetChain, targetToken]);
7487
7465
  _react.useEffect.call(void 0, () => {
7488
7466
  if (isOpen && modalRef.current) {
7489
- _chunkLJJCPDZOcjs.applyTheme.call(void 0, modalRef.current, theme);
7467
+ _chunkEDUWRMQIcjs.applyTheme.call(void 0, modalRef.current, theme);
7490
7468
  }
7491
7469
  }, [isOpen, theme]);
7492
7470
  _react.useEffect.call(void 0, () => {
@@ -7494,7 +7472,7 @@ function DepositModalInner({
7494
7472
  }, [solanaRpcUrl]);
7495
7473
  _react.useEffect.call(void 0, () => {
7496
7474
  if (isOpen) {
7497
- _optionalChain([onReadyRef, 'access', _258 => _258.current, 'optionalCall', _259 => _259()]);
7475
+ _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
7498
7476
  }
7499
7477
  }, [isOpen, onReadyRef]);
7500
7478
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7570,10 +7548,10 @@ function DepositModalInner({
7570
7548
  fetchHistory("initial");
7571
7549
  }
7572
7550
  }, [historyOpen, fetchHistory]);
7573
- const onLifecycleRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onLifecycle);
7551
+ const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
7574
7552
  const handleLifecycle = _react.useCallback.call(void 0,
7575
7553
  (event) => {
7576
- _optionalChain([onLifecycleRef, 'access', _260 => _260.current, 'optionalCall', _261 => _261(event)]);
7554
+ _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
7577
7555
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7578
7556
  historyStaleRef.current = true;
7579
7557
  }
@@ -7599,10 +7577,10 @@ function DepositModalInner({
7599
7577
  store.dispatch({ type: "flow/reset" });
7600
7578
  }
7601
7579
  }, [isOpen, store]);
7602
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _262 => _262.showBackButton]), () => ( true));
7580
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
7603
7581
  const canGoBack = backHandler !== void 0;
7604
7582
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7605
- _chunkLJJCPDZOcjs.Modal,
7583
+ _chunkEDUWRMQIcjs.Modal,
7606
7584
  {
7607
7585
  isOpen,
7608
7586
  onClose,
@@ -7618,7 +7596,7 @@ function DepositModalInner({
7618
7596
  className: "rs-modal-header-back",
7619
7597
  "aria-label": "Go back",
7620
7598
  onClick: backHandler,
7621
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronLeftIcon, {})
7599
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7622
7600
  }
7623
7601
  ) }),
7624
7602
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7630,7 +7608,7 @@ function DepositModalInner({
7630
7608
  "aria-label": "Deposit history",
7631
7609
  onClick: handleHistoryOpen,
7632
7610
  disabled: !recipient,
7633
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {})
7611
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {})
7634
7612
  }
7635
7613
  ),
7636
7614
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7640,12 +7618,12 @@ function DepositModalInner({
7640
7618
  onClick: onClose,
7641
7619
  className: "rs-modal-close",
7642
7620
  "aria-label": "Close",
7643
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
7621
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7644
7622
  }
7645
7623
  )
7646
7624
  ] })
7647
7625
  ] }),
7648
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7626
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.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,
7649
7627
  DepositFlow,
7650
7628
  {
7651
7629
  dappWalletClient,