@rhinestone/deposit-modal 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,10 @@ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
64
64
 
65
65
 
66
66
 
67
- var _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
67
+
68
+
69
+
70
+ var _chunkPPFG3VBDcjs = require('./chunk-PPFG3VBD.cjs');
68
71
 
69
72
 
70
73
  var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
@@ -142,12 +145,12 @@ function AssetSelectStep({
142
145
  const [error, setError] = _react.useState.call(void 0, null);
143
146
  const defaultAssetId = _react.useMemo.call(void 0, () => {
144
147
  if (!defaultSourceChain || !defaultSourceToken) return null;
145
- return _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
148
+ return _chunkPPFG3VBDcjs.getAssetId.call(void 0, {
146
149
  chainId: defaultSourceChain,
147
150
  token: defaultSourceToken
148
151
  });
149
152
  }, [defaultSourceChain, defaultSourceToken]);
150
- const onTotalBalanceComputedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
153
+ const onTotalBalanceComputedRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
151
154
  _react.useEffect.call(void 0, () => {
152
155
  let active = true;
153
156
  function emitAssetsUpdate(currentAssets) {
@@ -167,7 +170,7 @@ function AssetSelectStep({
167
170
  try {
168
171
  const portfolio = await service.fetchPortfolio(address);
169
172
  if (!active) return;
170
- const portfolioAssets = _chunkEDUWRMQIcjs.portfolioToAssets.call(void 0, portfolio.tokens);
173
+ const portfolioAssets = _chunkPPFG3VBDcjs.portfolioToAssets.call(void 0, portfolio.tokens);
171
174
  setAssets(portfolioAssets);
172
175
  emitAssetsUpdate(portfolioAssets);
173
176
  const hasNative = portfolioAssets.some(
@@ -243,7 +246,7 @@ function AssetSelectStep({
243
246
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
244
247
  const numeric = Number(raw);
245
248
  if (!Number.isFinite(numeric)) return raw;
246
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
249
+ return _chunkPPFG3VBDcjs.tokenFormatter.format(numeric);
247
250
  } catch (e3) {
248
251
  return asset.balance;
249
252
  }
@@ -251,20 +254,20 @@ function AssetSelectStep({
251
254
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
252
255
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
253
256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
254
- _chunkEDUWRMQIcjs.BodyHeader,
257
+ _chunkPPFG3VBDcjs.BodyHeader,
255
258
  {
256
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
259
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}),
257
260
  title: "Your assets",
258
261
  subtitle: "Select source assets to transfer"
259
262
  }
260
263
  ),
261
264
  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" }),
265
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, { className: "rs-text-tertiary" }),
263
266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
264
267
  ] }),
265
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
268
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
266
269
  !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" }),
270
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, { className: "rs-empty-icon" }),
268
271
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
269
272
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
270
273
  address.slice(0, 6),
@@ -331,14 +334,14 @@ function AssetSelectStep({
331
334
  ] })
332
335
  ] })
333
336
  ] }),
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}` : "--" })
337
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkPPFG3VBDcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
335
338
  ]
336
339
  },
337
340
  asset.id
338
341
  );
339
342
  }) }),
340
343
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
341
- _chunkEDUWRMQIcjs.Button,
344
+ _chunkPPFG3VBDcjs.Button,
342
345
  {
343
346
  onClick: () => selectedAsset && onContinue(selectedAsset),
344
347
  disabled: !selectedAsset,
@@ -347,7 +350,7 @@ function AssetSelectStep({
347
350
  }
348
351
  )
349
352
  ] }),
350
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
353
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
351
354
  ] });
352
355
  }
353
356
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -355,7 +358,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
355
358
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
356
359
  if (!connectedChainId) return [];
357
360
  if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
358
- const id = _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
361
+ const id = _chunkPPFG3VBDcjs.getAssetId.call(void 0, {
359
362
  chainId: connectedChainId,
360
363
  token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
361
364
  });
@@ -552,7 +555,7 @@ function AmountStep({
552
555
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
553
556
  if (!balanceTarget || !publicClient) return;
554
557
  try {
555
- const bal = _chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
558
+ const bal = _chunkPPFG3VBDcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
556
559
  address: asset.token,
557
560
  abi: _viem.erc20Abi,
558
561
  functionName: "balanceOf",
@@ -573,7 +576,7 @@ function AmountStep({
573
576
  hasAttemptedSwitch.current = true;
574
577
  switchChain(asset.chainId).catch((err) => {
575
578
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
576
- setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
579
+ setError(_chunkPPFG3VBDcjs.formatUserError.call(void 0, raw));
577
580
  });
578
581
  }
579
582
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -626,7 +629,7 @@ function AmountStep({
626
629
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
627
630
  const numeric = Number(raw);
628
631
  if (!Number.isFinite(numeric)) return raw;
629
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
632
+ return _chunkPPFG3VBDcjs.tokenFormatter.format(numeric);
630
633
  } catch (e8) {
631
634
  return "\u2026";
632
635
  }
@@ -747,7 +750,7 @@ function AmountStep({
747
750
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
748
751
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
749
752
  /* @__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" }),
753
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}), title: "Wallet deposit" }),
751
754
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
752
755
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
753
756
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -767,13 +770,13 @@ function AmountStep({
767
770
  " available",
768
771
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
769
772
  " (~",
770
- _chunkEDUWRMQIcjs.currencyFormatter.format(balanceUsd),
773
+ _chunkPPFG3VBDcjs.currencyFormatter.format(balanceUsd),
771
774
  ")"
772
775
  ] })
773
776
  ] }),
774
777
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
775
778
  "Min. deposit ",
776
- _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
779
+ _chunkPPFG3VBDcjs.currencyFormatter.format(minDepositUsd)
777
780
  ] })
778
781
  ] })
779
782
  ] }),
@@ -814,13 +817,13 @@ function AmountStep({
814
817
  ] }),
815
818
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
816
819
  /* @__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) })
820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPPFG3VBDcjs.currencyFormatter.format(balanceAfterUsd) })
818
821
  ] })
819
822
  ] }),
820
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
821
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
823
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
824
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
822
825
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
823
- _chunkEDUWRMQIcjs.Button,
826
+ _chunkPPFG3VBDcjs.Button,
824
827
  {
825
828
  onClick: handleContinue,
826
829
  fullWidth: true,
@@ -831,7 +834,7 @@ function AmountStep({
831
834
  }
832
835
  )
833
836
  ] }),
834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
837
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
835
838
  ] });
836
839
  }
837
840
 
@@ -878,16 +881,16 @@ function ConfirmStep({
878
881
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
879
882
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
880
883
  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";
884
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkPPFG3VBDcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
882
885
  const receiveDisplay = (() => {
883
886
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
884
887
  if (quote) {
885
- const quoted = _chunkEDUWRMQIcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
888
+ const quoted = _chunkPPFG3VBDcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
886
889
  if (quoted !== void 0) return quoted;
887
890
  }
888
891
  const usdValue = Number(targetAmount);
889
892
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
890
- const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
893
+ const estimate = _chunkPPFG3VBDcjs.formatReceiveEstimate.call(void 0, {
891
894
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
892
895
  sourceSymbol: asset.symbol,
893
896
  targetSymbol,
@@ -906,7 +909,7 @@ function ConfirmStep({
906
909
  hasAttemptedSwitch.current = true;
907
910
  switchChain(asset.chainId).catch((err) => {
908
911
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
909
- setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
912
+ setError(_chunkPPFG3VBDcjs.formatUserError.call(void 0, raw));
910
913
  });
911
914
  }
912
915
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -986,7 +989,7 @@ function ConfirmStep({
986
989
  const result = await executeTransfer(amountUnits);
987
990
  hash = result.txHash;
988
991
  resolvedSourceToken = result.sourceToken;
989
- } else if (_chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset)) {
992
+ } else if (_chunkPPFG3VBDcjs.isNativeAsset.call(void 0, asset)) {
990
993
  hash = await walletClient.sendTransaction({
991
994
  account,
992
995
  chain,
@@ -1007,7 +1010,7 @@ function ConfirmStep({
1007
1010
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1008
1011
  } catch (err) {
1009
1012
  const raw = err instanceof Error ? err.message : "Transfer failed";
1010
- const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
1013
+ const message = _chunkPPFG3VBDcjs.formatUserError.call(void 0, raw);
1011
1014
  setError(message);
1012
1015
  _optionalChain([onError, 'optionalCall', _29 => _29(message, "TRANSFER_ERROR")]);
1013
1016
  } finally {
@@ -1016,7 +1019,7 @@ function ConfirmStep({
1016
1019
  };
1017
1020
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1018
1021
  /* @__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" }),
1022
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}), title: "Review deposit" }),
1020
1023
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1021
1024
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1022
1025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1070,14 +1073,14 @@ function ConfirmStep({
1070
1073
  children: feeDisplay
1071
1074
  }
1072
1075
  ),
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, {}) }) })
1076
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.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, _chunkPPFG3VBDcjs.InfoIcon, {}) }) })
1074
1077
  ] })
1075
1078
  ] })
1076
1079
  ] }),
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 }),
1080
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1081
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
1079
1082
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1080
- _chunkEDUWRMQIcjs.Button,
1083
+ _chunkPPFG3VBDcjs.Button,
1081
1084
  {
1082
1085
  onClick: handleConfirm,
1083
1086
  loading: isSubmitting,
@@ -1088,7 +1091,7 @@ function ConfirmStep({
1088
1091
  }
1089
1092
  )
1090
1093
  ] }),
1091
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
1094
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
1092
1095
  ] });
1093
1096
  }
1094
1097
 
@@ -1111,9 +1114,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1111
1114
  var MAX_POLL_INTERVAL = 3e4;
1112
1115
  var BACKOFF_MULTIPLIER = 1.5;
1113
1116
  function isEventForTx(event, txHash) {
1114
- const eventTxHash = _chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event);
1117
+ const eventTxHash = _chunkPPFG3VBDcjs.getEventTxHash.call(void 0, event);
1115
1118
  if (!eventTxHash) return false;
1116
- return _chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1119
+ return _chunkPPFG3VBDcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1117
1120
  }
1118
1121
  function truncateHash(hash) {
1119
1122
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1163,7 +1166,7 @@ function formatBridgeFailedMessage(event) {
1163
1166
  }
1164
1167
  return "Bridge failed";
1165
1168
  }
1166
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1169
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1167
1170
  function DepositNotification({
1168
1171
  deposit,
1169
1172
  smartAccount,
@@ -1198,7 +1201,7 @@ function DepositNotification({
1198
1201
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1199
1202
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1200
1203
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1201
- const depositContextRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, {
1204
+ const depositContextRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, {
1202
1205
  amount,
1203
1206
  sourceChain,
1204
1207
  sourceToken: token,
@@ -1207,8 +1210,8 @@ function DepositNotification({
1207
1210
  targetToken,
1208
1211
  hasPostBridgeActions
1209
1212
  });
1210
- const onCompleteRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onComplete);
1211
- const onFailedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onFailed);
1213
+ const onCompleteRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onComplete);
1214
+ const onFailedRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onFailed);
1212
1215
  const handleComplete = _react.useCallback.call(void 0,
1213
1216
  (destTxHash) => {
1214
1217
  if (completedRef.current) return;
@@ -1313,7 +1316,7 @@ function DepositNotification({
1313
1316
  const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1314
1317
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1315
1318
  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,
1319
+ 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, _chunkPPFG3VBDcjs.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, _chunkPPFG3VBDcjs.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
1320
  "svg",
1318
1321
  {
1319
1322
  className: "rs-deposit-notification-spinner",
@@ -1363,7 +1366,7 @@ function DepositNotification({
1363
1366
  className: "rs-deposit-notification-close",
1364
1367
  onClick: () => onDismiss(deposit.id),
1365
1368
  "aria-label": "Dismiss",
1366
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
1369
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CloseIcon, {})
1367
1370
  }
1368
1371
  )
1369
1372
  ] }),
@@ -1379,7 +1382,7 @@ function DepositNotification({
1379
1382
  "aria-expanded": expanded,
1380
1383
  children: [
1381
1384
  /* @__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" })
1385
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1383
1386
  ]
1384
1387
  }
1385
1388
  ),
@@ -1726,10 +1729,10 @@ function DepositAddressStep({
1726
1729
  return;
1727
1730
  }
1728
1731
  const event = status.lastEvent;
1729
- const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1732
+ const eventTxHash = _chunkPPFG3VBDcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkPPFG3VBDcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1730
1733
  if (baselineTxHashRef.current === void 0) {
1731
1734
  baselineTxHashRef.current = eventTxHash;
1732
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1735
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkPPFG3VBDcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1733
1736
  const details = getDepositEventDetails(event);
1734
1737
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1735
1738
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1806,7 +1809,7 @@ function DepositAddressStep({
1806
1809
  const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1807
1810
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1808
1811
  /* @__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" }),
1812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1810
1813
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1811
1814
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1812
1815
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1830,7 +1833,7 @@ function DepositAddressStep({
1830
1833
  }
1831
1834
  ),
1832
1835
  /* @__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" })
1836
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1834
1837
  ]
1835
1838
  }
1836
1839
  ),
@@ -1861,8 +1864,8 @@ function DepositAddressStep({
1861
1864
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1862
1865
  "Min.$",
1863
1866
  (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,
1867
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1868
+ _chunkPPFG3VBDcjs.InfoIcon,
1866
1869
  {
1867
1870
  className: "rs-deposit-address-min-icon",
1868
1871
  "aria-hidden": "true"
@@ -1890,7 +1893,7 @@ function DepositAddressStep({
1890
1893
  }
1891
1894
  ),
1892
1895
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1893
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1896
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1894
1897
  ]
1895
1898
  }
1896
1899
  ),
@@ -1941,7 +1944,7 @@ function DepositAddressStep({
1941
1944
  className: "rs-deposit-address-copy",
1942
1945
  onClick: handleCopy,
1943
1946
  children: [
1944
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
1947
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CopyIcon, {}),
1945
1948
  copied ? "Copied!" : "Copy address"
1946
1949
  ]
1947
1950
  }
@@ -1949,7 +1952,7 @@ function DepositAddressStep({
1949
1952
  ]
1950
1953
  }
1951
1954
  ),
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." }),
1955
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.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
1956
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1954
1957
  "div",
1955
1958
  {
@@ -1967,16 +1970,16 @@ function DepositAddressStep({
1967
1970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1968
1971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1969
1972
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1970
- _chunkEDUWRMQIcjs.Tooltip,
1973
+ _chunkPPFG3VBDcjs.Tooltip,
1971
1974
  {
1972
1975
  className: "rs-price-impact-info",
1973
1976
  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" })
1977
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.InfoIcon, { "aria-hidden": "true" })
1975
1978
  }
1976
1979
  )
1977
1980
  ] }),
1978
1981
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1979
- _chunkEDUWRMQIcjs.ChevronDownIcon,
1982
+ _chunkPPFG3VBDcjs.ChevronDownIcon,
1980
1983
  {
1981
1984
  className: "rs-price-impact-chevron",
1982
1985
  "aria-hidden": "true"
@@ -1987,29 +1990,29 @@ function DepositAddressStep({
1987
1990
  ),
1988
1991
  /* @__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
1992
  /* @__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, {}) }),
1993
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PercentIcon, {}) }),
1991
1994
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1992
1995
  "Max slippage: ",
1993
1996
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1994
1997
  ] }),
1995
1998
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1996
- _chunkEDUWRMQIcjs.Tooltip,
1999
+ _chunkPPFG3VBDcjs.Tooltip,
1997
2000
  {
1998
2001
  className: "rs-price-impact-info",
1999
2002
  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" })
2003
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.InfoIcon, { "aria-hidden": "true" })
2001
2004
  }
2002
2005
  )
2003
2006
  ] }),
2004
2007
  /* @__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, {}) }),
2008
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ClockIcon, {}) }),
2006
2009
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2007
2010
  "Processing time: ",
2008
2011
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2009
2012
  ] })
2010
2013
  ] }),
2011
2014
  /* @__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, {}) }),
2015
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PlusCircleIcon, {}) }),
2013
2016
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2014
2017
  "Max deposit:",
2015
2018
  " ",
@@ -2041,7 +2044,7 @@ function DepositAddressStep({
2041
2044
  },
2042
2045
  deposit.id
2043
2046
  )) }),
2044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2047
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2045
2048
  ] });
2046
2049
  }
2047
2050
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2057,13 +2060,13 @@ DepositAddressStep.displayName = "DepositAddressStep";
2057
2060
  function FinalisingDepositStep() {
2058
2061
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2059
2062
  /* @__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, {}) }),
2063
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, {}) }),
2061
2064
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2062
2065
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2063
2066
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2064
2067
  ] })
2065
2068
  ] }),
2066
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2069
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2067
2070
  ] });
2068
2071
  }
2069
2072
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2094,7 +2097,7 @@ function SwappedOrderTracker({
2094
2097
  ];
2095
2098
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2096
2099
  /* @__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 }),
2100
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.HandCoinsIcon, {}), title }),
2098
2101
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2099
2102
  const status = stepStates[idx];
2100
2103
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2108,7 +2111,15 @@ function SwappedOrderTracker({
2108
2111
  {
2109
2112
  className: "rs-swapped-tracker-step-marker",
2110
2113
  "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
2114
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2115
+ "svg",
2116
+ {
2117
+ className: "rs-swapped-tracker-step-ring",
2118
+ viewBox: "0 0 16 16",
2119
+ "aria-hidden": "true",
2120
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { cx: "8", cy: "8", r: "7" })
2121
+ }
2122
+ )
2112
2123
  }
2113
2124
  )
2114
2125
  ]
@@ -2135,7 +2146,7 @@ function SwappedOrderTracker({
2135
2146
  }
2136
2147
  )
2137
2148
  ] }),
2138
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2149
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2139
2150
  ] });
2140
2151
  }
2141
2152
  function formatTrackerAmount(amount) {
@@ -2154,6 +2165,7 @@ var DEPOSIT_POLL_FAST_INITIAL_DELAY_MS = 1e3;
2154
2165
  var DEPOSIT_POLL_FAST_INTERVAL_MS = 500;
2155
2166
  var IFRAME_LOAD_TIMEOUT_MS = 15e3;
2156
2167
  var SWAPPED_IFRAME_ORIGINS = /* @__PURE__ */ new Set([
2168
+ "https://connect.swapped.com",
2157
2169
  "https://sandbox.swapped.com",
2158
2170
  "https://widget.swapped.com"
2159
2171
  ]);
@@ -2213,6 +2225,7 @@ function SwappedIframeStep({
2213
2225
  const [orderState, setOrderState] = _react.useState.call(void 0, null);
2214
2226
  const [latestEvent, setLatestEvent] = _react.useState.call(void 0, null);
2215
2227
  const [phase, setPhase] = _react.useState.call(void 0, "iframe");
2228
+ const iframeRef = _react.useRef.call(void 0, null);
2216
2229
  const completeFiredRef = _react.useRef.call(void 0, false);
2217
2230
  const failedFiredRef = _react.useRef.call(void 0, false);
2218
2231
  const expectedOrderUuidRef = _react.useRef.call(void 0, null);
@@ -2299,10 +2312,10 @@ function SwappedIframeStep({
2299
2312
  const status = await service.fetchLatestStatus(smartAccount);
2300
2313
  if (cancelled) return;
2301
2314
  const event = status.lastEvent;
2302
- const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2315
+ const eventTxHash = _chunkPPFG3VBDcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkPPFG3VBDcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2303
2316
  if (baselineDepositTxHashRef.current === void 0) {
2304
2317
  baselineDepositTxHashRef.current = eventTxHash;
2305
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2318
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkPPFG3VBDcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2306
2319
  currentDepositTxHashRef.current = eventTxHash;
2307
2320
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2308
2321
  }
@@ -2335,19 +2348,24 @@ function SwappedIframeStep({
2335
2348
  _react.useEffect.call(void 0, () => {
2336
2349
  function onMessage(e) {
2337
2350
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
2351
+ if (e.source !== _optionalChain([iframeRef, 'access', _82 => _82.current, 'optionalAccess', _83 => _83.contentWindow])) return;
2338
2352
  const parsed = parseSwappedIframeMessage(e.data);
2339
2353
  if (!parsed) return;
2354
+ const orderId = parsed.orderId;
2355
+ if (!orderId || orderId !== expectedOrderUuidRef.current) {
2356
+ return;
2357
+ }
2340
2358
  setOrderState((prev) => ({
2341
- orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderId]))), () => ( "")),
2359
+ orderId,
2342
2360
  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)),
2361
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCrypto]))), () => ( null)),
2362
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.orderCryptoAmount]))), () => ( null)),
2363
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _86 => _86.transactionId]))), () => ( null)),
2346
2364
  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))
2365
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountUsd]), () => ( null)),
2366
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.paidAmountEur]), () => ( null)),
2367
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.onrampFeeUsd]), () => ( null)),
2368
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _90 => _90.paymentMethod]), () => ( null))
2351
2369
  }));
2352
2370
  }
2353
2371
  window.addEventListener("message", onMessage);
@@ -2359,17 +2377,17 @@ function SwappedIframeStep({
2359
2377
  }
2360
2378
  }, [phase, orderState]);
2361
2379
  const stepStates = _react.useMemo.call(void 0,
2362
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _90 => _90.status]), () => ( null)), latestEvent),
2380
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _91 => _91.status]), () => ( null)), latestEvent),
2363
2381
  [orderState, latestEvent]
2364
2382
  );
2365
2383
  const terminalState = _react.useMemo.call(void 0, () => {
2366
- if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2384
+ if (_chunkPPFG3VBDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2367
2385
  return {
2368
2386
  kind: "failed",
2369
- message: _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2387
+ message: _chunkPPFG3VBDcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2370
2388
  };
2371
2389
  }
2372
- if (_optionalChain([orderState, 'optionalAccess', _91 => _91.status]) === "order_cancelled") {
2390
+ if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
2373
2391
  const banner = bannerForStatus("order_cancelled", {});
2374
2392
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
2375
2393
  }
@@ -2377,7 +2395,7 @@ function SwappedIframeStep({
2377
2395
  }, [latestEvent, orderState, bannerForStatus]);
2378
2396
  _react.useEffect.call(void 0, () => {
2379
2397
  if (completeFiredRef.current || failedFiredRef.current) return;
2380
- const t = _optionalChain([latestEvent, 'optionalAccess', _92 => _92.type]);
2398
+ const t = _optionalChain([latestEvent, 'optionalAccess', _93 => _93.type]);
2381
2399
  const isSuccess = t === "bridge-complete" || t === "post-bridge-swap-complete";
2382
2400
  if (!isSuccess) return;
2383
2401
  const txHash = currentDepositTxHashRef.current;
@@ -2385,22 +2403,22 @@ function SwappedIframeStep({
2385
2403
  completeFiredRef.current = true;
2386
2404
  onSwappedCompleteRef.current({
2387
2405
  txHash,
2388
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _93 => _93.orderCrypto]), () => ( null)),
2406
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2389
2407
  // Base-unit source amount from the deposit row/event, consistent with the
2390
2408
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2391
- amount: _nullishCoalesce(_chunkEDUWRMQIcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2409
+ amount: _nullishCoalesce(_chunkPPFG3VBDcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2392
2410
  });
2393
2411
  }, [latestEvent, orderState]);
2394
2412
  _react.useEffect.call(void 0, () => {
2395
2413
  if (failedFiredRef.current || completeFiredRef.current) return;
2396
- if (!_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2414
+ if (!_chunkPPFG3VBDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2397
2415
  const txHash = currentDepositTxHashRef.current;
2398
2416
  if (!txHash) return;
2399
2417
  failedFiredRef.current = true;
2400
2418
  setPhase("tracker");
2401
- _optionalChain([onSwappedFailedRef, 'access', _94 => _94.current, 'optionalCall', _95 => _95(
2419
+ _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2402
2420
  txHash,
2403
- _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2421
+ _chunkPPFG3VBDcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2404
2422
  )]);
2405
2423
  }, [latestEvent]);
2406
2424
  if (phase === "tracker") {
@@ -2411,8 +2429,8 @@ function SwappedIframeStep({
2411
2429
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2412
2430
  SwappedOrderTracker,
2413
2431
  {
2414
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _96 => _96.orderCryptoAmount]), () => ( null)),
2415
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCrypto]), () => ( "USDC")),
2432
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCryptoAmount]), () => ( null)),
2433
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _98 => _98.orderCrypto]), () => ( "USDC")),
2416
2434
  stepStates,
2417
2435
  terminal: terminalState,
2418
2436
  onRetry: () => setRetryToken((n) => n + 1),
@@ -2434,10 +2452,11 @@ function SwappedIframeStep({
2434
2452
  }
2435
2453
  )
2436
2454
  ] }),
2437
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2455
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, {}) }),
2438
2456
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2439
2457
  "iframe",
2440
2458
  {
2459
+ ref: iframeRef,
2441
2460
  src: widgetUrl,
2442
2461
  title: iframeTitle,
2443
2462
  className: "rs-fiat-onramp-iframe",
@@ -2448,11 +2467,11 @@ function SwappedIframeStep({
2448
2467
  retryToken
2449
2468
  )
2450
2469
  ] }) }),
2451
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2470
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2452
2471
  ] });
2453
2472
  }
2454
2473
  function deriveStepStates(swappedStatus, latestEvent) {
2455
- if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2474
+ if (_chunkPPFG3VBDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2456
2475
  return ["complete", "complete", "failed", "pending"];
2457
2476
  }
2458
2477
  if (swappedStatus === "order_cancelled") {
@@ -2460,7 +2479,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2460
2479
  }
2461
2480
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2462
2481
  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";
2482
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _100 => _100.type]) === "post-bridge-swap-complete";
2464
2483
  if (step3Complete) {
2465
2484
  return ["complete", "complete", "complete", "pending"];
2466
2485
  }
@@ -2612,7 +2631,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2612
2631
  function ExchangeLogo({ exchange }) {
2613
2632
  const [failed, setFailed] = _react.useState.call(void 0, false);
2614
2633
  if (!exchange.logoUrl || failed) {
2615
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BankIcon, {});
2634
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BankIcon, {});
2616
2635
  }
2617
2636
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2618
2637
  "img",
@@ -2647,7 +2666,7 @@ function ExchangeSelectStep({
2647
2666
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2648
2667
  setExchanges([]);
2649
2668
  setError(message);
2650
- _optionalChain([onError, 'optionalCall', _100 => _100(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2669
+ _optionalChain([onError, 'optionalCall', _101 => _101(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2651
2670
  }).finally(() => {
2652
2671
  if (!cancelled) setLoading(false);
2653
2672
  });
@@ -2658,14 +2677,14 @@ function ExchangeSelectStep({
2658
2677
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2659
2678
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2660
2679
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2661
- _chunkEDUWRMQIcjs.BodyHeader,
2680
+ _chunkPPFG3VBDcjs.BodyHeader,
2662
2681
  {
2663
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.UnplugIcon, {}),
2682
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.UnplugIcon, {}),
2664
2683
  title: "Connect exchange",
2665
2684
  subtitle: "Select an exchange to connect"
2666
2685
  }
2667
2686
  ),
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, {}) }),
2687
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, {}) }),
2669
2688
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2670
2689
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2671
2690
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2691,7 +2710,7 @@ function ExchangeSelectStep({
2691
2710
  )
2692
2711
  ] }),
2693
2712
  !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);
2713
+ const brand = _chunkPPFG3VBDcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2695
2714
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2696
2715
  "button",
2697
2716
  {
@@ -2714,7 +2733,7 @@ function ExchangeSelectStep({
2714
2733
  );
2715
2734
  }) })
2716
2735
  ] }),
2717
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2736
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2718
2737
  ] });
2719
2738
  }
2720
2739
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2726,8 +2745,8 @@ function DepositAddressSkeleton({
2726
2745
  uiConfig,
2727
2746
  allowedRoutes
2728
2747
  }) {
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;
2748
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2749
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2731
2750
  const evmChainIds = (() => {
2732
2751
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2733
2752
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
@@ -2744,7 +2763,7 @@ function DepositAddressSkeleton({
2744
2763
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2745
2764
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2746
2765
  /* @__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" }),
2766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2748
2767
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2749
2768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2750
2769
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2758,7 +2777,7 @@ function DepositAddressSkeleton({
2758
2777
  }
2759
2778
  ),
2760
2779
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2780
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2762
2781
  ] })
2763
2782
  ] }),
2764
2783
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2766,9 +2785,9 @@ function DepositAddressSkeleton({
2766
2785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2767
2786
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2768
2787
  "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,
2788
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2789
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2790
+ _chunkPPFG3VBDcjs.InfoIcon,
2772
2791
  {
2773
2792
  className: "rs-deposit-address-min-icon",
2774
2793
  "aria-hidden": "true"
@@ -2786,7 +2805,7 @@ function DepositAddressSkeleton({
2786
2805
  }
2787
2806
  ),
2788
2807
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2789
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2808
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2790
2809
  ] })
2791
2810
  ] })
2792
2811
  ] }),
@@ -2807,7 +2826,7 @@ function DepositAddressSkeleton({
2807
2826
  disabled: true,
2808
2827
  "aria-hidden": "true",
2809
2828
  children: [
2810
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
2829
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CopyIcon, {}),
2811
2830
  "Copy address"
2812
2831
  ]
2813
2832
  }
@@ -2820,16 +2839,16 @@ function DepositAddressSkeleton({
2820
2839
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2821
2840
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2822
2841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2823
- _chunkEDUWRMQIcjs.Tooltip,
2842
+ _chunkPPFG3VBDcjs.Tooltip,
2824
2843
  {
2825
2844
  className: "rs-price-impact-info",
2826
2845
  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" })
2846
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.InfoIcon, { "aria-hidden": "true" })
2828
2847
  }
2829
2848
  )
2830
2849
  ] }),
2831
2850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2832
- _chunkEDUWRMQIcjs.ChevronDownIcon,
2851
+ _chunkPPFG3VBDcjs.ChevronDownIcon,
2833
2852
  {
2834
2853
  className: "rs-price-impact-chevron",
2835
2854
  "aria-hidden": "true"
@@ -2837,7 +2856,7 @@ function DepositAddressSkeleton({
2837
2856
  )
2838
2857
  ] }) })
2839
2858
  ] }),
2840
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
2841
2860
  ] });
2842
2861
  }
2843
2862
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2869,7 +2888,7 @@ function SolanaTokenSelectStep({
2869
2888
  setError(null);
2870
2889
  const portfolioBySymbol = {};
2871
2890
  try {
2872
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2891
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2873
2892
  solanaAddress
2874
2893
  });
2875
2894
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -2892,12 +2911,12 @@ function SolanaTokenSelectStep({
2892
2911
  };
2893
2912
  }
2894
2913
  }
2895
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2914
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2896
2915
  symbols: Object.keys(portfolioBySymbol)
2897
2916
  });
2898
2917
  } catch (err) {
2899
2918
  if (!active) return;
2900
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2919
+ _chunkPPFG3VBDcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2901
2920
  solanaAddress
2902
2921
  });
2903
2922
  setError(
@@ -2922,7 +2941,7 @@ function SolanaTokenSelectStep({
2922
2941
  setTokenBalances(results);
2923
2942
  setLoading(false);
2924
2943
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
2925
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _104 => _104(totalUsd)]);
2944
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _105 => _105(totalUsd)]);
2926
2945
  }
2927
2946
  void loadBalances();
2928
2947
  return () => {
@@ -2944,7 +2963,7 @@ function SolanaTokenSelectStep({
2944
2963
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2945
2964
  const numeric = Number(raw);
2946
2965
  if (!Number.isFinite(numeric)) return raw;
2947
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
2966
+ return _chunkPPFG3VBDcjs.tokenFormatter.format(numeric);
2948
2967
  } catch (e20) {
2949
2968
  return "--";
2950
2969
  }
@@ -2954,20 +2973,20 @@ function SolanaTokenSelectStep({
2954
2973
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2955
2974
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2956
2975
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2957
- _chunkEDUWRMQIcjs.BodyHeader,
2976
+ _chunkPPFG3VBDcjs.BodyHeader,
2958
2977
  {
2959
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
2978
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}),
2960
2979
  title: "Your assets",
2961
2980
  subtitle: "Select source assets to transfer"
2962
2981
  }
2963
2982
  ),
2964
2983
  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" }),
2984
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, { className: "rs-text-tertiary" }),
2966
2985
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2967
2986
  ] }),
2968
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
2987
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
2969
2988
  !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" }),
2989
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, { className: "rs-empty-icon" }),
2971
2990
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2972
2991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2973
2992
  solanaAddress.slice(0, 6),
@@ -3016,14 +3035,14 @@ function SolanaTokenSelectStep({
3016
3035
  ] })
3017
3036
  ] })
3018
3037
  ] }),
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}` : "--" })
3038
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkPPFG3VBDcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3020
3039
  ]
3021
3040
  },
3022
3041
  entry.token.symbol
3023
3042
  );
3024
3043
  }) }),
3025
3044
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3026
- _chunkEDUWRMQIcjs.Button,
3045
+ _chunkPPFG3VBDcjs.Button,
3027
3046
  {
3028
3047
  onClick: () => selectedEntry && onContinue(
3029
3048
  selectedEntry.token,
@@ -3036,7 +3055,7 @@ function SolanaTokenSelectStep({
3036
3055
  }
3037
3056
  )
3038
3057
  ] }),
3039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3058
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
3040
3059
  ] });
3041
3060
  }
3042
3061
 
@@ -3069,7 +3088,7 @@ function SolanaAmountStep({
3069
3088
  const [error, setError] = _react.useState.call(void 0, null);
3070
3089
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3071
3090
  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";
3091
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3073
3092
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3074
3093
  if (isSourceStablecoin) return 1;
3075
3094
  try {
@@ -3089,7 +3108,7 @@ function SolanaAmountStep({
3089
3108
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3090
3109
  const numeric = Number(raw);
3091
3110
  if (!Number.isFinite(numeric)) return raw;
3092
- return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
3111
+ return _chunkPPFG3VBDcjs.tokenFormatter.format(numeric);
3093
3112
  } catch (e22) {
3094
3113
  return "\u2026";
3095
3114
  }
@@ -3171,8 +3190,8 @@ function SolanaAmountStep({
3171
3190
  return null;
3172
3191
  }
3173
3192
  }, [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));
3193
+ 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));
3194
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3176
3195
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3177
3196
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3178
3197
  const exceedsBalance = Boolean(
@@ -3182,7 +3201,7 @@ function SolanaAmountStep({
3182
3201
  const handlePresetClick = (percentage) => {
3183
3202
  const formatted = computePresetAmount(percentage);
3184
3203
  if (!formatted) return;
3185
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3204
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3186
3205
  percentage,
3187
3206
  symbol: token.symbol,
3188
3207
  formatted
@@ -3217,7 +3236,7 @@ function SolanaAmountStep({
3217
3236
  try {
3218
3237
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3219
3238
  } catch (e27) {
3220
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3239
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3221
3240
  amount,
3222
3241
  sourceAmount: sourceAmountStr,
3223
3242
  reason: "parse-units-failed"
@@ -3232,7 +3251,7 @@ function SolanaAmountStep({
3232
3251
  );
3233
3252
  return;
3234
3253
  }
3235
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3254
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3236
3255
  symbol: token.symbol,
3237
3256
  inputAmountUsd: amount,
3238
3257
  sourceAmount: sourceAmountStr,
@@ -3246,7 +3265,7 @@ function SolanaAmountStep({
3246
3265
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3247
3266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3248
3267
  /* @__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" }),
3268
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}), title: "Wallet deposit" }),
3250
3269
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3251
3270
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3252
3271
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3266,13 +3285,13 @@ function SolanaAmountStep({
3266
3285
  " available",
3267
3286
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3268
3287
  " (~",
3269
- _chunkEDUWRMQIcjs.currencyFormatter.format(computedBalanceUsd),
3288
+ _chunkPPFG3VBDcjs.currencyFormatter.format(computedBalanceUsd),
3270
3289
  ")"
3271
3290
  ] })
3272
3291
  ] }),
3273
3292
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3274
3293
  "Min. deposit ",
3275
- _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
3294
+ _chunkPPFG3VBDcjs.currencyFormatter.format(minDepositUsd)
3276
3295
  ] })
3277
3296
  ] })
3278
3297
  ] }),
@@ -3311,13 +3330,13 @@ function SolanaAmountStep({
3311
3330
  ] }),
3312
3331
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3313
3332
  /* @__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) })
3333
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPPFG3VBDcjs.currencyFormatter.format(balanceAfterUsd) })
3315
3334
  ] })
3316
3335
  ] }),
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 }),
3336
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3337
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
3319
3338
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3320
- _chunkEDUWRMQIcjs.Button,
3339
+ _chunkPPFG3VBDcjs.Button,
3321
3340
  {
3322
3341
  onClick: handleContinue,
3323
3342
  fullWidth: true,
@@ -3326,7 +3345,7 @@ function SolanaAmountStep({
3326
3345
  }
3327
3346
  )
3328
3347
  ] }),
3329
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3348
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
3330
3349
  ] });
3331
3350
  }
3332
3351
 
@@ -3347,21 +3366,15 @@ var _web3js = require('@solana/web3.js');
3347
3366
 
3348
3367
  var _spltoken = require('@solana/spl-token');
3349
3368
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3350
- var configuredSolanaRpcUrl = null;
3351
3369
  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));
3370
+ function getSolanaRpcUrl(rpcUrls) {
3371
+ return _nullishCoalesce(_chunkPPFG3VBDcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3359
3372
  }
3360
- function hasConfiguredSolanaRpcUrl() {
3361
- return configuredSolanaRpcUrl !== null;
3373
+ function hasConfiguredSolanaRpcUrl(rpcUrls) {
3374
+ return _chunkPPFG3VBDcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3362
3375
  }
3363
- function getSolanaConnection() {
3364
- const rpcUrl = getSolanaRpcUrl();
3376
+ function getSolanaConnection(rpcUrls) {
3377
+ const rpcUrl = getSolanaRpcUrl(rpcUrls);
3365
3378
  const cached = cachedConnections.get(rpcUrl);
3366
3379
  if (cached) {
3367
3380
  return cached;
@@ -3460,6 +3473,7 @@ function SolanaConfirmStep({
3460
3473
  onError,
3461
3474
  debug
3462
3475
  }) {
3476
+ const rpcUrls = _chunkPPFG3VBDcjs.useRpcUrls.call(void 0, );
3463
3477
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3464
3478
  const [error, setError] = _react.useState.call(void 0, null);
3465
3479
  const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
@@ -3469,13 +3483,13 @@ function SolanaConfirmStep({
3469
3483
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3470
3484
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3471
3485
  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";
3486
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.feeSponsored]), () => ( false));
3487
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _114 => _114.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3488
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkPPFG3VBDcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3475
3489
  const receiveDisplay = (() => {
3476
3490
  const usdValue = Number(targetAmount);
3477
3491
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3478
- const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
3492
+ const estimate = _chunkPPFG3VBDcjs.formatReceiveEstimate.call(void 0, {
3479
3493
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3480
3494
  sourceSymbol: token.symbol,
3481
3495
  targetSymbol,
@@ -3487,7 +3501,7 @@ function SolanaConfirmStep({
3487
3501
  })();
3488
3502
  const handleConfirm = async () => {
3489
3503
  if (!solanaProvider) {
3490
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3504
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3491
3505
  reason: "missing-provider"
3492
3506
  });
3493
3507
  setError("Solana wallet not connected");
@@ -3495,7 +3509,7 @@ function SolanaConfirmStep({
3495
3509
  }
3496
3510
  const parsedAmount = parseFloat(sourceAmount);
3497
3511
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3498
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3512
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3499
3513
  reason: "invalid-amount",
3500
3514
  sourceAmount
3501
3515
  });
@@ -3504,7 +3518,7 @@ function SolanaConfirmStep({
3504
3518
  }
3505
3519
  setError(null);
3506
3520
  setIsSubmitting(true);
3507
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3521
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3508
3522
  smartAccount,
3509
3523
  solanaAddress,
3510
3524
  solanaDepositAddress,
@@ -3514,7 +3528,7 @@ function SolanaConfirmStep({
3514
3528
  });
3515
3529
  try {
3516
3530
  const check = await service.checkAccount(smartAccount);
3517
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3531
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3518
3532
  smartAccount,
3519
3533
  isRegistered: check.isRegistered,
3520
3534
  targetChain: check.targetChain,
@@ -3525,9 +3539,9 @@ function SolanaConfirmStep({
3525
3539
  "Deposit account is not registered yet. Please restart setup and try again."
3526
3540
  );
3527
3541
  }
3528
- const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3542
+ const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3529
3543
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3530
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3544
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3531
3545
  token: token.symbol,
3532
3546
  sourceAmount,
3533
3547
  amountUnits: amountUnits.toString()
@@ -3544,10 +3558,10 @@ function SolanaConfirmStep({
3544
3558
  token.mint,
3545
3559
  amountUnits
3546
3560
  );
3547
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3561
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3548
3562
  token: token.symbol,
3549
3563
  instructionCount: transaction.instructions.length,
3550
- feePayer: _optionalChain([transaction, 'access', _116 => _116.feePayer, 'optionalAccess', _117 => _117.toBase58, 'call', _118 => _118()]),
3564
+ feePayer: _optionalChain([transaction, 'access', _115 => _115.feePayer, 'optionalAccess', _116 => _116.toBase58, 'call', _117 => _117()]),
3551
3565
  recentBlockhash: transaction.recentBlockhash
3552
3566
  });
3553
3567
  const txHash = await sendSolanaTransaction(
@@ -3555,28 +3569,28 @@ function SolanaConfirmStep({
3555
3569
  connection,
3556
3570
  transaction
3557
3571
  );
3558
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3572
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3559
3573
  txHash,
3560
3574
  amountUnits: amountUnits.toString()
3561
3575
  });
3562
3576
  onConfirm(txHash, amountUnits.toString());
3563
3577
  } catch (err) {
3564
3578
  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, {
3579
+ const message = _chunkPPFG3VBDcjs.formatUserError.call(void 0, raw);
3580
+ _chunkPPFG3VBDcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3567
3581
  smartAccount,
3568
3582
  token: token.symbol,
3569
3583
  sourceAmount
3570
3584
  });
3571
3585
  setError(message);
3572
- _optionalChain([onError, 'optionalCall', _119 => _119(message, "SOLANA_TRANSFER_ERROR")]);
3586
+ _optionalChain([onError, 'optionalCall', _118 => _118(message, "SOLANA_TRANSFER_ERROR")]);
3573
3587
  } finally {
3574
3588
  setIsSubmitting(false);
3575
3589
  }
3576
3590
  };
3577
3591
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3578
3592
  /* @__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" }),
3593
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}), title: "Review deposit" }),
3580
3594
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3581
3595
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3582
3596
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3624,13 +3638,13 @@ function SolanaConfirmStep({
3624
3638
  children: "$0.04"
3625
3639
  }
3626
3640
  ),
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, {}) }) })
3641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.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, _chunkPPFG3VBDcjs.InfoIcon, {}) }) })
3628
3642
  ] })
3629
3643
  ] })
3630
3644
  ] }),
3631
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3645
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
3632
3646
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3633
- _chunkEDUWRMQIcjs.Button,
3647
+ _chunkPPFG3VBDcjs.Button,
3634
3648
  {
3635
3649
  onClick: handleConfirm,
3636
3650
  loading: isSubmitting,
@@ -3641,7 +3655,7 @@ function SolanaConfirmStep({
3641
3655
  }
3642
3656
  )
3643
3657
  ] }),
3644
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3658
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
3645
3659
  ] });
3646
3660
  }
3647
3661
 
@@ -3655,18 +3669,18 @@ function DappImportAssetSelectStep({
3655
3669
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3656
3670
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3657
3671
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3658
- _chunkEDUWRMQIcjs.BodyHeader,
3672
+ _chunkPPFG3VBDcjs.BodyHeader,
3659
3673
  {
3660
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3674
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}),
3661
3675
  title: `Transfer from ${sourceLabel}`,
3662
3676
  subtitle: "Pick the balance to import"
3663
3677
  }
3664
3678
  ),
3665
3679
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3666
- const tokenAmount = asset.balance ? _chunkEDUWRMQIcjs.tokenFormatter.format(
3680
+ const tokenAmount = asset.balance ? _chunkPPFG3VBDcjs.tokenFormatter.format(
3667
3681
  Number(asset.balance) / 10 ** asset.decimals
3668
3682
  ) : "0";
3669
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3683
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkPPFG3VBDcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3670
3684
  const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3671
3685
  const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3672
3686
  const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
@@ -3717,7 +3731,7 @@ function DappImportAssetSelectStep({
3717
3731
  );
3718
3732
  }) })
3719
3733
  ] }),
3720
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3734
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
3721
3735
  ] });
3722
3736
  }
3723
3737
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3734,9 +3748,9 @@ function DappImportAssetSelectSkeleton({
3734
3748
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3735
3749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3736
3750
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3737
- _chunkEDUWRMQIcjs.BodyHeader,
3751
+ _chunkPPFG3VBDcjs.BodyHeader,
3738
3752
  {
3739
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3753
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, {}),
3740
3754
  title: `Transfer from ${sourceLabel}`,
3741
3755
  subtitle: "Pick the balance to import"
3742
3756
  }
@@ -3774,7 +3788,7 @@ function DappImportAssetSelectSkeleton({
3774
3788
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3775
3789
  }
3776
3790
  ) }),
3777
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3791
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
3778
3792
  ] });
3779
3793
  }
3780
3794
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3964,21 +3978,21 @@ var polymarketProvider = {
3964
3978
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
3965
3979
  const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
3966
3980
  if (!proxyWallet) return null;
3967
- if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
3981
+ if (_optionalChain([signal, 'optionalAccess', _119 => _119.aborted])) return null;
3968
3982
  const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
3969
3983
  if (!polygonClient) return null;
3970
3984
  const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
3971
3985
  publicClient: polygonClient,
3972
3986
  proxyWallet
3973
3987
  });
3974
- if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3988
+ if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
3975
3989
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
3976
3990
  const walletKind = await detectPolymarketWalletKind({
3977
3991
  publicClient: polygonClient,
3978
3992
  proxyWallet,
3979
3993
  eoa
3980
3994
  });
3981
- if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
3995
+ if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3982
3996
  if (!walletKind) return null;
3983
3997
  const assets = [];
3984
3998
  if (balances.pusd > 0n) {
@@ -4103,7 +4117,7 @@ function readSetupForOwner(setup, owner) {
4103
4117
  function computeDappImportStatus(providerId, inputs) {
4104
4118
  const { owner, availability, availabilityOwner, setup } = inputs;
4105
4119
  if (!owner) return "needs-connect";
4106
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _123 => _123.toLowerCase, 'call', _124 => _124()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4120
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _122 => _122.toLowerCase, 'call', _123 => _123()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4107
4121
  if (entry === "loading" || entry === void 0) return "loading";
4108
4122
  if (entry === "error") {
4109
4123
  return {
@@ -4457,12 +4471,12 @@ function applyAction(state, action) {
4457
4471
  requestKey: action.requestKey,
4458
4472
  cacheKey: action.cacheKey,
4459
4473
  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)),
4474
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _124 => _124.smartAccount]), () => ( null)),
4475
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _125 => _125.sessionOwnerAddress]), () => ( null)),
4476
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.solanaDepositAddress]), () => ( null)),
4463
4477
  message: null,
4464
4478
  cacheable: action.cacheable,
4465
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.attemptNonce]), () => ( 0))
4479
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.attemptNonce]), () => ( 0))
4466
4480
  }));
4467
4481
  }
4468
4482
  case "setup/ready": {
@@ -4584,7 +4598,8 @@ function applyAction(state, action) {
4584
4598
  processing: {
4585
4599
  ...state.processing,
4586
4600
  txHash: action.txHash,
4587
- directTransfer: _nullishCoalesce(action.directTransfer, () => ( false))
4601
+ directTransfer: _nullishCoalesce(action.directTransfer, () => ( false)),
4602
+ swappedContext: _nullishCoalesce(action.swappedContext, () => ( null))
4588
4603
  },
4589
4604
  flow: { ...state.flow, step: "processing" }
4590
4605
  };
@@ -4753,7 +4768,8 @@ function applyAction(state, action) {
4753
4768
  deposit: { ...state.deposit, ...RESET_DEPOSIT_FIELDS },
4754
4769
  processing: {
4755
4770
  txHash: null,
4756
- directTransfer: false
4771
+ directTransfer: false,
4772
+ swappedContext: null
4757
4773
  },
4758
4774
  // Drop fetched availability wholesale. The fetch effect refetches
4759
4775
  // unconditionally on remount (so keeping the map saves nothing),
@@ -4834,7 +4850,8 @@ function createInitialState(overrides) {
4834
4850
  },
4835
4851
  processing: {
4836
4852
  txHash: null,
4837
- directTransfer: false
4853
+ directTransfer: false,
4854
+ swappedContext: null
4838
4855
  },
4839
4856
  dappImport: {
4840
4857
  activeProviderId: null,
@@ -4900,15 +4917,15 @@ var SetupError = class extends Error {
4900
4917
  }
4901
4918
  };
4902
4919
  async function resolveSessionOwner(eoaAddress) {
4903
- const local = _chunkEDUWRMQIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4920
+ const local = _chunkPPFG3VBDcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4904
4921
  if (local) {
4905
4922
  return {
4906
- account: _chunkEDUWRMQIcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4923
+ account: _chunkPPFG3VBDcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4907
4924
  address: local.address
4908
4925
  };
4909
4926
  }
4910
- const created = _chunkEDUWRMQIcjs.createSessionOwnerKey.call(void 0, );
4911
- _chunkEDUWRMQIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4927
+ const created = _chunkPPFG3VBDcjs.createSessionOwnerKey.call(void 0, );
4928
+ _chunkPPFG3VBDcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4912
4929
  return { account: created.account, address: created.address };
4913
4930
  }
4914
4931
  function stableStringify(value) {
@@ -4958,14 +4975,14 @@ function computeCacheKey(input, sessionOwnerAddress) {
4958
4975
  });
4959
4976
  }
4960
4977
  function computeIsCacheable(input) {
4961
- return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _129 => _129.postBridgeActions, 'optionalAccess', _130 => _130.length]), () => ( 0)));
4978
+ return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _128 => _128.postBridgeActions, 'optionalAccess', _129 => _129.length]), () => ( 0)));
4962
4979
  }
4963
4980
  var SETUP_REQUEST_DEDUPE_TTL_MS = 3e4;
4964
4981
  var setupRequestDedupe = /* @__PURE__ */ new Map();
4965
4982
  function readDedupedAccountSetupResult(requestKey) {
4966
4983
  const now = Date.now();
4967
4984
  const existing = setupRequestDedupe.get(requestKey);
4968
- if (_optionalChain([existing, 'optionalAccess', _131 => _131.settled]) && existing.expiresAt > now && existing.result) {
4985
+ if (_optionalChain([existing, 'optionalAccess', _130 => _130.settled]) && existing.expiresAt > now && existing.result) {
4969
4986
  return existing.result;
4970
4987
  }
4971
4988
  return null;
@@ -4976,10 +4993,10 @@ async function runAccountSetup(input, deps) {
4976
4993
  try {
4977
4994
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
4978
4995
  const cacheKey = computeCacheKey(input, sessionOwner.address);
4979
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4996
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4980
4997
  owner: input.ownerAddress,
4981
4998
  sessionOwner: sessionOwner.address,
4982
- hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _132 => _132.postBridgeActions, 'optionalAccess', _133 => _133.length])),
4999
+ hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _131 => _131.postBridgeActions, 'optionalAccess', _132 => _132.length])),
4983
5000
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
4984
5001
  });
4985
5002
  const setup = await service.setupAccount({
@@ -5024,7 +5041,7 @@ async function runAccountSetup(input, deps) {
5024
5041
  primaryType: typedData.primaryType,
5025
5042
  message: typedData.message
5026
5043
  });
5027
- const sessionDetails = _chunkEDUWRMQIcjs.buildSessionDetails.call(void 0,
5044
+ const sessionDetails = _chunkPPFG3VBDcjs.buildSessionDetails.call(void 0,
5028
5045
  setup.sessionDetailsUnsigned,
5029
5046
  signature
5030
5047
  );
@@ -5041,10 +5058,10 @@ async function runAccountSetup(input, deps) {
5041
5058
  chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5042
5059
  token: input.targetToken,
5043
5060
  ...input.recipient && { recipient: input.recipient },
5044
- ..._optionalChain([input, 'access', _134 => _134.postBridgeActions, 'optionalAccess', _135 => _135.length]) && {
5061
+ ..._optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length]) && {
5045
5062
  postBridgeActions: input.postBridgeActions
5046
5063
  },
5047
- ..._optionalChain([input, 'access', _136 => _136.outputTokenRules, 'optionalAccess', _137 => _137.length]) && {
5064
+ ..._optionalChain([input, 'access', _135 => _135.outputTokenRules, 'optionalAccess', _136 => _136.length]) && {
5048
5065
  outputTokenRules: input.outputTokenRules
5049
5066
  },
5050
5067
  ...input.rejectUnmapped != null && {
@@ -5060,7 +5077,7 @@ async function runAccountSetup(input, deps) {
5060
5077
  isRegistered: true
5061
5078
  };
5062
5079
  } catch (error) {
5063
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5080
+ _chunkPPFG3VBDcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5064
5081
  owner: input.ownerAddress
5065
5082
  });
5066
5083
  if (error instanceof SetupError) throw error;
@@ -5071,7 +5088,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5071
5088
  const now = Date.now();
5072
5089
  const existing = setupRequestDedupe.get(requestKey);
5073
5090
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5074
- _chunkEDUWRMQIcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5091
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5075
5092
  owner: input.ownerAddress,
5076
5093
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5077
5094
  });
@@ -5300,7 +5317,8 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5300
5317
  sourceSymbol: _nullishCoalesce(d.sourceSymbol, () => ( void 0)),
5301
5318
  sourceDecimals: _nullishCoalesce(d.sourceDecimals, () => ( void 0)),
5302
5319
  inputAmountUsd: _nullishCoalesce(d.inputAmountUsd, () => ( void 0)),
5303
- directTransfer: p.directTransfer
5320
+ directTransfer: p.directTransfer,
5321
+ swappedContext: _nullishCoalesce(p.swappedContext, () => ( void 0))
5304
5322
  };
5305
5323
  }
5306
5324
  }
@@ -5358,10 +5376,11 @@ function DepositFlow({
5358
5376
  onError,
5359
5377
  debug
5360
5378
  }) {
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);
5379
+ const rpcUrls = _chunkPPFG3VBDcjs.useRpcUrls.call(void 0, );
5380
+ const onStepChangeRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onStepChange);
5381
+ const onEventRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onEvent);
5382
+ const onLifecycleRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onLifecycle);
5383
+ const onErrorRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onError);
5365
5384
  const storeApi = useDepositStoreApi();
5366
5385
  const flowSlice = useDepositStore((s) => s.flow);
5367
5386
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5377,23 +5396,23 @@ function DepositFlow({
5377
5396
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5378
5397
  const logFlow = _react.useCallback.call(void 0,
5379
5398
  (message, data) => {
5380
- _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5399
+ _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5381
5400
  },
5382
5401
  [debug]
5383
5402
  );
5384
5403
  const logFlowError = _react.useCallback.call(void 0,
5385
5404
  (message, error, data) => {
5386
- _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5405
+ _chunkPPFG3VBDcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5387
5406
  },
5388
5407
  [debug]
5389
5408
  );
5390
5409
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5391
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _138 => _138.switchChain])) return void 0;
5410
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _137 => _137.switchChain])) return void 0;
5392
5411
  return async (chainId) => {
5393
- await _optionalChain([dappWalletClient, 'access', _139 => _139.switchChain, 'optionalCall', _140 => _140({ id: chainId })]);
5412
+ await _optionalChain([dappWalletClient, 'access', _138 => _138.switchChain, 'optionalCall', _139 => _139({ id: chainId })]);
5394
5413
  };
5395
5414
  }, [dappWalletClient]);
5396
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _141 => _141.account, 'optionalAccess', _142 => _142.address]), () => ( null));
5415
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _140 => _140.account, 'optionalAccess', _141 => _141.address]), () => ( null));
5397
5416
  const walletOptions = _react.useMemo.call(void 0, () => {
5398
5417
  const options = [];
5399
5418
  const seen = /* @__PURE__ */ new Set();
@@ -5407,7 +5426,7 @@ function DepositFlow({
5407
5426
  });
5408
5427
  seen.add(id);
5409
5428
  }
5410
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _143 => _143.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5429
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _142 => _142.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5411
5430
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5412
5431
  if (!seen.has(id)) {
5413
5432
  options.push({
@@ -5419,7 +5438,7 @@ function DepositFlow({
5419
5438
  });
5420
5439
  seen.add(id);
5421
5440
  }
5422
- } else if (_optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5441
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _143 => _143.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5423
5442
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5424
5443
  if (!seen.has(id)) {
5425
5444
  options.push({
@@ -5436,20 +5455,20 @@ function DepositFlow({
5436
5455
  }, [
5437
5456
  connectedWalletAddress,
5438
5457
  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]),
5458
+ _optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]),
5459
+ _optionalChain([reownWallet, 'optionalAccess', _145 => _145.isConnected]),
5460
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.walletClient]),
5461
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.publicClient]),
5462
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.icon]),
5444
5463
  enableSolana,
5445
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isSolana]),
5446
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.solanaAddress]),
5447
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.caipAddress])
5464
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.isSolana]),
5465
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.solanaAddress]),
5466
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.caipAddress])
5448
5467
  ]);
5449
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _153 => _153.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5468
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _152 => _152.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5450
5469
  const hasWalletOptions = walletOptions.length > 0;
5451
5470
  const hasReownSession = Boolean(
5452
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address]) : _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address])
5471
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _153 => _153.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _154 => _154.address]) : _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address])
5453
5472
  );
5454
5473
  const isDappImportWalletHydrating = Boolean(
5455
5474
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -5497,16 +5516,16 @@ function DepositFlow({
5497
5516
  return {
5498
5517
  ownerAddress: dappAddress,
5499
5518
  walletClient: void 0,
5500
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5519
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5501
5520
  switchChain: void 0
5502
5521
  };
5503
5522
  }
5504
5523
  if (canAutoLock) {
5505
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
5524
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _156 => _156.chain, 'optionalAccess', _157 => _157.id]), () => ( setupChainId));
5506
5525
  return {
5507
5526
  ownerAddress: dappWalletClient.account.address,
5508
5527
  walletClient: dappWalletClient,
5509
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5528
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5510
5529
  switchChain: dappSwitchChain
5511
5530
  };
5512
5531
  }
@@ -5520,24 +5539,24 @@ function DepositFlow({
5520
5539
  return {
5521
5540
  ownerAddress: dappAddress,
5522
5541
  walletClient: void 0,
5523
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5542
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5524
5543
  switchChain: void 0
5525
5544
  };
5526
5545
  }
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));
5546
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5547
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _159 => _159.chain, 'optionalAccess', _160 => _160.id]), () => ( setupChainId));
5529
5548
  return {
5530
5549
  ownerAddress: dappWalletClient.account.address,
5531
5550
  walletClient: dappWalletClient,
5532
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5551
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5533
5552
  switchChain: dappSwitchChain
5534
5553
  };
5535
5554
  }
5536
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5555
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _161 => _161.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5537
5556
  return {
5538
5557
  ownerAddress: reownWallet.address,
5539
5558
  walletClient: reownWallet.walletClient,
5540
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5559
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5541
5560
  switchChain: reownWallet.switchChain
5542
5561
  };
5543
5562
  }
@@ -5552,7 +5571,8 @@ function DepositFlow({
5552
5571
  dappSwitchChain,
5553
5572
  dappAddress,
5554
5573
  reownWallet,
5555
- setupChainId
5574
+ setupChainId,
5575
+ rpcUrls
5556
5576
  ]);
5557
5577
  _react.useEffect.call(void 0, () => {
5558
5578
  if (flowMode !== "wallet" && flowMode !== "dapp-import") {
@@ -5575,7 +5595,7 @@ function DepositFlow({
5575
5595
  return {
5576
5596
  ownerAddress: dappAddress,
5577
5597
  walletClient: void 0,
5578
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5598
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5579
5599
  switchChain: void 0
5580
5600
  };
5581
5601
  }
@@ -5600,37 +5620,37 @@ function DepositFlow({
5600
5620
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5601
5621
  if (!selectedWalletId) return null;
5602
5622
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5603
- if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "external" && opt.address) {
5623
+ if (_optionalChain([opt, 'optionalAccess', _162 => _162.kind]) === "external" && opt.address) {
5604
5624
  return opt.address;
5605
5625
  }
5606
- if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "connected" && opt.address) {
5626
+ if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "connected" && opt.address) {
5607
5627
  return opt.address;
5608
5628
  }
5609
5629
  return null;
5610
5630
  }, [selectedWalletId, walletOptions]);
5611
5631
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5612
5632
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5613
- if (_optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]) && reownWallet.isConnected) {
5633
+ if (_optionalChain([reownWallet, 'optionalAccess', _164 => _164.address]) && reownWallet.isConnected) {
5614
5634
  return reownWallet.address;
5615
5635
  }
5616
5636
  if (connectedWalletAddress) return connectedWalletAddress;
5617
5637
  return null;
5618
5638
  }, [
5619
5639
  selectedEvmWalletOwner,
5620
- _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]),
5621
- _optionalChain([reownWallet, 'optionalAccess', _167 => _167.isConnected]),
5640
+ _optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]),
5641
+ _optionalChain([reownWallet, 'optionalAccess', _166 => _166.isConnected]),
5622
5642
  connectedWalletAddress
5623
5643
  ]);
5624
5644
  const activeOwner = _react.useMemo.call(void 0,
5625
5645
  () => resolveOwnerForMode(flowMode, {
5626
5646
  dappAddress,
5627
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5647
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _167 => _167.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5628
5648
  dappImportOwner
5629
5649
  }),
5630
5650
  [
5631
5651
  flowMode,
5632
5652
  dappAddress,
5633
- _optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]),
5653
+ _optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]),
5634
5654
  canAutoLock,
5635
5655
  connectedWalletAddress,
5636
5656
  selectedEvmWalletOwner,
@@ -5659,12 +5679,12 @@ function DepositFlow({
5659
5679
  return;
5660
5680
  }
5661
5681
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5662
- _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
5682
+ _optionalChain([onLifecycleRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170({
5663
5683
  type: "smart-account-changed",
5664
5684
  evm: activeEntry.smartAccount,
5665
5685
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5666
5686
  })]);
5667
- _optionalChain([onLifecycleRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173({
5687
+ _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
5668
5688
  type: "connected",
5669
5689
  address: activeOwner,
5670
5690
  smartAccount: activeEntry.smartAccount
@@ -5710,7 +5730,7 @@ function DepositFlow({
5710
5730
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5711
5731
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5712
5732
  _react.useEffect.call(void 0, () => {
5713
- _optionalChain([onStepChangeRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175(currentBackHandler, currentScreen)]);
5733
+ _optionalChain([onStepChangeRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174(currentBackHandler, currentScreen)]);
5714
5734
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5715
5735
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5716
5736
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5720,7 +5740,7 @@ function DepositFlow({
5720
5740
  modalContentElRef.current = mc;
5721
5741
  const ro = new ResizeObserver((entries) => {
5722
5742
  for (const entry of entries) {
5723
- const border = _optionalChain([entry, 'access', _176 => _176.borderBoxSize, 'optionalAccess', _177 => _177[0], 'optionalAccess', _178 => _178.blockSize]);
5743
+ const border = _optionalChain([entry, 'access', _175 => _175.borderBoxSize, 'optionalAccess', _176 => _176[0], 'optionalAccess', _177 => _177.blockSize]);
5724
5744
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5725
5745
  }
5726
5746
  });
@@ -5761,7 +5781,7 @@ function DepositFlow({
5761
5781
  }
5762
5782
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5763
5783
  if (effectiveStep.type === "select-asset") {
5764
- _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
5784
+ _optionalChain([onEventRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
5765
5785
  type: "deposit_modal_connected_wallet_select_source_open",
5766
5786
  total_balance_in_external_wallet: totalBalanceUsd,
5767
5787
  pred_balance: totalBalanceUsd
@@ -5769,7 +5789,7 @@ function DepositFlow({
5769
5789
  } else if (effectiveStep.type === "deposit-address") {
5770
5790
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5771
5791
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5772
- _optionalChain([onEventRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
5792
+ _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
5773
5793
  type: "deposit_modal_transfer_crypto_open",
5774
5794
  default_chain: chainName,
5775
5795
  default_token: tokenSymbol,
@@ -5777,7 +5797,7 @@ function DepositFlow({
5777
5797
  })]);
5778
5798
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5779
5799
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5780
- _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5800
+ _optionalChain([onEventRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5781
5801
  type: "deposit_modal_connected_wallet_enter_value_open",
5782
5802
  send_token: stepSendToken,
5783
5803
  receive_token: receiveSymbol,
@@ -5810,7 +5830,7 @@ function DepositFlow({
5810
5830
  targetToken
5811
5831
  ]);
5812
5832
  _react.useEffect.call(void 0, () => {
5813
- _optionalChain([onLifecycleRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5833
+ _optionalChain([onLifecycleRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5814
5834
  type: "balance-changed",
5815
5835
  totalUsd: totalBalanceUsd
5816
5836
  })]);
@@ -5826,7 +5846,7 @@ function DepositFlow({
5826
5846
  const handleConfirmWallet = _react.useCallback.call(void 0,
5827
5847
  (walletId) => {
5828
5848
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5829
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _187 => _187.kind]) === "solana" ? "solana-wallet" : "wallet";
5849
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _186 => _186.kind]) === "solana" ? "solana-wallet" : "wallet";
5830
5850
  storeApi.dispatch({
5831
5851
  type: "connect/wallet-confirmed",
5832
5852
  walletId,
@@ -5836,7 +5856,7 @@ function DepositFlow({
5836
5856
  [walletOptions, enableSolana, storeApi]
5837
5857
  );
5838
5858
  const isSolanaWalletConnected = Boolean(
5839
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isSolana])
5859
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _187 => _187.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isSolana])
5840
5860
  );
5841
5861
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5842
5862
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -5853,7 +5873,7 @@ function DepositFlow({
5853
5873
  const owner = dappImportOwner;
5854
5874
  if (owner) {
5855
5875
  const wallet = walletOptions.find(
5856
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === owner.toLowerCase()
5876
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _189 => _189.toLowerCase, 'call', _190 => _190()]) === owner.toLowerCase()
5857
5877
  );
5858
5878
  if (wallet) {
5859
5879
  storeApi.dispatch({
@@ -5894,7 +5914,7 @@ function DepositFlow({
5894
5914
  eoa: dappImportOwner,
5895
5915
  getPublicClient: (chainId) => {
5896
5916
  try {
5897
- return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
5917
+ return _chunkPPFG3VBDcjs.getPublicClient.call(void 0, chainId, rpcUrls);
5898
5918
  } catch (e28) {
5899
5919
  return null;
5900
5920
  }
@@ -5922,7 +5942,8 @@ function DepositFlow({
5922
5942
  dappImportOwner,
5923
5943
  enabledDappImportProviders,
5924
5944
  dappImportAttemptNonce,
5925
- storeApi
5945
+ storeApi,
5946
+ rpcUrls
5926
5947
  ]);
5927
5948
  _react.useLayoutEffect.call(void 0, () => {
5928
5949
  if (!initialDappImportProvider) return;
@@ -5970,7 +5991,7 @@ function DepositFlow({
5970
5991
  }, [activeDappImportProviderId, enabledDappImportProviders]);
5971
5992
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
5972
5993
  if (!activeDappImportProviderId) return null;
5973
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _192 => _192.toLowerCase, 'call', _193 => _193()]) !== dappImportOwner.toLowerCase()) {
5994
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) !== dappImportOwner.toLowerCase()) {
5974
5995
  return null;
5975
5996
  }
5976
5997
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6011,7 +6032,7 @@ function DepositFlow({
6011
6032
  setup: setupSlice
6012
6033
  });
6013
6034
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6014
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === dappImportOwner.toLowerCase()
6035
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _193 => _193.toLowerCase, 'call', _194 => _194()]) === dappImportOwner.toLowerCase()
6015
6036
  ), () => ( null)) : null;
6016
6037
  const outcome = resolveBootOutcome({
6017
6038
  status,
@@ -6053,7 +6074,7 @@ function DepositFlow({
6053
6074
  if (dappImportOwner) {
6054
6075
  const plan = bootRetryPlan({
6055
6076
  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
6077
+ 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
6078
  });
6058
6079
  if (plan.restartSetup) {
6059
6080
  storeApi.dispatch({
@@ -6094,7 +6115,7 @@ function DepositFlow({
6094
6115
  [storeApi]
6095
6116
  );
6096
6117
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6097
- _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
6118
+ _optionalChain([onLifecycleRef, 'access', _199 => _199.current, 'optionalCall', _200 => _200({
6098
6119
  type: "smart-account-changed",
6099
6120
  evm: null,
6100
6121
  solana: null
@@ -6141,13 +6162,13 @@ function DepositFlow({
6141
6162
  };
6142
6163
  push(dappAddress);
6143
6164
  push(connectedWalletAddress);
6144
- push(_optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]));
6165
+ push(_optionalChain([reownWallet, 'optionalAccess', _201 => _201.address]));
6145
6166
  push(dappImportOwner);
6146
6167
  return owners;
6147
6168
  }, [
6148
6169
  dappAddress,
6149
6170
  connectedWalletAddress,
6150
- _optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]),
6171
+ _optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]),
6151
6172
  dappImportOwner
6152
6173
  ]);
6153
6174
  _react.useEffect.call(void 0, () => {
@@ -6161,7 +6182,7 @@ function DepositFlow({
6161
6182
  try {
6162
6183
  sessionOwner = await resolveSessionOwner(owner);
6163
6184
  } catch (error) {
6164
- _chunkEDUWRMQIcjs.debugError.call(void 0,
6185
+ _chunkPPFG3VBDcjs.debugError.call(void 0,
6165
6186
  debug,
6166
6187
  "deposit-flow",
6167
6188
  "session-owner:resolve-failed",
@@ -6252,7 +6273,7 @@ function DepositFlow({
6252
6273
  sourceChain: data.sourceChain,
6253
6274
  amount: data.amount
6254
6275
  });
6255
- _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({ type: "submitted", ...data })]);
6276
+ _optionalChain([onLifecycleRef, 'access', _203 => _203.current, 'optionalCall', _204 => _204({ type: "submitted", ...data })]);
6256
6277
  },
6257
6278
  [logFlow, onLifecycleRef]
6258
6279
  );
@@ -6312,7 +6333,7 @@ function DepositFlow({
6312
6333
  sourceDecimals: tokenAtSubmit.decimals,
6313
6334
  inputAmountUsd: amountUsd
6314
6335
  });
6315
- _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({
6336
+ _optionalChain([onLifecycleRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({
6316
6337
  type: "submitted",
6317
6338
  txHash,
6318
6339
  sourceChain: "solana",
@@ -6325,7 +6346,7 @@ function DepositFlow({
6325
6346
  );
6326
6347
  const handleAssetContinue = _react.useCallback.call(void 0,
6327
6348
  (asset) => {
6328
- _optionalChain([onEventRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6349
+ _optionalChain([onEventRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
6329
6350
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6330
6351
  total_balance_in_external_wallet: totalBalanceUsd,
6331
6352
  pred_balance: totalBalanceUsd,
@@ -6379,8 +6400,8 @@ function DepositFlow({
6379
6400
  sourceChain: chainId,
6380
6401
  sourceToken: token,
6381
6402
  amount,
6382
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _210 => _210.symbol]),
6383
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _211 => _211.decimals]),
6403
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _209 => _209.symbol]),
6404
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _210 => _210.decimals]),
6384
6405
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6385
6406
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6386
6407
  });
@@ -6394,6 +6415,14 @@ function DepositFlow({
6394
6415
  orderCrypto: info.orderCrypto
6395
6416
  });
6396
6417
  const amount = _nullishCoalesce(info.amount, () => ( "0"));
6418
+ const stateAtComplete = storeApi.getState();
6419
+ const swappedContext = stateAtComplete.flow.mode === "exchange-connect" ? {
6420
+ variant: "connect",
6421
+ method: stateAtComplete.exchange.selectedConnection
6422
+ } : stateAtComplete.flow.mode === "fiat-onramp" ? {
6423
+ variant: "fiat",
6424
+ method: stateAtComplete.fiat.selectedMethod
6425
+ } : void 0;
6397
6426
  storeApi.dispatch({
6398
6427
  type: "deposit/submitted",
6399
6428
  txHash: info.txHash,
@@ -6401,9 +6430,10 @@ function DepositFlow({
6401
6430
  sourceToken: SWAPPED_SOURCE_TOKEN,
6402
6431
  amount,
6403
6432
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6404
- sourceDecimals: SWAPPED_SOURCE_DECIMALS
6433
+ sourceDecimals: SWAPPED_SOURCE_DECIMALS,
6434
+ swappedContext
6405
6435
  });
6406
- _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6436
+ _optionalChain([onLifecycleRef, 'access', _211 => _211.current, 'optionalCall', _212 => _212({
6407
6437
  type: "submitted",
6408
6438
  txHash: info.txHash,
6409
6439
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6416,12 +6446,12 @@ function DepositFlow({
6416
6446
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6417
6447
  (txHash, sourceChain, amount) => {
6418
6448
  const depositAtSubmit = storeApi.getState().deposit;
6419
- _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
6449
+ _optionalChain([onLifecycleRef, 'access', _213 => _213.current, 'optionalCall', _214 => _214({
6420
6450
  type: "submitted",
6421
6451
  txHash,
6422
6452
  sourceChain,
6423
6453
  amount,
6424
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _216 => _216.selectedAsset, 'optionalAccess', _217 => _217.decimals]),
6454
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _215 => _215.selectedAsset, 'optionalAccess', _216 => _216.decimals]),
6425
6455
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6426
6456
  })]);
6427
6457
  },
@@ -6430,7 +6460,7 @@ function DepositFlow({
6430
6460
  const handleDepositComplete = _react.useCallback.call(void 0,
6431
6461
  (txHash, destinationTxHash, context) => {
6432
6462
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6433
- _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6463
+ _optionalChain([onLifecycleRef, 'access', _217 => _217.current, 'optionalCall', _218 => _218({
6434
6464
  type: "complete",
6435
6465
  txHash,
6436
6466
  destinationTxHash,
@@ -6442,14 +6472,14 @@ function DepositFlow({
6442
6472
  const handleDepositFailed = _react.useCallback.call(void 0,
6443
6473
  (txHash, error) => {
6444
6474
  logFlowError("deposit:failed", error, { txHash });
6445
- _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({ type: "failed", txHash, error })]);
6475
+ _optionalChain([onLifecycleRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({ type: "failed", txHash, error })]);
6446
6476
  },
6447
6477
  [logFlowError, onLifecycleRef]
6448
6478
  );
6449
6479
  const handleError = _react.useCallback.call(void 0,
6450
6480
  (message, code) => {
6451
6481
  logFlowError("flow:error", message, { code });
6452
- _optionalChain([onErrorRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ message, code })]);
6482
+ _optionalChain([onErrorRef, 'access', _221 => _221.current, 'optionalCall', _222 => _222({ message, code })]);
6453
6483
  },
6454
6484
  [logFlowError, onErrorRef]
6455
6485
  );
@@ -6520,7 +6550,7 @@ function DepositFlow({
6520
6550
  );
6521
6551
  if (showConnectStep) {
6522
6552
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6523
- _chunkEDUWRMQIcjs.ConnectStep,
6553
+ _chunkPPFG3VBDcjs.ConnectStep,
6524
6554
  {
6525
6555
  walletRows,
6526
6556
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6552,7 +6582,7 @@ function DepositFlow({
6552
6582
  },
6553
6583
  dappImports: connectStepDappImports,
6554
6584
  onSelectDappImport: (providerId) => {
6555
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6585
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _223 => _223.toLowerCase, 'call', _224 => _224()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6556
6586
  if (availabilityEntry === "error") {
6557
6587
  storeApi.dispatch({
6558
6588
  type: "dapp-import/availability-retry-requested"
@@ -6598,7 +6628,7 @@ function DepositFlow({
6598
6628
  allowedRoutes,
6599
6629
  targetChain,
6600
6630
  targetToken,
6601
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _226 => _226.length])),
6631
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _225 => _225.length])),
6602
6632
  uiConfig,
6603
6633
  onDepositSubmitted: handleDepositAddressSubmitted,
6604
6634
  onDepositComplete: handleDepositComplete,
@@ -6606,7 +6636,7 @@ function DepositFlow({
6606
6636
  onCopyAddress: () => {
6607
6637
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6608
6638
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6609
- _optionalChain([onEvent, 'optionalCall', _227 => _227({
6639
+ _optionalChain([onEvent, 'optionalCall', _226 => _226({
6610
6640
  type: "deposit_modal_transfer_crypto_cta_click",
6611
6641
  default_chain: chainName,
6612
6642
  default_token: tokenSymbol,
@@ -6650,7 +6680,7 @@ function DepositFlow({
6650
6680
  }
6651
6681
  ),
6652
6682
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6653
- _chunkEDUWRMQIcjs.ProcessingStep,
6683
+ _chunkPPFG3VBDcjs.ProcessingStep,
6654
6684
  {
6655
6685
  smartAccount: step.smartAccount,
6656
6686
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6663,7 +6693,8 @@ function DepositFlow({
6663
6693
  sourceSymbol: step.sourceSymbol,
6664
6694
  sourceDecimals: step.sourceDecimals,
6665
6695
  amountUsd: step.inputAmountUsd,
6666
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6696
+ swappedContext: step.swappedContext,
6697
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _227 => _227.length])),
6667
6698
  service,
6668
6699
  directTransfer: step.directTransfer,
6669
6700
  isSwappedOrder: true,
@@ -6717,7 +6748,7 @@ function DepositFlow({
6717
6748
  }
6718
6749
  ),
6719
6750
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6720
- _chunkEDUWRMQIcjs.ProcessingStep,
6751
+ _chunkPPFG3VBDcjs.ProcessingStep,
6721
6752
  {
6722
6753
  smartAccount: step.smartAccount,
6723
6754
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6730,7 +6761,8 @@ function DepositFlow({
6730
6761
  sourceSymbol: step.sourceSymbol,
6731
6762
  sourceDecimals: step.sourceDecimals,
6732
6763
  amountUsd: step.inputAmountUsd,
6733
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6764
+ swappedContext: step.swappedContext,
6765
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6734
6766
  service,
6735
6767
  directTransfer: step.directTransfer,
6736
6768
  isSwappedOrder: true,
@@ -6748,8 +6780,8 @@ function DepositFlow({
6748
6780
  }
6749
6781
  if (isSolanaWalletMode) {
6750
6782
  if (!dappAddress) return null;
6751
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
6752
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
6783
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _229 => _229.solanaAddress]);
6784
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaProvider]);
6753
6785
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6754
6786
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6755
6787
  AccountPreparingSkeleton,
@@ -6806,7 +6838,7 @@ function DepositFlow({
6806
6838
  targetToken,
6807
6839
  service,
6808
6840
  solanaProvider,
6809
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
6841
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaConnection]),
6810
6842
  uiConfig,
6811
6843
  onConfirm: handleSolanaConfirmed,
6812
6844
  onError: handleError,
@@ -6847,7 +6879,7 @@ function DepositFlow({
6847
6879
  ) })
6848
6880
  ] }) : null,
6849
6881
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6850
- _chunkEDUWRMQIcjs.ProcessingStep,
6882
+ _chunkPPFG3VBDcjs.ProcessingStep,
6851
6883
  {
6852
6884
  smartAccount: effectiveStep.smartAccount,
6853
6885
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6860,7 +6892,7 @@ function DepositFlow({
6860
6892
  sourceSymbol: effectiveStep.sourceSymbol,
6861
6893
  sourceDecimals: effectiveStep.sourceDecimals,
6862
6894
  amountUsd: effectiveStep.inputAmountUsd,
6863
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
6895
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _232 => _232.length])),
6864
6896
  service,
6865
6897
  directTransfer: effectiveStep.directTransfer,
6866
6898
  onClose,
@@ -6883,7 +6915,7 @@ function DepositFlow({
6883
6915
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6884
6916
  DappImportAssetSelectSkeleton,
6885
6917
  {
6886
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _234 => _234.sourceLabel]), () => ( "")),
6918
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _233 => _233.sourceLabel]), () => ( "")),
6887
6919
  error: dappImportBootError,
6888
6920
  onRetry: handleBootRetry
6889
6921
  }
@@ -6891,16 +6923,16 @@ function DepositFlow({
6891
6923
  }
6892
6924
  );
6893
6925
  }
6894
- if (!_optionalChain([signerContext, 'optionalAccess', _235 => _235.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _236 => _236.publicClient])) {
6926
+ if (!_optionalChain([signerContext, 'optionalAccess', _234 => _234.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _235 => _235.publicClient])) {
6895
6927
  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
6928
  }
6897
6929
  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));
6930
+ 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
6931
  const getReadClientForChain = (chainId) => {
6900
- if (_optionalChain([signerContext, 'access', _243 => _243.publicClient, 'access', _244 => _244.chain, 'optionalAccess', _245 => _245.id]) === chainId) {
6932
+ if (_optionalChain([signerContext, 'access', _242 => _242.publicClient, 'access', _243 => _243.chain, 'optionalAccess', _244 => _244.id]) === chainId) {
6901
6933
  return signerContext.publicClient;
6902
6934
  }
6903
- return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
6935
+ return _chunkPPFG3VBDcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6904
6936
  };
6905
6937
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6906
6938
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6930,7 +6962,7 @@ function DepositFlow({
6930
6962
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6931
6963
  DappImportAssetSelectStep,
6932
6964
  {
6933
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _246 => _246.assets, 'access', _247 => _247[0], 'optionalAccess', _248 => _248.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6965
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _245 => _245.assets, 'access', _246 => _246[0], 'optionalAccess', _247 => _247.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6934
6966
  assets: activeDappImportAvailability.assets,
6935
6967
  onSelect: handleDappImportAssetSelected
6936
6968
  }
@@ -6957,7 +6989,7 @@ function DepositFlow({
6957
6989
  onContinue: handleAmountContinue,
6958
6990
  onCtaClick: (ctaName) => {
6959
6991
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6960
- _optionalChain([onEvent, 'optionalCall', _249 => _249({
6992
+ _optionalChain([onEvent, 'optionalCall', _248 => _248({
6961
6993
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
6962
6994
  send_token: effectiveStep.asset.symbol,
6963
6995
  receive_token: receiveSymbol,
@@ -7009,7 +7041,7 @@ function DepositFlow({
7009
7041
  }
7010
7042
  ),
7011
7043
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7012
- _chunkEDUWRMQIcjs.ProcessingStep,
7044
+ _chunkPPFG3VBDcjs.ProcessingStep,
7013
7045
  {
7014
7046
  smartAccount: effectiveStep.smartAccount,
7015
7047
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7022,7 +7054,7 @@ function DepositFlow({
7022
7054
  sourceSymbol: effectiveStep.sourceSymbol,
7023
7055
  sourceDecimals: effectiveStep.sourceDecimals,
7024
7056
  amountUsd: effectiveStep.inputAmountUsd,
7025
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _250 => _250.length])),
7057
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _249 => _249.length])),
7026
7058
  service,
7027
7059
  directTransfer: effectiveStep.directTransfer,
7028
7060
  uiConfig,
@@ -7161,7 +7193,7 @@ function DepositHistoryPanel({
7161
7193
  );
7162
7194
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7163
7195
  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))
7196
+ deposits.map((d) => _optionalChain([d, 'access', _250 => _250.sourceTxHash, 'optionalAccess', _251 => _251.toLowerCase, 'call', _252 => _252()])).filter((h) => Boolean(h))
7165
7197
  );
7166
7198
  return deposits.filter(
7167
7199
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7183,7 +7215,7 @@ function DepositHistoryPanel({
7183
7215
  className: "rs-modal-header-back",
7184
7216
  "aria-label": "Back",
7185
7217
  onClick: onClose,
7186
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7218
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronLeftIcon, {})
7187
7219
  }
7188
7220
  ) }),
7189
7221
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7193,29 +7225,29 @@ function DepositHistoryPanel({
7193
7225
  className: "rs-modal-close",
7194
7226
  "aria-label": "Close",
7195
7227
  onClick: onCloseModal,
7196
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7228
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CloseIcon, {})
7197
7229
  }
7198
7230
  ) })
7199
7231
  ] }),
7200
7232
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7201
7233
  /* @__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" }),
7234
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.HistoryIcon, {}), title: "History" }),
7203
7235
  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, {}) }),
7236
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.HistoryIcon, {}) }),
7205
7237
  /* @__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" }),
7238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, { className: "rs-spinner--sm" }),
7207
7239
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7208
7240
  ] })
7209
7241
  ] }),
7210
7242
  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, {}) }),
7243
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.AlertTriangleIcon, {}) }),
7212
7244
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7213
7245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7214
7246
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7215
7247
  ] })
7216
7248
  ] }),
7217
7249
  !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, {}) }),
7250
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.HistoryIcon, {}) }),
7219
7251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7220
7252
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7221
7253
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7235,7 +7267,7 @@ function DepositHistoryPanel({
7235
7267
  )
7236
7268
  ] })
7237
7269
  ] }),
7238
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
7270
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
7239
7271
  ] })
7240
7272
  ]
7241
7273
  }
@@ -7310,7 +7342,7 @@ function HistoryCard({ deposit }) {
7310
7342
  onClick: (e) => e.stopPropagation(),
7311
7343
  children: [
7312
7344
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7313
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ArrowUpRightIcon, {})
7345
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ArrowUpRightIcon, {})
7314
7346
  ]
7315
7347
  }
7316
7348
  )
@@ -7325,7 +7357,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7325
7357
  // src/DepositModal.tsx
7326
7358
 
7327
7359
  var ReownDepositInner = _react.lazy.call(void 0,
7328
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-MCDIOJLT.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7360
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-GHEUERDG.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7329
7361
  );
7330
7362
  function sortByCreatedAtDesc(items) {
7331
7363
  return [...items].sort((a, b) => {
@@ -7375,7 +7407,7 @@ function DepositModalInner({
7375
7407
  recipient,
7376
7408
  appBalanceUsd,
7377
7409
  backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
7378
- solanaRpcUrl,
7410
+ rpcUrls,
7379
7411
  signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
7380
7412
  sessionChainIds,
7381
7413
  forceRegister = false,
@@ -7404,12 +7436,12 @@ function DepositModalInner({
7404
7436
  debug
7405
7437
  }) {
7406
7438
  const modalRef = _react.useRef.call(void 0, null);
7407
- const onReadyRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onReady);
7439
+ const onReadyRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onReady);
7408
7440
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7409
7441
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7410
7442
  void 0
7411
7443
  );
7412
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _254 => _254.showHistoryButton]), () => ( false));
7444
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _253 => _253.showHistoryButton]), () => ( false));
7413
7445
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7414
7446
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7415
7447
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7423,19 +7455,19 @@ function DepositModalInner({
7423
7455
  const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7424
7456
  const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7425
7457
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7426
- const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
7458
+ const onErrorRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onError);
7427
7459
  _react.useEffect.call(void 0, () => {
7428
7460
  if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7429
7461
  setRecipientIsContract(false);
7430
7462
  return;
7431
7463
  }
7432
7464
  let cancelled = false;
7433
- _chunkEDUWRMQIcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7465
+ _chunkPPFG3VBDcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7434
7466
  if (cancelled) return;
7435
7467
  const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7436
7468
  setRecipientIsContract(isContract);
7437
7469
  if (isContract) {
7438
- _optionalChain([onErrorRef, 'access', _255 => _255.current, 'optionalCall', _256 => _256({
7470
+ _optionalChain([onErrorRef, 'access', _254 => _254.current, 'optionalCall', _255 => _255({
7439
7471
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7440
7472
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7441
7473
  })]);
@@ -7446,9 +7478,9 @@ function DepositModalInner({
7446
7478
  return () => {
7447
7479
  cancelled = true;
7448
7480
  };
7449
- }, [targetChain, recipient, onErrorRef]);
7481
+ }, [targetChain, recipient, onErrorRef, rpcUrls]);
7450
7482
  const service = _react.useMemo.call(void 0,
7451
- () => _chunkEDUWRMQIcjs.createDepositService.call(void 0, backendUrl, {
7483
+ () => _chunkPPFG3VBDcjs.createDepositService.call(void 0, backendUrl, {
7452
7484
  debug,
7453
7485
  debugScope: "service:deposit"
7454
7486
  }),
@@ -7464,15 +7496,12 @@ function DepositModalInner({
7464
7496
  }, [store, targetChain, targetToken]);
7465
7497
  _react.useEffect.call(void 0, () => {
7466
7498
  if (isOpen && modalRef.current) {
7467
- _chunkEDUWRMQIcjs.applyTheme.call(void 0, modalRef.current, theme);
7499
+ _chunkPPFG3VBDcjs.applyTheme.call(void 0, modalRef.current, theme);
7468
7500
  }
7469
7501
  }, [isOpen, theme]);
7470
- _react.useEffect.call(void 0, () => {
7471
- configureSolanaRpcUrl(solanaRpcUrl);
7472
- }, [solanaRpcUrl]);
7473
7502
  _react.useEffect.call(void 0, () => {
7474
7503
  if (isOpen) {
7475
- _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
7504
+ _optionalChain([onReadyRef, 'access', _256 => _256.current, 'optionalCall', _257 => _257()]);
7476
7505
  }
7477
7506
  }, [isOpen, onReadyRef]);
7478
7507
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7548,10 +7577,10 @@ function DepositModalInner({
7548
7577
  fetchHistory("initial");
7549
7578
  }
7550
7579
  }, [historyOpen, fetchHistory]);
7551
- const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
7580
+ const onLifecycleRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onLifecycle);
7552
7581
  const handleLifecycle = _react.useCallback.call(void 0,
7553
7582
  (event) => {
7554
- _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
7583
+ _optionalChain([onLifecycleRef, 'access', _258 => _258.current, 'optionalCall', _259 => _259(event)]);
7555
7584
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7556
7585
  historyStaleRef.current = true;
7557
7586
  }
@@ -7577,10 +7606,10 @@ function DepositModalInner({
7577
7606
  store.dispatch({ type: "flow/reset" });
7578
7607
  }
7579
7608
  }, [isOpen, store]);
7580
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
7609
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _260 => _260.showBackButton]), () => ( true));
7581
7610
  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,
7611
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7612
+ _chunkPPFG3VBDcjs.Modal,
7584
7613
  {
7585
7614
  isOpen,
7586
7615
  onClose,
@@ -7596,7 +7625,7 @@ function DepositModalInner({
7596
7625
  className: "rs-modal-header-back",
7597
7626
  "aria-label": "Go back",
7598
7627
  onClick: backHandler,
7599
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7628
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronLeftIcon, {})
7600
7629
  }
7601
7630
  ) }),
7602
7631
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7608,7 +7637,7 @@ function DepositModalInner({
7608
7637
  "aria-label": "Deposit history",
7609
7638
  onClick: handleHistoryOpen,
7610
7639
  disabled: !recipient,
7611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {})
7640
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.HistoryIcon, {})
7612
7641
  }
7613
7642
  ),
7614
7643
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7618,12 +7647,12 @@ function DepositModalInner({
7618
7647
  onClick: onClose,
7619
7648
  className: "rs-modal-close",
7620
7649
  "aria-label": "Close",
7621
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7650
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CloseIcon, {})
7622
7651
  }
7623
7652
  )
7624
7653
  ] })
7625
7654
  ] }),
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,
7655
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.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
7656
  DepositFlow,
7628
7657
  {
7629
7658
  dappWalletClient,
@@ -7680,7 +7709,7 @@ function DepositModalInner({
7680
7709
  )
7681
7710
  ] })
7682
7711
  }
7683
- ) });
7712
+ ) }) });
7684
7713
  }
7685
7714
 
7686
7715