@rhinestone/deposit-modal 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +68 -0
  2. package/dist/{DepositModalReown-6CXXGQ7X.cjs → DepositModalReown-TVO3ZQQK.cjs} +17 -17
  3. package/dist/{DepositModalReown-ELDSTIME.mjs → DepositModalReown-VCY65DJX.mjs} +4 -4
  4. package/dist/WithdrawModal-GR3HLYXU.cjs +11 -0
  5. package/dist/{WithdrawModal-QRMDR5T4.mjs → WithdrawModal-RMCYJJ4S.mjs} +3 -3
  6. package/dist/bearer-transport-CVHNBgoV.d.cts +14 -0
  7. package/dist/bearer-transport-CVHNBgoV.d.ts +14 -0
  8. package/dist/{chunk-2W4BJ5I3.cjs → chunk-34JVJZEZ.cjs} +71 -71
  9. package/dist/{chunk-XCBDJPBD.mjs → chunk-3TEVMP76.mjs} +1 -1
  10. package/dist/chunk-ADEWTBSN.cjs +19 -0
  11. package/dist/{chunk-QMGEK623.mjs → chunk-AIZKGFVA.mjs} +468 -207
  12. package/dist/{chunk-H66WM5AO.mjs → chunk-EKC2IRQG.mjs} +180 -67
  13. package/dist/{chunk-XJMDCBHS.cjs → chunk-JV5OGG53.cjs} +629 -516
  14. package/dist/{chunk-QGNJFDEO.cjs → chunk-N3AAT6BS.cjs} +623 -362
  15. package/dist/{chunk-JCWJ6HW7.cjs → chunk-N6JJG57R.cjs} +1 -1
  16. package/dist/chunk-O4JZKKCZ.cjs +41 -0
  17. package/dist/chunk-PP4QE32S.mjs +19 -0
  18. package/dist/{chunk-ZHX4QROC.mjs → chunk-R2B6VD4E.mjs} +1 -1
  19. package/dist/chunk-X4EUXBHJ.mjs +41 -0
  20. package/dist/compliance.cjs +14 -0
  21. package/dist/compliance.d.cts +10 -0
  22. package/dist/compliance.d.ts +10 -0
  23. package/dist/compliance.mjs +14 -0
  24. package/dist/constants.cjs +3 -3
  25. package/dist/constants.d.cts +1 -1
  26. package/dist/constants.d.ts +1 -1
  27. package/dist/constants.mjs +3 -3
  28. package/dist/deposit.cjs +4 -4
  29. package/dist/deposit.d.cts +2 -2
  30. package/dist/deposit.d.ts +2 -2
  31. package/dist/deposit.mjs +3 -3
  32. package/dist/embed.cjs +16 -16
  33. package/dist/embed.d.cts +1 -1
  34. package/dist/embed.d.ts +1 -1
  35. package/dist/embed.mjs +8 -8
  36. package/dist/index.cjs +5 -5
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.mjs +4 -4
  40. package/dist/offramp.cjs +25 -0
  41. package/dist/offramp.d.cts +28 -0
  42. package/dist/offramp.d.ts +28 -0
  43. package/dist/offramp.mjs +25 -0
  44. package/dist/onramp.cjs +27 -0
  45. package/dist/onramp.d.cts +37 -0
  46. package/dist/onramp.d.ts +37 -0
  47. package/dist/onramp.mjs +27 -0
  48. package/dist/ramp-types-C6aUz4SZ.d.cts +43 -0
  49. package/dist/ramp-types-C6aUz4SZ.d.ts +43 -0
  50. package/dist/server.cjs +54 -2
  51. package/dist/server.d.cts +13 -1
  52. package/dist/server.d.ts +13 -1
  53. package/dist/server.mjs +52 -0
  54. package/dist/{types-B9SbZQIG.d.ts → types-CZYypODQ.d.ts} +3 -2
  55. package/dist/{types-SwGGf0eH.d.cts → types-CbUs4boj.d.cts} +3 -2
  56. package/dist/withdraw.cjs +4 -4
  57. package/dist/withdraw.d.cts +2 -2
  58. package/dist/withdraw.d.ts +2 -2
  59. package/dist/withdraw.mjs +3 -3
  60. package/package.json +35 -5
  61. package/dist/WithdrawModal-QB2U756L.cjs +0 -11
@@ -9,6 +9,11 @@
9
9
 
10
10
 
11
11
 
12
+ var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
13
+
14
+
15
+
16
+
12
17
 
13
18
 
14
19
 
@@ -87,7 +92,6 @@
87
92
 
88
93
 
89
94
 
90
- var _chunkQGNJFDEOcjs = require('./chunk-QGNJFDEO.cjs');
91
95
 
92
96
 
93
97
 
@@ -99,9 +103,10 @@ var _chunkQGNJFDEOcjs = require('./chunk-QGNJFDEO.cjs');
99
103
 
100
104
 
101
105
 
102
- var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
103
106
 
104
107
 
108
+ var _chunkN3AAT6BScjs = require('./chunk-N3AAT6BS.cjs');
109
+
105
110
 
106
111
 
107
112
 
@@ -245,11 +250,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
245
250
 
246
251
  function ChainIcon({ chainId, className, loading }) {
247
252
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, chainId);
248
- const catalogChain = _chunkQGNJFDEOcjs.useCatalogChain.call(void 0, _chunkQGNJFDEOcjs.catalogKeyForChain.call(void 0, chainId));
253
+ const catalogChain = _chunkN3AAT6BScjs.useCatalogChain.call(void 0, _chunkN3AAT6BScjs.catalogKeyForChain.call(void 0, chainId));
249
254
  const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
250
255
  const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
251
256
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
252
- _chunkQGNJFDEOcjs.CdnIcon,
257
+ _chunkN3AAT6BScjs.CdnIcon,
253
258
  {
254
259
  src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
255
260
  alt: name,
@@ -272,7 +277,7 @@ ChainIcon.displayName = "ChainIcon";
272
277
  // src/components/ui/WalletBadgeIcons/index.tsx
273
278
 
274
279
  function BadgeImage({ src, alt = "" }) {
275
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src, alt }) });
280
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src, alt }) });
276
281
  }
277
282
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
278
283
  function WalletBadgeIcons() {
@@ -325,7 +330,7 @@ var DAPP_IMPORT_CATALOG = [
325
330
  // src/components/ui/BrandIcons.tsx
326
331
 
327
332
  function ExchangeBadgeImage({ name }) {
328
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: _nullishCoalesce(_chunkQGNJFDEOcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
333
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: _nullishCoalesce(_chunkN3AAT6BScjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
329
334
  }
330
335
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
331
336
  function CardNetworkIcons() {
@@ -333,7 +338,7 @@ function CardNetworkIcons() {
333
338
  "span",
334
339
  {
335
340
  className: `rs-card-network rs-card-network--${network}`,
336
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
341
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
337
342
  },
338
343
  network
339
344
  )) });
@@ -352,7 +357,7 @@ function DappBadgeIcons() {
352
357
  ).filter(
353
358
  (brand) => Boolean(brand)
354
359
  );
355
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
360
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
356
361
  }
357
362
  DappBadgeIcons.displayName = "DappBadgeIcons";
358
363
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -372,9 +377,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
372
377
  return "No balance";
373
378
  }
374
379
  function fiatIcon(name) {
375
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.AppleIcon, {});
376
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BankIcon, {});
377
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CardIcon, {});
380
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.AppleIcon, {});
381
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BankIcon, {});
382
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CardIcon, {});
378
383
  }
379
384
  function FiatMethodIcon({ option }) {
380
385
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -457,20 +462,20 @@ function renderWalletLeading(row) {
457
462
  }
458
463
  );
459
464
  }
460
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {});
465
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {});
461
466
  }
462
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {});
463
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {});
464
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.UnplugIcon, {});
465
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.MigrateAssetsIcon, {});
466
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-spinner--sm" });
467
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {});
468
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {});
469
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.UnplugIcon, {});
470
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.MigrateAssetsIcon, {});
471
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-spinner--sm" });
467
472
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
468
473
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
469
474
  "+100"
470
475
  ] });
471
476
  var EXTRA_EXCHANGE_COUNT = Math.max(
472
477
  0,
473
- _chunkQGNJFDEOcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
478
+ _chunkN3AAT6BScjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
474
479
  );
475
480
  var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
476
481
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
@@ -528,7 +533,7 @@ function ConnectStep({
528
533
  if (onSelectTransferCrypto) {
529
534
  cryptoRows.push(
530
535
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
531
- _chunkQGNJFDEOcjs.ListRow,
536
+ _chunkN3AAT6BScjs.ListRow,
532
537
  {
533
538
  leading: TRANSFER_CRYPTO_LEADING,
534
539
  title: "Transfer crypto",
@@ -549,7 +554,7 @@ function ConnectStep({
549
554
  );
550
555
  cryptoRows.push(
551
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
552
- _chunkQGNJFDEOcjs.ListRow,
557
+ _chunkN3AAT6BScjs.ListRow,
553
558
  {
554
559
  leading: renderWalletLeading(row),
555
560
  title: collapseToExternal ? "External wallet" : row.label,
@@ -566,7 +571,7 @@ function ConnectStep({
566
571
  if (!hasSessionWallet && handleConnect) {
567
572
  cryptoRows.push(
568
573
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
569
- _chunkQGNJFDEOcjs.ListRow,
574
+ _chunkN3AAT6BScjs.ListRow,
570
575
  {
571
576
  leading: WALLET_LEADING,
572
577
  title: "Connect wallet",
@@ -581,7 +586,7 @@ function ConnectStep({
581
586
  if (onSelectFundFromExchange) {
582
587
  cryptoRows.push(
583
588
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
584
- _chunkQGNJFDEOcjs.ListRow,
589
+ _chunkN3AAT6BScjs.ListRow,
585
590
  {
586
591
  leading: EXCHANGE_LEADING,
587
592
  title: "Connect exchange",
@@ -596,7 +601,7 @@ function ConnectStep({
596
601
  if (onSelectMigrateAssets) {
597
602
  cryptoRows.push(
598
603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
599
- _chunkQGNJFDEOcjs.ListRow,
604
+ _chunkN3AAT6BScjs.ListRow,
600
605
  {
601
606
  leading: MIGRATE_ASSETS_LEADING,
602
607
  title: "Migrate assets",
@@ -617,7 +622,7 @@ function ConnectStep({
617
622
  for (const opt of fiatPaymentMethods) {
618
623
  cashRows.push(
619
624
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
620
- _chunkQGNJFDEOcjs.ListRow,
625
+ _chunkN3AAT6BScjs.ListRow,
621
626
  {
622
627
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
623
628
  title: opt.label,
@@ -632,7 +637,7 @@ function ConnectStep({
632
637
  } else if (fiatLoading) {
633
638
  cashRows.push(
634
639
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
635
- _chunkQGNJFDEOcjs.ListRow,
640
+ _chunkN3AAT6BScjs.ListRow,
636
641
  {
637
642
  leading: SMALL_SPINNER,
638
643
  title: "Loading payment options\u2026",
@@ -661,9 +666,9 @@ function ConnectStep({
661
666
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
662
667
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
663
668
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
664
- _chunkQGNJFDEOcjs.BodyHeader,
669
+ _chunkN3AAT6BScjs.BodyHeader,
665
670
  {
666
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.HandCoinsIcon, {}),
671
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.HandCoinsIcon, {}),
667
672
  title,
668
673
  subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
669
674
  aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -699,7 +704,7 @@ function ConnectStep({
699
704
  children: "Disconnect wallet"
700
705
  }
701
706
  ) }),
702
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
703
708
  ] });
704
709
  }
705
710
  ConnectStep.displayName = "ConnectStep";
@@ -722,17 +727,18 @@ function AssetSelectStep({
722
727
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
723
728
  const [loading, setLoading] = _react.useState.call(void 0, true);
724
729
  const [error, setError] = _react.useState.call(void 0, null);
725
- const isDepositChain = _chunkQGNJFDEOcjs.useIsDepositChain.call(void 0, );
726
- const { catalog } = _chunkQGNJFDEOcjs.useChainCatalog.call(void 0, );
727
- const chainName = _chunkQGNJFDEOcjs.useChainName.call(void 0, );
730
+ const isDepositChain = _chunkN3AAT6BScjs.useIsDepositChain.call(void 0, );
731
+ const isExcludedByRestrictedList = _chunkN3AAT6BScjs.useRestrictedListExclusion.call(void 0, );
732
+ const { catalog } = _chunkN3AAT6BScjs.useChainCatalog.call(void 0, );
733
+ const chainName = _chunkN3AAT6BScjs.useChainName.call(void 0, );
728
734
  const defaultAssetId = _react.useMemo.call(void 0, () => {
729
735
  if (!defaultSourceChain || !defaultSourceToken) return null;
730
- return _chunkQGNJFDEOcjs.getAssetId.call(void 0, {
736
+ return _chunkN3AAT6BScjs.getAssetId.call(void 0, {
731
737
  chainId: defaultSourceChain,
732
738
  token: defaultSourceToken
733
739
  });
734
740
  }, [defaultSourceChain, defaultSourceToken]);
735
- const onTotalBalanceComputedRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
741
+ const onTotalBalanceComputedRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onTotalBalanceComputed);
736
742
  _react.useEffect.call(void 0, () => {
737
743
  let active = true;
738
744
  function emitAssetsUpdate(currentAssets) {
@@ -752,7 +758,7 @@ function AssetSelectStep({
752
758
  try {
753
759
  const portfolio = await service.fetchPortfolio(address);
754
760
  if (!active) return;
755
- const portfolioAssets = _chunkQGNJFDEOcjs.portfolioToAssets.call(void 0, portfolio.tokens);
761
+ const portfolioAssets = _chunkN3AAT6BScjs.portfolioToAssets.call(void 0, portfolio.tokens);
756
762
  setAssets(portfolioAssets);
757
763
  emitAssetsUpdate(portfolioAssets);
758
764
  const hasNative = portfolioAssets.some(
@@ -804,6 +810,9 @@ function AssetSelectStep({
804
810
  return false;
805
811
  }
806
812
  const isNativeToken = a.token.toLowerCase() === _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS;
813
+ if (isNativeToken && isExcludedByRestrictedList(a.chainId, a.token)) {
814
+ return false;
815
+ }
807
816
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
808
817
  return false;
809
818
  return true;
@@ -817,7 +826,7 @@ function AssetSelectStep({
817
826
  if (balB < balA) return -1;
818
827
  return 0;
819
828
  });
820
- }, [assets, isDepositChain]);
829
+ }, [assets, isDepositChain, isExcludedByRestrictedList]);
821
830
  _react.useEffect.call(void 0, () => {
822
831
  if (!defaultAssetId || selectedAssetId) return;
823
832
  if (rows.some((asset) => asset.id === defaultAssetId)) {
@@ -831,7 +840,7 @@ function AssetSelectStep({
831
840
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
832
841
  const numeric = Number(raw);
833
842
  if (!Number.isFinite(numeric)) return raw;
834
- return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
843
+ return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
835
844
  } catch (e3) {
836
845
  return asset.balance;
837
846
  }
@@ -839,20 +848,20 @@ function AssetSelectStep({
839
848
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
840
849
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
841
850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
842
- _chunkQGNJFDEOcjs.BodyHeader,
851
+ _chunkN3AAT6BScjs.BodyHeader,
843
852
  {
844
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
853
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
845
854
  title: "Your assets",
846
855
  subtitle: "Select source assets to transfer"
847
856
  }
848
857
  ),
849
858
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
850
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-text-tertiary" }),
859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-text-tertiary" }),
851
860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
852
861
  ] }),
853
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
862
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
854
863
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
855
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, { className: "rs-empty-icon" }),
864
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, { className: "rs-empty-icon" }),
856
865
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
857
866
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
858
867
  address.slice(0, 6),
@@ -885,13 +894,13 @@ function AssetSelectStep({
885
894
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
886
895
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
887
896
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
888
- _chunkQGNJFDEOcjs.TokenIcon,
897
+ _chunkN3AAT6BScjs.TokenIcon,
889
898
  {
890
899
  symbol: asset.symbol,
891
900
  fallback: asset.symbol.slice(0, 4)
892
901
  }
893
902
  ) }),
894
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
903
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
895
904
  "span",
896
905
  {
897
906
  className: "rs-asset-chain-badge",
@@ -918,14 +927,14 @@ function AssetSelectStep({
918
927
  ] })
919
928
  ] })
920
929
  ] }),
921
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
930
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
922
931
  ]
923
932
  },
924
933
  asset.id
925
934
  );
926
935
  }) }),
927
936
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
928
- _chunkQGNJFDEOcjs.Button,
937
+ _chunkN3AAT6BScjs.Button,
929
938
  {
930
939
  onClick: () => selectedAsset && onContinue(selectedAsset),
931
940
  disabled: !selectedAsset,
@@ -934,7 +943,7 @@ function AssetSelectStep({
934
943
  }
935
944
  )
936
945
  ] }),
937
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
946
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
938
947
  ] });
939
948
  }
940
949
  async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
@@ -942,7 +951,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
942
951
  const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
943
952
  if (!connectedChainId) return [];
944
953
  if (!isDepositChain(connectedChainId)) return [];
945
- const id = _chunkQGNJFDEOcjs.getAssetId.call(void 0, {
954
+ const id = _chunkN3AAT6BScjs.getAssetId.call(void 0, {
946
955
  chainId: connectedChainId,
947
956
  token: _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS
948
957
  });
@@ -1148,7 +1157,7 @@ function AmountStep({
1148
1157
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1149
1158
  if (!balanceTarget || !publicClient) return;
1150
1159
  try {
1151
- const bal = _chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1160
+ const bal = _chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1152
1161
  address: asset.token,
1153
1162
  abi: _viem.erc20Abi,
1154
1163
  functionName: "balanceOf",
@@ -1169,7 +1178,7 @@ function AmountStep({
1169
1178
  hasAttemptedSwitch.current = true;
1170
1179
  switchChain(asset.chainId).catch((err) => {
1171
1180
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1172
- setError(_chunkQGNJFDEOcjs.formatUserError.call(void 0, raw));
1181
+ setError(_chunkN3AAT6BScjs.formatUserError.call(void 0, raw));
1173
1182
  });
1174
1183
  }
1175
1184
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1222,7 +1231,7 @@ function AmountStep({
1222
1231
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1223
1232
  const numeric = Number(raw);
1224
1233
  if (!Number.isFinite(numeric)) return raw;
1225
- return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
1234
+ return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
1226
1235
  } catch (e8) {
1227
1236
  return "\u2026";
1228
1237
  }
@@ -1248,6 +1257,11 @@ function AmountStep({
1248
1257
  const exceedsBalance = Boolean(
1249
1258
  sourceAmountUnits !== null && balance !== null && sourceAmountUnits > balance
1250
1259
  );
1260
+ const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
1261
+ const boundViolation = _chunkN3AAT6BScjs.depositBoundsViolation.call(void 0,
1262
+ boundsFor(asset.chainId, asset.token),
1263
+ sourceAmountUnits
1264
+ );
1251
1265
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
1252
1266
  const handlePresetClick = (percentage) => {
1253
1267
  if (balance === null) return;
@@ -1271,7 +1285,7 @@ function AmountStep({
1271
1285
  if (error) setError(null);
1272
1286
  };
1273
1287
  const handleContinue = async () => {
1274
- if (chainMismatch) return;
1288
+ if (chainMismatch || boundViolation) return;
1275
1289
  let effectiveAmount = numericAmount;
1276
1290
  if (isBelowMin && minDepositUsd !== null) {
1277
1291
  effectiveAmount = minDepositUsd;
@@ -1305,17 +1319,17 @@ function AmountStep({
1305
1319
  _nullishCoalesce(balance, () => ( void 0))
1306
1320
  );
1307
1321
  };
1308
- const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
1322
+ const continueLabel = exceedsBalance ? "Insufficient balance" : _nullishCoalesce(boundViolation, () => ( (isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue")));
1309
1323
  const knowsBalance = address !== void 0;
1310
1324
  const needsPricing = !knowsBalance && !isSourceStablecoin;
1311
1325
  const blockedOnPricing = needsPricing && !hasPricing;
1312
- const continueDisabled = chainMismatch || exceedsBalance || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1313
- const chainName = _chunkQGNJFDEOcjs.useChainName.call(void 0, );
1326
+ const continueDisabled = chainMismatch || exceedsBalance || boundViolation !== null || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1327
+ const chainName = _chunkN3AAT6BScjs.useChainName.call(void 0, );
1314
1328
  const sourceChainName = chainName(asset.chainId);
1315
1329
  const targetChainName = chainName(targetChainId);
1316
1330
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1317
1331
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1318
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title }),
1332
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title }),
1319
1333
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1320
1334
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1321
1335
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1335,13 +1349,13 @@ function AmountStep({
1335
1349
  " available",
1336
1350
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1337
1351
  " (~",
1338
- _chunkQGNJFDEOcjs.currencyFormatter.format(balanceUsd),
1352
+ _chunkN3AAT6BScjs.currencyFormatter.format(balanceUsd),
1339
1353
  ")"
1340
1354
  ] })
1341
1355
  ] }),
1342
1356
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1343
1357
  "Min. deposit ",
1344
- _chunkQGNJFDEOcjs.currencyFormatter.format(minDepositUsd)
1358
+ _chunkN3AAT6BScjs.currencyFormatter.format(minDepositUsd)
1345
1359
  ] })
1346
1360
  ] })
1347
1361
  ] }),
@@ -1366,7 +1380,7 @@ function AmountStep({
1366
1380
  " ",
1367
1381
  asset.symbol
1368
1382
  ] }),
1369
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: asset.symbol }) })
1383
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: asset.symbol }) })
1370
1384
  ] })
1371
1385
  ] }),
1372
1386
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1377,21 +1391,21 @@ function AmountStep({
1377
1391
  " ",
1378
1392
  targetSymbol
1379
1393
  ] }),
1380
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: targetSymbol }) })
1394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: targetSymbol }) })
1381
1395
  ] })
1382
1396
  ] }),
1383
1397
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1384
1398
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1385
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkQGNJFDEOcjs.currencyFormatter.format(balanceAfterUsd) })
1399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN3AAT6BScjs.currencyFormatter.format(balanceAfterUsd) })
1386
1400
  ] })
1387
1401
  ] }),
1388
- blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: [
1402
+ blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: [
1389
1403
  asset.symbol,
1390
1404
  " can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
1391
1405
  ] }),
1392
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
1406
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
1393
1407
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1394
- _chunkQGNJFDEOcjs.Button,
1408
+ _chunkN3AAT6BScjs.Button,
1395
1409
  {
1396
1410
  onClick: handleContinue,
1397
1411
  fullWidth: true,
@@ -1400,7 +1414,7 @@ function AmountStep({
1400
1414
  }
1401
1415
  )
1402
1416
  ] }),
1403
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
1417
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
1404
1418
  ] });
1405
1419
  }
1406
1420
 
@@ -1427,14 +1441,14 @@ function ReviewDetails({
1427
1441
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1428
1442
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1429
1443
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1430
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: sourceChainIcon }) })
1444
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: sourceChainIcon }) })
1431
1445
  ] })
1432
1446
  ] }),
1433
1447
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1434
1448
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1435
1449
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1436
1450
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1437
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: targetChainIcon }) })
1451
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: targetChainIcon }) })
1438
1452
  ] })
1439
1453
  ] }),
1440
1454
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1449,21 +1463,21 @@ function ReviewDetails({
1449
1463
  " ",
1450
1464
  sendSymbol
1451
1465
  ] }),
1452
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: sendSymbol }) })
1466
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: sendSymbol }) })
1453
1467
  ] })
1454
1468
  ] }),
1455
1469
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1456
1470
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1457
1471
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1458
1472
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1459
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: receiveSymbol }) })
1473
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: receiveSymbol }) })
1460
1474
  ] })
1461
1475
  ] }),
1462
1476
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1463
1477
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
1464
1478
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1465
1479
  fee.display === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-skeleton rs-skeleton-fee", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: fee.struck ? { textDecoration: "line-through" } : void 0, children: fee.display }),
1466
- fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.InfoIcon, {}) }) })
1480
+ fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.InfoIcon, {}) }) })
1467
1481
  ] })
1468
1482
  ] })
1469
1483
  ] });
@@ -1651,6 +1665,14 @@ function ConfirmStep({
1651
1665
  const [permitUnavailable, setPermitUnavailable] = _react.useState.call(void 0, null);
1652
1666
  const [permitDisabled, setPermitDisabled] = _react.useState.call(void 0, false);
1653
1667
  const [submissionUncertain, setSubmissionUncertain] = _react.useState.call(void 0, false);
1668
+ const [previewRefusal, setPreviewRefusal] = _react.useState.call(void 0, null);
1669
+ const [permitRefusal, setPermitRefusal] = _react.useState.call(void 0, null);
1670
+ const [previewSettledKey, setPreviewSettledKey] = _react.useState.call(void 0,
1671
+ null
1672
+ );
1673
+ const [permitSettledKey, setPermitSettledKey] = _react.useState.call(void 0,
1674
+ null
1675
+ );
1654
1676
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
1655
1677
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
1656
1678
  onSubmittingChangeRef.current = onSubmittingChange;
@@ -1681,17 +1703,17 @@ function ConfirmStep({
1681
1703
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
1682
1704
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
1683
1705
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
1684
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1685
- const mustHaveQuote = !appFeesResolved || _chunkQGNJFDEOcjs.resolveAppFeeBps.call(void 0,
1706
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1707
+ const mustHaveQuote = !appFeesResolved || _chunkN3AAT6BScjs.resolveAppFeeBps.call(void 0,
1686
1708
  appFees,
1687
1709
  `eip155:${quoteSource.chainId}`,
1688
1710
  quoteSource.token
1689
1711
  ) > 0;
1690
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkQGNJFDEOcjs.quoteFeeRow.call(void 0,
1712
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunkN3AAT6BScjs.quoteFeeRow.call(void 0,
1691
1713
  _optionalChain([quote, 'optionalAccess', _67 => _67.fees])
1692
1714
  );
1693
1715
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1694
- const permitEligible = enableGaslessDeposit && !_chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1716
+ const permitEligible = enableGaslessDeposit && !_chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1695
1717
  const permitRequestKey = JSON.stringify([
1696
1718
  smartAccount.toLowerCase(),
1697
1719
  asset.chainId,
@@ -1701,36 +1723,51 @@ function ConfirmStep({
1701
1723
  address.toLowerCase()
1702
1724
  ]);
1703
1725
  const permit = permitEligible && !permitDisabled && _optionalChain([permitResult, 'optionalAccess', _68 => _68.requestKey]) === permitRequestKey ? permitResult.prepared : null;
1726
+ const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
1727
+ const activeRefusal = _nullishCoalesce((_optionalChain([previewRefusal, 'optionalAccess', _69 => _69.requestKey]) === quoteRequestKey ? previewRefusal.refusal : null), () => ( (_optionalChain([permitRefusal, 'optionalAccess', _70 => _70.requestKey]) === permitRequestKey ? permitRefusal.refusal : null)));
1728
+ const blockedReason = activeRefusal ? _chunkN3AAT6BScjs.describePolicyRefusal.call(void 0,
1729
+ activeRefusal,
1730
+ boundsFor(quoteSource.chainId, quoteSource.token)
1731
+ ) : null;
1732
+ const requestsAmount = (() => {
1733
+ try {
1734
+ return _viem.parseUnits.call(void 0, amount, asset.decimals) > 0n;
1735
+ } catch (e12) {
1736
+ return false;
1737
+ }
1738
+ })();
1739
+ const previewPending = setupReady && requestsAmount && previewSettledKey !== quoteRequestKey;
1740
+ const permitPending = permitEligible && !permitDisabled && requestsAmount && permitSettledKey !== permitRequestKey;
1704
1741
  const receiveDisplay = (() => {
1705
1742
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1706
1743
  if (quote) {
1707
- const quoted = _chunkQGNJFDEOcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1744
+ const quoted = _chunkN3AAT6BScjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1708
1745
  if (quoted !== void 0) return quoted;
1709
1746
  }
1710
1747
  const usdValue = Number(targetAmount);
1711
1748
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1712
- const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
1749
+ const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
1713
1750
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1714
1751
  sourceSymbol: asset.symbol,
1715
1752
  targetSymbol,
1716
1753
  sourceAmountUsd,
1717
- sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1754
+ sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1718
1755
  // The target is the curated deposit destination, so a stablecoin target
1719
1756
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1720
1757
  // target prices). Not applied to the source — that can be a held token.
1721
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1758
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1722
1759
  });
1723
1760
  if (estimate !== void 0) return estimate;
1724
1761
  return targetSymbol;
1725
1762
  })();
1726
- const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _69 => _69.timing, 'optionalAccess', _70 => _70.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1727
- const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkQGNJFDEOcjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1763
+ const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _71 => _71.timing, 'optionalAccess', _72 => _72.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1764
+ const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkN3AAT6BScjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1728
1765
  _react.useEffect.call(void 0, () => {
1729
1766
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1730
1767
  hasAttemptedSwitch.current = true;
1731
1768
  switchChain(asset.chainId).catch((err) => {
1732
1769
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1733
- setError(_chunkQGNJFDEOcjs.formatUserError.call(void 0, raw));
1770
+ setError(_chunkN3AAT6BScjs.formatUserError.call(void 0, raw));
1734
1771
  });
1735
1772
  }
1736
1773
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1746,7 +1783,7 @@ function ConfirmStep({
1746
1783
  let units;
1747
1784
  try {
1748
1785
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
1749
- } catch (e12) {
1786
+ } catch (e13) {
1750
1787
  return;
1751
1788
  }
1752
1789
  if (units <= 0n) return;
@@ -1757,11 +1794,22 @@ function ConfirmStep({
1757
1794
  amount: units.toString()
1758
1795
  }).then((result) => {
1759
1796
  if (cancelled) return;
1797
+ setPreviewSettledKey(quoteRequestKey);
1798
+ if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, result)) {
1799
+ setQuoteResult(null);
1800
+ setPreviewRefusal({
1801
+ requestKey: quoteRequestKey,
1802
+ refusal: result.policyRefusal
1803
+ });
1804
+ return;
1805
+ }
1806
+ setPreviewRefusal(null);
1760
1807
  setQuoteResult(
1761
1808
  result === null ? null : { requestKey: quoteRequestKey, quote: result }
1762
1809
  );
1763
1810
  }).catch(() => {
1764
1811
  if (cancelled) return;
1812
+ setPreviewSettledKey(quoteRequestKey);
1765
1813
  setQuoteResult(null);
1766
1814
  });
1767
1815
  return () => {
@@ -1783,7 +1831,7 @@ function ConfirmStep({
1783
1831
  let units;
1784
1832
  try {
1785
1833
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
1786
- } catch (e13) {
1834
+ } catch (e14) {
1787
1835
  return;
1788
1836
  }
1789
1837
  if (units <= 0n) return;
@@ -1794,7 +1842,16 @@ function ConfirmStep({
1794
1842
  amount: units.toString(),
1795
1843
  owner: address
1796
1844
  }).then((prepared) => {
1797
- if (cancelled || prepared === null) return;
1845
+ if (cancelled) return;
1846
+ setPermitSettledKey(permitRequestKey);
1847
+ if (prepared === null) return;
1848
+ if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, prepared)) {
1849
+ setPermitRefusal({
1850
+ requestKey: permitRequestKey,
1851
+ refusal: prepared.policyRefusal
1852
+ });
1853
+ return;
1854
+ }
1798
1855
  if (!prepared.available) {
1799
1856
  setPermitUnavailable(prepared.reason);
1800
1857
  return;
@@ -1819,6 +1876,7 @@ function ConfirmStep({
1819
1876
  prepared: authorization
1820
1877
  });
1821
1878
  }).catch(() => {
1879
+ if (!cancelled) setPermitSettledKey(permitRequestKey);
1822
1880
  });
1823
1881
  return () => {
1824
1882
  cancelled = true;
@@ -1852,7 +1910,7 @@ function ConfirmStep({
1852
1910
  let amountUnits;
1853
1911
  try {
1854
1912
  amountUnits = _viem.parseUnits.call(void 0, amount, asset.decimals);
1855
- } catch (e14) {
1913
+ } catch (e15) {
1856
1914
  setError("Please enter a valid amount");
1857
1915
  return;
1858
1916
  }
@@ -1860,6 +1918,11 @@ function ConfirmStep({
1860
1918
  setError("Insufficient balance");
1861
1919
  return;
1862
1920
  }
1921
+ if (previewPending || permitPending) return;
1922
+ if (blockedReason) {
1923
+ setError(blockedReason);
1924
+ return;
1925
+ }
1863
1926
  if (!quote && mustHaveQuote) {
1864
1927
  setError("Quote unavailable \u2014 please try again");
1865
1928
  return;
@@ -1917,11 +1980,11 @@ function ConfirmStep({
1917
1980
  );
1918
1981
  } catch (err) {
1919
1982
  const raw = err instanceof Error ? err.message : "Signing failed";
1920
- const safeToTransfer = !submitStarted || err instanceof _chunkQGNJFDEOcjs.PermitDepositSubmitError && err.safeToTransfer;
1983
+ const safeToTransfer = !submitStarted || err instanceof _chunkN3AAT6BScjs.PermitDepositSubmitError && err.safeToTransfer;
1921
1984
  if (safeToTransfer) setPermitDisabled(true);
1922
- const message = safeToTransfer ? _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1985
+ const message = safeToTransfer ? _chunkN3AAT6BScjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1923
1986
  setError(message);
1924
- _optionalChain([onError, 'optionalCall', _71 => _71(message, "PERMIT_ERROR", raw)]);
1987
+ _optionalChain([onError, 'optionalCall', _73 => _73(message, "PERMIT_ERROR", raw)]);
1925
1988
  } finally {
1926
1989
  setIsSubmitting(false);
1927
1990
  }
@@ -1940,7 +2003,7 @@ function ConfirmStep({
1940
2003
  const result = await executeTransfer(amountUnits);
1941
2004
  hash = result.txHash;
1942
2005
  resolvedSourceToken = result.sourceToken;
1943
- } else if (_chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset)) {
2006
+ } else if (_chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset)) {
1944
2007
  hash = await walletClient.sendTransaction({
1945
2008
  account,
1946
2009
  chain,
@@ -1957,7 +2020,7 @@ function ConfirmStep({
1957
2020
  args: [transferTo, amountUnits]
1958
2021
  });
1959
2022
  }
1960
- _optionalChain([onDepositSubmitted, 'optionalCall', _72 => _72(hash, asset.chainId, amountUnits.toString())]);
2023
+ _optionalChain([onDepositSubmitted, 'optionalCall', _74 => _74(hash, asset.chainId, amountUnits.toString())]);
1961
2024
  onConfirm(
1962
2025
  hash,
1963
2026
  asset.chainId,
@@ -1971,18 +2034,18 @@ function ConfirmStep({
1971
2034
  );
1972
2035
  } catch (err) {
1973
2036
  const raw = err instanceof Error ? err.message : "Transfer failed";
1974
- const uncertain = _chunkQGNJFDEOcjs.isSubmissionUncertain.call(void 0, err);
1975
- const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw);
2037
+ const uncertain = _chunkN3AAT6BScjs.isSubmissionUncertain.call(void 0, err);
2038
+ const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkN3AAT6BScjs.formatUserError.call(void 0, raw);
1976
2039
  if (uncertain) setSubmissionUncertain(true);
1977
2040
  setError(message);
1978
- _optionalChain([onError, 'optionalCall', _73 => _73(message, "TRANSFER_ERROR", raw)]);
2041
+ _optionalChain([onError, 'optionalCall', _75 => _75(message, "TRANSFER_ERROR", raw)]);
1979
2042
  } finally {
1980
2043
  setIsSubmitting(false);
1981
2044
  }
1982
2045
  };
1983
2046
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1984
2047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1985
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Review deposit" }),
2048
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Review deposit" }),
1986
2049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1987
2050
  ReviewDetails,
1988
2051
  {
@@ -1998,16 +2061,18 @@ function ConfirmStep({
1998
2061
  fee: { display: feeDisplay, struck: feesFullySponsored }
1999
2062
  }
2000
2063
  ),
2001
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
2064
+ (_nullishCoalesce(error, () => ( blockedReason))) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: _nullishCoalesce(error, () => ( blockedReason)) }),
2002
2065
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2003
- _chunkQGNJFDEOcjs.Button,
2066
+ _chunkN3AAT6BScjs.Button,
2004
2067
  {
2005
2068
  onClick: handleConfirm,
2006
2069
  loading: isSubmitting,
2007
2070
  loadingText: permit ? "Waiting for signature..." : "Submitting transaction...",
2008
2071
  disabled: (
2009
2072
  // An earlier send whose outcome is unknown. Never re-offered.
2010
- submissionUncertain || // Signing is off-chain, so a chain mismatch only blocks the
2073
+ submissionUncertain || // The deposit on screen would be rejected at ingest.
2074
+ blockedReason !== null || // A refusal for what is on screen may still be in flight.
2075
+ previewPending || permitPending || // Signing is off-chain, so a chain mismatch only blocks the
2011
2076
  // transfer path.
2012
2077
  chainMismatch && !permit || !amount || Number(amount) <= 0 || // Fee-charging route: block until the authoritative quote resolves
2013
2078
  // (covers both loading and an unavailable preview). Fee-free routes
@@ -2027,7 +2092,7 @@ function ConfirmStep({
2027
2092
  ] }),
2028
2093
  !permit && permitEligible && permitUnavailable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-gasless-note", children: permitUnavailable === "permit2-approval-required" ? "Gasless unavailable until Permit2 is approved; Continue sends a token transaction." : "This wallet/token cannot use gasless authorization; Continue sends a token transaction." })
2029
2094
  ] }),
2030
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2095
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2031
2096
  ] });
2032
2097
  }
2033
2098
 
@@ -2049,12 +2114,13 @@ function QrReviewStep({
2049
2114
  const [quote, setQuote] = _react.useState.call(void 0, { state: "loading", value: null });
2050
2115
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
2051
2116
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
2117
+ const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
2052
2118
  _react.useEffect.call(void 0, () => {
2053
2119
  let cancelled = false;
2054
2120
  let units;
2055
2121
  try {
2056
2122
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
2057
- } catch (e15) {
2123
+ } catch (e16) {
2058
2124
  setQuote({ state: "unavailable", value: null });
2059
2125
  return;
2060
2126
  }
@@ -2070,6 +2136,14 @@ function QrReviewStep({
2070
2136
  amount: units.toString()
2071
2137
  }).then((result) => {
2072
2138
  if (cancelled) return;
2139
+ if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, result)) {
2140
+ setQuote({
2141
+ state: "refused",
2142
+ value: null,
2143
+ refusal: result.policyRefusal
2144
+ });
2145
+ return;
2146
+ }
2073
2147
  setQuote(
2074
2148
  result ? { state: "ready", value: result } : { state: "unavailable", value: null }
2075
2149
  );
@@ -2080,30 +2154,30 @@ function QrReviewStep({
2080
2154
  cancelled = true;
2081
2155
  };
2082
2156
  }, [service, smartAccount, asset, amount]);
2083
- const formattedSendAmount = _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2157
+ const formattedSendAmount = _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2084
2158
  const receiveDisplay = (() => {
2085
2159
  if (quote.value) {
2086
- const quoted = _chunkQGNJFDEOcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2160
+ const quoted = _chunkN3AAT6BScjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2087
2161
  if (quoted !== void 0) return quoted;
2088
2162
  }
2089
2163
  const usdValue = Number(targetAmount);
2090
- const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
2164
+ const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
2091
2165
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
2092
2166
  sourceSymbol: asset.symbol,
2093
2167
  targetSymbol,
2094
2168
  sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
2095
- sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2096
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2169
+ sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2170
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2097
2171
  });
2098
2172
  return _nullishCoalesce(estimate, () => ( targetSymbol));
2099
2173
  })();
2100
- const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _74 => _74.value, 'optionalAccess', _75 => _75.timing, 'optionalAccess', _76 => _76.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2101
- const estimatedTime = expectedSeconds !== void 0 ? _chunkQGNJFDEOcjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2102
- const { display: quotedFee, struck } = _chunkQGNJFDEOcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _77 => _77.value, 'optionalAccess', _78 => _78.fees]));
2103
- const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
2174
+ const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _76 => _76.value, 'optionalAccess', _77 => _77.timing, 'optionalAccess', _78 => _78.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2175
+ const estimatedTime = expectedSeconds !== void 0 ? _chunkN3AAT6BScjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2176
+ const { display: quotedFee, struck } = _chunkN3AAT6BScjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _79 => _79.value, 'optionalAccess', _80 => _80.fees]));
2177
+ const feeDisplay = quote.state === "unavailable" || quote.state === "refused" ? "\u2014" : quotedFee;
2104
2178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2105
2179
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2106
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2180
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2107
2181
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2108
2182
  ReviewDetails,
2109
2183
  {
@@ -2119,9 +2193,13 @@ function QrReviewStep({
2119
2193
  fee: { display: feeDisplay, struck }
2120
2194
  }
2121
2195
  ),
2122
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2196
+ quote.state === "refused" && quote.refusal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: _chunkN3AAT6BScjs.describePolicyRefusal.call(void 0,
2197
+ quote.refusal,
2198
+ boundsFor(asset.chainId, asset.token)
2199
+ ) }),
2200
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2123
2201
  ] }),
2124
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2202
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2125
2203
  ] });
2126
2204
  }
2127
2205
  QrReviewStep.displayName = "QrReviewStep";
@@ -2152,20 +2230,20 @@ function DepositAddressSkeleton({
2152
2230
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2153
2231
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2154
2232
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2155
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2233
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2156
2234
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2157
2235
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2158
2236
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
2159
2237
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2160
2238
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2161
- _chunkQGNJFDEOcjs.CdnIcon,
2239
+ _chunkN3AAT6BScjs.CdnIcon,
2162
2240
  {
2163
2241
  src: chainIcon,
2164
2242
  className: "rs-deposit-address-dropdown-icon"
2165
2243
  }
2166
2244
  ),
2167
2245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2168
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2246
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2169
2247
  ] })
2170
2248
  ] }),
2171
2249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2173,9 +2251,9 @@ function DepositAddressSkeleton({
2173
2251
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2174
2252
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2175
2253
  "Min.$",
2176
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0.1))).toFixed(2),
2177
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2178
- _chunkQGNJFDEOcjs.InfoIcon,
2254
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _81 => _81.minDepositUsd]), () => ( 0.1))).toFixed(2),
2255
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2256
+ _chunkN3AAT6BScjs.InfoIcon,
2179
2257
  {
2180
2258
  className: "rs-deposit-address-min-icon",
2181
2259
  "aria-hidden": "true"
@@ -2185,14 +2263,14 @@ function DepositAddressSkeleton({
2185
2263
  ] }),
2186
2264
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2187
2265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2188
- _chunkQGNJFDEOcjs.TokenIcon,
2266
+ _chunkN3AAT6BScjs.TokenIcon,
2189
2267
  {
2190
2268
  symbol: defaultToken,
2191
2269
  className: "rs-deposit-address-dropdown-icon"
2192
2270
  }
2193
2271
  ),
2194
2272
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2195
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2273
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2196
2274
  ] })
2197
2275
  ] })
2198
2276
  ] }),
@@ -2207,7 +2285,7 @@ function DepositAddressSkeleton({
2207
2285
  ] }),
2208
2286
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
2209
2287
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
2210
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CopyIcon, {}),
2288
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CopyIcon, {}),
2211
2289
  "Copy address"
2212
2290
  ] }),
2213
2291
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2224,7 +2302,7 @@ function DepositAddressSkeleton({
2224
2302
  }
2225
2303
  )
2226
2304
  ] }),
2227
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2305
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2228
2306
  ] });
2229
2307
  }
2230
2308
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2236,9 +2314,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
2236
2314
  var MAX_POLL_INTERVAL = 3e4;
2237
2315
  var BACKOFF_MULTIPLIER = 1.5;
2238
2316
  function isEventForTx(event, txHash) {
2239
- const eventTxHash = _chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event);
2317
+ const eventTxHash = _chunkN3AAT6BScjs.getEventTxHash.call(void 0, event);
2240
2318
  if (!eventTxHash) return false;
2241
- return _chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2319
+ return _chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2242
2320
  }
2243
2321
  function truncateHash(hash) {
2244
2322
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -2268,7 +2346,7 @@ function formatTimestamp(ms) {
2268
2346
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
2269
2347
  }
2270
2348
  function formatBridgeFailedMessage(event) {
2271
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _80 => _80.data]), () => ( {}));
2349
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _82 => _82.data]), () => ( {}));
2272
2350
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
2273
2351
  if (backendMessage.length > 0) {
2274
2352
  const lower = backendMessage.toLowerCase();
@@ -2288,7 +2366,7 @@ function formatBridgeFailedMessage(event) {
2288
2366
  }
2289
2367
  return "Bridge failed";
2290
2368
  }
2291
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2369
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2292
2370
  function DepositNotification({
2293
2371
  deposit,
2294
2372
  smartAccount,
@@ -2322,7 +2400,7 @@ function DepositNotification({
2322
2400
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
2323
2401
  const pollTimeoutRef = _react.useRef.call(void 0, null);
2324
2402
  const completedRef = _react.useRef.call(void 0, false);
2325
- const depositContextRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, {
2403
+ const depositContextRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, {
2326
2404
  amount,
2327
2405
  sourceChain,
2328
2406
  sourceToken: token,
@@ -2330,8 +2408,8 @@ function DepositNotification({
2330
2408
  targetChain,
2331
2409
  targetToken
2332
2410
  });
2333
- const onCompleteRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onComplete);
2334
- const onFailedRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onFailed);
2411
+ const onCompleteRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onComplete);
2412
+ const onFailedRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onFailed);
2335
2413
  const handleComplete = _react.useCallback.call(void 0,
2336
2414
  (destTxHash) => {
2337
2415
  if (completedRef.current) return;
@@ -2340,7 +2418,7 @@ function DepositNotification({
2340
2418
  setCompletedAt(Date.now());
2341
2419
  setStatus("complete");
2342
2420
  const context = depositContextRef.current;
2343
- _optionalChain([onCompleteRef, 'access', _81 => _81.current, 'optionalCall', _82 => _82(txHash, destTxHash, {
2421
+ _optionalChain([onCompleteRef, 'access', _83 => _83.current, 'optionalCall', _84 => _84(txHash, destTxHash, {
2344
2422
  amount: context.amount,
2345
2423
  sourceChain: context.sourceChain,
2346
2424
  sourceToken: context.sourceToken,
@@ -2356,7 +2434,7 @@ function DepositNotification({
2356
2434
  if (completedRef.current) return;
2357
2435
  completedRef.current = true;
2358
2436
  setStatus("failed");
2359
- _optionalChain([onFailedRef, 'access', _83 => _83.current, 'optionalCall', _84 => _84(txHash, error)]);
2437
+ _optionalChain([onFailedRef, 'access', _85 => _85.current, 'optionalCall', _86 => _86(txHash, error)]);
2360
2438
  },
2361
2439
  [onFailedRef, txHash]
2362
2440
  );
@@ -2374,22 +2452,22 @@ function DepositNotification({
2374
2452
  if (!isMounted) return;
2375
2453
  const lastEvent = data.lastEvent;
2376
2454
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
2377
- if (_optionalChain([eventForTx, 'optionalAccess', _85 => _85.type]) === "bridge-complete") {
2378
- const destTx = _optionalChain([eventForTx, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.destination, 'optionalAccess', _88 => _88.transactionHash]);
2455
+ if (_optionalChain([eventForTx, 'optionalAccess', _87 => _87.type]) === "bridge-complete") {
2456
+ const destTx = _optionalChain([eventForTx, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.destination, 'optionalAccess', _90 => _90.transactionHash]);
2379
2457
  handleComplete(destTx);
2380
2458
  return;
2381
2459
  }
2382
- if (_optionalChain([eventForTx, 'optionalAccess', _89 => _89.type]) === "bridge-failed") {
2460
+ if (_optionalChain([eventForTx, 'optionalAccess', _91 => _91.type]) === "bridge-failed") {
2383
2461
  handleFailed(formatBridgeFailedMessage(eventForTx));
2384
2462
  return;
2385
2463
  }
2386
- if (_optionalChain([eventForTx, 'optionalAccess', _90 => _90.type]) === "error") {
2387
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _91 => _91.data, 'optionalAccess', _92 => _92.message]), () => ( "Unknown error"));
2464
+ if (_optionalChain([eventForTx, 'optionalAccess', _92 => _92.type]) === "error") {
2465
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _93 => _93.data, 'optionalAccess', _94 => _94.message]), () => ( "Unknown error"));
2388
2466
  handleFailed(errorMessage);
2389
2467
  return;
2390
2468
  }
2391
2469
  scheduleNextPoll();
2392
- } catch (e16) {
2470
+ } catch (e17) {
2393
2471
  scheduleNextPoll();
2394
2472
  }
2395
2473
  }
@@ -2422,12 +2500,12 @@ function DepositNotification({
2422
2500
  status,
2423
2501
  txHash
2424
2502
  ]);
2425
- const explorerTxUrl = _chunkQGNJFDEOcjs.useExplorerTxUrl.call(void 0, );
2503
+ const explorerTxUrl = _chunkN3AAT6BScjs.useExplorerTxUrl.call(void 0, );
2426
2504
  const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
2427
2505
  const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2428
2506
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
2429
2507
  const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
2430
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2508
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2431
2509
  "svg",
2432
2510
  {
2433
2511
  className: "rs-deposit-notification-spinner",
@@ -2477,7 +2555,7 @@ function DepositNotification({
2477
2555
  className: "rs-deposit-notification-close",
2478
2556
  onClick: () => onDismiss(deposit.id),
2479
2557
  "aria-label": "Dismiss",
2480
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {})
2558
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {})
2481
2559
  }
2482
2560
  )
2483
2561
  ] }),
@@ -2493,7 +2571,7 @@ function DepositNotification({
2493
2571
  "aria-expanded": expanded,
2494
2572
  children: [
2495
2573
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
2496
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2574
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2497
2575
  ]
2498
2576
  }
2499
2577
  ),
@@ -2553,12 +2631,12 @@ function sourceChainToCaip2(chain) {
2553
2631
  return _chunkOY5N3E6Lcjs.toEvmCaip2.call(void 0, chain);
2554
2632
  }
2555
2633
  function findAddress(tokens, symbol) {
2556
- return _optionalChain([tokens, 'optionalAccess', _93 => _93.find, 'call', _94 => _94((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _95 => _95.address]);
2634
+ return _optionalChain([tokens, 'optionalAccess', _95 => _95.find, 'call', _96 => _96((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _97 => _97.address]);
2557
2635
  }
2558
2636
  function resolveSourceTokenIdentity(input) {
2559
2637
  const { chain, symbol, shortlist, catalogTokens } = input;
2560
2638
  if (!symbol) return void 0;
2561
- const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _96 => _96[String(chain)]]);
2639
+ const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _98 => _98[String(chain)]]);
2562
2640
  const raw = shortlistTokens !== void 0 ? findAddress(shortlistTokens, symbol) : chain === "hypercore" || !Array.isArray(catalogTokens) ? void 0 : findAddress(catalogTokens, symbol);
2563
2641
  if (!raw) return void 0;
2564
2642
  if (chain === "solana") {
@@ -2619,7 +2697,7 @@ function resolveSolanaTokenMeta(token) {
2619
2697
  return {};
2620
2698
  }
2621
2699
  function getDepositEventDetails(event) {
2622
- if (!_optionalChain([event, 'optionalAccess', _97 => _97.type]) || !isRecord(event.data)) return {};
2700
+ if (!_optionalChain([event, 'optionalAccess', _99 => _99.type]) || !isRecord(event.data)) return {};
2623
2701
  if (event.type === "deposit-received") {
2624
2702
  const chainId = asChainId(event.data.chain);
2625
2703
  const token = asString(event.data.token);
@@ -2634,12 +2712,12 @@ function getDepositEventDetails(event) {
2634
2712
  const source = isRecord(event.data.source) ? event.data.source : void 0;
2635
2713
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
2636
2714
  if (source || deposit) {
2637
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _98 => _98.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _99 => _99.chain]))));
2638
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _100 => _100.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _101 => _101.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _102 => _102.token]))));
2715
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _100 => _100.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _101 => _101.chain]))));
2716
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _102 => _102.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _103 => _103.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _104 => _104.token]))));
2639
2717
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
2640
2718
  return {
2641
2719
  chainId,
2642
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _103 => _103.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _104 => _104.amount])))),
2720
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _105 => _105.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _106 => _106.amount])))),
2643
2721
  token,
2644
2722
  ...solanaMeta
2645
2723
  };
@@ -2650,22 +2728,20 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2650
2728
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2651
2729
  }
2652
2730
  function chainLabel(chainId, catalogChain) {
2653
- const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _105 => _105.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2731
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _107 => _107.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2654
2732
  return name.replace(/\s+(One|Mainnet|Smart Chain|Chain)$/i, "");
2655
2733
  }
2656
- function computeTokensForChain(chainId, topTokens, catalogChain) {
2657
- const fromBackend = _optionalChain([topTokens, 'optionalAccess', _106 => _106[String(chainId)], 'optionalAccess', _107 => _107.map, 'call', _108 => _108((t) => t.symbol)]);
2658
- if (fromBackend) return fromBackend;
2659
- return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _109 => _109.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2734
+ function computeTokensForChain(chainId, offer, catalogChain) {
2735
+ const listed = _optionalChain([offer, 'access', _108 => _108.tokensFor, 'call', _109 => _109(chainId), 'optionalAccess', _110 => _110.map, 'call', _111 => _111((t) => t.symbol)]);
2736
+ if (listed) return listed;
2737
+ return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _112 => _112.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2660
2738
  }
2661
- function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
2739
+ function selectionAsAsset(chainId, symbol, offer, catalogChain) {
2662
2740
  if (typeof chainId !== "number" || !symbol) return void 0;
2663
- const fromShortlist = _optionalChain([topTokens, 'optionalAccess', _110 => _110[String(chainId)], 'optionalAccess', _111 => _111.find, 'call', _112 => _112(
2664
- (t) => t.symbol === symbol
2665
- )]);
2666
- const fromCatalog = Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _113 => _113.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2667
- const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _114 => _114.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _115 => _115.address])));
2668
- const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _116 => _116.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _117 => _117.decimals])));
2741
+ const fromShortlist = _optionalChain([offer, 'access', _113 => _113.tokensFor, 'call', _114 => _114(chainId), 'optionalAccess', _115 => _115.find, 'call', _116 => _116((t) => t.symbol === symbol)]);
2742
+ const fromCatalog = !offer.restricted && Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _117 => _117.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2743
+ const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _118 => _118.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _119 => _119.address])));
2744
+ const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _120 => _120.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _121 => _121.decimals])));
2669
2745
  if (!address || decimals === void 0) return void 0;
2670
2746
  return {
2671
2747
  id: `qr-${chainId}-${symbol}`,
@@ -2678,7 +2754,7 @@ function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
2678
2754
  }
2679
2755
  function TokenGlyph({ symbol }) {
2680
2756
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2681
- _chunkQGNJFDEOcjs.TokenIcon,
2757
+ _chunkN3AAT6BScjs.TokenIcon,
2682
2758
  {
2683
2759
  symbol,
2684
2760
  className: "rs-deposit-address-dropdown-icon",
@@ -2708,48 +2784,33 @@ function DepositAddressStep({
2708
2784
  onError
2709
2785
  }) {
2710
2786
  const hasSolana = Boolean(solanaDepositAddress);
2711
- const [topTokens, setTopTokens] = _react.useState.call(void 0, null);
2712
- const [topTokensSettled, setTopTokensSettled] = _react.useState.call(void 0, false);
2713
- _react.useEffect.call(void 0, () => {
2714
- let active = true;
2715
- setTopTokens(null);
2716
- setTopTokensSettled(false);
2717
- service.getTopTokens().then((t) => {
2718
- if (!active) return;
2719
- setTopTokens(t);
2720
- setTopTokensSettled(true);
2721
- if (t) _chunkOY5N3E6Lcjs.publishShortlistTokens.call(void 0, t);
2722
- });
2723
- return () => {
2724
- active = false;
2725
- };
2726
- }, [service]);
2787
+ const offer = _chunkN3AAT6BScjs.useDepositOffer.call(void 0, );
2727
2788
  const BASE_CHAIN_ID2 = 8453;
2728
- const evmChainIds = _chunkQGNJFDEOcjs.useDepositChainIds.call(void 0, );
2729
- const { catalog, isLoading: catalogLoading } = _chunkQGNJFDEOcjs.useChainCatalog.call(void 0, );
2789
+ const evmChainIds = _chunkN3AAT6BScjs.useDepositChainIds.call(void 0, );
2790
+ const { catalog, isLoading: catalogLoading, shortlist } = _chunkN3AAT6BScjs.useChainCatalog.call(void 0, );
2730
2791
  const catalogFor = _react.useCallback.call(void 0,
2731
2792
  (chain) => {
2732
2793
  if (!catalog) return void 0;
2733
- const key = _chunkQGNJFDEOcjs.catalogKeyForChain.call(void 0, chain);
2794
+ const key = _chunkN3AAT6BScjs.catalogKeyForChain.call(void 0, chain);
2734
2795
  return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2735
2796
  },
2736
2797
  [catalog]
2737
2798
  );
2738
2799
  const chainOptions = _react.useMemo.call(void 0, () => {
2739
- const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _118 => _118(chain), 'optionalAccess', _119 => _119.deposit]) !== false;
2800
+ const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _122 => _122(chain), 'optionalAccess', _123 => _123.deposit]) !== false;
2740
2801
  const options = [...evmChainIds];
2741
2802
  const extras = [];
2742
2803
  if (hasSolana && acceptsDeposits("solana")) extras.push("solana");
2743
2804
  if (acceptsDeposits("hypercore")) extras.push("hypercore");
2744
2805
  options.splice(1, 0, ...extras);
2745
2806
  return options.filter(
2746
- (chain) => _optionalChain([topTokens, 'optionalAccess', _120 => _120[String(chain)], 'optionalAccess', _121 => _121.length]) !== 0 && computeTokensForChain(chain, topTokens, catalogFor(chain)).length > 0
2807
+ (chain) => offer.isChainOffered(chain) && computeTokensForChain(chain, offer, catalogFor(chain)).length > 0
2747
2808
  );
2748
- }, [evmChainIds, hasSolana, topTokens, catalogFor]);
2809
+ }, [evmChainIds, hasSolana, offer, catalogFor]);
2749
2810
  const preferredChainId = (options) => options.includes(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(options[0], () => ( BASE_CHAIN_ID2));
2750
- const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _122 => _122.chainId]), () => ( preferredChainId(chainOptions))));
2811
+ const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _124 => _124.chainId]), () => ( preferredChainId(chainOptions))));
2751
2812
  const chainChosenByUser = _react.useRef.call(void 0, initialSource !== void 0);
2752
- const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _123 => _123.chainId]));
2813
+ const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _125 => _125.chainId]));
2753
2814
  _react.useEffect.call(void 0, () => {
2754
2815
  if (chainOptions.length === 0) return;
2755
2816
  const pendingChain2 = pendingChainRef.current;
@@ -2759,24 +2820,24 @@ function DepositAddressStep({
2759
2820
  setSourceChainId(pendingChain2);
2760
2821
  return;
2761
2822
  }
2762
- if (catalogLoading || topTokens === null) return;
2823
+ if (catalogLoading || offer.status !== "ready") return;
2763
2824
  pendingChainRef.current = void 0;
2764
2825
  }
2765
2826
  const stale = chainChosenByUser.current ? !chainOptions.includes(sourceChainId) : sourceChainId !== preferredChainId(chainOptions);
2766
2827
  if (stale) setSourceChainId(preferredChainId(chainOptions));
2767
- }, [chainOptions, sourceChainId, catalogLoading, topTokens]);
2828
+ }, [chainOptions, sourceChainId, catalogLoading, offer.status]);
2768
2829
  const isSolana = sourceChainId === "solana";
2769
2830
  const isHyperCore = sourceChainId === "hypercore";
2770
2831
  const tokensForChain = _react.useMemo.call(void 0,
2771
- () => computeTokensForChain(sourceChainId, topTokens, catalogFor(sourceChainId)),
2772
- [sourceChainId, topTokens, catalogFor]
2832
+ () => computeTokensForChain(sourceChainId, offer, catalogFor(sourceChainId)),
2833
+ [sourceChainId, offer, catalogFor]
2773
2834
  );
2774
2835
  const defaultToken = pickFallbackToken(
2775
2836
  tokensForChain,
2776
- _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _124 => _124.symbol]), () => ( "USDC"))
2837
+ _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _126 => _126.symbol]), () => ( "USDC"))
2777
2838
  );
2778
2839
  const [sourceTokenSymbol, setSourceTokenSymbol] = _react.useState.call(void 0, defaultToken);
2779
- const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _125 => _125.symbol]));
2840
+ const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _127 => _127.symbol]));
2780
2841
  _react.useEffect.call(void 0, () => {
2781
2842
  if (tokensForChain.includes(sourceTokenSymbol)) {
2782
2843
  pendingTokenRef.current = void 0;
@@ -2807,17 +2868,17 @@ function DepositAddressStep({
2807
2868
  () => resolveSourceTokenIdentity({
2808
2869
  chain: sourceChainId,
2809
2870
  symbol: sourceTokenSymbol,
2810
- shortlist: topTokens,
2811
- catalogTokens: _optionalChain([catalogFor, 'call', _126 => _126(sourceChainId), 'optionalAccess', _127 => _127.supportedTokens])
2871
+ shortlist,
2872
+ catalogTokens: offer.restricted ? void 0 : _optionalChain([catalogFor, 'call', _128 => _128(sourceChainId), 'optionalAccess', _129 => _129.supportedTokens])
2812
2873
  }),
2813
- [sourceChainId, sourceTokenSymbol, topTokens, catalogFor]
2874
+ [sourceChainId, sourceTokenSymbol, shortlist, offer.restricted, catalogFor]
2814
2875
  );
2815
2876
  const pendingChain = pendingChainRef.current;
2816
- const sourceSelectionSettled = !catalogLoading && topTokensSettled && chainOptions.length > 0 && (pendingChain === void 0 || pendingChain === sourceChainId) && (chainChosenByUser.current ? chainOptions.includes(sourceChainId) : sourceChainId === preferredChainId(chainOptions));
2877
+ const sourceSelectionSettled = !catalogLoading && offer.status === "ready" && chainOptions.length > 0 && (pendingChain === void 0 || pendingChain === sourceChainId) && (chainChosenByUser.current ? chainOptions.includes(sourceChainId) : sourceChainId === preferredChainId(chainOptions));
2817
2878
  _react.useEffect.call(void 0, () => {
2818
2879
  if (!sourceTokenIdentity) return;
2819
2880
  if (!sourceSelectionSettled) return;
2820
- _optionalChain([onAddressShown, 'optionalCall', _128 => _128({
2881
+ _optionalChain([onAddressShown, 'optionalCall', _130 => _130({
2821
2882
  address: displayAddress,
2822
2883
  sourceChainCaip2: sourceChainToCaip2(sourceChainId),
2823
2884
  sourceTokenIdentity
@@ -2834,8 +2895,8 @@ function DepositAddressStep({
2834
2895
  function handlePointerDown(event) {
2835
2896
  const target = event.target;
2836
2897
  if (!target) return;
2837
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _129 => _129.current, 'optionalAccess', _130 => _130.contains, 'call', _131 => _131(target)]);
2838
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _132 => _132.current, 'optionalAccess', _133 => _133.contains, 'call', _134 => _134(target)]);
2898
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _131 => _131.current, 'optionalAccess', _132 => _132.contains, 'call', _133 => _133(target)]);
2899
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _134 => _134.current, 'optionalAccess', _135 => _135.contains, 'call', _136 => _136(target)]);
2839
2900
  if (clickedChainDropdown || clickedTokenDropdown) return;
2840
2901
  setChainDropdownOpen(false);
2841
2902
  setTokenDropdownOpen(false);
@@ -2851,9 +2912,9 @@ function DepositAddressStep({
2851
2912
  try {
2852
2913
  await navigator.clipboard.writeText(displayAddress);
2853
2914
  setCopied(true);
2854
- _optionalChain([onCopyAddress, 'optionalCall', _135 => _135(true)]);
2915
+ _optionalChain([onCopyAddress, 'optionalCall', _137 => _137(true)]);
2855
2916
  setTimeout(() => setCopied(false), 2e3);
2856
- } catch (e17) {
2917
+ } catch (e18) {
2857
2918
  const textarea = document.createElement("textarea");
2858
2919
  textarea.value = displayAddress;
2859
2920
  textarea.style.position = "fixed";
@@ -2866,14 +2927,14 @@ function DepositAddressStep({
2866
2927
  setCopied(true);
2867
2928
  setTimeout(() => setCopied(false), 2e3);
2868
2929
  }
2869
- _optionalChain([onCopyAddress, 'optionalCall', _136 => _136(copiedWithFallback)]);
2930
+ _optionalChain([onCopyAddress, 'optionalCall', _138 => _138(copiedWithFallback)]);
2870
2931
  }
2871
2932
  }, [displayAddress, onCopyAddress]);
2872
2933
  const handleSelectChain = _react.useCallback.call(void 0,
2873
2934
  (nextChain) => {
2874
2935
  const nextTokens = computeTokensForChain(
2875
2936
  nextChain,
2876
- topTokens,
2937
+ offer,
2877
2938
  catalogFor(nextChain)
2878
2939
  );
2879
2940
  chainChosenByUser.current = true;
@@ -2883,7 +2944,7 @@ function DepositAddressStep({
2883
2944
  setTokenDropdownOpen(false);
2884
2945
  setCopied(false);
2885
2946
  },
2886
- [sourceTokenSymbol, topTokens, catalogFor]
2947
+ [sourceTokenSymbol, offer, catalogFor]
2887
2948
  );
2888
2949
  const onDepositSubmittedRef = _react.useRef.call(void 0, onDepositSubmitted);
2889
2950
  onDepositSubmittedRef.current = onDepositSubmitted;
@@ -2935,10 +2996,10 @@ function DepositAddressStep({
2935
2996
  return;
2936
2997
  }
2937
2998
  const event = status.lastEvent;
2938
- const eventTxHash = _chunkQGNJFDEOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2999
+ const eventTxHash = _chunkN3AAT6BScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN3AAT6BScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2939
3000
  if (baselineTxHashRef.current === void 0) {
2940
3001
  baselineTxHashRef.current = eventTxHash;
2941
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
3002
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2942
3003
  const details = getDepositEventDetails(event);
2943
3004
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
2944
3005
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -2970,7 +3031,7 @@ function DepositAddressStep({
2970
3031
  directTransfer
2971
3032
  };
2972
3033
  setNotifications((prev) => [notification, ...prev]);
2973
- _optionalChain([onDepositSubmittedRef, 'access', _137 => _137.current, 'optionalCall', _138 => _138({
3034
+ _optionalChain([onDepositSubmittedRef, 'access', _139 => _139.current, 'optionalCall', _140 => _140({
2974
3035
  txHash: eventTxHash,
2975
3036
  sourceChain: chainId,
2976
3037
  amount,
@@ -2982,7 +3043,7 @@ function DepositAddressStep({
2982
3043
  if (!cancelled) {
2983
3044
  const msg = err instanceof Error ? err.message : "Failed to check status";
2984
3045
  setPollingError(msg);
2985
- _optionalChain([onErrorRef, 'access', _139 => _139.current, 'optionalCall', _140 => _140(msg, "STATUS_POLL_ERROR")]);
3046
+ _optionalChain([onErrorRef, 'access', _141 => _141.current, 'optionalCall', _142 => _142(msg, "STATUS_POLL_ERROR")]);
2986
3047
  }
2987
3048
  }
2988
3049
  if (!cancelled) {
@@ -2998,37 +3059,46 @@ function DepositAddressStep({
2998
3059
  const handleNotificationComplete = _react.useCallback.call(void 0,
2999
3060
  (txHash, destinationTxHash, context) => {
3000
3061
  isTrackingRef.current = false;
3001
- _optionalChain([onDepositCompleteRef, 'access', _141 => _141.current, 'optionalCall', _142 => _142(txHash, destinationTxHash, context)]);
3062
+ _optionalChain([onDepositCompleteRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, destinationTxHash, context)]);
3002
3063
  },
3003
3064
  []
3004
3065
  );
3005
3066
  const handleNotificationFailed = _react.useCallback.call(void 0,
3006
3067
  (txHash, error) => {
3007
3068
  isTrackingRef.current = false;
3008
- _optionalChain([onDepositFailedRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, error)]);
3069
+ _optionalChain([onDepositFailedRef, 'access', _145 => _145.current, 'optionalCall', _146 => _146(txHash, error)]);
3009
3070
  },
3010
3071
  []
3011
3072
  );
3012
3073
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
3013
3074
  setNotifications((prev) => prev.filter((n) => n.id !== id));
3014
3075
  }, []);
3015
- const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _145 => _145(sourceChainId), 'optionalAccess', _146 => _146.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3076
+ const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _147 => _147(sourceChainId), 'optionalAccess', _148 => _148.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3016
3077
  const reviewAsset = selectionAsAsset(
3017
3078
  sourceChainId,
3018
3079
  sourceTokenSymbol,
3019
- topTokens,
3080
+ offer,
3020
3081
  catalogFor(sourceChainId)
3021
3082
  );
3083
+ if (offer.status === "error") {
3084
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3085
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3086
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: "The tokens this app accepts could not be loaded, so there is no deposit address to show." }),
3087
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Button, { onClick: offer.retry, fullWidth: true, children: "Try again" })
3088
+ ] }) });
3089
+ }
3022
3090
  if (chainOptions.length === 0) {
3023
- if (catalogLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
3091
+ if (catalogLoading || offer.status === "loading") {
3092
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
3093
+ }
3024
3094
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3025
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3026
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3095
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3096
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: catalog ? "This app does not accept deposits from any chain available here." : "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3027
3097
  ] }) });
3028
3098
  }
3029
3099
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
3030
3100
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3031
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3101
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3032
3102
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
3033
3103
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
3034
3104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -3044,14 +3114,14 @@ function DepositAddressStep({
3044
3114
  },
3045
3115
  children: [
3046
3116
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3047
- _chunkQGNJFDEOcjs.CdnIcon,
3117
+ _chunkN3AAT6BScjs.CdnIcon,
3048
3118
  {
3049
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _147 => _147(sourceChainId), 'optionalAccess', _148 => _148.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3119
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _149 => _149(sourceChainId), 'optionalAccess', _150 => _150.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3050
3120
  className: "rs-deposit-address-dropdown-icon"
3051
3121
  }
3052
3122
  ),
3053
3123
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
3054
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3124
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3055
3125
  ]
3056
3126
  }
3057
3127
  ),
@@ -3063,9 +3133,9 @@ function DepositAddressStep({
3063
3133
  onClick: () => handleSelectChain(chainId),
3064
3134
  children: [
3065
3135
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3066
- _chunkQGNJFDEOcjs.CdnIcon,
3136
+ _chunkN3AAT6BScjs.CdnIcon,
3067
3137
  {
3068
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _149 => _149(chainId), 'optionalAccess', _150 => _150.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3138
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _151 => _151(chainId), 'optionalAccess', _152 => _152.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3069
3139
  className: "rs-deposit-address-dropdown-icon"
3070
3140
  }
3071
3141
  ),
@@ -3080,9 +3150,9 @@ function DepositAddressStep({
3080
3150
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
3081
3151
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3082
3152
  "Min.$",
3083
- (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _151 => _151.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _152 => _152.minDepositUsd]), () => ( 0.1))).toFixed(2),
3084
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3085
- _chunkQGNJFDEOcjs.InfoIcon,
3153
+ (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _153 => _153.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _154 => _154.minDepositUsd]), () => ( 0.1))).toFixed(2),
3154
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3155
+ _chunkN3AAT6BScjs.InfoIcon,
3086
3156
  {
3087
3157
  className: "rs-deposit-address-min-icon",
3088
3158
  "aria-hidden": "true"
@@ -3103,7 +3173,7 @@ function DepositAddressStep({
3103
3173
  children: [
3104
3174
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
3105
3175
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
3106
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3176
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3107
3177
  ]
3108
3178
  }
3109
3179
  ),
@@ -3148,7 +3218,7 @@ function DepositAddressStep({
3148
3218
  className: "rs-deposit-address-copy",
3149
3219
  onClick: handleCopy,
3150
3220
  children: [
3151
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CopyIcon, {}),
3221
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CopyIcon, {}),
3152
3222
  copied ? "Copied!" : "Copy address"
3153
3223
  ]
3154
3224
  }
@@ -3183,7 +3253,7 @@ function DepositAddressStep({
3183
3253
  },
3184
3254
  deposit.id
3185
3255
  )) }),
3186
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3256
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3187
3257
  ] });
3188
3258
  }
3189
3259
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -3201,7 +3271,7 @@ function isTrustedSwappedWidgetUrl(url) {
3201
3271
  let parsed;
3202
3272
  try {
3203
3273
  parsed = new URL(url);
3204
- } catch (e18) {
3274
+ } catch (e19) {
3205
3275
  return false;
3206
3276
  }
3207
3277
  return SWAPPED_ORIGINS.includes(parsed.origin);
@@ -3240,7 +3310,7 @@ function FinalisingDepositStep() {
3240
3310
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
3241
3311
  ] })
3242
3312
  ] }),
3243
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3313
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3244
3314
  ] });
3245
3315
  }
3246
3316
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -3270,7 +3340,7 @@ function SwappedOrderTracker({
3270
3340
  ];
3271
3341
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
3272
3342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.HandCoinsIcon, {}), title }),
3343
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.HandCoinsIcon, {}), title }),
3274
3344
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
3275
3345
  const status = stepStates[idx];
3276
3346
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -3284,7 +3354,7 @@ function SwappedOrderTracker({
3284
3354
  {
3285
3355
  className: "rs-swapped-tracker-step-marker",
3286
3356
  "aria-hidden": "true",
3287
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3357
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3288
3358
  "svg",
3289
3359
  {
3290
3360
  className: "rs-swapped-tracker-step-ring",
@@ -3319,7 +3389,7 @@ function SwappedOrderTracker({
3319
3389
  }
3320
3390
  )
3321
3391
  ] }),
3322
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3323
3393
  ] });
3324
3394
  }
3325
3395
  function formatTrackerAmount(amount) {
@@ -3356,14 +3426,14 @@ function hostnameOf(url) {
3356
3426
  if (!url) return "the payment provider";
3357
3427
  try {
3358
3428
  return new URL(url).hostname;
3359
- } catch (e19) {
3429
+ } catch (e20) {
3360
3430
  return "the payment provider";
3361
3431
  }
3362
3432
  }
3363
3433
  function parseMaybeJsonString(raw) {
3364
3434
  try {
3365
3435
  return JSON.parse(raw);
3366
- } catch (e20) {
3436
+ } catch (e21) {
3367
3437
  return raw;
3368
3438
  }
3369
3439
  }
@@ -3382,7 +3452,7 @@ function parseSwappedIframeMessage(raw) {
3382
3452
  if (typeof data === "string") {
3383
3453
  try {
3384
3454
  data = JSON.parse(data);
3385
- } catch (e21) {
3455
+ } catch (e22) {
3386
3456
  return null;
3387
3457
  }
3388
3458
  }
@@ -3493,19 +3563,19 @@ function SwappedProviderStep({
3493
3563
  if (cancelled) return;
3494
3564
  if (!isTrustedSwappedWidgetUrl(res.url)) {
3495
3565
  setLoadError(loadErrorFallback);
3496
- _optionalChain([onErrorRef, 'access', _153 => _153.current, 'optionalCall', _154 => _154(loadErrorFallback, loadErrorCode)]);
3566
+ _optionalChain([onErrorRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156(loadErrorFallback, loadErrorCode)]);
3497
3567
  return;
3498
3568
  }
3499
3569
  setWidgetUrl(res.url);
3500
3570
  expectedExternalCustomerIdRef.current = res.externalCustomerId;
3501
- _optionalChain([onAttemptConsumed, 'optionalCall', _155 => _155(res.externalCustomerId)]);
3571
+ _optionalChain([onAttemptConsumed, 'optionalCall', _157 => _157(res.externalCustomerId)]);
3502
3572
  const sep = res.externalCustomerId.indexOf(":");
3503
3573
  expectedOrderUuidRef.current = sep >= 0 ? res.externalCustomerId.slice(sep + 1) : null;
3504
3574
  }).catch((err) => {
3505
3575
  if (cancelled) return;
3506
3576
  const message = err instanceof Error ? err.message : loadErrorFallback;
3507
3577
  setLoadError(message);
3508
- _optionalChain([onErrorRef, 'access', _156 => _156.current, 'optionalCall', _157 => _157(message, loadErrorCode)]);
3578
+ _optionalChain([onErrorRef, 'access', _158 => _158.current, 'optionalCall', _159 => _159(message, loadErrorCode)]);
3509
3579
  });
3510
3580
  return () => {
3511
3581
  cancelled = true;
@@ -3520,7 +3590,7 @@ function SwappedProviderStep({
3520
3590
  const timer = setTimeout(() => {
3521
3591
  const message = "Iframe took too long to load.";
3522
3592
  setLoadError(message);
3523
- _optionalChain([onErrorRef, 'access', _158 => _158.current, 'optionalCall', _159 => _159(message, "SWAPPED_IFRAME_TIMEOUT")]);
3593
+ _optionalChain([onErrorRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161(message, "SWAPPED_IFRAME_TIMEOUT")]);
3524
3594
  }, IFRAME_LOAD_TIMEOUT_MS);
3525
3595
  return () => clearTimeout(timer);
3526
3596
  }, [openExternally, widgetUrl, iframeLoaded, loadError]);
@@ -3530,7 +3600,7 @@ function SwappedProviderStep({
3530
3600
  setIframeSrc(nextSrc);
3531
3601
  if (nextSrc && assignedIframeUrlRef.current !== nextSrc) {
3532
3602
  assignedIframeUrlRef.current = nextSrc;
3533
- _optionalChain([onProviderHandoffRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161()]);
3603
+ _optionalChain([onProviderHandoffRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163()]);
3534
3604
  }
3535
3605
  }, [openExternally, widgetUrl, loadError, retryToken]);
3536
3606
  const openPaymentPage = async (url) => {
@@ -3540,11 +3610,11 @@ function SwappedProviderStep({
3540
3610
  try {
3541
3611
  await openExternally(url);
3542
3612
  setHandoffOpened(true);
3543
- _optionalChain([onProviderHandoff, 'optionalCall', _162 => _162()]);
3613
+ _optionalChain([onProviderHandoff, 'optionalCall', _164 => _164()]);
3544
3614
  } catch (error) {
3545
3615
  openedUrlRef.current = null;
3546
3616
  setLoadError(OPEN_FAILED_MESSAGE);
3547
- _optionalChain([onErrorRef, 'access', _163 => _163.current, 'optionalCall', _164 => _164(
3617
+ _optionalChain([onErrorRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166(
3548
3618
  error instanceof Error && error.message ? error.message : OPEN_FAILED_MESSAGE,
3549
3619
  OPEN_FAILED_CODE
3550
3620
  )]);
@@ -3569,7 +3639,7 @@ function SwappedProviderStep({
3569
3639
  if (isCurrentOrder) {
3570
3640
  setOrderState(res);
3571
3641
  }
3572
- } catch (e22) {
3642
+ } catch (e23) {
3573
3643
  }
3574
3644
  if (!cancelled) {
3575
3645
  timeoutId = setTimeout(poll, STATUS_POLL_INTERVAL_MS);
@@ -3592,8 +3662,8 @@ function SwappedProviderStep({
3592
3662
  const doc = globalThis.document;
3593
3663
  const onVisible = () => {
3594
3664
  if (doc.visibilityState !== "visible") return;
3595
- _optionalChain([rescheduleStatusPollRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166(0)]);
3596
- _optionalChain([rescheduleDepositPollRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168(0)]);
3665
+ _optionalChain([rescheduleStatusPollRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168(0)]);
3666
+ _optionalChain([rescheduleDepositPollRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170(0)]);
3597
3667
  };
3598
3668
  doc.addEventListener("visibilitychange", onVisible);
3599
3669
  return () => doc.removeEventListener("visibilitychange", onVisible);
@@ -3607,14 +3677,14 @@ function SwappedProviderStep({
3607
3677
  const status = await service.fetchLatestStatus(smartAccount);
3608
3678
  if (cancelled) return;
3609
3679
  const event = status.lastEvent;
3610
- const eventTxHash = _chunkQGNJFDEOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3680
+ const eventTxHash = _chunkN3AAT6BScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN3AAT6BScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3611
3681
  if (baselineDepositTxHashRef.current === void 0) {
3612
3682
  baselineDepositTxHashRef.current = eventTxHash;
3613
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3683
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3614
3684
  currentDepositTxHashRef.current = eventTxHash;
3615
3685
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
3616
3686
  }
3617
- } catch (e23) {
3687
+ } catch (e24) {
3618
3688
  }
3619
3689
  if (!cancelled) {
3620
3690
  const nextInterval = fastDepositPollEnabledRef.current ? DEPOSIT_POLL_FAST_INTERVAL_MS : DEPOSIT_POLL_INTERVAL_MS;
@@ -3635,16 +3705,16 @@ function SwappedProviderStep({
3635
3705
  }, [service, smartAccount]);
3636
3706
  _react.useEffect.call(void 0, () => {
3637
3707
  if (fastDepositPollEnabledRef.current) return;
3638
- const status = _optionalChain([orderState, 'optionalAccess', _169 => _169.status]);
3708
+ const status = _optionalChain([orderState, 'optionalAccess', _171 => _171.status]);
3639
3709
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
3640
3710
  fastDepositPollEnabledRef.current = true;
3641
- _optionalChain([rescheduleDepositPollRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3711
+ _optionalChain([rescheduleDepositPollRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3642
3712
  }, [orderState]);
3643
3713
  _react.useEffect.call(void 0, () => {
3644
3714
  if (openExternally) return;
3645
3715
  function onMessage(e) {
3646
3716
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
3647
- if (e.source !== _optionalChain([iframeRef, 'access', _172 => _172.current, 'optionalAccess', _173 => _173.contentWindow])) return;
3717
+ if (e.source !== _optionalChain([iframeRef, 'access', _174 => _174.current, 'optionalAccess', _175 => _175.contentWindow])) return;
3648
3718
  if (isSwappedGoBackMessage(e.data)) {
3649
3719
  onGoBackRef.current();
3650
3720
  return;
@@ -3659,16 +3729,16 @@ function SwappedProviderStep({
3659
3729
  setOrderState((prev) => ({
3660
3730
  // Normalise to the uuid the backend poll also keys on, so orderState
3661
3731
  // is consistent regardless of which path set it.
3662
- orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _174 => _174.orderId]))), () => ( ext)),
3732
+ orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _176 => _176.orderId]))), () => ( ext)),
3663
3733
  status: parsed.status,
3664
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _175 => _175.orderCrypto]))), () => ( null)),
3665
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _176 => _176.orderCryptoAmount]))), () => ( null)),
3666
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _177 => _177.transactionId]))), () => ( null)),
3734
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _177 => _177.orderCrypto]))), () => ( null)),
3735
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _178 => _178.orderCryptoAmount]))), () => ( null)),
3736
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _179 => _179.transactionId]))), () => ( null)),
3667
3737
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
3668
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _178 => _178.paidAmountUsd]), () => ( null)),
3669
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _179 => _179.paidAmountEur]), () => ( null)),
3670
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _180 => _180.onrampFeeUsd]), () => ( null)),
3671
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _181 => _181.paymentMethod]), () => ( null))
3738
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _180 => _180.paidAmountUsd]), () => ( null)),
3739
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _181 => _181.paidAmountEur]), () => ( null)),
3740
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _182 => _182.onrampFeeUsd]), () => ( null)),
3741
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _183 => _183.paymentMethod]), () => ( null))
3672
3742
  }));
3673
3743
  }
3674
3744
  window.addEventListener("message", onMessage);
@@ -3681,28 +3751,28 @@ function SwappedProviderStep({
3681
3751
  }
3682
3752
  }, [phase, orderState, latestEvent, variant]);
3683
3753
  const stepStates = _react.useMemo.call(void 0,
3684
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _182 => _182.status]), () => ( null)), latestEvent),
3754
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _184 => _184.status]), () => ( null)), latestEvent),
3685
3755
  [orderState, latestEvent]
3686
3756
  );
3687
3757
  const terminalState = _react.useMemo.call(void 0, () => {
3688
- if (_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3758
+ if (_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3689
3759
  return {
3690
3760
  kind: "failed",
3691
- message: _chunkQGNJFDEOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3761
+ message: _chunkN3AAT6BScjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3692
3762
  };
3693
3763
  }
3694
- if (_optionalChain([orderState, 'optionalAccess', _183 => _183.status]) === "order_cancelled") {
3764
+ if (_optionalChain([orderState, 'optionalAccess', _185 => _185.status]) === "order_cancelled") {
3695
3765
  const banner = bannerForStatus("order_cancelled", {});
3696
3766
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
3697
3767
  }
3698
3768
  return null;
3699
3769
  }, [latestEvent, orderState, bannerForStatus]);
3700
3770
  _react.useEffect.call(void 0, () => {
3701
- if (_optionalChain([orderState, 'optionalAccess', _184 => _184.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _185 => _185()]);
3702
- }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _186 => _186.status])]);
3771
+ if (_optionalChain([orderState, 'optionalAccess', _186 => _186.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _187 => _187()]);
3772
+ }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _188 => _188.status])]);
3703
3773
  _react.useEffect.call(void 0, () => {
3704
3774
  if (completeFiredRef.current || failedFiredRef.current) return;
3705
- const t = _optionalChain([latestEvent, 'optionalAccess', _187 => _187.type]);
3775
+ const t = _optionalChain([latestEvent, 'optionalAccess', _189 => _189.type]);
3706
3776
  const isSuccess = t === "bridge-complete";
3707
3777
  if (!isSuccess) return;
3708
3778
  const txHash = currentDepositTxHashRef.current;
@@ -3711,10 +3781,10 @@ function SwappedProviderStep({
3711
3781
  const info = {
3712
3782
  smartAccount,
3713
3783
  txHash,
3714
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _188 => _188.orderCrypto]), () => ( null)),
3784
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _190 => _190.orderCrypto]), () => ( null)),
3715
3785
  // Base-unit source amount from the deposit row/event, consistent with the
3716
3786
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3717
- amount: _nullishCoalesce(_chunkQGNJFDEOcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3787
+ amount: _nullishCoalesce(_chunkN3AAT6BScjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3718
3788
  expectedOrderUuid: expectedOrderUuidRef.current,
3719
3789
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3720
3790
  };
@@ -3725,23 +3795,23 @@ function SwappedProviderStep({
3725
3795
  }, [latestEvent, orderState, smartAccount]);
3726
3796
  _react.useEffect.call(void 0, () => {
3727
3797
  if (failedFiredRef.current || completeFiredRef.current) return;
3728
- if (!_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3798
+ if (!_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3729
3799
  const txHash = currentDepositTxHashRef.current;
3730
3800
  if (!txHash) return;
3731
3801
  failedFiredRef.current = true;
3732
3802
  setPhase("tracker");
3733
- _optionalChain([onSwappedFailedRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190(
3803
+ _optionalChain([onSwappedFailedRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192(
3734
3804
  txHash,
3735
- _chunkQGNJFDEOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3805
+ _chunkN3AAT6BScjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3736
3806
  )]);
3737
3807
  }, [latestEvent]);
3738
3808
  const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
3739
3809
  _react.useEffect.call(void 0, () => {
3740
- _optionalChain([onImmersiveChangeRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192(immersive)]);
3810
+ _optionalChain([onImmersiveChangeRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194(immersive)]);
3741
3811
  }, [immersive]);
3742
- _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194(false)]), []);
3812
+ _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _195 => _195.current, 'optionalCall', _196 => _196(false)]), []);
3743
3813
  const handleRetry = () => {
3744
- _optionalChain([onRetry, 'optionalCall', _195 => _195()]);
3814
+ _optionalChain([onRetry, 'optionalCall', _197 => _197()]);
3745
3815
  setIframeSrc(null);
3746
3816
  setWidgetUrl(null);
3747
3817
  setIframeLoaded(false);
@@ -3759,8 +3829,8 @@ function SwappedProviderStep({
3759
3829
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3760
3830
  SwappedOrderTracker,
3761
3831
  {
3762
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _196 => _196.orderCryptoAmount]), () => ( null)),
3763
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _197 => _197.orderCrypto]), () => ( "USDC")),
3832
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _198 => _198.orderCryptoAmount]), () => ( null)),
3833
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _199 => _199.orderCrypto]), () => ( "USDC")),
3764
3834
  stepStates,
3765
3835
  terminal: terminalState,
3766
3836
  onRetry: handleRetry,
@@ -3782,7 +3852,7 @@ function SwappedProviderStep({
3782
3852
  }
3783
3853
  )
3784
3854
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3785
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}),
3855
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}),
3786
3856
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-swapped-handoff-text", children: [
3787
3857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-swapped-handoff-title", children: handoffOpened ? variant === "fiat" ? "Finish paying in your browser" : "Approve the transfer in your browser" : "Opening your browser\u2026" }),
3788
3858
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-swapped-handoff-subtitle", children: handoffOpened ? (
@@ -3806,7 +3876,7 @@ function SwappedProviderStep({
3806
3876
  }
3807
3877
  )
3808
3878
  ] }) }),
3809
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3879
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3810
3880
  ] });
3811
3881
  }
3812
3882
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
@@ -3823,7 +3893,7 @@ function SwappedProviderStep({
3823
3893
  }
3824
3894
  )
3825
3895
  ] }),
3826
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) }),
3896
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) }),
3827
3897
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3828
3898
  "iframe",
3829
3899
  {
@@ -3835,10 +3905,10 @@ function SwappedProviderStep({
3835
3905
  allow: "payment; camera; microphone; clipboard-write; geolocation",
3836
3906
  onLoad: () => {
3837
3907
  try {
3838
- if (_optionalChain([iframeRef, 'access', _198 => _198.current, 'optionalAccess', _199 => _199.contentWindow, 'optionalAccess', _200 => _200.location, 'optionalAccess', _201 => _201.href]) === "about:blank") {
3908
+ if (_optionalChain([iframeRef, 'access', _200 => _200.current, 'optionalAccess', _201 => _201.contentWindow, 'optionalAccess', _202 => _202.location, 'optionalAccess', _203 => _203.href]) === "about:blank") {
3839
3909
  return;
3840
3910
  }
3841
- } catch (e24) {
3911
+ } catch (e25) {
3842
3912
  }
3843
3913
  setIframeLoaded(true);
3844
3914
  }
@@ -3846,11 +3916,11 @@ function SwappedProviderStep({
3846
3916
  retryToken
3847
3917
  )
3848
3918
  ] }) }),
3849
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3919
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3850
3920
  ] });
3851
3921
  }
3852
3922
  function deriveStepStates(swappedStatus, latestEvent) {
3853
- if (_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3923
+ if (_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3854
3924
  return ["complete", "complete", "failed", "pending"];
3855
3925
  }
3856
3926
  if (swappedStatus === "order_cancelled") {
@@ -3858,7 +3928,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
3858
3928
  }
3859
3929
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
3860
3930
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
3861
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _202 => _202.type]) === "bridge-complete";
3931
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _204 => _204.type]) === "bridge-complete";
3862
3932
  if (step3Complete) {
3863
3933
  return ["complete", "complete", "complete", "complete"];
3864
3934
  }
@@ -3919,7 +3989,7 @@ function FiatOnrampStep({
3919
3989
  openExternally
3920
3990
  }) {
3921
3991
  const loadUrl = _react.useCallback.call(void 0, async () => {
3922
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _203 => _203(
3992
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _205 => _205(
3923
3993
  smartAccount,
3924
3994
  paymentMethod,
3925
3995
  methodSelectionSource
@@ -3928,7 +3998,7 @@ function FiatOnrampStep({
3928
3998
  try {
3929
3999
  const cached = await prefetched;
3930
4000
  if (isSwappedWidgetUrlFresh(cached)) return cached;
3931
- } catch (e25) {
4001
+ } catch (e26) {
3932
4002
  }
3933
4003
  }
3934
4004
  return service.getSwappedWidgetUrl({
@@ -4060,7 +4130,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
4060
4130
  function ExchangeLogo({ exchange }) {
4061
4131
  const [failed, setFailed] = _react.useState.call(void 0, false);
4062
4132
  if (!exchange.logoUrl || failed) {
4063
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BankIcon, {});
4133
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BankIcon, {});
4064
4134
  }
4065
4135
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4066
4136
  "img",
@@ -4105,7 +4175,7 @@ function ExchangeSelectStep({
4105
4175
  setExchanges([]);
4106
4176
  setExchangeFeeBps(0);
4107
4177
  setError(message);
4108
- _optionalChain([onError, 'optionalCall', _204 => _204(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4178
+ _optionalChain([onError, 'optionalCall', _206 => _206(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4109
4179
  }).finally(() => {
4110
4180
  if (!cancelled) setLoading(false);
4111
4181
  });
@@ -4131,7 +4201,7 @@ function ExchangeSelectStep({
4131
4201
  } catch (err) {
4132
4202
  const message = err instanceof Error ? err.message : "Failed to prepare Connect";
4133
4203
  setSelectionNotice(message);
4134
- _optionalChain([onError, 'optionalCall', _205 => _205(message, "SWAPPED_CONNECT_URL_FAILED")]);
4204
+ _optionalChain([onError, 'optionalCall', _207 => _207(message, "SWAPPED_CONNECT_URL_FAILED")]);
4135
4205
  } finally {
4136
4206
  setSelectingConnection(null);
4137
4207
  }
@@ -4141,14 +4211,14 @@ function ExchangeSelectStep({
4141
4211
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
4142
4212
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4143
4213
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4144
- _chunkQGNJFDEOcjs.BodyHeader,
4214
+ _chunkN3AAT6BScjs.BodyHeader,
4145
4215
  {
4146
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.UnplugIcon, {}),
4216
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.UnplugIcon, {}),
4147
4217
  title: "Connect exchange",
4148
4218
  subtitle: "Select an exchange to connect"
4149
4219
  }
4150
4220
  ),
4151
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) }),
4221
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) }),
4152
4222
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
4153
4223
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
4154
4224
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4174,7 +4244,7 @@ function ExchangeSelectStep({
4174
4244
  )
4175
4245
  ] }),
4176
4246
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
4177
- const brand = _chunkQGNJFDEOcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4247
+ const brand = _chunkN3AAT6BScjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4178
4248
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4179
4249
  "button",
4180
4250
  {
@@ -4199,7 +4269,7 @@ function ExchangeSelectStep({
4199
4269
  );
4200
4270
  }) })
4201
4271
  ] }),
4202
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {}),
4272
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {}),
4203
4273
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
4204
4274
  "A ",
4205
4275
  formatFeeRate(exchangeFeeBps),
@@ -4237,7 +4307,7 @@ function SolanaTokenSelectStep({
4237
4307
  setError(null);
4238
4308
  const portfolioBySymbol = {};
4239
4309
  try {
4240
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4310
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4241
4311
  solanaAddress
4242
4312
  });
4243
4313
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -4248,7 +4318,7 @@ function SolanaTokenSelectStep({
4248
4318
  let parsed = 0n;
4249
4319
  try {
4250
4320
  parsed = BigInt(t.balance || "0");
4251
- } catch (e26) {
4321
+ } catch (e27) {
4252
4322
  parsed = 0n;
4253
4323
  }
4254
4324
  if (parsed <= 0n) continue;
@@ -4260,12 +4330,12 @@ function SolanaTokenSelectStep({
4260
4330
  };
4261
4331
  }
4262
4332
  }
4263
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4333
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4264
4334
  symbols: Object.keys(portfolioBySymbol)
4265
4335
  });
4266
4336
  } catch (err) {
4267
4337
  if (!active) return;
4268
- _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4338
+ _chunkN3AAT6BScjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4269
4339
  solanaAddress
4270
4340
  });
4271
4341
  setError(
@@ -4290,7 +4360,7 @@ function SolanaTokenSelectStep({
4290
4360
  setTokenBalances(results);
4291
4361
  setLoading(false);
4292
4362
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
4293
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _206 => _206(totalUsd)]);
4363
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _208 => _208(totalUsd)]);
4294
4364
  }
4295
4365
  void loadBalances();
4296
4366
  return () => {
@@ -4312,8 +4382,8 @@ function SolanaTokenSelectStep({
4312
4382
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
4313
4383
  const numeric = Number(raw);
4314
4384
  if (!Number.isFinite(numeric)) return raw;
4315
- return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
4316
- } catch (e27) {
4385
+ return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
4386
+ } catch (e28) {
4317
4387
  return "--";
4318
4388
  }
4319
4389
  };
@@ -4322,20 +4392,20 @@ function SolanaTokenSelectStep({
4322
4392
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4323
4393
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
4324
4394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4325
- _chunkQGNJFDEOcjs.BodyHeader,
4395
+ _chunkN3AAT6BScjs.BodyHeader,
4326
4396
  {
4327
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
4397
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
4328
4398
  title: "Your assets",
4329
4399
  subtitle: "Select source assets to transfer"
4330
4400
  }
4331
4401
  ),
4332
4402
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
4333
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-text-tertiary" }),
4403
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-text-tertiary" }),
4334
4404
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
4335
4405
  ] }),
4336
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
4406
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
4337
4407
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
4338
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, { className: "rs-empty-icon" }),
4408
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, { className: "rs-empty-icon" }),
4339
4409
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
4340
4410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
4341
4411
  solanaAddress.slice(0, 6),
@@ -4366,13 +4436,13 @@ function SolanaTokenSelectStep({
4366
4436
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4367
4437
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4368
4438
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4369
- _chunkQGNJFDEOcjs.TokenIcon,
4439
+ _chunkN3AAT6BScjs.TokenIcon,
4370
4440
  {
4371
4441
  symbol: entry.token.symbol,
4372
4442
  fallback: entry.token.symbol.slice(0, 4)
4373
4443
  }
4374
4444
  ) }),
4375
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4445
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4376
4446
  ] }),
4377
4447
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
4378
4448
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -4389,14 +4459,14 @@ function SolanaTokenSelectStep({
4389
4459
  ] })
4390
4460
  ] })
4391
4461
  ] }),
4392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4462
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4393
4463
  ]
4394
4464
  },
4395
4465
  entry.token.symbol
4396
4466
  );
4397
4467
  }) }),
4398
4468
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4399
- _chunkQGNJFDEOcjs.Button,
4469
+ _chunkN3AAT6BScjs.Button,
4400
4470
  {
4401
4471
  onClick: () => selectedEntry && onContinue(
4402
4472
  selectedEntry.token,
@@ -4409,7 +4479,7 @@ function SolanaTokenSelectStep({
4409
4479
  }
4410
4480
  )
4411
4481
  ] }),
4412
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
4482
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4413
4483
  ] });
4414
4484
  }
4415
4485
 
@@ -4441,7 +4511,7 @@ function SolanaAmountStep({
4441
4511
  const [error, setError] = _react.useState.call(void 0, null);
4442
4512
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
4443
4513
  const isSourceStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, token.symbol);
4444
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _207 => _207.trim, 'call', _208 => _208(), 'access', _209 => _209.toLowerCase, 'call', _210 => _210()]) === "max";
4514
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _209 => _209.trim, 'call', _210 => _210(), 'access', _211 => _211.toLowerCase, 'call', _212 => _212()]) === "max";
4445
4515
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
4446
4516
  if (isSourceStablecoin) return 1;
4447
4517
  try {
@@ -4451,7 +4521,7 @@ function SolanaAmountStep({
4451
4521
  }
4452
4522
  const price = balanceUsd / balanceUnits;
4453
4523
  return price > 0 ? price : null;
4454
- } catch (e28) {
4524
+ } catch (e29) {
4455
4525
  return null;
4456
4526
  }
4457
4527
  }, [isSourceStablecoin, balance, token.decimals, balanceUsd]);
@@ -4461,8 +4531,8 @@ function SolanaAmountStep({
4461
4531
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
4462
4532
  const numeric = Number(raw);
4463
4533
  if (!Number.isFinite(numeric)) return raw;
4464
- return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
4465
- } catch (e29) {
4534
+ return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
4535
+ } catch (e30) {
4466
4536
  return "\u2026";
4467
4537
  }
4468
4538
  }, [balance, token.decimals]);
@@ -4473,7 +4543,7 @@ function SolanaAmountStep({
4473
4543
  if (tokenPriceUsd !== null) return balanceUnits * tokenPriceUsd;
4474
4544
  if (Number.isFinite(balanceUsd) && balanceUsd > 0) return balanceUsd;
4475
4545
  return null;
4476
- } catch (e30) {
4546
+ } catch (e31) {
4477
4547
  return null;
4478
4548
  }
4479
4549
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
@@ -4487,7 +4557,7 @@ function SolanaAmountStep({
4487
4557
  if (!Number.isFinite(spendableUnits) || spendableUnits < 0) return null;
4488
4558
  if (tokenPriceUsd !== null) return spendableUnits * tokenPriceUsd;
4489
4559
  return null;
4490
- } catch (e31) {
4560
+ } catch (e32) {
4491
4561
  return null;
4492
4562
  }
4493
4563
  }, [spendableBalance, token.decimals, tokenPriceUsd]);
@@ -4502,7 +4572,7 @@ function SolanaAmountStep({
4502
4572
  const factor = 1e3;
4503
4573
  const truncated = Math.floor(value * factor) / factor;
4504
4574
  return truncated.toFixed(3).replace(/\.?0+$/, "");
4505
- } catch (e32) {
4575
+ } catch (e33) {
4506
4576
  return "";
4507
4577
  }
4508
4578
  },
@@ -4539,22 +4609,27 @@ function SolanaAmountStep({
4539
4609
  const raw = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
4540
4610
  try {
4541
4611
  return _viem.parseUnits.call(void 0, raw.toString(), token.decimals);
4542
- } catch (e33) {
4612
+ } catch (e34) {
4543
4613
  return null;
4544
4614
  }
4545
4615
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
4546
- const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _211 => _211.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _212 => _212.minDepositUsd]), () => ( null));
4547
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.maxDepositUsd]), () => ( null));
4616
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _214 => _214.minDepositUsd]), () => ( null));
4617
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _215 => _215.maxDepositUsd]), () => ( null));
4548
4618
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
4549
4619
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
4550
4620
  const exceedsBalance = Boolean(
4551
4621
  sourceAmountUnits !== null && sourceAmountUnits > spendableBalance
4552
4622
  );
4623
+ const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
4624
+ const boundViolation = _chunkN3AAT6BScjs.depositBoundsViolation.call(void 0,
4625
+ boundsFor("solana", token.mint),
4626
+ sourceAmountUnits
4627
+ );
4553
4628
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
4554
4629
  const handlePresetClick = (percentage) => {
4555
4630
  const formatted = computePresetAmount(percentage);
4556
4631
  if (!formatted) return;
4557
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4632
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4558
4633
  percentage,
4559
4634
  symbol: token.symbol,
4560
4635
  formatted
@@ -4570,6 +4645,7 @@ function SolanaAmountStep({
4570
4645
  if (error) setError(null);
4571
4646
  };
4572
4647
  const handleContinue = () => {
4648
+ if (boundViolation) return;
4573
4649
  let effective = numericAmount;
4574
4650
  if (isBelowMin && minDepositUsd !== null) {
4575
4651
  effective = minDepositUsd;
@@ -4588,8 +4664,8 @@ function SolanaAmountStep({
4588
4664
  let amountInUnits;
4589
4665
  try {
4590
4666
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
4591
- } catch (e34) {
4592
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4667
+ } catch (e35) {
4668
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4593
4669
  amount,
4594
4670
  sourceAmount: sourceAmountStr,
4595
4671
  reason: "parse-units-failed"
@@ -4604,7 +4680,7 @@ function SolanaAmountStep({
4604
4680
  );
4605
4681
  return;
4606
4682
  }
4607
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4683
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4608
4684
  symbol: token.symbol,
4609
4685
  inputAmountUsd: amount,
4610
4686
  sourceAmount: sourceAmountStr,
@@ -4613,11 +4689,11 @@ function SolanaAmountStep({
4613
4689
  setError(null);
4614
4690
  onContinue(token, sourceAmountStr, effective.toString());
4615
4691
  };
4616
- const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
4617
- const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
4692
+ const continueLabel = exceedsBalance ? "Insufficient balance" : _nullishCoalesce(boundViolation, () => ( (isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue")));
4693
+ const continueDisabled = exceedsBalance || boundViolation !== null || numericAmount === 0 && !isBelowMin;
4618
4694
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4619
4695
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4620
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Wallet deposit" }),
4696
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Wallet deposit" }),
4621
4697
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
4622
4698
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
4623
4699
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4637,13 +4713,13 @@ function SolanaAmountStep({
4637
4713
  " available",
4638
4714
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4639
4715
  " (~",
4640
- _chunkQGNJFDEOcjs.currencyFormatter.format(computedBalanceUsd),
4716
+ _chunkN3AAT6BScjs.currencyFormatter.format(computedBalanceUsd),
4641
4717
  ")"
4642
4718
  ] })
4643
4719
  ] }),
4644
4720
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4645
4721
  "Min. deposit ",
4646
- _chunkQGNJFDEOcjs.currencyFormatter.format(minDepositUsd)
4722
+ _chunkN3AAT6BScjs.currencyFormatter.format(minDepositUsd)
4647
4723
  ] })
4648
4724
  ] })
4649
4725
  ] }),
@@ -4666,7 +4742,7 @@ function SolanaAmountStep({
4666
4742
  "Solana ",
4667
4743
  token.symbol
4668
4744
  ] }),
4669
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: token.symbol }) })
4745
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: token.symbol }) })
4670
4746
  ] })
4671
4747
  ] }),
4672
4748
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4677,17 +4753,17 @@ function SolanaAmountStep({
4677
4753
  " ",
4678
4754
  targetTokenSymbol
4679
4755
  ] }),
4680
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4756
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: targetTokenSymbol }) })
4681
4757
  ] })
4682
4758
  ] }),
4683
4759
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4684
4760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4685
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkQGNJFDEOcjs.currencyFormatter.format(balanceAfterUsd) })
4761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN3AAT6BScjs.currencyFormatter.format(balanceAfterUsd) })
4686
4762
  ] })
4687
4763
  ] }),
4688
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
4764
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
4689
4765
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4690
- _chunkQGNJFDEOcjs.Button,
4766
+ _chunkN3AAT6BScjs.Button,
4691
4767
  {
4692
4768
  onClick: handleContinue,
4693
4769
  fullWidth: true,
@@ -4696,7 +4772,7 @@ function SolanaAmountStep({
4696
4772
  }
4697
4773
  )
4698
4774
  ] }),
4699
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
4775
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4700
4776
  ] });
4701
4777
  }
4702
4778
 
@@ -4716,10 +4792,10 @@ function loadSolanaDependencies() {
4716
4792
  return dependenciesPromise2;
4717
4793
  }
4718
4794
  function getSolanaRpcUrl(rpcUrls) {
4719
- return _nullishCoalesce(_chunkQGNJFDEOcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4795
+ return _nullishCoalesce(_chunkN3AAT6BScjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4720
4796
  }
4721
4797
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4722
- return _chunkQGNJFDEOcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4798
+ return _chunkN3AAT6BScjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4723
4799
  }
4724
4800
  async function getSolanaConnection(rpcUrls) {
4725
4801
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4836,14 +4912,14 @@ function SolanaConfirmStep({
4836
4912
  onSubmittingChange,
4837
4913
  debug
4838
4914
  }) {
4839
- const rpcUrls = _chunkQGNJFDEOcjs.useRpcUrls.call(void 0, );
4915
+ const rpcUrls = _chunkN3AAT6BScjs.useRpcUrls.call(void 0, );
4840
4916
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4841
4917
  const [error, setError] = _react.useState.call(void 0, null);
4842
4918
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
4843
4919
  onSubmittingChangeRef.current = onSubmittingChange;
4844
4920
  _react.useEffect.call(void 0, () => {
4845
- _optionalChain([onSubmittingChangeRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215(isSubmitting)]);
4846
- return () => _optionalChain([onSubmittingChangeRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217(false)]);
4921
+ _optionalChain([onSubmittingChangeRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217(isSubmitting)]);
4922
+ return () => _optionalChain([onSubmittingChangeRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219(false)]);
4847
4923
  }, [isSubmitting]);
4848
4924
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
4849
4925
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
@@ -4851,28 +4927,28 @@ function SolanaConfirmStep({
4851
4927
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
4852
4928
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, "solana");
4853
4929
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
4854
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _218 => _218.feeSponsored]), () => ( false));
4855
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _219 => _219.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4856
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4930
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _220 => _220.feeSponsored]), () => ( false));
4931
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _221 => _221.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4932
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4857
4933
  const receiveDisplay = (() => {
4858
4934
  const usdValue = Number(targetAmount);
4859
4935
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4860
- const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
4936
+ const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
4861
4937
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4862
4938
  sourceSymbol: token.symbol,
4863
4939
  targetSymbol,
4864
4940
  sourceAmountUsd,
4865
- sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4941
+ sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4866
4942
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4867
4943
  // to the source (a held token). See ConfirmStep for the rationale.
4868
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4944
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4869
4945
  });
4870
4946
  if (estimate !== void 0) return estimate;
4871
4947
  return targetSymbol;
4872
4948
  })();
4873
4949
  const handleConfirm = async () => {
4874
4950
  if (!solanaProvider) {
4875
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4951
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4876
4952
  reason: "missing-provider"
4877
4953
  });
4878
4954
  setError("Solana wallet not connected");
@@ -4880,7 +4956,7 @@ function SolanaConfirmStep({
4880
4956
  }
4881
4957
  const parsedAmount = parseFloat(sourceAmount);
4882
4958
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4883
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4959
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4884
4960
  reason: "invalid-amount",
4885
4961
  sourceAmount
4886
4962
  });
@@ -4889,7 +4965,7 @@ function SolanaConfirmStep({
4889
4965
  }
4890
4966
  setError(null);
4891
4967
  setIsSubmitting(true);
4892
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4968
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4893
4969
  smartAccount,
4894
4970
  solanaAddress,
4895
4971
  solanaDepositAddress,
@@ -4899,7 +4975,7 @@ function SolanaConfirmStep({
4899
4975
  });
4900
4976
  try {
4901
4977
  const check = await service.checkAccount(smartAccount);
4902
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4978
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4903
4979
  smartAccount,
4904
4980
  isRegistered: check.isRegistered,
4905
4981
  targetChain: check.targetChain,
@@ -4912,7 +4988,7 @@ function SolanaConfirmStep({
4912
4988
  }
4913
4989
  const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
4914
4990
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4915
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4991
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4916
4992
  token: token.symbol,
4917
4993
  sourceAmount,
4918
4994
  amountUnits: amountUnits.toString()
@@ -4929,10 +5005,10 @@ function SolanaConfirmStep({
4929
5005
  token.mint,
4930
5006
  amountUnits
4931
5007
  );
4932
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
5008
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4933
5009
  token: token.symbol,
4934
5010
  instructionCount: transaction.instructions.length,
4935
- feePayer: _optionalChain([transaction, 'access', _220 => _220.feePayer, 'optionalAccess', _221 => _221.toBase58, 'call', _222 => _222()]),
5011
+ feePayer: _optionalChain([transaction, 'access', _222 => _222.feePayer, 'optionalAccess', _223 => _223.toBase58, 'call', _224 => _224()]),
4936
5012
  recentBlockhash: transaction.recentBlockhash
4937
5013
  });
4938
5014
  const txHash = await sendSolanaTransaction(
@@ -4940,7 +5016,7 @@ function SolanaConfirmStep({
4940
5016
  connection,
4941
5017
  transaction
4942
5018
  );
4943
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
5019
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4944
5020
  txHash,
4945
5021
  amountUnits: amountUnits.toString()
4946
5022
  });
@@ -4952,21 +5028,21 @@ function SolanaConfirmStep({
4952
5028
  });
4953
5029
  } catch (err) {
4954
5030
  const raw = err instanceof Error ? err.message : "Transfer failed";
4955
- const message = _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw);
4956
- _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
5031
+ const message = _chunkN3AAT6BScjs.formatUserError.call(void 0, raw);
5032
+ _chunkN3AAT6BScjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4957
5033
  smartAccount,
4958
5034
  token: token.symbol,
4959
5035
  sourceAmount
4960
5036
  });
4961
5037
  setError(message);
4962
- _optionalChain([onError, 'optionalCall', _223 => _223(message, "SOLANA_TRANSFER_ERROR", raw)]);
5038
+ _optionalChain([onError, 'optionalCall', _225 => _225(message, "SOLANA_TRANSFER_ERROR", raw)]);
4963
5039
  } finally {
4964
5040
  setIsSubmitting(false);
4965
5041
  }
4966
5042
  };
4967
5043
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4968
5044
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4969
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Review deposit" }),
5045
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Review deposit" }),
4970
5046
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4971
5047
  ReviewDetails,
4972
5048
  {
@@ -4982,9 +5058,9 @@ function SolanaConfirmStep({
4982
5058
  fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
4983
5059
  }
4984
5060
  ),
4985
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
5061
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
4986
5062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4987
- _chunkQGNJFDEOcjs.Button,
5063
+ _chunkN3AAT6BScjs.Button,
4988
5064
  {
4989
5065
  onClick: handleConfirm,
4990
5066
  loading: isSubmitting,
@@ -4995,7 +5071,7 @@ function SolanaConfirmStep({
4995
5071
  }
4996
5072
  )
4997
5073
  ] }),
4998
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4999
5075
  ] });
5000
5076
  }
5001
5077
 
@@ -5010,19 +5086,19 @@ function DappImportAssetSelectStep({
5010
5086
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5011
5087
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5012
5088
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5013
- _chunkQGNJFDEOcjs.BodyHeader,
5089
+ _chunkN3AAT6BScjs.BodyHeader,
5014
5090
  {
5015
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
5091
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
5016
5092
  title: `Transfer from ${sourceLabel}`,
5017
5093
  subtitle: "Pick the balance to import"
5018
5094
  }
5019
5095
  ),
5020
5096
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
5021
5097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
5022
- const tokenAmount = asset.balance ? _chunkQGNJFDEOcjs.tokenFormatter.format(
5098
+ const tokenAmount = asset.balance ? _chunkN3AAT6BScjs.tokenFormatter.format(
5023
5099
  Number(asset.balance) / 10 ** asset.decimals
5024
5100
  ) : "0";
5025
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5101
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5026
5102
  const assetIcon = asset.icon;
5027
5103
  const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
5028
5104
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, asset.chainId);
@@ -5035,14 +5111,14 @@ function DappImportAssetSelectStep({
5035
5111
  children: [
5036
5112
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
5037
5113
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
5038
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5039
- _chunkQGNJFDEOcjs.TokenIcon,
5114
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5115
+ _chunkN3AAT6BScjs.TokenIcon,
5040
5116
  {
5041
5117
  symbol: asset.symbol,
5042
5118
  fallback: asset.symbol.slice(0, 4)
5043
5119
  }
5044
5120
  ) }),
5045
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5121
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5046
5122
  "span",
5047
5123
  {
5048
5124
  className: "rs-asset-chain-badge",
@@ -5074,7 +5150,7 @@ function DappImportAssetSelectStep({
5074
5150
  );
5075
5151
  }) })
5076
5152
  ] }),
5077
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5153
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5078
5154
  ] });
5079
5155
  }
5080
5156
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -5096,7 +5172,7 @@ function describeRow(status, comingSoon) {
5096
5172
  }
5097
5173
  if (status.enabled) {
5098
5174
  return {
5099
- subtitle: status.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5175
+ subtitle: status.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5100
5176
  disabled: false,
5101
5177
  busy: false
5102
5178
  };
@@ -5119,9 +5195,9 @@ function DappImportSelectStep({
5119
5195
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5120
5196
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5121
5197
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5122
- _chunkQGNJFDEOcjs.BodyHeader,
5198
+ _chunkN3AAT6BScjs.BodyHeader,
5123
5199
  {
5124
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.MigrateAssetsIcon, {}),
5200
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.MigrateAssetsIcon, {}),
5125
5201
  title: "Migrate assets",
5126
5202
  subtitle: "Select a position to migrate"
5127
5203
  }
@@ -5133,16 +5209,16 @@ function DappImportSelectStep({
5133
5209
  Boolean(brand.comingSoon)
5134
5210
  );
5135
5211
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5136
- _chunkQGNJFDEOcjs.ListRow,
5212
+ _chunkN3AAT6BScjs.ListRow,
5137
5213
  {
5138
5214
  leadingMedia: brand.iconUrl,
5139
5215
  title: brand.label,
5140
5216
  subtitle,
5141
5217
  disabled,
5142
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5218
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5143
5219
  onClick: () => {
5144
5220
  if (status === "needs-connect") {
5145
- _optionalChain([onRequestConnect, 'optionalCall', _224 => _224()]);
5221
+ _optionalChain([onRequestConnect, 'optionalCall', _226 => _226()]);
5146
5222
  return;
5147
5223
  }
5148
5224
  onSelect(brand.id);
@@ -5152,7 +5228,7 @@ function DappImportSelectStep({
5152
5228
  );
5153
5229
  }) })
5154
5230
  ] }),
5155
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5231
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5156
5232
  ] });
5157
5233
  }
5158
5234
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -5169,9 +5245,9 @@ function DappImportAssetSelectSkeleton({
5169
5245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
5170
5246
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5171
5247
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5172
- _chunkQGNJFDEOcjs.BodyHeader,
5248
+ _chunkN3AAT6BScjs.BodyHeader,
5173
5249
  {
5174
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
5250
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
5175
5251
  title: `Transfer from ${sourceLabel}`,
5176
5252
  subtitle: "Pick the balance to import"
5177
5253
  }
@@ -5209,7 +5285,7 @@ function DappImportAssetSelectSkeleton({
5209
5285
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
5210
5286
  }
5211
5287
  ) }),
5212
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5288
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5213
5289
  ] });
5214
5290
  }
5215
5291
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -5278,7 +5354,7 @@ function dappImportBalanceSource(asset) {
5278
5354
  if (asset.balance === void 0) return {};
5279
5355
  try {
5280
5356
  return { declaredBalance: BigInt(asset.balance) };
5281
- } catch (e35) {
5357
+ } catch (e36) {
5282
5358
  return {};
5283
5359
  }
5284
5360
  }
@@ -5298,7 +5374,7 @@ var aaveProvider = {
5298
5374
  throw new Error("Aave positions require a backend connection");
5299
5375
  }
5300
5376
  const response = await backend.getPositions(eoa);
5301
- if (_optionalChain([signal, 'optionalAccess', _225 => _225.aborted])) return null;
5377
+ if (_optionalChain([signal, 'optionalAccess', _227 => _227.aborted])) return null;
5302
5378
  const assets = toImportableAssets(response.positions);
5303
5379
  const failures = _nullishCoalesce(response.failures, () => ( []));
5304
5380
  if (assets.length === 0) {
@@ -5631,21 +5707,21 @@ var polymarketProvider = {
5631
5707
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
5632
5708
  const proxyWallet = await _chunkLVCD6RHFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5633
5709
  if (!proxyWallet) return null;
5634
- if (_optionalChain([signal, 'optionalAccess', _226 => _226.aborted])) return null;
5710
+ if (_optionalChain([signal, 'optionalAccess', _228 => _228.aborted])) return null;
5635
5711
  const polygonClient = getPublicClient2(_chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID);
5636
5712
  if (!polygonClient) return null;
5637
5713
  const balances = await _chunkLVCD6RHFcjs.readPolymarketBalances.call(void 0, {
5638
5714
  publicClient: polygonClient,
5639
5715
  proxyWallet
5640
5716
  });
5641
- if (_optionalChain([signal, 'optionalAccess', _227 => _227.aborted])) return null;
5717
+ if (_optionalChain([signal, 'optionalAccess', _229 => _229.aborted])) return null;
5642
5718
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
5643
5719
  const walletKind = await detectPolymarketWalletKind({
5644
5720
  publicClient: polygonClient,
5645
5721
  proxyWallet,
5646
5722
  eoa
5647
5723
  });
5648
- if (_optionalChain([signal, 'optionalAccess', _228 => _228.aborted])) return null;
5724
+ if (_optionalChain([signal, 'optionalAccess', _230 => _230.aborted])) return null;
5649
5725
  if (!walletKind) return null;
5650
5726
  const assets = [];
5651
5727
  if (balances.pusd > 0n) {
@@ -5753,10 +5829,37 @@ function getEnabledProviders(config) {
5753
5829
  }
5754
5830
 
5755
5831
  // src/core/dapp-imports/status.ts
5832
+ function narrowDappImportAvailability(availability, isExcluded) {
5833
+ let changed = false;
5834
+ const narrowed = {};
5835
+ for (const [providerId, entry] of Object.entries(availability)) {
5836
+ if (!entry || entry === "loading" || entry === "error") {
5837
+ narrowed[providerId] = entry;
5838
+ continue;
5839
+ }
5840
+ const assets = entry.assets.filter(
5841
+ (asset) => !isExcluded(asset.depositChainId, asset.depositToken)
5842
+ );
5843
+ if (assets.length === entry.assets.length) {
5844
+ narrowed[providerId] = entry;
5845
+ continue;
5846
+ }
5847
+ changed = true;
5848
+ narrowed[providerId] = assets.length === 0 ? null : {
5849
+ ...entry,
5850
+ assets,
5851
+ totalUsd: assets.reduce(
5852
+ (sum, asset) => sum + (_nullishCoalesce(asset.balanceUsd, () => ( 0))),
5853
+ 0
5854
+ )
5855
+ };
5856
+ }
5857
+ return changed ? narrowed : availability;
5858
+ }
5756
5859
  function computeDappImportStatus(providerId, inputs) {
5757
5860
  const { owner, availability, availabilityOwner, setup } = inputs;
5758
5861
  if (!owner) return "needs-connect";
5759
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _229 => _229.toLowerCase, 'call', _230 => _230()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5862
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _231 => _231.toLowerCase, 'call', _232 => _232()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5760
5863
  if (entry === "loading" || entry === void 0) return "loading";
5761
5864
  if (entry === "error") {
5762
5865
  return {
@@ -6098,7 +6201,7 @@ function DepositAnalyticsControllerProvider({
6098
6201
  children,
6099
6202
  controllerRef
6100
6203
  }) {
6101
- const emit = _chunkQGNJFDEOcjs.useDepositAnalyticsEmitter.call(void 0, );
6204
+ const emit = _chunkN3AAT6BScjs.useDepositAnalyticsEmitter.call(void 0, );
6102
6205
  const controller = _react.useMemo.call(void 0,
6103
6206
  () => createDepositAnalyticsController(emit),
6104
6207
  [emit]
@@ -6618,7 +6721,7 @@ function applyAction(state, action) {
6618
6721
  totalUsd: null,
6619
6722
  // Keep any prior chains visible so the cluster does not flicker
6620
6723
  // empty across a refresh.
6621
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _231 => _231.chainIds]), () => ( []))
6724
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _233 => _233.chainIds]), () => ( []))
6622
6725
  }
6623
6726
  }
6624
6727
  }
@@ -6829,7 +6932,7 @@ function applyAction(state, action) {
6829
6932
  flow: { ...state.flow, step: "processing" }
6830
6933
  };
6831
6934
  case "processing/quote-loaded":
6832
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _232 => _232.processing, 'access', _233 => _233.txHash, 'optionalAccess', _234 => _234.toLowerCase, 'call', _235 => _235()]) !== action.txHash.toLowerCase()) {
6935
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _234 => _234.processing, 'access', _235 => _235.txHash, 'optionalAccess', _236 => _236.toLowerCase, 'call', _237 => _237()]) !== action.txHash.toLowerCase()) {
6833
6936
  return state;
6834
6937
  }
6835
6938
  return {
@@ -7164,7 +7267,7 @@ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
7164
7267
  async function fetchPinnedQuote(params) {
7165
7268
  try {
7166
7269
  if (BigInt(params.amount) <= 0n) return void 0;
7167
- } catch (e36) {
7270
+ } catch (e37) {
7168
7271
  return void 0;
7169
7272
  }
7170
7273
  let timeoutId;
@@ -7180,8 +7283,8 @@ async function fetchPinnedQuote(params) {
7180
7283
  timeoutId = setTimeout(resolve, SWAPPED_QUOTE_FEE_TIMEOUT_MS, null);
7181
7284
  })
7182
7285
  ]);
7183
- return _nullishCoalesce(quote, () => ( void 0));
7184
- } catch (e37) {
7286
+ return quote && !_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, quote) ? quote : void 0;
7287
+ } catch (e38) {
7185
7288
  return void 0;
7186
7289
  } finally {
7187
7290
  if (timeoutId !== void 0) clearTimeout(timeoutId);
@@ -7423,11 +7526,11 @@ function DepositFlow({
7423
7526
  onError,
7424
7527
  debug
7425
7528
  }) {
7426
- const rpcUrls = _chunkQGNJFDEOcjs.useRpcUrls.call(void 0, );
7427
- const onStepChangeRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onStepChange);
7529
+ const rpcUrls = _chunkN3AAT6BScjs.useRpcUrls.call(void 0, );
7530
+ const onStepChangeRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onStepChange);
7428
7531
  const analytics = useDepositAnalyticsController();
7429
- const onLifecycleRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onLifecycle);
7430
- const onErrorRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onError);
7532
+ const onLifecycleRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onLifecycle);
7533
+ const onErrorRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onError);
7431
7534
  const storeApi = useDepositStoreApi();
7432
7535
  const flowSlice = useDepositStore((s) => s.flow);
7433
7536
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -7444,13 +7547,13 @@ function DepositFlow({
7444
7547
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
7445
7548
  const logFlow = _react.useCallback.call(void 0,
7446
7549
  (message, data) => {
7447
- _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7550
+ _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7448
7551
  },
7449
7552
  [debug]
7450
7553
  );
7451
7554
  const logFlowError = _react.useCallback.call(void 0,
7452
7555
  (message, error, data) => {
7453
- _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7556
+ _chunkN3AAT6BScjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7454
7557
  },
7455
7558
  [debug]
7456
7559
  );
@@ -7474,12 +7577,12 @@ function DepositFlow({
7474
7577
  };
7475
7578
  }, [enableSwappedPreconnect]);
7476
7579
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
7477
- if (!_optionalChain([walletClientProp, 'optionalAccess', _236 => _236.switchChain])) return void 0;
7580
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _238 => _238.switchChain])) return void 0;
7478
7581
  return async (chainId) => {
7479
- await _optionalChain([walletClientProp, 'access', _237 => _237.switchChain, 'optionalCall', _238 => _238({ id: chainId })]);
7582
+ await _optionalChain([walletClientProp, 'access', _239 => _239.switchChain, 'optionalCall', _240 => _240({ id: chainId })]);
7480
7583
  };
7481
7584
  }, [walletClientProp]);
7482
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _239 => _239.account, 'optionalAccess', _240 => _240.address]), () => ( null));
7585
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _241 => _241.account, 'optionalAccess', _242 => _242.address]), () => ( null));
7483
7586
  const walletOptions = _react.useMemo.call(void 0, () => {
7484
7587
  const options = [];
7485
7588
  const seen = /* @__PURE__ */ new Set();
@@ -7493,7 +7596,7 @@ function DepositFlow({
7493
7596
  });
7494
7597
  seen.add(id);
7495
7598
  }
7496
- if (_optionalChain([walletSession, 'optionalAccess', _241 => _241.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7599
+ if (_optionalChain([walletSession, 'optionalAccess', _243 => _243.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7497
7600
  const id = _nullishCoalesce(walletSession.caipAddress, () => ( `solana:${walletSession.solanaAddress}`));
7498
7601
  if (!seen.has(id)) {
7499
7602
  options.push({
@@ -7505,7 +7608,7 @@ function DepositFlow({
7505
7608
  });
7506
7609
  seen.add(id);
7507
7610
  }
7508
- } else if (_optionalChain([walletSession, 'optionalAccess', _242 => _242.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7611
+ } else if (_optionalChain([walletSession, 'optionalAccess', _244 => _244.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7509
7612
  const id = `evm:${walletSession.address.toLowerCase()}`;
7510
7613
  if (!seen.has(id)) {
7511
7614
  options.push({
@@ -7521,13 +7624,13 @@ function DepositFlow({
7521
7624
  return options;
7522
7625
  }, [
7523
7626
  connectedWalletAddress,
7524
- _optionalChain([walletSession, 'optionalAccess', _243 => _243.address]),
7525
- _optionalChain([walletSession, 'optionalAccess', _244 => _244.isConnected]),
7526
- _optionalChain([walletSession, 'optionalAccess', _245 => _245.canSignEvm]),
7527
- _optionalChain([walletSession, 'optionalAccess', _246 => _246.icon]),
7528
- _optionalChain([walletSession, 'optionalAccess', _247 => _247.isSolana]),
7529
- _optionalChain([walletSession, 'optionalAccess', _248 => _248.solanaAddress]),
7530
- _optionalChain([walletSession, 'optionalAccess', _249 => _249.caipAddress])
7627
+ _optionalChain([walletSession, 'optionalAccess', _245 => _245.address]),
7628
+ _optionalChain([walletSession, 'optionalAccess', _246 => _246.isConnected]),
7629
+ _optionalChain([walletSession, 'optionalAccess', _247 => _247.canSignEvm]),
7630
+ _optionalChain([walletSession, 'optionalAccess', _248 => _248.icon]),
7631
+ _optionalChain([walletSession, 'optionalAccess', _249 => _249.isSolana]),
7632
+ _optionalChain([walletSession, 'optionalAccess', _250 => _250.solanaAddress]),
7633
+ _optionalChain([walletSession, 'optionalAccess', _251 => _251.caipAddress])
7531
7634
  ]);
7532
7635
  const offeredFiatMethods = _react.useMemo.call(void 0,
7533
7636
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -7547,11 +7650,11 @@ function DepositFlow({
7547
7650
  hasEnabledAssetMigration
7548
7651
  ].filter(Boolean).length;
7549
7652
  const canAutoLock = Boolean(
7550
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _250 => _250.account]) && !walletSession && enabledFeatureCount === 1
7653
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _252 => _252.account]) && !walletSession && enabledFeatureCount === 1
7551
7654
  );
7552
7655
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
7553
7656
  const hasReownSession = Boolean(
7554
- _optionalChain([walletSession, 'optionalAccess', _251 => _251.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _252 => _252.address])
7657
+ _optionalChain([walletSession, 'optionalAccess', _253 => _253.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _254 => _254.address])
7555
7658
  );
7556
7659
  const isDappImportWalletHydrating = Boolean(
7557
7660
  hasWalletClientProp && walletClientProp === void 0 || walletSession && !hasReownSession && !walletSession.isReady
@@ -7582,7 +7685,7 @@ function DepositFlow({
7582
7685
  return;
7583
7686
  }
7584
7687
  let cancelled = false;
7585
- _chunkQGNJFDEOcjs.fetchTokenPriceUsd.call(void 0, service, {
7688
+ _chunkN3AAT6BScjs.fetchTokenPriceUsd.call(void 0, service, {
7586
7689
  chainId: targetChainId,
7587
7690
  address: targetToken,
7588
7691
  symbol: targetSymbol
@@ -7599,11 +7702,11 @@ function DepositFlow({
7599
7702
  return null;
7600
7703
  }
7601
7704
  if (canAutoLock) {
7602
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _253 => _253.chain, 'optionalAccess', _254 => _254.id]), () => ( setupChainId));
7705
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _255 => _255.chain, 'optionalAccess', _256 => _256.id]), () => ( setupChainId));
7603
7706
  return {
7604
7707
  ownerAddress: walletClientProp.account.address,
7605
7708
  walletClient: walletClientProp,
7606
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7709
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7607
7710
  switchChain: dappSwitchChain
7608
7711
  };
7609
7712
  }
@@ -7615,20 +7718,20 @@ function DepositFlow({
7615
7718
  if (selectedOption.kind === "solana") {
7616
7719
  return null;
7617
7720
  }
7618
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _255 => _255.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7619
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _256 => _256.chain, 'optionalAccess', _257 => _257.id]), () => ( setupChainId));
7721
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _257 => _257.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7722
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _258 => _258.chain, 'optionalAccess', _259 => _259.id]), () => ( setupChainId));
7620
7723
  return {
7621
7724
  ownerAddress: walletClientProp.account.address,
7622
7725
  walletClient: walletClientProp,
7623
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7726
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7624
7727
  switchChain: dappSwitchChain
7625
7728
  };
7626
7729
  }
7627
- if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _258 => _258.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7730
+ if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _260 => _260.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7628
7731
  return {
7629
7732
  ownerAddress: walletSession.address,
7630
7733
  walletClient: walletSession.walletClient,
7631
- publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7734
+ publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7632
7735
  switchChain: walletSession.switchChain
7633
7736
  };
7634
7737
  }
@@ -7650,7 +7753,7 @@ function DepositFlow({
7650
7753
  // nothing else here when the host switches chain, and the context would go
7651
7754
  // on holding a client bound to the old one: `chainMismatch` never clears
7652
7755
  // and the CTA stays disabled with nothing beside it.
7653
- _optionalChain([walletSession, 'optionalAccess', _259 => _259.walletClient]),
7756
+ _optionalChain([walletSession, 'optionalAccess', _261 => _261.walletClient]),
7654
7757
  setupChainId,
7655
7758
  rpcUrls
7656
7759
  ]);
@@ -7690,35 +7793,35 @@ function DepositFlow({
7690
7793
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
7691
7794
  if (!selectedWalletId) return null;
7692
7795
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
7693
- if (_optionalChain([opt, 'optionalAccess', _260 => _260.kind]) === "external" && opt.address) {
7796
+ if (_optionalChain([opt, 'optionalAccess', _262 => _262.kind]) === "external" && opt.address) {
7694
7797
  return opt.address;
7695
7798
  }
7696
- if (_optionalChain([opt, 'optionalAccess', _261 => _261.kind]) === "connected" && opt.address) {
7799
+ if (_optionalChain([opt, 'optionalAccess', _263 => _263.kind]) === "connected" && opt.address) {
7697
7800
  return opt.address;
7698
7801
  }
7699
7802
  return null;
7700
7803
  }, [selectedWalletId, walletOptions]);
7701
7804
  const dappImportOwner = _react.useMemo.call(void 0, () => {
7702
7805
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
7703
- if (_optionalChain([walletSession, 'optionalAccess', _262 => _262.address]) && walletSession.isConnected) {
7806
+ if (_optionalChain([walletSession, 'optionalAccess', _264 => _264.address]) && walletSession.isConnected) {
7704
7807
  return walletSession.address;
7705
7808
  }
7706
7809
  if (connectedWalletAddress) return connectedWalletAddress;
7707
7810
  return null;
7708
7811
  }, [
7709
7812
  selectedEvmWalletOwner,
7710
- _optionalChain([walletSession, 'optionalAccess', _263 => _263.address]),
7711
- _optionalChain([walletSession, 'optionalAccess', _264 => _264.isConnected]),
7813
+ _optionalChain([walletSession, 'optionalAccess', _265 => _265.address]),
7814
+ _optionalChain([walletSession, 'optionalAccess', _266 => _266.isConnected]),
7712
7815
  connectedWalletAddress
7713
7816
  ]);
7714
7817
  const activeOwner = _react.useMemo.call(void 0,
7715
7818
  () => resolveOwnerForMode(flowMode, {
7716
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _265 => _265.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7819
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _267 => _267.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7717
7820
  dappImportOwner
7718
7821
  }),
7719
7822
  [
7720
7823
  flowMode,
7721
- _optionalChain([signerContext, 'optionalAccess', _266 => _266.ownerAddress]),
7824
+ _optionalChain([signerContext, 'optionalAccess', _268 => _268.ownerAddress]),
7722
7825
  canAutoLock,
7723
7826
  connectedWalletAddress,
7724
7827
  selectedEvmWalletOwner,
@@ -7735,7 +7838,7 @@ function DepositFlow({
7735
7838
  ].join(":");
7736
7839
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
7737
7840
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
7738
- _optionalChain([onLifecycleRef, 'access', _267 => _267.current, 'optionalCall', _268 => _268({
7841
+ _optionalChain([onLifecycleRef, 'access', _269 => _269.current, 'optionalCall', _270 => _270({
7739
7842
  type: "smart-account-changed",
7740
7843
  evm: activeEntry.smartAccount,
7741
7844
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -7763,7 +7866,7 @@ function DepositFlow({
7763
7866
  return;
7764
7867
  }
7765
7868
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
7766
- _optionalChain([onLifecycleRef, 'access', _269 => _269.current, 'optionalCall', _270 => _270({
7869
+ _optionalChain([onLifecycleRef, 'access', _271 => _271.current, 'optionalCall', _272 => _272({
7767
7870
  type: "connected",
7768
7871
  address: activeOwner,
7769
7872
  smartAccount: activeEntry.smartAccount
@@ -7836,7 +7939,7 @@ function DepositFlow({
7836
7939
  const handleWalletDisconnect = _react.useCallback.call(void 0, () => {
7837
7940
  analytics.abandon("wallet_disconnect");
7838
7941
  analytics.resetAttempt();
7839
- _optionalChain([onDisconnect, 'optionalCall', _271 => _271()]);
7942
+ _optionalChain([onDisconnect, 'optionalCall', _273 => _273()]);
7840
7943
  storeApi.dispatch({
7841
7944
  type: "back/requested",
7842
7945
  hasWalletOptions: hasWalletOptions || Boolean(walletSession)
@@ -7849,7 +7952,7 @@ function DepositFlow({
7849
7952
  setQrSourcePrice({ resolved: false, usd: null });
7850
7953
  if (!qrSourceAsset) return;
7851
7954
  let cancelled = false;
7852
- _chunkQGNJFDEOcjs.fetchTokenPriceUsd.call(void 0, service, {
7955
+ _chunkN3AAT6BScjs.fetchTokenPriceUsd.call(void 0, service, {
7853
7956
  chainId: qrSourceAsset.chainId,
7854
7957
  address: qrSourceAsset.token,
7855
7958
  symbol: qrSourceAsset.symbol
@@ -7872,7 +7975,7 @@ function DepositFlow({
7872
7975
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
7873
7976
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
7874
7977
  _react.useEffect.call(void 0, () => {
7875
- _optionalChain([onStepChangeRef, 'access', _272 => _272.current, 'optionalCall', _273 => _273(currentBackHandler, currentScreen)]);
7978
+ _optionalChain([onStepChangeRef, 'access', _274 => _274.current, 'optionalCall', _275 => _275(currentBackHandler, currentScreen)]);
7876
7979
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
7877
7980
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
7878
7981
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -7882,7 +7985,7 @@ function DepositFlow({
7882
7985
  modalContentElRef.current = mc;
7883
7986
  const ro = new ResizeObserver((entries) => {
7884
7987
  for (const entry of entries) {
7885
- const border = _optionalChain([entry, 'access', _274 => _274.borderBoxSize, 'optionalAccess', _275 => _275[0], 'optionalAccess', _276 => _276.blockSize]);
7988
+ const border = _optionalChain([entry, 'access', _276 => _276.borderBoxSize, 'optionalAccess', _277 => _277[0], 'optionalAccess', _278 => _278.blockSize]);
7886
7989
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
7887
7990
  }
7888
7991
  });
@@ -7943,7 +8046,7 @@ function DepositFlow({
7943
8046
  targetToken
7944
8047
  ]);
7945
8048
  _react.useEffect.call(void 0, () => {
7946
- _optionalChain([onLifecycleRef, 'access', _277 => _277.current, 'optionalCall', _278 => _278({
8049
+ _optionalChain([onLifecycleRef, 'access', _279 => _279.current, 'optionalCall', _280 => _280({
7947
8050
  type: "balance-changed",
7948
8051
  totalUsd: totalBalanceUsd
7949
8052
  })]);
@@ -7960,9 +8063,9 @@ function DepositFlow({
7960
8063
  const handleConfirmWallet = _react.useCallback.call(void 0,
7961
8064
  (walletId) => {
7962
8065
  const selectedOption = walletOptions.find((o) => o.id === walletId);
7963
- const mode = _optionalChain([selectedOption, 'optionalAccess', _279 => _279.kind]) === "solana" ? "solana-wallet" : "wallet";
8066
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _281 => _281.kind]) === "solana" ? "solana-wallet" : "wallet";
7964
8067
  analytics.selectMethod("wallet", "user", {
7965
- network: _optionalChain([selectedOption, 'optionalAccess', _280 => _280.kind]) === "solana" ? "solana" : "evm",
8068
+ network: _optionalChain([selectedOption, 'optionalAccess', _282 => _282.kind]) === "solana" ? "solana" : "evm",
7966
8069
  integration: _nullishCoalesce(walletIntegration, () => ( "none"))
7967
8070
  });
7968
8071
  storeApi.dispatch({
@@ -7974,7 +8077,7 @@ function DepositFlow({
7974
8077
  [analytics, walletIntegration, walletOptions, storeApi]
7975
8078
  );
7976
8079
  const isSolanaWalletConnected = Boolean(
7977
- _optionalChain([walletSession, 'optionalAccess', _281 => _281.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _282 => _282.isSolana])
8080
+ _optionalChain([walletSession, 'optionalAccess', _283 => _283.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _284 => _284.isSolana])
7978
8081
  );
7979
8082
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
7980
8083
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -7991,7 +8094,7 @@ function DepositFlow({
7991
8094
  const owner = dappImportOwner;
7992
8095
  if (owner) {
7993
8096
  const wallet = walletOptions.find(
7994
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _283 => _283.toLowerCase, 'call', _284 => _284()]) === owner.toLowerCase()
8097
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _285 => _285.toLowerCase, 'call', _286 => _286()]) === owner.toLowerCase()
7995
8098
  );
7996
8099
  if (wallet) {
7997
8100
  storeApi.dispatch({
@@ -8035,8 +8138,8 @@ function DepositFlow({
8035
8138
  eoa: dappImportOwner,
8036
8139
  getPublicClient: (chainId) => {
8037
8140
  try {
8038
- return _chunkQGNJFDEOcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8039
- } catch (e38) {
8141
+ return _chunkN3AAT6BScjs.getPublicClient.call(void 0, chainId, rpcUrls);
8142
+ } catch (e39) {
8040
8143
  return null;
8041
8144
  }
8042
8145
  },
@@ -8090,7 +8193,17 @@ function DepositFlow({
8090
8193
  providerId: initialAssetMigrationProvider.id
8091
8194
  });
8092
8195
  }, [analytics, initialAssetMigrationProvider, flowSlice, storeApi]);
8093
- const dappImportAvailability = useDepositStore((s) => s.dappImport.availability);
8196
+ const storedDappImportAvailability = useDepositStore(
8197
+ (s) => s.dappImport.availability
8198
+ );
8199
+ const isExcludedByRestrictedList = _chunkN3AAT6BScjs.useRestrictedListExclusion.call(void 0, );
8200
+ const dappImportAvailability = _react.useMemo.call(void 0,
8201
+ () => narrowDappImportAvailability(
8202
+ storedDappImportAvailability,
8203
+ isExcludedByRestrictedList
8204
+ ),
8205
+ [storedDappImportAvailability, isExcludedByRestrictedList]
8206
+ );
8094
8207
  const dappImportAvailabilityOwner = useDepositStore(
8095
8208
  (s) => s.dappImport.availabilityOwner
8096
8209
  );
@@ -8138,7 +8251,7 @@ function DepositFlow({
8138
8251
  }, [activeDappImportProviderId, enabledDappImportProviders]);
8139
8252
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
8140
8253
  if (!activeDappImportProviderId) return null;
8141
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _285 => _285.toLowerCase, 'call', _286 => _286()]) !== dappImportOwner.toLowerCase()) {
8254
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) !== dappImportOwner.toLowerCase()) {
8142
8255
  return null;
8143
8256
  }
8144
8257
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -8181,7 +8294,7 @@ function DepositFlow({
8181
8294
  setup: setupSlice
8182
8295
  });
8183
8296
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
8184
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) === dappImportOwner.toLowerCase()
8297
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _289 => _289.toLowerCase, 'call', _290 => _290()]) === dappImportOwner.toLowerCase()
8185
8298
  ), () => ( null)) : null;
8186
8299
  const outcome = resolveBootOutcome({
8187
8300
  status,
@@ -8231,7 +8344,7 @@ function DepositFlow({
8231
8344
  if (dappImportOwner) {
8232
8345
  const plan = bootRetryPlan({
8233
8346
  setupStatus: snapshot.setup.status,
8234
- availabilityEntry: _optionalChain([snapshot, 'access', _289 => _289.dappImport, 'access', _290 => _290.availabilityOwner, 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8347
+ availabilityEntry: _optionalChain([snapshot, 'access', _291 => _291.dappImport, 'access', _292 => _292.availabilityOwner, 'optionalAccess', _293 => _293.toLowerCase, 'call', _294 => _294()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8235
8348
  });
8236
8349
  if (plan.restartSetup) {
8237
8350
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -8305,7 +8418,7 @@ function DepositFlow({
8305
8418
  acceptedExchangeFeeBps: disclosedFeeBps
8306
8419
  });
8307
8420
  } catch (error) {
8308
- if (error instanceof _chunkQGNJFDEOcjs.SwappedConnectFeeChangedError) {
8421
+ if (error instanceof _chunkN3AAT6BScjs.SwappedConnectFeeChangedError) {
8309
8422
  return error.exchangeFeeBps;
8310
8423
  }
8311
8424
  throw error;
@@ -8313,7 +8426,7 @@ function DepositFlow({
8313
8426
  entry = { smartAccount: owner, response };
8314
8427
  }
8315
8428
  const currentAccount = storeApi.getState().setup.smartAccount;
8316
- if (_optionalChain([currentAccount, 'optionalAccess', _293 => _293.toLowerCase, 'call', _294 => _294()]) !== owner) {
8429
+ if (_optionalChain([currentAccount, 'optionalAccess', _295 => _295.toLowerCase, 'call', _296 => _296()]) !== owner) {
8317
8430
  swappedConnectUrlRef.current.delete(key);
8318
8431
  throw new Error("Deposit account changed. Select your exchange again.");
8319
8432
  }
@@ -8347,7 +8460,7 @@ function DepositFlow({
8347
8460
  );
8348
8461
  }
8349
8462
  swappedConnectUrlRef.current.delete(key);
8350
- const response = _optionalChain([entry, 'optionalAccess', _295 => _295.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8463
+ const response = _optionalChain([entry, 'optionalAccess', _297 => _297.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8351
8464
  smartAccount,
8352
8465
  connection,
8353
8466
  acceptedExchangeFeeBps: expectedFeeBps
@@ -8515,7 +8628,7 @@ function DepositFlow({
8515
8628
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
8516
8629
  analytics.completeStep();
8517
8630
  analytics.resetAttempt();
8518
- _optionalChain([onLifecycleRef, 'access', _296 => _296.current, 'optionalCall', _297 => _297({
8631
+ _optionalChain([onLifecycleRef, 'access', _298 => _298.current, 'optionalCall', _299 => _299({
8519
8632
  type: "smart-account-changed",
8520
8633
  evm: null,
8521
8634
  solana: null
@@ -8546,17 +8659,17 @@ function DepositFlow({
8546
8659
  forceRegister
8547
8660
  ]
8548
8661
  );
8549
- const desiredSetupRequestKey = _chunkQGNJFDEOcjs.computeRequestKey.call(void 0, setupInput);
8662
+ const desiredSetupRequestKey = _chunkN3AAT6BScjs.computeRequestKey.call(void 0, setupInput);
8550
8663
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
8551
8664
  _react.useEffect.call(void 0, () => {
8552
8665
  void (async () => {
8553
- const requestKey = _chunkQGNJFDEOcjs.computeRequestKey.call(void 0, setupInput);
8554
- const cacheKey = _chunkQGNJFDEOcjs.computeCacheKey.call(void 0, setupInput);
8555
- const cacheable = _chunkQGNJFDEOcjs.computeIsCacheable.call(void 0, setupInput);
8666
+ const requestKey = _chunkN3AAT6BScjs.computeRequestKey.call(void 0, setupInput);
8667
+ const cacheKey = _chunkN3AAT6BScjs.computeCacheKey.call(void 0, setupInput);
8668
+ const cacheable = _chunkN3AAT6BScjs.computeIsCacheable.call(void 0, setupInput);
8556
8669
  if (storeApi.getState().setup.requestKey === requestKey) {
8557
8670
  return;
8558
8671
  }
8559
- const dedupedResult = _chunkQGNJFDEOcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8672
+ const dedupedResult = _chunkN3AAT6BScjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8560
8673
  if (dedupedResult) {
8561
8674
  storeApi.dispatch({
8562
8675
  type: "setup/started",
@@ -8582,7 +8695,7 @@ function DepositFlow({
8582
8695
  cacheable
8583
8696
  });
8584
8697
  try {
8585
- const result = await _chunkQGNJFDEOcjs.runAccountSetupDeduped.call(void 0,
8698
+ const result = await _chunkN3AAT6BScjs.runAccountSetupDeduped.call(void 0,
8586
8699
  setupInput,
8587
8700
  { service, debug },
8588
8701
  requestKey
@@ -8597,7 +8710,7 @@ function DepositFlow({
8597
8710
  }
8598
8711
  });
8599
8712
  } catch (error) {
8600
- const message = error instanceof _chunkQGNJFDEOcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8713
+ const message = error instanceof _chunkN3AAT6BScjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8601
8714
  storeApi.dispatch({
8602
8715
  type: "setup/failed",
8603
8716
  requestKey,
@@ -8629,11 +8742,11 @@ function DepositFlow({
8629
8742
  return;
8630
8743
  }
8631
8744
  storeApi.dispatch({ type: "portfolio/loading", network, address });
8632
- const requestId = _optionalChain([readPortfolioEntry, 'call', _298 => _298(
8745
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _300 => _300(
8633
8746
  storeApi.getState().portfolio,
8634
8747
  network,
8635
8748
  address
8636
- ), 'optionalAccess', _299 => _299.requestId]);
8749
+ ), 'optionalAccess', _301 => _301.requestId]);
8637
8750
  if (requestId === void 0) return;
8638
8751
  void (async () => {
8639
8752
  try {
@@ -8646,9 +8759,9 @@ function DepositFlow({
8646
8759
  address,
8647
8760
  requestId,
8648
8761
  totalUsd: portfolio.totalUsd,
8649
- chainIds: _chunkQGNJFDEOcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8762
+ chainIds: _chunkN3AAT6BScjs.chainIdsByValue.call(void 0, portfolio.tokens)
8650
8763
  });
8651
- } catch (e39) {
8764
+ } catch (e40) {
8652
8765
  storeApi.dispatch({
8653
8766
  type: "portfolio/failed",
8654
8767
  network,
@@ -8670,7 +8783,7 @@ function DepositFlow({
8670
8783
  { type: "transaction_hash", value: data.txHash },
8671
8784
  "transfer_tracking"
8672
8785
  );
8673
- _optionalChain([onLifecycleRef, 'access', _300 => _300.current, 'optionalCall', _301 => _301({ type: "submitted", ...data })]);
8786
+ _optionalChain([onLifecycleRef, 'access', _302 => _302.current, 'optionalCall', _303 => _303({ type: "submitted", ...data })]);
8674
8787
  },
8675
8788
  [analytics, logFlow, onLifecycleRef]
8676
8789
  );
@@ -8739,7 +8852,7 @@ function DepositFlow({
8739
8852
  sourceDecimals: tokenAtSubmit.decimals,
8740
8853
  inputAmountUsd: amountUsd
8741
8854
  });
8742
- _optionalChain([onLifecycleRef, 'access', _302 => _302.current, 'optionalCall', _303 => _303({
8855
+ _optionalChain([onLifecycleRef, 'access', _304 => _304.current, 'optionalCall', _305 => _305({
8743
8856
  type: "submitted",
8744
8857
  txHash,
8745
8858
  sourceChain: "solana",
@@ -8833,8 +8946,8 @@ function DepositFlow({
8833
8946
  sourceChain: chainId,
8834
8947
  sourceToken: token,
8835
8948
  amount,
8836
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _304 => _304.symbol]),
8837
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _305 => _305.decimals]),
8949
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _306 => _306.symbol]),
8950
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _307 => _307.decimals]),
8838
8951
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
8839
8952
  directTransfer: routed.directTransfer,
8840
8953
  sourceTxHashPending: routed.sourceTxHashPending,
@@ -8875,7 +8988,7 @@ function DepositFlow({
8875
8988
  swappedContext,
8876
8989
  initialEvent: info.initialEvent
8877
8990
  });
8878
- _optionalChain([onLifecycleRef, 'access', _306 => _306.current, 'optionalCall', _307 => _307({
8991
+ _optionalChain([onLifecycleRef, 'access', _308 => _308.current, 'optionalCall', _309 => _309({
8879
8992
  type: "submitted",
8880
8993
  txHash: info.txHash,
8881
8994
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -8903,12 +9016,12 @@ function DepositFlow({
8903
9016
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
8904
9017
  (txHash, sourceChain, amount) => {
8905
9018
  const depositAtSubmit = storeApi.getState().deposit;
8906
- _optionalChain([onLifecycleRef, 'access', _308 => _308.current, 'optionalCall', _309 => _309({
9019
+ _optionalChain([onLifecycleRef, 'access', _310 => _310.current, 'optionalCall', _311 => _311({
8907
9020
  type: "submitted",
8908
9021
  txHash,
8909
9022
  sourceChain,
8910
9023
  amount,
8911
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _310 => _310.selectedAsset, 'optionalAccess', _311 => _311.decimals]),
9024
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _312 => _312.selectedAsset, 'optionalAccess', _313 => _313.decimals]),
8912
9025
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
8913
9026
  })]);
8914
9027
  },
@@ -8921,7 +9034,7 @@ function DepositFlow({
8921
9034
  analyticsStepForFlowStep(analyticsMethod, "processing")
8922
9035
  );
8923
9036
  analytics.outcome("completed");
8924
- _optionalChain([onLifecycleRef, 'access', _312 => _312.current, 'optionalCall', _313 => _313({
9037
+ _optionalChain([onLifecycleRef, 'access', _314 => _314.current, 'optionalCall', _315 => _315({
8925
9038
  type: "complete",
8926
9039
  txHash,
8927
9040
  destinationTxHash,
@@ -8938,7 +9051,7 @@ function DepositFlow({
8938
9051
  );
8939
9052
  analytics.outcome("failed");
8940
9053
  analytics.failure("processor_failed", false);
8941
- _optionalChain([onLifecycleRef, 'access', _314 => _314.current, 'optionalCall', _315 => _315({ type: "failed", txHash, error })]);
9054
+ _optionalChain([onLifecycleRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317({ type: "failed", txHash, error })]);
8942
9055
  },
8943
9056
  [analytics, analyticsMethod, logFlowError, onLifecycleRef]
8944
9057
  );
@@ -8959,7 +9072,7 @@ function DepositFlow({
8959
9072
  failureStep
8960
9073
  );
8961
9074
  }
8962
- _optionalChain([onErrorRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317({ message, code, cause })]);
9075
+ _optionalChain([onErrorRef, 'access', _318 => _318.current, 'optionalCall', _319 => _319({ message, code, cause })]);
8963
9076
  },
8964
9077
  [analytics, logFlowError, onErrorRef]
8965
9078
  );
@@ -9008,9 +9121,9 @@ function DepositFlow({
9008
9121
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
9009
9122
  state,
9010
9123
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
9011
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _318 => _318.status]), () => ( "loading")),
9012
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _319 => _319.status]) === "ready" ? portfolioEntry.totalUsd : null,
9013
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _320 => _320.chainIds]), () => ( []))
9124
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _320 => _320.status]), () => ( "loading")),
9125
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _321 => _321.status]) === "ready" ? portfolioEntry.totalUsd : null,
9126
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _322 => _322.chainIds]), () => ( []))
9014
9127
  };
9015
9128
  });
9016
9129
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -9191,7 +9304,7 @@ function DepositFlow({
9191
9304
  consumePrefetchedUrl: consumeSwappedWidgetUrlPrefetch,
9192
9305
  onSwappedComplete: handleSwappedComplete,
9193
9306
  onSwappedFailed: handleDepositFailed,
9194
- onClose: () => _optionalChain([onClose, 'optionalCall', _321 => _321(
9307
+ onClose: () => _optionalChain([onClose, 'optionalCall', _323 => _323(
9195
9308
  openExternally ? "native_dismiss_request" : "header_button"
9196
9309
  )]),
9197
9310
  onGoBack: handleProviderBack,
@@ -9205,7 +9318,7 @@ function DepositFlow({
9205
9318
  }
9206
9319
  ),
9207
9320
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9208
- _chunkQGNJFDEOcjs.ProcessingStep,
9321
+ _chunkN3AAT6BScjs.ProcessingStep,
9209
9322
  {
9210
9323
  smartAccount: step.smartAccount,
9211
9324
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9271,7 +9384,7 @@ function DepositFlow({
9271
9384
  loadUrl: () => loadSwappedConnectUrl(step.smartAccount, step.connection),
9272
9385
  onSwappedComplete: handleSwappedComplete,
9273
9386
  onSwappedFailed: handleDepositFailed,
9274
- onClose: () => _optionalChain([onClose, 'optionalCall', _322 => _322(
9387
+ onClose: () => _optionalChain([onClose, 'optionalCall', _324 => _324(
9275
9388
  openExternally ? "native_dismiss_request" : "header_button"
9276
9389
  )]),
9277
9390
  onGoBack: handleProviderBack,
@@ -9285,7 +9398,7 @@ function DepositFlow({
9285
9398
  }
9286
9399
  ),
9287
9400
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9288
- _chunkQGNJFDEOcjs.ProcessingStep,
9401
+ _chunkN3AAT6BScjs.ProcessingStep,
9289
9402
  {
9290
9403
  smartAccount: step.smartAccount,
9291
9404
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9320,8 +9433,8 @@ function DepositFlow({
9320
9433
  );
9321
9434
  }
9322
9435
  if (isSolanaWalletMode) {
9323
- const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _323 => _323.solanaAddress]);
9324
- const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _324 => _324.solanaProvider]);
9436
+ const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _325 => _325.solanaAddress]);
9437
+ const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _326 => _326.solanaProvider]);
9325
9438
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9326
9439
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9327
9440
  AccountPreparingSkeleton,
@@ -9372,7 +9485,7 @@ function DepositFlow({
9372
9485
  targetToken,
9373
9486
  service,
9374
9487
  solanaProvider,
9375
- solanaConnection: _optionalChain([walletSession, 'optionalAccess', _325 => _325.solanaConnection]),
9488
+ solanaConnection: _optionalChain([walletSession, 'optionalAccess', _327 => _327.solanaConnection]),
9376
9489
  uiConfig,
9377
9490
  onConfirm: handleSolanaConfirmed,
9378
9491
  onError: handleError,
@@ -9414,7 +9527,7 @@ function DepositFlow({
9414
9527
  ) })
9415
9528
  ] }) : null,
9416
9529
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9417
- _chunkQGNJFDEOcjs.ProcessingStep,
9530
+ _chunkN3AAT6BScjs.ProcessingStep,
9418
9531
  {
9419
9532
  smartAccount: effectiveStep.smartAccount,
9420
9533
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9453,7 +9566,7 @@ function DepositFlow({
9453
9566
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9454
9567
  DappImportAssetSelectSkeleton,
9455
9568
  {
9456
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _326 => _326.sourceLabel]), () => ( "")),
9569
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _328 => _328.sourceLabel]), () => ( "")),
9457
9570
  error: dappImportBootError,
9458
9571
  onRetry: handleBootRetry
9459
9572
  }
@@ -9475,7 +9588,7 @@ function DepositFlow({
9475
9588
  rows: dappImportSelectRows,
9476
9589
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
9477
9590
  onSelect: (providerId) => {
9478
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _327 => _327.toLowerCase, 'call', _328 => _328()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9591
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _329 => _329.toLowerCase, 'call', _330 => _330()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9479
9592
  if (availabilityEntry === "error") {
9480
9593
  storeApi.dispatch({
9481
9594
  type: "dapp-import/availability-retry-requested"
@@ -9494,16 +9607,16 @@ function DepositFlow({
9494
9607
  }
9495
9608
  );
9496
9609
  }
9497
- if (!_optionalChain([signerContext, 'optionalAccess', _329 => _329.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _330 => _330.publicClient])) {
9610
+ if (!_optionalChain([signerContext, 'optionalAccess', _331 => _331.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _332 => _332.publicClient])) {
9498
9611
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-state", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: "Connecting wallet\u2026" }) }) }) }) });
9499
9612
  }
9500
9613
  const ownerAddress = signerContext.ownerAddress;
9501
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _331 => _331.walletClient, 'optionalAccess', _332 => _332.chain, 'optionalAccess', _333 => _333.id]), () => ( _optionalChain([signerContext, 'access', _334 => _334.publicClient, 'access', _335 => _335.chain, 'optionalAccess', _336 => _336.id]))), () => ( setupChainId));
9614
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _333 => _333.walletClient, 'optionalAccess', _334 => _334.chain, 'optionalAccess', _335 => _335.id]), () => ( _optionalChain([signerContext, 'access', _336 => _336.publicClient, 'access', _337 => _337.chain, 'optionalAccess', _338 => _338.id]))), () => ( setupChainId));
9502
9615
  const getReadClientForChain = (chainId) => {
9503
- if (_optionalChain([signerContext, 'access', _337 => _337.publicClient, 'access', _338 => _338.chain, 'optionalAccess', _339 => _339.id]) === chainId) {
9616
+ if (_optionalChain([signerContext, 'access', _339 => _339.publicClient, 'access', _340 => _340.chain, 'optionalAccess', _341 => _341.id]) === chainId) {
9504
9617
  return signerContext.publicClient;
9505
9618
  }
9506
- return _chunkQGNJFDEOcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9619
+ return _chunkN3AAT6BScjs.getPublicClient.call(void 0, chainId, rpcUrls);
9507
9620
  };
9508
9621
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9509
9622
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9529,9 +9642,9 @@ function DepositFlow({
9529
9642
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9530
9643
  DappImportAssetSelectStep,
9531
9644
  {
9532
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _340 => _340.assets, 'access', _341 => _341[0], 'optionalAccess', _342 => _342.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9645
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _342 => _342.assets, 'access', _343 => _343[0], 'optionalAccess', _344 => _344.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9533
9646
  assets: activeDappImportAvailability.assets,
9534
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _343 => _343.incomplete, 'optionalAccess', _344 => _344.summary]),
9647
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _345 => _345.incomplete, 'optionalAccess', _346 => _346.summary]),
9535
9648
  onSelect: handleDappImportAssetSelected
9536
9649
  }
9537
9650
  ),
@@ -9606,7 +9719,7 @@ function DepositFlow({
9606
9719
  }
9607
9720
  ),
9608
9721
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9609
- _chunkQGNJFDEOcjs.ProcessingStep,
9722
+ _chunkN3AAT6BScjs.ProcessingStep,
9610
9723
  {
9611
9724
  smartAccount: effectiveStep.smartAccount,
9612
9725
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9646,7 +9759,7 @@ function DepositFlow({
9646
9759
 
9647
9760
  var ReownDepositInner = _react.lazy.call(void 0, async () => {
9648
9761
  await loadReownDependencies();
9649
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-6CXXGQ7X.cjs")));
9762
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-TVO3ZQQK.cjs")));
9650
9763
  return { default: module.DepositModalReown };
9651
9764
  });
9652
9765
  function buildDepositAnalyticsSessionProperties({
@@ -9675,7 +9788,7 @@ function buildDepositAnalyticsSessionProperties({
9675
9788
  enabledFundingMethods.push("wallet");
9676
9789
  }
9677
9790
  if (enableQrTransfer) enabledFundingMethods.push("transfer");
9678
- if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _345 => _345.length]) !== 0) {
9791
+ if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _347 => _347.length]) !== 0) {
9679
9792
  enabledFundingMethods.push("fiat_onramp");
9680
9793
  }
9681
9794
  if (enableExchangeConnect) enabledFundingMethods.push("exchange_connect");
@@ -9695,7 +9808,7 @@ function buildDepositAnalyticsSessionProperties({
9695
9808
  amount: defaultAmount !== void 0,
9696
9809
  initial_asset_migration: initialAssetMigration !== void 0
9697
9810
  },
9698
- ..._chunkQGNJFDEOcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9811
+ ..._chunkN3AAT6BScjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9699
9812
  };
9700
9813
  }
9701
9814
  var WALLET_CLIENT_PROP = "walletClient";
@@ -9703,8 +9816,8 @@ function hasSuppliedWalletClient(props) {
9703
9816
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
9704
9817
  }
9705
9818
  function DepositModal(props) {
9706
- _chunkQGNJFDEOcjs.warnRemovedProps.call(void 0, "DepositModal", props);
9707
- _chunkQGNJFDEOcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9819
+ _chunkN3AAT6BScjs.warnRemovedProps.call(void 0, "DepositModal", props);
9820
+ _chunkN3AAT6BScjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9708
9821
  const needsReown = !!props.reownAppId;
9709
9822
  const hasWalletClientProp = hasSuppliedWalletClient(props);
9710
9823
  if (needsReown) {
@@ -9776,8 +9889,8 @@ function DepositModalInner({
9776
9889
  const analyticsControllerRef = _react.useRef.call(void 0, null);
9777
9890
  const analyticsSessionIdRef = _react.useRef.call(void 0, null);
9778
9891
  const previousOpenRef = _react.useRef.call(void 0, isOpen);
9779
- const onReadyRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onReady);
9780
- const onUiStateRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onUiState);
9892
+ const onReadyRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onReady);
9893
+ const onUiStateRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onUiState);
9781
9894
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
9782
9895
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
9783
9896
  const [submitting, setSubmitting] = _react.useState.call(void 0, false);
@@ -9785,30 +9898,30 @@ function DepositModalInner({
9785
9898
  void 0
9786
9899
  );
9787
9900
  const [processingSettled, setProcessingSettled] = _react.useState.call(void 0, false);
9788
- const historyButtonVisible = _chunkQGNJFDEOcjs.isHistoryEntryVisible.call(void 0, {
9901
+ const historyButtonVisible = _chunkN3AAT6BScjs.isHistoryEntryVisible.call(void 0, {
9789
9902
  screen: currentScreen,
9790
9903
  submitting,
9791
9904
  settled: processingSettled
9792
9905
  });
9793
9906
  const targetChain = typeof targetChainProp === "string" ? targetChainProp : _chunkOY5N3E6Lcjs.getChainId.call(void 0, targetChainProp);
9794
9907
  const sourceChain = sourceChainProp ? _chunkOY5N3E6Lcjs.getChainId.call(void 0, sourceChainProp) : void 0;
9795
- const rpcUrls = _chunkQGNJFDEOcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9908
+ const rpcUrls = _chunkN3AAT6BScjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9796
9909
  const service = _react.useMemo.call(void 0,
9797
- () => _chunkQGNJFDEOcjs.createDepositService.call(void 0, backendUrl, {
9910
+ () => _chunkN3AAT6BScjs.createDepositService.call(void 0, backendUrl, {
9798
9911
  debug,
9799
9912
  debugScope: "service:deposit"
9800
9913
  }),
9801
9914
  [backendUrl, debug]
9802
9915
  );
9803
9916
  const historyAnalytics = _react.useMemo.call(void 0,
9804
- () => _chunkQGNJFDEOcjs.createHistoryAnalytics.call(void 0, {
9917
+ () => _chunkN3AAT6BScjs.createHistoryAnalytics.call(void 0, {
9805
9918
  modal: "deposit",
9806
9919
  controllerRef: analyticsControllerRef,
9807
9920
  sessionIdRef: analyticsSessionIdRef
9808
9921
  }),
9809
9922
  []
9810
9923
  );
9811
- const history = _chunkQGNJFDEOcjs.useHistoryPanel.call(void 0, {
9924
+ const history = _chunkN3AAT6BScjs.useHistoryPanel.call(void 0, {
9812
9925
  isOpen,
9813
9926
  recipient,
9814
9927
  service,
@@ -9848,15 +9961,15 @@ function DepositModalInner({
9848
9961
  }, [store, targetChain, targetToken]);
9849
9962
  _react.useEffect.call(void 0, () => {
9850
9963
  if (!isOpen || !modalRef.current) return;
9851
- return _chunkQGNJFDEOcjs.applyTheme.call(void 0, modalRef.current, theme);
9964
+ return _chunkN3AAT6BScjs.applyTheme.call(void 0, modalRef.current, theme);
9852
9965
  }, [isOpen, theme]);
9853
9966
  _react.useEffect.call(void 0, () => {
9854
9967
  if (isOpen) {
9855
- _optionalChain([onReadyRef, 'access', _346 => _346.current, 'optionalCall', _347 => _347()]);
9968
+ _optionalChain([onReadyRef, 'access', _348 => _348.current, 'optionalCall', _349 => _349()]);
9856
9969
  }
9857
9970
  }, [isOpen, onReadyRef]);
9858
9971
  _react.useEffect.call(void 0, () => {
9859
- _optionalChain([onUiStateRef, 'access', _348 => _348.current, 'optionalCall', _349 => _349({
9972
+ _optionalChain([onUiStateRef, 'access', _350 => _350.current, 'optionalCall', _351 => _351({
9860
9973
  screen: currentScreen,
9861
9974
  back: backHandler,
9862
9975
  // A recovery in flight is a submission whose outcome is unknown, so a
@@ -9877,10 +9990,10 @@ function DepositModalInner({
9877
9990
  },
9878
9991
  []
9879
9992
  );
9880
- const onLifecycleRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onLifecycle);
9993
+ const onLifecycleRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onLifecycle);
9881
9994
  const handleLifecycle = _react.useCallback.call(void 0,
9882
9995
  (event) => {
9883
- _optionalChain([onLifecycleRef, 'access', _350 => _350.current, 'optionalCall', _351 => _351(event)]);
9996
+ _optionalChain([onLifecycleRef, 'access', _352 => _352.current, 'optionalCall', _353 => _353(event)]);
9884
9997
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
9885
9998
  invalidateHistory();
9886
9999
  }
@@ -9894,8 +10007,8 @@ function DepositModalInner({
9894
10007
  (source) => {
9895
10008
  if (recoverySubmitting) return;
9896
10009
  const analytics = analyticsControllerRef.current;
9897
- _optionalChain([analytics, 'optionalAccess', _352 => _352.abandon, 'call', _353 => _353(source === "provider_back" ? "provider_back" : "modal_close")]);
9898
- _optionalChain([analytics, 'optionalAccess', _354 => _354.close, 'call', _355 => _355(source)]);
10010
+ _optionalChain([analytics, 'optionalAccess', _354 => _354.abandon, 'call', _355 => _355(source === "provider_back" ? "provider_back" : "modal_close")]);
10011
+ _optionalChain([analytics, 'optionalAccess', _356 => _356.close, 'call', _357 => _357(source)]);
9899
10012
  onClose();
9900
10013
  },
9901
10014
  [onClose, recoverySubmitting]
@@ -9911,8 +10024,8 @@ function DepositModalInner({
9911
10024
  _react.useEffect.call(void 0, () => {
9912
10025
  if (previousOpenRef.current && !isOpen) {
9913
10026
  const analytics = analyticsControllerRef.current;
9914
- _optionalChain([analytics, 'optionalAccess', _356 => _356.abandon, 'call', _357 => _357("modal_close")]);
9915
- _optionalChain([analytics, 'optionalAccess', _358 => _358.close, 'call', _359 => _359("host_controlled")]);
10027
+ _optionalChain([analytics, 'optionalAccess', _358 => _358.abandon, 'call', _359 => _359("modal_close")]);
10028
+ _optionalChain([analytics, 'optionalAccess', _360 => _360.close, 'call', _361 => _361("host_controlled")]);
9916
10029
  }
9917
10030
  previousOpenRef.current = isOpen;
9918
10031
  }, [isOpen]);
@@ -9949,12 +10062,12 @@ function DepositModalInner({
9949
10062
  targetChain,
9950
10063
  targetToken
9951
10064
  });
9952
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _360 => _360.showBackButton]), () => ( true));
10065
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _362 => _362.showBackButton]), () => ( true));
9953
10066
  const canGoBack = backHandler !== void 0;
9954
10067
  const hideHeaderChrome = swappedImmersive;
9955
10068
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
9956
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9957
- _chunkQGNJFDEOcjs.Modal,
10069
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10070
+ _chunkN3AAT6BScjs.Modal,
9958
10071
  {
9959
10072
  isOpen,
9960
10073
  onClose: handleModalDismiss,
@@ -9963,7 +10076,7 @@ function DepositModalInner({
9963
10076
  closeOnOverlayClick,
9964
10077
  ariaLabel: "Deposit",
9965
10078
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9966
- _chunkQGNJFDEOcjs.AnalyticsSession,
10079
+ _chunkN3AAT6BScjs.AnalyticsSession,
9967
10080
  {
9968
10081
  modal: "deposit",
9969
10082
  sessionProperties: analyticsSessionProperties,
@@ -9985,12 +10098,12 @@ function DepositModalInner({
9985
10098
  className: "rs-modal-header-back",
9986
10099
  "aria-label": "Go back",
9987
10100
  onClick: backHandler,
9988
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronLeftIcon, {})
10101
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronLeftIcon, {})
9989
10102
  }
9990
10103
  ) }),
9991
10104
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
9992
10105
  historyButtonVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9993
- _chunkQGNJFDEOcjs.HistoryEntryButton,
10106
+ _chunkN3AAT6BScjs.HistoryEntryButton,
9994
10107
  {
9995
10108
  badge: history.badge,
9996
10109
  onClick: history.openPanel,
@@ -10004,7 +10117,7 @@ function DepositModalInner({
10004
10117
  onClick: () => closeWithSource("header_button"),
10005
10118
  className: "rs-modal-close",
10006
10119
  "aria-label": "Close",
10007
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {})
10120
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {})
10008
10121
  }
10009
10122
  )
10010
10123
  ] })
@@ -10040,7 +10153,7 @@ function DepositModalInner({
10040
10153
  onDisconnect,
10041
10154
  onRequestConnect,
10042
10155
  uiConfig,
10043
- appFees: _optionalChain([clientSetup, 'optionalAccess', _361 => _361.appFees]),
10156
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _363 => _363.appFees]),
10044
10157
  appFeesResolved: clientSetup !== null,
10045
10158
  onStepChange: handleStepChange,
10046
10159
  onSwappedImmersiveChange: setSwappedImmersive,
@@ -10054,7 +10167,7 @@ function DepositModalInner({
10054
10167
  }
10055
10168
  ),
10056
10169
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10057
- _chunkQGNJFDEOcjs.HistoryOverlay,
10170
+ _chunkN3AAT6BScjs.HistoryOverlay,
10058
10171
  {
10059
10172
  controller: history,
10060
10173
  backLabel: "Deposit",