@rhinestone/deposit-modal 0.1.62 → 0.1.64

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.
@@ -26,7 +26,7 @@
26
26
 
27
27
 
28
28
 
29
- var _chunkMVFMDKAScjs = require('./chunk-MVFMDKAS.cjs');
29
+ var _chunk5SR5N75Icjs = require('./chunk-5SR5N75I.cjs');
30
30
 
31
31
 
32
32
 
@@ -62,15 +62,15 @@ var _react = require('react');
62
62
 
63
63
  var _jsxruntime = require('react/jsx-runtime');
64
64
  async function resolveSessionOwner(eoaAddress) {
65
- const localOwner = _chunkMVFMDKAScjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
65
+ const localOwner = _chunk5SR5N75Icjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
66
66
  if (localOwner) {
67
67
  return {
68
- account: _chunkMVFMDKAScjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
68
+ account: _chunk5SR5N75Icjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
69
69
  address: localOwner.address
70
70
  };
71
71
  }
72
- const created = _chunkMVFMDKAScjs.createSessionOwnerKey.call(void 0, );
73
- _chunkMVFMDKAScjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
72
+ const created = _chunk5SR5N75Icjs.createSessionOwnerKey.call(void 0, );
73
+ _chunk5SR5N75Icjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
74
74
  return {
75
75
  account: created.account,
76
76
  address: created.address
@@ -107,7 +107,7 @@ function SetupStep({
107
107
  const setup = await service.setupAccount({
108
108
  ownerAddress: address,
109
109
  sessionOwnerAddress: sessionOwner.address,
110
- targetChain: _chunkMVFMDKAScjs.toEvmCaip2.call(void 0, targetChain),
110
+ targetChain: _chunk5SR5N75Icjs.toEvmCaip2.call(void 0, targetChain),
111
111
  targetToken,
112
112
  signerAddress,
113
113
  sessionChainIds,
@@ -137,7 +137,7 @@ function SetupStep({
137
137
  primaryType: typedData.primaryType,
138
138
  message: typedData.message
139
139
  });
140
- const sessionDetails = _chunkMVFMDKAScjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
140
+ const sessionDetails = _chunk5SR5N75Icjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
141
141
  setState({ type: "registering" });
142
142
  const registerResult = await service.registerAccount({
143
143
  address: smartAccount,
@@ -149,7 +149,7 @@ function SetupStep({
149
149
  eoaAddress: address,
150
150
  sessionOwner: sessionOwner.address,
151
151
  target: {
152
- chain: _chunkMVFMDKAScjs.toEvmCaip2.call(void 0, targetChain),
152
+ chain: _chunk5SR5N75Icjs.toEvmCaip2.call(void 0, targetChain),
153
153
  token: targetToken,
154
154
  ...recipient && { recipient },
155
155
  ..._optionalChain([postBridgeActions, 'optionalAccess', _2 => _2.length]) && { postBridgeActions }
@@ -214,7 +214,7 @@ function SetupStep({
214
214
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
215
215
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
216
216
  isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
217
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
217
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
218
218
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
219
219
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
220
220
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
@@ -251,7 +251,7 @@ function SetupStep({
251
251
  ] })
252
252
  ] })
253
253
  ] }),
254
- isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
254
+ isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
255
255
  ] });
256
256
  }
257
257
 
@@ -276,7 +276,7 @@ function AssetSelectStep({
276
276
  const [error, setError] = _react.useState.call(void 0, null);
277
277
  const defaultAssetId = _react.useMemo.call(void 0, () => {
278
278
  if (!defaultSourceChain || !defaultSourceToken) return null;
279
- return _chunkMVFMDKAScjs.getAssetId.call(void 0, {
279
+ return _chunk5SR5N75Icjs.getAssetId.call(void 0, {
280
280
  chainId: defaultSourceChain,
281
281
  token: defaultSourceToken
282
282
  });
@@ -293,7 +293,7 @@ function AssetSelectStep({
293
293
  try {
294
294
  const portfolio = await service.fetchPortfolio(address);
295
295
  if (!active) return;
296
- const portfolioAssets = _chunkMVFMDKAScjs.portfolioToAssets.call(void 0, portfolio.tokens);
296
+ const portfolioAssets = _chunk5SR5N75Icjs.portfolioToAssets.call(void 0, portfolio.tokens);
297
297
  setAssets(portfolioAssets);
298
298
  const hasNative = portfolioAssets.some(
299
299
  (asset) => asset.token.toLowerCase() === _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
@@ -374,7 +374,7 @@ function AssetSelectStep({
374
374
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
375
375
  const numeric = Number(raw);
376
376
  if (!Number.isFinite(numeric)) return raw;
377
- return _chunkMVFMDKAScjs.tokenFormatter.format(numeric);
377
+ return _chunk5SR5N75Icjs.tokenFormatter.format(numeric);
378
378
  } catch (e3) {
379
379
  return asset.balance;
380
380
  }
@@ -388,7 +388,7 @@ function AssetSelectStep({
388
388
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
389
389
  children: [
390
390
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.Spinner, { className: "rs-text-tertiary" }),
391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.Spinner, { className: "rs-text-tertiary" }),
392
392
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
393
393
  ] }),
394
394
  error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
@@ -478,7 +478,7 @@ function AssetSelectStep({
478
478
  ] })
479
479
  ] })
480
480
  ] }),
481
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkMVFMDKAScjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
481
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk5SR5N75Icjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
482
482
  ]
483
483
  },
484
484
  asset.id
@@ -488,7 +488,7 @@ function AssetSelectStep({
488
488
  }
489
489
  ),
490
490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
491
- _chunkMVFMDKAScjs.Button,
491
+ _chunk5SR5N75Icjs.Button,
492
492
  {
493
493
  onClick: () => selectedAsset && onContinue(selectedAsset),
494
494
  disabled: !selectedAsset,
@@ -496,7 +496,7 @@ function AssetSelectStep({
496
496
  children: "Continue"
497
497
  }
498
498
  ) }),
499
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
500
500
  ] });
501
501
  }
502
502
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -504,7 +504,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
504
504
  const connectedChainId = _optionalChain([publicClient, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.id]);
505
505
  if (!connectedChainId) return [];
506
506
  if (!_chunkR6U6BHCVcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
507
- const id = _chunkMVFMDKAScjs.getAssetId.call(void 0, {
507
+ const id = _chunk5SR5N75Icjs.getAssetId.call(void 0, {
508
508
  chainId: connectedChainId,
509
509
  token: _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
510
510
  });
@@ -591,7 +591,7 @@ function AmountStep({
591
591
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
592
592
  if (!balanceTarget || !publicClient) return;
593
593
  try {
594
- const bal = _chunkMVFMDKAScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
594
+ const bal = _chunk5SR5N75Icjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
595
595
  address: asset.token,
596
596
  abi: _viem.erc20Abi,
597
597
  functionName: "balanceOf",
@@ -617,7 +617,7 @@ function AmountStep({
617
617
  setIsSwitching(true);
618
618
  switchChain(asset.chainId).catch((err) => {
619
619
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
620
- setError(_chunkMVFMDKAScjs.formatUserError.call(void 0, raw));
620
+ setError(_chunk5SR5N75Icjs.formatUserError.call(void 0, raw));
621
621
  }).finally(() => {
622
622
  setIsSwitching(false);
623
623
  });
@@ -653,7 +653,7 @@ function AmountStep({
653
653
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
654
654
  const numeric = Number(raw);
655
655
  if (!Number.isFinite(numeric)) return raw;
656
- return _chunkMVFMDKAScjs.tokenFormatter.format(numeric);
656
+ return _chunk5SR5N75Icjs.tokenFormatter.format(numeric);
657
657
  } catch (e8) {
658
658
  return "...";
659
659
  }
@@ -697,7 +697,7 @@ function AmountStep({
697
697
  const usdValue = numericAmount;
698
698
  if (_optionalChain([uiConfig, 'optionalAccess', _17 => _17.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
699
699
  setError(
700
- `Maximum deposit is ${_chunkMVFMDKAScjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
700
+ `Maximum deposit is ${_chunk5SR5N75Icjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
701
701
  );
702
702
  return;
703
703
  }
@@ -752,7 +752,7 @@ function AmountStep({
752
752
  hasPricing && balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
753
753
  " ",
754
754
  "(",
755
- _chunkMVFMDKAScjs.currencyFormatter.format(balanceUsd),
755
+ _chunk5SR5N75Icjs.currencyFormatter.format(balanceUsd),
756
756
  ")"
757
757
  ] })
758
758
  ] }) })
@@ -889,7 +889,7 @@ function AmountStep({
889
889
  )
890
890
  ] }),
891
891
  _optionalChain([uiConfig, 'optionalAccess', _20 => _20.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
892
- _chunkMVFMDKAScjs.currencyFormatter.format(uiConfig.minDepositUsd),
892
+ _chunk5SR5N75Icjs.currencyFormatter.format(uiConfig.minDepositUsd),
893
893
  " minimum deposit"
894
894
  ] }),
895
895
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -915,7 +915,7 @@ function AmountStep({
915
915
  ] })
916
916
  ] }),
917
917
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
918
- _chunkMVFMDKAScjs.Button,
918
+ _chunk5SR5N75Icjs.Button,
919
919
  {
920
920
  onClick: handleContinue,
921
921
  fullWidth: true,
@@ -923,7 +923,7 @@ function AmountStep({
923
923
  children: _optionalChain([uiConfig, 'optionalAccess', _21 => _21.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
924
924
  }
925
925
  ) }),
926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
926
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
927
927
  ] });
928
928
  }
929
929
 
@@ -973,7 +973,7 @@ function ConfirmStep({
973
973
  setIsSwitching(true);
974
974
  switchChain(asset.chainId).catch((err) => {
975
975
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
976
- setError(_chunkMVFMDKAScjs.formatUserError.call(void 0, raw));
976
+ setError(_chunk5SR5N75Icjs.formatUserError.call(void 0, raw));
977
977
  }).finally(() => {
978
978
  setIsSwitching(false);
979
979
  });
@@ -1016,7 +1016,7 @@ function ConfirmStep({
1016
1016
  throw new Error("Wallet not properly connected");
1017
1017
  }
1018
1018
  const transferTo = sameRoute ? recipient : smartAccount;
1019
- const hash = _chunkMVFMDKAScjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1019
+ const hash = _chunk5SR5N75Icjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1020
1020
  account,
1021
1021
  chain,
1022
1022
  to: transferTo,
@@ -1033,7 +1033,7 @@ function ConfirmStep({
1033
1033
  onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
1034
1034
  } catch (err) {
1035
1035
  const raw = err instanceof Error ? err.message : "Transfer failed";
1036
- const message = _chunkMVFMDKAScjs.formatUserError.call(void 0, raw);
1036
+ const message = _chunk5SR5N75Icjs.formatUserError.call(void 0, raw);
1037
1037
  setError(message);
1038
1038
  _optionalChain([onError, 'optionalCall', _25 => _25(message, "TRANSFER_ERROR")]);
1039
1039
  } finally {
@@ -1162,7 +1162,7 @@ function ConfirmStep({
1162
1162
  ] })
1163
1163
  ] }),
1164
1164
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1165
- _chunkMVFMDKAScjs.Button,
1165
+ _chunk5SR5N75Icjs.Button,
1166
1166
  {
1167
1167
  onClick: handleConfirm,
1168
1168
  loading: isSubmitting,
@@ -1171,7 +1171,7 @@ function ConfirmStep({
1171
1171
  children: "Confirm Order"
1172
1172
  }
1173
1173
  ) }),
1174
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
1174
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
1175
1175
  ] });
1176
1176
  }
1177
1177
 
@@ -1583,10 +1583,10 @@ function DepositAddressStep({
1583
1583
  const status = await service.fetchLatestStatus(smartAccount);
1584
1584
  if (cancelled || depositHandledRef.current) return;
1585
1585
  const event = status.lastEvent;
1586
- const eventTxHash = _chunkMVFMDKAScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkMVFMDKAScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1586
+ const eventTxHash = _chunk5SR5N75Icjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk5SR5N75Icjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1587
1587
  if (baselineTxHash === void 0) {
1588
1588
  baselineTxHash = eventTxHash;
1589
- } else if (eventTxHash && (!baselineTxHash || !_chunkMVFMDKAScjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1589
+ } else if (eventTxHash && (!baselineTxHash || !_chunk5SR5N75Icjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1590
1590
  const details = getDepositEventDetails(event);
1591
1591
  const fallback = sourceSelectionRef.current;
1592
1592
  const chainId = _nullishCoalesce(details.chainId, () => ( fallback.chainId));
@@ -1809,7 +1809,7 @@ function DepositAddressStep({
1809
1809
  ] }),
1810
1810
  pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
1811
1811
  ] }) }),
1812
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
1812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
1813
1813
  ] });
1814
1814
  }
1815
1815
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -1840,7 +1840,7 @@ function SolanaTokenSelectStep({
1840
1840
  setError(null);
1841
1841
  const portfolioBySymbol = {};
1842
1842
  try {
1843
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1843
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1844
1844
  solanaAddress
1845
1845
  });
1846
1846
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -1863,12 +1863,12 @@ function SolanaTokenSelectStep({
1863
1863
  };
1864
1864
  }
1865
1865
  }
1866
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1866
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1867
1867
  symbols: Object.keys(portfolioBySymbol)
1868
1868
  });
1869
1869
  } catch (err) {
1870
1870
  if (!active) return;
1871
- _chunkMVFMDKAScjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1871
+ _chunk5SR5N75Icjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1872
1872
  solanaAddress
1873
1873
  });
1874
1874
  setError(
@@ -1922,7 +1922,7 @@ function SolanaTokenSelectStep({
1922
1922
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
1923
1923
  children: [
1924
1924
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
1925
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.Spinner, { className: "rs-text-tertiary" }),
1925
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.Spinner, { className: "rs-text-tertiary" }),
1926
1926
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
1927
1927
  ] }),
1928
1928
  !loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
@@ -1959,7 +1959,7 @@ function SolanaTokenSelectStep({
1959
1959
  try {
1960
1960
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
1961
1961
  const numeric = Number(raw);
1962
- formattedBalance = Number.isFinite(numeric) ? _chunkMVFMDKAScjs.tokenFormatter.format(numeric) : raw;
1962
+ formattedBalance = Number.isFinite(numeric) ? _chunk5SR5N75Icjs.tokenFormatter.format(numeric) : raw;
1963
1963
  } catch (e14) {
1964
1964
  formattedBalance = "...";
1965
1965
  }
@@ -2003,7 +2003,7 @@ function SolanaTokenSelectStep({
2003
2003
  ] })
2004
2004
  ] })
2005
2005
  ] }),
2006
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkMVFMDKAScjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2006
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk5SR5N75Icjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2007
2007
  ]
2008
2008
  },
2009
2009
  entry.token.symbol
@@ -2013,7 +2013,7 @@ function SolanaTokenSelectStep({
2013
2013
  }
2014
2014
  ),
2015
2015
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2016
- _chunkMVFMDKAScjs.Button,
2016
+ _chunk5SR5N75Icjs.Button,
2017
2017
  {
2018
2018
  onClick: () => selectedEntry && onContinue(
2019
2019
  selectedEntry.token,
@@ -2025,7 +2025,7 @@ function SolanaTokenSelectStep({
2025
2025
  children: "Continue"
2026
2026
  }
2027
2027
  ) }),
2028
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
2028
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
2029
2029
  ] });
2030
2030
  }
2031
2031
 
@@ -2073,7 +2073,7 @@ function SolanaAmountStep({
2073
2073
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
2074
2074
  const numeric = Number(raw);
2075
2075
  if (!Number.isFinite(numeric)) return raw;
2076
- return _chunkMVFMDKAScjs.tokenFormatter.format(numeric);
2076
+ return _chunk5SR5N75Icjs.tokenFormatter.format(numeric);
2077
2077
  } catch (e16) {
2078
2078
  return "...";
2079
2079
  }
@@ -2091,7 +2091,7 @@ function SolanaAmountStep({
2091
2091
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
2092
2092
  const formattedBalanceUsd = _react.useMemo.call(void 0, () => {
2093
2093
  if (computedBalanceUsd === null || computedBalanceUsd <= 0) return null;
2094
- return _chunkMVFMDKAScjs.currencyFormatter.format(computedBalanceUsd);
2094
+ return _chunk5SR5N75Icjs.currencyFormatter.format(computedBalanceUsd);
2095
2095
  }, [computedBalanceUsd]);
2096
2096
  const spendableBalance = _react.useMemo.call(void 0, () => {
2097
2097
  if (!isNativeSol(token)) return balance;
@@ -2116,7 +2116,7 @@ function SolanaAmountStep({
2116
2116
  const factor = 10 ** maxDecimals;
2117
2117
  const truncated = Math.floor(value * factor) / factor;
2118
2118
  const formatted = truncated.toFixed(maxDecimals).replace(/\.?0+$/, "");
2119
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2119
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2120
2120
  percentage,
2121
2121
  symbol: token.symbol,
2122
2122
  formatted
@@ -2130,7 +2130,7 @@ function SolanaAmountStep({
2130
2130
  const handleContinue = () => {
2131
2131
  const numericAmount = parseFloat(amount);
2132
2132
  if (isNaN(numericAmount) || numericAmount <= 0) {
2133
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2133
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2134
2134
  amount,
2135
2135
  reason: "nan-or-non-positive"
2136
2136
  });
@@ -2142,7 +2142,7 @@ function SolanaAmountStep({
2142
2142
  const usdValue = numericAmount;
2143
2143
  if (_optionalChain([uiConfig, 'optionalAccess', _48 => _48.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
2144
2144
  setError(
2145
- `Maximum deposit is ${_chunkMVFMDKAScjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2145
+ `Maximum deposit is ${_chunk5SR5N75Icjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2146
2146
  );
2147
2147
  return;
2148
2148
  }
@@ -2157,7 +2157,7 @@ function SolanaAmountStep({
2157
2157
  try {
2158
2158
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
2159
2159
  } catch (e20) {
2160
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2160
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2161
2161
  amount,
2162
2162
  sourceAmount: sourceAmountStr,
2163
2163
  reason: "parse-units-failed"
@@ -2167,7 +2167,7 @@ function SolanaAmountStep({
2167
2167
  }
2168
2168
  if (amountInUnits > spendableBalance) {
2169
2169
  const isReserveIssue = isNativeSol(token) && amountInUnits <= balance;
2170
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2170
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2171
2171
  amount,
2172
2172
  balance: balance.toString(),
2173
2173
  spendableBalance: spendableBalance.toString(),
@@ -2179,7 +2179,7 @@ function SolanaAmountStep({
2179
2179
  );
2180
2180
  return;
2181
2181
  }
2182
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2182
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2183
2183
  symbol: token.symbol,
2184
2184
  inputAmountUsd: amount,
2185
2185
  sourceAmount: sourceAmountStr,
@@ -2248,7 +2248,7 @@ function SolanaAmountStep({
2248
2248
  )
2249
2249
  ] }),
2250
2250
  _optionalChain([uiConfig, 'optionalAccess', _50 => _50.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
2251
- _chunkMVFMDKAScjs.currencyFormatter.format(uiConfig.minDepositUsd),
2251
+ _chunk5SR5N75Icjs.currencyFormatter.format(uiConfig.minDepositUsd),
2252
2252
  " minimum deposit"
2253
2253
  ] }),
2254
2254
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -2274,7 +2274,7 @@ function SolanaAmountStep({
2274
2274
  ] })
2275
2275
  ] }),
2276
2276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2277
- _chunkMVFMDKAScjs.Button,
2277
+ _chunk5SR5N75Icjs.Button,
2278
2278
  {
2279
2279
  onClick: handleContinue,
2280
2280
  fullWidth: true,
@@ -2282,7 +2282,7 @@ function SolanaAmountStep({
2282
2282
  children: _optionalChain([uiConfig, 'optionalAccess', _51 => _51.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
2283
2283
  }
2284
2284
  ) }),
2285
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
2285
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
2286
2286
  ] });
2287
2287
  }
2288
2288
 
@@ -2326,7 +2326,7 @@ function SolanaConfirmStep({
2326
2326
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
2327
2327
  const handleConfirm = async () => {
2328
2328
  if (!solanaProvider) {
2329
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2329
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2330
2330
  reason: "missing-provider"
2331
2331
  });
2332
2332
  setError("Solana wallet not connected");
@@ -2334,7 +2334,7 @@ function SolanaConfirmStep({
2334
2334
  }
2335
2335
  const parsedAmount = parseFloat(sourceAmount);
2336
2336
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
2337
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2337
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2338
2338
  reason: "invalid-amount",
2339
2339
  sourceAmount
2340
2340
  });
@@ -2343,7 +2343,7 @@ function SolanaConfirmStep({
2343
2343
  }
2344
2344
  setError(null);
2345
2345
  setIsSubmitting(true);
2346
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2346
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2347
2347
  smartAccount,
2348
2348
  solanaAddress,
2349
2349
  solanaDepositAddress,
@@ -2353,7 +2353,7 @@ function SolanaConfirmStep({
2353
2353
  });
2354
2354
  try {
2355
2355
  const check = await service.checkAccount(smartAccount);
2356
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2356
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2357
2357
  smartAccount,
2358
2358
  isRegistered: check.isRegistered,
2359
2359
  targetChain: check.targetChain,
@@ -2366,7 +2366,7 @@ function SolanaConfirmStep({
2366
2366
  }
2367
2367
  const connection = getSolanaConnection();
2368
2368
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
2369
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2369
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2370
2370
  token: token.symbol,
2371
2371
  sourceAmount,
2372
2372
  amountUnits: amountUnits.toString()
@@ -2383,7 +2383,7 @@ function SolanaConfirmStep({
2383
2383
  token.mint,
2384
2384
  amountUnits
2385
2385
  );
2386
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2386
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2387
2387
  token: token.symbol,
2388
2388
  instructionCount: transaction.instructions.length,
2389
2389
  feePayer: _optionalChain([transaction, 'access', _52 => _52.feePayer, 'optionalAccess', _53 => _53.toBase58, 'call', _54 => _54()]),
@@ -2394,15 +2394,15 @@ function SolanaConfirmStep({
2394
2394
  connection,
2395
2395
  transaction
2396
2396
  );
2397
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2397
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2398
2398
  txHash,
2399
2399
  amountUnits: amountUnits.toString()
2400
2400
  });
2401
2401
  onConfirm(txHash, amountUnits.toString());
2402
2402
  } catch (err) {
2403
2403
  const raw = err instanceof Error ? err.message : "Transfer failed";
2404
- const message = _chunkMVFMDKAScjs.formatUserError.call(void 0, raw);
2405
- _chunkMVFMDKAScjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2404
+ const message = _chunk5SR5N75Icjs.formatUserError.call(void 0, raw);
2405
+ _chunk5SR5N75Icjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2406
2406
  smartAccount,
2407
2407
  token: token.symbol,
2408
2408
  sourceAmount
@@ -2535,7 +2535,7 @@ function SolanaConfirmStep({
2535
2535
  ] })
2536
2536
  ] }),
2537
2537
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2538
- _chunkMVFMDKAScjs.Button,
2538
+ _chunk5SR5N75Icjs.Button,
2539
2539
  {
2540
2540
  onClick: handleConfirm,
2541
2541
  loading: isSubmitting,
@@ -2544,7 +2544,7 @@ function SolanaConfirmStep({
2544
2544
  children: "Confirm Order"
2545
2545
  }
2546
2546
  ) }),
2547
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVFMDKAScjs.PoweredBy, {})
2547
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5SR5N75Icjs.PoweredBy, {})
2548
2548
  ] });
2549
2549
  }
2550
2550
 
@@ -2593,9 +2593,9 @@ function DepositFlow({
2593
2593
  onError,
2594
2594
  debug
2595
2595
  }) {
2596
- const onStepChangeRef = _chunkMVFMDKAScjs.useLatestRef.call(void 0, onStepChange);
2597
- const onTotalBalanceChangeRef = _chunkMVFMDKAScjs.useLatestRef.call(void 0, onTotalBalanceChange);
2598
- const onEventRef = _chunkMVFMDKAScjs.useLatestRef.call(void 0, onEvent);
2596
+ const onStepChangeRef = _chunk5SR5N75Icjs.useLatestRef.call(void 0, onStepChange);
2597
+ const onTotalBalanceChangeRef = _chunk5SR5N75Icjs.useLatestRef.call(void 0, onTotalBalanceChange);
2598
+ const onEventRef = _chunk5SR5N75Icjs.useLatestRef.call(void 0, onEvent);
2599
2599
  const hasInitialReownSession = Boolean(
2600
2600
  enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _56 => _56.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _57 => _57.address]) : _optionalChain([reownWallet, 'optionalAccess', _58 => _58.address])
2601
2601
  );
@@ -2615,13 +2615,13 @@ function DepositFlow({
2615
2615
  flowModeRef.current = flowMode;
2616
2616
  const logFlow = _react.useCallback.call(void 0,
2617
2617
  (message, data) => {
2618
- _chunkMVFMDKAScjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2618
+ _chunk5SR5N75Icjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2619
2619
  },
2620
2620
  [debug]
2621
2621
  );
2622
2622
  const logFlowError = _react.useCallback.call(void 0,
2623
2623
  (message, error, data) => {
2624
- _chunkMVFMDKAScjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2624
+ _chunk5SR5N75Icjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2625
2625
  },
2626
2626
  [debug]
2627
2627
  );
@@ -2743,7 +2743,7 @@ function DepositFlow({
2743
2743
  return {
2744
2744
  ownerAddress: dappAddress,
2745
2745
  walletClient: void 0,
2746
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, targetChain))),
2746
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, targetChain))),
2747
2747
  switchChain: void 0
2748
2748
  };
2749
2749
  }
@@ -2752,7 +2752,7 @@ function DepositFlow({
2752
2752
  return {
2753
2753
  ownerAddress: dappWalletClient.account.address,
2754
2754
  walletClient: dappWalletClient,
2755
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, fallbackChainId))),
2755
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, fallbackChainId))),
2756
2756
  switchChain: dappSwitchChain
2757
2757
  };
2758
2758
  }
@@ -2766,7 +2766,7 @@ function DepositFlow({
2766
2766
  return {
2767
2767
  ownerAddress: dappAddress,
2768
2768
  walletClient: void 0,
2769
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, targetChain))),
2769
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, targetChain))),
2770
2770
  switchChain: void 0
2771
2771
  };
2772
2772
  }
@@ -2775,7 +2775,7 @@ function DepositFlow({
2775
2775
  return {
2776
2776
  ownerAddress: dappWalletClient.account.address,
2777
2777
  walletClient: dappWalletClient,
2778
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, fallbackChainId))),
2778
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, fallbackChainId))),
2779
2779
  switchChain: dappSwitchChain
2780
2780
  };
2781
2781
  }
@@ -2783,7 +2783,7 @@ function DepositFlow({
2783
2783
  return {
2784
2784
  ownerAddress: reownWallet.address,
2785
2785
  walletClient: reownWallet.walletClient,
2786
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, targetChain))),
2786
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, targetChain))),
2787
2787
  switchChain: reownWallet.switchChain
2788
2788
  };
2789
2789
  }
@@ -2821,7 +2821,7 @@ function DepositFlow({
2821
2821
  return {
2822
2822
  ownerAddress: dappAddress,
2823
2823
  walletClient: void 0,
2824
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMVFMDKAScjs.getPublicClient.call(void 0, targetChain))),
2824
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk5SR5N75Icjs.getPublicClient.call(void 0, targetChain))),
2825
2825
  switchChain: void 0
2826
2826
  };
2827
2827
  }
@@ -3322,7 +3322,7 @@ function DepositFlow({
3322
3322
  ]);
3323
3323
  if (showConnectStep) {
3324
3324
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3325
- _chunkMVFMDKAScjs.ConnectStep,
3325
+ _chunk5SR5N75Icjs.ConnectStep,
3326
3326
  {
3327
3327
  walletOptions,
3328
3328
  selectedWalletId: selectedWalletIdEffective,
@@ -3396,7 +3396,7 @@ function DepositFlow({
3396
3396
  }
3397
3397
  ),
3398
3398
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3399
- _chunkMVFMDKAScjs.ProcessingStep,
3399
+ _chunk5SR5N75Icjs.ProcessingStep,
3400
3400
  {
3401
3401
  smartAccount: step.smartAccount,
3402
3402
  txHash: step.txHash,
@@ -3408,6 +3408,7 @@ function DepositFlow({
3408
3408
  sourceSymbol: step.sourceSymbol,
3409
3409
  sourceDecimals: step.sourceDecimals,
3410
3410
  waitForFinalTx,
3411
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _107 => _107.length])),
3411
3412
  service,
3412
3413
  directTransfer: step.directTransfer,
3413
3414
  onClose,
@@ -3422,8 +3423,8 @@ function DepositFlow({
3422
3423
  }
3423
3424
  if (isSolanaWalletMode) {
3424
3425
  if (!sessionKeyAddress) return null;
3425
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _107 => _107.solanaAddress]);
3426
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _108 => _108.solanaProvider]);
3426
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _108 => _108.solanaAddress]);
3427
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _109 => _109.solanaProvider]);
3427
3428
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
3428
3429
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3429
3430
  SetupStep,
@@ -3519,7 +3520,7 @@ function DepositFlow({
3519
3520
  ) })
3520
3521
  ] }) : null,
3521
3522
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3522
- _chunkMVFMDKAScjs.ProcessingStep,
3523
+ _chunk5SR5N75Icjs.ProcessingStep,
3523
3524
  {
3524
3525
  smartAccount: step.smartAccount,
3525
3526
  txHash: step.txHash,
@@ -3531,6 +3532,7 @@ function DepositFlow({
3531
3532
  sourceSymbol: step.sourceSymbol,
3532
3533
  sourceDecimals: step.sourceDecimals,
3533
3534
  waitForFinalTx,
3535
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _110 => _110.length])),
3534
3536
  service,
3535
3537
  directTransfer: step.directTransfer,
3536
3538
  onClose,
@@ -3543,16 +3545,16 @@ function DepositFlow({
3543
3545
  )
3544
3546
  ] });
3545
3547
  }
3546
- if (!_optionalChain([signerContext, 'optionalAccess', _109 => _109.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _110 => _110.publicClient])) {
3548
+ if (!_optionalChain([signerContext, 'optionalAccess', _111 => _111.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _112 => _112.publicClient])) {
3547
3549
  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..." }) }) }) }) });
3548
3550
  }
3549
3551
  const ownerAddress = signerContext.ownerAddress;
3550
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _111 => _111.walletClient, 'optionalAccess', _112 => _112.chain, 'optionalAccess', _113 => _113.id]), () => ( _optionalChain([signerContext, 'access', _114 => _114.publicClient, 'access', _115 => _115.chain, 'optionalAccess', _116 => _116.id]))), () => ( targetChain));
3552
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _113 => _113.walletClient, 'optionalAccess', _114 => _114.chain, 'optionalAccess', _115 => _115.id]), () => ( _optionalChain([signerContext, 'access', _116 => _116.publicClient, 'access', _117 => _117.chain, 'optionalAccess', _118 => _118.id]))), () => ( targetChain));
3551
3553
  const getReadClientForChain = (chainId) => {
3552
- if (_optionalChain([signerContext, 'access', _117 => _117.publicClient, 'access', _118 => _118.chain, 'optionalAccess', _119 => _119.id]) === chainId) {
3554
+ if (_optionalChain([signerContext, 'access', _119 => _119.publicClient, 'access', _120 => _120.chain, 'optionalAccess', _121 => _121.id]) === chainId) {
3553
3555
  return signerContext.publicClient;
3554
3556
  }
3555
- return _chunkMVFMDKAScjs.getPublicClient.call(void 0, chainId);
3557
+ return _chunk5SR5N75Icjs.getPublicClient.call(void 0, chainId);
3556
3558
  };
3557
3559
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
3558
3560
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3603,7 +3605,7 @@ function DepositFlow({
3603
3605
  onContinue: handleAmountContinue,
3604
3606
  onCtaClick: (ctaName) => {
3605
3607
  const receiveSymbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
3606
- _optionalChain([onEvent, 'optionalCall', _120 => _120({
3608
+ _optionalChain([onEvent, 'optionalCall', _122 => _122({
3607
3609
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
3608
3610
  send_token: step.asset.symbol,
3609
3611
  receive_token: receiveSymbol,
@@ -3634,7 +3636,7 @@ function DepositFlow({
3634
3636
  }
3635
3637
  ),
3636
3638
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3637
- _chunkMVFMDKAScjs.ProcessingStep,
3639
+ _chunk5SR5N75Icjs.ProcessingStep,
3638
3640
  {
3639
3641
  smartAccount: step.smartAccount,
3640
3642
  txHash: step.txHash,
@@ -3646,6 +3648,7 @@ function DepositFlow({
3646
3648
  sourceSymbol: step.sourceSymbol,
3647
3649
  sourceDecimals: step.sourceDecimals,
3648
3650
  waitForFinalTx,
3651
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _123 => _123.length])),
3649
3652
  service,
3650
3653
  directTransfer: step.directTransfer,
3651
3654
  onClose,
@@ -3662,7 +3665,7 @@ function DepositFlow({
3662
3665
  // src/DepositModal.tsx
3663
3666
 
3664
3667
  var ReownDepositInner = _react.lazy.call(void 0,
3665
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-U5ZTK3PW.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3668
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-3KQE4YU6.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3666
3669
  );
3667
3670
  function DepositModal(props) {
3668
3671
  const needsReown = !!props.reownAppId;
@@ -3731,14 +3734,14 @@ function DepositModalInner({
3731
3734
  debug
3732
3735
  }) {
3733
3736
  const modalRef = _react.useRef.call(void 0, null);
3734
- const onReadyRef = _chunkMVFMDKAScjs.useLatestRef.call(void 0, onReady);
3737
+ const onReadyRef = _chunk5SR5N75Icjs.useLatestRef.call(void 0, onReady);
3735
3738
  const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
3736
3739
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
3737
3740
  const backHandlerRef = _react.useRef.call(void 0, void 0);
3738
3741
  const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
3739
3742
  const sourceChain = sourceChainProp ? _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp) : void 0;
3740
3743
  const service = _react.useMemo.call(void 0,
3741
- () => _chunkMVFMDKAScjs.createDepositService.call(void 0, backendUrl, {
3744
+ () => _chunk5SR5N75Icjs.createDepositService.call(void 0, backendUrl, {
3742
3745
  debug,
3743
3746
  debugScope: "service:deposit"
3744
3747
  }),
@@ -3746,7 +3749,7 @@ function DepositModalInner({
3746
3749
  );
3747
3750
  _react.useEffect.call(void 0, () => {
3748
3751
  if (isOpen && modalRef.current) {
3749
- _chunkMVFMDKAScjs.applyTheme.call(void 0, modalRef.current, theme);
3752
+ _chunk5SR5N75Icjs.applyTheme.call(void 0, modalRef.current, theme);
3750
3753
  }
3751
3754
  }, [isOpen, theme]);
3752
3755
  _react.useEffect.call(void 0, () => {
@@ -3756,7 +3759,7 @@ function DepositModalInner({
3756
3759
  _react.useEffect.call(void 0, () => {
3757
3760
  if (isOpen && !hasCalledReady.current) {
3758
3761
  hasCalledReady.current = true;
3759
- _optionalChain([onReadyRef, 'access', _121 => _121.current, 'optionalCall', _122 => _122()]);
3762
+ _optionalChain([onReadyRef, 'access', _124 => _124.current, 'optionalCall', _125 => _125()]);
3760
3763
  }
3761
3764
  }, [isOpen, onReadyRef]);
3762
3765
  _react.useEffect.call(void 0, () => {
@@ -3775,17 +3778,17 @@ function DepositModalInner({
3775
3778
  setTotalBalanceUsd(balance2);
3776
3779
  }, []);
3777
3780
  const handleBack = _react.useCallback.call(void 0, () => {
3778
- _optionalChain([backHandlerRef, 'access', _123 => _123.current, 'optionalCall', _124 => _124()]);
3781
+ _optionalChain([backHandlerRef, 'access', _126 => _126.current, 'optionalCall', _127 => _127()]);
3779
3782
  }, []);
3780
- const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _125 => _125.showLogo]), () => ( false));
3781
- const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _126 => _126.showStepper]), () => ( false));
3782
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _127 => _127.showBackButton]), () => ( true));
3783
- const balance = _optionalChain([uiConfig, 'optionalAccess', _128 => _128.balance]);
3784
- const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _129 => _129.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
3785
- const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _130 => _130.title]), () => ( "Deposit"));
3783
+ const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _128 => _128.showLogo]), () => ( false));
3784
+ const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _129 => _129.showStepper]), () => ( false));
3785
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _130 => _130.showBackButton]), () => ( true));
3786
+ const balance = _optionalChain([uiConfig, 'optionalAccess', _131 => _131.balance]);
3787
+ const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _132 => _132.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
3788
+ const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _133 => _133.title]), () => ( "Deposit"));
3786
3789
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
3787
3790
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3788
- _chunkMVFMDKAScjs.Modal,
3791
+ _chunk5SR5N75Icjs.Modal,
3789
3792
  {
3790
3793
  isOpen,
3791
3794
  onClose,
@@ -3878,7 +3881,7 @@ function DepositModalInner({
3878
3881
  balance.title,
3879
3882
  ":"
3880
3883
  ] }),
3881
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkMVFMDKAScjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3884
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunk5SR5N75Icjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3882
3885
  ] })
3883
3886
  ] }),
3884
3887
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,