@rhinestone/deposit-modal 0.15.0 → 0.17.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 (52) hide show
  1. package/README.md +22 -26
  2. package/dist/{DepositModalReown-R37SSHUF.cjs → DepositModalReown-6CXXGQ7X.cjs} +16 -17
  3. package/dist/{DepositModalReown-KOJ7VEY7.mjs → DepositModalReown-ELDSTIME.mjs} +3 -4
  4. package/dist/WithdrawModal-QB2U756L.cjs +11 -0
  5. package/dist/{WithdrawModal-QVXHMH43.mjs → WithdrawModal-QRMDR5T4.mjs} +3 -4
  6. package/dist/{chunk-DTVZUBHI.cjs → chunk-2W4BJ5I3.cjs} +71 -73
  7. package/dist/{chunk-IKUYZA7A.mjs → chunk-H66WM5AO.mjs} +33 -32
  8. package/dist/{chunk-5P2PVLS4.cjs → chunk-JCWJ6HW7.cjs} +1 -1
  9. package/dist/{chunk-3OOY67VJ.cjs → chunk-QGNJFDEO.cjs} +5143 -1882
  10. package/dist/{chunk-5VONFVQN.mjs → chunk-QMGEK623.mjs} +5146 -1885
  11. package/dist/{chunk-CXBMIZUF.mjs → chunk-XCBDJPBD.mjs} +1 -1
  12. package/dist/{chunk-VPDCGD2D.cjs → chunk-XJMDCBHS.cjs} +443 -442
  13. package/dist/{chunk-7UQ6OUEE.mjs → chunk-ZHX4QROC.mjs} +13 -15
  14. package/dist/constants.cjs +2 -2
  15. package/dist/constants.d.cts +1 -1
  16. package/dist/constants.d.ts +1 -1
  17. package/dist/constants.mjs +1 -1
  18. package/dist/deposit.cjs +4 -5
  19. package/dist/deposit.d.cts +2 -2
  20. package/dist/deposit.d.ts +2 -2
  21. package/dist/deposit.mjs +3 -4
  22. package/dist/embed.cjs +18 -59
  23. package/dist/embed.d.cts +2 -8
  24. package/dist/embed.d.ts +2 -8
  25. package/dist/embed.mjs +9 -50
  26. package/dist/index.cjs +5 -10
  27. package/dist/index.d.cts +1 -3
  28. package/dist/index.d.ts +1 -3
  29. package/dist/index.mjs +4 -9
  30. package/dist/server.d.cts +2 -2
  31. package/dist/server.d.ts +2 -2
  32. package/dist/styles.css +37 -0
  33. package/dist/{types-CQ0NHqCy.d.ts → types-B9SbZQIG.d.ts} +15 -113
  34. package/dist/{types-CxiLX5sv.d.cts → types-SwGGf0eH.d.cts} +15 -113
  35. package/dist/withdraw.cjs +4 -5
  36. package/dist/withdraw.d.cts +31 -3
  37. package/dist/withdraw.d.ts +31 -3
  38. package/dist/withdraw.mjs +3 -4
  39. package/package.json +6 -37
  40. package/dist/ClaimModal-GFDBVCN5.cjs +0 -11
  41. package/dist/ClaimModal-VQS3AKEL.mjs +0 -11
  42. package/dist/WithdrawModal-RY2NMFLE.cjs +0 -12
  43. package/dist/chunk-6HUHVXCY.cjs +0 -704
  44. package/dist/chunk-QJ7RCCU7.mjs +0 -704
  45. package/dist/chunk-UCBUCX2W.mjs +0 -3169
  46. package/dist/chunk-X4D52IZK.cjs +0 -3169
  47. package/dist/claim.cjs +0 -9
  48. package/dist/claim.d.cts +0 -17
  49. package/dist/claim.d.ts +0 -17
  50. package/dist/claim.mjs +0 -9
  51. package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
  52. package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
@@ -24,7 +24,6 @@
24
24
 
25
25
 
26
26
 
27
- var _chunkX4D52IZKcjs = require('./chunk-X4D52IZK.cjs');
28
27
 
29
28
 
30
29
 
@@ -88,7 +87,7 @@ var _chunkX4D52IZKcjs = require('./chunk-X4D52IZK.cjs');
88
87
 
89
88
 
90
89
 
91
- var _chunk3OOY67VJcjs = require('./chunk-3OOY67VJ.cjs');
90
+ var _chunkQGNJFDEOcjs = require('./chunk-QGNJFDEO.cjs');
92
91
 
93
92
 
94
93
 
@@ -246,11 +245,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
246
245
 
247
246
  function ChainIcon({ chainId, className, loading }) {
248
247
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, chainId);
249
- const catalogChain = _chunk3OOY67VJcjs.useCatalogChain.call(void 0, _chunk3OOY67VJcjs.catalogKeyForChain.call(void 0, chainId));
248
+ const catalogChain = _chunkQGNJFDEOcjs.useCatalogChain.call(void 0, _chunkQGNJFDEOcjs.catalogKeyForChain.call(void 0, chainId));
250
249
  const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
251
250
  const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
252
251
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
253
- _chunk3OOY67VJcjs.CdnIcon,
252
+ _chunkQGNJFDEOcjs.CdnIcon,
254
253
  {
255
254
  src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
256
255
  alt: name,
@@ -273,7 +272,7 @@ ChainIcon.displayName = "ChainIcon";
273
272
  // src/components/ui/WalletBadgeIcons/index.tsx
274
273
 
275
274
  function BadgeImage({ src, alt = "" }) {
276
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src, alt }) });
275
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src, alt }) });
277
276
  }
278
277
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
279
278
  function WalletBadgeIcons() {
@@ -326,7 +325,7 @@ var DAPP_IMPORT_CATALOG = [
326
325
  // src/components/ui/BrandIcons.tsx
327
326
 
328
327
  function ExchangeBadgeImage({ name }) {
329
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: _nullishCoalesce(_chunkX4D52IZKcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
328
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: _nullishCoalesce(_chunkQGNJFDEOcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
330
329
  }
331
330
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
332
331
  function CardNetworkIcons() {
@@ -334,7 +333,7 @@ function CardNetworkIcons() {
334
333
  "span",
335
334
  {
336
335
  className: `rs-card-network rs-card-network--${network}`,
337
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
336
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
338
337
  },
339
338
  network
340
339
  )) });
@@ -353,7 +352,7 @@ function DappBadgeIcons() {
353
352
  ).filter(
354
353
  (brand) => Boolean(brand)
355
354
  );
356
- 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, _chunk3OOY67VJcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
355
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
357
356
  }
358
357
  DappBadgeIcons.displayName = "DappBadgeIcons";
359
358
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -373,9 +372,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
373
372
  return "No balance";
374
373
  }
375
374
  function fiatIcon(name) {
376
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.AppleIcon, {});
377
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BankIcon, {});
378
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CardIcon, {});
375
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.AppleIcon, {});
376
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BankIcon, {});
377
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CardIcon, {});
379
378
  }
380
379
  function FiatMethodIcon({ option }) {
381
380
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -458,20 +457,20 @@ function renderWalletLeading(row) {
458
457
  }
459
458
  );
460
459
  }
461
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {});
460
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {});
462
461
  }
463
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {});
464
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {});
465
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.UnplugIcon, {});
466
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.MigrateAssetsIcon, {});
467
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-spinner--sm" });
462
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {});
463
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {});
464
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.UnplugIcon, {});
465
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.MigrateAssetsIcon, {});
466
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-spinner--sm" });
468
467
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
469
468
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
470
469
  "+100"
471
470
  ] });
472
471
  var EXTRA_EXCHANGE_COUNT = Math.max(
473
472
  0,
474
- _chunk3OOY67VJcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
473
+ _chunkQGNJFDEOcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
475
474
  );
476
475
  var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
477
476
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
@@ -529,7 +528,7 @@ function ConnectStep({
529
528
  if (onSelectTransferCrypto) {
530
529
  cryptoRows.push(
531
530
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
532
- _chunk3OOY67VJcjs.ListRow,
531
+ _chunkQGNJFDEOcjs.ListRow,
533
532
  {
534
533
  leading: TRANSFER_CRYPTO_LEADING,
535
534
  title: "Transfer crypto",
@@ -550,7 +549,7 @@ function ConnectStep({
550
549
  );
551
550
  cryptoRows.push(
552
551
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
553
- _chunk3OOY67VJcjs.ListRow,
552
+ _chunkQGNJFDEOcjs.ListRow,
554
553
  {
555
554
  leading: renderWalletLeading(row),
556
555
  title: collapseToExternal ? "External wallet" : row.label,
@@ -567,7 +566,7 @@ function ConnectStep({
567
566
  if (!hasSessionWallet && handleConnect) {
568
567
  cryptoRows.push(
569
568
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
570
- _chunk3OOY67VJcjs.ListRow,
569
+ _chunkQGNJFDEOcjs.ListRow,
571
570
  {
572
571
  leading: WALLET_LEADING,
573
572
  title: "Connect wallet",
@@ -582,7 +581,7 @@ function ConnectStep({
582
581
  if (onSelectFundFromExchange) {
583
582
  cryptoRows.push(
584
583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
585
- _chunk3OOY67VJcjs.ListRow,
584
+ _chunkQGNJFDEOcjs.ListRow,
586
585
  {
587
586
  leading: EXCHANGE_LEADING,
588
587
  title: "Connect exchange",
@@ -597,7 +596,7 @@ function ConnectStep({
597
596
  if (onSelectMigrateAssets) {
598
597
  cryptoRows.push(
599
598
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
600
- _chunk3OOY67VJcjs.ListRow,
599
+ _chunkQGNJFDEOcjs.ListRow,
601
600
  {
602
601
  leading: MIGRATE_ASSETS_LEADING,
603
602
  title: "Migrate assets",
@@ -618,7 +617,7 @@ function ConnectStep({
618
617
  for (const opt of fiatPaymentMethods) {
619
618
  cashRows.push(
620
619
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
621
- _chunk3OOY67VJcjs.ListRow,
620
+ _chunkQGNJFDEOcjs.ListRow,
622
621
  {
623
622
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
624
623
  title: opt.label,
@@ -633,7 +632,7 @@ function ConnectStep({
633
632
  } else if (fiatLoading) {
634
633
  cashRows.push(
635
634
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
636
- _chunk3OOY67VJcjs.ListRow,
635
+ _chunkQGNJFDEOcjs.ListRow,
637
636
  {
638
637
  leading: SMALL_SPINNER,
639
638
  title: "Loading payment options\u2026",
@@ -662,9 +661,9 @@ function ConnectStep({
662
661
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
663
662
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
664
663
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
665
- _chunk3OOY67VJcjs.BodyHeader,
664
+ _chunkQGNJFDEOcjs.BodyHeader,
666
665
  {
667
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.HandCoinsIcon, {}),
666
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.HandCoinsIcon, {}),
668
667
  title,
669
668
  subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
670
669
  aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -700,7 +699,7 @@ function ConnectStep({
700
699
  children: "Disconnect wallet"
701
700
  }
702
701
  ) }),
703
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
702
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
704
703
  ] });
705
704
  }
706
705
  ConnectStep.displayName = "ConnectStep";
@@ -723,17 +722,17 @@ function AssetSelectStep({
723
722
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
724
723
  const [loading, setLoading] = _react.useState.call(void 0, true);
725
724
  const [error, setError] = _react.useState.call(void 0, null);
726
- const isDepositChain = _chunk3OOY67VJcjs.useIsDepositChain.call(void 0, );
727
- const { catalog } = _chunk3OOY67VJcjs.useChainCatalog.call(void 0, );
728
- const chainName = _chunk3OOY67VJcjs.useChainName.call(void 0, );
725
+ const isDepositChain = _chunkQGNJFDEOcjs.useIsDepositChain.call(void 0, );
726
+ const { catalog } = _chunkQGNJFDEOcjs.useChainCatalog.call(void 0, );
727
+ const chainName = _chunkQGNJFDEOcjs.useChainName.call(void 0, );
729
728
  const defaultAssetId = _react.useMemo.call(void 0, () => {
730
729
  if (!defaultSourceChain || !defaultSourceToken) return null;
731
- return _chunk3OOY67VJcjs.getAssetId.call(void 0, {
730
+ return _chunkQGNJFDEOcjs.getAssetId.call(void 0, {
732
731
  chainId: defaultSourceChain,
733
732
  token: defaultSourceToken
734
733
  });
735
734
  }, [defaultSourceChain, defaultSourceToken]);
736
- const onTotalBalanceComputedRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
735
+ const onTotalBalanceComputedRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
737
736
  _react.useEffect.call(void 0, () => {
738
737
  let active = true;
739
738
  function emitAssetsUpdate(currentAssets) {
@@ -753,7 +752,7 @@ function AssetSelectStep({
753
752
  try {
754
753
  const portfolio = await service.fetchPortfolio(address);
755
754
  if (!active) return;
756
- const portfolioAssets = _chunk3OOY67VJcjs.portfolioToAssets.call(void 0, portfolio.tokens);
755
+ const portfolioAssets = _chunkQGNJFDEOcjs.portfolioToAssets.call(void 0, portfolio.tokens);
757
756
  setAssets(portfolioAssets);
758
757
  emitAssetsUpdate(portfolioAssets);
759
758
  const hasNative = portfolioAssets.some(
@@ -832,7 +831,7 @@ function AssetSelectStep({
832
831
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
833
832
  const numeric = Number(raw);
834
833
  if (!Number.isFinite(numeric)) return raw;
835
- return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
834
+ return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
836
835
  } catch (e3) {
837
836
  return asset.balance;
838
837
  }
@@ -840,20 +839,20 @@ function AssetSelectStep({
840
839
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
841
840
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
842
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
843
- _chunk3OOY67VJcjs.BodyHeader,
842
+ _chunkQGNJFDEOcjs.BodyHeader,
844
843
  {
845
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
844
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
846
845
  title: "Your assets",
847
846
  subtitle: "Select source assets to transfer"
848
847
  }
849
848
  ),
850
849
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
851
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-text-tertiary" }),
850
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-text-tertiary" }),
852
851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
853
852
  ] }),
854
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
853
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
855
854
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
856
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, { className: "rs-empty-icon" }),
855
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, { className: "rs-empty-icon" }),
857
856
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
858
857
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
859
858
  address.slice(0, 6),
@@ -886,13 +885,13 @@ function AssetSelectStep({
886
885
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
887
886
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
888
887
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
889
- _chunk3OOY67VJcjs.TokenIcon,
888
+ _chunkQGNJFDEOcjs.TokenIcon,
890
889
  {
891
890
  symbol: asset.symbol,
892
891
  fallback: asset.symbol.slice(0, 4)
893
892
  }
894
893
  ) }),
895
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
894
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
896
895
  "span",
897
896
  {
898
897
  className: "rs-asset-chain-badge",
@@ -919,14 +918,14 @@ function AssetSelectStep({
919
918
  ] })
920
919
  ] })
921
920
  ] }),
922
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
921
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
923
922
  ]
924
923
  },
925
924
  asset.id
926
925
  );
927
926
  }) }),
928
927
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
929
- _chunk3OOY67VJcjs.Button,
928
+ _chunkQGNJFDEOcjs.Button,
930
929
  {
931
930
  onClick: () => selectedAsset && onContinue(selectedAsset),
932
931
  disabled: !selectedAsset,
@@ -935,7 +934,7 @@ function AssetSelectStep({
935
934
  }
936
935
  )
937
936
  ] }),
938
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
937
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
939
938
  ] });
940
939
  }
941
940
  async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
@@ -943,7 +942,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
943
942
  const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
944
943
  if (!connectedChainId) return [];
945
944
  if (!isDepositChain(connectedChainId)) return [];
946
- const id = _chunk3OOY67VJcjs.getAssetId.call(void 0, {
945
+ const id = _chunkQGNJFDEOcjs.getAssetId.call(void 0, {
947
946
  chainId: connectedChainId,
948
947
  token: _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS
949
948
  });
@@ -1149,7 +1148,7 @@ function AmountStep({
1149
1148
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1150
1149
  if (!balanceTarget || !publicClient) return;
1151
1150
  try {
1152
- const bal = _chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1151
+ const bal = _chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1153
1152
  address: asset.token,
1154
1153
  abi: _viem.erc20Abi,
1155
1154
  functionName: "balanceOf",
@@ -1170,7 +1169,7 @@ function AmountStep({
1170
1169
  hasAttemptedSwitch.current = true;
1171
1170
  switchChain(asset.chainId).catch((err) => {
1172
1171
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1173
- setError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw));
1172
+ setError(_chunkQGNJFDEOcjs.formatUserError.call(void 0, raw));
1174
1173
  });
1175
1174
  }
1176
1175
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1223,7 +1222,7 @@ function AmountStep({
1223
1222
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1224
1223
  const numeric = Number(raw);
1225
1224
  if (!Number.isFinite(numeric)) return raw;
1226
- return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
1225
+ return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
1227
1226
  } catch (e8) {
1228
1227
  return "\u2026";
1229
1228
  }
@@ -1311,12 +1310,12 @@ function AmountStep({
1311
1310
  const needsPricing = !knowsBalance && !isSourceStablecoin;
1312
1311
  const blockedOnPricing = needsPricing && !hasPricing;
1313
1312
  const continueDisabled = chainMismatch || exceedsBalance || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1314
- const chainName = _chunk3OOY67VJcjs.useChainName.call(void 0, );
1313
+ const chainName = _chunkQGNJFDEOcjs.useChainName.call(void 0, );
1315
1314
  const sourceChainName = chainName(asset.chainId);
1316
1315
  const targetChainName = chainName(targetChainId);
1317
1316
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1318
1317
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1319
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title }),
1318
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title }),
1320
1319
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1321
1320
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1322
1321
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1336,13 +1335,13 @@ function AmountStep({
1336
1335
  " available",
1337
1336
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1338
1337
  " (~",
1339
- _chunk3OOY67VJcjs.currencyFormatter.format(balanceUsd),
1338
+ _chunkQGNJFDEOcjs.currencyFormatter.format(balanceUsd),
1340
1339
  ")"
1341
1340
  ] })
1342
1341
  ] }),
1343
1342
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1344
1343
  "Min. deposit ",
1345
- _chunk3OOY67VJcjs.currencyFormatter.format(minDepositUsd)
1344
+ _chunkQGNJFDEOcjs.currencyFormatter.format(minDepositUsd)
1346
1345
  ] })
1347
1346
  ] })
1348
1347
  ] }),
@@ -1367,7 +1366,7 @@ function AmountStep({
1367
1366
  " ",
1368
1367
  asset.symbol
1369
1368
  ] }),
1370
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: asset.symbol }) })
1369
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: asset.symbol }) })
1371
1370
  ] })
1372
1371
  ] }),
1373
1372
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1378,21 +1377,21 @@ function AmountStep({
1378
1377
  " ",
1379
1378
  targetSymbol
1380
1379
  ] }),
1381
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: targetSymbol }) })
1380
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: targetSymbol }) })
1382
1381
  ] })
1383
1382
  ] }),
1384
1383
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1385
1384
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk3OOY67VJcjs.currencyFormatter.format(balanceAfterUsd) })
1385
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkQGNJFDEOcjs.currencyFormatter.format(balanceAfterUsd) })
1387
1386
  ] })
1388
1387
  ] }),
1389
- blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: [
1388
+ blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: [
1390
1389
  asset.symbol,
1391
1390
  " can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
1392
1391
  ] }),
1393
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
1392
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
1394
1393
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1395
- _chunk3OOY67VJcjs.Button,
1394
+ _chunkQGNJFDEOcjs.Button,
1396
1395
  {
1397
1396
  onClick: handleContinue,
1398
1397
  fullWidth: true,
@@ -1401,7 +1400,7 @@ function AmountStep({
1401
1400
  }
1402
1401
  )
1403
1402
  ] }),
1404
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
1403
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
1405
1404
  ] });
1406
1405
  }
1407
1406
 
@@ -1428,14 +1427,14 @@ function ReviewDetails({
1428
1427
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1429
1428
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1430
1429
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1431
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: sourceChainIcon }) })
1430
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: sourceChainIcon }) })
1432
1431
  ] })
1433
1432
  ] }),
1434
1433
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1435
1434
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1436
1435
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1437
1436
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1438
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: targetChainIcon }) })
1437
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: targetChainIcon }) })
1439
1438
  ] })
1440
1439
  ] }),
1441
1440
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1450,21 +1449,21 @@ function ReviewDetails({
1450
1449
  " ",
1451
1450
  sendSymbol
1452
1451
  ] }),
1453
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: sendSymbol }) })
1452
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: sendSymbol }) })
1454
1453
  ] })
1455
1454
  ] }),
1456
1455
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1457
1456
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1458
1457
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1459
1458
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1460
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: receiveSymbol }) })
1459
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: receiveSymbol }) })
1461
1460
  ] })
1462
1461
  ] }),
1463
1462
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1464
1463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
1465
1464
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1466
1465
  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 }),
1467
- fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.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, _chunk3OOY67VJcjs.InfoIcon, {}) }) })
1466
+ fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.InfoIcon, {}) }) })
1468
1467
  ] })
1469
1468
  ] })
1470
1469
  ] });
@@ -1682,17 +1681,17 @@ function ConfirmStep({
1682
1681
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
1683
1682
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
1684
1683
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
1685
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1686
- const mustHaveQuote = !appFeesResolved || _chunk3OOY67VJcjs.resolveAppFeeBps.call(void 0,
1684
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1685
+ const mustHaveQuote = !appFeesResolved || _chunkQGNJFDEOcjs.resolveAppFeeBps.call(void 0,
1687
1686
  appFees,
1688
1687
  `eip155:${quoteSource.chainId}`,
1689
1688
  quoteSource.token
1690
1689
  ) > 0;
1691
- const { display: feeDisplay, struck: feesFullySponsored } = _chunk3OOY67VJcjs.quoteFeeRow.call(void 0,
1690
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunkQGNJFDEOcjs.quoteFeeRow.call(void 0,
1692
1691
  _optionalChain([quote, 'optionalAccess', _67 => _67.fees])
1693
1692
  );
1694
1693
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1695
- const permitEligible = enableGaslessDeposit && !_chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1694
+ const permitEligible = enableGaslessDeposit && !_chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1696
1695
  const permitRequestKey = JSON.stringify([
1697
1696
  smartAccount.toLowerCase(),
1698
1697
  asset.chainId,
@@ -1705,32 +1704,33 @@ function ConfirmStep({
1705
1704
  const receiveDisplay = (() => {
1706
1705
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1707
1706
  if (quote) {
1708
- const quoted = _chunk3OOY67VJcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1707
+ const quoted = _chunkQGNJFDEOcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1709
1708
  if (quoted !== void 0) return quoted;
1710
1709
  }
1711
1710
  const usdValue = Number(targetAmount);
1712
1711
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1713
- const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
1712
+ const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
1714
1713
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1715
1714
  sourceSymbol: asset.symbol,
1716
1715
  targetSymbol,
1717
1716
  sourceAmountUsd,
1718
- sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1717
+ sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1719
1718
  // The target is the curated deposit destination, so a stablecoin target
1720
1719
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1721
1720
  // target prices). Not applied to the source — that can be a held token.
1722
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1721
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1723
1722
  });
1724
1723
  if (estimate !== void 0) return estimate;
1725
1724
  return targetSymbol;
1726
1725
  })();
1727
- const estimatedTimeDisplay = quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.estimatedFillTimeSeconds / 60)} min` : estimatedTime;
1726
+ const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _69 => _69.timing, 'optionalAccess', _70 => _70.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1727
+ const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkQGNJFDEOcjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1728
1728
  _react.useEffect.call(void 0, () => {
1729
1729
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1730
1730
  hasAttemptedSwitch.current = true;
1731
1731
  switchChain(asset.chainId).catch((err) => {
1732
1732
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1733
- setError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw));
1733
+ setError(_chunkQGNJFDEOcjs.formatUserError.call(void 0, raw));
1734
1734
  });
1735
1735
  }
1736
1736
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1917,11 +1917,11 @@ function ConfirmStep({
1917
1917
  );
1918
1918
  } catch (err) {
1919
1919
  const raw = err instanceof Error ? err.message : "Signing failed";
1920
- const safeToTransfer = !submitStarted || err instanceof _chunk3OOY67VJcjs.PermitDepositSubmitError && err.safeToTransfer;
1920
+ const safeToTransfer = !submitStarted || err instanceof _chunkQGNJFDEOcjs.PermitDepositSubmitError && err.safeToTransfer;
1921
1921
  if (safeToTransfer) setPermitDisabled(true);
1922
- const message = safeToTransfer ? _chunk3OOY67VJcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1922
+ const message = safeToTransfer ? _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1923
1923
  setError(message);
1924
- _optionalChain([onError, 'optionalCall', _69 => _69(message, "PERMIT_ERROR", raw)]);
1924
+ _optionalChain([onError, 'optionalCall', _71 => _71(message, "PERMIT_ERROR", raw)]);
1925
1925
  } finally {
1926
1926
  setIsSubmitting(false);
1927
1927
  }
@@ -1940,7 +1940,7 @@ function ConfirmStep({
1940
1940
  const result = await executeTransfer(amountUnits);
1941
1941
  hash = result.txHash;
1942
1942
  resolvedSourceToken = result.sourceToken;
1943
- } else if (_chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset)) {
1943
+ } else if (_chunkQGNJFDEOcjs.isNativeAsset.call(void 0, asset)) {
1944
1944
  hash = await walletClient.sendTransaction({
1945
1945
  account,
1946
1946
  chain,
@@ -1957,7 +1957,7 @@ function ConfirmStep({
1957
1957
  args: [transferTo, amountUnits]
1958
1958
  });
1959
1959
  }
1960
- _optionalChain([onDepositSubmitted, 'optionalCall', _70 => _70(hash, asset.chainId, amountUnits.toString())]);
1960
+ _optionalChain([onDepositSubmitted, 'optionalCall', _72 => _72(hash, asset.chainId, amountUnits.toString())]);
1961
1961
  onConfirm(
1962
1962
  hash,
1963
1963
  asset.chainId,
@@ -1971,18 +1971,18 @@ function ConfirmStep({
1971
1971
  );
1972
1972
  } catch (err) {
1973
1973
  const raw = err instanceof Error ? err.message : "Transfer failed";
1974
- const uncertain = _chunkX4D52IZKcjs.isSubmissionUncertain.call(void 0, err);
1975
- const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
1974
+ const uncertain = _chunkQGNJFDEOcjs.isSubmissionUncertain.call(void 0, err);
1975
+ const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw);
1976
1976
  if (uncertain) setSubmissionUncertain(true);
1977
1977
  setError(message);
1978
- _optionalChain([onError, 'optionalCall', _71 => _71(message, "TRANSFER_ERROR", raw)]);
1978
+ _optionalChain([onError, 'optionalCall', _73 => _73(message, "TRANSFER_ERROR", raw)]);
1979
1979
  } finally {
1980
1980
  setIsSubmitting(false);
1981
1981
  }
1982
1982
  };
1983
1983
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1984
1984
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1985
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Review deposit" }),
1985
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Review deposit" }),
1986
1986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1987
1987
  ReviewDetails,
1988
1988
  {
@@ -1998,9 +1998,9 @@ function ConfirmStep({
1998
1998
  fee: { display: feeDisplay, struck: feesFullySponsored }
1999
1999
  }
2000
2000
  ),
2001
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
2001
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
2002
2002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2003
- _chunk3OOY67VJcjs.Button,
2003
+ _chunkQGNJFDEOcjs.Button,
2004
2004
  {
2005
2005
  onClick: handleConfirm,
2006
2006
  loading: isSubmitting,
@@ -2027,7 +2027,7 @@ function ConfirmStep({
2027
2027
  ] }),
2028
2028
  !permit && permitEligible && permitUnavailable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-gasless-note", children: permitUnavailable === "permit2-approval-required" ? "Gasless unavailable until Permit2 is approved; Continue sends a token transaction." : "This wallet/token cannot use gasless authorization; Continue sends a token transaction." })
2029
2029
  ] }),
2030
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2030
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2031
2031
  ] });
2032
2032
  }
2033
2033
 
@@ -2080,29 +2080,30 @@ function QrReviewStep({
2080
2080
  cancelled = true;
2081
2081
  };
2082
2082
  }, [service, smartAccount, asset, amount]);
2083
- const formattedSendAmount = _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2083
+ const formattedSendAmount = _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2084
2084
  const receiveDisplay = (() => {
2085
2085
  if (quote.value) {
2086
- const quoted = _chunk3OOY67VJcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2086
+ const quoted = _chunkQGNJFDEOcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2087
2087
  if (quoted !== void 0) return quoted;
2088
2088
  }
2089
2089
  const usdValue = Number(targetAmount);
2090
- const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
2090
+ const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
2091
2091
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
2092
2092
  sourceSymbol: asset.symbol,
2093
2093
  targetSymbol,
2094
2094
  sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
2095
- sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2096
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2095
+ sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2096
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2097
2097
  });
2098
2098
  return _nullishCoalesce(estimate, () => ( targetSymbol));
2099
2099
  })();
2100
- 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";
2101
- const { display: quotedFee, struck } = _chunk3OOY67VJcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _72 => _72.value, 'optionalAccess', _73 => _73.fees]));
2100
+ const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _74 => _74.value, 'optionalAccess', _75 => _75.timing, 'optionalAccess', _76 => _76.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2101
+ const estimatedTime = expectedSeconds !== void 0 ? _chunkQGNJFDEOcjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2102
+ const { display: quotedFee, struck } = _chunkQGNJFDEOcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _77 => _77.value, 'optionalAccess', _78 => _78.fees]));
2102
2103
  const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
2103
2104
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2104
2105
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2105
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2106
2107
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2107
2108
  ReviewDetails,
2108
2109
  {
@@ -2118,9 +2119,9 @@ function QrReviewStep({
2118
2119
  fee: { display: feeDisplay, struck }
2119
2120
  }
2120
2121
  ),
2121
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2122
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2122
2123
  ] }),
2123
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2124
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2124
2125
  ] });
2125
2126
  }
2126
2127
  QrReviewStep.displayName = "QrReviewStep";
@@ -2151,20 +2152,20 @@ function DepositAddressSkeleton({
2151
2152
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2152
2153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2153
2154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2154
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2155
2156
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2156
2157
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2157
2158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
2158
2159
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2159
2160
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2160
- _chunk3OOY67VJcjs.CdnIcon,
2161
+ _chunkQGNJFDEOcjs.CdnIcon,
2161
2162
  {
2162
2163
  src: chainIcon,
2163
2164
  className: "rs-deposit-address-dropdown-icon"
2164
2165
  }
2165
2166
  ),
2166
2167
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2167
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2168
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2168
2169
  ] })
2169
2170
  ] }),
2170
2171
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2172,9 +2173,9 @@ function DepositAddressSkeleton({
2172
2173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2173
2174
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2174
2175
  "Min.$",
2175
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _74 => _74.minDepositUsd]), () => ( 0.1))).toFixed(2),
2176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2177
- _chunk3OOY67VJcjs.InfoIcon,
2176
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0.1))).toFixed(2),
2177
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2178
+ _chunkQGNJFDEOcjs.InfoIcon,
2178
2179
  {
2179
2180
  className: "rs-deposit-address-min-icon",
2180
2181
  "aria-hidden": "true"
@@ -2184,14 +2185,14 @@ function DepositAddressSkeleton({
2184
2185
  ] }),
2185
2186
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2186
2187
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2187
- _chunk3OOY67VJcjs.TokenIcon,
2188
+ _chunkQGNJFDEOcjs.TokenIcon,
2188
2189
  {
2189
2190
  symbol: defaultToken,
2190
2191
  className: "rs-deposit-address-dropdown-icon"
2191
2192
  }
2192
2193
  ),
2193
2194
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2194
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2195
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2195
2196
  ] })
2196
2197
  ] })
2197
2198
  ] }),
@@ -2206,7 +2207,7 @@ function DepositAddressSkeleton({
2206
2207
  ] }),
2207
2208
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
2208
2209
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
2209
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CopyIcon, {}),
2210
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CopyIcon, {}),
2210
2211
  "Copy address"
2211
2212
  ] }),
2212
2213
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2223,7 +2224,7 @@ function DepositAddressSkeleton({
2223
2224
  }
2224
2225
  )
2225
2226
  ] }),
2226
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2227
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
2227
2228
  ] });
2228
2229
  }
2229
2230
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2235,9 +2236,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
2235
2236
  var MAX_POLL_INTERVAL = 3e4;
2236
2237
  var BACKOFF_MULTIPLIER = 1.5;
2237
2238
  function isEventForTx(event, txHash) {
2238
- const eventTxHash = _chunkX4D52IZKcjs.getEventTxHash.call(void 0, event);
2239
+ const eventTxHash = _chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event);
2239
2240
  if (!eventTxHash) return false;
2240
- return _chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2241
+ return _chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2241
2242
  }
2242
2243
  function truncateHash(hash) {
2243
2244
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -2267,7 +2268,7 @@ function formatTimestamp(ms) {
2267
2268
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
2268
2269
  }
2269
2270
  function formatBridgeFailedMessage(event) {
2270
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _75 => _75.data]), () => ( {}));
2271
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _80 => _80.data]), () => ( {}));
2271
2272
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
2272
2273
  if (backendMessage.length > 0) {
2273
2274
  const lower = backendMessage.toLowerCase();
@@ -2287,7 +2288,7 @@ function formatBridgeFailedMessage(event) {
2287
2288
  }
2288
2289
  return "Bridge failed";
2289
2290
  }
2290
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2291
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2291
2292
  function DepositNotification({
2292
2293
  deposit,
2293
2294
  smartAccount,
@@ -2321,7 +2322,7 @@ function DepositNotification({
2321
2322
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
2322
2323
  const pollTimeoutRef = _react.useRef.call(void 0, null);
2323
2324
  const completedRef = _react.useRef.call(void 0, false);
2324
- const depositContextRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, {
2325
+ const depositContextRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, {
2325
2326
  amount,
2326
2327
  sourceChain,
2327
2328
  sourceToken: token,
@@ -2329,8 +2330,8 @@ function DepositNotification({
2329
2330
  targetChain,
2330
2331
  targetToken
2331
2332
  });
2332
- const onCompleteRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onComplete);
2333
- const onFailedRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onFailed);
2333
+ const onCompleteRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onComplete);
2334
+ const onFailedRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onFailed);
2334
2335
  const handleComplete = _react.useCallback.call(void 0,
2335
2336
  (destTxHash) => {
2336
2337
  if (completedRef.current) return;
@@ -2339,7 +2340,7 @@ function DepositNotification({
2339
2340
  setCompletedAt(Date.now());
2340
2341
  setStatus("complete");
2341
2342
  const context = depositContextRef.current;
2342
- _optionalChain([onCompleteRef, 'access', _76 => _76.current, 'optionalCall', _77 => _77(txHash, destTxHash, {
2343
+ _optionalChain([onCompleteRef, 'access', _81 => _81.current, 'optionalCall', _82 => _82(txHash, destTxHash, {
2343
2344
  amount: context.amount,
2344
2345
  sourceChain: context.sourceChain,
2345
2346
  sourceToken: context.sourceToken,
@@ -2355,7 +2356,7 @@ function DepositNotification({
2355
2356
  if (completedRef.current) return;
2356
2357
  completedRef.current = true;
2357
2358
  setStatus("failed");
2358
- _optionalChain([onFailedRef, 'access', _78 => _78.current, 'optionalCall', _79 => _79(txHash, error)]);
2359
+ _optionalChain([onFailedRef, 'access', _83 => _83.current, 'optionalCall', _84 => _84(txHash, error)]);
2359
2360
  },
2360
2361
  [onFailedRef, txHash]
2361
2362
  );
@@ -2373,17 +2374,17 @@ function DepositNotification({
2373
2374
  if (!isMounted) return;
2374
2375
  const lastEvent = data.lastEvent;
2375
2376
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
2376
- if (_optionalChain([eventForTx, 'optionalAccess', _80 => _80.type]) === "bridge-complete") {
2377
- const destTx = _optionalChain([eventForTx, 'access', _81 => _81.data, 'optionalAccess', _82 => _82.destination, 'optionalAccess', _83 => _83.transactionHash]);
2377
+ if (_optionalChain([eventForTx, 'optionalAccess', _85 => _85.type]) === "bridge-complete") {
2378
+ const destTx = _optionalChain([eventForTx, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.destination, 'optionalAccess', _88 => _88.transactionHash]);
2378
2379
  handleComplete(destTx);
2379
2380
  return;
2380
2381
  }
2381
- if (_optionalChain([eventForTx, 'optionalAccess', _84 => _84.type]) === "bridge-failed") {
2382
+ if (_optionalChain([eventForTx, 'optionalAccess', _89 => _89.type]) === "bridge-failed") {
2382
2383
  handleFailed(formatBridgeFailedMessage(eventForTx));
2383
2384
  return;
2384
2385
  }
2385
- if (_optionalChain([eventForTx, 'optionalAccess', _85 => _85.type]) === "error") {
2386
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.message]), () => ( "Unknown error"));
2386
+ if (_optionalChain([eventForTx, 'optionalAccess', _90 => _90.type]) === "error") {
2387
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _91 => _91.data, 'optionalAccess', _92 => _92.message]), () => ( "Unknown error"));
2387
2388
  handleFailed(errorMessage);
2388
2389
  return;
2389
2390
  }
@@ -2421,12 +2422,12 @@ function DepositNotification({
2421
2422
  status,
2422
2423
  txHash
2423
2424
  ]);
2424
- const explorerTxUrl = _chunk3OOY67VJcjs.useExplorerTxUrl.call(void 0, );
2425
+ const explorerTxUrl = _chunkQGNJFDEOcjs.useExplorerTxUrl.call(void 0, );
2425
2426
  const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
2426
2427
  const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2427
2428
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
2428
2429
  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.";
2429
- 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, _chunk3OOY67VJcjs.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, _chunk3OOY67VJcjs.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,
2430
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2430
2431
  "svg",
2431
2432
  {
2432
2433
  className: "rs-deposit-notification-spinner",
@@ -2476,7 +2477,7 @@ function DepositNotification({
2476
2477
  className: "rs-deposit-notification-close",
2477
2478
  onClick: () => onDismiss(deposit.id),
2478
2479
  "aria-label": "Dismiss",
2479
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {})
2480
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {})
2480
2481
  }
2481
2482
  )
2482
2483
  ] }),
@@ -2492,7 +2493,7 @@ function DepositNotification({
2492
2493
  "aria-expanded": expanded,
2493
2494
  children: [
2494
2495
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
2495
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2496
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2496
2497
  ]
2497
2498
  }
2498
2499
  ),
@@ -2552,12 +2553,12 @@ function sourceChainToCaip2(chain) {
2552
2553
  return _chunkOY5N3E6Lcjs.toEvmCaip2.call(void 0, chain);
2553
2554
  }
2554
2555
  function findAddress(tokens, symbol) {
2555
- return _optionalChain([tokens, 'optionalAccess', _88 => _88.find, 'call', _89 => _89((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _90 => _90.address]);
2556
+ return _optionalChain([tokens, 'optionalAccess', _93 => _93.find, 'call', _94 => _94((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _95 => _95.address]);
2556
2557
  }
2557
2558
  function resolveSourceTokenIdentity(input) {
2558
2559
  const { chain, symbol, shortlist, catalogTokens } = input;
2559
2560
  if (!symbol) return void 0;
2560
- const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _91 => _91[String(chain)]]);
2561
+ const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _96 => _96[String(chain)]]);
2561
2562
  const raw = shortlistTokens !== void 0 ? findAddress(shortlistTokens, symbol) : chain === "hypercore" || !Array.isArray(catalogTokens) ? void 0 : findAddress(catalogTokens, symbol);
2562
2563
  if (!raw) return void 0;
2563
2564
  if (chain === "solana") {
@@ -2618,7 +2619,7 @@ function resolveSolanaTokenMeta(token) {
2618
2619
  return {};
2619
2620
  }
2620
2621
  function getDepositEventDetails(event) {
2621
- if (!_optionalChain([event, 'optionalAccess', _92 => _92.type]) || !isRecord(event.data)) return {};
2622
+ if (!_optionalChain([event, 'optionalAccess', _97 => _97.type]) || !isRecord(event.data)) return {};
2622
2623
  if (event.type === "deposit-received") {
2623
2624
  const chainId = asChainId(event.data.chain);
2624
2625
  const token = asString(event.data.token);
@@ -2633,12 +2634,12 @@ function getDepositEventDetails(event) {
2633
2634
  const source = isRecord(event.data.source) ? event.data.source : void 0;
2634
2635
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
2635
2636
  if (source || deposit) {
2636
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _93 => _93.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _94 => _94.chain]))));
2637
- 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]))));
2637
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _98 => _98.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _99 => _99.chain]))));
2638
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _100 => _100.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _101 => _101.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _102 => _102.token]))));
2638
2639
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
2639
2640
  return {
2640
2641
  chainId,
2641
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _98 => _98.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _99 => _99.amount])))),
2642
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _103 => _103.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _104 => _104.amount])))),
2642
2643
  token,
2643
2644
  ...solanaMeta
2644
2645
  };
@@ -2649,22 +2650,22 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2649
2650
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2650
2651
  }
2651
2652
  function chainLabel(chainId, catalogChain) {
2652
- const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _100 => _100.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2653
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _105 => _105.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2653
2654
  return name.replace(/\s+(One|Mainnet|Smart Chain|Chain)$/i, "");
2654
2655
  }
2655
2656
  function computeTokensForChain(chainId, topTokens, catalogChain) {
2656
- const fromBackend = _optionalChain([topTokens, 'optionalAccess', _101 => _101[String(chainId)], 'optionalAccess', _102 => _102.map, 'call', _103 => _103((t) => t.symbol)]);
2657
+ const fromBackend = _optionalChain([topTokens, 'optionalAccess', _106 => _106[String(chainId)], 'optionalAccess', _107 => _107.map, 'call', _108 => _108((t) => t.symbol)]);
2657
2658
  if (fromBackend) return fromBackend;
2658
- return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _104 => _104.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2659
+ return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _109 => _109.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2659
2660
  }
2660
2661
  function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
2661
2662
  if (typeof chainId !== "number" || !symbol) return void 0;
2662
- const fromShortlist = _optionalChain([topTokens, 'optionalAccess', _105 => _105[String(chainId)], 'optionalAccess', _106 => _106.find, 'call', _107 => _107(
2663
+ const fromShortlist = _optionalChain([topTokens, 'optionalAccess', _110 => _110[String(chainId)], 'optionalAccess', _111 => _111.find, 'call', _112 => _112(
2663
2664
  (t) => t.symbol === symbol
2664
2665
  )]);
2665
- const fromCatalog = Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _108 => _108.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2666
- const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _109 => _109.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _110 => _110.address])));
2667
- const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _111 => _111.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _112 => _112.decimals])));
2666
+ const fromCatalog = Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _113 => _113.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2667
+ const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _114 => _114.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _115 => _115.address])));
2668
+ const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _116 => _116.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _117 => _117.decimals])));
2668
2669
  if (!address || decimals === void 0) return void 0;
2669
2670
  return {
2670
2671
  id: `qr-${chainId}-${symbol}`,
@@ -2677,7 +2678,7 @@ function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
2677
2678
  }
2678
2679
  function TokenGlyph({ symbol }) {
2679
2680
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2680
- _chunk3OOY67VJcjs.TokenIcon,
2681
+ _chunkQGNJFDEOcjs.TokenIcon,
2681
2682
  {
2682
2683
  symbol,
2683
2684
  className: "rs-deposit-address-dropdown-icon",
@@ -2724,31 +2725,31 @@ function DepositAddressStep({
2724
2725
  };
2725
2726
  }, [service]);
2726
2727
  const BASE_CHAIN_ID2 = 8453;
2727
- const evmChainIds = _chunk3OOY67VJcjs.useDepositChainIds.call(void 0, );
2728
- const { catalog, isLoading: catalogLoading } = _chunk3OOY67VJcjs.useChainCatalog.call(void 0, );
2728
+ const evmChainIds = _chunkQGNJFDEOcjs.useDepositChainIds.call(void 0, );
2729
+ const { catalog, isLoading: catalogLoading } = _chunkQGNJFDEOcjs.useChainCatalog.call(void 0, );
2729
2730
  const catalogFor = _react.useCallback.call(void 0,
2730
2731
  (chain) => {
2731
2732
  if (!catalog) return void 0;
2732
- const key = _chunk3OOY67VJcjs.catalogKeyForChain.call(void 0, chain);
2733
+ const key = _chunkQGNJFDEOcjs.catalogKeyForChain.call(void 0, chain);
2733
2734
  return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2734
2735
  },
2735
2736
  [catalog]
2736
2737
  );
2737
2738
  const chainOptions = _react.useMemo.call(void 0, () => {
2738
- const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _113 => _113(chain), 'optionalAccess', _114 => _114.deposit]) !== false;
2739
+ const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _118 => _118(chain), 'optionalAccess', _119 => _119.deposit]) !== false;
2739
2740
  const options = [...evmChainIds];
2740
2741
  const extras = [];
2741
2742
  if (hasSolana && acceptsDeposits("solana")) extras.push("solana");
2742
2743
  if (acceptsDeposits("hypercore")) extras.push("hypercore");
2743
2744
  options.splice(1, 0, ...extras);
2744
2745
  return options.filter(
2745
- (chain) => _optionalChain([topTokens, 'optionalAccess', _115 => _115[String(chain)], 'optionalAccess', _116 => _116.length]) !== 0 && computeTokensForChain(chain, topTokens, catalogFor(chain)).length > 0
2746
+ (chain) => _optionalChain([topTokens, 'optionalAccess', _120 => _120[String(chain)], 'optionalAccess', _121 => _121.length]) !== 0 && computeTokensForChain(chain, topTokens, catalogFor(chain)).length > 0
2746
2747
  );
2747
2748
  }, [evmChainIds, hasSolana, topTokens, catalogFor]);
2748
2749
  const preferredChainId = (options) => options.includes(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(options[0], () => ( BASE_CHAIN_ID2));
2749
- const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _117 => _117.chainId]), () => ( preferredChainId(chainOptions))));
2750
+ const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _122 => _122.chainId]), () => ( preferredChainId(chainOptions))));
2750
2751
  const chainChosenByUser = _react.useRef.call(void 0, initialSource !== void 0);
2751
- const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _118 => _118.chainId]));
2752
+ const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _123 => _123.chainId]));
2752
2753
  _react.useEffect.call(void 0, () => {
2753
2754
  if (chainOptions.length === 0) return;
2754
2755
  const pendingChain2 = pendingChainRef.current;
@@ -2772,10 +2773,10 @@ function DepositAddressStep({
2772
2773
  );
2773
2774
  const defaultToken = pickFallbackToken(
2774
2775
  tokensForChain,
2775
- _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _119 => _119.symbol]), () => ( "USDC"))
2776
+ _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _124 => _124.symbol]), () => ( "USDC"))
2776
2777
  );
2777
2778
  const [sourceTokenSymbol, setSourceTokenSymbol] = _react.useState.call(void 0, defaultToken);
2778
- const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _120 => _120.symbol]));
2779
+ const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _125 => _125.symbol]));
2779
2780
  _react.useEffect.call(void 0, () => {
2780
2781
  if (tokensForChain.includes(sourceTokenSymbol)) {
2781
2782
  pendingTokenRef.current = void 0;
@@ -2807,7 +2808,7 @@ function DepositAddressStep({
2807
2808
  chain: sourceChainId,
2808
2809
  symbol: sourceTokenSymbol,
2809
2810
  shortlist: topTokens,
2810
- catalogTokens: _optionalChain([catalogFor, 'call', _121 => _121(sourceChainId), 'optionalAccess', _122 => _122.supportedTokens])
2811
+ catalogTokens: _optionalChain([catalogFor, 'call', _126 => _126(sourceChainId), 'optionalAccess', _127 => _127.supportedTokens])
2811
2812
  }),
2812
2813
  [sourceChainId, sourceTokenSymbol, topTokens, catalogFor]
2813
2814
  );
@@ -2816,7 +2817,7 @@ function DepositAddressStep({
2816
2817
  _react.useEffect.call(void 0, () => {
2817
2818
  if (!sourceTokenIdentity) return;
2818
2819
  if (!sourceSelectionSettled) return;
2819
- _optionalChain([onAddressShown, 'optionalCall', _123 => _123({
2820
+ _optionalChain([onAddressShown, 'optionalCall', _128 => _128({
2820
2821
  address: displayAddress,
2821
2822
  sourceChainCaip2: sourceChainToCaip2(sourceChainId),
2822
2823
  sourceTokenIdentity
@@ -2833,8 +2834,8 @@ function DepositAddressStep({
2833
2834
  function handlePointerDown(event) {
2834
2835
  const target = event.target;
2835
2836
  if (!target) return;
2836
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _124 => _124.current, 'optionalAccess', _125 => _125.contains, 'call', _126 => _126(target)]);
2837
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _127 => _127.current, 'optionalAccess', _128 => _128.contains, 'call', _129 => _129(target)]);
2837
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _129 => _129.current, 'optionalAccess', _130 => _130.contains, 'call', _131 => _131(target)]);
2838
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _132 => _132.current, 'optionalAccess', _133 => _133.contains, 'call', _134 => _134(target)]);
2838
2839
  if (clickedChainDropdown || clickedTokenDropdown) return;
2839
2840
  setChainDropdownOpen(false);
2840
2841
  setTokenDropdownOpen(false);
@@ -2850,7 +2851,7 @@ function DepositAddressStep({
2850
2851
  try {
2851
2852
  await navigator.clipboard.writeText(displayAddress);
2852
2853
  setCopied(true);
2853
- _optionalChain([onCopyAddress, 'optionalCall', _130 => _130(true)]);
2854
+ _optionalChain([onCopyAddress, 'optionalCall', _135 => _135(true)]);
2854
2855
  setTimeout(() => setCopied(false), 2e3);
2855
2856
  } catch (e17) {
2856
2857
  const textarea = document.createElement("textarea");
@@ -2865,7 +2866,7 @@ function DepositAddressStep({
2865
2866
  setCopied(true);
2866
2867
  setTimeout(() => setCopied(false), 2e3);
2867
2868
  }
2868
- _optionalChain([onCopyAddress, 'optionalCall', _131 => _131(copiedWithFallback)]);
2869
+ _optionalChain([onCopyAddress, 'optionalCall', _136 => _136(copiedWithFallback)]);
2869
2870
  }
2870
2871
  }, [displayAddress, onCopyAddress]);
2871
2872
  const handleSelectChain = _react.useCallback.call(void 0,
@@ -2934,10 +2935,10 @@ function DepositAddressStep({
2934
2935
  return;
2935
2936
  }
2936
2937
  const event = status.lastEvent;
2937
- const eventTxHash = _chunkX4D52IZKcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkX4D52IZKcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2938
+ const eventTxHash = _chunkQGNJFDEOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2938
2939
  if (baselineTxHashRef.current === void 0) {
2939
2940
  baselineTxHashRef.current = eventTxHash;
2940
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2941
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2941
2942
  const details = getDepositEventDetails(event);
2942
2943
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
2943
2944
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -2969,7 +2970,7 @@ function DepositAddressStep({
2969
2970
  directTransfer
2970
2971
  };
2971
2972
  setNotifications((prev) => [notification, ...prev]);
2972
- _optionalChain([onDepositSubmittedRef, 'access', _132 => _132.current, 'optionalCall', _133 => _133({
2973
+ _optionalChain([onDepositSubmittedRef, 'access', _137 => _137.current, 'optionalCall', _138 => _138({
2973
2974
  txHash: eventTxHash,
2974
2975
  sourceChain: chainId,
2975
2976
  amount,
@@ -2981,7 +2982,7 @@ function DepositAddressStep({
2981
2982
  if (!cancelled) {
2982
2983
  const msg = err instanceof Error ? err.message : "Failed to check status";
2983
2984
  setPollingError(msg);
2984
- _optionalChain([onErrorRef, 'access', _134 => _134.current, 'optionalCall', _135 => _135(msg, "STATUS_POLL_ERROR")]);
2985
+ _optionalChain([onErrorRef, 'access', _139 => _139.current, 'optionalCall', _140 => _140(msg, "STATUS_POLL_ERROR")]);
2985
2986
  }
2986
2987
  }
2987
2988
  if (!cancelled) {
@@ -2997,21 +2998,21 @@ function DepositAddressStep({
2997
2998
  const handleNotificationComplete = _react.useCallback.call(void 0,
2998
2999
  (txHash, destinationTxHash, context) => {
2999
3000
  isTrackingRef.current = false;
3000
- _optionalChain([onDepositCompleteRef, 'access', _136 => _136.current, 'optionalCall', _137 => _137(txHash, destinationTxHash, context)]);
3001
+ _optionalChain([onDepositCompleteRef, 'access', _141 => _141.current, 'optionalCall', _142 => _142(txHash, destinationTxHash, context)]);
3001
3002
  },
3002
3003
  []
3003
3004
  );
3004
3005
  const handleNotificationFailed = _react.useCallback.call(void 0,
3005
3006
  (txHash, error) => {
3006
3007
  isTrackingRef.current = false;
3007
- _optionalChain([onDepositFailedRef, 'access', _138 => _138.current, 'optionalCall', _139 => _139(txHash, error)]);
3008
+ _optionalChain([onDepositFailedRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, error)]);
3008
3009
  },
3009
3010
  []
3010
3011
  );
3011
3012
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
3012
3013
  setNotifications((prev) => prev.filter((n) => n.id !== id));
3013
3014
  }, []);
3014
- const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _140 => _140(sourceChainId), 'optionalAccess', _141 => _141.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3015
+ const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _145 => _145(sourceChainId), 'optionalAccess', _146 => _146.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3015
3016
  const reviewAsset = selectionAsAsset(
3016
3017
  sourceChainId,
3017
3018
  sourceTokenSymbol,
@@ -3021,13 +3022,13 @@ function DepositAddressStep({
3021
3022
  if (chainOptions.length === 0) {
3022
3023
  if (catalogLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
3023
3024
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3024
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3025
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.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." })
3025
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3026
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3026
3027
  ] }) });
3027
3028
  }
3028
3029
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
3029
3030
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3030
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3031
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3031
3032
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
3032
3033
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
3033
3034
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -3043,14 +3044,14 @@ function DepositAddressStep({
3043
3044
  },
3044
3045
  children: [
3045
3046
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3046
- _chunk3OOY67VJcjs.CdnIcon,
3047
+ _chunkQGNJFDEOcjs.CdnIcon,
3047
3048
  {
3048
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _142 => _142(sourceChainId), 'optionalAccess', _143 => _143.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3049
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _147 => _147(sourceChainId), 'optionalAccess', _148 => _148.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3049
3050
  className: "rs-deposit-address-dropdown-icon"
3050
3051
  }
3051
3052
  ),
3052
3053
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
3053
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3054
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3054
3055
  ]
3055
3056
  }
3056
3057
  ),
@@ -3062,9 +3063,9 @@ function DepositAddressStep({
3062
3063
  onClick: () => handleSelectChain(chainId),
3063
3064
  children: [
3064
3065
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3065
- _chunk3OOY67VJcjs.CdnIcon,
3066
+ _chunkQGNJFDEOcjs.CdnIcon,
3066
3067
  {
3067
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _144 => _144(chainId), 'optionalAccess', _145 => _145.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3068
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _149 => _149(chainId), 'optionalAccess', _150 => _150.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3068
3069
  className: "rs-deposit-address-dropdown-icon"
3069
3070
  }
3070
3071
  ),
@@ -3079,9 +3080,9 @@ function DepositAddressStep({
3079
3080
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
3080
3081
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3081
3082
  "Min.$",
3082
- (_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),
3083
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3084
- _chunk3OOY67VJcjs.InfoIcon,
3083
+ (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _151 => _151.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _152 => _152.minDepositUsd]), () => ( 0.1))).toFixed(2),
3084
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3085
+ _chunkQGNJFDEOcjs.InfoIcon,
3085
3086
  {
3086
3087
  className: "rs-deposit-address-min-icon",
3087
3088
  "aria-hidden": "true"
@@ -3102,7 +3103,7 @@ function DepositAddressStep({
3102
3103
  children: [
3103
3104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
3104
3105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
3105
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3106
3107
  ]
3107
3108
  }
3108
3109
  ),
@@ -3147,7 +3148,7 @@ function DepositAddressStep({
3147
3148
  className: "rs-deposit-address-copy",
3148
3149
  onClick: handleCopy,
3149
3150
  children: [
3150
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CopyIcon, {}),
3151
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CopyIcon, {}),
3151
3152
  copied ? "Copied!" : "Copy address"
3152
3153
  ]
3153
3154
  }
@@ -3182,7 +3183,7 @@ function DepositAddressStep({
3182
3183
  },
3183
3184
  deposit.id
3184
3185
  )) }),
3185
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3186
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3186
3187
  ] });
3187
3188
  }
3188
3189
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -3239,7 +3240,7 @@ function FinalisingDepositStep() {
3239
3240
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
3240
3241
  ] })
3241
3242
  ] }),
3242
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3243
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3243
3244
  ] });
3244
3245
  }
3245
3246
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -3269,7 +3270,7 @@ function SwappedOrderTracker({
3269
3270
  ];
3270
3271
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
3271
3272
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.HandCoinsIcon, {}), title }),
3273
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.HandCoinsIcon, {}), title }),
3273
3274
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
3274
3275
  const status = stepStates[idx];
3275
3276
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -3283,7 +3284,7 @@ function SwappedOrderTracker({
3283
3284
  {
3284
3285
  className: "rs-swapped-tracker-step-marker",
3285
3286
  "aria-hidden": "true",
3286
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3287
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3287
3288
  "svg",
3288
3289
  {
3289
3290
  className: "rs-swapped-tracker-step-ring",
@@ -3318,7 +3319,7 @@ function SwappedOrderTracker({
3318
3319
  }
3319
3320
  )
3320
3321
  ] }),
3321
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3322
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3322
3323
  ] });
3323
3324
  }
3324
3325
  function formatTrackerAmount(amount) {
@@ -3492,19 +3493,19 @@ function SwappedProviderStep({
3492
3493
  if (cancelled) return;
3493
3494
  if (!isTrustedSwappedWidgetUrl(res.url)) {
3494
3495
  setLoadError(loadErrorFallback);
3495
- _optionalChain([onErrorRef, 'access', _148 => _148.current, 'optionalCall', _149 => _149(loadErrorFallback, loadErrorCode)]);
3496
+ _optionalChain([onErrorRef, 'access', _153 => _153.current, 'optionalCall', _154 => _154(loadErrorFallback, loadErrorCode)]);
3496
3497
  return;
3497
3498
  }
3498
3499
  setWidgetUrl(res.url);
3499
3500
  expectedExternalCustomerIdRef.current = res.externalCustomerId;
3500
- _optionalChain([onAttemptConsumed, 'optionalCall', _150 => _150(res.externalCustomerId)]);
3501
+ _optionalChain([onAttemptConsumed, 'optionalCall', _155 => _155(res.externalCustomerId)]);
3501
3502
  const sep = res.externalCustomerId.indexOf(":");
3502
3503
  expectedOrderUuidRef.current = sep >= 0 ? res.externalCustomerId.slice(sep + 1) : null;
3503
3504
  }).catch((err) => {
3504
3505
  if (cancelled) return;
3505
3506
  const message = err instanceof Error ? err.message : loadErrorFallback;
3506
3507
  setLoadError(message);
3507
- _optionalChain([onErrorRef, 'access', _151 => _151.current, 'optionalCall', _152 => _152(message, loadErrorCode)]);
3508
+ _optionalChain([onErrorRef, 'access', _156 => _156.current, 'optionalCall', _157 => _157(message, loadErrorCode)]);
3508
3509
  });
3509
3510
  return () => {
3510
3511
  cancelled = true;
@@ -3519,7 +3520,7 @@ function SwappedProviderStep({
3519
3520
  const timer = setTimeout(() => {
3520
3521
  const message = "Iframe took too long to load.";
3521
3522
  setLoadError(message);
3522
- _optionalChain([onErrorRef, 'access', _153 => _153.current, 'optionalCall', _154 => _154(message, "SWAPPED_IFRAME_TIMEOUT")]);
3523
+ _optionalChain([onErrorRef, 'access', _158 => _158.current, 'optionalCall', _159 => _159(message, "SWAPPED_IFRAME_TIMEOUT")]);
3523
3524
  }, IFRAME_LOAD_TIMEOUT_MS);
3524
3525
  return () => clearTimeout(timer);
3525
3526
  }, [openExternally, widgetUrl, iframeLoaded, loadError]);
@@ -3529,7 +3530,7 @@ function SwappedProviderStep({
3529
3530
  setIframeSrc(nextSrc);
3530
3531
  if (nextSrc && assignedIframeUrlRef.current !== nextSrc) {
3531
3532
  assignedIframeUrlRef.current = nextSrc;
3532
- _optionalChain([onProviderHandoffRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156()]);
3533
+ _optionalChain([onProviderHandoffRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161()]);
3533
3534
  }
3534
3535
  }, [openExternally, widgetUrl, loadError, retryToken]);
3535
3536
  const openPaymentPage = async (url) => {
@@ -3539,11 +3540,11 @@ function SwappedProviderStep({
3539
3540
  try {
3540
3541
  await openExternally(url);
3541
3542
  setHandoffOpened(true);
3542
- _optionalChain([onProviderHandoff, 'optionalCall', _157 => _157()]);
3543
+ _optionalChain([onProviderHandoff, 'optionalCall', _162 => _162()]);
3543
3544
  } catch (error) {
3544
3545
  openedUrlRef.current = null;
3545
3546
  setLoadError(OPEN_FAILED_MESSAGE);
3546
- _optionalChain([onErrorRef, 'access', _158 => _158.current, 'optionalCall', _159 => _159(
3547
+ _optionalChain([onErrorRef, 'access', _163 => _163.current, 'optionalCall', _164 => _164(
3547
3548
  error instanceof Error && error.message ? error.message : OPEN_FAILED_MESSAGE,
3548
3549
  OPEN_FAILED_CODE
3549
3550
  )]);
@@ -3591,8 +3592,8 @@ function SwappedProviderStep({
3591
3592
  const doc = globalThis.document;
3592
3593
  const onVisible = () => {
3593
3594
  if (doc.visibilityState !== "visible") return;
3594
- _optionalChain([rescheduleStatusPollRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161(0)]);
3595
- _optionalChain([rescheduleDepositPollRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163(0)]);
3595
+ _optionalChain([rescheduleStatusPollRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166(0)]);
3596
+ _optionalChain([rescheduleDepositPollRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168(0)]);
3596
3597
  };
3597
3598
  doc.addEventListener("visibilitychange", onVisible);
3598
3599
  return () => doc.removeEventListener("visibilitychange", onVisible);
@@ -3606,10 +3607,10 @@ function SwappedProviderStep({
3606
3607
  const status = await service.fetchLatestStatus(smartAccount);
3607
3608
  if (cancelled) return;
3608
3609
  const event = status.lastEvent;
3609
- const eventTxHash = _chunkX4D52IZKcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkX4D52IZKcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3610
+ const eventTxHash = _chunkQGNJFDEOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkQGNJFDEOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3610
3611
  if (baselineDepositTxHashRef.current === void 0) {
3611
3612
  baselineDepositTxHashRef.current = eventTxHash;
3612
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3613
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkQGNJFDEOcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3613
3614
  currentDepositTxHashRef.current = eventTxHash;
3614
3615
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
3615
3616
  }
@@ -3634,16 +3635,16 @@ function SwappedProviderStep({
3634
3635
  }, [service, smartAccount]);
3635
3636
  _react.useEffect.call(void 0, () => {
3636
3637
  if (fastDepositPollEnabledRef.current) return;
3637
- const status = _optionalChain([orderState, 'optionalAccess', _164 => _164.status]);
3638
+ const status = _optionalChain([orderState, 'optionalAccess', _169 => _169.status]);
3638
3639
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
3639
3640
  fastDepositPollEnabledRef.current = true;
3640
- _optionalChain([rescheduleDepositPollRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3641
+ _optionalChain([rescheduleDepositPollRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3641
3642
  }, [orderState]);
3642
3643
  _react.useEffect.call(void 0, () => {
3643
3644
  if (openExternally) return;
3644
3645
  function onMessage(e) {
3645
3646
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
3646
- if (e.source !== _optionalChain([iframeRef, 'access', _167 => _167.current, 'optionalAccess', _168 => _168.contentWindow])) return;
3647
+ if (e.source !== _optionalChain([iframeRef, 'access', _172 => _172.current, 'optionalAccess', _173 => _173.contentWindow])) return;
3647
3648
  if (isSwappedGoBackMessage(e.data)) {
3648
3649
  onGoBackRef.current();
3649
3650
  return;
@@ -3658,16 +3659,16 @@ function SwappedProviderStep({
3658
3659
  setOrderState((prev) => ({
3659
3660
  // Normalise to the uuid the backend poll also keys on, so orderState
3660
3661
  // is consistent regardless of which path set it.
3661
- orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _169 => _169.orderId]))), () => ( ext)),
3662
+ orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _174 => _174.orderId]))), () => ( ext)),
3662
3663
  status: parsed.status,
3663
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _170 => _170.orderCrypto]))), () => ( null)),
3664
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _171 => _171.orderCryptoAmount]))), () => ( null)),
3665
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _172 => _172.transactionId]))), () => ( null)),
3664
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _175 => _175.orderCrypto]))), () => ( null)),
3665
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _176 => _176.orderCryptoAmount]))), () => ( null)),
3666
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _177 => _177.transactionId]))), () => ( null)),
3666
3667
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
3667
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _173 => _173.paidAmountUsd]), () => ( null)),
3668
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _174 => _174.paidAmountEur]), () => ( null)),
3669
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _175 => _175.onrampFeeUsd]), () => ( null)),
3670
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _176 => _176.paymentMethod]), () => ( null))
3668
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _178 => _178.paidAmountUsd]), () => ( null)),
3669
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _179 => _179.paidAmountEur]), () => ( null)),
3670
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _180 => _180.onrampFeeUsd]), () => ( null)),
3671
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _181 => _181.paymentMethod]), () => ( null))
3671
3672
  }));
3672
3673
  }
3673
3674
  window.addEventListener("message", onMessage);
@@ -3680,28 +3681,28 @@ function SwappedProviderStep({
3680
3681
  }
3681
3682
  }, [phase, orderState, latestEvent, variant]);
3682
3683
  const stepStates = _react.useMemo.call(void 0,
3683
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _177 => _177.status]), () => ( null)), latestEvent),
3684
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _182 => _182.status]), () => ( null)), latestEvent),
3684
3685
  [orderState, latestEvent]
3685
3686
  );
3686
3687
  const terminalState = _react.useMemo.call(void 0, () => {
3687
- if (_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3688
+ if (_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3688
3689
  return {
3689
3690
  kind: "failed",
3690
- message: _chunkX4D52IZKcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3691
+ message: _chunkQGNJFDEOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3691
3692
  };
3692
3693
  }
3693
- if (_optionalChain([orderState, 'optionalAccess', _178 => _178.status]) === "order_cancelled") {
3694
+ if (_optionalChain([orderState, 'optionalAccess', _183 => _183.status]) === "order_cancelled") {
3694
3695
  const banner = bannerForStatus("order_cancelled", {});
3695
3696
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
3696
3697
  }
3697
3698
  return null;
3698
3699
  }, [latestEvent, orderState, bannerForStatus]);
3699
3700
  _react.useEffect.call(void 0, () => {
3700
- if (_optionalChain([orderState, 'optionalAccess', _179 => _179.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _180 => _180()]);
3701
- }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _181 => _181.status])]);
3701
+ if (_optionalChain([orderState, 'optionalAccess', _184 => _184.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _185 => _185()]);
3702
+ }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _186 => _186.status])]);
3702
3703
  _react.useEffect.call(void 0, () => {
3703
3704
  if (completeFiredRef.current || failedFiredRef.current) return;
3704
- const t = _optionalChain([latestEvent, 'optionalAccess', _182 => _182.type]);
3705
+ const t = _optionalChain([latestEvent, 'optionalAccess', _187 => _187.type]);
3705
3706
  const isSuccess = t === "bridge-complete";
3706
3707
  if (!isSuccess) return;
3707
3708
  const txHash = currentDepositTxHashRef.current;
@@ -3710,10 +3711,10 @@ function SwappedProviderStep({
3710
3711
  const info = {
3711
3712
  smartAccount,
3712
3713
  txHash,
3713
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _183 => _183.orderCrypto]), () => ( null)),
3714
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _188 => _188.orderCrypto]), () => ( null)),
3714
3715
  // Base-unit source amount from the deposit row/event, consistent with the
3715
3716
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3716
- amount: _nullishCoalesce(_chunkX4D52IZKcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3717
+ amount: _nullishCoalesce(_chunkQGNJFDEOcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3717
3718
  expectedOrderUuid: expectedOrderUuidRef.current,
3718
3719
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3719
3720
  };
@@ -3724,23 +3725,23 @@ function SwappedProviderStep({
3724
3725
  }, [latestEvent, orderState, smartAccount]);
3725
3726
  _react.useEffect.call(void 0, () => {
3726
3727
  if (failedFiredRef.current || completeFiredRef.current) return;
3727
- if (!_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3728
+ if (!_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3728
3729
  const txHash = currentDepositTxHashRef.current;
3729
3730
  if (!txHash) return;
3730
3731
  failedFiredRef.current = true;
3731
3732
  setPhase("tracker");
3732
- _optionalChain([onSwappedFailedRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185(
3733
+ _optionalChain([onSwappedFailedRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190(
3733
3734
  txHash,
3734
- _chunkX4D52IZKcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3735
+ _chunkQGNJFDEOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3735
3736
  )]);
3736
3737
  }, [latestEvent]);
3737
3738
  const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
3738
3739
  _react.useEffect.call(void 0, () => {
3739
- _optionalChain([onImmersiveChangeRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187(immersive)]);
3740
+ _optionalChain([onImmersiveChangeRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192(immersive)]);
3740
3741
  }, [immersive]);
3741
- _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _188 => _188.current, 'optionalCall', _189 => _189(false)]), []);
3742
+ _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194(false)]), []);
3742
3743
  const handleRetry = () => {
3743
- _optionalChain([onRetry, 'optionalCall', _190 => _190()]);
3744
+ _optionalChain([onRetry, 'optionalCall', _195 => _195()]);
3744
3745
  setIframeSrc(null);
3745
3746
  setWidgetUrl(null);
3746
3747
  setIframeLoaded(false);
@@ -3758,8 +3759,8 @@ function SwappedProviderStep({
3758
3759
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3759
3760
  SwappedOrderTracker,
3760
3761
  {
3761
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _191 => _191.orderCryptoAmount]), () => ( null)),
3762
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _192 => _192.orderCrypto]), () => ( "USDC")),
3762
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _196 => _196.orderCryptoAmount]), () => ( null)),
3763
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _197 => _197.orderCrypto]), () => ( "USDC")),
3763
3764
  stepStates,
3764
3765
  terminal: terminalState,
3765
3766
  onRetry: handleRetry,
@@ -3781,7 +3782,7 @@ function SwappedProviderStep({
3781
3782
  }
3782
3783
  )
3783
3784
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3784
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}),
3785
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}),
3785
3786
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-swapped-handoff-text", children: [
3786
3787
  /* @__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" }),
3787
3788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-swapped-handoff-subtitle", children: handoffOpened ? (
@@ -3805,7 +3806,7 @@ function SwappedProviderStep({
3805
3806
  }
3806
3807
  )
3807
3808
  ] }) }),
3808
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3809
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3809
3810
  ] });
3810
3811
  }
3811
3812
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
@@ -3822,7 +3823,7 @@ function SwappedProviderStep({
3822
3823
  }
3823
3824
  )
3824
3825
  ] }),
3825
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) }),
3826
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) }),
3826
3827
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3827
3828
  "iframe",
3828
3829
  {
@@ -3834,7 +3835,7 @@ function SwappedProviderStep({
3834
3835
  allow: "payment; camera; microphone; clipboard-write; geolocation",
3835
3836
  onLoad: () => {
3836
3837
  try {
3837
- if (_optionalChain([iframeRef, 'access', _193 => _193.current, 'optionalAccess', _194 => _194.contentWindow, 'optionalAccess', _195 => _195.location, 'optionalAccess', _196 => _196.href]) === "about:blank") {
3838
+ if (_optionalChain([iframeRef, 'access', _198 => _198.current, 'optionalAccess', _199 => _199.contentWindow, 'optionalAccess', _200 => _200.location, 'optionalAccess', _201 => _201.href]) === "about:blank") {
3838
3839
  return;
3839
3840
  }
3840
3841
  } catch (e24) {
@@ -3845,11 +3846,11 @@ function SwappedProviderStep({
3845
3846
  retryToken
3846
3847
  )
3847
3848
  ] }) }),
3848
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3849
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
3849
3850
  ] });
3850
3851
  }
3851
3852
  function deriveStepStates(swappedStatus, latestEvent) {
3852
- if (_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3853
+ if (_chunkQGNJFDEOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3853
3854
  return ["complete", "complete", "failed", "pending"];
3854
3855
  }
3855
3856
  if (swappedStatus === "order_cancelled") {
@@ -3857,7 +3858,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
3857
3858
  }
3858
3859
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
3859
3860
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
3860
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _197 => _197.type]) === "bridge-complete";
3861
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _202 => _202.type]) === "bridge-complete";
3861
3862
  if (step3Complete) {
3862
3863
  return ["complete", "complete", "complete", "complete"];
3863
3864
  }
@@ -3918,7 +3919,7 @@ function FiatOnrampStep({
3918
3919
  openExternally
3919
3920
  }) {
3920
3921
  const loadUrl = _react.useCallback.call(void 0, async () => {
3921
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _198 => _198(
3922
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _203 => _203(
3922
3923
  smartAccount,
3923
3924
  paymentMethod,
3924
3925
  methodSelectionSource
@@ -4059,7 +4060,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
4059
4060
  function ExchangeLogo({ exchange }) {
4060
4061
  const [failed, setFailed] = _react.useState.call(void 0, false);
4061
4062
  if (!exchange.logoUrl || failed) {
4062
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BankIcon, {});
4063
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BankIcon, {});
4063
4064
  }
4064
4065
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4065
4066
  "img",
@@ -4104,7 +4105,7 @@ function ExchangeSelectStep({
4104
4105
  setExchanges([]);
4105
4106
  setExchangeFeeBps(0);
4106
4107
  setError(message);
4107
- _optionalChain([onError, 'optionalCall', _199 => _199(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4108
+ _optionalChain([onError, 'optionalCall', _204 => _204(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4108
4109
  }).finally(() => {
4109
4110
  if (!cancelled) setLoading(false);
4110
4111
  });
@@ -4130,7 +4131,7 @@ function ExchangeSelectStep({
4130
4131
  } catch (err) {
4131
4132
  const message = err instanceof Error ? err.message : "Failed to prepare Connect";
4132
4133
  setSelectionNotice(message);
4133
- _optionalChain([onError, 'optionalCall', _200 => _200(message, "SWAPPED_CONNECT_URL_FAILED")]);
4134
+ _optionalChain([onError, 'optionalCall', _205 => _205(message, "SWAPPED_CONNECT_URL_FAILED")]);
4134
4135
  } finally {
4135
4136
  setSelectingConnection(null);
4136
4137
  }
@@ -4140,14 +4141,14 @@ function ExchangeSelectStep({
4140
4141
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
4141
4142
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4142
4143
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4143
- _chunk3OOY67VJcjs.BodyHeader,
4144
+ _chunkQGNJFDEOcjs.BodyHeader,
4144
4145
  {
4145
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.UnplugIcon, {}),
4146
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.UnplugIcon, {}),
4146
4147
  title: "Connect exchange",
4147
4148
  subtitle: "Select an exchange to connect"
4148
4149
  }
4149
4150
  ),
4150
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) }),
4151
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, {}) }),
4151
4152
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
4152
4153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
4153
4154
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4173,7 +4174,7 @@ function ExchangeSelectStep({
4173
4174
  )
4174
4175
  ] }),
4175
4176
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
4176
- const brand = _chunkX4D52IZKcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4177
+ const brand = _chunkQGNJFDEOcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4177
4178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4178
4179
  "button",
4179
4180
  {
@@ -4198,7 +4199,7 @@ function ExchangeSelectStep({
4198
4199
  );
4199
4200
  }) })
4200
4201
  ] }),
4201
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {}),
4202
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {}),
4202
4203
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
4203
4204
  "A ",
4204
4205
  formatFeeRate(exchangeFeeBps),
@@ -4236,7 +4237,7 @@ function SolanaTokenSelectStep({
4236
4237
  setError(null);
4237
4238
  const portfolioBySymbol = {};
4238
4239
  try {
4239
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4240
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4240
4241
  solanaAddress
4241
4242
  });
4242
4243
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -4259,12 +4260,12 @@ function SolanaTokenSelectStep({
4259
4260
  };
4260
4261
  }
4261
4262
  }
4262
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4263
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4263
4264
  symbols: Object.keys(portfolioBySymbol)
4264
4265
  });
4265
4266
  } catch (err) {
4266
4267
  if (!active) return;
4267
- _chunk3OOY67VJcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4268
+ _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4268
4269
  solanaAddress
4269
4270
  });
4270
4271
  setError(
@@ -4289,7 +4290,7 @@ function SolanaTokenSelectStep({
4289
4290
  setTokenBalances(results);
4290
4291
  setLoading(false);
4291
4292
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
4292
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _201 => _201(totalUsd)]);
4293
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _206 => _206(totalUsd)]);
4293
4294
  }
4294
4295
  void loadBalances();
4295
4296
  return () => {
@@ -4311,7 +4312,7 @@ function SolanaTokenSelectStep({
4311
4312
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
4312
4313
  const numeric = Number(raw);
4313
4314
  if (!Number.isFinite(numeric)) return raw;
4314
- return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
4315
+ return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
4315
4316
  } catch (e27) {
4316
4317
  return "--";
4317
4318
  }
@@ -4321,20 +4322,20 @@ function SolanaTokenSelectStep({
4321
4322
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4322
4323
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
4323
4324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4324
- _chunk3OOY67VJcjs.BodyHeader,
4325
+ _chunkQGNJFDEOcjs.BodyHeader,
4325
4326
  {
4326
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
4327
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
4327
4328
  title: "Your assets",
4328
4329
  subtitle: "Select source assets to transfer"
4329
4330
  }
4330
4331
  ),
4331
4332
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
4332
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-text-tertiary" }),
4333
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-text-tertiary" }),
4333
4334
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
4334
4335
  ] }),
4335
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4336
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
4336
4337
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
4337
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, { className: "rs-empty-icon" }),
4338
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, { className: "rs-empty-icon" }),
4338
4339
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
4339
4340
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
4340
4341
  solanaAddress.slice(0, 6),
@@ -4365,13 +4366,13 @@ function SolanaTokenSelectStep({
4365
4366
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4366
4367
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4367
4368
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4368
- _chunk3OOY67VJcjs.TokenIcon,
4369
+ _chunkQGNJFDEOcjs.TokenIcon,
4369
4370
  {
4370
4371
  symbol: entry.token.symbol,
4371
4372
  fallback: entry.token.symbol.slice(0, 4)
4372
4373
  }
4373
4374
  ) }),
4374
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4375
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4375
4376
  ] }),
4376
4377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
4377
4378
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -4388,14 +4389,14 @@ function SolanaTokenSelectStep({
4388
4389
  ] })
4389
4390
  ] })
4390
4391
  ] }),
4391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4392
4393
  ]
4393
4394
  },
4394
4395
  entry.token.symbol
4395
4396
  );
4396
4397
  }) }),
4397
4398
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4398
- _chunk3OOY67VJcjs.Button,
4399
+ _chunkQGNJFDEOcjs.Button,
4399
4400
  {
4400
4401
  onClick: () => selectedEntry && onContinue(
4401
4402
  selectedEntry.token,
@@ -4408,7 +4409,7 @@ function SolanaTokenSelectStep({
4408
4409
  }
4409
4410
  )
4410
4411
  ] }),
4411
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4412
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
4412
4413
  ] });
4413
4414
  }
4414
4415
 
@@ -4440,7 +4441,7 @@ function SolanaAmountStep({
4440
4441
  const [error, setError] = _react.useState.call(void 0, null);
4441
4442
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
4442
4443
  const isSourceStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, token.symbol);
4443
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _202 => _202.trim, 'call', _203 => _203(), 'access', _204 => _204.toLowerCase, 'call', _205 => _205()]) === "max";
4444
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _207 => _207.trim, 'call', _208 => _208(), 'access', _209 => _209.toLowerCase, 'call', _210 => _210()]) === "max";
4444
4445
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
4445
4446
  if (isSourceStablecoin) return 1;
4446
4447
  try {
@@ -4460,7 +4461,7 @@ function SolanaAmountStep({
4460
4461
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
4461
4462
  const numeric = Number(raw);
4462
4463
  if (!Number.isFinite(numeric)) return raw;
4463
- return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
4464
+ return _chunkQGNJFDEOcjs.tokenFormatter.format(numeric);
4464
4465
  } catch (e29) {
4465
4466
  return "\u2026";
4466
4467
  }
@@ -4542,8 +4543,8 @@ function SolanaAmountStep({
4542
4543
  return null;
4543
4544
  }
4544
4545
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
4545
- 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));
4546
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _208 => _208.maxDepositUsd]), () => ( null));
4546
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _211 => _211.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _212 => _212.minDepositUsd]), () => ( null));
4547
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.maxDepositUsd]), () => ( null));
4547
4548
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
4548
4549
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
4549
4550
  const exceedsBalance = Boolean(
@@ -4553,7 +4554,7 @@ function SolanaAmountStep({
4553
4554
  const handlePresetClick = (percentage) => {
4554
4555
  const formatted = computePresetAmount(percentage);
4555
4556
  if (!formatted) return;
4556
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4557
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4557
4558
  percentage,
4558
4559
  symbol: token.symbol,
4559
4560
  formatted
@@ -4588,7 +4589,7 @@ function SolanaAmountStep({
4588
4589
  try {
4589
4590
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
4590
4591
  } catch (e34) {
4591
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4592
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4592
4593
  amount,
4593
4594
  sourceAmount: sourceAmountStr,
4594
4595
  reason: "parse-units-failed"
@@ -4603,7 +4604,7 @@ function SolanaAmountStep({
4603
4604
  );
4604
4605
  return;
4605
4606
  }
4606
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4607
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4607
4608
  symbol: token.symbol,
4608
4609
  inputAmountUsd: amount,
4609
4610
  sourceAmount: sourceAmountStr,
@@ -4616,7 +4617,7 @@ function SolanaAmountStep({
4616
4617
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
4617
4618
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4618
4619
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4619
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Wallet deposit" }),
4620
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Wallet deposit" }),
4620
4621
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
4621
4622
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
4622
4623
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4636,13 +4637,13 @@ function SolanaAmountStep({
4636
4637
  " available",
4637
4638
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4638
4639
  " (~",
4639
- _chunk3OOY67VJcjs.currencyFormatter.format(computedBalanceUsd),
4640
+ _chunkQGNJFDEOcjs.currencyFormatter.format(computedBalanceUsd),
4640
4641
  ")"
4641
4642
  ] })
4642
4643
  ] }),
4643
4644
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4644
4645
  "Min. deposit ",
4645
- _chunk3OOY67VJcjs.currencyFormatter.format(minDepositUsd)
4646
+ _chunkQGNJFDEOcjs.currencyFormatter.format(minDepositUsd)
4646
4647
  ] })
4647
4648
  ] })
4648
4649
  ] }),
@@ -4665,7 +4666,7 @@ function SolanaAmountStep({
4665
4666
  "Solana ",
4666
4667
  token.symbol
4667
4668
  ] }),
4668
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: token.symbol }) })
4669
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: token.symbol }) })
4669
4670
  ] })
4670
4671
  ] }),
4671
4672
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4676,17 +4677,17 @@ function SolanaAmountStep({
4676
4677
  " ",
4677
4678
  targetTokenSymbol
4678
4679
  ] }),
4679
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4680
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4680
4681
  ] })
4681
4682
  ] }),
4682
4683
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4683
4684
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4684
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk3OOY67VJcjs.currencyFormatter.format(balanceAfterUsd) })
4685
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkQGNJFDEOcjs.currencyFormatter.format(balanceAfterUsd) })
4685
4686
  ] })
4686
4687
  ] }),
4687
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4688
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
4688
4689
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4689
- _chunk3OOY67VJcjs.Button,
4690
+ _chunkQGNJFDEOcjs.Button,
4690
4691
  {
4691
4692
  onClick: handleContinue,
4692
4693
  fullWidth: true,
@@ -4695,7 +4696,7 @@ function SolanaAmountStep({
4695
4696
  }
4696
4697
  )
4697
4698
  ] }),
4698
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4699
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
4699
4700
  ] });
4700
4701
  }
4701
4702
 
@@ -4715,10 +4716,10 @@ function loadSolanaDependencies() {
4715
4716
  return dependenciesPromise2;
4716
4717
  }
4717
4718
  function getSolanaRpcUrl(rpcUrls) {
4718
- return _nullishCoalesce(_chunk3OOY67VJcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4719
+ return _nullishCoalesce(_chunkQGNJFDEOcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4719
4720
  }
4720
4721
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4721
- return _chunk3OOY67VJcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4722
+ return _chunkQGNJFDEOcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4722
4723
  }
4723
4724
  async function getSolanaConnection(rpcUrls) {
4724
4725
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4835,14 +4836,14 @@ function SolanaConfirmStep({
4835
4836
  onSubmittingChange,
4836
4837
  debug
4837
4838
  }) {
4838
- const rpcUrls = _chunk3OOY67VJcjs.useRpcUrls.call(void 0, );
4839
+ const rpcUrls = _chunkQGNJFDEOcjs.useRpcUrls.call(void 0, );
4839
4840
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4840
4841
  const [error, setError] = _react.useState.call(void 0, null);
4841
4842
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
4842
4843
  onSubmittingChangeRef.current = onSubmittingChange;
4843
4844
  _react.useEffect.call(void 0, () => {
4844
- _optionalChain([onSubmittingChangeRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210(isSubmitting)]);
4845
- return () => _optionalChain([onSubmittingChangeRef, 'access', _211 => _211.current, 'optionalCall', _212 => _212(false)]);
4845
+ _optionalChain([onSubmittingChangeRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215(isSubmitting)]);
4846
+ return () => _optionalChain([onSubmittingChangeRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217(false)]);
4846
4847
  }, [isSubmitting]);
4847
4848
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
4848
4849
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
@@ -4850,28 +4851,28 @@ function SolanaConfirmStep({
4850
4851
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
4851
4852
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, "solana");
4852
4853
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
4853
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.feeSponsored]), () => ( false));
4854
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _214 => _214.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4855
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4854
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _218 => _218.feeSponsored]), () => ( false));
4855
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _219 => _219.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4856
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkQGNJFDEOcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4856
4857
  const receiveDisplay = (() => {
4857
4858
  const usdValue = Number(targetAmount);
4858
4859
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4859
- const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
4860
+ const estimate = _chunkQGNJFDEOcjs.formatReceiveEstimate.call(void 0, {
4860
4861
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4861
4862
  sourceSymbol: token.symbol,
4862
4863
  targetSymbol,
4863
4864
  sourceAmountUsd,
4864
- sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4865
+ sourceTrusted: _chunkQGNJFDEOcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4865
4866
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4866
4867
  // to the source (a held token). See ConfirmStep for the rationale.
4867
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4868
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkQGNJFDEOcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4868
4869
  });
4869
4870
  if (estimate !== void 0) return estimate;
4870
4871
  return targetSymbol;
4871
4872
  })();
4872
4873
  const handleConfirm = async () => {
4873
4874
  if (!solanaProvider) {
4874
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4875
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4875
4876
  reason: "missing-provider"
4876
4877
  });
4877
4878
  setError("Solana wallet not connected");
@@ -4879,7 +4880,7 @@ function SolanaConfirmStep({
4879
4880
  }
4880
4881
  const parsedAmount = parseFloat(sourceAmount);
4881
4882
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4882
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4883
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4883
4884
  reason: "invalid-amount",
4884
4885
  sourceAmount
4885
4886
  });
@@ -4888,7 +4889,7 @@ function SolanaConfirmStep({
4888
4889
  }
4889
4890
  setError(null);
4890
4891
  setIsSubmitting(true);
4891
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4892
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4892
4893
  smartAccount,
4893
4894
  solanaAddress,
4894
4895
  solanaDepositAddress,
@@ -4898,7 +4899,7 @@ function SolanaConfirmStep({
4898
4899
  });
4899
4900
  try {
4900
4901
  const check = await service.checkAccount(smartAccount);
4901
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4902
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4902
4903
  smartAccount,
4903
4904
  isRegistered: check.isRegistered,
4904
4905
  targetChain: check.targetChain,
@@ -4911,7 +4912,7 @@ function SolanaConfirmStep({
4911
4912
  }
4912
4913
  const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
4913
4914
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4914
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4915
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4915
4916
  token: token.symbol,
4916
4917
  sourceAmount,
4917
4918
  amountUnits: amountUnits.toString()
@@ -4928,10 +4929,10 @@ function SolanaConfirmStep({
4928
4929
  token.mint,
4929
4930
  amountUnits
4930
4931
  );
4931
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4932
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4932
4933
  token: token.symbol,
4933
4934
  instructionCount: transaction.instructions.length,
4934
- feePayer: _optionalChain([transaction, 'access', _215 => _215.feePayer, 'optionalAccess', _216 => _216.toBase58, 'call', _217 => _217()]),
4935
+ feePayer: _optionalChain([transaction, 'access', _220 => _220.feePayer, 'optionalAccess', _221 => _221.toBase58, 'call', _222 => _222()]),
4935
4936
  recentBlockhash: transaction.recentBlockhash
4936
4937
  });
4937
4938
  const txHash = await sendSolanaTransaction(
@@ -4939,7 +4940,7 @@ function SolanaConfirmStep({
4939
4940
  connection,
4940
4941
  transaction
4941
4942
  );
4942
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4943
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4943
4944
  txHash,
4944
4945
  amountUnits: amountUnits.toString()
4945
4946
  });
@@ -4951,21 +4952,21 @@ function SolanaConfirmStep({
4951
4952
  });
4952
4953
  } catch (err) {
4953
4954
  const raw = err instanceof Error ? err.message : "Transfer failed";
4954
- const message = _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
4955
- _chunk3OOY67VJcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4955
+ const message = _chunkQGNJFDEOcjs.formatUserError.call(void 0, raw);
4956
+ _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4956
4957
  smartAccount,
4957
4958
  token: token.symbol,
4958
4959
  sourceAmount
4959
4960
  });
4960
4961
  setError(message);
4961
- _optionalChain([onError, 'optionalCall', _218 => _218(message, "SOLANA_TRANSFER_ERROR", raw)]);
4962
+ _optionalChain([onError, 'optionalCall', _223 => _223(message, "SOLANA_TRANSFER_ERROR", raw)]);
4962
4963
  } finally {
4963
4964
  setIsSubmitting(false);
4964
4965
  }
4965
4966
  };
4966
4967
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4967
4968
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4968
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Review deposit" }),
4969
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}), title: "Review deposit" }),
4969
4970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4970
4971
  ReviewDetails,
4971
4972
  {
@@ -4981,9 +4982,9 @@ function SolanaConfirmStep({
4981
4982
  fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
4982
4983
  }
4983
4984
  ),
4984
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4985
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Callout, { variant: "error", children: error }),
4985
4986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4986
- _chunk3OOY67VJcjs.Button,
4987
+ _chunkQGNJFDEOcjs.Button,
4987
4988
  {
4988
4989
  onClick: handleConfirm,
4989
4990
  loading: isSubmitting,
@@ -4994,7 +4995,7 @@ function SolanaConfirmStep({
4994
4995
  }
4995
4996
  )
4996
4997
  ] }),
4997
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4998
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
4998
4999
  ] });
4999
5000
  }
5000
5001
 
@@ -5009,19 +5010,19 @@ function DappImportAssetSelectStep({
5009
5010
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5010
5011
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5011
5012
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5012
- _chunk3OOY67VJcjs.BodyHeader,
5013
+ _chunkQGNJFDEOcjs.BodyHeader,
5013
5014
  {
5014
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
5015
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
5015
5016
  title: `Transfer from ${sourceLabel}`,
5016
5017
  subtitle: "Pick the balance to import"
5017
5018
  }
5018
5019
  ),
5019
5020
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
5020
5021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
5021
- const tokenAmount = asset.balance ? _chunk3OOY67VJcjs.tokenFormatter.format(
5022
+ const tokenAmount = asset.balance ? _chunkQGNJFDEOcjs.tokenFormatter.format(
5022
5023
  Number(asset.balance) / 10 ** asset.decimals
5023
5024
  ) : "0";
5024
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5025
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5025
5026
  const assetIcon = asset.icon;
5026
5027
  const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
5027
5028
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, asset.chainId);
@@ -5034,14 +5035,14 @@ function DappImportAssetSelectStep({
5034
5035
  children: [
5035
5036
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
5036
5037
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
5037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5038
- _chunk3OOY67VJcjs.TokenIcon,
5038
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5039
+ _chunkQGNJFDEOcjs.TokenIcon,
5039
5040
  {
5040
5041
  symbol: asset.symbol,
5041
5042
  fallback: asset.symbol.slice(0, 4)
5042
5043
  }
5043
5044
  ) }),
5044
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5045
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5045
5046
  "span",
5046
5047
  {
5047
5048
  className: "rs-asset-chain-badge",
@@ -5073,7 +5074,7 @@ function DappImportAssetSelectStep({
5073
5074
  );
5074
5075
  }) })
5075
5076
  ] }),
5076
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5077
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5077
5078
  ] });
5078
5079
  }
5079
5080
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -5095,7 +5096,7 @@ function describeRow(status, comingSoon) {
5095
5096
  }
5096
5097
  if (status.enabled) {
5097
5098
  return {
5098
- subtitle: status.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5099
+ subtitle: status.balanceUsd > 0 ? _chunkQGNJFDEOcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5099
5100
  disabled: false,
5100
5101
  busy: false
5101
5102
  };
@@ -5118,9 +5119,9 @@ function DappImportSelectStep({
5118
5119
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5119
5120
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5120
5121
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5121
- _chunk3OOY67VJcjs.BodyHeader,
5122
+ _chunkQGNJFDEOcjs.BodyHeader,
5122
5123
  {
5123
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.MigrateAssetsIcon, {}),
5124
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.MigrateAssetsIcon, {}),
5124
5125
  title: "Migrate assets",
5125
5126
  subtitle: "Select a position to migrate"
5126
5127
  }
@@ -5132,16 +5133,16 @@ function DappImportSelectStep({
5132
5133
  Boolean(brand.comingSoon)
5133
5134
  );
5134
5135
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5135
- _chunk3OOY67VJcjs.ListRow,
5136
+ _chunkQGNJFDEOcjs.ListRow,
5136
5137
  {
5137
5138
  leadingMedia: brand.iconUrl,
5138
5139
  title: brand.label,
5139
5140
  subtitle,
5140
5141
  disabled,
5141
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5142
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5142
5143
  onClick: () => {
5143
5144
  if (status === "needs-connect") {
5144
- _optionalChain([onRequestConnect, 'optionalCall', _219 => _219()]);
5145
+ _optionalChain([onRequestConnect, 'optionalCall', _224 => _224()]);
5145
5146
  return;
5146
5147
  }
5147
5148
  onSelect(brand.id);
@@ -5151,7 +5152,7 @@ function DappImportSelectStep({
5151
5152
  );
5152
5153
  }) })
5153
5154
  ] }),
5154
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5155
5156
  ] });
5156
5157
  }
5157
5158
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -5168,9 +5169,9 @@ function DappImportAssetSelectSkeleton({
5168
5169
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
5169
5170
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5170
5171
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5171
- _chunk3OOY67VJcjs.BodyHeader,
5172
+ _chunkQGNJFDEOcjs.BodyHeader,
5172
5173
  {
5173
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
5174
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.WalletIcon, {}),
5174
5175
  title: `Transfer from ${sourceLabel}`,
5175
5176
  subtitle: "Pick the balance to import"
5176
5177
  }
@@ -5208,7 +5209,7 @@ function DappImportAssetSelectSkeleton({
5208
5209
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
5209
5210
  }
5210
5211
  ) }),
5211
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5212
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.PoweredBy, {})
5212
5213
  ] });
5213
5214
  }
5214
5215
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -5297,7 +5298,7 @@ var aaveProvider = {
5297
5298
  throw new Error("Aave positions require a backend connection");
5298
5299
  }
5299
5300
  const response = await backend.getPositions(eoa);
5300
- if (_optionalChain([signal, 'optionalAccess', _220 => _220.aborted])) return null;
5301
+ if (_optionalChain([signal, 'optionalAccess', _225 => _225.aborted])) return null;
5301
5302
  const assets = toImportableAssets(response.positions);
5302
5303
  const failures = _nullishCoalesce(response.failures, () => ( []));
5303
5304
  if (assets.length === 0) {
@@ -5630,21 +5631,21 @@ var polymarketProvider = {
5630
5631
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
5631
5632
  const proxyWallet = await _chunkLVCD6RHFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5632
5633
  if (!proxyWallet) return null;
5633
- if (_optionalChain([signal, 'optionalAccess', _221 => _221.aborted])) return null;
5634
+ if (_optionalChain([signal, 'optionalAccess', _226 => _226.aborted])) return null;
5634
5635
  const polygonClient = getPublicClient2(_chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID);
5635
5636
  if (!polygonClient) return null;
5636
5637
  const balances = await _chunkLVCD6RHFcjs.readPolymarketBalances.call(void 0, {
5637
5638
  publicClient: polygonClient,
5638
5639
  proxyWallet
5639
5640
  });
5640
- if (_optionalChain([signal, 'optionalAccess', _222 => _222.aborted])) return null;
5641
+ if (_optionalChain([signal, 'optionalAccess', _227 => _227.aborted])) return null;
5641
5642
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
5642
5643
  const walletKind = await detectPolymarketWalletKind({
5643
5644
  publicClient: polygonClient,
5644
5645
  proxyWallet,
5645
5646
  eoa
5646
5647
  });
5647
- if (_optionalChain([signal, 'optionalAccess', _223 => _223.aborted])) return null;
5648
+ if (_optionalChain([signal, 'optionalAccess', _228 => _228.aborted])) return null;
5648
5649
  if (!walletKind) return null;
5649
5650
  const assets = [];
5650
5651
  if (balances.pusd > 0n) {
@@ -5755,7 +5756,7 @@ function getEnabledProviders(config) {
5755
5756
  function computeDappImportStatus(providerId, inputs) {
5756
5757
  const { owner, availability, availabilityOwner, setup } = inputs;
5757
5758
  if (!owner) return "needs-connect";
5758
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5759
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _229 => _229.toLowerCase, 'call', _230 => _230()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5759
5760
  if (entry === "loading" || entry === void 0) return "loading";
5760
5761
  if (entry === "error") {
5761
5762
  return {
@@ -6097,7 +6098,7 @@ function DepositAnalyticsControllerProvider({
6097
6098
  children,
6098
6099
  controllerRef
6099
6100
  }) {
6100
- const emit = _chunk3OOY67VJcjs.useDepositAnalyticsEmitter.call(void 0, );
6101
+ const emit = _chunkQGNJFDEOcjs.useDepositAnalyticsEmitter.call(void 0, );
6101
6102
  const controller = _react.useMemo.call(void 0,
6102
6103
  () => createDepositAnalyticsController(emit),
6103
6104
  [emit]
@@ -6617,7 +6618,7 @@ function applyAction(state, action) {
6617
6618
  totalUsd: null,
6618
6619
  // Keep any prior chains visible so the cluster does not flicker
6619
6620
  // empty across a refresh.
6620
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _226 => _226.chainIds]), () => ( []))
6621
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _231 => _231.chainIds]), () => ( []))
6621
6622
  }
6622
6623
  }
6623
6624
  }
@@ -6828,7 +6829,7 @@ function applyAction(state, action) {
6828
6829
  flow: { ...state.flow, step: "processing" }
6829
6830
  };
6830
6831
  case "processing/quote-loaded":
6831
- 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()) {
6832
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _232 => _232.processing, 'access', _233 => _233.txHash, 'optionalAccess', _234 => _234.toLowerCase, 'call', _235 => _235()]) !== action.txHash.toLowerCase()) {
6832
6833
  return state;
6833
6834
  }
6834
6835
  return {
@@ -7422,11 +7423,11 @@ function DepositFlow({
7422
7423
  onError,
7423
7424
  debug
7424
7425
  }) {
7425
- const rpcUrls = _chunk3OOY67VJcjs.useRpcUrls.call(void 0, );
7426
- const onStepChangeRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onStepChange);
7426
+ const rpcUrls = _chunkQGNJFDEOcjs.useRpcUrls.call(void 0, );
7427
+ const onStepChangeRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onStepChange);
7427
7428
  const analytics = useDepositAnalyticsController();
7428
- const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
7429
- const onErrorRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onError);
7429
+ const onLifecycleRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onLifecycle);
7430
+ const onErrorRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onError);
7430
7431
  const storeApi = useDepositStoreApi();
7431
7432
  const flowSlice = useDepositStore((s) => s.flow);
7432
7433
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -7443,13 +7444,13 @@ function DepositFlow({
7443
7444
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
7444
7445
  const logFlow = _react.useCallback.call(void 0,
7445
7446
  (message, data) => {
7446
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7447
+ _chunkQGNJFDEOcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7447
7448
  },
7448
7449
  [debug]
7449
7450
  );
7450
7451
  const logFlowError = _react.useCallback.call(void 0,
7451
7452
  (message, error, data) => {
7452
- _chunk3OOY67VJcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7453
+ _chunkQGNJFDEOcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7453
7454
  },
7454
7455
  [debug]
7455
7456
  );
@@ -7473,12 +7474,12 @@ function DepositFlow({
7473
7474
  };
7474
7475
  }, [enableSwappedPreconnect]);
7475
7476
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
7476
- if (!_optionalChain([walletClientProp, 'optionalAccess', _231 => _231.switchChain])) return void 0;
7477
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _236 => _236.switchChain])) return void 0;
7477
7478
  return async (chainId) => {
7478
- await _optionalChain([walletClientProp, 'access', _232 => _232.switchChain, 'optionalCall', _233 => _233({ id: chainId })]);
7479
+ await _optionalChain([walletClientProp, 'access', _237 => _237.switchChain, 'optionalCall', _238 => _238({ id: chainId })]);
7479
7480
  };
7480
7481
  }, [walletClientProp]);
7481
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _234 => _234.account, 'optionalAccess', _235 => _235.address]), () => ( null));
7482
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _239 => _239.account, 'optionalAccess', _240 => _240.address]), () => ( null));
7482
7483
  const walletOptions = _react.useMemo.call(void 0, () => {
7483
7484
  const options = [];
7484
7485
  const seen = /* @__PURE__ */ new Set();
@@ -7492,7 +7493,7 @@ function DepositFlow({
7492
7493
  });
7493
7494
  seen.add(id);
7494
7495
  }
7495
- if (_optionalChain([walletSession, 'optionalAccess', _236 => _236.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7496
+ if (_optionalChain([walletSession, 'optionalAccess', _241 => _241.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7496
7497
  const id = _nullishCoalesce(walletSession.caipAddress, () => ( `solana:${walletSession.solanaAddress}`));
7497
7498
  if (!seen.has(id)) {
7498
7499
  options.push({
@@ -7504,7 +7505,7 @@ function DepositFlow({
7504
7505
  });
7505
7506
  seen.add(id);
7506
7507
  }
7507
- } else if (_optionalChain([walletSession, 'optionalAccess', _237 => _237.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7508
+ } else if (_optionalChain([walletSession, 'optionalAccess', _242 => _242.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7508
7509
  const id = `evm:${walletSession.address.toLowerCase()}`;
7509
7510
  if (!seen.has(id)) {
7510
7511
  options.push({
@@ -7520,13 +7521,13 @@ function DepositFlow({
7520
7521
  return options;
7521
7522
  }, [
7522
7523
  connectedWalletAddress,
7523
- _optionalChain([walletSession, 'optionalAccess', _238 => _238.address]),
7524
- _optionalChain([walletSession, 'optionalAccess', _239 => _239.isConnected]),
7525
- _optionalChain([walletSession, 'optionalAccess', _240 => _240.canSignEvm]),
7526
- _optionalChain([walletSession, 'optionalAccess', _241 => _241.icon]),
7527
- _optionalChain([walletSession, 'optionalAccess', _242 => _242.isSolana]),
7528
- _optionalChain([walletSession, 'optionalAccess', _243 => _243.solanaAddress]),
7529
- _optionalChain([walletSession, 'optionalAccess', _244 => _244.caipAddress])
7524
+ _optionalChain([walletSession, 'optionalAccess', _243 => _243.address]),
7525
+ _optionalChain([walletSession, 'optionalAccess', _244 => _244.isConnected]),
7526
+ _optionalChain([walletSession, 'optionalAccess', _245 => _245.canSignEvm]),
7527
+ _optionalChain([walletSession, 'optionalAccess', _246 => _246.icon]),
7528
+ _optionalChain([walletSession, 'optionalAccess', _247 => _247.isSolana]),
7529
+ _optionalChain([walletSession, 'optionalAccess', _248 => _248.solanaAddress]),
7530
+ _optionalChain([walletSession, 'optionalAccess', _249 => _249.caipAddress])
7530
7531
  ]);
7531
7532
  const offeredFiatMethods = _react.useMemo.call(void 0,
7532
7533
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -7546,11 +7547,11 @@ function DepositFlow({
7546
7547
  hasEnabledAssetMigration
7547
7548
  ].filter(Boolean).length;
7548
7549
  const canAutoLock = Boolean(
7549
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _245 => _245.account]) && !walletSession && enabledFeatureCount === 1
7550
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _250 => _250.account]) && !walletSession && enabledFeatureCount === 1
7550
7551
  );
7551
7552
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
7552
7553
  const hasReownSession = Boolean(
7553
- _optionalChain([walletSession, 'optionalAccess', _246 => _246.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _247 => _247.address])
7554
+ _optionalChain([walletSession, 'optionalAccess', _251 => _251.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _252 => _252.address])
7554
7555
  );
7555
7556
  const isDappImportWalletHydrating = Boolean(
7556
7557
  hasWalletClientProp && walletClientProp === void 0 || walletSession && !hasReownSession && !walletSession.isReady
@@ -7581,7 +7582,7 @@ function DepositFlow({
7581
7582
  return;
7582
7583
  }
7583
7584
  let cancelled = false;
7584
- _chunkX4D52IZKcjs.fetchTokenPriceUsd.call(void 0, service, {
7585
+ _chunkQGNJFDEOcjs.fetchTokenPriceUsd.call(void 0, service, {
7585
7586
  chainId: targetChainId,
7586
7587
  address: targetToken,
7587
7588
  symbol: targetSymbol
@@ -7598,11 +7599,11 @@ function DepositFlow({
7598
7599
  return null;
7599
7600
  }
7600
7601
  if (canAutoLock) {
7601
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _248 => _248.chain, 'optionalAccess', _249 => _249.id]), () => ( setupChainId));
7602
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _253 => _253.chain, 'optionalAccess', _254 => _254.id]), () => ( setupChainId));
7602
7603
  return {
7603
7604
  ownerAddress: walletClientProp.account.address,
7604
7605
  walletClient: walletClientProp,
7605
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7606
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7606
7607
  switchChain: dappSwitchChain
7607
7608
  };
7608
7609
  }
@@ -7614,20 +7615,20 @@ function DepositFlow({
7614
7615
  if (selectedOption.kind === "solana") {
7615
7616
  return null;
7616
7617
  }
7617
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _250 => _250.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7618
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _251 => _251.chain, 'optionalAccess', _252 => _252.id]), () => ( setupChainId));
7618
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _255 => _255.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7619
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _256 => _256.chain, 'optionalAccess', _257 => _257.id]), () => ( setupChainId));
7619
7620
  return {
7620
7621
  ownerAddress: walletClientProp.account.address,
7621
7622
  walletClient: walletClientProp,
7622
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7623
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7623
7624
  switchChain: dappSwitchChain
7624
7625
  };
7625
7626
  }
7626
- if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _253 => _253.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7627
+ if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _258 => _258.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7627
7628
  return {
7628
7629
  ownerAddress: walletSession.address,
7629
7630
  walletClient: walletSession.walletClient,
7630
- publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7631
+ publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkQGNJFDEOcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7631
7632
  switchChain: walletSession.switchChain
7632
7633
  };
7633
7634
  }
@@ -7649,7 +7650,7 @@ function DepositFlow({
7649
7650
  // nothing else here when the host switches chain, and the context would go
7650
7651
  // on holding a client bound to the old one: `chainMismatch` never clears
7651
7652
  // and the CTA stays disabled with nothing beside it.
7652
- _optionalChain([walletSession, 'optionalAccess', _254 => _254.walletClient]),
7653
+ _optionalChain([walletSession, 'optionalAccess', _259 => _259.walletClient]),
7653
7654
  setupChainId,
7654
7655
  rpcUrls
7655
7656
  ]);
@@ -7689,35 +7690,35 @@ function DepositFlow({
7689
7690
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
7690
7691
  if (!selectedWalletId) return null;
7691
7692
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
7692
- if (_optionalChain([opt, 'optionalAccess', _255 => _255.kind]) === "external" && opt.address) {
7693
+ if (_optionalChain([opt, 'optionalAccess', _260 => _260.kind]) === "external" && opt.address) {
7693
7694
  return opt.address;
7694
7695
  }
7695
- if (_optionalChain([opt, 'optionalAccess', _256 => _256.kind]) === "connected" && opt.address) {
7696
+ if (_optionalChain([opt, 'optionalAccess', _261 => _261.kind]) === "connected" && opt.address) {
7696
7697
  return opt.address;
7697
7698
  }
7698
7699
  return null;
7699
7700
  }, [selectedWalletId, walletOptions]);
7700
7701
  const dappImportOwner = _react.useMemo.call(void 0, () => {
7701
7702
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
7702
- if (_optionalChain([walletSession, 'optionalAccess', _257 => _257.address]) && walletSession.isConnected) {
7703
+ if (_optionalChain([walletSession, 'optionalAccess', _262 => _262.address]) && walletSession.isConnected) {
7703
7704
  return walletSession.address;
7704
7705
  }
7705
7706
  if (connectedWalletAddress) return connectedWalletAddress;
7706
7707
  return null;
7707
7708
  }, [
7708
7709
  selectedEvmWalletOwner,
7709
- _optionalChain([walletSession, 'optionalAccess', _258 => _258.address]),
7710
- _optionalChain([walletSession, 'optionalAccess', _259 => _259.isConnected]),
7710
+ _optionalChain([walletSession, 'optionalAccess', _263 => _263.address]),
7711
+ _optionalChain([walletSession, 'optionalAccess', _264 => _264.isConnected]),
7711
7712
  connectedWalletAddress
7712
7713
  ]);
7713
7714
  const activeOwner = _react.useMemo.call(void 0,
7714
7715
  () => resolveOwnerForMode(flowMode, {
7715
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _260 => _260.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7716
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _265 => _265.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7716
7717
  dappImportOwner
7717
7718
  }),
7718
7719
  [
7719
7720
  flowMode,
7720
- _optionalChain([signerContext, 'optionalAccess', _261 => _261.ownerAddress]),
7721
+ _optionalChain([signerContext, 'optionalAccess', _266 => _266.ownerAddress]),
7721
7722
  canAutoLock,
7722
7723
  connectedWalletAddress,
7723
7724
  selectedEvmWalletOwner,
@@ -7734,7 +7735,7 @@ function DepositFlow({
7734
7735
  ].join(":");
7735
7736
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
7736
7737
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
7737
- _optionalChain([onLifecycleRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
7738
+ _optionalChain([onLifecycleRef, 'access', _267 => _267.current, 'optionalCall', _268 => _268({
7738
7739
  type: "smart-account-changed",
7739
7740
  evm: activeEntry.smartAccount,
7740
7741
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -7762,7 +7763,7 @@ function DepositFlow({
7762
7763
  return;
7763
7764
  }
7764
7765
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
7765
- _optionalChain([onLifecycleRef, 'access', _264 => _264.current, 'optionalCall', _265 => _265({
7766
+ _optionalChain([onLifecycleRef, 'access', _269 => _269.current, 'optionalCall', _270 => _270({
7766
7767
  type: "connected",
7767
7768
  address: activeOwner,
7768
7769
  smartAccount: activeEntry.smartAccount
@@ -7835,7 +7836,7 @@ function DepositFlow({
7835
7836
  const handleWalletDisconnect = _react.useCallback.call(void 0, () => {
7836
7837
  analytics.abandon("wallet_disconnect");
7837
7838
  analytics.resetAttempt();
7838
- _optionalChain([onDisconnect, 'optionalCall', _266 => _266()]);
7839
+ _optionalChain([onDisconnect, 'optionalCall', _271 => _271()]);
7839
7840
  storeApi.dispatch({
7840
7841
  type: "back/requested",
7841
7842
  hasWalletOptions: hasWalletOptions || Boolean(walletSession)
@@ -7848,7 +7849,7 @@ function DepositFlow({
7848
7849
  setQrSourcePrice({ resolved: false, usd: null });
7849
7850
  if (!qrSourceAsset) return;
7850
7851
  let cancelled = false;
7851
- _chunkX4D52IZKcjs.fetchTokenPriceUsd.call(void 0, service, {
7852
+ _chunkQGNJFDEOcjs.fetchTokenPriceUsd.call(void 0, service, {
7852
7853
  chainId: qrSourceAsset.chainId,
7853
7854
  address: qrSourceAsset.token,
7854
7855
  symbol: qrSourceAsset.symbol
@@ -7871,7 +7872,7 @@ function DepositFlow({
7871
7872
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
7872
7873
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
7873
7874
  _react.useEffect.call(void 0, () => {
7874
- _optionalChain([onStepChangeRef, 'access', _267 => _267.current, 'optionalCall', _268 => _268(currentBackHandler, currentScreen)]);
7875
+ _optionalChain([onStepChangeRef, 'access', _272 => _272.current, 'optionalCall', _273 => _273(currentBackHandler, currentScreen)]);
7875
7876
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
7876
7877
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
7877
7878
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -7881,7 +7882,7 @@ function DepositFlow({
7881
7882
  modalContentElRef.current = mc;
7882
7883
  const ro = new ResizeObserver((entries) => {
7883
7884
  for (const entry of entries) {
7884
- const border = _optionalChain([entry, 'access', _269 => _269.borderBoxSize, 'optionalAccess', _270 => _270[0], 'optionalAccess', _271 => _271.blockSize]);
7885
+ const border = _optionalChain([entry, 'access', _274 => _274.borderBoxSize, 'optionalAccess', _275 => _275[0], 'optionalAccess', _276 => _276.blockSize]);
7885
7886
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
7886
7887
  }
7887
7888
  });
@@ -7942,7 +7943,7 @@ function DepositFlow({
7942
7943
  targetToken
7943
7944
  ]);
7944
7945
  _react.useEffect.call(void 0, () => {
7945
- _optionalChain([onLifecycleRef, 'access', _272 => _272.current, 'optionalCall', _273 => _273({
7946
+ _optionalChain([onLifecycleRef, 'access', _277 => _277.current, 'optionalCall', _278 => _278({
7946
7947
  type: "balance-changed",
7947
7948
  totalUsd: totalBalanceUsd
7948
7949
  })]);
@@ -7959,9 +7960,9 @@ function DepositFlow({
7959
7960
  const handleConfirmWallet = _react.useCallback.call(void 0,
7960
7961
  (walletId) => {
7961
7962
  const selectedOption = walletOptions.find((o) => o.id === walletId);
7962
- const mode = _optionalChain([selectedOption, 'optionalAccess', _274 => _274.kind]) === "solana" ? "solana-wallet" : "wallet";
7963
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _279 => _279.kind]) === "solana" ? "solana-wallet" : "wallet";
7963
7964
  analytics.selectMethod("wallet", "user", {
7964
- network: _optionalChain([selectedOption, 'optionalAccess', _275 => _275.kind]) === "solana" ? "solana" : "evm",
7965
+ network: _optionalChain([selectedOption, 'optionalAccess', _280 => _280.kind]) === "solana" ? "solana" : "evm",
7965
7966
  integration: _nullishCoalesce(walletIntegration, () => ( "none"))
7966
7967
  });
7967
7968
  storeApi.dispatch({
@@ -7973,7 +7974,7 @@ function DepositFlow({
7973
7974
  [analytics, walletIntegration, walletOptions, storeApi]
7974
7975
  );
7975
7976
  const isSolanaWalletConnected = Boolean(
7976
- _optionalChain([walletSession, 'optionalAccess', _276 => _276.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _277 => _277.isSolana])
7977
+ _optionalChain([walletSession, 'optionalAccess', _281 => _281.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _282 => _282.isSolana])
7977
7978
  );
7978
7979
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
7979
7980
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -7990,7 +7991,7 @@ function DepositFlow({
7990
7991
  const owner = dappImportOwner;
7991
7992
  if (owner) {
7992
7993
  const wallet = walletOptions.find(
7993
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _278 => _278.toLowerCase, 'call', _279 => _279()]) === owner.toLowerCase()
7994
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _283 => _283.toLowerCase, 'call', _284 => _284()]) === owner.toLowerCase()
7994
7995
  );
7995
7996
  if (wallet) {
7996
7997
  storeApi.dispatch({
@@ -8034,7 +8035,7 @@ function DepositFlow({
8034
8035
  eoa: dappImportOwner,
8035
8036
  getPublicClient: (chainId) => {
8036
8037
  try {
8037
- return _chunk3OOY67VJcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8038
+ return _chunkQGNJFDEOcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8038
8039
  } catch (e38) {
8039
8040
  return null;
8040
8041
  }
@@ -8137,7 +8138,7 @@ function DepositFlow({
8137
8138
  }, [activeDappImportProviderId, enabledDappImportProviders]);
8138
8139
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
8139
8140
  if (!activeDappImportProviderId) return null;
8140
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _280 => _280.toLowerCase, 'call', _281 => _281()]) !== dappImportOwner.toLowerCase()) {
8141
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _285 => _285.toLowerCase, 'call', _286 => _286()]) !== dappImportOwner.toLowerCase()) {
8141
8142
  return null;
8142
8143
  }
8143
8144
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -8180,7 +8181,7 @@ function DepositFlow({
8180
8181
  setup: setupSlice
8181
8182
  });
8182
8183
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
8183
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _282 => _282.toLowerCase, 'call', _283 => _283()]) === dappImportOwner.toLowerCase()
8184
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) === dappImportOwner.toLowerCase()
8184
8185
  ), () => ( null)) : null;
8185
8186
  const outcome = resolveBootOutcome({
8186
8187
  status,
@@ -8230,7 +8231,7 @@ function DepositFlow({
8230
8231
  if (dappImportOwner) {
8231
8232
  const plan = bootRetryPlan({
8232
8233
  setupStatus: snapshot.setup.status,
8233
- 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
8234
+ availabilityEntry: _optionalChain([snapshot, 'access', _289 => _289.dappImport, 'access', _290 => _290.availabilityOwner, 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8234
8235
  });
8235
8236
  if (plan.restartSetup) {
8236
8237
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -8304,7 +8305,7 @@ function DepositFlow({
8304
8305
  acceptedExchangeFeeBps: disclosedFeeBps
8305
8306
  });
8306
8307
  } catch (error) {
8307
- if (error instanceof _chunk3OOY67VJcjs.SwappedConnectFeeChangedError) {
8308
+ if (error instanceof _chunkQGNJFDEOcjs.SwappedConnectFeeChangedError) {
8308
8309
  return error.exchangeFeeBps;
8309
8310
  }
8310
8311
  throw error;
@@ -8312,7 +8313,7 @@ function DepositFlow({
8312
8313
  entry = { smartAccount: owner, response };
8313
8314
  }
8314
8315
  const currentAccount = storeApi.getState().setup.smartAccount;
8315
- if (_optionalChain([currentAccount, 'optionalAccess', _288 => _288.toLowerCase, 'call', _289 => _289()]) !== owner) {
8316
+ if (_optionalChain([currentAccount, 'optionalAccess', _293 => _293.toLowerCase, 'call', _294 => _294()]) !== owner) {
8316
8317
  swappedConnectUrlRef.current.delete(key);
8317
8318
  throw new Error("Deposit account changed. Select your exchange again.");
8318
8319
  }
@@ -8346,7 +8347,7 @@ function DepositFlow({
8346
8347
  );
8347
8348
  }
8348
8349
  swappedConnectUrlRef.current.delete(key);
8349
- const response = _optionalChain([entry, 'optionalAccess', _290 => _290.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8350
+ const response = _optionalChain([entry, 'optionalAccess', _295 => _295.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8350
8351
  smartAccount,
8351
8352
  connection,
8352
8353
  acceptedExchangeFeeBps: expectedFeeBps
@@ -8514,7 +8515,7 @@ function DepositFlow({
8514
8515
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
8515
8516
  analytics.completeStep();
8516
8517
  analytics.resetAttempt();
8517
- _optionalChain([onLifecycleRef, 'access', _291 => _291.current, 'optionalCall', _292 => _292({
8518
+ _optionalChain([onLifecycleRef, 'access', _296 => _296.current, 'optionalCall', _297 => _297({
8518
8519
  type: "smart-account-changed",
8519
8520
  evm: null,
8520
8521
  solana: null
@@ -8545,17 +8546,17 @@ function DepositFlow({
8545
8546
  forceRegister
8546
8547
  ]
8547
8548
  );
8548
- const desiredSetupRequestKey = _chunkX4D52IZKcjs.computeRequestKey.call(void 0, setupInput);
8549
+ const desiredSetupRequestKey = _chunkQGNJFDEOcjs.computeRequestKey.call(void 0, setupInput);
8549
8550
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
8550
8551
  _react.useEffect.call(void 0, () => {
8551
8552
  void (async () => {
8552
- const requestKey = _chunkX4D52IZKcjs.computeRequestKey.call(void 0, setupInput);
8553
- const cacheKey = _chunkX4D52IZKcjs.computeCacheKey.call(void 0, setupInput);
8554
- const cacheable = _chunkX4D52IZKcjs.computeIsCacheable.call(void 0, setupInput);
8553
+ const requestKey = _chunkQGNJFDEOcjs.computeRequestKey.call(void 0, setupInput);
8554
+ const cacheKey = _chunkQGNJFDEOcjs.computeCacheKey.call(void 0, setupInput);
8555
+ const cacheable = _chunkQGNJFDEOcjs.computeIsCacheable.call(void 0, setupInput);
8555
8556
  if (storeApi.getState().setup.requestKey === requestKey) {
8556
8557
  return;
8557
8558
  }
8558
- const dedupedResult = _chunkX4D52IZKcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8559
+ const dedupedResult = _chunkQGNJFDEOcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8559
8560
  if (dedupedResult) {
8560
8561
  storeApi.dispatch({
8561
8562
  type: "setup/started",
@@ -8581,7 +8582,7 @@ function DepositFlow({
8581
8582
  cacheable
8582
8583
  });
8583
8584
  try {
8584
- const result = await _chunkX4D52IZKcjs.runAccountSetupDeduped.call(void 0,
8585
+ const result = await _chunkQGNJFDEOcjs.runAccountSetupDeduped.call(void 0,
8585
8586
  setupInput,
8586
8587
  { service, debug },
8587
8588
  requestKey
@@ -8596,7 +8597,7 @@ function DepositFlow({
8596
8597
  }
8597
8598
  });
8598
8599
  } catch (error) {
8599
- const message = error instanceof _chunkX4D52IZKcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8600
+ const message = error instanceof _chunkQGNJFDEOcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8600
8601
  storeApi.dispatch({
8601
8602
  type: "setup/failed",
8602
8603
  requestKey,
@@ -8628,11 +8629,11 @@ function DepositFlow({
8628
8629
  return;
8629
8630
  }
8630
8631
  storeApi.dispatch({ type: "portfolio/loading", network, address });
8631
- const requestId = _optionalChain([readPortfolioEntry, 'call', _293 => _293(
8632
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _298 => _298(
8632
8633
  storeApi.getState().portfolio,
8633
8634
  network,
8634
8635
  address
8635
- ), 'optionalAccess', _294 => _294.requestId]);
8636
+ ), 'optionalAccess', _299 => _299.requestId]);
8636
8637
  if (requestId === void 0) return;
8637
8638
  void (async () => {
8638
8639
  try {
@@ -8645,7 +8646,7 @@ function DepositFlow({
8645
8646
  address,
8646
8647
  requestId,
8647
8648
  totalUsd: portfolio.totalUsd,
8648
- chainIds: _chunk3OOY67VJcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8649
+ chainIds: _chunkQGNJFDEOcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8649
8650
  });
8650
8651
  } catch (e39) {
8651
8652
  storeApi.dispatch({
@@ -8669,7 +8670,7 @@ function DepositFlow({
8669
8670
  { type: "transaction_hash", value: data.txHash },
8670
8671
  "transfer_tracking"
8671
8672
  );
8672
- _optionalChain([onLifecycleRef, 'access', _295 => _295.current, 'optionalCall', _296 => _296({ type: "submitted", ...data })]);
8673
+ _optionalChain([onLifecycleRef, 'access', _300 => _300.current, 'optionalCall', _301 => _301({ type: "submitted", ...data })]);
8673
8674
  },
8674
8675
  [analytics, logFlow, onLifecycleRef]
8675
8676
  );
@@ -8738,7 +8739,7 @@ function DepositFlow({
8738
8739
  sourceDecimals: tokenAtSubmit.decimals,
8739
8740
  inputAmountUsd: amountUsd
8740
8741
  });
8741
- _optionalChain([onLifecycleRef, 'access', _297 => _297.current, 'optionalCall', _298 => _298({
8742
+ _optionalChain([onLifecycleRef, 'access', _302 => _302.current, 'optionalCall', _303 => _303({
8742
8743
  type: "submitted",
8743
8744
  txHash,
8744
8745
  sourceChain: "solana",
@@ -8832,8 +8833,8 @@ function DepositFlow({
8832
8833
  sourceChain: chainId,
8833
8834
  sourceToken: token,
8834
8835
  amount,
8835
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _299 => _299.symbol]),
8836
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _300 => _300.decimals]),
8836
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _304 => _304.symbol]),
8837
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _305 => _305.decimals]),
8837
8838
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
8838
8839
  directTransfer: routed.directTransfer,
8839
8840
  sourceTxHashPending: routed.sourceTxHashPending,
@@ -8874,7 +8875,7 @@ function DepositFlow({
8874
8875
  swappedContext,
8875
8876
  initialEvent: info.initialEvent
8876
8877
  });
8877
- _optionalChain([onLifecycleRef, 'access', _301 => _301.current, 'optionalCall', _302 => _302({
8878
+ _optionalChain([onLifecycleRef, 'access', _306 => _306.current, 'optionalCall', _307 => _307({
8878
8879
  type: "submitted",
8879
8880
  txHash: info.txHash,
8880
8881
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -8902,12 +8903,12 @@ function DepositFlow({
8902
8903
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
8903
8904
  (txHash, sourceChain, amount) => {
8904
8905
  const depositAtSubmit = storeApi.getState().deposit;
8905
- _optionalChain([onLifecycleRef, 'access', _303 => _303.current, 'optionalCall', _304 => _304({
8906
+ _optionalChain([onLifecycleRef, 'access', _308 => _308.current, 'optionalCall', _309 => _309({
8906
8907
  type: "submitted",
8907
8908
  txHash,
8908
8909
  sourceChain,
8909
8910
  amount,
8910
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _305 => _305.selectedAsset, 'optionalAccess', _306 => _306.decimals]),
8911
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _310 => _310.selectedAsset, 'optionalAccess', _311 => _311.decimals]),
8911
8912
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
8912
8913
  })]);
8913
8914
  },
@@ -8920,7 +8921,7 @@ function DepositFlow({
8920
8921
  analyticsStepForFlowStep(analyticsMethod, "processing")
8921
8922
  );
8922
8923
  analytics.outcome("completed");
8923
- _optionalChain([onLifecycleRef, 'access', _307 => _307.current, 'optionalCall', _308 => _308({
8924
+ _optionalChain([onLifecycleRef, 'access', _312 => _312.current, 'optionalCall', _313 => _313({
8924
8925
  type: "complete",
8925
8926
  txHash,
8926
8927
  destinationTxHash,
@@ -8937,7 +8938,7 @@ function DepositFlow({
8937
8938
  );
8938
8939
  analytics.outcome("failed");
8939
8940
  analytics.failure("processor_failed", false);
8940
- _optionalChain([onLifecycleRef, 'access', _309 => _309.current, 'optionalCall', _310 => _310({ type: "failed", txHash, error })]);
8941
+ _optionalChain([onLifecycleRef, 'access', _314 => _314.current, 'optionalCall', _315 => _315({ type: "failed", txHash, error })]);
8941
8942
  },
8942
8943
  [analytics, analyticsMethod, logFlowError, onLifecycleRef]
8943
8944
  );
@@ -8958,7 +8959,7 @@ function DepositFlow({
8958
8959
  failureStep
8959
8960
  );
8960
8961
  }
8961
- _optionalChain([onErrorRef, 'access', _311 => _311.current, 'optionalCall', _312 => _312({ message, code, cause })]);
8962
+ _optionalChain([onErrorRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317({ message, code, cause })]);
8962
8963
  },
8963
8964
  [analytics, logFlowError, onErrorRef]
8964
8965
  );
@@ -9007,9 +9008,9 @@ function DepositFlow({
9007
9008
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
9008
9009
  state,
9009
9010
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
9010
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _313 => _313.status]), () => ( "loading")),
9011
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _314 => _314.status]) === "ready" ? portfolioEntry.totalUsd : null,
9012
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _315 => _315.chainIds]), () => ( []))
9011
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _318 => _318.status]), () => ( "loading")),
9012
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _319 => _319.status]) === "ready" ? portfolioEntry.totalUsd : null,
9013
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _320 => _320.chainIds]), () => ( []))
9013
9014
  };
9014
9015
  });
9015
9016
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -9190,7 +9191,7 @@ function DepositFlow({
9190
9191
  consumePrefetchedUrl: consumeSwappedWidgetUrlPrefetch,
9191
9192
  onSwappedComplete: handleSwappedComplete,
9192
9193
  onSwappedFailed: handleDepositFailed,
9193
- onClose: () => _optionalChain([onClose, 'optionalCall', _316 => _316(
9194
+ onClose: () => _optionalChain([onClose, 'optionalCall', _321 => _321(
9194
9195
  openExternally ? "native_dismiss_request" : "header_button"
9195
9196
  )]),
9196
9197
  onGoBack: handleProviderBack,
@@ -9204,7 +9205,7 @@ function DepositFlow({
9204
9205
  }
9205
9206
  ),
9206
9207
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9207
- _chunkX4D52IZKcjs.ProcessingStep,
9208
+ _chunkQGNJFDEOcjs.ProcessingStep,
9208
9209
  {
9209
9210
  smartAccount: step.smartAccount,
9210
9211
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9270,7 +9271,7 @@ function DepositFlow({
9270
9271
  loadUrl: () => loadSwappedConnectUrl(step.smartAccount, step.connection),
9271
9272
  onSwappedComplete: handleSwappedComplete,
9272
9273
  onSwappedFailed: handleDepositFailed,
9273
- onClose: () => _optionalChain([onClose, 'optionalCall', _317 => _317(
9274
+ onClose: () => _optionalChain([onClose, 'optionalCall', _322 => _322(
9274
9275
  openExternally ? "native_dismiss_request" : "header_button"
9275
9276
  )]),
9276
9277
  onGoBack: handleProviderBack,
@@ -9284,7 +9285,7 @@ function DepositFlow({
9284
9285
  }
9285
9286
  ),
9286
9287
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9287
- _chunkX4D52IZKcjs.ProcessingStep,
9288
+ _chunkQGNJFDEOcjs.ProcessingStep,
9288
9289
  {
9289
9290
  smartAccount: step.smartAccount,
9290
9291
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9319,8 +9320,8 @@ function DepositFlow({
9319
9320
  );
9320
9321
  }
9321
9322
  if (isSolanaWalletMode) {
9322
- const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _318 => _318.solanaAddress]);
9323
- const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _319 => _319.solanaProvider]);
9323
+ const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _323 => _323.solanaAddress]);
9324
+ const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _324 => _324.solanaProvider]);
9324
9325
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9325
9326
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9326
9327
  AccountPreparingSkeleton,
@@ -9371,7 +9372,7 @@ function DepositFlow({
9371
9372
  targetToken,
9372
9373
  service,
9373
9374
  solanaProvider,
9374
- solanaConnection: _optionalChain([walletSession, 'optionalAccess', _320 => _320.solanaConnection]),
9375
+ solanaConnection: _optionalChain([walletSession, 'optionalAccess', _325 => _325.solanaConnection]),
9375
9376
  uiConfig,
9376
9377
  onConfirm: handleSolanaConfirmed,
9377
9378
  onError: handleError,
@@ -9413,7 +9414,7 @@ function DepositFlow({
9413
9414
  ) })
9414
9415
  ] }) : null,
9415
9416
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9416
- _chunkX4D52IZKcjs.ProcessingStep,
9417
+ _chunkQGNJFDEOcjs.ProcessingStep,
9417
9418
  {
9418
9419
  smartAccount: effectiveStep.smartAccount,
9419
9420
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9452,7 +9453,7 @@ function DepositFlow({
9452
9453
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9453
9454
  DappImportAssetSelectSkeleton,
9454
9455
  {
9455
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _321 => _321.sourceLabel]), () => ( "")),
9456
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _326 => _326.sourceLabel]), () => ( "")),
9456
9457
  error: dappImportBootError,
9457
9458
  onRetry: handleBootRetry
9458
9459
  }
@@ -9474,7 +9475,7 @@ function DepositFlow({
9474
9475
  rows: dappImportSelectRows,
9475
9476
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
9476
9477
  onSelect: (providerId) => {
9477
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _322 => _322.toLowerCase, 'call', _323 => _323()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9478
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _327 => _327.toLowerCase, 'call', _328 => _328()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9478
9479
  if (availabilityEntry === "error") {
9479
9480
  storeApi.dispatch({
9480
9481
  type: "dapp-import/availability-retry-requested"
@@ -9493,16 +9494,16 @@ function DepositFlow({
9493
9494
  }
9494
9495
  );
9495
9496
  }
9496
- if (!_optionalChain([signerContext, 'optionalAccess', _324 => _324.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _325 => _325.publicClient])) {
9497
+ if (!_optionalChain([signerContext, 'optionalAccess', _329 => _329.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _330 => _330.publicClient])) {
9497
9498
  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" }) }) }) }) });
9498
9499
  }
9499
9500
  const ownerAddress = signerContext.ownerAddress;
9500
- 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));
9501
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _331 => _331.walletClient, 'optionalAccess', _332 => _332.chain, 'optionalAccess', _333 => _333.id]), () => ( _optionalChain([signerContext, 'access', _334 => _334.publicClient, 'access', _335 => _335.chain, 'optionalAccess', _336 => _336.id]))), () => ( setupChainId));
9501
9502
  const getReadClientForChain = (chainId) => {
9502
- if (_optionalChain([signerContext, 'access', _332 => _332.publicClient, 'access', _333 => _333.chain, 'optionalAccess', _334 => _334.id]) === chainId) {
9503
+ if (_optionalChain([signerContext, 'access', _337 => _337.publicClient, 'access', _338 => _338.chain, 'optionalAccess', _339 => _339.id]) === chainId) {
9503
9504
  return signerContext.publicClient;
9504
9505
  }
9505
- return _chunk3OOY67VJcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9506
+ return _chunkQGNJFDEOcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9506
9507
  };
9507
9508
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9508
9509
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9528,9 +9529,9 @@ function DepositFlow({
9528
9529
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9529
9530
  DappImportAssetSelectStep,
9530
9531
  {
9531
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _335 => _335.assets, 'access', _336 => _336[0], 'optionalAccess', _337 => _337.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9532
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _340 => _340.assets, 'access', _341 => _341[0], 'optionalAccess', _342 => _342.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9532
9533
  assets: activeDappImportAvailability.assets,
9533
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _338 => _338.incomplete, 'optionalAccess', _339 => _339.summary]),
9534
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _343 => _343.incomplete, 'optionalAccess', _344 => _344.summary]),
9534
9535
  onSelect: handleDappImportAssetSelected
9535
9536
  }
9536
9537
  ),
@@ -9605,7 +9606,7 @@ function DepositFlow({
9605
9606
  }
9606
9607
  ),
9607
9608
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9608
- _chunkX4D52IZKcjs.ProcessingStep,
9609
+ _chunkQGNJFDEOcjs.ProcessingStep,
9609
9610
  {
9610
9611
  smartAccount: effectiveStep.smartAccount,
9611
9612
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9645,7 +9646,7 @@ function DepositFlow({
9645
9646
 
9646
9647
  var ReownDepositInner = _react.lazy.call(void 0, async () => {
9647
9648
  await loadReownDependencies();
9648
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-R37SSHUF.cjs")));
9649
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-6CXXGQ7X.cjs")));
9649
9650
  return { default: module.DepositModalReown };
9650
9651
  });
9651
9652
  function buildDepositAnalyticsSessionProperties({
@@ -9674,7 +9675,7 @@ function buildDepositAnalyticsSessionProperties({
9674
9675
  enabledFundingMethods.push("wallet");
9675
9676
  }
9676
9677
  if (enableQrTransfer) enabledFundingMethods.push("transfer");
9677
- if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _340 => _340.length]) !== 0) {
9678
+ if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _345 => _345.length]) !== 0) {
9678
9679
  enabledFundingMethods.push("fiat_onramp");
9679
9680
  }
9680
9681
  if (enableExchangeConnect) enabledFundingMethods.push("exchange_connect");
@@ -9694,7 +9695,7 @@ function buildDepositAnalyticsSessionProperties({
9694
9695
  amount: defaultAmount !== void 0,
9695
9696
  initial_asset_migration: initialAssetMigration !== void 0
9696
9697
  },
9697
- ..._chunkX4D52IZKcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9698
+ ..._chunkQGNJFDEOcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9698
9699
  };
9699
9700
  }
9700
9701
  var WALLET_CLIENT_PROP = "walletClient";
@@ -9702,8 +9703,8 @@ function hasSuppliedWalletClient(props) {
9702
9703
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
9703
9704
  }
9704
9705
  function DepositModal(props) {
9705
- _chunkX4D52IZKcjs.warnRemovedProps.call(void 0, "DepositModal", props);
9706
- _chunk3OOY67VJcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9706
+ _chunkQGNJFDEOcjs.warnRemovedProps.call(void 0, "DepositModal", props);
9707
+ _chunkQGNJFDEOcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9707
9708
  const needsReown = !!props.reownAppId;
9708
9709
  const hasWalletClientProp = hasSuppliedWalletClient(props);
9709
9710
  if (needsReown) {
@@ -9775,8 +9776,8 @@ function DepositModalInner({
9775
9776
  const analyticsControllerRef = _react.useRef.call(void 0, null);
9776
9777
  const analyticsSessionIdRef = _react.useRef.call(void 0, null);
9777
9778
  const previousOpenRef = _react.useRef.call(void 0, isOpen);
9778
- const onReadyRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onReady);
9779
- const onUiStateRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onUiState);
9779
+ const onReadyRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onReady);
9780
+ const onUiStateRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onUiState);
9780
9781
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
9781
9782
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
9782
9783
  const [submitting, setSubmitting] = _react.useState.call(void 0, false);
@@ -9784,30 +9785,30 @@ function DepositModalInner({
9784
9785
  void 0
9785
9786
  );
9786
9787
  const [processingSettled, setProcessingSettled] = _react.useState.call(void 0, false);
9787
- const historyButtonVisible = _chunkX4D52IZKcjs.isHistoryEntryVisible.call(void 0, {
9788
+ const historyButtonVisible = _chunkQGNJFDEOcjs.isHistoryEntryVisible.call(void 0, {
9788
9789
  screen: currentScreen,
9789
9790
  submitting,
9790
9791
  settled: processingSettled
9791
9792
  });
9792
9793
  const targetChain = typeof targetChainProp === "string" ? targetChainProp : _chunkOY5N3E6Lcjs.getChainId.call(void 0, targetChainProp);
9793
9794
  const sourceChain = sourceChainProp ? _chunkOY5N3E6Lcjs.getChainId.call(void 0, sourceChainProp) : void 0;
9794
- const rpcUrls = _chunk3OOY67VJcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9795
+ const rpcUrls = _chunkQGNJFDEOcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9795
9796
  const service = _react.useMemo.call(void 0,
9796
- () => _chunk3OOY67VJcjs.createDepositService.call(void 0, backendUrl, {
9797
+ () => _chunkQGNJFDEOcjs.createDepositService.call(void 0, backendUrl, {
9797
9798
  debug,
9798
9799
  debugScope: "service:deposit"
9799
9800
  }),
9800
9801
  [backendUrl, debug]
9801
9802
  );
9802
9803
  const historyAnalytics = _react.useMemo.call(void 0,
9803
- () => _chunkX4D52IZKcjs.createHistoryAnalytics.call(void 0, {
9804
+ () => _chunkQGNJFDEOcjs.createHistoryAnalytics.call(void 0, {
9804
9805
  modal: "deposit",
9805
9806
  controllerRef: analyticsControllerRef,
9806
9807
  sessionIdRef: analyticsSessionIdRef
9807
9808
  }),
9808
9809
  []
9809
9810
  );
9810
- const history = _chunkX4D52IZKcjs.useHistoryPanel.call(void 0, {
9811
+ const history = _chunkQGNJFDEOcjs.useHistoryPanel.call(void 0, {
9811
9812
  isOpen,
9812
9813
  recipient,
9813
9814
  service,
@@ -9847,15 +9848,15 @@ function DepositModalInner({
9847
9848
  }, [store, targetChain, targetToken]);
9848
9849
  _react.useEffect.call(void 0, () => {
9849
9850
  if (!isOpen || !modalRef.current) return;
9850
- return _chunk3OOY67VJcjs.applyTheme.call(void 0, modalRef.current, theme);
9851
+ return _chunkQGNJFDEOcjs.applyTheme.call(void 0, modalRef.current, theme);
9851
9852
  }, [isOpen, theme]);
9852
9853
  _react.useEffect.call(void 0, () => {
9853
9854
  if (isOpen) {
9854
- _optionalChain([onReadyRef, 'access', _341 => _341.current, 'optionalCall', _342 => _342()]);
9855
+ _optionalChain([onReadyRef, 'access', _346 => _346.current, 'optionalCall', _347 => _347()]);
9855
9856
  }
9856
9857
  }, [isOpen, onReadyRef]);
9857
9858
  _react.useEffect.call(void 0, () => {
9858
- _optionalChain([onUiStateRef, 'access', _343 => _343.current, 'optionalCall', _344 => _344({
9859
+ _optionalChain([onUiStateRef, 'access', _348 => _348.current, 'optionalCall', _349 => _349({
9859
9860
  screen: currentScreen,
9860
9861
  back: backHandler,
9861
9862
  // A recovery in flight is a submission whose outcome is unknown, so a
@@ -9876,10 +9877,10 @@ function DepositModalInner({
9876
9877
  },
9877
9878
  []
9878
9879
  );
9879
- const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
9880
+ const onLifecycleRef = _chunkQGNJFDEOcjs.useLatestRef.call(void 0, onLifecycle);
9880
9881
  const handleLifecycle = _react.useCallback.call(void 0,
9881
9882
  (event) => {
9882
- _optionalChain([onLifecycleRef, 'access', _345 => _345.current, 'optionalCall', _346 => _346(event)]);
9883
+ _optionalChain([onLifecycleRef, 'access', _350 => _350.current, 'optionalCall', _351 => _351(event)]);
9883
9884
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
9884
9885
  invalidateHistory();
9885
9886
  }
@@ -9893,8 +9894,8 @@ function DepositModalInner({
9893
9894
  (source) => {
9894
9895
  if (recoverySubmitting) return;
9895
9896
  const analytics = analyticsControllerRef.current;
9896
- _optionalChain([analytics, 'optionalAccess', _347 => _347.abandon, 'call', _348 => _348(source === "provider_back" ? "provider_back" : "modal_close")]);
9897
- _optionalChain([analytics, 'optionalAccess', _349 => _349.close, 'call', _350 => _350(source)]);
9897
+ _optionalChain([analytics, 'optionalAccess', _352 => _352.abandon, 'call', _353 => _353(source === "provider_back" ? "provider_back" : "modal_close")]);
9898
+ _optionalChain([analytics, 'optionalAccess', _354 => _354.close, 'call', _355 => _355(source)]);
9898
9899
  onClose();
9899
9900
  },
9900
9901
  [onClose, recoverySubmitting]
@@ -9910,8 +9911,8 @@ function DepositModalInner({
9910
9911
  _react.useEffect.call(void 0, () => {
9911
9912
  if (previousOpenRef.current && !isOpen) {
9912
9913
  const analytics = analyticsControllerRef.current;
9913
- _optionalChain([analytics, 'optionalAccess', _351 => _351.abandon, 'call', _352 => _352("modal_close")]);
9914
- _optionalChain([analytics, 'optionalAccess', _353 => _353.close, 'call', _354 => _354("host_controlled")]);
9914
+ _optionalChain([analytics, 'optionalAccess', _356 => _356.abandon, 'call', _357 => _357("modal_close")]);
9915
+ _optionalChain([analytics, 'optionalAccess', _358 => _358.close, 'call', _359 => _359("host_controlled")]);
9915
9916
  }
9916
9917
  previousOpenRef.current = isOpen;
9917
9918
  }, [isOpen]);
@@ -9948,12 +9949,12 @@ function DepositModalInner({
9948
9949
  targetChain,
9949
9950
  targetToken
9950
9951
  });
9951
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _355 => _355.showBackButton]), () => ( true));
9952
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _360 => _360.showBackButton]), () => ( true));
9952
9953
  const canGoBack = backHandler !== void 0;
9953
9954
  const hideHeaderChrome = swappedImmersive;
9954
9955
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
9955
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9956
- _chunk3OOY67VJcjs.Modal,
9956
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9957
+ _chunkQGNJFDEOcjs.Modal,
9957
9958
  {
9958
9959
  isOpen,
9959
9960
  onClose: handleModalDismiss,
@@ -9962,7 +9963,7 @@ function DepositModalInner({
9962
9963
  closeOnOverlayClick,
9963
9964
  ariaLabel: "Deposit",
9964
9965
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9965
- _chunk3OOY67VJcjs.AnalyticsSession,
9966
+ _chunkQGNJFDEOcjs.AnalyticsSession,
9966
9967
  {
9967
9968
  modal: "deposit",
9968
9969
  sessionProperties: analyticsSessionProperties,
@@ -9984,12 +9985,12 @@ function DepositModalInner({
9984
9985
  className: "rs-modal-header-back",
9985
9986
  "aria-label": "Go back",
9986
9987
  onClick: backHandler,
9987
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronLeftIcon, {})
9988
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.ChevronLeftIcon, {})
9988
9989
  }
9989
9990
  ) }),
9990
9991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
9991
9992
  historyButtonVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9992
- _chunkX4D52IZKcjs.HistoryEntryButton,
9993
+ _chunkQGNJFDEOcjs.HistoryEntryButton,
9993
9994
  {
9994
9995
  badge: history.badge,
9995
9996
  onClick: history.openPanel,
@@ -10003,7 +10004,7 @@ function DepositModalInner({
10003
10004
  onClick: () => closeWithSource("header_button"),
10004
10005
  className: "rs-modal-close",
10005
10006
  "aria-label": "Close",
10006
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {})
10007
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQGNJFDEOcjs.CloseIcon, {})
10007
10008
  }
10008
10009
  )
10009
10010
  ] })
@@ -10039,7 +10040,7 @@ function DepositModalInner({
10039
10040
  onDisconnect,
10040
10041
  onRequestConnect,
10041
10042
  uiConfig,
10042
- appFees: _optionalChain([clientSetup, 'optionalAccess', _356 => _356.appFees]),
10043
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _361 => _361.appFees]),
10043
10044
  appFeesResolved: clientSetup !== null,
10044
10045
  onStepChange: handleStepChange,
10045
10046
  onSwappedImmersiveChange: setSwappedImmersive,
@@ -10053,7 +10054,7 @@ function DepositModalInner({
10053
10054
  }
10054
10055
  ),
10055
10056
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10056
- _chunkX4D52IZKcjs.HistoryOverlay,
10057
+ _chunkQGNJFDEOcjs.HistoryOverlay,
10057
10058
  {
10058
10059
  controller: history,
10059
10060
  backLabel: "Deposit",