@rhinestone/deposit-modal 0.1.52 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{DepositModalReown-63LD7KSU.mjs → DepositModalReown-5QKEE7R3.mjs} +4 -4
  2. package/dist/{DepositModalReown-SXQJYLTX.cjs → DepositModalReown-XKP2Z55X.cjs} +7 -7
  3. package/dist/{WithdrawModalReown-PUIM36NO.mjs → WithdrawModalReown-DN6OKFGR.mjs} +4 -4
  4. package/dist/{WithdrawModalReown-JD665MKM.cjs → WithdrawModalReown-ZQCNJLSP.cjs} +7 -7
  5. package/dist/{chunk-VYYJWMEI.mjs → chunk-AJUR6FAP.mjs} +121 -27
  6. package/dist/{chunk-ZJQZEIHA.mjs → chunk-CIXHTOO3.mjs} +1 -1
  7. package/dist/{chunk-RVKMKH2C.cjs → chunk-EAEDK474.cjs} +250 -319
  8. package/dist/{chunk-JL3R3JT6.cjs → chunk-GOMHX544.cjs} +80 -74
  9. package/dist/{chunk-MKSZIA74.mjs → chunk-JQTV5JTB.mjs} +238 -307
  10. package/dist/{chunk-UPA7N6GY.mjs → chunk-MBURQ26S.mjs} +10 -1
  11. package/dist/{chunk-XAGXQV4K.cjs → chunk-N2Y34LQO.cjs} +9 -0
  12. package/dist/{chunk-ZW4SRCW5.cjs → chunk-QJVXCBUI.cjs} +332 -238
  13. package/dist/{chunk-NELAYNA3.cjs → chunk-R6U6BHCV.cjs} +1 -1
  14. package/dist/{chunk-R64A3IEI.mjs → chunk-XXB2LVUB.mjs} +23 -17
  15. package/dist/constants.cjs +2 -2
  16. package/dist/constants.mjs +1 -1
  17. package/dist/deposit.cjs +4 -4
  18. package/dist/deposit.d.cts +2 -2
  19. package/dist/deposit.d.ts +2 -2
  20. package/dist/deposit.mjs +3 -3
  21. package/dist/index.cjs +5 -5
  22. package/dist/index.d.cts +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.mjs +4 -4
  25. package/dist/reown.cjs +5 -5
  26. package/dist/reown.d.cts +1 -1
  27. package/dist/reown.d.ts +1 -1
  28. package/dist/reown.mjs +4 -4
  29. package/dist/styles.css +357 -243
  30. package/dist/{types-D1nvo2dK.d.ts → types-BPE95RUG.d.ts} +2 -0
  31. package/dist/{types-DgiqazTb.d.cts → types-Cm5vGVK2.d.cts} +2 -0
  32. package/dist/withdraw.cjs +4 -4
  33. package/dist/withdraw.d.cts +2 -2
  34. package/dist/withdraw.d.ts +2 -2
  35. package/dist/withdraw.mjs +3 -3
  36. package/package.json +1 -1
@@ -25,7 +25,7 @@
25
25
 
26
26
 
27
27
 
28
- var _chunkRVKMKH2Ccjs = require('./chunk-RVKMKH2C.cjs');
28
+ var _chunkEAEDK474cjs = require('./chunk-EAEDK474.cjs');
29
29
 
30
30
 
31
31
 
@@ -41,7 +41,7 @@ var _chunkRVKMKH2Ccjs = require('./chunk-RVKMKH2C.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
44
+ var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
45
45
 
46
46
  // src/DepositModal.tsx
47
47
 
@@ -61,15 +61,15 @@ var _react = require('react');
61
61
 
62
62
  var _jsxruntime = require('react/jsx-runtime');
63
63
  async function resolveSessionOwner(eoaAddress) {
64
- const localOwner = _chunkRVKMKH2Ccjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
64
+ const localOwner = _chunkEAEDK474cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
65
65
  if (localOwner) {
66
66
  return {
67
- account: _chunkRVKMKH2Ccjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
67
+ account: _chunkEAEDK474cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
68
68
  address: localOwner.address
69
69
  };
70
70
  }
71
- const created = _chunkRVKMKH2Ccjs.createSessionOwnerKey.call(void 0, );
72
- _chunkRVKMKH2Ccjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
71
+ const created = _chunkEAEDK474cjs.createSessionOwnerKey.call(void 0, );
72
+ _chunkEAEDK474cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
73
73
  return {
74
74
  account: created.account,
75
75
  address: created.address
@@ -105,7 +105,7 @@ function SetupStep({
105
105
  const setup = await service.setupAccount({
106
106
  ownerAddress: address,
107
107
  sessionOwnerAddress: sessionOwner.address,
108
- targetChain: _chunkRVKMKH2Ccjs.toEvmCaip2.call(void 0, targetChain),
108
+ targetChain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
109
109
  targetToken,
110
110
  signerAddress,
111
111
  sessionChainIds,
@@ -135,7 +135,7 @@ function SetupStep({
135
135
  primaryType: typedData.primaryType,
136
136
  message: typedData.message
137
137
  });
138
- const sessionDetails = _chunkRVKMKH2Ccjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
138
+ const sessionDetails = _chunkEAEDK474cjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
139
139
  setState({ type: "registering" });
140
140
  const registerResult = await service.registerAccount({
141
141
  address: smartAccount,
@@ -147,7 +147,7 @@ function SetupStep({
147
147
  eoaAddress: address,
148
148
  sessionOwner: sessionOwner.address,
149
149
  target: {
150
- chain: _chunkRVKMKH2Ccjs.toEvmCaip2.call(void 0, targetChain),
150
+ chain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
151
151
  token: targetToken,
152
152
  ...recipient && { recipient }
153
153
  }
@@ -210,7 +210,7 @@ function SetupStep({
210
210
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
211
211
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
212
212
  isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
213
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
213
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
214
214
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
215
215
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
216
216
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
@@ -247,7 +247,7 @@ function SetupStep({
247
247
  ] })
248
248
  ] })
249
249
  ] }),
250
- isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
250
+ isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
251
251
  ] });
252
252
  }
253
253
 
@@ -272,7 +272,7 @@ function AssetSelectStep({
272
272
  const [error, setError] = _react.useState.call(void 0, null);
273
273
  const defaultAssetId = _react.useMemo.call(void 0, () => {
274
274
  if (!defaultSourceChain || !defaultSourceToken) return null;
275
- return _chunkRVKMKH2Ccjs.getAssetId.call(void 0, {
275
+ return _chunkEAEDK474cjs.getAssetId.call(void 0, {
276
276
  chainId: defaultSourceChain,
277
277
  token: defaultSourceToken
278
278
  });
@@ -289,10 +289,10 @@ function AssetSelectStep({
289
289
  try {
290
290
  const portfolio = await service.fetchPortfolio(address);
291
291
  if (!active) return;
292
- const portfolioAssets = _chunkRVKMKH2Ccjs.portfolioToAssets.call(void 0, portfolio.tokens);
292
+ const portfolioAssets = _chunkEAEDK474cjs.portfolioToAssets.call(void 0, portfolio.tokens);
293
293
  setAssets(portfolioAssets);
294
294
  const hasNative = portfolioAssets.some(
295
- (asset) => asset.token.toLowerCase() === _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS
295
+ (asset) => asset.token.toLowerCase() === _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
296
296
  );
297
297
  if (!hasNative) {
298
298
  const nativeAssets = await fetchNativeAssets(
@@ -370,7 +370,7 @@ function AssetSelectStep({
370
370
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
371
371
  const numeric = Number(raw);
372
372
  if (!Number.isFinite(numeric)) return raw;
373
- return _chunkRVKMKH2Ccjs.tokenFormatter.format(numeric);
373
+ return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
374
374
  } catch (e3) {
375
375
  return asset.balance;
376
376
  }
@@ -384,7 +384,7 @@ function AssetSelectStep({
384
384
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
385
385
  children: [
386
386
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
387
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.Spinner, { className: "rs-text-tertiary" }),
387
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-text-tertiary" }),
388
388
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
389
389
  ] }),
390
390
  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 }) }),
@@ -417,9 +417,9 @@ function AssetSelectStep({
417
417
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
418
418
  const isSelected = selectedAssetId === asset.id;
419
419
  const tokenAmount = formatBalance(asset);
420
- const badge = _chunkNELAYNA3cjs.getChainBadge.call(void 0, asset.chainId);
421
- const tokenIcon = _chunkNELAYNA3cjs.getTokenIcon.call(void 0, asset.symbol);
422
- const chainIcon = _chunkNELAYNA3cjs.getChainIcon.call(void 0, asset.chainId);
420
+ const badge = _chunkR6U6BHCVcjs.getChainBadge.call(void 0, asset.chainId);
421
+ const tokenIcon = _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, asset.symbol);
422
+ const chainIcon = _chunkR6U6BHCVcjs.getChainIcon.call(void 0, asset.chainId);
423
423
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
424
424
  "button",
425
425
  {
@@ -443,7 +443,7 @@ function AssetSelectStep({
443
443
  "img",
444
444
  {
445
445
  src: chainIcon,
446
- alt: _chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId),
446
+ alt: _chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId),
447
447
  className: "rs-asset-chain-badge"
448
448
  }
449
449
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -464,7 +464,7 @@ function AssetSelectStep({
464
464
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
465
465
  " ",
466
466
  "on ",
467
- _chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)
467
+ _chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)
468
468
  ] })
469
469
  ] }),
470
470
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -474,7 +474,7 @@ function AssetSelectStep({
474
474
  ] })
475
475
  ] })
476
476
  ] }),
477
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkRVKMKH2Ccjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
477
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkEAEDK474cjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
478
478
  ]
479
479
  },
480
480
  asset.id
@@ -484,7 +484,7 @@ function AssetSelectStep({
484
484
  }
485
485
  ),
486
486
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
487
- _chunkRVKMKH2Ccjs.Button,
487
+ _chunkEAEDK474cjs.Button,
488
488
  {
489
489
  onClick: () => selectedAsset && onContinue(selectedAsset),
490
490
  disabled: !selectedAsset,
@@ -492,17 +492,17 @@ function AssetSelectStep({
492
492
  children: "Continue"
493
493
  }
494
494
  ) }),
495
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
495
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
496
496
  ] });
497
497
  }
498
498
  async function fetchNativeAssets(address, publicClient, existing) {
499
499
  const existingIds = new Set(existing.map((asset) => asset.id));
500
500
  const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
501
501
  if (!connectedChainId) return [];
502
- if (!_chunkNELAYNA3cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
503
- const id = _chunkRVKMKH2Ccjs.getAssetId.call(void 0, {
502
+ if (!_chunkR6U6BHCVcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
503
+ const id = _chunkEAEDK474cjs.getAssetId.call(void 0, {
504
504
  chainId: connectedChainId,
505
- token: _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS
505
+ token: _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
506
506
  });
507
507
  if (existingIds.has(id)) return [];
508
508
  try {
@@ -511,7 +511,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
511
511
  {
512
512
  id,
513
513
  chainId: connectedChainId,
514
- token: _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS,
514
+ token: _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS,
515
515
  symbol: "ETH",
516
516
  name: "Ethereum",
517
517
  decimals: 18,
@@ -561,8 +561,8 @@ function AmountStep({
561
561
  const chainMismatch = Boolean(
562
562
  _optionalChain([walletClient, 'optionalAccess', _12 => _12.chain, 'optionalAccess', _13 => _13.id]) && walletClient.chain.id !== asset.chainId
563
563
  );
564
- const targetSymbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
565
- const isSourceStablecoin = _chunkNELAYNA3cjs.isStablecoinSymbol.call(void 0, asset.symbol);
564
+ const targetSymbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
565
+ const isSourceStablecoin = _chunkR6U6BHCVcjs.isStablecoinSymbol.call(void 0, asset.symbol);
566
566
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
567
567
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
568
568
  return tokenPriceUsdOverride;
@@ -586,7 +586,7 @@ function AmountStep({
586
586
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
587
587
  if (!balanceTarget || !publicClient) return;
588
588
  try {
589
- const bal = _chunkRVKMKH2Ccjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
589
+ const bal = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
590
590
  address: asset.token,
591
591
  abi: _viem.erc20Abi,
592
592
  functionName: "balanceOf",
@@ -612,7 +612,7 @@ function AmountStep({
612
612
  setIsSwitching(true);
613
613
  switchChain(asset.chainId).catch((err) => {
614
614
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
615
- setError(_chunkRVKMKH2Ccjs.formatUserError.call(void 0, raw));
615
+ setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
616
616
  }).finally(() => {
617
617
  setIsSwitching(false);
618
618
  });
@@ -648,7 +648,7 @@ function AmountStep({
648
648
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
649
649
  const numeric = Number(raw);
650
650
  if (!Number.isFinite(numeric)) return raw;
651
- return _chunkRVKMKH2Ccjs.tokenFormatter.format(numeric);
651
+ return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
652
652
  } catch (e8) {
653
653
  return "...";
654
654
  }
@@ -690,14 +690,13 @@ function AmountStep({
690
690
  const usdValue = numericAmount;
691
691
  if (_optionalChain([uiConfig, 'optionalAccess', _15 => _15.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
692
692
  setError(
693
- `Maximum deposit is ${_chunkRVKMKH2Ccjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
693
+ `Maximum deposit is ${_chunkEAEDK474cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
694
694
  );
695
695
  return;
696
696
  }
697
697
  if (_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]) && usdValue < uiConfig.minDepositUsd) {
698
- setError(
699
- `Minimum deposit is ${_chunkRVKMKH2Ccjs.currencyFormatter.format(uiConfig.minDepositUsd)}`
700
- );
698
+ setAmount(uiConfig.minDepositUsd.toString());
699
+ setError(null);
701
700
  return;
702
701
  }
703
702
  }
@@ -737,7 +736,7 @@ function AmountStep({
737
736
  autoFocus: true
738
737
  }
739
738
  ) }),
740
- !isSourceStablecoin && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-available", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-available-value", children: [
739
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-available", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-available-value", children: [
741
740
  formattedBalance,
742
741
  " ",
743
742
  asset.symbol,
@@ -745,7 +744,7 @@ function AmountStep({
745
744
  hasPricing && balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
746
745
  " ",
747
746
  "(",
748
- _chunkRVKMKH2Ccjs.currencyFormatter.format(balanceUsd),
747
+ _chunkEAEDK474cjs.currencyFormatter.format(balanceUsd),
749
748
  ")"
750
749
  ] })
751
750
  ] }) })
@@ -759,26 +758,26 @@ function AmountStep({
759
758
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-flow-pill-label", children: "You send" }),
760
759
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-flow-pill-token", children: [
761
760
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-flow-pill-token-icon-wrapper", children: [
762
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-flow-pill-token-icon", children: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, asset.symbol) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-flow-pill-token-icon", children: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, asset.symbol) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
763
762
  "img",
764
763
  {
765
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, asset.symbol),
764
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, asset.symbol),
766
765
  alt: asset.symbol
767
766
  }
768
767
  ) : asset.symbol.slice(0, 2) }),
769
768
  (() => {
770
- const chainIcon = _chunkNELAYNA3cjs.getChainIcon.call(void 0, asset.chainId);
769
+ const chainIcon = _chunkR6U6BHCVcjs.getChainIcon.call(void 0, asset.chainId);
771
770
  if (chainIcon) {
772
771
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
773
772
  "img",
774
773
  {
775
774
  src: chainIcon,
776
- alt: _chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId),
775
+ alt: _chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId),
777
776
  className: "rs-flow-pill-chain-badge"
778
777
  }
779
778
  );
780
779
  }
781
- const badge = _chunkNELAYNA3cjs.getChainBadge.call(void 0, asset.chainId);
780
+ const badge = _chunkR6U6BHCVcjs.getChainBadge.call(void 0, asset.chainId);
782
781
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
783
782
  "div",
784
783
  {
@@ -816,26 +815,26 @@ function AmountStep({
816
815
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-flow-pill-label", children: "You receive" }),
817
816
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-flow-pill-token", children: [
818
817
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-flow-pill-token-icon-wrapper", children: [
819
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-flow-pill-token-icon", children: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
818
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-flow-pill-token-icon", children: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
820
819
  "img",
821
820
  {
822
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol),
821
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol),
823
822
  alt: targetSymbol
824
823
  }
825
824
  ) : targetSymbol.slice(0, 2) }),
826
825
  (() => {
827
- const chainIcon = _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain);
826
+ const chainIcon = _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain);
828
827
  if (chainIcon) {
829
828
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
830
829
  "img",
831
830
  {
832
831
  src: chainIcon,
833
- alt: _chunkNELAYNA3cjs.getChainName.call(void 0, targetChain),
832
+ alt: _chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain),
834
833
  className: "rs-flow-pill-chain-badge"
835
834
  }
836
835
  );
837
836
  }
838
- const badge = _chunkNELAYNA3cjs.getChainBadge.call(void 0, targetChain);
837
+ const badge = _chunkR6U6BHCVcjs.getChainBadge.call(void 0, targetChain);
839
838
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
840
839
  "div",
841
840
  {
@@ -881,6 +880,10 @@ function AmountStep({
881
880
  }
882
881
  )
883
882
  ] }),
883
+ _optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
884
+ _chunkEAEDK474cjs.currencyFormatter.format(uiConfig.minDepositUsd),
885
+ " minimum deposit"
886
+ ] }),
884
887
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
885
888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
886
889
  "svg",
@@ -904,15 +907,15 @@ function AmountStep({
904
907
  ] })
905
908
  ] }),
906
909
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
907
- _chunkRVKMKH2Ccjs.Button,
910
+ _chunkEAEDK474cjs.Button,
908
911
  {
909
912
  onClick: handleContinue,
910
913
  fullWidth: true,
911
914
  disabled: !amount || chainMismatch,
912
- children: "Continue"
915
+ children: _optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
913
916
  }
914
917
  ) }),
915
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
918
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
916
919
  ] });
917
920
  }
918
921
 
@@ -941,9 +944,9 @@ function ConfirmStep({
941
944
  const [error, setError] = _react.useState.call(void 0, null);
942
945
  const [isSwitching, setIsSwitching] = _react.useState.call(void 0, false);
943
946
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
944
- const chainMismatch = _optionalChain([walletClient, 'optionalAccess', _17 => _17.chain, 'optionalAccess', _18 => _18.id]) && walletClient.chain.id !== asset.chainId;
947
+ const chainMismatch = _optionalChain([walletClient, 'optionalAccess', _19 => _19.chain, 'optionalAccess', _20 => _20.id]) && walletClient.chain.id !== asset.chainId;
945
948
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
946
- const targetSymbol = sameRoute ? asset.symbol : _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
949
+ const targetSymbol = sameRoute ? asset.symbol : _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
947
950
  const formattedSendAmount = amount && !Number.isNaN(Number(amount)) ? Number(amount).toLocaleString("en-US", { maximumFractionDigits: 6 }) : "0";
948
951
  const formattedReceiveAmount = (() => {
949
952
  if (sameRoute) return formattedSendAmount;
@@ -962,7 +965,7 @@ function ConfirmStep({
962
965
  setIsSwitching(true);
963
966
  switchChain(asset.chainId).catch((err) => {
964
967
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
965
- setError(_chunkRVKMKH2Ccjs.formatUserError.call(void 0, raw));
968
+ setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
966
969
  }).finally(() => {
967
970
  setIsSwitching(false);
968
971
  });
@@ -977,7 +980,7 @@ function ConfirmStep({
977
980
  return;
978
981
  }
979
982
  if (chainMismatch) {
980
- setError(`Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)} to sign`);
983
+ setError(`Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)} to sign`);
981
984
  return;
982
985
  }
983
986
  const parsedAmount = parseFloat(amount);
@@ -1005,7 +1008,7 @@ function ConfirmStep({
1005
1008
  throw new Error("Wallet not properly connected");
1006
1009
  }
1007
1010
  const transferTo = sameRoute ? recipient : smartAccount;
1008
- const hash = _chunkRVKMKH2Ccjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1011
+ const hash = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1009
1012
  account,
1010
1013
  chain,
1011
1014
  to: transferTo,
@@ -1018,13 +1021,13 @@ function ConfirmStep({
1018
1021
  functionName: "transfer",
1019
1022
  args: [transferTo, amountUnits]
1020
1023
  });
1021
- _optionalChain([onDepositSubmitted, 'optionalCall', _19 => _19(hash, asset.chainId, amountUnits.toString())]);
1024
+ _optionalChain([onDepositSubmitted, 'optionalCall', _21 => _21(hash, asset.chainId, amountUnits.toString())]);
1022
1025
  onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
1023
1026
  } catch (err) {
1024
1027
  const raw = err instanceof Error ? err.message : "Transfer failed";
1025
- const message = _chunkRVKMKH2Ccjs.formatUserError.call(void 0, raw);
1028
+ const message = _chunkEAEDK474cjs.formatUserError.call(void 0, raw);
1026
1029
  setError(message);
1027
- _optionalChain([onError, 'optionalCall', _20 => _20(message, "TRANSFER_ERROR")]);
1030
+ _optionalChain([onError, 'optionalCall', _22 => _22(message, "TRANSFER_ERROR")]);
1028
1031
  } finally {
1029
1032
  setIsSubmitting(false);
1030
1033
  }
@@ -1041,15 +1044,15 @@ function ConfirmStep({
1041
1044
  className: "rs-card-value",
1042
1045
  style: { display: "flex", alignItems: "center", gap: 8 },
1043
1046
  children: [
1044
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, asset.chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1047
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, asset.chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1045
1048
  "img",
1046
1049
  {
1047
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, asset.chainId),
1050
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, asset.chainId),
1048
1051
  alt: "",
1049
1052
  style: { width: 16, height: 16, borderRadius: 3 }
1050
1053
  }
1051
1054
  ),
1052
- _chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)
1055
+ _chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)
1053
1056
  ]
1054
1057
  }
1055
1058
  )
@@ -1062,15 +1065,15 @@ function ConfirmStep({
1062
1065
  className: "rs-card-value",
1063
1066
  style: { display: "flex", alignItems: "center", gap: 8 },
1064
1067
  children: [
1065
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1068
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1066
1069
  "img",
1067
1070
  {
1068
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain),
1071
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain),
1069
1072
  alt: "",
1070
1073
  style: { width: 16, height: 16, borderRadius: 3 }
1071
1074
  }
1072
1075
  ),
1073
- _chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)
1076
+ _chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain)
1074
1077
  ]
1075
1078
  }
1076
1079
  )
@@ -1089,10 +1092,10 @@ function ConfirmStep({
1089
1092
  className: "rs-card-value",
1090
1093
  style: { display: "flex", alignItems: "center", gap: 6 },
1091
1094
  children: [
1092
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, asset.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1095
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, asset.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1093
1096
  "img",
1094
1097
  {
1095
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, asset.symbol),
1098
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, asset.symbol),
1096
1099
  alt: "",
1097
1100
  style: { width: 16, height: 16, borderRadius: "50%" }
1098
1101
  }
@@ -1112,10 +1115,10 @@ function ConfirmStep({
1112
1115
  className: "rs-card-value",
1113
1116
  style: { display: "flex", alignItems: "center", gap: 6 },
1114
1117
  children: [
1115
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1118
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1116
1119
  "img",
1117
1120
  {
1118
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol),
1121
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol),
1119
1122
  alt: "",
1120
1123
  style: { width: 16, height: 16, borderRadius: "50%" }
1121
1124
  }
@@ -1151,7 +1154,7 @@ function ConfirmStep({
1151
1154
  ] })
1152
1155
  ] }),
1153
1156
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1154
- _chunkRVKMKH2Ccjs.Button,
1157
+ _chunkEAEDK474cjs.Button,
1155
1158
  {
1156
1159
  onClick: handleConfirm,
1157
1160
  loading: isSubmitting,
@@ -1160,7 +1163,7 @@ function ConfirmStep({
1160
1163
  children: "Confirm Order"
1161
1164
  }
1162
1165
  ) }),
1163
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
1166
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
1164
1167
  ] });
1165
1168
  }
1166
1169
 
@@ -1285,7 +1288,7 @@ var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
1285
1288
  var configuredSolanaRpcUrl = null;
1286
1289
  var cachedConnections = /* @__PURE__ */ new Map();
1287
1290
  function configureSolanaRpcUrl(rpcUrl) {
1288
- const normalized = _optionalChain([rpcUrl, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]);
1291
+ const normalized = _optionalChain([rpcUrl, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]);
1289
1292
  configuredSolanaRpcUrl = normalized ? normalized : null;
1290
1293
  cachedConnections.clear();
1291
1294
  }
@@ -1420,7 +1423,7 @@ function resolveSolanaTokenMeta(token) {
1420
1423
  return {};
1421
1424
  }
1422
1425
  function getDepositEventDetails(event) {
1423
- if (!_optionalChain([event, 'optionalAccess', _23 => _23.type]) || !isRecord(event.data)) return {};
1426
+ if (!_optionalChain([event, 'optionalAccess', _25 => _25.type]) || !isRecord(event.data)) return {};
1424
1427
  if (event.type === "deposit-received") {
1425
1428
  const chainId = asChainId(event.data.chain);
1426
1429
  const token = asString(event.data.token);
@@ -1434,12 +1437,12 @@ function getDepositEventDetails(event) {
1434
1437
  }
1435
1438
  if (event.type === "bridge-started") {
1436
1439
  const source = isRecord(event.data.source) ? event.data.source : void 0;
1437
- const chainId = asChainId(_optionalChain([source, 'optionalAccess', _24 => _24.chain]));
1438
- const token = asString(_optionalChain([source, 'optionalAccess', _25 => _25.asset]));
1440
+ const chainId = asChainId(_optionalChain([source, 'optionalAccess', _26 => _26.chain]));
1441
+ const token = asString(_optionalChain([source, 'optionalAccess', _27 => _27.asset]));
1439
1442
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
1440
1443
  return {
1441
1444
  chainId,
1442
- amount: asAmount(_optionalChain([source, 'optionalAccess', _26 => _26.amount])),
1445
+ amount: asAmount(_optionalChain([source, 'optionalAccess', _28 => _28.amount])),
1443
1446
  token,
1444
1447
  ...solanaMeta
1445
1448
  };
@@ -1450,11 +1453,23 @@ function DepositAddressStep({
1450
1453
  smartAccount,
1451
1454
  solanaDepositAddress,
1452
1455
  service,
1456
+ allowedRoutes,
1453
1457
  onDepositDetected,
1454
1458
  onError
1455
1459
  }) {
1456
1460
  const hasSolana = Boolean(solanaDepositAddress);
1457
- const evmChainIds = _react.useMemo.call(void 0, () => _chunkNELAYNA3cjs.getSupportedChainIds.call(void 0, ), []);
1461
+ const allowedChainSet = _react.useMemo.call(void 0,
1462
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _29 => _29.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1463
+ [_optionalChain([allowedRoutes, 'optionalAccess', _30 => _30.sourceChains])]
1464
+ );
1465
+ const allowedTokenSet = _react.useMemo.call(void 0,
1466
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _31 => _31.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1467
+ [_optionalChain([allowedRoutes, 'optionalAccess', _32 => _32.sourceTokens])]
1468
+ );
1469
+ const evmChainIds = _react.useMemo.call(void 0, () => {
1470
+ const all = _chunkR6U6BHCVcjs.getSupportedChainIds.call(void 0, );
1471
+ return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1472
+ }, [allowedChainSet]);
1458
1473
  const chainOptions = _react.useMemo.call(void 0,
1459
1474
  () => hasSolana ? [...evmChainIds, "solana"] : evmChainIds,
1460
1475
  [evmChainIds, hasSolana]
@@ -1463,10 +1478,10 @@ function DepositAddressStep({
1463
1478
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
1464
1479
  const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, defaultChainId);
1465
1480
  const isSolana = sourceChainId === "solana";
1466
- const tokensForChain = _react.useMemo.call(void 0,
1467
- () => isSolana ? SOLANA_TOKENS.map((t) => t.symbol) : _chunkNELAYNA3cjs.getTargetTokenSymbolsForChain.call(void 0, sourceChainId),
1468
- [sourceChainId, isSolana]
1469
- );
1481
+ const tokensForChain = _react.useMemo.call(void 0, () => {
1482
+ const all = isSolana ? SOLANA_TOKENS.map((t) => t.symbol) : _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain.call(void 0, sourceChainId);
1483
+ return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1484
+ }, [sourceChainId, isSolana, allowedTokenSet]);
1470
1485
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
1471
1486
  const [sourceTokenSymbol, setSourceTokenSymbol] = _react.useState.call(void 0, defaultToken);
1472
1487
  _react.useEffect.call(void 0, () => {
@@ -1484,7 +1499,7 @@ function DepositAddressStep({
1484
1499
  const depositHandledRef = _react.useRef.call(void 0, false);
1485
1500
  const sourceSelectionRef = _react.useRef.call(void 0, {
1486
1501
  chainId: defaultChainId,
1487
- token: typeof defaultChainId === "number" ? _chunkNELAYNA3cjs.getTokenAddress.call(void 0, defaultToken, defaultChainId) : void 0,
1502
+ token: typeof defaultChainId === "number" ? _chunkR6U6BHCVcjs.getTokenAddress.call(void 0, defaultToken, defaultChainId) : void 0,
1488
1503
  sourceSymbol: defaultToken
1489
1504
  });
1490
1505
  _react.useEffect.call(void 0, () => {
@@ -1492,15 +1507,15 @@ function DepositAddressStep({
1492
1507
  const matched = _nullishCoalesce(SOLANA_TOKENS.find((t) => t.symbol === sourceTokenSymbol), () => ( SOLANA_TOKENS[0]));
1493
1508
  sourceSelectionRef.current = {
1494
1509
  chainId: "solana",
1495
- token: _optionalChain([matched, 'optionalAccess', _27 => _27.mint]),
1496
- sourceSymbol: _optionalChain([matched, 'optionalAccess', _28 => _28.symbol]),
1497
- sourceDecimals: _optionalChain([matched, 'optionalAccess', _29 => _29.decimals])
1510
+ token: _optionalChain([matched, 'optionalAccess', _33 => _33.mint]),
1511
+ sourceSymbol: _optionalChain([matched, 'optionalAccess', _34 => _34.symbol]),
1512
+ sourceDecimals: _optionalChain([matched, 'optionalAccess', _35 => _35.decimals])
1498
1513
  };
1499
1514
  return;
1500
1515
  }
1501
1516
  sourceSelectionRef.current = {
1502
1517
  chainId: sourceChainId,
1503
- token: _chunkNELAYNA3cjs.getTokenAddress.call(void 0, sourceTokenSymbol, sourceChainId),
1518
+ token: _chunkR6U6BHCVcjs.getTokenAddress.call(void 0, sourceTokenSymbol, sourceChainId),
1504
1519
  sourceSymbol: sourceTokenSymbol
1505
1520
  };
1506
1521
  }, [sourceChainId, sourceTokenSymbol, isSolana]);
@@ -1510,8 +1525,8 @@ function DepositAddressStep({
1510
1525
  function handlePointerDown(event) {
1511
1526
  const target = event.target;
1512
1527
  if (!target) return;
1513
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _30 => _30.current, 'optionalAccess', _31 => _31.contains, 'call', _32 => _32(target)]);
1514
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _33 => _33.current, 'optionalAccess', _34 => _34.contains, 'call', _35 => _35(target)]);
1528
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _36 => _36.current, 'optionalAccess', _37 => _37.contains, 'call', _38 => _38(target)]);
1529
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _39 => _39.current, 'optionalAccess', _40 => _40.contains, 'call', _41 => _41(target)]);
1515
1530
  if (clickedChainDropdown || clickedTokenDropdown) return;
1516
1531
  setChainDropdownOpen(false);
1517
1532
  setTokenDropdownOpen(false);
@@ -1558,10 +1573,10 @@ function DepositAddressStep({
1558
1573
  const status = await service.fetchLatestStatus(smartAccount);
1559
1574
  if (cancelled || depositHandledRef.current) return;
1560
1575
  const event = status.lastEvent;
1561
- const eventTxHash = _chunkRVKMKH2Ccjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkRVKMKH2Ccjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1576
+ const eventTxHash = _chunkEAEDK474cjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEAEDK474cjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1562
1577
  if (baselineTxHash === void 0) {
1563
1578
  baselineTxHash = eventTxHash;
1564
- } else if (eventTxHash && (!baselineTxHash || !_chunkRVKMKH2Ccjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1579
+ } else if (eventTxHash && (!baselineTxHash || !_chunkEAEDK474cjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1565
1580
  const details = getDepositEventDetails(event);
1566
1581
  const fallback = sourceSelectionRef.current;
1567
1582
  const chainId = _nullishCoalesce(details.chainId, () => ( fallback.chainId));
@@ -1587,7 +1602,7 @@ function DepositAddressStep({
1587
1602
  if (!cancelled) {
1588
1603
  const msg = err instanceof Error ? err.message : "Failed to check status";
1589
1604
  setPollingError(msg);
1590
- _optionalChain([onError, 'optionalCall', _36 => _36(msg, "STATUS_POLL_ERROR")]);
1605
+ _optionalChain([onError, 'optionalCall', _42 => _42(msg, "STATUS_POLL_ERROR")]);
1591
1606
  }
1592
1607
  }
1593
1608
  if (!cancelled && !depositHandledRef.current) {
@@ -1600,7 +1615,7 @@ function DepositAddressStep({
1600
1615
  clearTimeout(timeoutId);
1601
1616
  };
1602
1617
  }, [smartAccount, service, onDepositDetected, onError]);
1603
- const qrIconSrc = _chunkNELAYNA3cjs.getChainIcon.call(void 0, sourceChainId);
1618
+ const qrIconSrc = _chunkR6U6BHCVcjs.getChainIcon.call(void 0, sourceChainId);
1604
1619
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
1605
1620
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-body", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address", children: [
1606
1621
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
@@ -1616,15 +1631,15 @@ function DepositAddressStep({
1616
1631
  setTokenDropdownOpen(false);
1617
1632
  },
1618
1633
  children: [
1619
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1634
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1620
1635
  "img",
1621
1636
  {
1622
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, sourceChainId),
1637
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, sourceChainId),
1623
1638
  alt: "",
1624
1639
  className: "rs-deposit-address-dropdown-icon"
1625
1640
  }
1626
1641
  ),
1627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkNELAYNA3cjs.getChainName.call(void 0, sourceChainId) }),
1642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkR6U6BHCVcjs.getChainName.call(void 0, sourceChainId) }),
1628
1643
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1629
1644
  "svg",
1630
1645
  {
@@ -1656,15 +1671,15 @@ function DepositAddressStep({
1656
1671
  setChainDropdownOpen(false);
1657
1672
  },
1658
1673
  children: [
1659
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1674
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1660
1675
  "img",
1661
1676
  {
1662
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, chainId),
1677
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, chainId),
1663
1678
  alt: "",
1664
1679
  className: "rs-deposit-address-dropdown-icon"
1665
1680
  }
1666
1681
  ),
1667
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkNELAYNA3cjs.getChainName.call(void 0, chainId) })
1682
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkR6U6BHCVcjs.getChainName.call(void 0, chainId) })
1668
1683
  ]
1669
1684
  },
1670
1685
  String(chainId)
@@ -1682,10 +1697,10 @@ function DepositAddressStep({
1682
1697
  setChainDropdownOpen(false);
1683
1698
  },
1684
1699
  children: [
1685
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1700
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1686
1701
  "img",
1687
1702
  {
1688
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1703
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1689
1704
  alt: "",
1690
1705
  className: "rs-deposit-address-dropdown-icon"
1691
1706
  }
@@ -1722,10 +1737,10 @@ function DepositAddressStep({
1722
1737
  setTokenDropdownOpen(false);
1723
1738
  },
1724
1739
  children: [
1725
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1740
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1726
1741
  "img",
1727
1742
  {
1728
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, symbol),
1743
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, symbol),
1729
1744
  alt: "",
1730
1745
  className: "rs-deposit-address-dropdown-icon"
1731
1746
  }
@@ -1784,7 +1799,7 @@ function DepositAddressStep({
1784
1799
  ] }),
1785
1800
  pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
1786
1801
  ] }) }),
1787
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
1802
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
1788
1803
  ] });
1789
1804
  }
1790
1805
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -1815,7 +1830,7 @@ function SolanaTokenSelectStep({
1815
1830
  setError(null);
1816
1831
  const portfolioBySymbol = {};
1817
1832
  try {
1818
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1833
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1819
1834
  solanaAddress
1820
1835
  });
1821
1836
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -1838,12 +1853,12 @@ function SolanaTokenSelectStep({
1838
1853
  };
1839
1854
  }
1840
1855
  }
1841
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1856
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1842
1857
  symbols: Object.keys(portfolioBySymbol)
1843
1858
  });
1844
1859
  } catch (err) {
1845
1860
  if (!active) return;
1846
- _chunkRVKMKH2Ccjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1861
+ _chunkEAEDK474cjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1847
1862
  solanaAddress
1848
1863
  });
1849
1864
  setError(
@@ -1868,7 +1883,7 @@ function SolanaTokenSelectStep({
1868
1883
  setTokenBalances(results);
1869
1884
  setLoading(false);
1870
1885
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
1871
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _37 => _37(totalUsd)]);
1886
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _43 => _43(totalUsd)]);
1872
1887
  }
1873
1888
  void loadBalances();
1874
1889
  return () => {
@@ -1897,7 +1912,7 @@ function SolanaTokenSelectStep({
1897
1912
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
1898
1913
  children: [
1899
1914
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
1900
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.Spinner, { className: "rs-text-tertiary" }),
1915
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-text-tertiary" }),
1901
1916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
1902
1917
  ] }),
1903
1918
  !loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
@@ -1928,13 +1943,13 @@ function SolanaTokenSelectStep({
1928
1943
  ] }),
1929
1944
  !loading && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
1930
1945
  const isSelected = selectedSymbol === entry.token.symbol;
1931
- const tokenIcon = _chunkNELAYNA3cjs.getTokenIcon.call(void 0, entry.token.symbol);
1932
- const chainIcon = _chunkNELAYNA3cjs.getChainIcon.call(void 0, "solana");
1946
+ const tokenIcon = _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, entry.token.symbol);
1947
+ const chainIcon = _chunkR6U6BHCVcjs.getChainIcon.call(void 0, "solana");
1933
1948
  let formattedBalance;
1934
1949
  try {
1935
1950
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
1936
1951
  const numeric = Number(raw);
1937
- formattedBalance = Number.isFinite(numeric) ? _chunkRVKMKH2Ccjs.tokenFormatter.format(numeric) : raw;
1952
+ formattedBalance = Number.isFinite(numeric) ? _chunkEAEDK474cjs.tokenFormatter.format(numeric) : raw;
1938
1953
  } catch (e14) {
1939
1954
  formattedBalance = "...";
1940
1955
  }
@@ -1978,7 +1993,7 @@ function SolanaTokenSelectStep({
1978
1993
  ] })
1979
1994
  ] })
1980
1995
  ] }),
1981
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkRVKMKH2Ccjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
1996
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkEAEDK474cjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
1982
1997
  ]
1983
1998
  },
1984
1999
  entry.token.symbol
@@ -1988,7 +2003,7 @@ function SolanaTokenSelectStep({
1988
2003
  }
1989
2004
  ),
1990
2005
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1991
- _chunkRVKMKH2Ccjs.Button,
2006
+ _chunkEAEDK474cjs.Button,
1992
2007
  {
1993
2008
  onClick: () => selectedEntry && onContinue(
1994
2009
  selectedEntry.token,
@@ -2000,7 +2015,7 @@ function SolanaTokenSelectStep({
2000
2015
  children: "Continue"
2001
2016
  }
2002
2017
  ) }),
2003
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
2018
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2004
2019
  ] });
2005
2020
  }
2006
2021
 
@@ -2020,7 +2035,7 @@ function SolanaAmountStep({
2020
2035
  }) {
2021
2036
  const [amount, setAmount] = _react.useState.call(void 0, "");
2022
2037
  const [error, setError] = _react.useState.call(void 0, null);
2023
- const isSourceStablecoin = _chunkNELAYNA3cjs.isStablecoinSymbol.call(void 0, token.symbol);
2038
+ const isSourceStablecoin = _chunkR6U6BHCVcjs.isStablecoinSymbol.call(void 0, token.symbol);
2024
2039
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
2025
2040
  if (isSourceStablecoin) return 1;
2026
2041
  try {
@@ -2048,7 +2063,7 @@ function SolanaAmountStep({
2048
2063
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
2049
2064
  const numeric = Number(raw);
2050
2065
  if (!Number.isFinite(numeric)) return raw;
2051
- return _chunkRVKMKH2Ccjs.tokenFormatter.format(numeric);
2066
+ return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
2052
2067
  } catch (e16) {
2053
2068
  return "...";
2054
2069
  }
@@ -2066,7 +2081,7 @@ function SolanaAmountStep({
2066
2081
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
2067
2082
  const formattedBalanceUsd = _react.useMemo.call(void 0, () => {
2068
2083
  if (computedBalanceUsd === null || computedBalanceUsd <= 0) return null;
2069
- return _chunkRVKMKH2Ccjs.currencyFormatter.format(computedBalanceUsd);
2084
+ return _chunkEAEDK474cjs.currencyFormatter.format(computedBalanceUsd);
2070
2085
  }, [computedBalanceUsd]);
2071
2086
  const spendableBalance = _react.useMemo.call(void 0, () => {
2072
2087
  if (!isNativeSol(token)) return balance;
@@ -2091,7 +2106,7 @@ function SolanaAmountStep({
2091
2106
  const factor = 10 ** maxDecimals;
2092
2107
  const truncated = Math.floor(value * factor) / factor;
2093
2108
  const formatted = truncated.toFixed(maxDecimals).replace(/\.?0+$/, "");
2094
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2109
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2095
2110
  percentage,
2096
2111
  symbol: token.symbol,
2097
2112
  formatted
@@ -2105,7 +2120,7 @@ function SolanaAmountStep({
2105
2120
  const handleContinue = () => {
2106
2121
  const numericAmount = parseFloat(amount);
2107
2122
  if (isNaN(numericAmount) || numericAmount <= 0) {
2108
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2123
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2109
2124
  amount,
2110
2125
  reason: "nan-or-non-positive"
2111
2126
  });
@@ -2115,16 +2130,15 @@ function SolanaAmountStep({
2115
2130
  const sourceAmount = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / tokenPriceUsd;
2116
2131
  if (hasPricing) {
2117
2132
  const usdValue = numericAmount;
2118
- if (_optionalChain([uiConfig, 'optionalAccess', _38 => _38.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
2133
+ if (_optionalChain([uiConfig, 'optionalAccess', _44 => _44.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
2119
2134
  setError(
2120
- `Maximum deposit is ${_chunkRVKMKH2Ccjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2135
+ `Maximum deposit is ${_chunkEAEDK474cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2121
2136
  );
2122
2137
  return;
2123
2138
  }
2124
- if (_optionalChain([uiConfig, 'optionalAccess', _39 => _39.minDepositUsd]) && usdValue < uiConfig.minDepositUsd) {
2125
- setError(
2126
- `Minimum deposit is ${_chunkRVKMKH2Ccjs.currencyFormatter.format(uiConfig.minDepositUsd)}`
2127
- );
2139
+ if (_optionalChain([uiConfig, 'optionalAccess', _45 => _45.minDepositUsd]) && usdValue < uiConfig.minDepositUsd) {
2140
+ setAmount(uiConfig.minDepositUsd.toString());
2141
+ setError(null);
2128
2142
  return;
2129
2143
  }
2130
2144
  }
@@ -2133,7 +2147,7 @@ function SolanaAmountStep({
2133
2147
  try {
2134
2148
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
2135
2149
  } catch (e20) {
2136
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2150
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2137
2151
  amount,
2138
2152
  sourceAmount: sourceAmountStr,
2139
2153
  reason: "parse-units-failed"
@@ -2143,7 +2157,7 @@ function SolanaAmountStep({
2143
2157
  }
2144
2158
  if (amountInUnits > spendableBalance) {
2145
2159
  const isReserveIssue = isNativeSol(token) && amountInUnits <= balance;
2146
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2160
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2147
2161
  amount,
2148
2162
  balance: balance.toString(),
2149
2163
  spendableBalance: spendableBalance.toString(),
@@ -2155,7 +2169,7 @@ function SolanaAmountStep({
2155
2169
  );
2156
2170
  return;
2157
2171
  }
2158
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2172
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2159
2173
  symbol: token.symbol,
2160
2174
  inputAmountUsd: amount,
2161
2175
  sourceAmount: sourceAmountStr,
@@ -2223,6 +2237,10 @@ function SolanaAmountStep({
2223
2237
  }
2224
2238
  )
2225
2239
  ] }),
2240
+ _optionalChain([uiConfig, 'optionalAccess', _46 => _46.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
2241
+ _chunkEAEDK474cjs.currencyFormatter.format(uiConfig.minDepositUsd),
2242
+ " minimum deposit"
2243
+ ] }),
2226
2244
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
2227
2245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2228
2246
  "svg",
@@ -2246,15 +2264,15 @@ function SolanaAmountStep({
2246
2264
  ] })
2247
2265
  ] }),
2248
2266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2249
- _chunkRVKMKH2Ccjs.Button,
2267
+ _chunkEAEDK474cjs.Button,
2250
2268
  {
2251
2269
  onClick: handleContinue,
2252
2270
  fullWidth: true,
2253
2271
  disabled: !amount,
2254
- children: "Continue"
2272
+ children: _optionalChain([uiConfig, 'optionalAccess', _47 => _47.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
2255
2273
  }
2256
2274
  ) }),
2257
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
2275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2258
2276
  ] });
2259
2277
  }
2260
2278
 
@@ -2281,7 +2299,7 @@ function SolanaConfirmStep({
2281
2299
  }) {
2282
2300
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
2283
2301
  const [error, setError] = _react.useState.call(void 0, null);
2284
- const targetSymbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
2302
+ const targetSymbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
2285
2303
  const isSameToken = token.symbol.toUpperCase() === targetSymbol.toUpperCase();
2286
2304
  const formattedAmount = sourceAmount && !Number.isNaN(Number(sourceAmount)) ? Number(sourceAmount).toLocaleString("en-US", { maximumFractionDigits: 6 }) : "0";
2287
2305
  const formattedReceiveAmount = (() => {
@@ -2298,7 +2316,7 @@ function SolanaConfirmStep({
2298
2316
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
2299
2317
  const handleConfirm = async () => {
2300
2318
  if (!solanaProvider) {
2301
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2319
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2302
2320
  reason: "missing-provider"
2303
2321
  });
2304
2322
  setError("Solana wallet not connected");
@@ -2306,7 +2324,7 @@ function SolanaConfirmStep({
2306
2324
  }
2307
2325
  const parsedAmount = parseFloat(sourceAmount);
2308
2326
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
2309
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2327
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2310
2328
  reason: "invalid-amount",
2311
2329
  sourceAmount
2312
2330
  });
@@ -2315,7 +2333,7 @@ function SolanaConfirmStep({
2315
2333
  }
2316
2334
  setError(null);
2317
2335
  setIsSubmitting(true);
2318
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2336
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2319
2337
  smartAccount,
2320
2338
  solanaAddress,
2321
2339
  solanaDepositAddress,
@@ -2325,7 +2343,7 @@ function SolanaConfirmStep({
2325
2343
  });
2326
2344
  try {
2327
2345
  const check = await service.checkAccount(smartAccount);
2328
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2346
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2329
2347
  smartAccount,
2330
2348
  isRegistered: check.isRegistered,
2331
2349
  targetChain: check.targetChain,
@@ -2338,7 +2356,7 @@ function SolanaConfirmStep({
2338
2356
  }
2339
2357
  const connection = getSolanaConnection();
2340
2358
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
2341
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2359
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2342
2360
  token: token.symbol,
2343
2361
  sourceAmount,
2344
2362
  amountUnits: amountUnits.toString()
@@ -2355,10 +2373,10 @@ function SolanaConfirmStep({
2355
2373
  token.mint,
2356
2374
  amountUnits
2357
2375
  );
2358
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2376
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2359
2377
  token: token.symbol,
2360
2378
  instructionCount: transaction.instructions.length,
2361
- feePayer: _optionalChain([transaction, 'access', _40 => _40.feePayer, 'optionalAccess', _41 => _41.toBase58, 'call', _42 => _42()]),
2379
+ feePayer: _optionalChain([transaction, 'access', _48 => _48.feePayer, 'optionalAccess', _49 => _49.toBase58, 'call', _50 => _50()]),
2362
2380
  recentBlockhash: transaction.recentBlockhash
2363
2381
  });
2364
2382
  const txHash = await sendSolanaTransaction(
@@ -2366,21 +2384,21 @@ function SolanaConfirmStep({
2366
2384
  connection,
2367
2385
  transaction
2368
2386
  );
2369
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2387
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2370
2388
  txHash,
2371
2389
  amountUnits: amountUnits.toString()
2372
2390
  });
2373
2391
  onConfirm(txHash, amountUnits.toString());
2374
2392
  } catch (err) {
2375
2393
  const raw = err instanceof Error ? err.message : "Transfer failed";
2376
- const message = _chunkRVKMKH2Ccjs.formatUserError.call(void 0, raw);
2377
- _chunkRVKMKH2Ccjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2394
+ const message = _chunkEAEDK474cjs.formatUserError.call(void 0, raw);
2395
+ _chunkEAEDK474cjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2378
2396
  smartAccount,
2379
2397
  token: token.symbol,
2380
2398
  sourceAmount
2381
2399
  });
2382
2400
  setError(message);
2383
- _optionalChain([onError, 'optionalCall', _43 => _43(message, "SOLANA_TRANSFER_ERROR")]);
2401
+ _optionalChain([onError, 'optionalCall', _51 => _51(message, "SOLANA_TRANSFER_ERROR")]);
2384
2402
  } finally {
2385
2403
  setIsSubmitting(false);
2386
2404
  }
@@ -2397,15 +2415,15 @@ function SolanaConfirmStep({
2397
2415
  className: "rs-card-value",
2398
2416
  style: { display: "flex", alignItems: "center", gap: 8 },
2399
2417
  children: [
2400
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, "solana") && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2418
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, "solana") && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2401
2419
  "img",
2402
2420
  {
2403
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, "solana"),
2421
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, "solana"),
2404
2422
  alt: "",
2405
2423
  style: { width: 16, height: 16, borderRadius: 3 }
2406
2424
  }
2407
2425
  ),
2408
- _chunkNELAYNA3cjs.getChainName.call(void 0, "solana")
2426
+ _chunkR6U6BHCVcjs.getChainName.call(void 0, "solana")
2409
2427
  ]
2410
2428
  }
2411
2429
  )
@@ -2418,15 +2436,15 @@ function SolanaConfirmStep({
2418
2436
  className: "rs-card-value",
2419
2437
  style: { display: "flex", alignItems: "center", gap: 8 },
2420
2438
  children: [
2421
- _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2439
+ _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2422
2440
  "img",
2423
2441
  {
2424
- src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain),
2442
+ src: _chunkR6U6BHCVcjs.getChainIcon.call(void 0, targetChain),
2425
2443
  alt: "",
2426
2444
  style: { width: 16, height: 16, borderRadius: 3 }
2427
2445
  }
2428
2446
  ),
2429
- _chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)
2447
+ _chunkR6U6BHCVcjs.getChainName.call(void 0, targetChain)
2430
2448
  ]
2431
2449
  }
2432
2450
  )
@@ -2445,10 +2463,10 @@ function SolanaConfirmStep({
2445
2463
  className: "rs-card-value",
2446
2464
  style: { display: "flex", alignItems: "center", gap: 6 },
2447
2465
  children: [
2448
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, token.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2466
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, token.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2449
2467
  "img",
2450
2468
  {
2451
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, token.symbol),
2469
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, token.symbol),
2452
2470
  alt: "",
2453
2471
  style: { width: 16, height: 16, borderRadius: "50%" }
2454
2472
  }
@@ -2468,10 +2486,10 @@ function SolanaConfirmStep({
2468
2486
  className: "rs-card-value",
2469
2487
  style: { display: "flex", alignItems: "center", gap: 6 },
2470
2488
  children: [
2471
- _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2489
+ _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2472
2490
  "img",
2473
2491
  {
2474
- src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol),
2492
+ src: _chunkR6U6BHCVcjs.getTokenIcon.call(void 0, targetSymbol),
2475
2493
  alt: "",
2476
2494
  style: { width: 16, height: 16, borderRadius: "50%" }
2477
2495
  }
@@ -2507,7 +2525,7 @@ function SolanaConfirmStep({
2507
2525
  ] })
2508
2526
  ] }),
2509
2527
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2510
- _chunkRVKMKH2Ccjs.Button,
2528
+ _chunkEAEDK474cjs.Button,
2511
2529
  {
2512
2530
  onClick: handleConfirm,
2513
2531
  loading: isSubmitting,
@@ -2516,12 +2534,13 @@ function SolanaConfirmStep({
2516
2534
  children: "Confirm Order"
2517
2535
  }
2518
2536
  ) }),
2519
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRVKMKH2Ccjs.PoweredBy, {})
2537
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2520
2538
  ] });
2521
2539
  }
2522
2540
 
2523
2541
  // src/DepositFlow.tsx
2524
2542
 
2543
+ var QR_AUTO_ADVANCE_HYDRATION_GRACE_MS = 1e3;
2525
2544
  function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2526
2545
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2527
2546
  }
@@ -2532,6 +2551,7 @@ function DepositFlow({
2532
2551
  dappWalletClient,
2533
2552
  dappPublicClient,
2534
2553
  dappAddress,
2554
+ hasDappWalletClientProp,
2535
2555
  targetChain,
2536
2556
  targetToken,
2537
2557
  service,
@@ -2539,7 +2559,7 @@ function DepositFlow({
2539
2559
  sourceToken: defaultSourceToken,
2540
2560
  amount: defaultAmount,
2541
2561
  recipient,
2542
- signerAddress = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS,
2562
+ signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
2543
2563
  sessionChainIds,
2544
2564
  forceRegister = false,
2545
2565
  waitForFinalTx = true,
@@ -2561,11 +2581,18 @@ function DepositFlow({
2561
2581
  onError,
2562
2582
  debug
2563
2583
  }) {
2584
+ const hasInitialReownSession = Boolean(
2585
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _52 => _52.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _53 => _53.address]) : _optionalChain([reownWallet, 'optionalAccess', _54 => _54.address])
2586
+ );
2587
+ const hasInitialWalletHydrationPending = Boolean(
2588
+ dappAddress && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasInitialReownSession && !reownWallet.isReady)
2589
+ );
2564
2590
  const [step, setStep] = _react.useState.call(void 0, { type: "setup" });
2565
2591
  const [flowMode, setFlowMode] = _react.useState.call(void 0, null);
2566
2592
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
2567
2593
  const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
2568
2594
  const [selectedWalletId, setSelectedWalletId] = _react.useState.call(void 0, null);
2595
+ const [hasQrAutoAdvanceGraceElapsed, setHasQrAutoAdvanceGraceElapsed] = _react.useState.call(void 0, () => !hasInitialWalletHydrationPending);
2569
2596
  const flowModeRef = _react.useRef.call(void 0, null);
2570
2597
  const portfolioAssetsRef = _react.useRef.call(void 0, []);
2571
2598
  const stableWalletSignerRef = _react.useRef.call(void 0, null);
@@ -2573,13 +2600,13 @@ function DepositFlow({
2573
2600
  flowModeRef.current = flowMode;
2574
2601
  const logFlow = _react.useCallback.call(void 0,
2575
2602
  (message, data) => {
2576
- _chunkRVKMKH2Ccjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2603
+ _chunkEAEDK474cjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2577
2604
  },
2578
2605
  [debug]
2579
2606
  );
2580
2607
  const logFlowError = _react.useCallback.call(void 0,
2581
2608
  (message, error, data) => {
2582
- _chunkRVKMKH2Ccjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2609
+ _chunkEAEDK474cjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2583
2610
  },
2584
2611
  [debug]
2585
2612
  );
@@ -2600,12 +2627,12 @@ function DepositFlow({
2600
2627
  return null;
2601
2628
  }, []);
2602
2629
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
2603
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _44 => _44.switchChain])) return void 0;
2630
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _55 => _55.switchChain])) return void 0;
2604
2631
  return async (chainId) => {
2605
- await _optionalChain([dappWalletClient, 'access', _45 => _45.switchChain, 'optionalCall', _46 => _46({ id: chainId })]);
2632
+ await _optionalChain([dappWalletClient, 'access', _56 => _56.switchChain, 'optionalCall', _57 => _57({ id: chainId })]);
2606
2633
  };
2607
2634
  }, [dappWalletClient]);
2608
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _47 => _47.account, 'optionalAccess', _48 => _48.address]), () => ( null));
2635
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _58 => _58.account, 'optionalAccess', _59 => _59.address]), () => ( null));
2609
2636
  const walletOptions = _react.useMemo.call(void 0, () => {
2610
2637
  const options = [];
2611
2638
  const seen = /* @__PURE__ */ new Set();
@@ -2619,7 +2646,7 @@ function DepositFlow({
2619
2646
  });
2620
2647
  seen.add(id);
2621
2648
  }
2622
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _49 => _49.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
2649
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _60 => _60.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
2623
2650
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
2624
2651
  if (!seen.has(id)) {
2625
2652
  options.push({
@@ -2631,7 +2658,7 @@ function DepositFlow({
2631
2658
  });
2632
2659
  seen.add(id);
2633
2660
  }
2634
- } else if (_optionalChain([reownWallet, 'optionalAccess', _50 => _50.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
2661
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _61 => _61.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
2635
2662
  const id = `evm:${reownWallet.address.toLowerCase()}`;
2636
2663
  if (!seen.has(id)) {
2637
2664
  options.push({
@@ -2648,22 +2675,36 @@ function DepositFlow({
2648
2675
  }, [
2649
2676
  connectedWalletAddress,
2650
2677
  dappAddress,
2651
- _optionalChain([reownWallet, 'optionalAccess', _51 => _51.address]),
2652
- _optionalChain([reownWallet, 'optionalAccess', _52 => _52.isConnected]),
2653
- _optionalChain([reownWallet, 'optionalAccess', _53 => _53.walletClient]),
2654
- _optionalChain([reownWallet, 'optionalAccess', _54 => _54.publicClient]),
2655
- _optionalChain([reownWallet, 'optionalAccess', _55 => _55.icon]),
2678
+ _optionalChain([reownWallet, 'optionalAccess', _62 => _62.address]),
2679
+ _optionalChain([reownWallet, 'optionalAccess', _63 => _63.isConnected]),
2680
+ _optionalChain([reownWallet, 'optionalAccess', _64 => _64.walletClient]),
2681
+ _optionalChain([reownWallet, 'optionalAccess', _65 => _65.publicClient]),
2682
+ _optionalChain([reownWallet, 'optionalAccess', _66 => _66.icon]),
2656
2683
  enableSolana,
2657
- _optionalChain([reownWallet, 'optionalAccess', _56 => _56.isSolana]),
2658
- _optionalChain([reownWallet, 'optionalAccess', _57 => _57.solanaAddress]),
2659
- _optionalChain([reownWallet, 'optionalAccess', _58 => _58.caipAddress])
2684
+ _optionalChain([reownWallet, 'optionalAccess', _67 => _67.isSolana]),
2685
+ _optionalChain([reownWallet, 'optionalAccess', _68 => _68.solanaAddress]),
2686
+ _optionalChain([reownWallet, 'optionalAccess', _69 => _69.caipAddress])
2660
2687
  ]);
2661
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _59 => _59.account]) && dappAddress && !reownWallet;
2688
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _70 => _70.account]) && dappAddress && !reownWallet;
2662
2689
  const hasWalletOptions = walletOptions.length > 0;
2663
2690
  const hasReownSession = Boolean(
2664
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _60 => _60.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _61 => _61.address]) : _optionalChain([reownWallet, 'optionalAccess', _62 => _62.address])
2691
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _71 => _71.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _72 => _72.address]) : _optionalChain([reownWallet, 'optionalAccess', _73 => _73.address])
2692
+ );
2693
+ const isWalletHydrationPending = Boolean(
2694
+ dappAddress && !hasWalletOptions && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady)
2665
2695
  );
2666
2696
  const showConnectStep = flowMode === null && !canAutoLock && !isConnectSelectionConfirmed;
2697
+ _react.useEffect.call(void 0, () => {
2698
+ if (!isWalletHydrationPending) {
2699
+ setHasQrAutoAdvanceGraceElapsed(true);
2700
+ return;
2701
+ }
2702
+ setHasQrAutoAdvanceGraceElapsed(false);
2703
+ const timeout = window.setTimeout(() => {
2704
+ setHasQrAutoAdvanceGraceElapsed(true);
2705
+ }, QR_AUTO_ADVANCE_HYDRATION_GRACE_MS);
2706
+ return () => window.clearTimeout(timeout);
2707
+ }, [isWalletHydrationPending]);
2667
2708
  const walletSelectionKey = _react.useMemo.call(void 0, () => {
2668
2709
  if (flowMode !== "wallet") return null;
2669
2710
  if (canAutoLock) {
@@ -2687,16 +2728,16 @@ function DepositFlow({
2687
2728
  return {
2688
2729
  ownerAddress: dappAddress,
2689
2730
  walletClient: void 0,
2690
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, targetChain))),
2731
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2691
2732
  switchChain: void 0
2692
2733
  };
2693
2734
  }
2694
2735
  if (canAutoLock) {
2695
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _63 => _63.chain, 'optionalAccess', _64 => _64.id]), () => ( targetChain));
2736
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _74 => _74.chain, 'optionalAccess', _75 => _75.id]), () => ( targetChain));
2696
2737
  return {
2697
2738
  ownerAddress: dappWalletClient.account.address,
2698
2739
  walletClient: dappWalletClient,
2699
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, fallbackChainId))),
2740
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, fallbackChainId))),
2700
2741
  switchChain: dappSwitchChain
2701
2742
  };
2702
2743
  }
@@ -2710,24 +2751,24 @@ function DepositFlow({
2710
2751
  return {
2711
2752
  ownerAddress: dappAddress,
2712
2753
  walletClient: void 0,
2713
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, targetChain))),
2754
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2714
2755
  switchChain: void 0
2715
2756
  };
2716
2757
  }
2717
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _65 => _65.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
2718
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _66 => _66.chain, 'optionalAccess', _67 => _67.id]), () => ( targetChain));
2758
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _76 => _76.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
2759
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _77 => _77.chain, 'optionalAccess', _78 => _78.id]), () => ( targetChain));
2719
2760
  return {
2720
2761
  ownerAddress: dappWalletClient.account.address,
2721
2762
  walletClient: dappWalletClient,
2722
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, fallbackChainId))),
2763
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, fallbackChainId))),
2723
2764
  switchChain: dappSwitchChain
2724
2765
  };
2725
2766
  }
2726
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _68 => _68.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
2767
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _79 => _79.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
2727
2768
  return {
2728
2769
  ownerAddress: reownWallet.address,
2729
2770
  walletClient: reownWallet.walletClient,
2730
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, targetChain))),
2771
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2731
2772
  switchChain: reownWallet.switchChain
2732
2773
  };
2733
2774
  }
@@ -2765,7 +2806,7 @@ function DepositFlow({
2765
2806
  return {
2766
2807
  ownerAddress: dappAddress,
2767
2808
  walletClient: void 0,
2768
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, targetChain))),
2809
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2769
2810
  switchChain: void 0
2770
2811
  };
2771
2812
  }
@@ -2787,7 +2828,7 @@ function DepositFlow({
2787
2828
  walletSignerContext,
2788
2829
  walletSelectionKey
2789
2830
  ]);
2790
- const sessionKeyAddress = _nullishCoalesce(_nullishCoalesce(dappAddress, () => ( _optionalChain([signerContext, 'optionalAccess', _69 => _69.ownerAddress]))), () => ( null));
2831
+ const sessionKeyAddress = _nullishCoalesce(_nullishCoalesce(dappAddress, () => ( _optionalChain([signerContext, 'optionalAccess', _80 => _80.ownerAddress]))), () => ( null));
2791
2832
  const lastTargetRef = _react.useRef.call(void 0, null);
2792
2833
  _react.useEffect.call(void 0, () => {
2793
2834
  const prev = lastTargetRef.current;
@@ -2864,7 +2905,7 @@ function DepositFlow({
2864
2905
  const stepIndex = step.type === "setup" ? 0 : step.type === "deposit-address" ? 1 : step.type === "select-asset" ? 1 : step.type === "solana-token-select" ? 1 : step.type === "solana-amount" ? 2 : step.type === "amount" ? 2 : step.type === "confirm" ? 3 : step.type === "solana-confirm" ? 3 : 4;
2865
2906
  const currentBackHandler = step.type === "deposit-address" ? handleBackFromDepositAddress : step.type === "select-asset" && signerContext && !canAutoLock ? handleBackFromSelectAsset : step.type === "solana-token-select" ? handleBackFromSolanaTokenSelect : step.type === "solana-amount" ? handleBackFromSolanaAmount : step.type === "solana-confirm" ? handleBackFromSolanaConfirm : step.type === "amount" ? handleBackFromAmount : step.type === "confirm" ? handleBackFromConfirm : void 0;
2866
2907
  _react.useEffect.call(void 0, () => {
2867
- _optionalChain([onStepChange, 'optionalCall', _70 => _70(stepIndex, currentBackHandler)]);
2908
+ _optionalChain([onStepChange, 'optionalCall', _81 => _81(stepIndex, currentBackHandler)]);
2868
2909
  }, [stepIndex, currentBackHandler, onStepChange]);
2869
2910
  _react.useEffect.call(void 0, () => {
2870
2911
  logFlow("state:changed", {
@@ -2883,7 +2924,7 @@ function DepositFlow({
2883
2924
  targetToken
2884
2925
  ]);
2885
2926
  _react.useEffect.call(void 0, () => {
2886
- _optionalChain([onTotalBalanceChange, 'optionalCall', _71 => _71(totalBalanceUsd)]);
2927
+ _optionalChain([onTotalBalanceChange, 'optionalCall', _82 => _82(totalBalanceUsd)]);
2887
2928
  }, [totalBalanceUsd, onTotalBalanceChange]);
2888
2929
  const isDepositAddressMode = flowMode === "deposit-address";
2889
2930
  const isSolanaWalletMode = flowMode === "solana-wallet";
@@ -2925,7 +2966,7 @@ function DepositFlow({
2925
2966
  solanaDepositAddress
2926
2967
  });
2927
2968
  } else {
2928
- _optionalChain([onError, 'optionalCall', _72 => _72({
2969
+ _optionalChain([onError, 'optionalCall', _83 => _83({
2929
2970
  message: "Solana deposit address not available. Please try again.",
2930
2971
  code: "SOLANA_SETUP_FAILED"
2931
2972
  })]);
@@ -2960,7 +3001,7 @@ function DepositFlow({
2960
3001
  directTransfer
2961
3002
  };
2962
3003
  });
2963
- _optionalChain([onDepositSubmitted, 'optionalCall', _73 => _73({ txHash, sourceChain: chainId, amount })]);
3004
+ _optionalChain([onDepositSubmitted, 'optionalCall', _84 => _84({ txHash, sourceChain: chainId, amount })]);
2964
3005
  },
2965
3006
  [onDepositSubmitted, targetChain, targetToken]
2966
3007
  );
@@ -2984,8 +3025,8 @@ function DepositFlow({
2984
3025
  );
2985
3026
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
2986
3027
  (token, sourceAmount, inputAmountUsd) => {
2987
- const targetSym = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
2988
- const isTargetStable = _chunkNELAYNA3cjs.isStablecoinSymbol.call(void 0, targetSym);
3028
+ const targetSym = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
3029
+ const isTargetStable = _chunkR6U6BHCVcjs.isStablecoinSymbol.call(void 0, targetSym);
2989
3030
  const targetTokenPriceUsd = isTargetStable ? 1 : getTokenPriceUsd(targetSym);
2990
3031
  logFlow("solana:amount:continue", {
2991
3032
  token: token.symbol,
@@ -3032,7 +3073,7 @@ function DepositFlow({
3032
3073
  sourceDecimals: prev.token.decimals
3033
3074
  };
3034
3075
  });
3035
- _optionalChain([onDepositSubmitted, 'optionalCall', _74 => _74({
3076
+ _optionalChain([onDepositSubmitted, 'optionalCall', _85 => _85({
3036
3077
  txHash,
3037
3078
  sourceChain: "solana",
3038
3079
  amount: amountUnits
@@ -3042,7 +3083,7 @@ function DepositFlow({
3042
3083
  );
3043
3084
  const handleConnected = _react.useCallback.call(void 0,
3044
3085
  (addr, smartAccount) => {
3045
- _optionalChain([onConnected, 'optionalCall', _75 => _75({ address: addr, smartAccount })]);
3086
+ _optionalChain([onConnected, 'optionalCall', _86 => _86({ address: addr, smartAccount })]);
3046
3087
  },
3047
3088
  [onConnected]
3048
3089
  );
@@ -3062,8 +3103,8 @@ function DepositFlow({
3062
3103
  );
3063
3104
  const handleAmountContinue = _react.useCallback.call(void 0,
3064
3105
  (amount, targetAmount, balance) => {
3065
- const targetSym = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
3066
- const isTargetStable = _chunkNELAYNA3cjs.isStablecoinSymbol.call(void 0, targetSym);
3106
+ const targetSym = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
3107
+ const isTargetStable = _chunkR6U6BHCVcjs.isStablecoinSymbol.call(void 0, targetSym);
3067
3108
  const targetTokenPriceUsd = isTargetStable ? 1 : getTokenPriceUsd(targetSym);
3068
3109
  setStep((prev) => {
3069
3110
  if (prev.type !== "amount") return prev;
@@ -3105,28 +3146,28 @@ function DepositFlow({
3105
3146
  );
3106
3147
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
3107
3148
  (txHash, sourceChain, amount) => {
3108
- _optionalChain([onDepositSubmitted, 'optionalCall', _76 => _76({ txHash, sourceChain, amount })]);
3149
+ _optionalChain([onDepositSubmitted, 'optionalCall', _87 => _87({ txHash, sourceChain, amount })]);
3109
3150
  },
3110
3151
  [onDepositSubmitted]
3111
3152
  );
3112
3153
  const handleDepositComplete = _react.useCallback.call(void 0,
3113
3154
  (txHash, destinationTxHash, context) => {
3114
3155
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
3115
- _optionalChain([onDepositComplete, 'optionalCall', _77 => _77({ txHash, destinationTxHash, ...context })]);
3156
+ _optionalChain([onDepositComplete, 'optionalCall', _88 => _88({ txHash, destinationTxHash, ...context })]);
3116
3157
  },
3117
3158
  [logFlow, onDepositComplete]
3118
3159
  );
3119
3160
  const handleDepositFailed = _react.useCallback.call(void 0,
3120
3161
  (txHash, error) => {
3121
3162
  logFlowError("deposit:failed", error, { txHash });
3122
- _optionalChain([onDepositFailed, 'optionalCall', _78 => _78({ txHash, error })]);
3163
+ _optionalChain([onDepositFailed, 'optionalCall', _89 => _89({ txHash, error })]);
3123
3164
  },
3124
3165
  [logFlowError, onDepositFailed]
3125
3166
  );
3126
3167
  const handleError = _react.useCallback.call(void 0,
3127
3168
  (message, code) => {
3128
3169
  logFlowError("flow:error", message, { code });
3129
- _optionalChain([onError, 'optionalCall', _79 => _79({ message, code })]);
3170
+ _optionalChain([onError, 'optionalCall', _90 => _90({ message, code })]);
3130
3171
  },
3131
3172
  [logFlowError, onError]
3132
3173
  );
@@ -3183,7 +3224,7 @@ function DepositFlow({
3183
3224
  if (walletId) {
3184
3225
  const selectedOption = walletOptions.find((o) => o.id === walletId);
3185
3226
  setSelectedWalletId(walletId);
3186
- if (enableSolana && _optionalChain([selectedOption, 'optionalAccess', _80 => _80.kind]) === "solana") {
3227
+ if (enableSolana && _optionalChain([selectedOption, 'optionalAccess', _91 => _91.kind]) === "solana") {
3187
3228
  handleSelectSolanaWallet();
3188
3229
  } else {
3189
3230
  handleSelectProvider();
@@ -3192,13 +3233,14 @@ function DepositFlow({
3192
3233
  return;
3193
3234
  }
3194
3235
  }
3195
- if (!hasWalletOptions && dappAddress && !hasReownSession && !dappWalletClient) {
3236
+ if (!hasWalletOptions && dappAddress && !hasReownSession && !dappWalletClient && hasQrAutoAdvanceGraceElapsed) {
3196
3237
  handleSelectTransferCrypto();
3197
3238
  setIsConnectSelectionConfirmed(true);
3198
3239
  }
3199
3240
  }, [
3200
3241
  hasWalletOptions,
3201
3242
  hasReownSession,
3243
+ hasQrAutoAdvanceGraceElapsed,
3202
3244
  enableSolana,
3203
3245
  isConnectSelectionConfirmed,
3204
3246
  flowMode,
@@ -3212,7 +3254,7 @@ function DepositFlow({
3212
3254
  ]);
3213
3255
  if (showConnectStep) {
3214
3256
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3215
- _chunkRVKMKH2Ccjs.ConnectStep,
3257
+ _chunkEAEDK474cjs.ConnectStep,
3216
3258
  {
3217
3259
  walletOptions,
3218
3260
  selectedWalletId: selectedWalletIdEffective,
@@ -3231,7 +3273,7 @@ function DepositFlow({
3231
3273
  const selectedOption = walletOptions.find(
3232
3274
  (o) => o.id === selectedWalletIdEffective
3233
3275
  );
3234
- if (enableSolana && _optionalChain([selectedOption, 'optionalAccess', _81 => _81.kind]) === "solana") {
3276
+ if (enableSolana && _optionalChain([selectedOption, 'optionalAccess', _92 => _92.kind]) === "solana") {
3235
3277
  handleSelectSolanaWallet();
3236
3278
  } else {
3237
3279
  handleSelectProvider();
@@ -3268,12 +3310,13 @@ function DepositFlow({
3268
3310
  smartAccount: step.smartAccount,
3269
3311
  solanaDepositAddress: enableSolana ? step.solanaDepositAddress : void 0,
3270
3312
  service,
3313
+ allowedRoutes,
3271
3314
  onDepositDetected: handleDepositAddressDetected,
3272
3315
  onError: handleError
3273
3316
  }
3274
3317
  ),
3275
3318
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3276
- _chunkRVKMKH2Ccjs.ProcessingStep,
3319
+ _chunkEAEDK474cjs.ProcessingStep,
3277
3320
  {
3278
3321
  smartAccount: step.smartAccount,
3279
3322
  txHash: step.txHash,
@@ -3299,8 +3342,8 @@ function DepositFlow({
3299
3342
  }
3300
3343
  if (isSolanaWalletMode) {
3301
3344
  if (!sessionKeyAddress) return null;
3302
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _82 => _82.solanaAddress]);
3303
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _83 => _83.solanaProvider]);
3345
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _93 => _93.solanaAddress]);
3346
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _94 => _94.solanaProvider]);
3304
3347
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
3305
3348
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3306
3349
  SetupStep,
@@ -3395,7 +3438,7 @@ function DepositFlow({
3395
3438
  ) })
3396
3439
  ] }) : null,
3397
3440
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3398
- _chunkRVKMKH2Ccjs.ProcessingStep,
3441
+ _chunkEAEDK474cjs.ProcessingStep,
3399
3442
  {
3400
3443
  smartAccount: step.smartAccount,
3401
3444
  txHash: step.txHash,
@@ -3419,16 +3462,16 @@ function DepositFlow({
3419
3462
  )
3420
3463
  ] });
3421
3464
  }
3422
- if (!_optionalChain([signerContext, 'optionalAccess', _84 => _84.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _85 => _85.publicClient])) {
3465
+ if (!_optionalChain([signerContext, 'optionalAccess', _95 => _95.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _96 => _96.publicClient])) {
3423
3466
  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..." }) }) }) }) });
3424
3467
  }
3425
3468
  const ownerAddress = signerContext.ownerAddress;
3426
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _86 => _86.walletClient, 'optionalAccess', _87 => _87.chain, 'optionalAccess', _88 => _88.id]), () => ( _optionalChain([signerContext, 'access', _89 => _89.publicClient, 'access', _90 => _90.chain, 'optionalAccess', _91 => _91.id]))), () => ( targetChain));
3469
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _97 => _97.walletClient, 'optionalAccess', _98 => _98.chain, 'optionalAccess', _99 => _99.id]), () => ( _optionalChain([signerContext, 'access', _100 => _100.publicClient, 'access', _101 => _101.chain, 'optionalAccess', _102 => _102.id]))), () => ( targetChain));
3427
3470
  const getReadClientForChain = (chainId) => {
3428
- if (_optionalChain([signerContext, 'access', _92 => _92.publicClient, 'access', _93 => _93.chain, 'optionalAccess', _94 => _94.id]) === chainId) {
3471
+ if (_optionalChain([signerContext, 'access', _103 => _103.publicClient, 'access', _104 => _104.chain, 'optionalAccess', _105 => _105.id]) === chainId) {
3429
3472
  return signerContext.publicClient;
3430
3473
  }
3431
- return _chunkRVKMKH2Ccjs.getPublicClient.call(void 0, chainId);
3474
+ return _chunkEAEDK474cjs.getPublicClient.call(void 0, chainId);
3432
3475
  };
3433
3476
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
3434
3477
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3499,7 +3542,7 @@ function DepositFlow({
3499
3542
  }
3500
3543
  ),
3501
3544
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3502
- _chunkRVKMKH2Ccjs.ProcessingStep,
3545
+ _chunkEAEDK474cjs.ProcessingStep,
3503
3546
  {
3504
3547
  smartAccount: step.smartAccount,
3505
3548
  txHash: step.txHash,
@@ -3527,32 +3570,50 @@ function DepositFlow({
3527
3570
  // src/DepositModal.tsx
3528
3571
 
3529
3572
  var ReownDepositInner = _react.lazy.call(void 0,
3530
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-SXQJYLTX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3573
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-XKP2Z55X.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3531
3574
  );
3532
3575
  function DepositModal(props) {
3533
3576
  const needsReown = !!props.reownAppId;
3577
+ const hasDappWalletClientProp = Object.prototype.hasOwnProperty.call(
3578
+ props,
3579
+ "dappWalletClient"
3580
+ );
3534
3581
  if (needsReown) {
3535
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReownDepositInner, { ...props }) });
3582
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3583
+ ReownDepositInner,
3584
+ {
3585
+ ...props,
3586
+ hasDappWalletClientProp
3587
+ }
3588
+ ) });
3536
3589
  }
3537
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalInner, { ...props });
3590
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3591
+ DepositModalInner,
3592
+ {
3593
+ ...props,
3594
+ hasDappWalletClientProp
3595
+ }
3596
+ );
3538
3597
  }
3539
3598
  DepositModal.displayName = "DepositModal";
3540
3599
  function DepositModalInner({
3541
3600
  dappWalletClient,
3542
3601
  dappPublicClient,
3543
3602
  dappAddress,
3603
+ hasDappWalletClientProp,
3544
3604
  targetChain: targetChainProp,
3545
3605
  targetToken,
3546
3606
  isOpen,
3547
3607
  onClose,
3548
3608
  inline,
3609
+ closeOnOverlayClick,
3549
3610
  sourceChain: sourceChainProp,
3550
3611
  sourceToken,
3551
3612
  defaultAmount,
3552
3613
  recipient,
3553
- backendUrl = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL,
3614
+ backendUrl = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL,
3554
3615
  solanaRpcUrl,
3555
- signerAddress = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS,
3616
+ signerAddress = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS,
3556
3617
  sessionChainIds,
3557
3618
  forceRegister = false,
3558
3619
  waitForFinalTx = true,
@@ -3579,10 +3640,10 @@ function DepositModalInner({
3579
3640
  const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
3580
3641
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
3581
3642
  const backHandlerRef = _react.useRef.call(void 0, void 0);
3582
- const targetChain = _chunkNELAYNA3cjs.getChainId.call(void 0, targetChainProp);
3583
- const sourceChain = sourceChainProp ? _chunkNELAYNA3cjs.getChainId.call(void 0, sourceChainProp) : void 0;
3643
+ const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
3644
+ const sourceChain = sourceChainProp ? _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp) : void 0;
3584
3645
  const service = _react.useMemo.call(void 0,
3585
- () => _chunkRVKMKH2Ccjs.createDepositService.call(void 0, backendUrl, {
3646
+ () => _chunkEAEDK474cjs.createDepositService.call(void 0, backendUrl, {
3586
3647
  debug,
3587
3648
  debugScope: "service:deposit"
3588
3649
  }),
@@ -3590,7 +3651,7 @@ function DepositModalInner({
3590
3651
  );
3591
3652
  _react.useEffect.call(void 0, () => {
3592
3653
  if (isOpen && modalRef.current) {
3593
- _chunkRVKMKH2Ccjs.applyTheme.call(void 0, modalRef.current, theme);
3654
+ _chunkEAEDK474cjs.applyTheme.call(void 0, modalRef.current, theme);
3594
3655
  }
3595
3656
  }, [isOpen, theme]);
3596
3657
  _react.useEffect.call(void 0, () => {
@@ -3600,7 +3661,7 @@ function DepositModalInner({
3600
3661
  _react.useEffect.call(void 0, () => {
3601
3662
  if (isOpen && !hasCalledReady.current) {
3602
3663
  hasCalledReady.current = true;
3603
- _optionalChain([onReady, 'optionalCall', _95 => _95()]);
3664
+ _optionalChain([onReady, 'optionalCall', _106 => _106()]);
3604
3665
  }
3605
3666
  }, [isOpen, onReady]);
3606
3667
  _react.useEffect.call(void 0, () => {
@@ -3619,22 +3680,23 @@ function DepositModalInner({
3619
3680
  setTotalBalanceUsd(balance2);
3620
3681
  }, []);
3621
3682
  const handleBack = _react.useCallback.call(void 0, () => {
3622
- _optionalChain([backHandlerRef, 'access', _96 => _96.current, 'optionalCall', _97 => _97()]);
3683
+ _optionalChain([backHandlerRef, 'access', _107 => _107.current, 'optionalCall', _108 => _108()]);
3623
3684
  }, []);
3624
- const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _98 => _98.showLogo]), () => ( false));
3625
- const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _99 => _99.showStepper]), () => ( false));
3626
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _100 => _100.showBackButton]), () => ( true));
3627
- const balance = _optionalChain([uiConfig, 'optionalAccess', _101 => _101.balance]);
3628
- const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _102 => _102.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
3629
- const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _103 => _103.title]), () => ( "Deposit"));
3685
+ const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.showLogo]), () => ( false));
3686
+ const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.showStepper]), () => ( false));
3687
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.showBackButton]), () => ( true));
3688
+ const balance = _optionalChain([uiConfig, 'optionalAccess', _112 => _112.balance]);
3689
+ const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _113 => _113.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
3690
+ const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _114 => _114.title]), () => ( "Deposit"));
3630
3691
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
3631
3692
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3632
- _chunkRVKMKH2Ccjs.Modal,
3693
+ _chunkEAEDK474cjs.Modal,
3633
3694
  {
3634
3695
  isOpen,
3635
3696
  onClose,
3636
3697
  className,
3637
3698
  inline,
3699
+ closeOnOverlayClick,
3638
3700
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: modalRef, className: "rs-modal", children: [
3639
3701
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header--redesigned", children: [
3640
3702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-left", children: showBackButton && canGoBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3677,20 +3739,51 @@ function DepositModalInner({
3677
3739
  }
3678
3740
  ),
3679
3741
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-title", children: title }),
3680
- showStepper && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-progress", style: { marginLeft: 8 }, children: [0, 1, 2, 3, 4].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3681
- "div",
3682
- {
3683
- className: `rs-modal-progress-dot ${i <= currentStepIndex ? "rs-modal-progress-dot--active" : "rs-modal-progress-dot--inactive"}`
3684
- },
3685
- i
3686
- )) })
3742
+ showStepper && currentStepIndex >= 2 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-indicator", style: { marginLeft: 8 }, children: [
3743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3744
+ "div",
3745
+ {
3746
+ className: `rs-step-indicator-node ${currentStepIndex >= 4 ? "rs-step-indicator-node--complete" : "rs-step-indicator-node--active"}`,
3747
+ children: currentStepIndex >= 4 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3748
+ "svg",
3749
+ {
3750
+ viewBox: "0 0 24 24",
3751
+ fill: "none",
3752
+ stroke: "currentColor",
3753
+ strokeWidth: "3",
3754
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3755
+ "path",
3756
+ {
3757
+ strokeLinecap: "round",
3758
+ strokeLinejoin: "round",
3759
+ d: "M5 12l5 5L20 7"
3760
+ }
3761
+ )
3762
+ }
3763
+ ) : "1"
3764
+ }
3765
+ ),
3766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3767
+ "div",
3768
+ {
3769
+ className: `rs-step-indicator-line ${currentStepIndex >= 4 ? "rs-step-indicator-line--active" : ""}`
3770
+ }
3771
+ ),
3772
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3773
+ "div",
3774
+ {
3775
+ className: `rs-step-indicator-node ${currentStepIndex >= 4 ? "rs-step-indicator-node--active" : "rs-step-indicator-node--inactive"}`,
3776
+ children: "2"
3777
+ }
3778
+ )
3779
+ ] })
3687
3780
  ] }),
3688
3781
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
3689
3782
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
3690
3783
  balance.title,
3691
3784
  ":"
3692
3785
  ] }),
3693
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkRVKMKH2Ccjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3694
3787
  ] })
3695
3788
  ] }),
3696
3789
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3726,6 +3819,7 @@ function DepositModalInner({
3726
3819
  dappWalletClient,
3727
3820
  dappPublicClient,
3728
3821
  dappAddress,
3822
+ hasDappWalletClientProp,
3729
3823
  targetChain,
3730
3824
  targetToken,
3731
3825
  service,