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