@rhinestone/deposit-modal 0.4.3 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,11 @@ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
64
64
 
65
65
 
66
66
 
67
- var _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
67
+
68
+
69
+
70
+
71
+ var _chunkPDFLALUTcjs = require('./chunk-PDFLALUT.cjs');
68
72
 
69
73
 
70
74
  var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
@@ -142,12 +146,12 @@ function AssetSelectStep({
142
146
  const [error, setError] = _react.useState.call(void 0, null);
143
147
  const defaultAssetId = _react.useMemo.call(void 0, () => {
144
148
  if (!defaultSourceChain || !defaultSourceToken) return null;
145
- return _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
149
+ return _chunkPDFLALUTcjs.getAssetId.call(void 0, {
146
150
  chainId: defaultSourceChain,
147
151
  token: defaultSourceToken
148
152
  });
149
153
  }, [defaultSourceChain, defaultSourceToken]);
150
- const onTotalBalanceComputedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
154
+ const onTotalBalanceComputedRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
151
155
  _react.useEffect.call(void 0, () => {
152
156
  let active = true;
153
157
  function emitAssetsUpdate(currentAssets) {
@@ -167,7 +171,7 @@ function AssetSelectStep({
167
171
  try {
168
172
  const portfolio = await service.fetchPortfolio(address);
169
173
  if (!active) return;
170
- const portfolioAssets = _chunkEDUWRMQIcjs.portfolioToAssets.call(void 0, portfolio.tokens);
174
+ const portfolioAssets = _chunkPDFLALUTcjs.portfolioToAssets.call(void 0, portfolio.tokens);
171
175
  setAssets(portfolioAssets);
172
176
  emitAssetsUpdate(portfolioAssets);
173
177
  const hasNative = portfolioAssets.some(
@@ -243,7 +247,7 @@ function AssetSelectStep({
243
247
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
244
248
  const numeric = Number(raw);
245
249
  if (!Number.isFinite(numeric)) return raw;
246
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
250
+ return _chunkPDFLALUTcjs.tokenFormatter.format(numeric);
247
251
  } catch (e3) {
248
252
  return asset.balance;
249
253
  }
@@ -251,20 +255,20 @@ function AssetSelectStep({
251
255
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
252
256
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
253
257
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
254
- _chunkEDUWRMQIcjs.BodyHeader,
258
+ _chunkPDFLALUTcjs.BodyHeader,
255
259
  {
256
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
260
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}),
257
261
  title: "Your assets",
258
262
  subtitle: "Select source assets to transfer"
259
263
  }
260
264
  ),
261
265
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
262
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
266
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, { className: "rs-text-tertiary" }),
263
267
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
264
268
  ] }),
265
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
269
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
266
270
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
267
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
271
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, { className: "rs-empty-icon" }),
268
272
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
269
273
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
270
274
  address.slice(0, 6),
@@ -331,14 +335,14 @@ function AssetSelectStep({
331
335
  ] })
332
336
  ] })
333
337
  ] }),
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
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkPDFLALUTcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
335
339
  ]
336
340
  },
337
341
  asset.id
338
342
  );
339
343
  }) }),
340
344
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
341
- _chunkEDUWRMQIcjs.Button,
345
+ _chunkPDFLALUTcjs.Button,
342
346
  {
343
347
  onClick: () => selectedAsset && onContinue(selectedAsset),
344
348
  disabled: !selectedAsset,
@@ -347,7 +351,7 @@ function AssetSelectStep({
347
351
  }
348
352
  )
349
353
  ] }),
350
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
351
355
  ] });
352
356
  }
353
357
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -355,7 +359,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
355
359
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
356
360
  if (!connectedChainId) return [];
357
361
  if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
358
- const id = _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
362
+ const id = _chunkPDFLALUTcjs.getAssetId.call(void 0, {
359
363
  chainId: connectedChainId,
360
364
  token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
361
365
  });
@@ -552,7 +556,7 @@ function AmountStep({
552
556
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
553
557
  if (!balanceTarget || !publicClient) return;
554
558
  try {
555
- const bal = _chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
559
+ const bal = _chunkPDFLALUTcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
556
560
  address: asset.token,
557
561
  abi: _viem.erc20Abi,
558
562
  functionName: "balanceOf",
@@ -573,7 +577,7 @@ function AmountStep({
573
577
  hasAttemptedSwitch.current = true;
574
578
  switchChain(asset.chainId).catch((err) => {
575
579
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
576
- setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
580
+ setError(_chunkPDFLALUTcjs.formatUserError.call(void 0, raw));
577
581
  });
578
582
  }
579
583
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -626,7 +630,7 @@ function AmountStep({
626
630
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
627
631
  const numeric = Number(raw);
628
632
  if (!Number.isFinite(numeric)) return raw;
629
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
633
+ return _chunkPDFLALUTcjs.tokenFormatter.format(numeric);
630
634
  } catch (e8) {
631
635
  return "\u2026";
632
636
  }
@@ -747,7 +751,7 @@ function AmountStep({
747
751
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
748
752
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
749
753
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
750
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
754
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}), title: "Wallet deposit" }),
751
755
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
752
756
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
753
757
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -767,13 +771,13 @@ function AmountStep({
767
771
  " available",
768
772
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
769
773
  " (~",
770
- _chunkEDUWRMQIcjs.currencyFormatter.format(balanceUsd),
774
+ _chunkPDFLALUTcjs.currencyFormatter.format(balanceUsd),
771
775
  ")"
772
776
  ] })
773
777
  ] }),
774
778
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
775
779
  "Min. deposit ",
776
- _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
780
+ _chunkPDFLALUTcjs.currencyFormatter.format(minDepositUsd)
777
781
  ] })
778
782
  ] })
779
783
  ] }),
@@ -814,13 +818,13 @@ function AmountStep({
814
818
  ] }),
815
819
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
816
820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
817
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
821
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPDFLALUTcjs.currencyFormatter.format(balanceAfterUsd) })
818
822
  ] })
819
823
  ] }),
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 }),
824
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
825
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
822
826
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
823
- _chunkEDUWRMQIcjs.Button,
827
+ _chunkPDFLALUTcjs.Button,
824
828
  {
825
829
  onClick: handleContinue,
826
830
  fullWidth: true,
@@ -831,7 +835,7 @@ function AmountStep({
831
835
  }
832
836
  )
833
837
  ] }),
834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
838
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
835
839
  ] });
836
840
  }
837
841
 
@@ -878,16 +882,16 @@ function ConfirmStep({
878
882
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
879
883
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
880
884
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
881
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
885
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkPDFLALUTcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
882
886
  const receiveDisplay = (() => {
883
887
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
884
888
  if (quote) {
885
- const quoted = _chunkEDUWRMQIcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
889
+ const quoted = _chunkPDFLALUTcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
886
890
  if (quoted !== void 0) return quoted;
887
891
  }
888
892
  const usdValue = Number(targetAmount);
889
893
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
890
- const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
894
+ const estimate = _chunkPDFLALUTcjs.formatReceiveEstimate.call(void 0, {
891
895
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
892
896
  sourceSymbol: asset.symbol,
893
897
  targetSymbol,
@@ -906,7 +910,7 @@ function ConfirmStep({
906
910
  hasAttemptedSwitch.current = true;
907
911
  switchChain(asset.chainId).catch((err) => {
908
912
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
909
- setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
913
+ setError(_chunkPDFLALUTcjs.formatUserError.call(void 0, raw));
910
914
  });
911
915
  }
912
916
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -986,7 +990,7 @@ function ConfirmStep({
986
990
  const result = await executeTransfer(amountUnits);
987
991
  hash = result.txHash;
988
992
  resolvedSourceToken = result.sourceToken;
989
- } else if (_chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset)) {
993
+ } else if (_chunkPDFLALUTcjs.isNativeAsset.call(void 0, asset)) {
990
994
  hash = await walletClient.sendTransaction({
991
995
  account,
992
996
  chain,
@@ -1007,7 +1011,7 @@ function ConfirmStep({
1007
1011
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1008
1012
  } catch (err) {
1009
1013
  const raw = err instanceof Error ? err.message : "Transfer failed";
1010
- const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
1014
+ const message = _chunkPDFLALUTcjs.formatUserError.call(void 0, raw);
1011
1015
  setError(message);
1012
1016
  _optionalChain([onError, 'optionalCall', _29 => _29(message, "TRANSFER_ERROR")]);
1013
1017
  } finally {
@@ -1016,7 +1020,7 @@ function ConfirmStep({
1016
1020
  };
1017
1021
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1018
1022
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1019
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
1023
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}), title: "Review deposit" }),
1020
1024
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1021
1025
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1022
1026
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1070,14 +1074,14 @@ function ConfirmStep({
1070
1074
  children: feeDisplay
1071
1075
  }
1072
1076
  ),
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, {}) }) })
1077
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.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, _chunkPDFLALUTcjs.InfoIcon, {}) }) })
1074
1078
  ] })
1075
1079
  ] })
1076
1080
  ] }),
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 }),
1081
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1082
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
1079
1083
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1080
- _chunkEDUWRMQIcjs.Button,
1084
+ _chunkPDFLALUTcjs.Button,
1081
1085
  {
1082
1086
  onClick: handleConfirm,
1083
1087
  loading: isSubmitting,
@@ -1088,7 +1092,7 @@ function ConfirmStep({
1088
1092
  }
1089
1093
  )
1090
1094
  ] }),
1091
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
1095
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
1092
1096
  ] });
1093
1097
  }
1094
1098
 
@@ -1111,9 +1115,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1111
1115
  var MAX_POLL_INTERVAL = 3e4;
1112
1116
  var BACKOFF_MULTIPLIER = 1.5;
1113
1117
  function isEventForTx(event, txHash) {
1114
- const eventTxHash = _chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event);
1118
+ const eventTxHash = _chunkPDFLALUTcjs.getEventTxHash.call(void 0, event);
1115
1119
  if (!eventTxHash) return false;
1116
- return _chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1120
+ return _chunkPDFLALUTcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1117
1121
  }
1118
1122
  function truncateHash(hash) {
1119
1123
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1163,7 +1167,7 @@ function formatBridgeFailedMessage(event) {
1163
1167
  }
1164
1168
  return "Bridge failed";
1165
1169
  }
1166
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1170
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1167
1171
  function DepositNotification({
1168
1172
  deposit,
1169
1173
  smartAccount,
@@ -1198,7 +1202,7 @@ function DepositNotification({
1198
1202
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1199
1203
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1200
1204
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1201
- const depositContextRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, {
1205
+ const depositContextRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, {
1202
1206
  amount,
1203
1207
  sourceChain,
1204
1208
  sourceToken: token,
@@ -1207,8 +1211,8 @@ function DepositNotification({
1207
1211
  targetToken,
1208
1212
  hasPostBridgeActions
1209
1213
  });
1210
- const onCompleteRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onComplete);
1211
- const onFailedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onFailed);
1214
+ const onCompleteRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onComplete);
1215
+ const onFailedRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onFailed);
1212
1216
  const handleComplete = _react.useCallback.call(void 0,
1213
1217
  (destTxHash) => {
1214
1218
  if (completedRef.current) return;
@@ -1313,7 +1317,7 @@ function DepositNotification({
1313
1317
  const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1314
1318
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1315
1319
  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.";
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,
1320
+ 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, _chunkPDFLALUTcjs.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, _chunkPDFLALUTcjs.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,
1317
1321
  "svg",
1318
1322
  {
1319
1323
  className: "rs-deposit-notification-spinner",
@@ -1363,7 +1367,7 @@ function DepositNotification({
1363
1367
  className: "rs-deposit-notification-close",
1364
1368
  onClick: () => onDismiss(deposit.id),
1365
1369
  "aria-label": "Dismiss",
1366
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
1370
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CloseIcon, {})
1367
1371
  }
1368
1372
  )
1369
1373
  ] }),
@@ -1379,7 +1383,7 @@ function DepositNotification({
1379
1383
  "aria-expanded": expanded,
1380
1384
  children: [
1381
1385
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1382
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1386
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1383
1387
  ]
1384
1388
  }
1385
1389
  ),
@@ -1726,10 +1730,10 @@ function DepositAddressStep({
1726
1730
  return;
1727
1731
  }
1728
1732
  const event = status.lastEvent;
1729
- const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1733
+ const eventTxHash = _chunkPDFLALUTcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkPDFLALUTcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1730
1734
  if (baselineTxHashRef.current === void 0) {
1731
1735
  baselineTxHashRef.current = eventTxHash;
1732
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1736
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkPDFLALUTcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1733
1737
  const details = getDepositEventDetails(event);
1734
1738
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1735
1739
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1806,7 +1810,7 @@ function DepositAddressStep({
1806
1810
  const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1807
1811
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1808
1812
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1809
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1813
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1810
1814
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1811
1815
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1812
1816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1830,7 +1834,7 @@ function DepositAddressStep({
1830
1834
  }
1831
1835
  ),
1832
1836
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) }),
1833
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1837
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1834
1838
  ]
1835
1839
  }
1836
1840
  ),
@@ -1861,8 +1865,8 @@ function DepositAddressStep({
1861
1865
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1862
1866
  "Min.$",
1863
1867
  (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,
1868
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1869
+ _chunkPDFLALUTcjs.InfoIcon,
1866
1870
  {
1867
1871
  className: "rs-deposit-address-min-icon",
1868
1872
  "aria-hidden": "true"
@@ -1890,7 +1894,7 @@ function DepositAddressStep({
1890
1894
  }
1891
1895
  ),
1892
1896
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1893
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1897
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1894
1898
  ]
1895
1899
  }
1896
1900
  ),
@@ -1941,7 +1945,7 @@ function DepositAddressStep({
1941
1945
  className: "rs-deposit-address-copy",
1942
1946
  onClick: handleCopy,
1943
1947
  children: [
1944
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
1948
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CopyIcon, {}),
1945
1949
  copied ? "Copied!" : "Copy address"
1946
1950
  ]
1947
1951
  }
@@ -1949,7 +1953,7 @@ function DepositAddressStep({
1949
1953
  ]
1950
1954
  }
1951
1955
  ),
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." }),
1956
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.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." }),
1953
1957
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1954
1958
  "div",
1955
1959
  {
@@ -1967,16 +1971,16 @@ function DepositAddressStep({
1967
1971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1968
1972
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1969
1973
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1970
- _chunkEDUWRMQIcjs.Tooltip,
1974
+ _chunkPDFLALUTcjs.Tooltip,
1971
1975
  {
1972
1976
  className: "rs-price-impact-info",
1973
1977
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1974
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
1978
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.InfoIcon, { "aria-hidden": "true" })
1975
1979
  }
1976
1980
  )
1977
1981
  ] }),
1978
1982
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1979
- _chunkEDUWRMQIcjs.ChevronDownIcon,
1983
+ _chunkPDFLALUTcjs.ChevronDownIcon,
1980
1984
  {
1981
1985
  className: "rs-price-impact-chevron",
1982
1986
  "aria-hidden": "true"
@@ -1987,29 +1991,29 @@ function DepositAddressStep({
1987
1991
  ),
1988
1992
  /* @__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: [
1989
1993
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
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, {}) }),
1994
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PercentIcon, {}) }),
1991
1995
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1992
1996
  "Max slippage: ",
1993
1997
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1994
1998
  ] }),
1995
1999
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1996
- _chunkEDUWRMQIcjs.Tooltip,
2000
+ _chunkPDFLALUTcjs.Tooltip,
1997
2001
  {
1998
2002
  className: "rs-price-impact-info",
1999
2003
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2000
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
2004
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.InfoIcon, { "aria-hidden": "true" })
2001
2005
  }
2002
2006
  )
2003
2007
  ] }),
2004
2008
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
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, {}) }),
2009
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ClockIcon, {}) }),
2006
2010
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2007
2011
  "Processing time: ",
2008
2012
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2009
2013
  ] })
2010
2014
  ] }),
2011
2015
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
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, {}) }),
2016
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PlusCircleIcon, {}) }),
2013
2017
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2014
2018
  "Max deposit:",
2015
2019
  " ",
@@ -2041,7 +2045,7 @@ function DepositAddressStep({
2041
2045
  },
2042
2046
  deposit.id
2043
2047
  )) }),
2044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2048
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2045
2049
  ] });
2046
2050
  }
2047
2051
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2057,13 +2061,25 @@ DepositAddressStep.displayName = "DepositAddressStep";
2057
2061
  function FinalisingDepositStep() {
2058
2062
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2059
2063
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-finalising-body", children: [
2060
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2064
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2065
+ "svg",
2066
+ {
2067
+ className: "rs-finalising-spinner",
2068
+ viewBox: "0 0 80 80",
2069
+ fill: "none",
2070
+ "aria-hidden": "true",
2071
+ children: [
2072
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { className: "rs-finalising-spinner-track", cx: "40", cy: "40", r: "34" }),
2073
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { className: "rs-finalising-spinner-head", cx: "40", cy: "40", r: "34" })
2074
+ ]
2075
+ }
2076
+ ),
2061
2077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2062
2078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2063
2079
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2064
2080
  ] })
2065
2081
  ] }),
2066
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2082
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2067
2083
  ] });
2068
2084
  }
2069
2085
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2079,7 +2095,6 @@ var STEP_LABELS = [
2079
2095
  function SwappedOrderTracker({
2080
2096
  amount,
2081
2097
  currency = "USDC",
2082
- chainLabel = "Base",
2083
2098
  stepStates,
2084
2099
  terminal = null,
2085
2100
  onRetry
@@ -2088,13 +2103,13 @@ function SwappedOrderTracker({
2088
2103
  const title = terminal ? terminal.kind === "cancelled" ? "Order cancelled" : "Deposit failed" : formattedAmount ? `Depositing ${formattedAmount} ${currency}` : `Depositing ${currency}`;
2089
2104
  const labels = [
2090
2105
  STEP_LABELS[0],
2091
- `${currency} received on ${chainLabel}`,
2106
+ `${currency} received`,
2092
2107
  STEP_LABELS[2],
2093
2108
  STEP_LABELS[3]
2094
2109
  ];
2095
2110
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2096
2111
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2097
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HandCoinsIcon, {}), title }),
2112
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.HandCoinsIcon, {}), title }),
2098
2113
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2099
2114
  const status = stepStates[idx];
2100
2115
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2108,7 +2123,15 @@ function SwappedOrderTracker({
2108
2123
  {
2109
2124
  className: "rs-swapped-tracker-step-marker",
2110
2125
  "aria-hidden": "true",
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
2126
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2127
+ "svg",
2128
+ {
2129
+ className: "rs-swapped-tracker-step-ring",
2130
+ viewBox: "0 0 16 16",
2131
+ "aria-hidden": "true",
2132
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { cx: "8", cy: "8", r: "7" })
2133
+ }
2134
+ )
2112
2135
  }
2113
2136
  )
2114
2137
  ]
@@ -2135,7 +2158,7 @@ function SwappedOrderTracker({
2135
2158
  }
2136
2159
  )
2137
2160
  ] }),
2138
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2161
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2139
2162
  ] });
2140
2163
  }
2141
2164
  function formatTrackerAmount(amount) {
@@ -2154,6 +2177,7 @@ var DEPOSIT_POLL_FAST_INITIAL_DELAY_MS = 1e3;
2154
2177
  var DEPOSIT_POLL_FAST_INTERVAL_MS = 500;
2155
2178
  var IFRAME_LOAD_TIMEOUT_MS = 15e3;
2156
2179
  var SWAPPED_IFRAME_ORIGINS = /* @__PURE__ */ new Set([
2180
+ "https://connect.swapped.com",
2157
2181
  "https://sandbox.swapped.com",
2158
2182
  "https://widget.swapped.com"
2159
2183
  ]);
@@ -2213,6 +2237,7 @@ function SwappedIframeStep({
2213
2237
  const [orderState, setOrderState] = _react.useState.call(void 0, null);
2214
2238
  const [latestEvent, setLatestEvent] = _react.useState.call(void 0, null);
2215
2239
  const [phase, setPhase] = _react.useState.call(void 0, "iframe");
2240
+ const iframeRef = _react.useRef.call(void 0, null);
2216
2241
  const completeFiredRef = _react.useRef.call(void 0, false);
2217
2242
  const failedFiredRef = _react.useRef.call(void 0, false);
2218
2243
  const expectedOrderUuidRef = _react.useRef.call(void 0, null);
@@ -2299,10 +2324,10 @@ function SwappedIframeStep({
2299
2324
  const status = await service.fetchLatestStatus(smartAccount);
2300
2325
  if (cancelled) return;
2301
2326
  const event = status.lastEvent;
2302
- const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2327
+ const eventTxHash = _chunkPDFLALUTcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkPDFLALUTcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2303
2328
  if (baselineDepositTxHashRef.current === void 0) {
2304
2329
  baselineDepositTxHashRef.current = eventTxHash;
2305
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2330
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkPDFLALUTcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2306
2331
  currentDepositTxHashRef.current = eventTxHash;
2307
2332
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2308
2333
  }
@@ -2335,19 +2360,24 @@ function SwappedIframeStep({
2335
2360
  _react.useEffect.call(void 0, () => {
2336
2361
  function onMessage(e) {
2337
2362
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
2363
+ if (e.source !== _optionalChain([iframeRef, 'access', _82 => _82.current, 'optionalAccess', _83 => _83.contentWindow])) return;
2338
2364
  const parsed = parseSwappedIframeMessage(e.data);
2339
2365
  if (!parsed) return;
2366
+ const orderId = parsed.orderId;
2367
+ if (!orderId || orderId !== expectedOrderUuidRef.current) {
2368
+ return;
2369
+ }
2340
2370
  setOrderState((prev) => ({
2341
- orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderId]))), () => ( "")),
2371
+ orderId,
2342
2372
  status: parsed.status,
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)),
2373
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCrypto]))), () => ( null)),
2374
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.orderCryptoAmount]))), () => ( null)),
2375
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _86 => _86.transactionId]))), () => ( null)),
2346
2376
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
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))
2377
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountUsd]), () => ( null)),
2378
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.paidAmountEur]), () => ( null)),
2379
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.onrampFeeUsd]), () => ( null)),
2380
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _90 => _90.paymentMethod]), () => ( null))
2351
2381
  }));
2352
2382
  }
2353
2383
  window.addEventListener("message", onMessage);
@@ -2359,17 +2389,17 @@ function SwappedIframeStep({
2359
2389
  }
2360
2390
  }, [phase, orderState]);
2361
2391
  const stepStates = _react.useMemo.call(void 0,
2362
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _90 => _90.status]), () => ( null)), latestEvent),
2392
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _91 => _91.status]), () => ( null)), latestEvent),
2363
2393
  [orderState, latestEvent]
2364
2394
  );
2365
2395
  const terminalState = _react.useMemo.call(void 0, () => {
2366
- if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2396
+ if (_chunkPDFLALUTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2367
2397
  return {
2368
2398
  kind: "failed",
2369
- message: _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2399
+ message: _chunkPDFLALUTcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2370
2400
  };
2371
2401
  }
2372
- if (_optionalChain([orderState, 'optionalAccess', _91 => _91.status]) === "order_cancelled") {
2402
+ if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
2373
2403
  const banner = bannerForStatus("order_cancelled", {});
2374
2404
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
2375
2405
  }
@@ -2377,7 +2407,7 @@ function SwappedIframeStep({
2377
2407
  }, [latestEvent, orderState, bannerForStatus]);
2378
2408
  _react.useEffect.call(void 0, () => {
2379
2409
  if (completeFiredRef.current || failedFiredRef.current) return;
2380
- const t = _optionalChain([latestEvent, 'optionalAccess', _92 => _92.type]);
2410
+ const t = _optionalChain([latestEvent, 'optionalAccess', _93 => _93.type]);
2381
2411
  const isSuccess = t === "bridge-complete" || t === "post-bridge-swap-complete";
2382
2412
  if (!isSuccess) return;
2383
2413
  const txHash = currentDepositTxHashRef.current;
@@ -2385,22 +2415,22 @@ function SwappedIframeStep({
2385
2415
  completeFiredRef.current = true;
2386
2416
  onSwappedCompleteRef.current({
2387
2417
  txHash,
2388
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _93 => _93.orderCrypto]), () => ( null)),
2418
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2389
2419
  // Base-unit source amount from the deposit row/event, consistent with the
2390
2420
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2391
- amount: _nullishCoalesce(_chunkEDUWRMQIcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2421
+ amount: _nullishCoalesce(_chunkPDFLALUTcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2392
2422
  });
2393
2423
  }, [latestEvent, orderState]);
2394
2424
  _react.useEffect.call(void 0, () => {
2395
2425
  if (failedFiredRef.current || completeFiredRef.current) return;
2396
- if (!_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2426
+ if (!_chunkPDFLALUTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2397
2427
  const txHash = currentDepositTxHashRef.current;
2398
2428
  if (!txHash) return;
2399
2429
  failedFiredRef.current = true;
2400
2430
  setPhase("tracker");
2401
- _optionalChain([onSwappedFailedRef, 'access', _94 => _94.current, 'optionalCall', _95 => _95(
2431
+ _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2402
2432
  txHash,
2403
- _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2433
+ _chunkPDFLALUTcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2404
2434
  )]);
2405
2435
  }, [latestEvent]);
2406
2436
  if (phase === "tracker") {
@@ -2411,8 +2441,8 @@ function SwappedIframeStep({
2411
2441
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2412
2442
  SwappedOrderTracker,
2413
2443
  {
2414
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _96 => _96.orderCryptoAmount]), () => ( null)),
2415
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCrypto]), () => ( "USDC")),
2444
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCryptoAmount]), () => ( null)),
2445
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _98 => _98.orderCrypto]), () => ( "USDC")),
2416
2446
  stepStates,
2417
2447
  terminal: terminalState,
2418
2448
  onRetry: () => setRetryToken((n) => n + 1),
@@ -2434,10 +2464,11 @@ function SwappedIframeStep({
2434
2464
  }
2435
2465
  )
2436
2466
  ] }),
2437
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2467
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, {}) }),
2438
2468
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2439
2469
  "iframe",
2440
2470
  {
2471
+ ref: iframeRef,
2441
2472
  src: widgetUrl,
2442
2473
  title: iframeTitle,
2443
2474
  className: "rs-fiat-onramp-iframe",
@@ -2448,11 +2479,11 @@ function SwappedIframeStep({
2448
2479
  retryToken
2449
2480
  )
2450
2481
  ] }) }),
2451
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2482
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2452
2483
  ] });
2453
2484
  }
2454
2485
  function deriveStepStates(swappedStatus, latestEvent) {
2455
- if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2486
+ if (_chunkPDFLALUTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2456
2487
  return ["complete", "complete", "failed", "pending"];
2457
2488
  }
2458
2489
  if (swappedStatus === "order_cancelled") {
@@ -2460,7 +2491,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2460
2491
  }
2461
2492
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2462
2493
  const step2Complete = latestEvent !== null;
2463
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _98 => _98.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "post-bridge-swap-complete";
2494
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _100 => _100.type]) === "post-bridge-swap-complete";
2464
2495
  if (step3Complete) {
2465
2496
  return ["complete", "complete", "complete", "pending"];
2466
2497
  }
@@ -2612,7 +2643,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2612
2643
  function ExchangeLogo({ exchange }) {
2613
2644
  const [failed, setFailed] = _react.useState.call(void 0, false);
2614
2645
  if (!exchange.logoUrl || failed) {
2615
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BankIcon, {});
2646
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BankIcon, {});
2616
2647
  }
2617
2648
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2618
2649
  "img",
@@ -2647,7 +2678,7 @@ function ExchangeSelectStep({
2647
2678
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2648
2679
  setExchanges([]);
2649
2680
  setError(message);
2650
- _optionalChain([onError, 'optionalCall', _100 => _100(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2681
+ _optionalChain([onError, 'optionalCall', _101 => _101(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2651
2682
  }).finally(() => {
2652
2683
  if (!cancelled) setLoading(false);
2653
2684
  });
@@ -2658,14 +2689,14 @@ function ExchangeSelectStep({
2658
2689
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2659
2690
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2660
2691
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2661
- _chunkEDUWRMQIcjs.BodyHeader,
2692
+ _chunkPDFLALUTcjs.BodyHeader,
2662
2693
  {
2663
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.UnplugIcon, {}),
2694
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.UnplugIcon, {}),
2664
2695
  title: "Connect exchange",
2665
2696
  subtitle: "Select an exchange to connect"
2666
2697
  }
2667
2698
  ),
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, {}) }),
2699
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, {}) }),
2669
2700
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2670
2701
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2671
2702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2691,7 +2722,7 @@ function ExchangeSelectStep({
2691
2722
  )
2692
2723
  ] }),
2693
2724
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2694
- const brand = _chunkEDUWRMQIcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2725
+ const brand = _chunkPDFLALUTcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2695
2726
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2696
2727
  "button",
2697
2728
  {
@@ -2714,7 +2745,7 @@ function ExchangeSelectStep({
2714
2745
  );
2715
2746
  }) })
2716
2747
  ] }),
2717
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2748
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2718
2749
  ] });
2719
2750
  }
2720
2751
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2726,8 +2757,8 @@ function DepositAddressSkeleton({
2726
2757
  uiConfig,
2727
2758
  allowedRoutes
2728
2759
  }) {
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;
2760
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2761
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2731
2762
  const evmChainIds = (() => {
2732
2763
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2733
2764
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
@@ -2744,7 +2775,7 @@ function DepositAddressSkeleton({
2744
2775
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2745
2776
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2746
2777
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2747
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2778
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2748
2779
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2749
2780
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2750
2781
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2758,7 +2789,7 @@ function DepositAddressSkeleton({
2758
2789
  }
2759
2790
  ),
2760
2791
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2792
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2762
2793
  ] })
2763
2794
  ] }),
2764
2795
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2766,9 +2797,9 @@ function DepositAddressSkeleton({
2766
2797
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2767
2798
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2768
2799
  "Min.$",
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,
2800
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2801
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2802
+ _chunkPDFLALUTcjs.InfoIcon,
2772
2803
  {
2773
2804
  className: "rs-deposit-address-min-icon",
2774
2805
  "aria-hidden": "true"
@@ -2786,7 +2817,7 @@ function DepositAddressSkeleton({
2786
2817
  }
2787
2818
  ),
2788
2819
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2789
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2790
2821
  ] })
2791
2822
  ] })
2792
2823
  ] }),
@@ -2807,7 +2838,7 @@ function DepositAddressSkeleton({
2807
2838
  disabled: true,
2808
2839
  "aria-hidden": "true",
2809
2840
  children: [
2810
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
2841
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CopyIcon, {}),
2811
2842
  "Copy address"
2812
2843
  ]
2813
2844
  }
@@ -2820,16 +2851,16 @@ function DepositAddressSkeleton({
2820
2851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2821
2852
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2822
2853
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2823
- _chunkEDUWRMQIcjs.Tooltip,
2854
+ _chunkPDFLALUTcjs.Tooltip,
2824
2855
  {
2825
2856
  className: "rs-price-impact-info",
2826
2857
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2827
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
2858
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.InfoIcon, { "aria-hidden": "true" })
2828
2859
  }
2829
2860
  )
2830
2861
  ] }),
2831
2862
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2832
- _chunkEDUWRMQIcjs.ChevronDownIcon,
2863
+ _chunkPDFLALUTcjs.ChevronDownIcon,
2833
2864
  {
2834
2865
  className: "rs-price-impact-chevron",
2835
2866
  "aria-hidden": "true"
@@ -2837,7 +2868,7 @@ function DepositAddressSkeleton({
2837
2868
  )
2838
2869
  ] }) })
2839
2870
  ] }),
2840
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2871
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
2841
2872
  ] });
2842
2873
  }
2843
2874
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2869,7 +2900,7 @@ function SolanaTokenSelectStep({
2869
2900
  setError(null);
2870
2901
  const portfolioBySymbol = {};
2871
2902
  try {
2872
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2903
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2873
2904
  solanaAddress
2874
2905
  });
2875
2906
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -2892,12 +2923,12 @@ function SolanaTokenSelectStep({
2892
2923
  };
2893
2924
  }
2894
2925
  }
2895
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2926
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2896
2927
  symbols: Object.keys(portfolioBySymbol)
2897
2928
  });
2898
2929
  } catch (err) {
2899
2930
  if (!active) return;
2900
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2931
+ _chunkPDFLALUTcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2901
2932
  solanaAddress
2902
2933
  });
2903
2934
  setError(
@@ -2922,7 +2953,7 @@ function SolanaTokenSelectStep({
2922
2953
  setTokenBalances(results);
2923
2954
  setLoading(false);
2924
2955
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
2925
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _104 => _104(totalUsd)]);
2956
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _105 => _105(totalUsd)]);
2926
2957
  }
2927
2958
  void loadBalances();
2928
2959
  return () => {
@@ -2944,7 +2975,7 @@ function SolanaTokenSelectStep({
2944
2975
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2945
2976
  const numeric = Number(raw);
2946
2977
  if (!Number.isFinite(numeric)) return raw;
2947
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
2978
+ return _chunkPDFLALUTcjs.tokenFormatter.format(numeric);
2948
2979
  } catch (e20) {
2949
2980
  return "--";
2950
2981
  }
@@ -2954,20 +2985,20 @@ function SolanaTokenSelectStep({
2954
2985
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2955
2986
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2956
2987
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2957
- _chunkEDUWRMQIcjs.BodyHeader,
2988
+ _chunkPDFLALUTcjs.BodyHeader,
2958
2989
  {
2959
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
2990
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}),
2960
2991
  title: "Your assets",
2961
2992
  subtitle: "Select source assets to transfer"
2962
2993
  }
2963
2994
  ),
2964
2995
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2965
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
2996
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, { className: "rs-text-tertiary" }),
2966
2997
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2967
2998
  ] }),
2968
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
2999
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
2969
3000
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
2970
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
3001
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, { className: "rs-empty-icon" }),
2971
3002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2972
3003
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2973
3004
  solanaAddress.slice(0, 6),
@@ -3016,14 +3047,14 @@ function SolanaTokenSelectStep({
3016
3047
  ] })
3017
3048
  ] })
3018
3049
  ] }),
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}` : "--" })
3050
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkPDFLALUTcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3020
3051
  ]
3021
3052
  },
3022
3053
  entry.token.symbol
3023
3054
  );
3024
3055
  }) }),
3025
3056
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3026
- _chunkEDUWRMQIcjs.Button,
3057
+ _chunkPDFLALUTcjs.Button,
3027
3058
  {
3028
3059
  onClick: () => selectedEntry && onContinue(
3029
3060
  selectedEntry.token,
@@ -3036,7 +3067,7 @@ function SolanaTokenSelectStep({
3036
3067
  }
3037
3068
  )
3038
3069
  ] }),
3039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3070
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
3040
3071
  ] });
3041
3072
  }
3042
3073
 
@@ -3069,7 +3100,7 @@ function SolanaAmountStep({
3069
3100
  const [error, setError] = _react.useState.call(void 0, null);
3070
3101
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3071
3102
  const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, token.symbol);
3072
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _105 => _105.trim, 'call', _106 => _106(), 'access', _107 => _107.toLowerCase, 'call', _108 => _108()]) === "max";
3103
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3073
3104
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3074
3105
  if (isSourceStablecoin) return 1;
3075
3106
  try {
@@ -3089,7 +3120,7 @@ function SolanaAmountStep({
3089
3120
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3090
3121
  const numeric = Number(raw);
3091
3122
  if (!Number.isFinite(numeric)) return raw;
3092
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
3123
+ return _chunkPDFLALUTcjs.tokenFormatter.format(numeric);
3093
3124
  } catch (e22) {
3094
3125
  return "\u2026";
3095
3126
  }
@@ -3171,8 +3202,8 @@ function SolanaAmountStep({
3171
3202
  return null;
3172
3203
  }
3173
3204
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
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));
3205
+ 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));
3206
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3176
3207
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3177
3208
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3178
3209
  const exceedsBalance = Boolean(
@@ -3182,7 +3213,7 @@ function SolanaAmountStep({
3182
3213
  const handlePresetClick = (percentage) => {
3183
3214
  const formatted = computePresetAmount(percentage);
3184
3215
  if (!formatted) return;
3185
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3216
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3186
3217
  percentage,
3187
3218
  symbol: token.symbol,
3188
3219
  formatted
@@ -3217,7 +3248,7 @@ function SolanaAmountStep({
3217
3248
  try {
3218
3249
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3219
3250
  } catch (e27) {
3220
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3251
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3221
3252
  amount,
3222
3253
  sourceAmount: sourceAmountStr,
3223
3254
  reason: "parse-units-failed"
@@ -3232,7 +3263,7 @@ function SolanaAmountStep({
3232
3263
  );
3233
3264
  return;
3234
3265
  }
3235
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3266
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3236
3267
  symbol: token.symbol,
3237
3268
  inputAmountUsd: amount,
3238
3269
  sourceAmount: sourceAmountStr,
@@ -3246,7 +3277,7 @@ function SolanaAmountStep({
3246
3277
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3247
3278
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3248
3279
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3249
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
3280
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}), title: "Wallet deposit" }),
3250
3281
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3251
3282
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3252
3283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3266,13 +3297,13 @@ function SolanaAmountStep({
3266
3297
  " available",
3267
3298
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3268
3299
  " (~",
3269
- _chunkEDUWRMQIcjs.currencyFormatter.format(computedBalanceUsd),
3300
+ _chunkPDFLALUTcjs.currencyFormatter.format(computedBalanceUsd),
3270
3301
  ")"
3271
3302
  ] })
3272
3303
  ] }),
3273
3304
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3274
3305
  "Min. deposit ",
3275
- _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
3306
+ _chunkPDFLALUTcjs.currencyFormatter.format(minDepositUsd)
3276
3307
  ] })
3277
3308
  ] })
3278
3309
  ] }),
@@ -3311,13 +3342,13 @@ function SolanaAmountStep({
3311
3342
  ] }),
3312
3343
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3313
3344
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3314
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
3345
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPDFLALUTcjs.currencyFormatter.format(balanceAfterUsd) })
3315
3346
  ] })
3316
3347
  ] }),
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 }),
3348
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3349
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
3319
3350
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3320
- _chunkEDUWRMQIcjs.Button,
3351
+ _chunkPDFLALUTcjs.Button,
3321
3352
  {
3322
3353
  onClick: handleContinue,
3323
3354
  fullWidth: true,
@@ -3326,7 +3357,7 @@ function SolanaAmountStep({
3326
3357
  }
3327
3358
  )
3328
3359
  ] }),
3329
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3360
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
3330
3361
  ] });
3331
3362
  }
3332
3363
 
@@ -3347,21 +3378,15 @@ var _web3js = require('@solana/web3.js');
3347
3378
 
3348
3379
  var _spltoken = require('@solana/spl-token');
3349
3380
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3350
- var configuredSolanaRpcUrl = null;
3351
3381
  var cachedConnections = /* @__PURE__ */ new Map();
3352
- function configureSolanaRpcUrl(rpcUrl) {
3353
- const normalized = _optionalChain([rpcUrl, 'optionalAccess', _112 => _112.trim, 'call', _113 => _113()]);
3354
- configuredSolanaRpcUrl = normalized ? normalized : null;
3355
- cachedConnections.clear();
3356
- }
3357
- function getSolanaRpcUrl() {
3358
- return _nullishCoalesce(configuredSolanaRpcUrl, () => ( DEFAULT_SOLANA_RPC_URL));
3382
+ function getSolanaRpcUrl(rpcUrls) {
3383
+ return _nullishCoalesce(_chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3359
3384
  }
3360
- function hasConfiguredSolanaRpcUrl() {
3361
- return configuredSolanaRpcUrl !== null;
3385
+ function hasConfiguredSolanaRpcUrl(rpcUrls) {
3386
+ return _chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3362
3387
  }
3363
- function getSolanaConnection() {
3364
- const rpcUrl = getSolanaRpcUrl();
3388
+ function getSolanaConnection(rpcUrls) {
3389
+ const rpcUrl = getSolanaRpcUrl(rpcUrls);
3365
3390
  const cached = cachedConnections.get(rpcUrl);
3366
3391
  if (cached) {
3367
3392
  return cached;
@@ -3460,6 +3485,7 @@ function SolanaConfirmStep({
3460
3485
  onError,
3461
3486
  debug
3462
3487
  }) {
3488
+ const rpcUrls = _chunkPDFLALUTcjs.useRpcUrls.call(void 0, );
3463
3489
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3464
3490
  const [error, setError] = _react.useState.call(void 0, null);
3465
3491
  const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
@@ -3469,13 +3495,13 @@ function SolanaConfirmStep({
3469
3495
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3470
3496
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3471
3497
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
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";
3498
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.feeSponsored]), () => ( false));
3499
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _114 => _114.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3500
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkPDFLALUTcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3475
3501
  const receiveDisplay = (() => {
3476
3502
  const usdValue = Number(targetAmount);
3477
3503
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3478
- const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
3504
+ const estimate = _chunkPDFLALUTcjs.formatReceiveEstimate.call(void 0, {
3479
3505
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3480
3506
  sourceSymbol: token.symbol,
3481
3507
  targetSymbol,
@@ -3487,7 +3513,7 @@ function SolanaConfirmStep({
3487
3513
  })();
3488
3514
  const handleConfirm = async () => {
3489
3515
  if (!solanaProvider) {
3490
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3516
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3491
3517
  reason: "missing-provider"
3492
3518
  });
3493
3519
  setError("Solana wallet not connected");
@@ -3495,7 +3521,7 @@ function SolanaConfirmStep({
3495
3521
  }
3496
3522
  const parsedAmount = parseFloat(sourceAmount);
3497
3523
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3498
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3524
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3499
3525
  reason: "invalid-amount",
3500
3526
  sourceAmount
3501
3527
  });
@@ -3504,7 +3530,7 @@ function SolanaConfirmStep({
3504
3530
  }
3505
3531
  setError(null);
3506
3532
  setIsSubmitting(true);
3507
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3533
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3508
3534
  smartAccount,
3509
3535
  solanaAddress,
3510
3536
  solanaDepositAddress,
@@ -3514,7 +3540,7 @@ function SolanaConfirmStep({
3514
3540
  });
3515
3541
  try {
3516
3542
  const check = await service.checkAccount(smartAccount);
3517
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3543
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3518
3544
  smartAccount,
3519
3545
  isRegistered: check.isRegistered,
3520
3546
  targetChain: check.targetChain,
@@ -3525,9 +3551,9 @@ function SolanaConfirmStep({
3525
3551
  "Deposit account is not registered yet. Please restart setup and try again."
3526
3552
  );
3527
3553
  }
3528
- const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3554
+ const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3529
3555
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3530
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3556
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3531
3557
  token: token.symbol,
3532
3558
  sourceAmount,
3533
3559
  amountUnits: amountUnits.toString()
@@ -3544,10 +3570,10 @@ function SolanaConfirmStep({
3544
3570
  token.mint,
3545
3571
  amountUnits
3546
3572
  );
3547
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3573
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3548
3574
  token: token.symbol,
3549
3575
  instructionCount: transaction.instructions.length,
3550
- feePayer: _optionalChain([transaction, 'access', _116 => _116.feePayer, 'optionalAccess', _117 => _117.toBase58, 'call', _118 => _118()]),
3576
+ feePayer: _optionalChain([transaction, 'access', _115 => _115.feePayer, 'optionalAccess', _116 => _116.toBase58, 'call', _117 => _117()]),
3551
3577
  recentBlockhash: transaction.recentBlockhash
3552
3578
  });
3553
3579
  const txHash = await sendSolanaTransaction(
@@ -3555,28 +3581,28 @@ function SolanaConfirmStep({
3555
3581
  connection,
3556
3582
  transaction
3557
3583
  );
3558
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3584
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3559
3585
  txHash,
3560
3586
  amountUnits: amountUnits.toString()
3561
3587
  });
3562
3588
  onConfirm(txHash, amountUnits.toString());
3563
3589
  } catch (err) {
3564
3590
  const raw = err instanceof Error ? err.message : "Transfer failed";
3565
- const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
3566
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3591
+ const message = _chunkPDFLALUTcjs.formatUserError.call(void 0, raw);
3592
+ _chunkPDFLALUTcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3567
3593
  smartAccount,
3568
3594
  token: token.symbol,
3569
3595
  sourceAmount
3570
3596
  });
3571
3597
  setError(message);
3572
- _optionalChain([onError, 'optionalCall', _119 => _119(message, "SOLANA_TRANSFER_ERROR")]);
3598
+ _optionalChain([onError, 'optionalCall', _118 => _118(message, "SOLANA_TRANSFER_ERROR")]);
3573
3599
  } finally {
3574
3600
  setIsSubmitting(false);
3575
3601
  }
3576
3602
  };
3577
3603
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3578
3604
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3579
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
3605
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}), title: "Review deposit" }),
3580
3606
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3581
3607
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3582
3608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3624,13 +3650,13 @@ function SolanaConfirmStep({
3624
3650
  children: "$0.04"
3625
3651
  }
3626
3652
  ),
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, {}) }) })
3653
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.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, _chunkPDFLALUTcjs.InfoIcon, {}) }) })
3628
3654
  ] })
3629
3655
  ] })
3630
3656
  ] }),
3631
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3657
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Callout, { variant: "error", children: error }),
3632
3658
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3633
- _chunkEDUWRMQIcjs.Button,
3659
+ _chunkPDFLALUTcjs.Button,
3634
3660
  {
3635
3661
  onClick: handleConfirm,
3636
3662
  loading: isSubmitting,
@@ -3641,7 +3667,7 @@ function SolanaConfirmStep({
3641
3667
  }
3642
3668
  )
3643
3669
  ] }),
3644
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3670
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
3645
3671
  ] });
3646
3672
  }
3647
3673
 
@@ -3655,18 +3681,18 @@ function DappImportAssetSelectStep({
3655
3681
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3656
3682
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3657
3683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3658
- _chunkEDUWRMQIcjs.BodyHeader,
3684
+ _chunkPDFLALUTcjs.BodyHeader,
3659
3685
  {
3660
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3686
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}),
3661
3687
  title: `Transfer from ${sourceLabel}`,
3662
3688
  subtitle: "Pick the balance to import"
3663
3689
  }
3664
3690
  ),
3665
3691
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3666
- const tokenAmount = asset.balance ? _chunkEDUWRMQIcjs.tokenFormatter.format(
3692
+ const tokenAmount = asset.balance ? _chunkPDFLALUTcjs.tokenFormatter.format(
3667
3693
  Number(asset.balance) / 10 ** asset.decimals
3668
3694
  ) : "0";
3669
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3695
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkPDFLALUTcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3670
3696
  const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3671
3697
  const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3672
3698
  const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
@@ -3717,7 +3743,7 @@ function DappImportAssetSelectStep({
3717
3743
  );
3718
3744
  }) })
3719
3745
  ] }),
3720
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3746
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
3721
3747
  ] });
3722
3748
  }
3723
3749
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3734,9 +3760,9 @@ function DappImportAssetSelectSkeleton({
3734
3760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3735
3761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3736
3762
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3737
- _chunkEDUWRMQIcjs.BodyHeader,
3763
+ _chunkPDFLALUTcjs.BodyHeader,
3738
3764
  {
3739
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3765
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.WalletIcon, {}),
3740
3766
  title: `Transfer from ${sourceLabel}`,
3741
3767
  subtitle: "Pick the balance to import"
3742
3768
  }
@@ -3774,7 +3800,7 @@ function DappImportAssetSelectSkeleton({
3774
3800
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3775
3801
  }
3776
3802
  ) }),
3777
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3803
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
3778
3804
  ] });
3779
3805
  }
3780
3806
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3964,21 +3990,21 @@ var polymarketProvider = {
3964
3990
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
3965
3991
  const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
3966
3992
  if (!proxyWallet) return null;
3967
- if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
3993
+ if (_optionalChain([signal, 'optionalAccess', _119 => _119.aborted])) return null;
3968
3994
  const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
3969
3995
  if (!polygonClient) return null;
3970
3996
  const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
3971
3997
  publicClient: polygonClient,
3972
3998
  proxyWallet
3973
3999
  });
3974
- if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
4000
+ if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
3975
4001
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
3976
4002
  const walletKind = await detectPolymarketWalletKind({
3977
4003
  publicClient: polygonClient,
3978
4004
  proxyWallet,
3979
4005
  eoa
3980
4006
  });
3981
- if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
4007
+ if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3982
4008
  if (!walletKind) return null;
3983
4009
  const assets = [];
3984
4010
  if (balances.pusd > 0n) {
@@ -4103,7 +4129,7 @@ function readSetupForOwner(setup, owner) {
4103
4129
  function computeDappImportStatus(providerId, inputs) {
4104
4130
  const { owner, availability, availabilityOwner, setup } = inputs;
4105
4131
  if (!owner) return "needs-connect";
4106
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _123 => _123.toLowerCase, 'call', _124 => _124()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4132
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _122 => _122.toLowerCase, 'call', _123 => _123()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4107
4133
  if (entry === "loading" || entry === void 0) return "loading";
4108
4134
  if (entry === "error") {
4109
4135
  return {
@@ -4457,12 +4483,12 @@ function applyAction(state, action) {
4457
4483
  requestKey: action.requestKey,
4458
4484
  cacheKey: action.cacheKey,
4459
4485
  status: "loading",
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)),
4486
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _124 => _124.smartAccount]), () => ( null)),
4487
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _125 => _125.sessionOwnerAddress]), () => ( null)),
4488
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.solanaDepositAddress]), () => ( null)),
4463
4489
  message: null,
4464
4490
  cacheable: action.cacheable,
4465
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.attemptNonce]), () => ( 0))
4491
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.attemptNonce]), () => ( 0))
4466
4492
  }));
4467
4493
  }
4468
4494
  case "setup/ready": {
@@ -4584,7 +4610,8 @@ function applyAction(state, action) {
4584
4610
  processing: {
4585
4611
  ...state.processing,
4586
4612
  txHash: action.txHash,
4587
- directTransfer: _nullishCoalesce(action.directTransfer, () => ( false))
4613
+ directTransfer: _nullishCoalesce(action.directTransfer, () => ( false)),
4614
+ swappedContext: _nullishCoalesce(action.swappedContext, () => ( null))
4588
4615
  },
4589
4616
  flow: { ...state.flow, step: "processing" }
4590
4617
  };
@@ -4753,7 +4780,8 @@ function applyAction(state, action) {
4753
4780
  deposit: { ...state.deposit, ...RESET_DEPOSIT_FIELDS },
4754
4781
  processing: {
4755
4782
  txHash: null,
4756
- directTransfer: false
4783
+ directTransfer: false,
4784
+ swappedContext: null
4757
4785
  },
4758
4786
  // Drop fetched availability wholesale. The fetch effect refetches
4759
4787
  // unconditionally on remount (so keeping the map saves nothing),
@@ -4834,7 +4862,8 @@ function createInitialState(overrides) {
4834
4862
  },
4835
4863
  processing: {
4836
4864
  txHash: null,
4837
- directTransfer: false
4865
+ directTransfer: false,
4866
+ swappedContext: null
4838
4867
  },
4839
4868
  dappImport: {
4840
4869
  activeProviderId: null,
@@ -4900,15 +4929,15 @@ var SetupError = class extends Error {
4900
4929
  }
4901
4930
  };
4902
4931
  async function resolveSessionOwner(eoaAddress) {
4903
- const local = _chunkEDUWRMQIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4932
+ const local = _chunkPDFLALUTcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4904
4933
  if (local) {
4905
4934
  return {
4906
- account: _chunkEDUWRMQIcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4935
+ account: _chunkPDFLALUTcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4907
4936
  address: local.address
4908
4937
  };
4909
4938
  }
4910
- const created = _chunkEDUWRMQIcjs.createSessionOwnerKey.call(void 0, );
4911
- _chunkEDUWRMQIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4939
+ const created = _chunkPDFLALUTcjs.createSessionOwnerKey.call(void 0, );
4940
+ _chunkPDFLALUTcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4912
4941
  return { account: created.account, address: created.address };
4913
4942
  }
4914
4943
  function stableStringify(value) {
@@ -4958,14 +4987,14 @@ function computeCacheKey(input, sessionOwnerAddress) {
4958
4987
  });
4959
4988
  }
4960
4989
  function computeIsCacheable(input) {
4961
- return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _129 => _129.postBridgeActions, 'optionalAccess', _130 => _130.length]), () => ( 0)));
4990
+ return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _128 => _128.postBridgeActions, 'optionalAccess', _129 => _129.length]), () => ( 0)));
4962
4991
  }
4963
4992
  var SETUP_REQUEST_DEDUPE_TTL_MS = 3e4;
4964
4993
  var setupRequestDedupe = /* @__PURE__ */ new Map();
4965
4994
  function readDedupedAccountSetupResult(requestKey) {
4966
4995
  const now = Date.now();
4967
4996
  const existing = setupRequestDedupe.get(requestKey);
4968
- if (_optionalChain([existing, 'optionalAccess', _131 => _131.settled]) && existing.expiresAt > now && existing.result) {
4997
+ if (_optionalChain([existing, 'optionalAccess', _130 => _130.settled]) && existing.expiresAt > now && existing.result) {
4969
4998
  return existing.result;
4970
4999
  }
4971
5000
  return null;
@@ -4976,10 +5005,10 @@ async function runAccountSetup(input, deps) {
4976
5005
  try {
4977
5006
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
4978
5007
  const cacheKey = computeCacheKey(input, sessionOwner.address);
4979
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5008
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4980
5009
  owner: input.ownerAddress,
4981
5010
  sessionOwner: sessionOwner.address,
4982
- hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _132 => _132.postBridgeActions, 'optionalAccess', _133 => _133.length])),
5011
+ hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _131 => _131.postBridgeActions, 'optionalAccess', _132 => _132.length])),
4983
5012
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
4984
5013
  });
4985
5014
  const setup = await service.setupAccount({
@@ -5024,7 +5053,7 @@ async function runAccountSetup(input, deps) {
5024
5053
  primaryType: typedData.primaryType,
5025
5054
  message: typedData.message
5026
5055
  });
5027
- const sessionDetails = _chunkEDUWRMQIcjs.buildSessionDetails.call(void 0,
5056
+ const sessionDetails = _chunkPDFLALUTcjs.buildSessionDetails.call(void 0,
5028
5057
  setup.sessionDetailsUnsigned,
5029
5058
  signature
5030
5059
  );
@@ -5041,10 +5070,10 @@ async function runAccountSetup(input, deps) {
5041
5070
  chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5042
5071
  token: input.targetToken,
5043
5072
  ...input.recipient && { recipient: input.recipient },
5044
- ..._optionalChain([input, 'access', _134 => _134.postBridgeActions, 'optionalAccess', _135 => _135.length]) && {
5073
+ ..._optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length]) && {
5045
5074
  postBridgeActions: input.postBridgeActions
5046
5075
  },
5047
- ..._optionalChain([input, 'access', _136 => _136.outputTokenRules, 'optionalAccess', _137 => _137.length]) && {
5076
+ ..._optionalChain([input, 'access', _135 => _135.outputTokenRules, 'optionalAccess', _136 => _136.length]) && {
5048
5077
  outputTokenRules: input.outputTokenRules
5049
5078
  },
5050
5079
  ...input.rejectUnmapped != null && {
@@ -5060,7 +5089,7 @@ async function runAccountSetup(input, deps) {
5060
5089
  isRegistered: true
5061
5090
  };
5062
5091
  } catch (error) {
5063
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5092
+ _chunkPDFLALUTcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5064
5093
  owner: input.ownerAddress
5065
5094
  });
5066
5095
  if (error instanceof SetupError) throw error;
@@ -5071,7 +5100,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5071
5100
  const now = Date.now();
5072
5101
  const existing = setupRequestDedupe.get(requestKey);
5073
5102
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5074
- _chunkEDUWRMQIcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5103
+ _chunkPDFLALUTcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5075
5104
  owner: input.ownerAddress,
5076
5105
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5077
5106
  });
@@ -5300,7 +5329,8 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5300
5329
  sourceSymbol: _nullishCoalesce(d.sourceSymbol, () => ( void 0)),
5301
5330
  sourceDecimals: _nullishCoalesce(d.sourceDecimals, () => ( void 0)),
5302
5331
  inputAmountUsd: _nullishCoalesce(d.inputAmountUsd, () => ( void 0)),
5303
- directTransfer: p.directTransfer
5332
+ directTransfer: p.directTransfer,
5333
+ swappedContext: _nullishCoalesce(p.swappedContext, () => ( void 0))
5304
5334
  };
5305
5335
  }
5306
5336
  }
@@ -5358,10 +5388,11 @@ function DepositFlow({
5358
5388
  onError,
5359
5389
  debug
5360
5390
  }) {
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);
5391
+ const rpcUrls = _chunkPDFLALUTcjs.useRpcUrls.call(void 0, );
5392
+ const onStepChangeRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onStepChange);
5393
+ const onEventRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onEvent);
5394
+ const onLifecycleRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onLifecycle);
5395
+ const onErrorRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onError);
5365
5396
  const storeApi = useDepositStoreApi();
5366
5397
  const flowSlice = useDepositStore((s) => s.flow);
5367
5398
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5377,23 +5408,23 @@ function DepositFlow({
5377
5408
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5378
5409
  const logFlow = _react.useCallback.call(void 0,
5379
5410
  (message, data) => {
5380
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5411
+ _chunkPDFLALUTcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5381
5412
  },
5382
5413
  [debug]
5383
5414
  );
5384
5415
  const logFlowError = _react.useCallback.call(void 0,
5385
5416
  (message, error, data) => {
5386
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5417
+ _chunkPDFLALUTcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5387
5418
  },
5388
5419
  [debug]
5389
5420
  );
5390
5421
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5391
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _138 => _138.switchChain])) return void 0;
5422
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _137 => _137.switchChain])) return void 0;
5392
5423
  return async (chainId) => {
5393
- await _optionalChain([dappWalletClient, 'access', _139 => _139.switchChain, 'optionalCall', _140 => _140({ id: chainId })]);
5424
+ await _optionalChain([dappWalletClient, 'access', _138 => _138.switchChain, 'optionalCall', _139 => _139({ id: chainId })]);
5394
5425
  };
5395
5426
  }, [dappWalletClient]);
5396
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _141 => _141.account, 'optionalAccess', _142 => _142.address]), () => ( null));
5427
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _140 => _140.account, 'optionalAccess', _141 => _141.address]), () => ( null));
5397
5428
  const walletOptions = _react.useMemo.call(void 0, () => {
5398
5429
  const options = [];
5399
5430
  const seen = /* @__PURE__ */ new Set();
@@ -5407,7 +5438,7 @@ function DepositFlow({
5407
5438
  });
5408
5439
  seen.add(id);
5409
5440
  }
5410
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _143 => _143.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5441
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _142 => _142.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5411
5442
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5412
5443
  if (!seen.has(id)) {
5413
5444
  options.push({
@@ -5419,7 +5450,7 @@ function DepositFlow({
5419
5450
  });
5420
5451
  seen.add(id);
5421
5452
  }
5422
- } else if (_optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5453
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _143 => _143.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5423
5454
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5424
5455
  if (!seen.has(id)) {
5425
5456
  options.push({
@@ -5436,20 +5467,20 @@ function DepositFlow({
5436
5467
  }, [
5437
5468
  connectedWalletAddress,
5438
5469
  dappAddress,
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]),
5470
+ _optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]),
5471
+ _optionalChain([reownWallet, 'optionalAccess', _145 => _145.isConnected]),
5472
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.walletClient]),
5473
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.publicClient]),
5474
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.icon]),
5444
5475
  enableSolana,
5445
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isSolana]),
5446
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.solanaAddress]),
5447
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.caipAddress])
5476
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.isSolana]),
5477
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.solanaAddress]),
5478
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.caipAddress])
5448
5479
  ]);
5449
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _153 => _153.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5480
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _152 => _152.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5450
5481
  const hasWalletOptions = walletOptions.length > 0;
5451
5482
  const hasReownSession = Boolean(
5452
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address]) : _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address])
5483
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _153 => _153.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _154 => _154.address]) : _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address])
5453
5484
  );
5454
5485
  const isDappImportWalletHydrating = Boolean(
5455
5486
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -5497,16 +5528,16 @@ function DepositFlow({
5497
5528
  return {
5498
5529
  ownerAddress: dappAddress,
5499
5530
  walletClient: void 0,
5500
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5531
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5501
5532
  switchChain: void 0
5502
5533
  };
5503
5534
  }
5504
5535
  if (canAutoLock) {
5505
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
5536
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _156 => _156.chain, 'optionalAccess', _157 => _157.id]), () => ( setupChainId));
5506
5537
  return {
5507
5538
  ownerAddress: dappWalletClient.account.address,
5508
5539
  walletClient: dappWalletClient,
5509
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5540
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5510
5541
  switchChain: dappSwitchChain
5511
5542
  };
5512
5543
  }
@@ -5520,24 +5551,24 @@ function DepositFlow({
5520
5551
  return {
5521
5552
  ownerAddress: dappAddress,
5522
5553
  walletClient: void 0,
5523
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5554
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5524
5555
  switchChain: void 0
5525
5556
  };
5526
5557
  }
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));
5558
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5559
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _159 => _159.chain, 'optionalAccess', _160 => _160.id]), () => ( setupChainId));
5529
5560
  return {
5530
5561
  ownerAddress: dappWalletClient.account.address,
5531
5562
  walletClient: dappWalletClient,
5532
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5563
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5533
5564
  switchChain: dappSwitchChain
5534
5565
  };
5535
5566
  }
5536
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5567
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _161 => _161.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5537
5568
  return {
5538
5569
  ownerAddress: reownWallet.address,
5539
5570
  walletClient: reownWallet.walletClient,
5540
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5571
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5541
5572
  switchChain: reownWallet.switchChain
5542
5573
  };
5543
5574
  }
@@ -5552,7 +5583,8 @@ function DepositFlow({
5552
5583
  dappSwitchChain,
5553
5584
  dappAddress,
5554
5585
  reownWallet,
5555
- setupChainId
5586
+ setupChainId,
5587
+ rpcUrls
5556
5588
  ]);
5557
5589
  _react.useEffect.call(void 0, () => {
5558
5590
  if (flowMode !== "wallet" && flowMode !== "dapp-import") {
@@ -5575,7 +5607,7 @@ function DepositFlow({
5575
5607
  return {
5576
5608
  ownerAddress: dappAddress,
5577
5609
  walletClient: void 0,
5578
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5610
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPDFLALUTcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5579
5611
  switchChain: void 0
5580
5612
  };
5581
5613
  }
@@ -5600,37 +5632,37 @@ function DepositFlow({
5600
5632
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5601
5633
  if (!selectedWalletId) return null;
5602
5634
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5603
- if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "external" && opt.address) {
5635
+ if (_optionalChain([opt, 'optionalAccess', _162 => _162.kind]) === "external" && opt.address) {
5604
5636
  return opt.address;
5605
5637
  }
5606
- if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "connected" && opt.address) {
5638
+ if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "connected" && opt.address) {
5607
5639
  return opt.address;
5608
5640
  }
5609
5641
  return null;
5610
5642
  }, [selectedWalletId, walletOptions]);
5611
5643
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5612
5644
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5613
- if (_optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]) && reownWallet.isConnected) {
5645
+ if (_optionalChain([reownWallet, 'optionalAccess', _164 => _164.address]) && reownWallet.isConnected) {
5614
5646
  return reownWallet.address;
5615
5647
  }
5616
5648
  if (connectedWalletAddress) return connectedWalletAddress;
5617
5649
  return null;
5618
5650
  }, [
5619
5651
  selectedEvmWalletOwner,
5620
- _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]),
5621
- _optionalChain([reownWallet, 'optionalAccess', _167 => _167.isConnected]),
5652
+ _optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]),
5653
+ _optionalChain([reownWallet, 'optionalAccess', _166 => _166.isConnected]),
5622
5654
  connectedWalletAddress
5623
5655
  ]);
5624
5656
  const activeOwner = _react.useMemo.call(void 0,
5625
5657
  () => resolveOwnerForMode(flowMode, {
5626
5658
  dappAddress,
5627
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5659
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _167 => _167.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5628
5660
  dappImportOwner
5629
5661
  }),
5630
5662
  [
5631
5663
  flowMode,
5632
5664
  dappAddress,
5633
- _optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]),
5665
+ _optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]),
5634
5666
  canAutoLock,
5635
5667
  connectedWalletAddress,
5636
5668
  selectedEvmWalletOwner,
@@ -5659,12 +5691,12 @@ function DepositFlow({
5659
5691
  return;
5660
5692
  }
5661
5693
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5662
- _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
5694
+ _optionalChain([onLifecycleRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170({
5663
5695
  type: "smart-account-changed",
5664
5696
  evm: activeEntry.smartAccount,
5665
5697
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5666
5698
  })]);
5667
- _optionalChain([onLifecycleRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173({
5699
+ _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
5668
5700
  type: "connected",
5669
5701
  address: activeOwner,
5670
5702
  smartAccount: activeEntry.smartAccount
@@ -5710,7 +5742,7 @@ function DepositFlow({
5710
5742
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5711
5743
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5712
5744
  _react.useEffect.call(void 0, () => {
5713
- _optionalChain([onStepChangeRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175(currentBackHandler, currentScreen)]);
5745
+ _optionalChain([onStepChangeRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174(currentBackHandler, currentScreen)]);
5714
5746
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5715
5747
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5716
5748
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5720,7 +5752,7 @@ function DepositFlow({
5720
5752
  modalContentElRef.current = mc;
5721
5753
  const ro = new ResizeObserver((entries) => {
5722
5754
  for (const entry of entries) {
5723
- const border = _optionalChain([entry, 'access', _176 => _176.borderBoxSize, 'optionalAccess', _177 => _177[0], 'optionalAccess', _178 => _178.blockSize]);
5755
+ const border = _optionalChain([entry, 'access', _175 => _175.borderBoxSize, 'optionalAccess', _176 => _176[0], 'optionalAccess', _177 => _177.blockSize]);
5724
5756
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5725
5757
  }
5726
5758
  });
@@ -5761,7 +5793,7 @@ function DepositFlow({
5761
5793
  }
5762
5794
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5763
5795
  if (effectiveStep.type === "select-asset") {
5764
- _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
5796
+ _optionalChain([onEventRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
5765
5797
  type: "deposit_modal_connected_wallet_select_source_open",
5766
5798
  total_balance_in_external_wallet: totalBalanceUsd,
5767
5799
  pred_balance: totalBalanceUsd
@@ -5769,7 +5801,7 @@ function DepositFlow({
5769
5801
  } else if (effectiveStep.type === "deposit-address") {
5770
5802
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5771
5803
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5772
- _optionalChain([onEventRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
5804
+ _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
5773
5805
  type: "deposit_modal_transfer_crypto_open",
5774
5806
  default_chain: chainName,
5775
5807
  default_token: tokenSymbol,
@@ -5777,7 +5809,7 @@ function DepositFlow({
5777
5809
  })]);
5778
5810
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5779
5811
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5780
- _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5812
+ _optionalChain([onEventRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5781
5813
  type: "deposit_modal_connected_wallet_enter_value_open",
5782
5814
  send_token: stepSendToken,
5783
5815
  receive_token: receiveSymbol,
@@ -5810,7 +5842,7 @@ function DepositFlow({
5810
5842
  targetToken
5811
5843
  ]);
5812
5844
  _react.useEffect.call(void 0, () => {
5813
- _optionalChain([onLifecycleRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5845
+ _optionalChain([onLifecycleRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5814
5846
  type: "balance-changed",
5815
5847
  totalUsd: totalBalanceUsd
5816
5848
  })]);
@@ -5826,7 +5858,7 @@ function DepositFlow({
5826
5858
  const handleConfirmWallet = _react.useCallback.call(void 0,
5827
5859
  (walletId) => {
5828
5860
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5829
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _187 => _187.kind]) === "solana" ? "solana-wallet" : "wallet";
5861
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _186 => _186.kind]) === "solana" ? "solana-wallet" : "wallet";
5830
5862
  storeApi.dispatch({
5831
5863
  type: "connect/wallet-confirmed",
5832
5864
  walletId,
@@ -5836,7 +5868,7 @@ function DepositFlow({
5836
5868
  [walletOptions, enableSolana, storeApi]
5837
5869
  );
5838
5870
  const isSolanaWalletConnected = Boolean(
5839
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isSolana])
5871
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _187 => _187.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isSolana])
5840
5872
  );
5841
5873
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5842
5874
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -5853,7 +5885,7 @@ function DepositFlow({
5853
5885
  const owner = dappImportOwner;
5854
5886
  if (owner) {
5855
5887
  const wallet = walletOptions.find(
5856
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === owner.toLowerCase()
5888
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _189 => _189.toLowerCase, 'call', _190 => _190()]) === owner.toLowerCase()
5857
5889
  );
5858
5890
  if (wallet) {
5859
5891
  storeApi.dispatch({
@@ -5894,7 +5926,7 @@ function DepositFlow({
5894
5926
  eoa: dappImportOwner,
5895
5927
  getPublicClient: (chainId) => {
5896
5928
  try {
5897
- return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
5929
+ return _chunkPDFLALUTcjs.getPublicClient.call(void 0, chainId, rpcUrls);
5898
5930
  } catch (e28) {
5899
5931
  return null;
5900
5932
  }
@@ -5922,7 +5954,8 @@ function DepositFlow({
5922
5954
  dappImportOwner,
5923
5955
  enabledDappImportProviders,
5924
5956
  dappImportAttemptNonce,
5925
- storeApi
5957
+ storeApi,
5958
+ rpcUrls
5926
5959
  ]);
5927
5960
  _react.useLayoutEffect.call(void 0, () => {
5928
5961
  if (!initialDappImportProvider) return;
@@ -5970,7 +6003,7 @@ function DepositFlow({
5970
6003
  }, [activeDappImportProviderId, enabledDappImportProviders]);
5971
6004
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
5972
6005
  if (!activeDappImportProviderId) return null;
5973
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _192 => _192.toLowerCase, 'call', _193 => _193()]) !== dappImportOwner.toLowerCase()) {
6006
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) !== dappImportOwner.toLowerCase()) {
5974
6007
  return null;
5975
6008
  }
5976
6009
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6011,7 +6044,7 @@ function DepositFlow({
6011
6044
  setup: setupSlice
6012
6045
  });
6013
6046
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6014
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === dappImportOwner.toLowerCase()
6047
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _193 => _193.toLowerCase, 'call', _194 => _194()]) === dappImportOwner.toLowerCase()
6015
6048
  ), () => ( null)) : null;
6016
6049
  const outcome = resolveBootOutcome({
6017
6050
  status,
@@ -6053,7 +6086,7 @@ function DepositFlow({
6053
6086
  if (dappImportOwner) {
6054
6087
  const plan = bootRetryPlan({
6055
6088
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
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
6089
+ availabilityEntry: _optionalChain([snapshot, 'access', _195 => _195.dappImport, 'access', _196 => _196.availabilityOwner, 'optionalAccess', _197 => _197.toLowerCase, 'call', _198 => _198()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6057
6090
  });
6058
6091
  if (plan.restartSetup) {
6059
6092
  storeApi.dispatch({
@@ -6094,7 +6127,7 @@ function DepositFlow({
6094
6127
  [storeApi]
6095
6128
  );
6096
6129
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6097
- _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
6130
+ _optionalChain([onLifecycleRef, 'access', _199 => _199.current, 'optionalCall', _200 => _200({
6098
6131
  type: "smart-account-changed",
6099
6132
  evm: null,
6100
6133
  solana: null
@@ -6141,13 +6174,13 @@ function DepositFlow({
6141
6174
  };
6142
6175
  push(dappAddress);
6143
6176
  push(connectedWalletAddress);
6144
- push(_optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]));
6177
+ push(_optionalChain([reownWallet, 'optionalAccess', _201 => _201.address]));
6145
6178
  push(dappImportOwner);
6146
6179
  return owners;
6147
6180
  }, [
6148
6181
  dappAddress,
6149
6182
  connectedWalletAddress,
6150
- _optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]),
6183
+ _optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]),
6151
6184
  dappImportOwner
6152
6185
  ]);
6153
6186
  _react.useEffect.call(void 0, () => {
@@ -6161,7 +6194,7 @@ function DepositFlow({
6161
6194
  try {
6162
6195
  sessionOwner = await resolveSessionOwner(owner);
6163
6196
  } catch (error) {
6164
- _chunkEDUWRMQIcjs.debugError.call(void 0,
6197
+ _chunkPDFLALUTcjs.debugError.call(void 0,
6165
6198
  debug,
6166
6199
  "deposit-flow",
6167
6200
  "session-owner:resolve-failed",
@@ -6252,7 +6285,7 @@ function DepositFlow({
6252
6285
  sourceChain: data.sourceChain,
6253
6286
  amount: data.amount
6254
6287
  });
6255
- _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({ type: "submitted", ...data })]);
6288
+ _optionalChain([onLifecycleRef, 'access', _203 => _203.current, 'optionalCall', _204 => _204({ type: "submitted", ...data })]);
6256
6289
  },
6257
6290
  [logFlow, onLifecycleRef]
6258
6291
  );
@@ -6312,7 +6345,7 @@ function DepositFlow({
6312
6345
  sourceDecimals: tokenAtSubmit.decimals,
6313
6346
  inputAmountUsd: amountUsd
6314
6347
  });
6315
- _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({
6348
+ _optionalChain([onLifecycleRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({
6316
6349
  type: "submitted",
6317
6350
  txHash,
6318
6351
  sourceChain: "solana",
@@ -6325,7 +6358,7 @@ function DepositFlow({
6325
6358
  );
6326
6359
  const handleAssetContinue = _react.useCallback.call(void 0,
6327
6360
  (asset) => {
6328
- _optionalChain([onEventRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6361
+ _optionalChain([onEventRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
6329
6362
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6330
6363
  total_balance_in_external_wallet: totalBalanceUsd,
6331
6364
  pred_balance: totalBalanceUsd,
@@ -6379,8 +6412,8 @@ function DepositFlow({
6379
6412
  sourceChain: chainId,
6380
6413
  sourceToken: token,
6381
6414
  amount,
6382
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _210 => _210.symbol]),
6383
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _211 => _211.decimals]),
6415
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _209 => _209.symbol]),
6416
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _210 => _210.decimals]),
6384
6417
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6385
6418
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6386
6419
  });
@@ -6394,6 +6427,14 @@ function DepositFlow({
6394
6427
  orderCrypto: info.orderCrypto
6395
6428
  });
6396
6429
  const amount = _nullishCoalesce(info.amount, () => ( "0"));
6430
+ const stateAtComplete = storeApi.getState();
6431
+ const swappedContext = stateAtComplete.flow.mode === "exchange-connect" ? {
6432
+ variant: "connect",
6433
+ method: stateAtComplete.exchange.selectedConnection
6434
+ } : stateAtComplete.flow.mode === "fiat-onramp" ? {
6435
+ variant: "fiat",
6436
+ method: stateAtComplete.fiat.selectedMethod
6437
+ } : void 0;
6397
6438
  storeApi.dispatch({
6398
6439
  type: "deposit/submitted",
6399
6440
  txHash: info.txHash,
@@ -6401,9 +6442,10 @@ function DepositFlow({
6401
6442
  sourceToken: SWAPPED_SOURCE_TOKEN,
6402
6443
  amount,
6403
6444
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6404
- sourceDecimals: SWAPPED_SOURCE_DECIMALS
6445
+ sourceDecimals: SWAPPED_SOURCE_DECIMALS,
6446
+ swappedContext
6405
6447
  });
6406
- _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6448
+ _optionalChain([onLifecycleRef, 'access', _211 => _211.current, 'optionalCall', _212 => _212({
6407
6449
  type: "submitted",
6408
6450
  txHash: info.txHash,
6409
6451
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6416,12 +6458,12 @@ function DepositFlow({
6416
6458
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6417
6459
  (txHash, sourceChain, amount) => {
6418
6460
  const depositAtSubmit = storeApi.getState().deposit;
6419
- _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
6461
+ _optionalChain([onLifecycleRef, 'access', _213 => _213.current, 'optionalCall', _214 => _214({
6420
6462
  type: "submitted",
6421
6463
  txHash,
6422
6464
  sourceChain,
6423
6465
  amount,
6424
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _216 => _216.selectedAsset, 'optionalAccess', _217 => _217.decimals]),
6466
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _215 => _215.selectedAsset, 'optionalAccess', _216 => _216.decimals]),
6425
6467
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6426
6468
  })]);
6427
6469
  },
@@ -6430,7 +6472,7 @@ function DepositFlow({
6430
6472
  const handleDepositComplete = _react.useCallback.call(void 0,
6431
6473
  (txHash, destinationTxHash, context) => {
6432
6474
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6433
- _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6475
+ _optionalChain([onLifecycleRef, 'access', _217 => _217.current, 'optionalCall', _218 => _218({
6434
6476
  type: "complete",
6435
6477
  txHash,
6436
6478
  destinationTxHash,
@@ -6442,14 +6484,14 @@ function DepositFlow({
6442
6484
  const handleDepositFailed = _react.useCallback.call(void 0,
6443
6485
  (txHash, error) => {
6444
6486
  logFlowError("deposit:failed", error, { txHash });
6445
- _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({ type: "failed", txHash, error })]);
6487
+ _optionalChain([onLifecycleRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({ type: "failed", txHash, error })]);
6446
6488
  },
6447
6489
  [logFlowError, onLifecycleRef]
6448
6490
  );
6449
6491
  const handleError = _react.useCallback.call(void 0,
6450
6492
  (message, code) => {
6451
6493
  logFlowError("flow:error", message, { code });
6452
- _optionalChain([onErrorRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ message, code })]);
6494
+ _optionalChain([onErrorRef, 'access', _221 => _221.current, 'optionalCall', _222 => _222({ message, code })]);
6453
6495
  },
6454
6496
  [logFlowError, onErrorRef]
6455
6497
  );
@@ -6520,7 +6562,7 @@ function DepositFlow({
6520
6562
  );
6521
6563
  if (showConnectStep) {
6522
6564
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6523
- _chunkEDUWRMQIcjs.ConnectStep,
6565
+ _chunkPDFLALUTcjs.ConnectStep,
6524
6566
  {
6525
6567
  walletRows,
6526
6568
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6552,7 +6594,7 @@ function DepositFlow({
6552
6594
  },
6553
6595
  dappImports: connectStepDappImports,
6554
6596
  onSelectDappImport: (providerId) => {
6555
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6597
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _223 => _223.toLowerCase, 'call', _224 => _224()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6556
6598
  if (availabilityEntry === "error") {
6557
6599
  storeApi.dispatch({
6558
6600
  type: "dapp-import/availability-retry-requested"
@@ -6598,7 +6640,7 @@ function DepositFlow({
6598
6640
  allowedRoutes,
6599
6641
  targetChain,
6600
6642
  targetToken,
6601
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _226 => _226.length])),
6643
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _225 => _225.length])),
6602
6644
  uiConfig,
6603
6645
  onDepositSubmitted: handleDepositAddressSubmitted,
6604
6646
  onDepositComplete: handleDepositComplete,
@@ -6606,7 +6648,7 @@ function DepositFlow({
6606
6648
  onCopyAddress: () => {
6607
6649
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6608
6650
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6609
- _optionalChain([onEvent, 'optionalCall', _227 => _227({
6651
+ _optionalChain([onEvent, 'optionalCall', _226 => _226({
6610
6652
  type: "deposit_modal_transfer_crypto_cta_click",
6611
6653
  default_chain: chainName,
6612
6654
  default_token: tokenSymbol,
@@ -6650,7 +6692,7 @@ function DepositFlow({
6650
6692
  }
6651
6693
  ),
6652
6694
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6653
- _chunkEDUWRMQIcjs.ProcessingStep,
6695
+ _chunkPDFLALUTcjs.ProcessingStep,
6654
6696
  {
6655
6697
  smartAccount: step.smartAccount,
6656
6698
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6663,7 +6705,8 @@ function DepositFlow({
6663
6705
  sourceSymbol: step.sourceSymbol,
6664
6706
  sourceDecimals: step.sourceDecimals,
6665
6707
  amountUsd: step.inputAmountUsd,
6666
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6708
+ swappedContext: step.swappedContext,
6709
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _227 => _227.length])),
6667
6710
  service,
6668
6711
  directTransfer: step.directTransfer,
6669
6712
  isSwappedOrder: true,
@@ -6717,7 +6760,7 @@ function DepositFlow({
6717
6760
  }
6718
6761
  ),
6719
6762
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6720
- _chunkEDUWRMQIcjs.ProcessingStep,
6763
+ _chunkPDFLALUTcjs.ProcessingStep,
6721
6764
  {
6722
6765
  smartAccount: step.smartAccount,
6723
6766
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6730,7 +6773,8 @@ function DepositFlow({
6730
6773
  sourceSymbol: step.sourceSymbol,
6731
6774
  sourceDecimals: step.sourceDecimals,
6732
6775
  amountUsd: step.inputAmountUsd,
6733
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6776
+ swappedContext: step.swappedContext,
6777
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6734
6778
  service,
6735
6779
  directTransfer: step.directTransfer,
6736
6780
  isSwappedOrder: true,
@@ -6748,8 +6792,8 @@ function DepositFlow({
6748
6792
  }
6749
6793
  if (isSolanaWalletMode) {
6750
6794
  if (!dappAddress) return null;
6751
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
6752
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
6795
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _229 => _229.solanaAddress]);
6796
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaProvider]);
6753
6797
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6754
6798
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6755
6799
  AccountPreparingSkeleton,
@@ -6806,7 +6850,7 @@ function DepositFlow({
6806
6850
  targetToken,
6807
6851
  service,
6808
6852
  solanaProvider,
6809
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
6853
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaConnection]),
6810
6854
  uiConfig,
6811
6855
  onConfirm: handleSolanaConfirmed,
6812
6856
  onError: handleError,
@@ -6847,7 +6891,7 @@ function DepositFlow({
6847
6891
  ) })
6848
6892
  ] }) : null,
6849
6893
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6850
- _chunkEDUWRMQIcjs.ProcessingStep,
6894
+ _chunkPDFLALUTcjs.ProcessingStep,
6851
6895
  {
6852
6896
  smartAccount: effectiveStep.smartAccount,
6853
6897
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6860,7 +6904,7 @@ function DepositFlow({
6860
6904
  sourceSymbol: effectiveStep.sourceSymbol,
6861
6905
  sourceDecimals: effectiveStep.sourceDecimals,
6862
6906
  amountUsd: effectiveStep.inputAmountUsd,
6863
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
6907
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _232 => _232.length])),
6864
6908
  service,
6865
6909
  directTransfer: effectiveStep.directTransfer,
6866
6910
  onClose,
@@ -6883,7 +6927,7 @@ function DepositFlow({
6883
6927
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6884
6928
  DappImportAssetSelectSkeleton,
6885
6929
  {
6886
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _234 => _234.sourceLabel]), () => ( "")),
6930
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _233 => _233.sourceLabel]), () => ( "")),
6887
6931
  error: dappImportBootError,
6888
6932
  onRetry: handleBootRetry
6889
6933
  }
@@ -6891,16 +6935,16 @@ function DepositFlow({
6891
6935
  }
6892
6936
  );
6893
6937
  }
6894
- if (!_optionalChain([signerContext, 'optionalAccess', _235 => _235.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _236 => _236.publicClient])) {
6938
+ if (!_optionalChain([signerContext, 'optionalAccess', _234 => _234.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _235 => _235.publicClient])) {
6895
6939
  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" }) }) }) }) });
6896
6940
  }
6897
6941
  const ownerAddress = signerContext.ownerAddress;
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));
6942
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _236 => _236.walletClient, 'optionalAccess', _237 => _237.chain, 'optionalAccess', _238 => _238.id]), () => ( _optionalChain([signerContext, 'access', _239 => _239.publicClient, 'access', _240 => _240.chain, 'optionalAccess', _241 => _241.id]))), () => ( setupChainId));
6899
6943
  const getReadClientForChain = (chainId) => {
6900
- if (_optionalChain([signerContext, 'access', _243 => _243.publicClient, 'access', _244 => _244.chain, 'optionalAccess', _245 => _245.id]) === chainId) {
6944
+ if (_optionalChain([signerContext, 'access', _242 => _242.publicClient, 'access', _243 => _243.chain, 'optionalAccess', _244 => _244.id]) === chainId) {
6901
6945
  return signerContext.publicClient;
6902
6946
  }
6903
- return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
6947
+ return _chunkPDFLALUTcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6904
6948
  };
6905
6949
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6906
6950
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6930,7 +6974,7 @@ function DepositFlow({
6930
6974
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6931
6975
  DappImportAssetSelectStep,
6932
6976
  {
6933
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _246 => _246.assets, 'access', _247 => _247[0], 'optionalAccess', _248 => _248.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6977
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _245 => _245.assets, 'access', _246 => _246[0], 'optionalAccess', _247 => _247.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6934
6978
  assets: activeDappImportAvailability.assets,
6935
6979
  onSelect: handleDappImportAssetSelected
6936
6980
  }
@@ -6957,7 +7001,7 @@ function DepositFlow({
6957
7001
  onContinue: handleAmountContinue,
6958
7002
  onCtaClick: (ctaName) => {
6959
7003
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6960
- _optionalChain([onEvent, 'optionalCall', _249 => _249({
7004
+ _optionalChain([onEvent, 'optionalCall', _248 => _248({
6961
7005
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
6962
7006
  send_token: effectiveStep.asset.symbol,
6963
7007
  receive_token: receiveSymbol,
@@ -7009,7 +7053,7 @@ function DepositFlow({
7009
7053
  }
7010
7054
  ),
7011
7055
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7012
- _chunkEDUWRMQIcjs.ProcessingStep,
7056
+ _chunkPDFLALUTcjs.ProcessingStep,
7013
7057
  {
7014
7058
  smartAccount: effectiveStep.smartAccount,
7015
7059
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7022,7 +7066,7 @@ function DepositFlow({
7022
7066
  sourceSymbol: effectiveStep.sourceSymbol,
7023
7067
  sourceDecimals: effectiveStep.sourceDecimals,
7024
7068
  amountUsd: effectiveStep.inputAmountUsd,
7025
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _250 => _250.length])),
7069
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _249 => _249.length])),
7026
7070
  service,
7027
7071
  directTransfer: effectiveStep.directTransfer,
7028
7072
  uiConfig,
@@ -7161,7 +7205,7 @@ function DepositHistoryPanel({
7161
7205
  );
7162
7206
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7163
7207
  const sourceHashes = new Set(
7164
- deposits.map((d) => _optionalChain([d, 'access', _251 => _251.sourceTxHash, 'optionalAccess', _252 => _252.toLowerCase, 'call', _253 => _253()])).filter((h) => Boolean(h))
7208
+ deposits.map((d) => _optionalChain([d, 'access', _250 => _250.sourceTxHash, 'optionalAccess', _251 => _251.toLowerCase, 'call', _252 => _252()])).filter((h) => Boolean(h))
7165
7209
  );
7166
7210
  return deposits.filter(
7167
7211
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7183,7 +7227,7 @@ function DepositHistoryPanel({
7183
7227
  className: "rs-modal-header-back",
7184
7228
  "aria-label": "Back",
7185
7229
  onClick: onClose,
7186
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7230
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronLeftIcon, {})
7187
7231
  }
7188
7232
  ) }),
7189
7233
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7193,29 +7237,29 @@ function DepositHistoryPanel({
7193
7237
  className: "rs-modal-close",
7194
7238
  "aria-label": "Close",
7195
7239
  onClick: onCloseModal,
7196
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7240
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CloseIcon, {})
7197
7241
  }
7198
7242
  ) })
7199
7243
  ] }),
7200
7244
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7201
7245
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7202
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}), title: "History" }),
7246
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.HistoryIcon, {}), title: "History" }),
7203
7247
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
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, {}) }),
7248
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.HistoryIcon, {}) }),
7205
7249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-spinner--sm" }),
7250
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.Spinner, { className: "rs-spinner--sm" }),
7207
7251
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7208
7252
  ] })
7209
7253
  ] }),
7210
7254
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
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, {}) }),
7255
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.AlertTriangleIcon, {}) }),
7212
7256
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7213
7257
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7214
7258
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7215
7259
  ] })
7216
7260
  ] }),
7217
7261
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
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, {}) }),
7262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.HistoryIcon, {}) }),
7219
7263
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7220
7264
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7221
7265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7235,7 +7279,7 @@ function DepositHistoryPanel({
7235
7279
  )
7236
7280
  ] })
7237
7281
  ] }),
7238
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
7282
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.PoweredBy, {})
7239
7283
  ] })
7240
7284
  ]
7241
7285
  }
@@ -7310,7 +7354,7 @@ function HistoryCard({ deposit }) {
7310
7354
  onClick: (e) => e.stopPropagation(),
7311
7355
  children: [
7312
7356
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7313
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ArrowUpRightIcon, {})
7357
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ArrowUpRightIcon, {})
7314
7358
  ]
7315
7359
  }
7316
7360
  )
@@ -7325,7 +7369,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7325
7369
  // src/DepositModal.tsx
7326
7370
 
7327
7371
  var ReownDepositInner = _react.lazy.call(void 0,
7328
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-MCDIOJLT.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7372
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-HWKF3O62.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7329
7373
  );
7330
7374
  function sortByCreatedAtDesc(items) {
7331
7375
  return [...items].sort((a, b) => {
@@ -7375,7 +7419,7 @@ function DepositModalInner({
7375
7419
  recipient,
7376
7420
  appBalanceUsd,
7377
7421
  backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
7378
- solanaRpcUrl,
7422
+ rpcUrls: rpcUrlsProp,
7379
7423
  signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
7380
7424
  sessionChainIds,
7381
7425
  forceRegister = false,
@@ -7404,12 +7448,12 @@ function DepositModalInner({
7404
7448
  debug
7405
7449
  }) {
7406
7450
  const modalRef = _react.useRef.call(void 0, null);
7407
- const onReadyRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onReady);
7451
+ const onReadyRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onReady);
7408
7452
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7409
7453
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7410
7454
  void 0
7411
7455
  );
7412
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _254 => _254.showHistoryButton]), () => ( false));
7456
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _253 => _253.showHistoryButton]), () => ( false));
7413
7457
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7414
7458
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7415
7459
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7422,20 +7466,21 @@ function DepositModalInner({
7422
7466
  const historyLoadedRef = _react.useRef.call(void 0, false);
7423
7467
  const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7424
7468
  const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7469
+ const rpcUrls = _chunkPDFLALUTcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7425
7470
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7426
- const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
7471
+ const onErrorRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onError);
7427
7472
  _react.useEffect.call(void 0, () => {
7428
7473
  if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7429
7474
  setRecipientIsContract(false);
7430
7475
  return;
7431
7476
  }
7432
7477
  let cancelled = false;
7433
- _chunkEDUWRMQIcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7478
+ _chunkPDFLALUTcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7434
7479
  if (cancelled) return;
7435
7480
  const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7436
7481
  setRecipientIsContract(isContract);
7437
7482
  if (isContract) {
7438
- _optionalChain([onErrorRef, 'access', _255 => _255.current, 'optionalCall', _256 => _256({
7483
+ _optionalChain([onErrorRef, 'access', _254 => _254.current, 'optionalCall', _255 => _255({
7439
7484
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7440
7485
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7441
7486
  })]);
@@ -7446,9 +7491,9 @@ function DepositModalInner({
7446
7491
  return () => {
7447
7492
  cancelled = true;
7448
7493
  };
7449
- }, [targetChain, recipient, onErrorRef]);
7494
+ }, [targetChain, recipient, onErrorRef, rpcUrls]);
7450
7495
  const service = _react.useMemo.call(void 0,
7451
- () => _chunkEDUWRMQIcjs.createDepositService.call(void 0, backendUrl, {
7496
+ () => _chunkPDFLALUTcjs.createDepositService.call(void 0, backendUrl, {
7452
7497
  debug,
7453
7498
  debugScope: "service:deposit"
7454
7499
  }),
@@ -7464,15 +7509,12 @@ function DepositModalInner({
7464
7509
  }, [store, targetChain, targetToken]);
7465
7510
  _react.useEffect.call(void 0, () => {
7466
7511
  if (isOpen && modalRef.current) {
7467
- _chunkEDUWRMQIcjs.applyTheme.call(void 0, modalRef.current, theme);
7512
+ _chunkPDFLALUTcjs.applyTheme.call(void 0, modalRef.current, theme);
7468
7513
  }
7469
7514
  }, [isOpen, theme]);
7470
- _react.useEffect.call(void 0, () => {
7471
- configureSolanaRpcUrl(solanaRpcUrl);
7472
- }, [solanaRpcUrl]);
7473
7515
  _react.useEffect.call(void 0, () => {
7474
7516
  if (isOpen) {
7475
- _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
7517
+ _optionalChain([onReadyRef, 'access', _256 => _256.current, 'optionalCall', _257 => _257()]);
7476
7518
  }
7477
7519
  }, [isOpen, onReadyRef]);
7478
7520
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7548,10 +7590,10 @@ function DepositModalInner({
7548
7590
  fetchHistory("initial");
7549
7591
  }
7550
7592
  }, [historyOpen, fetchHistory]);
7551
- const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
7593
+ const onLifecycleRef = _chunkPDFLALUTcjs.useLatestRef.call(void 0, onLifecycle);
7552
7594
  const handleLifecycle = _react.useCallback.call(void 0,
7553
7595
  (event) => {
7554
- _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
7596
+ _optionalChain([onLifecycleRef, 'access', _258 => _258.current, 'optionalCall', _259 => _259(event)]);
7555
7597
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7556
7598
  historyStaleRef.current = true;
7557
7599
  }
@@ -7577,10 +7619,10 @@ function DepositModalInner({
7577
7619
  store.dispatch({ type: "flow/reset" });
7578
7620
  }
7579
7621
  }, [isOpen, store]);
7580
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
7622
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _260 => _260.showBackButton]), () => ( true));
7581
7623
  const canGoBack = backHandler !== void 0;
7582
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7583
- _chunkEDUWRMQIcjs.Modal,
7624
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7625
+ _chunkPDFLALUTcjs.Modal,
7584
7626
  {
7585
7627
  isOpen,
7586
7628
  onClose,
@@ -7596,7 +7638,7 @@ function DepositModalInner({
7596
7638
  className: "rs-modal-header-back",
7597
7639
  "aria-label": "Go back",
7598
7640
  onClick: backHandler,
7599
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7641
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.ChevronLeftIcon, {})
7600
7642
  }
7601
7643
  ) }),
7602
7644
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7608,7 +7650,7 @@ function DepositModalInner({
7608
7650
  "aria-label": "Deposit history",
7609
7651
  onClick: handleHistoryOpen,
7610
7652
  disabled: !recipient,
7611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {})
7653
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.HistoryIcon, {})
7612
7654
  }
7613
7655
  ),
7614
7656
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7618,12 +7660,12 @@ function DepositModalInner({
7618
7660
  onClick: onClose,
7619
7661
  className: "rs-modal-close",
7620
7662
  "aria-label": "Close",
7621
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7663
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.CloseIcon, {})
7622
7664
  }
7623
7665
  )
7624
7666
  ] })
7625
7667
  ] }),
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,
7668
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPDFLALUTcjs.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,
7627
7669
  DepositFlow,
7628
7670
  {
7629
7671
  dappWalletClient,
@@ -7680,7 +7722,7 @@ function DepositModalInner({
7680
7722
  )
7681
7723
  ] })
7682
7724
  }
7683
- ) });
7725
+ ) }) });
7684
7726
  }
7685
7727
 
7686
7728