@rhinestone/deposit-modal 0.18.0 → 0.19.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 (48) hide show
  1. package/README.md +49 -8
  2. package/dist/{DepositModalReown-TVO3ZQQK.cjs → DepositModalReown-UITYXJ6W.cjs} +16 -16
  3. package/dist/{DepositModalReown-VCY65DJX.mjs → DepositModalReown-XBNY6QCI.mjs} +3 -3
  4. package/dist/{WithdrawModal-RMCYJJ4S.mjs → WithdrawModal-DY6A55OA.mjs} +3 -3
  5. package/dist/WithdrawModal-V42OK7L3.cjs +11 -0
  6. package/dist/{chunk-AIZKGFVA.mjs → chunk-5NWLS5BQ.mjs} +69 -19
  7. package/dist/{chunk-R2B6VD4E.mjs → chunk-BIL4ENC3.mjs} +1 -1
  8. package/dist/{chunk-34JVJZEZ.cjs → chunk-EG4H7OMC.cjs} +71 -71
  9. package/dist/{chunk-N3AAT6BS.cjs → chunk-HMUGY66O.cjs} +226 -176
  10. package/dist/{chunk-O4JZKKCZ.cjs → chunk-ISLVD5HQ.cjs} +2 -2
  11. package/dist/{chunk-EKC2IRQG.mjs → chunk-NITKDXHR.mjs} +211 -31
  12. package/dist/{chunk-JV5OGG53.cjs → chunk-OCWSMLOP.cjs} +724 -544
  13. package/dist/{chunk-N6JJG57R.cjs → chunk-PYOC6K24.cjs} +1 -1
  14. package/dist/{chunk-3TEVMP76.mjs → chunk-X6N2XPTO.mjs} +1 -1
  15. package/dist/{chunk-X4EUXBHJ.mjs → chunk-ZGHVJ2XM.mjs} +1 -1
  16. package/dist/compliance.cjs +4 -4
  17. package/dist/compliance.mjs +2 -2
  18. package/dist/constants.cjs +2 -2
  19. package/dist/constants.d.cts +1 -1
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/constants.mjs +1 -1
  22. package/dist/deposit.cjs +4 -4
  23. package/dist/deposit.d.cts +2 -2
  24. package/dist/deposit.d.ts +2 -2
  25. package/dist/deposit.mjs +3 -3
  26. package/dist/embed.cjs +14 -14
  27. package/dist/embed.d.cts +1 -1
  28. package/dist/embed.d.ts +1 -1
  29. package/dist/embed.mjs +4 -4
  30. package/dist/index.cjs +5 -5
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.mjs +4 -4
  34. package/dist/offramp.cjs +9 -9
  35. package/dist/offramp.mjs +7 -7
  36. package/dist/onramp.cjs +24 -11
  37. package/dist/onramp.d.cts +24 -6
  38. package/dist/onramp.d.ts +24 -6
  39. package/dist/onramp.mjs +22 -9
  40. package/dist/styles.css +25 -0
  41. package/dist/{types-CZYypODQ.d.ts → types-BOxa1DE-.d.ts} +37 -2
  42. package/dist/{types-CbUs4boj.d.cts → types-BShYNpvO.d.cts} +37 -2
  43. package/dist/withdraw.cjs +4 -4
  44. package/dist/withdraw.d.cts +2 -2
  45. package/dist/withdraw.d.ts +2 -2
  46. package/dist/withdraw.mjs +3 -3
  47. package/package.json +5 -5
  48. package/dist/WithdrawModal-GR3HLYXU.cjs +0 -11
@@ -105,7 +105,7 @@ var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
105
105
 
106
106
 
107
107
 
108
- var _chunkN3AAT6BScjs = require('./chunk-N3AAT6BS.cjs');
108
+ var _chunkHMUGY66Ocjs = require('./chunk-HMUGY66O.cjs');
109
109
 
110
110
 
111
111
 
@@ -250,11 +250,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
250
250
 
251
251
  function ChainIcon({ chainId, className, loading }) {
252
252
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, chainId);
253
- const catalogChain = _chunkN3AAT6BScjs.useCatalogChain.call(void 0, _chunkN3AAT6BScjs.catalogKeyForChain.call(void 0, chainId));
253
+ const catalogChain = _chunkHMUGY66Ocjs.useCatalogChain.call(void 0, _chunkHMUGY66Ocjs.catalogKeyForChain.call(void 0, chainId));
254
254
  const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
255
255
  const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
256
256
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
257
- _chunkN3AAT6BScjs.CdnIcon,
257
+ _chunkHMUGY66Ocjs.CdnIcon,
258
258
  {
259
259
  src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
260
260
  alt: name,
@@ -277,7 +277,7 @@ ChainIcon.displayName = "ChainIcon";
277
277
  // src/components/ui/WalletBadgeIcons/index.tsx
278
278
 
279
279
  function BadgeImage({ src, alt = "" }) {
280
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src, alt }) });
280
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src, alt }) });
281
281
  }
282
282
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
283
283
  function WalletBadgeIcons() {
@@ -330,7 +330,7 @@ var DAPP_IMPORT_CATALOG = [
330
330
  // src/components/ui/BrandIcons.tsx
331
331
 
332
332
  function ExchangeBadgeImage({ name }) {
333
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: _nullishCoalesce(_chunkN3AAT6BScjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
333
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: _nullishCoalesce(_chunkHMUGY66Ocjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
334
334
  }
335
335
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
336
336
  function CardNetworkIcons() {
@@ -338,7 +338,7 @@ function CardNetworkIcons() {
338
338
  "span",
339
339
  {
340
340
  className: `rs-card-network rs-card-network--${network}`,
341
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
341
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
342
342
  },
343
343
  network
344
344
  )) });
@@ -357,7 +357,7 @@ function DappBadgeIcons() {
357
357
  ).filter(
358
358
  (brand) => Boolean(brand)
359
359
  );
360
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
360
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
361
361
  }
362
362
  DappBadgeIcons.displayName = "DappBadgeIcons";
363
363
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -377,9 +377,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
377
377
  return "No balance";
378
378
  }
379
379
  function fiatIcon(name) {
380
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.AppleIcon, {});
381
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BankIcon, {});
382
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CardIcon, {});
380
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.AppleIcon, {});
381
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BankIcon, {});
382
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CardIcon, {});
383
383
  }
384
384
  function FiatMethodIcon({ option }) {
385
385
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -462,20 +462,20 @@ function renderWalletLeading(row) {
462
462
  }
463
463
  );
464
464
  }
465
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {});
465
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {});
466
466
  }
467
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {});
468
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {});
469
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.UnplugIcon, {});
470
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.MigrateAssetsIcon, {});
471
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-spinner--sm" });
467
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {});
468
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {});
469
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.UnplugIcon, {});
470
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.MigrateAssetsIcon, {});
471
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, { className: "rs-spinner--sm" });
472
472
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
473
473
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
474
474
  "+100"
475
475
  ] });
476
476
  var EXTRA_EXCHANGE_COUNT = Math.max(
477
477
  0,
478
- _chunkN3AAT6BScjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
478
+ _chunkHMUGY66Ocjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
479
479
  );
480
480
  var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
481
481
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
@@ -533,7 +533,7 @@ function ConnectStep({
533
533
  if (onSelectTransferCrypto) {
534
534
  cryptoRows.push(
535
535
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
536
- _chunkN3AAT6BScjs.ListRow,
536
+ _chunkHMUGY66Ocjs.ListRow,
537
537
  {
538
538
  leading: TRANSFER_CRYPTO_LEADING,
539
539
  title: "Transfer crypto",
@@ -554,7 +554,7 @@ function ConnectStep({
554
554
  );
555
555
  cryptoRows.push(
556
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
557
- _chunkN3AAT6BScjs.ListRow,
557
+ _chunkHMUGY66Ocjs.ListRow,
558
558
  {
559
559
  leading: renderWalletLeading(row),
560
560
  title: collapseToExternal ? "External wallet" : row.label,
@@ -571,7 +571,7 @@ function ConnectStep({
571
571
  if (!hasSessionWallet && handleConnect) {
572
572
  cryptoRows.push(
573
573
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
574
- _chunkN3AAT6BScjs.ListRow,
574
+ _chunkHMUGY66Ocjs.ListRow,
575
575
  {
576
576
  leading: WALLET_LEADING,
577
577
  title: "Connect wallet",
@@ -586,7 +586,7 @@ function ConnectStep({
586
586
  if (onSelectFundFromExchange) {
587
587
  cryptoRows.push(
588
588
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
589
- _chunkN3AAT6BScjs.ListRow,
589
+ _chunkHMUGY66Ocjs.ListRow,
590
590
  {
591
591
  leading: EXCHANGE_LEADING,
592
592
  title: "Connect exchange",
@@ -601,7 +601,7 @@ function ConnectStep({
601
601
  if (onSelectMigrateAssets) {
602
602
  cryptoRows.push(
603
603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
604
- _chunkN3AAT6BScjs.ListRow,
604
+ _chunkHMUGY66Ocjs.ListRow,
605
605
  {
606
606
  leading: MIGRATE_ASSETS_LEADING,
607
607
  title: "Migrate assets",
@@ -622,7 +622,7 @@ function ConnectStep({
622
622
  for (const opt of fiatPaymentMethods) {
623
623
  cashRows.push(
624
624
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
625
- _chunkN3AAT6BScjs.ListRow,
625
+ _chunkHMUGY66Ocjs.ListRow,
626
626
  {
627
627
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
628
628
  title: opt.label,
@@ -637,7 +637,7 @@ function ConnectStep({
637
637
  } else if (fiatLoading) {
638
638
  cashRows.push(
639
639
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
640
- _chunkN3AAT6BScjs.ListRow,
640
+ _chunkHMUGY66Ocjs.ListRow,
641
641
  {
642
642
  leading: SMALL_SPINNER,
643
643
  title: "Loading payment options\u2026",
@@ -666,9 +666,9 @@ function ConnectStep({
666
666
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
667
667
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
668
668
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
669
- _chunkN3AAT6BScjs.BodyHeader,
669
+ _chunkHMUGY66Ocjs.BodyHeader,
670
670
  {
671
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.HandCoinsIcon, {}),
671
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.HandCoinsIcon, {}),
672
672
  title,
673
673
  subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
674
674
  aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -704,7 +704,7 @@ function ConnectStep({
704
704
  children: "Disconnect wallet"
705
705
  }
706
706
  ) }),
707
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
708
708
  ] });
709
709
  }
710
710
  ConnectStep.displayName = "ConnectStep";
@@ -727,18 +727,18 @@ function AssetSelectStep({
727
727
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
728
728
  const [loading, setLoading] = _react.useState.call(void 0, true);
729
729
  const [error, setError] = _react.useState.call(void 0, null);
730
- const isDepositChain = _chunkN3AAT6BScjs.useIsDepositChain.call(void 0, );
731
- const isExcludedByRestrictedList = _chunkN3AAT6BScjs.useRestrictedListExclusion.call(void 0, );
732
- const { catalog } = _chunkN3AAT6BScjs.useChainCatalog.call(void 0, );
733
- const chainName = _chunkN3AAT6BScjs.useChainName.call(void 0, );
730
+ const isDepositChain = _chunkHMUGY66Ocjs.useIsDepositChain.call(void 0, );
731
+ const isExcludedByRestrictedList = _chunkHMUGY66Ocjs.useRestrictedListExclusion.call(void 0, );
732
+ const { catalog } = _chunkHMUGY66Ocjs.useChainCatalog.call(void 0, );
733
+ const chainName = _chunkHMUGY66Ocjs.useChainName.call(void 0, );
734
734
  const defaultAssetId = _react.useMemo.call(void 0, () => {
735
735
  if (!defaultSourceChain || !defaultSourceToken) return null;
736
- return _chunkN3AAT6BScjs.getAssetId.call(void 0, {
736
+ return _chunkHMUGY66Ocjs.getAssetId.call(void 0, {
737
737
  chainId: defaultSourceChain,
738
738
  token: defaultSourceToken
739
739
  });
740
740
  }, [defaultSourceChain, defaultSourceToken]);
741
- const onTotalBalanceComputedRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onTotalBalanceComputed);
741
+ const onTotalBalanceComputedRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onTotalBalanceComputed);
742
742
  _react.useEffect.call(void 0, () => {
743
743
  let active = true;
744
744
  function emitAssetsUpdate(currentAssets) {
@@ -758,7 +758,7 @@ function AssetSelectStep({
758
758
  try {
759
759
  const portfolio = await service.fetchPortfolio(address);
760
760
  if (!active) return;
761
- const portfolioAssets = _chunkN3AAT6BScjs.portfolioToAssets.call(void 0, portfolio.tokens);
761
+ const portfolioAssets = _chunkHMUGY66Ocjs.portfolioToAssets.call(void 0, portfolio.tokens);
762
762
  setAssets(portfolioAssets);
763
763
  emitAssetsUpdate(portfolioAssets);
764
764
  const hasNative = portfolioAssets.some(
@@ -840,7 +840,7 @@ function AssetSelectStep({
840
840
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
841
841
  const numeric = Number(raw);
842
842
  if (!Number.isFinite(numeric)) return raw;
843
- return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
843
+ return _chunkHMUGY66Ocjs.tokenFormatter.format(numeric);
844
844
  } catch (e3) {
845
845
  return asset.balance;
846
846
  }
@@ -848,20 +848,20 @@ function AssetSelectStep({
848
848
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
849
849
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
850
850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
851
- _chunkN3AAT6BScjs.BodyHeader,
851
+ _chunkHMUGY66Ocjs.BodyHeader,
852
852
  {
853
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
853
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}),
854
854
  title: "Your assets",
855
855
  subtitle: "Select source assets to transfer"
856
856
  }
857
857
  ),
858
858
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
859
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-text-tertiary" }),
859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, { className: "rs-text-tertiary" }),
860
860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
861
861
  ] }),
862
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
862
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: error }),
863
863
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
864
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, { className: "rs-empty-icon" }),
864
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, { className: "rs-empty-icon" }),
865
865
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
866
866
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
867
867
  address.slice(0, 6),
@@ -894,13 +894,13 @@ function AssetSelectStep({
894
894
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
895
895
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
896
896
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
897
- _chunkN3AAT6BScjs.TokenIcon,
897
+ _chunkHMUGY66Ocjs.TokenIcon,
898
898
  {
899
899
  symbol: asset.symbol,
900
900
  fallback: asset.symbol.slice(0, 4)
901
901
  }
902
902
  ) }),
903
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
903
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
904
904
  "span",
905
905
  {
906
906
  className: "rs-asset-chain-badge",
@@ -927,14 +927,14 @@ function AssetSelectStep({
927
927
  ] })
928
928
  ] })
929
929
  ] }),
930
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
930
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkHMUGY66Ocjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
931
931
  ]
932
932
  },
933
933
  asset.id
934
934
  );
935
935
  }) }),
936
936
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
937
- _chunkN3AAT6BScjs.Button,
937
+ _chunkHMUGY66Ocjs.Button,
938
938
  {
939
939
  onClick: () => selectedAsset && onContinue(selectedAsset),
940
940
  disabled: !selectedAsset,
@@ -943,7 +943,7 @@ function AssetSelectStep({
943
943
  }
944
944
  )
945
945
  ] }),
946
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
946
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
947
947
  ] });
948
948
  }
949
949
  async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
@@ -951,7 +951,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
951
951
  const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
952
952
  if (!connectedChainId) return [];
953
953
  if (!isDepositChain(connectedChainId)) return [];
954
- const id = _chunkN3AAT6BScjs.getAssetId.call(void 0, {
954
+ const id = _chunkHMUGY66Ocjs.getAssetId.call(void 0, {
955
955
  chainId: connectedChainId,
956
956
  token: _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS
957
957
  });
@@ -1083,6 +1083,16 @@ function AnimatedAmountInput({
1083
1083
 
1084
1084
  // src/components/steps/AmountStep.tsx
1085
1085
 
1086
+ function requiredSourceAmount(quote, decimals) {
1087
+ const raw = _optionalChain([quote, 'optionalAccess', _22 => _22.input, 'optionalAccess', _23 => _23.amount]);
1088
+ if (raw === void 0) return null;
1089
+ try {
1090
+ return _viem.formatUnits.call(void 0, BigInt(raw), decimals);
1091
+ } catch (e5) {
1092
+ return null;
1093
+ }
1094
+ }
1095
+ var PAYMENT_QUOTE_REFRESH_MS = 3e4;
1086
1096
  var PRESETS = [
1087
1097
  { value: 25, label: "25%" },
1088
1098
  { value: 50, label: "50%" },
@@ -1113,6 +1123,8 @@ function AmountStep({
1113
1123
  sourcePriceUnavailable = false,
1114
1124
  appBalanceUsd,
1115
1125
  title = "Wallet deposit",
1126
+ payment,
1127
+ account,
1116
1128
  onContinue,
1117
1129
  onCtaClick,
1118
1130
  service
@@ -1120,11 +1132,12 @@ function AmountStep({
1120
1132
  const [amount, setAmount] = _react.useState.call(void 0, "");
1121
1133
  const [balance, setBalance] = _react.useState.call(void 0, null);
1122
1134
  const [error, setError] = _react.useState.call(void 0, null);
1135
+ const [paymentQuote, setPaymentQuote] = _react.useState.call(void 0, "loading");
1123
1136
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
1124
1137
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
1125
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _22 => _22.trim, 'call', _23 => _23(), 'access', _24 => _24.toLowerCase, 'call', _25 => _25()]) === "max";
1138
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _24 => _24.trim, 'call', _25 => _25(), 'access', _26 => _26.toLowerCase, 'call', _27 => _27()]) === "max";
1126
1139
  const chainMismatch = Boolean(
1127
- _optionalChain([walletClient, 'optionalAccess', _26 => _26.chain, 'optionalAccess', _27 => _27.id]) && walletClient.chain.id !== asset.chainId
1140
+ _optionalChain([walletClient, 'optionalAccess', _28 => _28.chain, 'optionalAccess', _29 => _29.id]) && walletClient.chain.id !== asset.chainId
1128
1141
  );
1129
1142
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
1130
1143
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
@@ -1141,7 +1154,7 @@ function AmountStep({
1141
1154
  if (!Number.isFinite(balanceUnits) || balanceUnits <= 0) return null;
1142
1155
  const price = asset.balanceUsd / balanceUnits;
1143
1156
  return price > 0 ? price : null;
1144
- } catch (e5) {
1157
+ } catch (e6) {
1145
1158
  return null;
1146
1159
  }
1147
1160
  }, [tokenPriceUsdOverride, asset.balanceUsd, asset.balance, asset.decimals]);
@@ -1157,14 +1170,14 @@ function AmountStep({
1157
1170
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1158
1171
  if (!balanceTarget || !publicClient) return;
1159
1172
  try {
1160
- const bal = _chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1173
+ const bal = _chunkHMUGY66Ocjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1161
1174
  address: asset.token,
1162
1175
  abi: _viem.erc20Abi,
1163
1176
  functionName: "balanceOf",
1164
1177
  args: [balanceTarget]
1165
1178
  });
1166
1179
  if (active) setBalance(bal);
1167
- } catch (e6) {
1180
+ } catch (e7) {
1168
1181
  if (active) setBalance(null);
1169
1182
  }
1170
1183
  }
@@ -1178,7 +1191,7 @@ function AmountStep({
1178
1191
  hasAttemptedSwitch.current = true;
1179
1192
  switchChain(asset.chainId).catch((err) => {
1180
1193
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1181
- setError(_chunkN3AAT6BScjs.formatUserError.call(void 0, raw));
1194
+ setError(_chunkHMUGY66Ocjs.formatUserError.call(void 0, raw));
1182
1195
  });
1183
1196
  }
1184
1197
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1191,7 +1204,7 @@ function AmountStep({
1191
1204
  const balanceUnits = Number(_viem.formatUnits.call(void 0, balance, asset.decimals));
1192
1205
  if (!Number.isFinite(balanceUnits)) return null;
1193
1206
  return balanceUnits * tokenPriceUsd;
1194
- } catch (e7) {
1207
+ } catch (e8) {
1195
1208
  return null;
1196
1209
  }
1197
1210
  }, [balance, tokenPriceUsd, asset.decimals]);
@@ -1231,8 +1244,8 @@ function AmountStep({
1231
1244
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1232
1245
  const numeric = Number(raw);
1233
1246
  if (!Number.isFinite(numeric)) return raw;
1234
- return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
1235
- } catch (e8) {
1247
+ return _chunkHMUGY66Ocjs.tokenFormatter.format(numeric);
1248
+ } catch (e9) {
1236
1249
  return "\u2026";
1237
1250
  }
1238
1251
  }, [balance, asset.decimals]);
@@ -1241,31 +1254,76 @@ function AmountStep({
1241
1254
  return Number.isFinite(parsed) && parsed > 0 ? parsed : 0;
1242
1255
  }, [amount]);
1243
1256
  const amountUsd = numericAmount;
1257
+ const lockedAmount = payment && typeof paymentQuote !== "string" ? requiredSourceAmount(paymentQuote, asset.decimals) : null;
1244
1258
  const sourceAmountUnits = _react.useMemo.call(void 0, () => {
1259
+ if (lockedAmount !== null) {
1260
+ try {
1261
+ return _viem.parseUnits.call(void 0, lockedAmount, asset.decimals);
1262
+ } catch (e10) {
1263
+ return null;
1264
+ }
1265
+ }
1245
1266
  if (numericAmount <= 0) return null;
1246
1267
  const raw = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
1247
1268
  try {
1248
1269
  return _viem.parseUnits.call(void 0, raw.toString(), asset.decimals);
1249
- } catch (e9) {
1270
+ } catch (e11) {
1250
1271
  return null;
1251
1272
  }
1252
- }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
1253
- const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _29 => _29.minDepositUsd]), () => ( null));
1254
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _30 => _30.maxDepositUsd]), () => ( null));
1273
+ }, [
1274
+ lockedAmount,
1275
+ numericAmount,
1276
+ isSourceStablecoin,
1277
+ hasPricing,
1278
+ tokenPriceUsd,
1279
+ asset.decimals
1280
+ ]);
1281
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _30 => _30.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _31 => _31.minDepositUsd]), () => ( null));
1282
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _32 => _32.maxDepositUsd]), () => ( null));
1255
1283
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
1256
1284
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
1257
1285
  const exceedsBalance = Boolean(
1258
1286
  sourceAmountUnits !== null && balance !== null && sourceAmountUnits > balance
1259
1287
  );
1260
- const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
1261
- const boundViolation = _chunkN3AAT6BScjs.depositBoundsViolation.call(void 0,
1288
+ const boundsFor = _chunkHMUGY66Ocjs.useDepositBounds.call(void 0, );
1289
+ const boundViolation = _chunkHMUGY66Ocjs.depositBoundsViolation.call(void 0,
1262
1290
  boundsFor(asset.chainId, asset.token),
1263
1291
  sourceAmountUnits
1264
1292
  );
1265
1293
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
1294
+ _react.useEffect.call(void 0, () => {
1295
+ if (!payment || !account) return;
1296
+ let active = true;
1297
+ setPaymentQuote("loading");
1298
+ const load = async () => {
1299
+ const result = await service.getQuotePreview({
1300
+ account,
1301
+ sourceChainId: asset.chainId,
1302
+ sourceToken: asset.token,
1303
+ direction: "exactOut",
1304
+ amountOut: payment.amount
1305
+ });
1306
+ if (!active) return;
1307
+ setPaymentQuote(
1308
+ result && "output" in result && result.input ? result : "unavailable"
1309
+ );
1310
+ };
1311
+ void load();
1312
+ const timer = setInterval(load, PAYMENT_QUOTE_REFRESH_MS);
1313
+ return () => {
1314
+ active = false;
1315
+ clearInterval(timer);
1316
+ };
1317
+ }, [
1318
+ payment,
1319
+ account,
1320
+ asset.chainId,
1321
+ asset.token,
1322
+ service
1323
+ ]);
1266
1324
  const handlePresetClick = (percentage) => {
1267
1325
  if (balance === null) return;
1268
- _optionalChain([onCtaClick, 'optionalCall', _31 => _31(percentage === 100 ? "Max" : `${percentage}%`)]);
1326
+ _optionalChain([onCtaClick, 'optionalCall', _33 => _33(percentage === 100 ? "Max" : `${percentage}%`)]);
1269
1327
  const next = formatAmountFromBalance(
1270
1328
  balance,
1271
1329
  asset.decimals,
@@ -1286,6 +1344,19 @@ function AmountStep({
1286
1344
  };
1287
1345
  const handleContinue = async () => {
1288
1346
  if (chainMismatch || boundViolation) return;
1347
+ if (payment) {
1348
+ if (!lockedAmount) return;
1349
+ if (balance !== null && _viem.parseUnits.call(void 0, lockedAmount, asset.decimals) > balance) {
1350
+ setError("Insufficient balance");
1351
+ return;
1352
+ }
1353
+ setError(null);
1354
+ _optionalChain([onCtaClick, 'optionalCall', _34 => _34("continue")]);
1355
+ const lockedUnits = Number(lockedAmount);
1356
+ const usd = isSourceStablecoin || !hasPricing ? lockedUnits : lockedUnits * (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
1357
+ onContinue(lockedAmount, usd.toString(), _nullishCoalesce(balance, () => ( void 0)));
1358
+ return;
1359
+ }
1289
1360
  let effectiveAmount = numericAmount;
1290
1361
  if (isBelowMin && minDepositUsd !== null) {
1291
1362
  effectiveAmount = minDepositUsd;
@@ -1303,7 +1374,7 @@ function AmountStep({
1303
1374
  let amountInUnits;
1304
1375
  try {
1305
1376
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmount.toString(), asset.decimals);
1306
- } catch (e10) {
1377
+ } catch (e12) {
1307
1378
  setError("Please enter a valid amount");
1308
1379
  return;
1309
1380
  }
@@ -1312,7 +1383,7 @@ function AmountStep({
1312
1383
  return;
1313
1384
  }
1314
1385
  setError(null);
1315
- _optionalChain([onCtaClick, 'optionalCall', _32 => _32("continue")]);
1386
+ _optionalChain([onCtaClick, 'optionalCall', _35 => _35("continue")]);
1316
1387
  onContinue(
1317
1388
  sourceAmount.toString(),
1318
1389
  effectiveAmount.toString(),
@@ -1323,16 +1394,22 @@ function AmountStep({
1323
1394
  const knowsBalance = address !== void 0;
1324
1395
  const needsPricing = !knowsBalance && !isSourceStablecoin;
1325
1396
  const blockedOnPricing = needsPricing && !hasPricing;
1326
- const continueDisabled = chainMismatch || exceedsBalance || boundViolation !== null || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1327
- const chainName = _chunkN3AAT6BScjs.useChainName.call(void 0, );
1397
+ const continueDisabled = payment ? (
1398
+ // No input to validate — only whether the quote resolved and whether the
1399
+ // payer can cover it. Bounds still apply: they are the project's ingest
1400
+ // limits, so an invoice under a chain's minimum genuinely cannot be paid
1401
+ // that way and the payer has to be told, not left on a dead button.
1402
+ chainMismatch || lockedAmount === null || exceedsBalance || boundViolation !== null || knowsBalance && balance === null
1403
+ ) : chainMismatch || exceedsBalance || boundViolation !== null || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1404
+ const chainName = _chunkHMUGY66Ocjs.useChainName.call(void 0, );
1328
1405
  const sourceChainName = chainName(asset.chainId);
1329
1406
  const targetChainName = chainName(targetChainId);
1330
1407
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1331
1408
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1332
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title }),
1409
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}), title }),
1333
1410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1334
1411
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1335
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1412
+ payment ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-fixed", "aria-label": "Amount to pay", children: lockedAmount ? `${_chunkHMUGY66Ocjs.tokenFormatter.format(Number(lockedAmount))} ${asset.symbol}` : "\u2014" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1336
1413
  AnimatedAmountInput,
1337
1414
  {
1338
1415
  value: amount,
@@ -1349,17 +1426,17 @@ function AmountStep({
1349
1426
  " available",
1350
1427
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1351
1428
  " (~",
1352
- _chunkN3AAT6BScjs.currencyFormatter.format(balanceUsd),
1429
+ _chunkHMUGY66Ocjs.currencyFormatter.format(balanceUsd),
1353
1430
  ")"
1354
1431
  ] })
1355
1432
  ] }),
1356
1433
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1357
1434
  "Min. deposit ",
1358
- _chunkN3AAT6BScjs.currencyFormatter.format(minDepositUsd)
1435
+ _chunkHMUGY66Ocjs.currencyFormatter.format(minDepositUsd)
1359
1436
  ] })
1360
1437
  ] })
1361
1438
  ] }),
1362
- knowsBalance && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-presets", children: PRESETS.map((preset) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1439
+ knowsBalance && !payment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-presets", children: PRESETS.map((preset) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1363
1440
  "button",
1364
1441
  {
1365
1442
  type: "button",
@@ -1380,7 +1457,7 @@ function AmountStep({
1380
1457
  " ",
1381
1458
  asset.symbol
1382
1459
  ] }),
1383
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: asset.symbol }) })
1460
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: asset.symbol }) })
1384
1461
  ] })
1385
1462
  ] }),
1386
1463
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1391,21 +1468,29 @@ function AmountStep({
1391
1468
  " ",
1392
1469
  targetSymbol
1393
1470
  ] }),
1394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: targetSymbol }) })
1471
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: targetSymbol }) })
1395
1472
  ] })
1396
1473
  ] }),
1397
1474
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1398
1475
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN3AAT6BScjs.currencyFormatter.format(balanceAfterUsd) })
1476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkHMUGY66Ocjs.currencyFormatter.format(balanceAfterUsd) })
1400
1477
  ] })
1401
1478
  ] }),
1402
- blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: [
1479
+ payment && paymentQuote === "unavailable" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: [
1480
+ "This payment can't be priced from ",
1481
+ asset.symbol,
1482
+ " on",
1483
+ " ",
1484
+ sourceChainName,
1485
+ " right now. Try another asset."
1486
+ ] }),
1487
+ blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: [
1403
1488
  asset.symbol,
1404
1489
  " can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
1405
1490
  ] }),
1406
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
1491
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: error }),
1407
1492
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1408
- _chunkN3AAT6BScjs.Button,
1493
+ _chunkHMUGY66Ocjs.Button,
1409
1494
  {
1410
1495
  onClick: handleContinue,
1411
1496
  fullWidth: true,
@@ -1414,7 +1499,7 @@ function AmountStep({
1414
1499
  }
1415
1500
  )
1416
1501
  ] }),
1417
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
1502
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
1418
1503
  ] });
1419
1504
  }
1420
1505
 
@@ -1441,14 +1526,14 @@ function ReviewDetails({
1441
1526
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1442
1527
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1443
1528
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1444
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: sourceChainIcon }) })
1529
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: sourceChainIcon }) })
1445
1530
  ] })
1446
1531
  ] }),
1447
1532
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1448
1533
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1449
1534
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1450
1535
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1451
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: targetChainIcon }) })
1536
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: targetChainIcon }) })
1452
1537
  ] })
1453
1538
  ] }),
1454
1539
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1463,21 +1548,21 @@ function ReviewDetails({
1463
1548
  " ",
1464
1549
  sendSymbol
1465
1550
  ] }),
1466
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: sendSymbol }) })
1551
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: sendSymbol }) })
1467
1552
  ] })
1468
1553
  ] }),
1469
1554
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1470
1555
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1471
1556
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1472
1557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1473
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: receiveSymbol }) })
1558
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: receiveSymbol }) })
1474
1559
  ] })
1475
1560
  ] }),
1476
1561
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1477
1562
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
1478
1563
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1479
1564
  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 }),
1480
- fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.InfoIcon, {}) }) })
1565
+ fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.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, _chunkHMUGY66Ocjs.InfoIcon, {}) }) })
1481
1566
  ] })
1482
1567
  ] })
1483
1568
  ] });
@@ -1497,7 +1582,7 @@ function toBigInt(value) {
1497
1582
  if (typeof value === "string" && value.length > 0) {
1498
1583
  try {
1499
1584
  return BigInt(value);
1500
- } catch (e11) {
1585
+ } catch (e13) {
1501
1586
  return null;
1502
1587
  }
1503
1588
  }
@@ -1511,45 +1596,45 @@ function validatePermitTypedData(typedData, expected) {
1511
1596
  };
1512
1597
  }
1513
1598
  const { domain, message } = typedData;
1514
- if (!sameAddress(_optionalChain([domain, 'optionalAccess', _33 => _33.verifyingContract]), PERMIT2_ADDRESS)) {
1599
+ if (!sameAddress(_optionalChain([domain, 'optionalAccess', _36 => _36.verifyingContract]), PERMIT2_ADDRESS)) {
1515
1600
  return {
1516
1601
  ok: false,
1517
1602
  reason: `verifyingContract ${String(
1518
- _optionalChain([domain, 'optionalAccess', _34 => _34.verifyingContract])
1603
+ _optionalChain([domain, 'optionalAccess', _37 => _37.verifyingContract])
1519
1604
  )} is not the canonical Permit2`
1520
1605
  };
1521
1606
  }
1522
- const domainChainId = toBigInt(_optionalChain([domain, 'optionalAccess', _35 => _35.chainId]));
1607
+ const domainChainId = toBigInt(_optionalChain([domain, 'optionalAccess', _38 => _38.chainId]));
1523
1608
  if (domainChainId === null || domainChainId !== BigInt(expected.chainId)) {
1524
1609
  return {
1525
1610
  ok: false,
1526
1611
  reason: `domain.chainId ${String(
1527
- _optionalChain([domain, 'optionalAccess', _36 => _36.chainId])
1612
+ _optionalChain([domain, 'optionalAccess', _39 => _39.chainId])
1528
1613
  )} does not match source chain ${expected.chainId}`
1529
1614
  };
1530
1615
  }
1531
- if (!sameAddress(_optionalChain([message, 'optionalAccess', _37 => _37.spender]), expected.spender)) {
1616
+ if (!sameAddress(_optionalChain([message, 'optionalAccess', _40 => _40.spender]), expected.spender)) {
1532
1617
  return {
1533
1618
  ok: false,
1534
- reason: `spender ${String(_optionalChain([message, 'optionalAccess', _38 => _38.spender]))} is not the deposit account`
1619
+ reason: `spender ${String(_optionalChain([message, 'optionalAccess', _41 => _41.spender]))} is not the deposit account`
1535
1620
  };
1536
1621
  }
1537
- const permitted = _optionalChain([message, 'optionalAccess', _39 => _39.permitted]);
1538
- if (!sameAddress(_optionalChain([permitted, 'optionalAccess', _40 => _40.token]), expected.token)) {
1622
+ const permitted = _optionalChain([message, 'optionalAccess', _42 => _42.permitted]);
1623
+ if (!sameAddress(_optionalChain([permitted, 'optionalAccess', _43 => _43.token]), expected.token)) {
1539
1624
  return {
1540
1625
  ok: false,
1541
1626
  reason: `permitted.token ${String(
1542
- _optionalChain([permitted, 'optionalAccess', _41 => _41.token])
1627
+ _optionalChain([permitted, 'optionalAccess', _44 => _44.token])
1543
1628
  )} is not the confirmed token`
1544
1629
  };
1545
1630
  }
1546
- const permittedAmount = toBigInt(_optionalChain([permitted, 'optionalAccess', _42 => _42.amount]));
1631
+ const permittedAmount = toBigInt(_optionalChain([permitted, 'optionalAccess', _45 => _45.amount]));
1547
1632
  const expectedAmount = toBigInt(expected.amount);
1548
1633
  if (permittedAmount === null || expectedAmount === null || permittedAmount !== expectedAmount) {
1549
1634
  return {
1550
1635
  ok: false,
1551
1636
  reason: `permitted.amount ${String(
1552
- _optionalChain([permitted, 'optionalAccess', _43 => _43.amount])
1637
+ _optionalChain([permitted, 'optionalAccess', _46 => _46.amount])
1553
1638
  )} does not match the confirmed amount ${expected.amount}`
1554
1639
  };
1555
1640
  }
@@ -1563,24 +1648,24 @@ function sameInteger(a, b) {
1563
1648
  function validatePreparedAuthorization(authorization, expected) {
1564
1649
  const { typedData } = authorization;
1565
1650
  const { domain, message } = typedData;
1566
- const domainChainId = toBigInt(_optionalChain([domain, 'optionalAccess', _44 => _44.chainId]));
1651
+ const domainChainId = toBigInt(_optionalChain([domain, 'optionalAccess', _47 => _47.chainId]));
1567
1652
  if (domainChainId === null || domainChainId !== BigInt(expected.chainId)) {
1568
1653
  return {
1569
1654
  ok: false,
1570
1655
  reason: `domain.chainId ${String(
1571
- _optionalChain([domain, 'optionalAccess', _45 => _45.chainId])
1656
+ _optionalChain([domain, 'optionalAccess', _48 => _48.chainId])
1572
1657
  )} does not match source chain ${expected.chainId}`
1573
1658
  };
1574
1659
  }
1575
1660
  if (authorization.kind === "permit2") {
1576
1661
  const verdict = validatePermitTypedData(typedData, expected);
1577
1662
  if (!verdict.ok) return verdict;
1578
- if (!sameInteger(_optionalChain([message, 'optionalAccess', _46 => _46.nonce]), authorization.nonce) || !sameInteger(_optionalChain([message, 'optionalAccess', _47 => _47.deadline]), authorization.deadline)) {
1663
+ if (!sameInteger(_optionalChain([message, 'optionalAccess', _49 => _49.nonce]), authorization.nonce) || !sameInteger(_optionalChain([message, 'optionalAccess', _50 => _50.deadline]), authorization.deadline)) {
1579
1664
  return { ok: false, reason: "Permit2 nonce or deadline mismatch" };
1580
1665
  }
1581
1666
  return { ok: true };
1582
1667
  }
1583
- if (!sameAddress(_optionalChain([domain, 'optionalAccess', _48 => _48.verifyingContract]), expected.token)) {
1668
+ if (!sameAddress(_optionalChain([domain, 'optionalAccess', _51 => _51.verifyingContract]), expected.token)) {
1584
1669
  return {
1585
1670
  ok: false,
1586
1671
  reason: "token-native authorization verifies against the wrong token"
@@ -1590,10 +1675,10 @@ function validatePreparedAuthorization(authorization, expected) {
1590
1675
  if (typedData.primaryType !== "ReceiveWithAuthorization") {
1591
1676
  return { ok: false, reason: "unexpected ERC-3009 primaryType" };
1592
1677
  }
1593
- if (!sameAddress(_optionalChain([message, 'optionalAccess', _49 => _49.from]), expected.owner) || !sameAddress(_optionalChain([message, 'optionalAccess', _50 => _50.to]), expected.spender) || !sameInteger(_optionalChain([message, 'optionalAccess', _51 => _51.value]), expected.amount)) {
1678
+ if (!sameAddress(_optionalChain([message, 'optionalAccess', _52 => _52.from]), expected.owner) || !sameAddress(_optionalChain([message, 'optionalAccess', _53 => _53.to]), expected.spender) || !sameInteger(_optionalChain([message, 'optionalAccess', _54 => _54.value]), expected.amount)) {
1594
1679
  return { ok: false, reason: "ERC-3009 transfer terms do not match" };
1595
1680
  }
1596
- if (typeof _optionalChain([message, 'optionalAccess', _52 => _52.nonce]) !== "string" || message.nonce.toLowerCase() !== authorization.nonce.toLowerCase() || !sameInteger(_optionalChain([message, 'optionalAccess', _53 => _53.validAfter]), authorization.validAfter) || !sameInteger(_optionalChain([message, 'optionalAccess', _54 => _54.validBefore]), authorization.validBefore)) {
1681
+ if (typeof _optionalChain([message, 'optionalAccess', _55 => _55.nonce]) !== "string" || message.nonce.toLowerCase() !== authorization.nonce.toLowerCase() || !sameInteger(_optionalChain([message, 'optionalAccess', _56 => _56.validAfter]), authorization.validAfter) || !sameInteger(_optionalChain([message, 'optionalAccess', _57 => _57.validBefore]), authorization.validBefore)) {
1597
1682
  return {
1598
1683
  ok: false,
1599
1684
  reason: "ERC-3009 nonce or validity window mismatch"
@@ -1604,10 +1689,10 @@ function validatePreparedAuthorization(authorization, expected) {
1604
1689
  if (typedData.primaryType !== "Permit") {
1605
1690
  return { ok: false, reason: "unexpected ERC-2612 primaryType" };
1606
1691
  }
1607
- if (!sameAddress(_optionalChain([message, 'optionalAccess', _55 => _55.owner]), expected.owner) || !sameAddress(_optionalChain([message, 'optionalAccess', _56 => _56.spender]), expected.spender) || !sameInteger(_optionalChain([message, 'optionalAccess', _57 => _57.value]), expected.amount)) {
1692
+ if (!sameAddress(_optionalChain([message, 'optionalAccess', _58 => _58.owner]), expected.owner) || !sameAddress(_optionalChain([message, 'optionalAccess', _59 => _59.spender]), expected.spender) || !sameInteger(_optionalChain([message, 'optionalAccess', _60 => _60.value]), expected.amount)) {
1608
1693
  return { ok: false, reason: "ERC-2612 permit terms do not match" };
1609
1694
  }
1610
- if (!sameInteger(_optionalChain([message, 'optionalAccess', _58 => _58.nonce]), authorization.nonce) || !sameInteger(_optionalChain([message, 'optionalAccess', _59 => _59.deadline]), authorization.deadline)) {
1695
+ if (!sameInteger(_optionalChain([message, 'optionalAccess', _61 => _61.nonce]), authorization.nonce) || !sameInteger(_optionalChain([message, 'optionalAccess', _62 => _62.deadline]), authorization.deadline)) {
1611
1696
  return { ok: false, reason: "ERC-2612 nonce or deadline mismatch" };
1612
1697
  }
1613
1698
  return { ok: true };
@@ -1656,7 +1741,9 @@ function ConfirmStep({
1656
1741
  onError,
1657
1742
  onDepositSubmitted,
1658
1743
  onSubmittingChange,
1659
- executeTransfer
1744
+ executeTransfer,
1745
+ title = "Review deposit",
1746
+ routeThroughAccount = false
1660
1747
  }) {
1661
1748
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
1662
1749
  const [error, setError] = _react.useState.call(void 0, null);
@@ -1677,11 +1764,11 @@ function ConfirmStep({
1677
1764
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
1678
1765
  onSubmittingChangeRef.current = onSubmittingChange;
1679
1766
  _react.useEffect.call(void 0, () => {
1680
- _optionalChain([onSubmittingChangeRef, 'access', _60 => _60.current, 'optionalCall', _61 => _61(isSubmitting)]);
1681
- return () => _optionalChain([onSubmittingChangeRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63(false)]);
1767
+ _optionalChain([onSubmittingChangeRef, 'access', _63 => _63.current, 'optionalCall', _64 => _64(isSubmitting)]);
1768
+ return () => _optionalChain([onSubmittingChangeRef, 'access', _65 => _65.current, 'optionalCall', _66 => _66(false)]);
1682
1769
  }, [isSubmitting]);
1683
1770
  const chainMismatch = Boolean(
1684
- _optionalChain([walletClient, 'optionalAccess', _64 => _64.chain, 'optionalAccess', _65 => _65.id]) && walletClient.chain.id !== asset.chainId
1771
+ _optionalChain([walletClient, 'optionalAccess', _67 => _67.chain, 'optionalAccess', _68 => _68.id]) && walletClient.chain.id !== asset.chainId
1685
1772
  );
1686
1773
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
1687
1774
  const quoteSource = isDappImportAsset(asset) ? { chainId: asset.depositChainId, token: asset.depositToken } : { chainId: asset.chainId, token: asset.token };
@@ -1696,24 +1783,24 @@ function ConfirmStep({
1696
1783
  targetToken,
1697
1784
  recipient
1698
1785
  ]);
1699
- const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _66 => _66.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1786
+ const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _69 => _69.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1700
1787
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
1701
1788
  const targetSymbol = sameRoute ? asset.symbol : _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1702
1789
  const sourceChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId);
1703
1790
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
1704
1791
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
1705
1792
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
1706
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1707
- const mustHaveQuote = !appFeesResolved || _chunkN3AAT6BScjs.resolveAppFeeBps.call(void 0,
1793
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkHMUGY66Ocjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1794
+ const mustHaveQuote = !appFeesResolved || _chunkHMUGY66Ocjs.resolveAppFeeBps.call(void 0,
1708
1795
  appFees,
1709
1796
  `eip155:${quoteSource.chainId}`,
1710
1797
  quoteSource.token
1711
1798
  ) > 0;
1712
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkN3AAT6BScjs.quoteFeeRow.call(void 0,
1713
- _optionalChain([quote, 'optionalAccess', _67 => _67.fees])
1799
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunkHMUGY66Ocjs.quoteFeeRow.call(void 0,
1800
+ _optionalChain([quote, 'optionalAccess', _70 => _70.fees])
1714
1801
  );
1715
- const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1716
- const permitEligible = enableGaslessDeposit && !_chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1802
+ const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer && !routeThroughAccount;
1803
+ const permitEligible = enableGaslessDeposit && !_chunkHMUGY66Ocjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1717
1804
  const permitRequestKey = JSON.stringify([
1718
1805
  smartAccount.toLowerCase(),
1719
1806
  asset.chainId,
@@ -1722,17 +1809,17 @@ function ConfirmStep({
1722
1809
  amount,
1723
1810
  address.toLowerCase()
1724
1811
  ]);
1725
- const permit = permitEligible && !permitDisabled && _optionalChain([permitResult, 'optionalAccess', _68 => _68.requestKey]) === permitRequestKey ? permitResult.prepared : null;
1726
- const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
1727
- const activeRefusal = _nullishCoalesce((_optionalChain([previewRefusal, 'optionalAccess', _69 => _69.requestKey]) === quoteRequestKey ? previewRefusal.refusal : null), () => ( (_optionalChain([permitRefusal, 'optionalAccess', _70 => _70.requestKey]) === permitRequestKey ? permitRefusal.refusal : null)));
1728
- const blockedReason = activeRefusal ? _chunkN3AAT6BScjs.describePolicyRefusal.call(void 0,
1812
+ const permit = permitEligible && !permitDisabled && _optionalChain([permitResult, 'optionalAccess', _71 => _71.requestKey]) === permitRequestKey ? permitResult.prepared : null;
1813
+ const boundsFor = _chunkHMUGY66Ocjs.useDepositBounds.call(void 0, );
1814
+ const activeRefusal = _nullishCoalesce((_optionalChain([previewRefusal, 'optionalAccess', _72 => _72.requestKey]) === quoteRequestKey ? previewRefusal.refusal : null), () => ( (_optionalChain([permitRefusal, 'optionalAccess', _73 => _73.requestKey]) === permitRequestKey ? permitRefusal.refusal : null)));
1815
+ const blockedReason = activeRefusal ? _chunkHMUGY66Ocjs.describePolicyRefusal.call(void 0,
1729
1816
  activeRefusal,
1730
1817
  boundsFor(quoteSource.chainId, quoteSource.token)
1731
1818
  ) : null;
1732
1819
  const requestsAmount = (() => {
1733
1820
  try {
1734
1821
  return _viem.parseUnits.call(void 0, amount, asset.decimals) > 0n;
1735
- } catch (e12) {
1822
+ } catch (e14) {
1736
1823
  return false;
1737
1824
  }
1738
1825
  })();
@@ -1741,33 +1828,33 @@ function ConfirmStep({
1741
1828
  const receiveDisplay = (() => {
1742
1829
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1743
1830
  if (quote) {
1744
- const quoted = _chunkN3AAT6BScjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1831
+ const quoted = _chunkHMUGY66Ocjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1745
1832
  if (quoted !== void 0) return quoted;
1746
1833
  }
1747
1834
  const usdValue = Number(targetAmount);
1748
1835
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1749
- const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
1836
+ const estimate = _chunkHMUGY66Ocjs.formatReceiveEstimate.call(void 0, {
1750
1837
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1751
1838
  sourceSymbol: asset.symbol,
1752
1839
  targetSymbol,
1753
1840
  sourceAmountUsd,
1754
- sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1841
+ sourceTrusted: _chunkHMUGY66Ocjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1755
1842
  // The target is the curated deposit destination, so a stablecoin target
1756
1843
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1757
1844
  // target prices). Not applied to the source — that can be a held token.
1758
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1845
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHMUGY66Ocjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1759
1846
  });
1760
1847
  if (estimate !== void 0) return estimate;
1761
1848
  return targetSymbol;
1762
1849
  })();
1763
- const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _71 => _71.timing, 'optionalAccess', _72 => _72.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1764
- const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkN3AAT6BScjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1850
+ const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _74 => _74.timing, 'optionalAccess', _75 => _75.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1851
+ const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkHMUGY66Ocjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1765
1852
  _react.useEffect.call(void 0, () => {
1766
1853
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1767
1854
  hasAttemptedSwitch.current = true;
1768
1855
  switchChain(asset.chainId).catch((err) => {
1769
1856
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1770
- setError(_chunkN3AAT6BScjs.formatUserError.call(void 0, raw));
1857
+ setError(_chunkHMUGY66Ocjs.formatUserError.call(void 0, raw));
1771
1858
  });
1772
1859
  }
1773
1860
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1783,7 +1870,7 @@ function ConfirmStep({
1783
1870
  let units;
1784
1871
  try {
1785
1872
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
1786
- } catch (e13) {
1873
+ } catch (e15) {
1787
1874
  return;
1788
1875
  }
1789
1876
  if (units <= 0n) return;
@@ -1795,7 +1882,7 @@ function ConfirmStep({
1795
1882
  }).then((result) => {
1796
1883
  if (cancelled) return;
1797
1884
  setPreviewSettledKey(quoteRequestKey);
1798
- if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, result)) {
1885
+ if (_chunkHMUGY66Ocjs.isDepositPolicyRefusal.call(void 0, result)) {
1799
1886
  setQuoteResult(null);
1800
1887
  setPreviewRefusal({
1801
1888
  requestKey: quoteRequestKey,
@@ -1831,7 +1918,7 @@ function ConfirmStep({
1831
1918
  let units;
1832
1919
  try {
1833
1920
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
1834
- } catch (e14) {
1921
+ } catch (e16) {
1835
1922
  return;
1836
1923
  }
1837
1924
  if (units <= 0n) return;
@@ -1845,7 +1932,7 @@ function ConfirmStep({
1845
1932
  if (cancelled) return;
1846
1933
  setPermitSettledKey(permitRequestKey);
1847
1934
  if (prepared === null) return;
1848
- if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, prepared)) {
1935
+ if (_chunkHMUGY66Ocjs.isDepositPolicyRefusal.call(void 0, prepared)) {
1849
1936
  setPermitRefusal({
1850
1937
  requestKey: permitRequestKey,
1851
1938
  refusal: prepared.policyRefusal
@@ -1910,7 +1997,7 @@ function ConfirmStep({
1910
1997
  let amountUnits;
1911
1998
  try {
1912
1999
  amountUnits = _viem.parseUnits.call(void 0, amount, asset.decimals);
1913
- } catch (e15) {
2000
+ } catch (e17) {
1914
2001
  setError("Please enter a valid amount");
1915
2002
  return;
1916
2003
  }
@@ -1980,11 +2067,11 @@ function ConfirmStep({
1980
2067
  );
1981
2068
  } catch (err) {
1982
2069
  const raw = err instanceof Error ? err.message : "Signing failed";
1983
- const safeToTransfer = !submitStarted || err instanceof _chunkN3AAT6BScjs.PermitDepositSubmitError && err.safeToTransfer;
2070
+ const safeToTransfer = !submitStarted || err instanceof _chunkHMUGY66Ocjs.PermitDepositSubmitError && err.safeToTransfer;
1984
2071
  if (safeToTransfer) setPermitDisabled(true);
1985
- const message = safeToTransfer ? _chunkN3AAT6BScjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
2072
+ const message = safeToTransfer ? _chunkHMUGY66Ocjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1986
2073
  setError(message);
1987
- _optionalChain([onError, 'optionalCall', _73 => _73(message, "PERMIT_ERROR", raw)]);
2074
+ _optionalChain([onError, 'optionalCall', _76 => _76(message, "PERMIT_ERROR", raw)]);
1988
2075
  } finally {
1989
2076
  setIsSubmitting(false);
1990
2077
  }
@@ -2003,7 +2090,7 @@ function ConfirmStep({
2003
2090
  const result = await executeTransfer(amountUnits);
2004
2091
  hash = result.txHash;
2005
2092
  resolvedSourceToken = result.sourceToken;
2006
- } else if (_chunkN3AAT6BScjs.isNativeAsset.call(void 0, asset)) {
2093
+ } else if (_chunkHMUGY66Ocjs.isNativeAsset.call(void 0, asset)) {
2007
2094
  hash = await walletClient.sendTransaction({
2008
2095
  account,
2009
2096
  chain,
@@ -2020,7 +2107,7 @@ function ConfirmStep({
2020
2107
  args: [transferTo, amountUnits]
2021
2108
  });
2022
2109
  }
2023
- _optionalChain([onDepositSubmitted, 'optionalCall', _74 => _74(hash, asset.chainId, amountUnits.toString())]);
2110
+ _optionalChain([onDepositSubmitted, 'optionalCall', _77 => _77(hash, asset.chainId, amountUnits.toString())]);
2024
2111
  onConfirm(
2025
2112
  hash,
2026
2113
  asset.chainId,
@@ -2034,18 +2121,18 @@ function ConfirmStep({
2034
2121
  );
2035
2122
  } catch (err) {
2036
2123
  const raw = err instanceof Error ? err.message : "Transfer failed";
2037
- const uncertain = _chunkN3AAT6BScjs.isSubmissionUncertain.call(void 0, err);
2038
- const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkN3AAT6BScjs.formatUserError.call(void 0, raw);
2124
+ const uncertain = _chunkHMUGY66Ocjs.isSubmissionUncertain.call(void 0, err);
2125
+ const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkHMUGY66Ocjs.formatUserError.call(void 0, raw);
2039
2126
  if (uncertain) setSubmissionUncertain(true);
2040
2127
  setError(message);
2041
- _optionalChain([onError, 'optionalCall', _75 => _75(message, "TRANSFER_ERROR", raw)]);
2128
+ _optionalChain([onError, 'optionalCall', _78 => _78(message, "TRANSFER_ERROR", raw)]);
2042
2129
  } finally {
2043
2130
  setIsSubmitting(false);
2044
2131
  }
2045
2132
  };
2046
2133
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2047
2134
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2048
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Review deposit" }),
2135
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}), title }),
2049
2136
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2050
2137
  ReviewDetails,
2051
2138
  {
@@ -2061,9 +2148,9 @@ function ConfirmStep({
2061
2148
  fee: { display: feeDisplay, struck: feesFullySponsored }
2062
2149
  }
2063
2150
  ),
2064
- (_nullishCoalesce(error, () => ( blockedReason))) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: _nullishCoalesce(error, () => ( blockedReason)) }),
2151
+ (_nullishCoalesce(error, () => ( blockedReason))) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: _nullishCoalesce(error, () => ( blockedReason)) }),
2065
2152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2066
- _chunkN3AAT6BScjs.Button,
2153
+ _chunkHMUGY66Ocjs.Button,
2067
2154
  {
2068
2155
  onClick: handleConfirm,
2069
2156
  loading: isSubmitting,
@@ -2092,7 +2179,7 @@ function ConfirmStep({
2092
2179
  ] }),
2093
2180
  !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." })
2094
2181
  ] }),
2095
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2182
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
2096
2183
  ] });
2097
2184
  }
2098
2185
 
@@ -2114,13 +2201,13 @@ function QrReviewStep({
2114
2201
  const [quote, setQuote] = _react.useState.call(void 0, { state: "loading", value: null });
2115
2202
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
2116
2203
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
2117
- const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
2204
+ const boundsFor = _chunkHMUGY66Ocjs.useDepositBounds.call(void 0, );
2118
2205
  _react.useEffect.call(void 0, () => {
2119
2206
  let cancelled = false;
2120
2207
  let units;
2121
2208
  try {
2122
2209
  units = _viem.parseUnits.call(void 0, amount, asset.decimals);
2123
- } catch (e16) {
2210
+ } catch (e18) {
2124
2211
  setQuote({ state: "unavailable", value: null });
2125
2212
  return;
2126
2213
  }
@@ -2136,7 +2223,7 @@ function QrReviewStep({
2136
2223
  amount: units.toString()
2137
2224
  }).then((result) => {
2138
2225
  if (cancelled) return;
2139
- if (_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, result)) {
2226
+ if (_chunkHMUGY66Ocjs.isDepositPolicyRefusal.call(void 0, result)) {
2140
2227
  setQuote({
2141
2228
  state: "refused",
2142
2229
  value: null,
@@ -2154,30 +2241,30 @@ function QrReviewStep({
2154
2241
  cancelled = true;
2155
2242
  };
2156
2243
  }, [service, smartAccount, asset, amount]);
2157
- const formattedSendAmount = _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2244
+ const formattedSendAmount = _nullishCoalesce(_chunkHMUGY66Ocjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2158
2245
  const receiveDisplay = (() => {
2159
2246
  if (quote.value) {
2160
- const quoted = _chunkN3AAT6BScjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2247
+ const quoted = _chunkHMUGY66Ocjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2161
2248
  if (quoted !== void 0) return quoted;
2162
2249
  }
2163
2250
  const usdValue = Number(targetAmount);
2164
- const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
2251
+ const estimate = _chunkHMUGY66Ocjs.formatReceiveEstimate.call(void 0, {
2165
2252
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
2166
2253
  sourceSymbol: asset.symbol,
2167
2254
  targetSymbol,
2168
2255
  sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
2169
- sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2170
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2256
+ sourceTrusted: _chunkHMUGY66Ocjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2257
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHMUGY66Ocjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2171
2258
  });
2172
2259
  return _nullishCoalesce(estimate, () => ( targetSymbol));
2173
2260
  })();
2174
- const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _76 => _76.value, 'optionalAccess', _77 => _77.timing, 'optionalAccess', _78 => _78.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2175
- const estimatedTime = expectedSeconds !== void 0 ? _chunkN3AAT6BScjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2176
- const { display: quotedFee, struck } = _chunkN3AAT6BScjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _79 => _79.value, 'optionalAccess', _80 => _80.fees]));
2261
+ const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _79 => _79.value, 'optionalAccess', _80 => _80.timing, 'optionalAccess', _81 => _81.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2262
+ const estimatedTime = expectedSeconds !== void 0 ? _chunkHMUGY66Ocjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2263
+ const { display: quotedFee, struck } = _chunkHMUGY66Ocjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _82 => _82.value, 'optionalAccess', _83 => _83.fees]));
2177
2264
  const feeDisplay = quote.state === "unavailable" || quote.state === "refused" ? "\u2014" : quotedFee;
2178
2265
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2179
2266
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2180
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2267
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2181
2268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2182
2269
  ReviewDetails,
2183
2270
  {
@@ -2193,13 +2280,13 @@ function QrReviewStep({
2193
2280
  fee: { display: feeDisplay, struck }
2194
2281
  }
2195
2282
  ),
2196
- quote.state === "refused" && quote.refusal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: _chunkN3AAT6BScjs.describePolicyRefusal.call(void 0,
2283
+ quote.state === "refused" && quote.refusal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: _chunkHMUGY66Ocjs.describePolicyRefusal.call(void 0,
2197
2284
  quote.refusal,
2198
2285
  boundsFor(asset.chainId, asset.token)
2199
2286
  ) }),
2200
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2287
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2201
2288
  ] }),
2202
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2289
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
2203
2290
  ] });
2204
2291
  }
2205
2292
  QrReviewStep.displayName = "QrReviewStep";
@@ -2215,6 +2302,7 @@ QrReviewStep.displayName = "QrReviewStep";
2215
2302
 
2216
2303
 
2217
2304
 
2305
+
2218
2306
  // src/components/steps/DepositAddressSkeleton.tsx
2219
2307
 
2220
2308
  var BASE_CHAIN_ID = 8453;
@@ -2230,20 +2318,20 @@ function DepositAddressSkeleton({
2230
2318
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2231
2319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2232
2320
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2233
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2321
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2234
2322
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2235
2323
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2236
2324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
2237
2325
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2238
2326
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2239
- _chunkN3AAT6BScjs.CdnIcon,
2327
+ _chunkHMUGY66Ocjs.CdnIcon,
2240
2328
  {
2241
2329
  src: chainIcon,
2242
2330
  className: "rs-deposit-address-dropdown-icon"
2243
2331
  }
2244
2332
  ),
2245
2333
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2246
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2334
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2247
2335
  ] })
2248
2336
  ] }),
2249
2337
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2251,9 +2339,9 @@ function DepositAddressSkeleton({
2251
2339
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2252
2340
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2253
2341
  "Min.$",
2254
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _81 => _81.minDepositUsd]), () => ( 0.1))).toFixed(2),
2255
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2256
- _chunkN3AAT6BScjs.InfoIcon,
2342
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _84 => _84.minDepositUsd]), () => ( 0.1))).toFixed(2),
2343
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2344
+ _chunkHMUGY66Ocjs.InfoIcon,
2257
2345
  {
2258
2346
  className: "rs-deposit-address-min-icon",
2259
2347
  "aria-hidden": "true"
@@ -2263,14 +2351,14 @@ function DepositAddressSkeleton({
2263
2351
  ] }),
2264
2352
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2265
2353
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2266
- _chunkN3AAT6BScjs.TokenIcon,
2354
+ _chunkHMUGY66Ocjs.TokenIcon,
2267
2355
  {
2268
2356
  symbol: defaultToken,
2269
2357
  className: "rs-deposit-address-dropdown-icon"
2270
2358
  }
2271
2359
  ),
2272
2360
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2361
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2274
2362
  ] })
2275
2363
  ] })
2276
2364
  ] }),
@@ -2285,7 +2373,7 @@ function DepositAddressSkeleton({
2285
2373
  ] }),
2286
2374
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
2287
2375
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
2288
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CopyIcon, {}),
2376
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CopyIcon, {}),
2289
2377
  "Copy address"
2290
2378
  ] }),
2291
2379
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2302,7 +2390,7 @@ function DepositAddressSkeleton({
2302
2390
  }
2303
2391
  )
2304
2392
  ] }),
2305
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
2393
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
2306
2394
  ] });
2307
2395
  }
2308
2396
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2314,9 +2402,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
2314
2402
  var MAX_POLL_INTERVAL = 3e4;
2315
2403
  var BACKOFF_MULTIPLIER = 1.5;
2316
2404
  function isEventForTx(event, txHash) {
2317
- const eventTxHash = _chunkN3AAT6BScjs.getEventTxHash.call(void 0, event);
2405
+ const eventTxHash = _chunkHMUGY66Ocjs.getEventTxHash.call(void 0, event);
2318
2406
  if (!eventTxHash) return false;
2319
- return _chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2407
+ return _chunkHMUGY66Ocjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2320
2408
  }
2321
2409
  function truncateHash(hash) {
2322
2410
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -2346,7 +2434,7 @@ function formatTimestamp(ms) {
2346
2434
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
2347
2435
  }
2348
2436
  function formatBridgeFailedMessage(event) {
2349
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _82 => _82.data]), () => ( {}));
2437
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _85 => _85.data]), () => ( {}));
2350
2438
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
2351
2439
  if (backendMessage.length > 0) {
2352
2440
  const lower = backendMessage.toLowerCase();
@@ -2366,7 +2454,7 @@ function formatBridgeFailedMessage(event) {
2366
2454
  }
2367
2455
  return "Bridge failed";
2368
2456
  }
2369
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2457
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2370
2458
  function DepositNotification({
2371
2459
  deposit,
2372
2460
  smartAccount,
@@ -2400,7 +2488,7 @@ function DepositNotification({
2400
2488
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
2401
2489
  const pollTimeoutRef = _react.useRef.call(void 0, null);
2402
2490
  const completedRef = _react.useRef.call(void 0, false);
2403
- const depositContextRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, {
2491
+ const depositContextRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, {
2404
2492
  amount,
2405
2493
  sourceChain,
2406
2494
  sourceToken: token,
@@ -2408,23 +2496,24 @@ function DepositNotification({
2408
2496
  targetChain,
2409
2497
  targetToken
2410
2498
  });
2411
- const onCompleteRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onComplete);
2412
- const onFailedRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onFailed);
2499
+ const onCompleteRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onComplete);
2500
+ const onFailedRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onFailed);
2413
2501
  const handleComplete = _react.useCallback.call(void 0,
2414
- (destTxHash) => {
2502
+ (destTxHash, destAmount) => {
2415
2503
  if (completedRef.current) return;
2416
2504
  completedRef.current = true;
2417
2505
  setDestinationTxHash(_nullishCoalesce(destTxHash, () => ( null)));
2418
2506
  setCompletedAt(Date.now());
2419
2507
  setStatus("complete");
2420
2508
  const context = depositContextRef.current;
2421
- _optionalChain([onCompleteRef, 'access', _83 => _83.current, 'optionalCall', _84 => _84(txHash, destTxHash, {
2509
+ _optionalChain([onCompleteRef, 'access', _86 => _86.current, 'optionalCall', _87 => _87(txHash, destTxHash, {
2422
2510
  amount: context.amount,
2423
2511
  sourceChain: context.sourceChain,
2424
2512
  sourceToken: context.sourceToken,
2425
2513
  sourceDecimals: context.sourceDecimals,
2426
2514
  targetChain: context.targetChain,
2427
- targetToken: context.targetToken
2515
+ targetToken: context.targetToken,
2516
+ destinationAmount: destAmount
2428
2517
  })]);
2429
2518
  },
2430
2519
  [depositContextRef, onCompleteRef, txHash]
@@ -2434,7 +2523,7 @@ function DepositNotification({
2434
2523
  if (completedRef.current) return;
2435
2524
  completedRef.current = true;
2436
2525
  setStatus("failed");
2437
- _optionalChain([onFailedRef, 'access', _85 => _85.current, 'optionalCall', _86 => _86(txHash, error)]);
2526
+ _optionalChain([onFailedRef, 'access', _88 => _88.current, 'optionalCall', _89 => _89(txHash, error)]);
2438
2527
  },
2439
2528
  [onFailedRef, txHash]
2440
2529
  );
@@ -2452,22 +2541,25 @@ function DepositNotification({
2452
2541
  if (!isMounted) return;
2453
2542
  const lastEvent = data.lastEvent;
2454
2543
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
2455
- if (_optionalChain([eventForTx, 'optionalAccess', _87 => _87.type]) === "bridge-complete") {
2456
- const destTx = _optionalChain([eventForTx, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.destination, 'optionalAccess', _90 => _90.transactionHash]);
2457
- handleComplete(destTx);
2544
+ if (_optionalChain([eventForTx, 'optionalAccess', _90 => _90.type]) === "bridge-complete") {
2545
+ const destination = _optionalChain([eventForTx, 'access', _91 => _91.data, 'optionalAccess', _92 => _92.destination]);
2546
+ handleComplete(
2547
+ _optionalChain([destination, 'optionalAccess', _93 => _93.transactionHash]),
2548
+ typeof _optionalChain([destination, 'optionalAccess', _94 => _94.amount]) === "string" ? destination.amount : void 0
2549
+ );
2458
2550
  return;
2459
2551
  }
2460
- if (_optionalChain([eventForTx, 'optionalAccess', _91 => _91.type]) === "bridge-failed") {
2552
+ if (_optionalChain([eventForTx, 'optionalAccess', _95 => _95.type]) === "bridge-failed") {
2461
2553
  handleFailed(formatBridgeFailedMessage(eventForTx));
2462
2554
  return;
2463
2555
  }
2464
- if (_optionalChain([eventForTx, 'optionalAccess', _92 => _92.type]) === "error") {
2465
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _93 => _93.data, 'optionalAccess', _94 => _94.message]), () => ( "Unknown error"));
2556
+ if (_optionalChain([eventForTx, 'optionalAccess', _96 => _96.type]) === "error") {
2557
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _97 => _97.data, 'optionalAccess', _98 => _98.message]), () => ( "Unknown error"));
2466
2558
  handleFailed(errorMessage);
2467
2559
  return;
2468
2560
  }
2469
2561
  scheduleNextPoll();
2470
- } catch (e17) {
2562
+ } catch (e19) {
2471
2563
  scheduleNextPoll();
2472
2564
  }
2473
2565
  }
@@ -2500,12 +2592,12 @@ function DepositNotification({
2500
2592
  status,
2501
2593
  txHash
2502
2594
  ]);
2503
- const explorerTxUrl = _chunkN3AAT6BScjs.useExplorerTxUrl.call(void 0, );
2595
+ const explorerTxUrl = _chunkHMUGY66Ocjs.useExplorerTxUrl.call(void 0, );
2504
2596
  const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
2505
2597
  const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2506
2598
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
2507
2599
  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.";
2508
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2600
+ 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, _chunkHMUGY66Ocjs.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, _chunkHMUGY66Ocjs.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,
2509
2601
  "svg",
2510
2602
  {
2511
2603
  className: "rs-deposit-notification-spinner",
@@ -2555,7 +2647,7 @@ function DepositNotification({
2555
2647
  className: "rs-deposit-notification-close",
2556
2648
  onClick: () => onDismiss(deposit.id),
2557
2649
  "aria-label": "Dismiss",
2558
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {})
2650
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CloseIcon, {})
2559
2651
  }
2560
2652
  )
2561
2653
  ] }),
@@ -2571,7 +2663,7 @@ function DepositNotification({
2571
2663
  "aria-expanded": expanded,
2572
2664
  children: [
2573
2665
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
2574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2666
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2575
2667
  ]
2576
2668
  }
2577
2669
  ),
@@ -2622,6 +2714,15 @@ function DepositNotification({
2622
2714
  );
2623
2715
  }
2624
2716
 
2717
+ // src/core/payment-uri.ts
2718
+ function paymentRequestUri(input) {
2719
+ const { to, chainId, token, amount } = input;
2720
+ if (token.toLowerCase() === _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS.toLowerCase() || token.toLowerCase() === "0x0") {
2721
+ return `ethereum:${to}@${chainId}?value=${amount}`;
2722
+ }
2723
+ return `ethereum:${token}@${chainId}/transfer?address=${to}&uint256=${amount}`;
2724
+ }
2725
+
2625
2726
  // src/core/deposit-source-identity.ts
2626
2727
  var SOLANA_NATIVE_MINT = "11111111111111111111111111111111";
2627
2728
  var EVM_ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
@@ -2631,18 +2732,19 @@ function sourceChainToCaip2(chain) {
2631
2732
  return _chunkOY5N3E6Lcjs.toEvmCaip2.call(void 0, chain);
2632
2733
  }
2633
2734
  function findAddress(tokens, symbol) {
2634
- return _optionalChain([tokens, 'optionalAccess', _95 => _95.find, 'call', _96 => _96((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _97 => _97.address]);
2735
+ return _optionalChain([tokens, 'optionalAccess', _99 => _99.find, 'call', _100 => _100((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _101 => _101.address]);
2635
2736
  }
2636
2737
  function resolveSourceTokenIdentity(input) {
2637
2738
  const { chain, symbol, shortlist, catalogTokens } = input;
2638
2739
  if (!symbol) return void 0;
2639
- const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _98 => _98[String(chain)]]);
2740
+ const shortlistTokens = _optionalChain([shortlist, 'optionalAccess', _102 => _102[String(chain)]]);
2640
2741
  const raw = shortlistTokens !== void 0 ? findAddress(shortlistTokens, symbol) : chain === "hypercore" || !Array.isArray(catalogTokens) ? void 0 : findAddress(catalogTokens, symbol);
2641
2742
  if (!raw) return void 0;
2642
2743
  if (chain === "solana") {
2643
2744
  const isNative = raw.toLowerCase() === "native" || raw.toLowerCase() === EVM_ZERO_ADDRESS;
2644
2745
  return isNative ? SOLANA_NATIVE_MINT : raw;
2645
2746
  }
2747
+ if (raw.toLowerCase() === "0x0") return EVM_ZERO_ADDRESS;
2646
2748
  return raw.toLowerCase();
2647
2749
  }
2648
2750
 
@@ -2652,6 +2754,7 @@ var QRCode = _react.lazy.call(void 0,
2652
2754
  () => Promise.resolve().then(() => _interopRequireWildcard(require("./QRCode-JKXG4RHN.cjs"))).then((m) => ({ default: m.QRCode }))
2653
2755
  );
2654
2756
  var POLL_INTERVAL_MS = 4e3;
2757
+ var PAYMENT_QUOTE_REFRESH_MS2 = 3e4;
2655
2758
  function isRecord(value) {
2656
2759
  return typeof value === "object" && value !== null;
2657
2760
  }
@@ -2697,7 +2800,7 @@ function resolveSolanaTokenMeta(token) {
2697
2800
  return {};
2698
2801
  }
2699
2802
  function getDepositEventDetails(event) {
2700
- if (!_optionalChain([event, 'optionalAccess', _99 => _99.type]) || !isRecord(event.data)) return {};
2803
+ if (!_optionalChain([event, 'optionalAccess', _103 => _103.type]) || !isRecord(event.data)) return {};
2701
2804
  if (event.type === "deposit-received") {
2702
2805
  const chainId = asChainId(event.data.chain);
2703
2806
  const token = asString(event.data.token);
@@ -2712,12 +2815,12 @@ function getDepositEventDetails(event) {
2712
2815
  const source = isRecord(event.data.source) ? event.data.source : void 0;
2713
2816
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
2714
2817
  if (source || deposit) {
2715
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _100 => _100.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _101 => _101.chain]))));
2716
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _102 => _102.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _103 => _103.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _104 => _104.token]))));
2818
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _104 => _104.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _105 => _105.chain]))));
2819
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _106 => _106.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _107 => _107.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _108 => _108.token]))));
2717
2820
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
2718
2821
  return {
2719
2822
  chainId,
2720
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _105 => _105.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _106 => _106.amount])))),
2823
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _109 => _109.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _110 => _110.amount])))),
2721
2824
  token,
2722
2825
  ...solanaMeta
2723
2826
  };
@@ -2728,20 +2831,20 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2728
2831
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2729
2832
  }
2730
2833
  function chainLabel(chainId, catalogChain) {
2731
- const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _107 => _107.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2834
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _111 => _111.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2732
2835
  return name.replace(/\s+(One|Mainnet|Smart Chain|Chain)$/i, "");
2733
2836
  }
2734
2837
  function computeTokensForChain(chainId, offer, catalogChain) {
2735
- const listed = _optionalChain([offer, 'access', _108 => _108.tokensFor, 'call', _109 => _109(chainId), 'optionalAccess', _110 => _110.map, 'call', _111 => _111((t) => t.symbol)]);
2838
+ const listed = _optionalChain([offer, 'access', _112 => _112.tokensFor, 'call', _113 => _113(chainId), 'optionalAccess', _114 => _114.map, 'call', _115 => _115((t) => t.symbol)]);
2736
2839
  if (listed) return listed;
2737
- return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _112 => _112.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2840
+ return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _116 => _116.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2738
2841
  }
2739
2842
  function selectionAsAsset(chainId, symbol, offer, catalogChain) {
2740
2843
  if (typeof chainId !== "number" || !symbol) return void 0;
2741
- const fromShortlist = _optionalChain([offer, 'access', _113 => _113.tokensFor, 'call', _114 => _114(chainId), 'optionalAccess', _115 => _115.find, 'call', _116 => _116((t) => t.symbol === symbol)]);
2742
- const fromCatalog = !offer.restricted && Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _117 => _117.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2743
- const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _118 => _118.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _119 => _119.address])));
2744
- const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _120 => _120.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _121 => _121.decimals])));
2844
+ const fromShortlist = _optionalChain([offer, 'access', _117 => _117.tokensFor, 'call', _118 => _118(chainId), 'optionalAccess', _119 => _119.find, 'call', _120 => _120((t) => t.symbol === symbol)]);
2845
+ const fromCatalog = !offer.restricted && Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _121 => _121.supportedTokens])) ? catalogChain.supportedTokens.find((t) => t.symbol === symbol) : void 0;
2846
+ const address = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _122 => _122.address]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _123 => _123.address])));
2847
+ const decimals = _nullishCoalesce(_optionalChain([fromShortlist, 'optionalAccess', _124 => _124.decimals]), () => ( _optionalChain([fromCatalog, 'optionalAccess', _125 => _125.decimals])));
2745
2848
  if (!address || decimals === void 0) return void 0;
2746
2849
  return {
2747
2850
  id: `qr-${chainId}-${symbol}`,
@@ -2754,7 +2857,7 @@ function selectionAsAsset(chainId, symbol, offer, catalogChain) {
2754
2857
  }
2755
2858
  function TokenGlyph({ symbol }) {
2756
2859
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2757
- _chunkN3AAT6BScjs.TokenIcon,
2860
+ _chunkHMUGY66Ocjs.TokenIcon,
2758
2861
  {
2759
2862
  symbol,
2760
2863
  className: "rs-deposit-address-dropdown-icon",
@@ -2779,25 +2882,26 @@ function DepositAddressStep({
2779
2882
  onDepositComplete,
2780
2883
  onDepositFailed,
2781
2884
  onAddressShown,
2885
+ payment,
2782
2886
  onCopyAddress,
2783
2887
  onReviewDeposit,
2784
2888
  onError
2785
2889
  }) {
2786
2890
  const hasSolana = Boolean(solanaDepositAddress);
2787
- const offer = _chunkN3AAT6BScjs.useDepositOffer.call(void 0, );
2891
+ const offer = _chunkHMUGY66Ocjs.useDepositOffer.call(void 0, );
2788
2892
  const BASE_CHAIN_ID2 = 8453;
2789
- const evmChainIds = _chunkN3AAT6BScjs.useDepositChainIds.call(void 0, );
2790
- const { catalog, isLoading: catalogLoading, shortlist } = _chunkN3AAT6BScjs.useChainCatalog.call(void 0, );
2893
+ const evmChainIds = _chunkHMUGY66Ocjs.useDepositChainIds.call(void 0, );
2894
+ const { catalog, isLoading: catalogLoading, shortlist } = _chunkHMUGY66Ocjs.useChainCatalog.call(void 0, );
2791
2895
  const catalogFor = _react.useCallback.call(void 0,
2792
2896
  (chain) => {
2793
2897
  if (!catalog) return void 0;
2794
- const key = _chunkN3AAT6BScjs.catalogKeyForChain.call(void 0, chain);
2898
+ const key = _chunkHMUGY66Ocjs.catalogKeyForChain.call(void 0, chain);
2795
2899
  return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2796
2900
  },
2797
2901
  [catalog]
2798
2902
  );
2799
2903
  const chainOptions = _react.useMemo.call(void 0, () => {
2800
- const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _122 => _122(chain), 'optionalAccess', _123 => _123.deposit]) !== false;
2904
+ const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _126 => _126(chain), 'optionalAccess', _127 => _127.deposit]) !== false;
2801
2905
  const options = [...evmChainIds];
2802
2906
  const extras = [];
2803
2907
  if (hasSolana && acceptsDeposits("solana")) extras.push("solana");
@@ -2808,9 +2912,9 @@ function DepositAddressStep({
2808
2912
  );
2809
2913
  }, [evmChainIds, hasSolana, offer, catalogFor]);
2810
2914
  const preferredChainId = (options) => options.includes(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(options[0], () => ( BASE_CHAIN_ID2));
2811
- const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _124 => _124.chainId]), () => ( preferredChainId(chainOptions))));
2915
+ const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _128 => _128.chainId]), () => ( preferredChainId(chainOptions))));
2812
2916
  const chainChosenByUser = _react.useRef.call(void 0, initialSource !== void 0);
2813
- const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _125 => _125.chainId]));
2917
+ const pendingChainRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _129 => _129.chainId]));
2814
2918
  _react.useEffect.call(void 0, () => {
2815
2919
  if (chainOptions.length === 0) return;
2816
2920
  const pendingChain2 = pendingChainRef.current;
@@ -2834,10 +2938,10 @@ function DepositAddressStep({
2834
2938
  );
2835
2939
  const defaultToken = pickFallbackToken(
2836
2940
  tokensForChain,
2837
- _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _126 => _126.symbol]), () => ( "USDC"))
2941
+ _nullishCoalesce(_optionalChain([initialSource, 'optionalAccess', _130 => _130.symbol]), () => ( "USDC"))
2838
2942
  );
2839
2943
  const [sourceTokenSymbol, setSourceTokenSymbol] = _react.useState.call(void 0, defaultToken);
2840
- const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _127 => _127.symbol]));
2944
+ const pendingTokenRef = _react.useRef.call(void 0, _optionalChain([initialSource, 'optionalAccess', _131 => _131.symbol]));
2841
2945
  _react.useEffect.call(void 0, () => {
2842
2946
  if (tokensForChain.includes(sourceTokenSymbol)) {
2843
2947
  pendingTokenRef.current = void 0;
@@ -2864,21 +2968,60 @@ function DepositAddressStep({
2864
2968
  const baselineTxHashRef = _react.useRef.call(void 0, void 0);
2865
2969
  const notificationIdRef = _react.useRef.call(void 0, 0);
2866
2970
  const displayAddress = isSolana && solanaDepositAddress ? solanaDepositAddress : smartAccount;
2971
+ const [paymentUnits, setPaymentUnits] = _react.useState.call(void 0, "loading");
2867
2972
  const sourceTokenIdentity = _react.useMemo.call(void 0,
2868
2973
  () => resolveSourceTokenIdentity({
2869
2974
  chain: sourceChainId,
2870
2975
  symbol: sourceTokenSymbol,
2871
2976
  shortlist,
2872
- catalogTokens: offer.restricted ? void 0 : _optionalChain([catalogFor, 'call', _128 => _128(sourceChainId), 'optionalAccess', _129 => _129.supportedTokens])
2977
+ catalogTokens: offer.restricted ? void 0 : _optionalChain([catalogFor, 'call', _132 => _132(sourceChainId), 'optionalAccess', _133 => _133.supportedTokens])
2873
2978
  }),
2874
2979
  [sourceChainId, sourceTokenSymbol, shortlist, offer.restricted, catalogFor]
2875
2980
  );
2981
+ _react.useEffect.call(void 0, () => {
2982
+ if (!payment) return;
2983
+ if (typeof sourceChainId !== "number" || !sourceTokenIdentity) {
2984
+ setPaymentUnits("unavailable");
2985
+ return;
2986
+ }
2987
+ setPaymentUnits("loading");
2988
+ let active = true;
2989
+ const load = async () => {
2990
+ const quote = await service.getQuotePreview({
2991
+ account: smartAccount,
2992
+ sourceChainId,
2993
+ sourceToken: sourceTokenIdentity,
2994
+ direction: "exactOut",
2995
+ amountOut: payment.amount
2996
+ });
2997
+ if (!active) return;
2998
+ const answered = quote && "output" in quote ? _optionalChain([quote, 'access', _134 => _134.input, 'optionalAccess', _135 => _135.amount]) : void 0;
2999
+ setPaymentUnits(_nullishCoalesce(answered, () => ( "unavailable")));
3000
+ };
3001
+ void load();
3002
+ const timer = setInterval(load, PAYMENT_QUOTE_REFRESH_MS2);
3003
+ return () => {
3004
+ active = false;
3005
+ clearInterval(timer);
3006
+ };
3007
+ }, [payment, sourceChainId, sourceTokenIdentity, smartAccount, service]);
3008
+ const paymentDecimals = typeof sourceChainId === "number" && sourceTokenIdentity ? _chunkOY5N3E6Lcjs.findTokenDecimals.call(void 0, sourceTokenIdentity, sourceChainId) : void 0;
3009
+ const paymentAmountUnits = payment && paymentUnits !== "loading" && paymentUnits !== "unavailable" ? paymentUnits : null;
3010
+ const paymentDisplay = paymentAmountUnits !== null && paymentDecimals !== void 0 ? _viem.formatUnits.call(void 0, BigInt(paymentAmountUnits), paymentDecimals) : null;
3011
+ const qrValue = paymentAmountUnits !== null && typeof sourceChainId === "number" && sourceTokenIdentity ? paymentRequestUri({
3012
+ to: displayAddress,
3013
+ chainId: sourceChainId,
3014
+ token: sourceTokenIdentity,
3015
+ amount: paymentAmountUnits
3016
+ }) : displayAddress;
3017
+ const withholdPaymentQr = Boolean(payment) && paymentAmountUnits === null;
3018
+ const paymentUnquotable = Boolean(payment) && paymentUnits === "unavailable";
2876
3019
  const pendingChain = pendingChainRef.current;
2877
3020
  const sourceSelectionSettled = !catalogLoading && offer.status === "ready" && chainOptions.length > 0 && (pendingChain === void 0 || pendingChain === sourceChainId) && (chainChosenByUser.current ? chainOptions.includes(sourceChainId) : sourceChainId === preferredChainId(chainOptions));
2878
3021
  _react.useEffect.call(void 0, () => {
2879
3022
  if (!sourceTokenIdentity) return;
2880
3023
  if (!sourceSelectionSettled) return;
2881
- _optionalChain([onAddressShown, 'optionalCall', _130 => _130({
3024
+ _optionalChain([onAddressShown, 'optionalCall', _136 => _136({
2882
3025
  address: displayAddress,
2883
3026
  sourceChainCaip2: sourceChainToCaip2(sourceChainId),
2884
3027
  sourceTokenIdentity
@@ -2895,8 +3038,8 @@ function DepositAddressStep({
2895
3038
  function handlePointerDown(event) {
2896
3039
  const target = event.target;
2897
3040
  if (!target) return;
2898
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _131 => _131.current, 'optionalAccess', _132 => _132.contains, 'call', _133 => _133(target)]);
2899
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _134 => _134.current, 'optionalAccess', _135 => _135.contains, 'call', _136 => _136(target)]);
3041
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _137 => _137.current, 'optionalAccess', _138 => _138.contains, 'call', _139 => _139(target)]);
3042
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _140 => _140.current, 'optionalAccess', _141 => _141.contains, 'call', _142 => _142(target)]);
2900
3043
  if (clickedChainDropdown || clickedTokenDropdown) return;
2901
3044
  setChainDropdownOpen(false);
2902
3045
  setTokenDropdownOpen(false);
@@ -2912,9 +3055,9 @@ function DepositAddressStep({
2912
3055
  try {
2913
3056
  await navigator.clipboard.writeText(displayAddress);
2914
3057
  setCopied(true);
2915
- _optionalChain([onCopyAddress, 'optionalCall', _137 => _137(true)]);
3058
+ _optionalChain([onCopyAddress, 'optionalCall', _143 => _143(true)]);
2916
3059
  setTimeout(() => setCopied(false), 2e3);
2917
- } catch (e18) {
3060
+ } catch (e20) {
2918
3061
  const textarea = document.createElement("textarea");
2919
3062
  textarea.value = displayAddress;
2920
3063
  textarea.style.position = "fixed";
@@ -2927,7 +3070,7 @@ function DepositAddressStep({
2927
3070
  setCopied(true);
2928
3071
  setTimeout(() => setCopied(false), 2e3);
2929
3072
  }
2930
- _optionalChain([onCopyAddress, 'optionalCall', _138 => _138(copiedWithFallback)]);
3073
+ _optionalChain([onCopyAddress, 'optionalCall', _144 => _144(copiedWithFallback)]);
2931
3074
  }
2932
3075
  }, [displayAddress, onCopyAddress]);
2933
3076
  const handleSelectChain = _react.useCallback.call(void 0,
@@ -2996,10 +3139,10 @@ function DepositAddressStep({
2996
3139
  return;
2997
3140
  }
2998
3141
  const event = status.lastEvent;
2999
- const eventTxHash = _chunkN3AAT6BScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN3AAT6BScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3142
+ const eventTxHash = _chunkHMUGY66Ocjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkHMUGY66Ocjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3000
3143
  if (baselineTxHashRef.current === void 0) {
3001
3144
  baselineTxHashRef.current = eventTxHash;
3002
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
3145
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkHMUGY66Ocjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
3003
3146
  const details = getDepositEventDetails(event);
3004
3147
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
3005
3148
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -3031,7 +3174,7 @@ function DepositAddressStep({
3031
3174
  directTransfer
3032
3175
  };
3033
3176
  setNotifications((prev) => [notification, ...prev]);
3034
- _optionalChain([onDepositSubmittedRef, 'access', _139 => _139.current, 'optionalCall', _140 => _140({
3177
+ _optionalChain([onDepositSubmittedRef, 'access', _145 => _145.current, 'optionalCall', _146 => _146({
3035
3178
  txHash: eventTxHash,
3036
3179
  sourceChain: chainId,
3037
3180
  amount,
@@ -3043,7 +3186,7 @@ function DepositAddressStep({
3043
3186
  if (!cancelled) {
3044
3187
  const msg = err instanceof Error ? err.message : "Failed to check status";
3045
3188
  setPollingError(msg);
3046
- _optionalChain([onErrorRef, 'access', _141 => _141.current, 'optionalCall', _142 => _142(msg, "STATUS_POLL_ERROR")]);
3189
+ _optionalChain([onErrorRef, 'access', _147 => _147.current, 'optionalCall', _148 => _148(msg, "STATUS_POLL_ERROR")]);
3047
3190
  }
3048
3191
  }
3049
3192
  if (!cancelled) {
@@ -3059,21 +3202,21 @@ function DepositAddressStep({
3059
3202
  const handleNotificationComplete = _react.useCallback.call(void 0,
3060
3203
  (txHash, destinationTxHash, context) => {
3061
3204
  isTrackingRef.current = false;
3062
- _optionalChain([onDepositCompleteRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, destinationTxHash, context)]);
3205
+ _optionalChain([onDepositCompleteRef, 'access', _149 => _149.current, 'optionalCall', _150 => _150(txHash, destinationTxHash, context)]);
3063
3206
  },
3064
3207
  []
3065
3208
  );
3066
3209
  const handleNotificationFailed = _react.useCallback.call(void 0,
3067
3210
  (txHash, error) => {
3068
3211
  isTrackingRef.current = false;
3069
- _optionalChain([onDepositFailedRef, 'access', _145 => _145.current, 'optionalCall', _146 => _146(txHash, error)]);
3212
+ _optionalChain([onDepositFailedRef, 'access', _151 => _151.current, 'optionalCall', _152 => _152(txHash, error)]);
3070
3213
  },
3071
3214
  []
3072
3215
  );
3073
3216
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
3074
3217
  setNotifications((prev) => prev.filter((n) => n.id !== id));
3075
3218
  }, []);
3076
- const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _147 => _147(sourceChainId), 'optionalAccess', _148 => _148.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3219
+ const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _153 => _153(sourceChainId), 'optionalAccess', _154 => _154.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3077
3220
  const reviewAsset = selectionAsAsset(
3078
3221
  sourceChainId,
3079
3222
  sourceTokenSymbol,
@@ -3082,9 +3225,9 @@ function DepositAddressStep({
3082
3225
  );
3083
3226
  if (offer.status === "error") {
3084
3227
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3085
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3086
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: "The tokens this app accepts could not be loaded, so there is no deposit address to show." }),
3087
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Button, { onClick: offer.retry, fullWidth: true, children: "Try again" })
3228
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3229
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: "The tokens this app accepts could not be loaded, so there is no deposit address to show." }),
3230
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Button, { onClick: offer.retry, fullWidth: true, children: "Try again" })
3088
3231
  ] }) });
3089
3232
  }
3090
3233
  if (chainOptions.length === 0) {
@@ -3092,13 +3235,13 @@ function DepositAddressStep({
3092
3235
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
3093
3236
  }
3094
3237
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3095
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3096
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: catalog ? "This app does not accept deposits from any chain available here." : "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3239
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: catalog ? "This app does not accept deposits from any chain available here." : "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3097
3240
  ] }) });
3098
3241
  }
3099
3242
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
3100
3243
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3101
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3244
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3102
3245
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
3103
3246
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
3104
3247
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -3114,14 +3257,14 @@ function DepositAddressStep({
3114
3257
  },
3115
3258
  children: [
3116
3259
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3117
- _chunkN3AAT6BScjs.CdnIcon,
3260
+ _chunkHMUGY66Ocjs.CdnIcon,
3118
3261
  {
3119
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _149 => _149(sourceChainId), 'optionalAccess', _150 => _150.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3262
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _155 => _155(sourceChainId), 'optionalAccess', _156 => _156.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3120
3263
  className: "rs-deposit-address-dropdown-icon"
3121
3264
  }
3122
3265
  ),
3123
3266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
3124
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3267
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3125
3268
  ]
3126
3269
  }
3127
3270
  ),
@@ -3133,9 +3276,9 @@ function DepositAddressStep({
3133
3276
  onClick: () => handleSelectChain(chainId),
3134
3277
  children: [
3135
3278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3136
- _chunkN3AAT6BScjs.CdnIcon,
3279
+ _chunkHMUGY66Ocjs.CdnIcon,
3137
3280
  {
3138
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _151 => _151(chainId), 'optionalAccess', _152 => _152.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3281
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _157 => _157(chainId), 'optionalAccess', _158 => _158.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3139
3282
  className: "rs-deposit-address-dropdown-icon"
3140
3283
  }
3141
3284
  ),
@@ -3150,9 +3293,9 @@ function DepositAddressStep({
3150
3293
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
3151
3294
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3152
3295
  "Min.$",
3153
- (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _153 => _153.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _154 => _154.minDepositUsd]), () => ( 0.1))).toFixed(2),
3154
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3155
- _chunkN3AAT6BScjs.InfoIcon,
3296
+ (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _159 => _159.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _160 => _160.minDepositUsd]), () => ( 0.1))).toFixed(2),
3297
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3298
+ _chunkHMUGY66Ocjs.InfoIcon,
3156
3299
  {
3157
3300
  className: "rs-deposit-address-min-icon",
3158
3301
  "aria-hidden": "true"
@@ -3173,7 +3316,7 @@ function DepositAddressStep({
3173
3316
  children: [
3174
3317
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
3175
3318
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
3176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3319
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3177
3320
  ]
3178
3321
  }
3179
3322
  ),
@@ -3201,14 +3344,34 @@ function DepositAddressStep({
3201
3344
  style: { display: "flex", flexDirection: "column", gap: 4, width: "100%" },
3202
3345
  children: [
3203
3346
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-well", children: [
3204
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-qr", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-qr", children: withholdPaymentQr ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-skeleton rs-skeleton-qr", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3205
3348
  _react.Suspense,
3206
3349
  {
3207
- fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-skeleton rs-skeleton-qr", "aria-hidden": "true" }),
3208
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QRCode, { value: displayAddress, size: 190, iconSrc: qrIconSrc })
3350
+ fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3351
+ "div",
3352
+ {
3353
+ className: "rs-skeleton rs-skeleton-qr",
3354
+ "aria-hidden": "true"
3355
+ }
3356
+ ),
3357
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QRCode, { value: qrValue, size: 190, iconSrc: qrIconSrc })
3209
3358
  }
3210
3359
  ) }),
3211
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-value", children: displayAddress })
3360
+ payment && paymentDisplay && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-amount", children: [
3361
+ "Send exactly ",
3362
+ paymentDisplay,
3363
+ " ",
3364
+ sourceTokenSymbol
3365
+ ] }),
3366
+ !withholdPaymentQr && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-value", children: displayAddress })
3367
+ ] }),
3368
+ paymentUnquotable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: [
3369
+ "This payment can't be priced from ",
3370
+ sourceTokenSymbol,
3371
+ " on",
3372
+ " ",
3373
+ chainLabel(sourceChainId, catalogFor(sourceChainId)),
3374
+ " right now. Pick another chain or token."
3212
3375
  ] }),
3213
3376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", children: [
3214
3377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -3217,8 +3380,9 @@ function DepositAddressStep({
3217
3380
  type: "button",
3218
3381
  className: "rs-deposit-address-copy",
3219
3382
  onClick: handleCopy,
3383
+ disabled: withholdPaymentQr,
3220
3384
  children: [
3221
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CopyIcon, {}),
3385
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CopyIcon, {}),
3222
3386
  copied ? "Copied!" : "Copy address"
3223
3387
  ]
3224
3388
  }
@@ -3253,7 +3417,7 @@ function DepositAddressStep({
3253
3417
  },
3254
3418
  deposit.id
3255
3419
  )) }),
3256
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3420
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
3257
3421
  ] });
3258
3422
  }
3259
3423
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -3271,7 +3435,7 @@ function isTrustedSwappedWidgetUrl(url) {
3271
3435
  let parsed;
3272
3436
  try {
3273
3437
  parsed = new URL(url);
3274
- } catch (e19) {
3438
+ } catch (e21) {
3275
3439
  return false;
3276
3440
  }
3277
3441
  return SWAPPED_ORIGINS.includes(parsed.origin);
@@ -3310,7 +3474,7 @@ function FinalisingDepositStep() {
3310
3474
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
3311
3475
  ] })
3312
3476
  ] }),
3313
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3477
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
3314
3478
  ] });
3315
3479
  }
3316
3480
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -3340,7 +3504,7 @@ function SwappedOrderTracker({
3340
3504
  ];
3341
3505
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
3342
3506
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3343
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.HandCoinsIcon, {}), title }),
3507
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.HandCoinsIcon, {}), title }),
3344
3508
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
3345
3509
  const status = stepStates[idx];
3346
3510
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -3354,7 +3518,7 @@ function SwappedOrderTracker({
3354
3518
  {
3355
3519
  className: "rs-swapped-tracker-step-marker",
3356
3520
  "aria-hidden": "true",
3357
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3521
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3358
3522
  "svg",
3359
3523
  {
3360
3524
  className: "rs-swapped-tracker-step-ring",
@@ -3389,7 +3553,7 @@ function SwappedOrderTracker({
3389
3553
  }
3390
3554
  )
3391
3555
  ] }),
3392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
3556
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
3393
3557
  ] });
3394
3558
  }
3395
3559
  function formatTrackerAmount(amount) {
@@ -3426,14 +3590,14 @@ function hostnameOf(url) {
3426
3590
  if (!url) return "the payment provider";
3427
3591
  try {
3428
3592
  return new URL(url).hostname;
3429
- } catch (e20) {
3593
+ } catch (e22) {
3430
3594
  return "the payment provider";
3431
3595
  }
3432
3596
  }
3433
3597
  function parseMaybeJsonString(raw) {
3434
3598
  try {
3435
3599
  return JSON.parse(raw);
3436
- } catch (e21) {
3600
+ } catch (e23) {
3437
3601
  return raw;
3438
3602
  }
3439
3603
  }
@@ -3452,7 +3616,7 @@ function parseSwappedIframeMessage(raw) {
3452
3616
  if (typeof data === "string") {
3453
3617
  try {
3454
3618
  data = JSON.parse(data);
3455
- } catch (e22) {
3619
+ } catch (e24) {
3456
3620
  return null;
3457
3621
  }
3458
3622
  }
@@ -3563,19 +3727,19 @@ function SwappedProviderStep({
3563
3727
  if (cancelled) return;
3564
3728
  if (!isTrustedSwappedWidgetUrl(res.url)) {
3565
3729
  setLoadError(loadErrorFallback);
3566
- _optionalChain([onErrorRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156(loadErrorFallback, loadErrorCode)]);
3730
+ _optionalChain([onErrorRef, 'access', _161 => _161.current, 'optionalCall', _162 => _162(loadErrorFallback, loadErrorCode)]);
3567
3731
  return;
3568
3732
  }
3569
3733
  setWidgetUrl(res.url);
3570
3734
  expectedExternalCustomerIdRef.current = res.externalCustomerId;
3571
- _optionalChain([onAttemptConsumed, 'optionalCall', _157 => _157(res.externalCustomerId)]);
3735
+ _optionalChain([onAttemptConsumed, 'optionalCall', _163 => _163(res.externalCustomerId)]);
3572
3736
  const sep = res.externalCustomerId.indexOf(":");
3573
3737
  expectedOrderUuidRef.current = sep >= 0 ? res.externalCustomerId.slice(sep + 1) : null;
3574
3738
  }).catch((err) => {
3575
3739
  if (cancelled) return;
3576
3740
  const message = err instanceof Error ? err.message : loadErrorFallback;
3577
3741
  setLoadError(message);
3578
- _optionalChain([onErrorRef, 'access', _158 => _158.current, 'optionalCall', _159 => _159(message, loadErrorCode)]);
3742
+ _optionalChain([onErrorRef, 'access', _164 => _164.current, 'optionalCall', _165 => _165(message, loadErrorCode)]);
3579
3743
  });
3580
3744
  return () => {
3581
3745
  cancelled = true;
@@ -3590,7 +3754,7 @@ function SwappedProviderStep({
3590
3754
  const timer = setTimeout(() => {
3591
3755
  const message = "Iframe took too long to load.";
3592
3756
  setLoadError(message);
3593
- _optionalChain([onErrorRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161(message, "SWAPPED_IFRAME_TIMEOUT")]);
3757
+ _optionalChain([onErrorRef, 'access', _166 => _166.current, 'optionalCall', _167 => _167(message, "SWAPPED_IFRAME_TIMEOUT")]);
3594
3758
  }, IFRAME_LOAD_TIMEOUT_MS);
3595
3759
  return () => clearTimeout(timer);
3596
3760
  }, [openExternally, widgetUrl, iframeLoaded, loadError]);
@@ -3600,7 +3764,7 @@ function SwappedProviderStep({
3600
3764
  setIframeSrc(nextSrc);
3601
3765
  if (nextSrc && assignedIframeUrlRef.current !== nextSrc) {
3602
3766
  assignedIframeUrlRef.current = nextSrc;
3603
- _optionalChain([onProviderHandoffRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163()]);
3767
+ _optionalChain([onProviderHandoffRef, 'access', _168 => _168.current, 'optionalCall', _169 => _169()]);
3604
3768
  }
3605
3769
  }, [openExternally, widgetUrl, loadError, retryToken]);
3606
3770
  const openPaymentPage = async (url) => {
@@ -3610,11 +3774,11 @@ function SwappedProviderStep({
3610
3774
  try {
3611
3775
  await openExternally(url);
3612
3776
  setHandoffOpened(true);
3613
- _optionalChain([onProviderHandoff, 'optionalCall', _164 => _164()]);
3777
+ _optionalChain([onProviderHandoff, 'optionalCall', _170 => _170()]);
3614
3778
  } catch (error) {
3615
3779
  openedUrlRef.current = null;
3616
3780
  setLoadError(OPEN_FAILED_MESSAGE);
3617
- _optionalChain([onErrorRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166(
3781
+ _optionalChain([onErrorRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172(
3618
3782
  error instanceof Error && error.message ? error.message : OPEN_FAILED_MESSAGE,
3619
3783
  OPEN_FAILED_CODE
3620
3784
  )]);
@@ -3639,7 +3803,7 @@ function SwappedProviderStep({
3639
3803
  if (isCurrentOrder) {
3640
3804
  setOrderState(res);
3641
3805
  }
3642
- } catch (e23) {
3806
+ } catch (e25) {
3643
3807
  }
3644
3808
  if (!cancelled) {
3645
3809
  timeoutId = setTimeout(poll, STATUS_POLL_INTERVAL_MS);
@@ -3662,8 +3826,8 @@ function SwappedProviderStep({
3662
3826
  const doc = globalThis.document;
3663
3827
  const onVisible = () => {
3664
3828
  if (doc.visibilityState !== "visible") return;
3665
- _optionalChain([rescheduleStatusPollRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168(0)]);
3666
- _optionalChain([rescheduleDepositPollRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170(0)]);
3829
+ _optionalChain([rescheduleStatusPollRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174(0)]);
3830
+ _optionalChain([rescheduleDepositPollRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176(0)]);
3667
3831
  };
3668
3832
  doc.addEventListener("visibilitychange", onVisible);
3669
3833
  return () => doc.removeEventListener("visibilitychange", onVisible);
@@ -3677,14 +3841,14 @@ function SwappedProviderStep({
3677
3841
  const status = await service.fetchLatestStatus(smartAccount);
3678
3842
  if (cancelled) return;
3679
3843
  const event = status.lastEvent;
3680
- const eventTxHash = _chunkN3AAT6BScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN3AAT6BScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3844
+ const eventTxHash = _chunkHMUGY66Ocjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkHMUGY66Ocjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3681
3845
  if (baselineDepositTxHashRef.current === void 0) {
3682
3846
  baselineDepositTxHashRef.current = eventTxHash;
3683
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkN3AAT6BScjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3847
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkHMUGY66Ocjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3684
3848
  currentDepositTxHashRef.current = eventTxHash;
3685
3849
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
3686
3850
  }
3687
- } catch (e24) {
3851
+ } catch (e26) {
3688
3852
  }
3689
3853
  if (!cancelled) {
3690
3854
  const nextInterval = fastDepositPollEnabledRef.current ? DEPOSIT_POLL_FAST_INTERVAL_MS : DEPOSIT_POLL_INTERVAL_MS;
@@ -3705,16 +3869,16 @@ function SwappedProviderStep({
3705
3869
  }, [service, smartAccount]);
3706
3870
  _react.useEffect.call(void 0, () => {
3707
3871
  if (fastDepositPollEnabledRef.current) return;
3708
- const status = _optionalChain([orderState, 'optionalAccess', _171 => _171.status]);
3872
+ const status = _optionalChain([orderState, 'optionalAccess', _177 => _177.status]);
3709
3873
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
3710
3874
  fastDepositPollEnabledRef.current = true;
3711
- _optionalChain([rescheduleDepositPollRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3875
+ _optionalChain([rescheduleDepositPollRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3712
3876
  }, [orderState]);
3713
3877
  _react.useEffect.call(void 0, () => {
3714
3878
  if (openExternally) return;
3715
3879
  function onMessage(e) {
3716
3880
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
3717
- if (e.source !== _optionalChain([iframeRef, 'access', _174 => _174.current, 'optionalAccess', _175 => _175.contentWindow])) return;
3881
+ if (e.source !== _optionalChain([iframeRef, 'access', _180 => _180.current, 'optionalAccess', _181 => _181.contentWindow])) return;
3718
3882
  if (isSwappedGoBackMessage(e.data)) {
3719
3883
  onGoBackRef.current();
3720
3884
  return;
@@ -3729,16 +3893,16 @@ function SwappedProviderStep({
3729
3893
  setOrderState((prev) => ({
3730
3894
  // Normalise to the uuid the backend poll also keys on, so orderState
3731
3895
  // is consistent regardless of which path set it.
3732
- orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _176 => _176.orderId]))), () => ( ext)),
3896
+ orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _182 => _182.orderId]))), () => ( ext)),
3733
3897
  status: parsed.status,
3734
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _177 => _177.orderCrypto]))), () => ( null)),
3735
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _178 => _178.orderCryptoAmount]))), () => ( null)),
3736
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _179 => _179.transactionId]))), () => ( null)),
3898
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _183 => _183.orderCrypto]))), () => ( null)),
3899
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _184 => _184.orderCryptoAmount]))), () => ( null)),
3900
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _185 => _185.transactionId]))), () => ( null)),
3737
3901
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
3738
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _180 => _180.paidAmountUsd]), () => ( null)),
3739
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _181 => _181.paidAmountEur]), () => ( null)),
3740
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _182 => _182.onrampFeeUsd]), () => ( null)),
3741
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _183 => _183.paymentMethod]), () => ( null))
3902
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _186 => _186.paidAmountUsd]), () => ( null)),
3903
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _187 => _187.paidAmountEur]), () => ( null)),
3904
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _188 => _188.onrampFeeUsd]), () => ( null)),
3905
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _189 => _189.paymentMethod]), () => ( null))
3742
3906
  }));
3743
3907
  }
3744
3908
  window.addEventListener("message", onMessage);
@@ -3751,28 +3915,28 @@ function SwappedProviderStep({
3751
3915
  }
3752
3916
  }, [phase, orderState, latestEvent, variant]);
3753
3917
  const stepStates = _react.useMemo.call(void 0,
3754
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _184 => _184.status]), () => ( null)), latestEvent),
3918
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _190 => _190.status]), () => ( null)), latestEvent),
3755
3919
  [orderState, latestEvent]
3756
3920
  );
3757
3921
  const terminalState = _react.useMemo.call(void 0, () => {
3758
- if (_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3922
+ if (_chunkHMUGY66Ocjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3759
3923
  return {
3760
3924
  kind: "failed",
3761
- message: _chunkN3AAT6BScjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3925
+ message: _chunkHMUGY66Ocjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3762
3926
  };
3763
3927
  }
3764
- if (_optionalChain([orderState, 'optionalAccess', _185 => _185.status]) === "order_cancelled") {
3928
+ if (_optionalChain([orderState, 'optionalAccess', _191 => _191.status]) === "order_cancelled") {
3765
3929
  const banner = bannerForStatus("order_cancelled", {});
3766
3930
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
3767
3931
  }
3768
3932
  return null;
3769
3933
  }, [latestEvent, orderState, bannerForStatus]);
3770
3934
  _react.useEffect.call(void 0, () => {
3771
- if (_optionalChain([orderState, 'optionalAccess', _186 => _186.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _187 => _187()]);
3772
- }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _188 => _188.status])]);
3935
+ if (_optionalChain([orderState, 'optionalAccess', _192 => _192.status]) === "order_cancelled") _optionalChain([onCancelled, 'optionalCall', _193 => _193()]);
3936
+ }, [onCancelled, _optionalChain([orderState, 'optionalAccess', _194 => _194.status])]);
3773
3937
  _react.useEffect.call(void 0, () => {
3774
3938
  if (completeFiredRef.current || failedFiredRef.current) return;
3775
- const t = _optionalChain([latestEvent, 'optionalAccess', _189 => _189.type]);
3939
+ const t = _optionalChain([latestEvent, 'optionalAccess', _195 => _195.type]);
3776
3940
  const isSuccess = t === "bridge-complete";
3777
3941
  if (!isSuccess) return;
3778
3942
  const txHash = currentDepositTxHashRef.current;
@@ -3781,10 +3945,10 @@ function SwappedProviderStep({
3781
3945
  const info = {
3782
3946
  smartAccount,
3783
3947
  txHash,
3784
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _190 => _190.orderCrypto]), () => ( null)),
3948
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _196 => _196.orderCrypto]), () => ( null)),
3785
3949
  // Base-unit source amount from the deposit row/event, consistent with the
3786
3950
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3787
- amount: _nullishCoalesce(_chunkN3AAT6BScjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3951
+ amount: _nullishCoalesce(_chunkHMUGY66Ocjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3788
3952
  expectedOrderUuid: expectedOrderUuidRef.current,
3789
3953
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3790
3954
  };
@@ -3795,23 +3959,23 @@ function SwappedProviderStep({
3795
3959
  }, [latestEvent, orderState, smartAccount]);
3796
3960
  _react.useEffect.call(void 0, () => {
3797
3961
  if (failedFiredRef.current || completeFiredRef.current) return;
3798
- if (!_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3962
+ if (!_chunkHMUGY66Ocjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3799
3963
  const txHash = currentDepositTxHashRef.current;
3800
3964
  if (!txHash) return;
3801
3965
  failedFiredRef.current = true;
3802
3966
  setPhase("tracker");
3803
- _optionalChain([onSwappedFailedRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192(
3967
+ _optionalChain([onSwappedFailedRef, 'access', _197 => _197.current, 'optionalCall', _198 => _198(
3804
3968
  txHash,
3805
- _chunkN3AAT6BScjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3969
+ _chunkHMUGY66Ocjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3806
3970
  )]);
3807
3971
  }, [latestEvent]);
3808
3972
  const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
3809
3973
  _react.useEffect.call(void 0, () => {
3810
- _optionalChain([onImmersiveChangeRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194(immersive)]);
3974
+ _optionalChain([onImmersiveChangeRef, 'access', _199 => _199.current, 'optionalCall', _200 => _200(immersive)]);
3811
3975
  }, [immersive]);
3812
- _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _195 => _195.current, 'optionalCall', _196 => _196(false)]), []);
3976
+ _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202(false)]), []);
3813
3977
  const handleRetry = () => {
3814
- _optionalChain([onRetry, 'optionalCall', _197 => _197()]);
3978
+ _optionalChain([onRetry, 'optionalCall', _203 => _203()]);
3815
3979
  setIframeSrc(null);
3816
3980
  setWidgetUrl(null);
3817
3981
  setIframeLoaded(false);
@@ -3829,8 +3993,8 @@ function SwappedProviderStep({
3829
3993
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3830
3994
  SwappedOrderTracker,
3831
3995
  {
3832
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _198 => _198.orderCryptoAmount]), () => ( null)),
3833
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _199 => _199.orderCrypto]), () => ( "USDC")),
3996
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _204 => _204.orderCryptoAmount]), () => ( null)),
3997
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _205 => _205.orderCrypto]), () => ( "USDC")),
3834
3998
  stepStates,
3835
3999
  terminal: terminalState,
3836
4000
  onRetry: handleRetry,
@@ -3852,7 +4016,7 @@ function SwappedProviderStep({
3852
4016
  }
3853
4017
  )
3854
4018
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3855
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}),
4019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, {}),
3856
4020
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-swapped-handoff-text", children: [
3857
4021
  /* @__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" }),
3858
4022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-swapped-handoff-subtitle", children: handoffOpened ? (
@@ -3876,7 +4040,7 @@ function SwappedProviderStep({
3876
4040
  }
3877
4041
  )
3878
4042
  ] }) }),
3879
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4043
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
3880
4044
  ] });
3881
4045
  }
3882
4046
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
@@ -3893,7 +4057,7 @@ function SwappedProviderStep({
3893
4057
  }
3894
4058
  )
3895
4059
  ] }),
3896
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) }),
4060
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, {}) }),
3897
4061
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3898
4062
  "iframe",
3899
4063
  {
@@ -3905,10 +4069,10 @@ function SwappedProviderStep({
3905
4069
  allow: "payment; camera; microphone; clipboard-write; geolocation",
3906
4070
  onLoad: () => {
3907
4071
  try {
3908
- if (_optionalChain([iframeRef, 'access', _200 => _200.current, 'optionalAccess', _201 => _201.contentWindow, 'optionalAccess', _202 => _202.location, 'optionalAccess', _203 => _203.href]) === "about:blank") {
4072
+ if (_optionalChain([iframeRef, 'access', _206 => _206.current, 'optionalAccess', _207 => _207.contentWindow, 'optionalAccess', _208 => _208.location, 'optionalAccess', _209 => _209.href]) === "about:blank") {
3909
4073
  return;
3910
4074
  }
3911
- } catch (e25) {
4075
+ } catch (e27) {
3912
4076
  }
3913
4077
  setIframeLoaded(true);
3914
4078
  }
@@ -3916,11 +4080,11 @@ function SwappedProviderStep({
3916
4080
  retryToken
3917
4081
  )
3918
4082
  ] }) }),
3919
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4083
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
3920
4084
  ] });
3921
4085
  }
3922
4086
  function deriveStepStates(swappedStatus, latestEvent) {
3923
- if (_chunkN3AAT6BScjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
4087
+ if (_chunkHMUGY66Ocjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3924
4088
  return ["complete", "complete", "failed", "pending"];
3925
4089
  }
3926
4090
  if (swappedStatus === "order_cancelled") {
@@ -3928,7 +4092,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
3928
4092
  }
3929
4093
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
3930
4094
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
3931
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _204 => _204.type]) === "bridge-complete";
4095
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _210 => _210.type]) === "bridge-complete";
3932
4096
  if (step3Complete) {
3933
4097
  return ["complete", "complete", "complete", "complete"];
3934
4098
  }
@@ -3989,7 +4153,7 @@ function FiatOnrampStep({
3989
4153
  openExternally
3990
4154
  }) {
3991
4155
  const loadUrl = _react.useCallback.call(void 0, async () => {
3992
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _205 => _205(
4156
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _211 => _211(
3993
4157
  smartAccount,
3994
4158
  paymentMethod,
3995
4159
  methodSelectionSource
@@ -3998,7 +4162,7 @@ function FiatOnrampStep({
3998
4162
  try {
3999
4163
  const cached = await prefetched;
4000
4164
  if (isSwappedWidgetUrlFresh(cached)) return cached;
4001
- } catch (e26) {
4165
+ } catch (e28) {
4002
4166
  }
4003
4167
  }
4004
4168
  return service.getSwappedWidgetUrl({
@@ -4130,7 +4294,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
4130
4294
  function ExchangeLogo({ exchange }) {
4131
4295
  const [failed, setFailed] = _react.useState.call(void 0, false);
4132
4296
  if (!exchange.logoUrl || failed) {
4133
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BankIcon, {});
4297
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BankIcon, {});
4134
4298
  }
4135
4299
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4136
4300
  "img",
@@ -4175,7 +4339,7 @@ function ExchangeSelectStep({
4175
4339
  setExchanges([]);
4176
4340
  setExchangeFeeBps(0);
4177
4341
  setError(message);
4178
- _optionalChain([onError, 'optionalCall', _206 => _206(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4342
+ _optionalChain([onError, 'optionalCall', _212 => _212(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
4179
4343
  }).finally(() => {
4180
4344
  if (!cancelled) setLoading(false);
4181
4345
  });
@@ -4201,7 +4365,7 @@ function ExchangeSelectStep({
4201
4365
  } catch (err) {
4202
4366
  const message = err instanceof Error ? err.message : "Failed to prepare Connect";
4203
4367
  setSelectionNotice(message);
4204
- _optionalChain([onError, 'optionalCall', _207 => _207(message, "SWAPPED_CONNECT_URL_FAILED")]);
4368
+ _optionalChain([onError, 'optionalCall', _213 => _213(message, "SWAPPED_CONNECT_URL_FAILED")]);
4205
4369
  } finally {
4206
4370
  setSelectingConnection(null);
4207
4371
  }
@@ -4211,14 +4375,14 @@ function ExchangeSelectStep({
4211
4375
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
4212
4376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4213
4377
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4214
- _chunkN3AAT6BScjs.BodyHeader,
4378
+ _chunkHMUGY66Ocjs.BodyHeader,
4215
4379
  {
4216
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.UnplugIcon, {}),
4380
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.UnplugIcon, {}),
4217
4381
  title: "Connect exchange",
4218
4382
  subtitle: "Select an exchange to connect"
4219
4383
  }
4220
4384
  ),
4221
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, {}) }),
4385
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, {}) }),
4222
4386
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
4223
4387
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
4224
4388
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4244,7 +4408,7 @@ function ExchangeSelectStep({
4244
4408
  )
4245
4409
  ] }),
4246
4410
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
4247
- const brand = _chunkN3AAT6BScjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4411
+ const brand = _chunkHMUGY66Ocjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4248
4412
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4249
4413
  "button",
4250
4414
  {
@@ -4269,7 +4433,7 @@ function ExchangeSelectStep({
4269
4433
  );
4270
4434
  }) })
4271
4435
  ] }),
4272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {}),
4436
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {}),
4273
4437
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
4274
4438
  "A ",
4275
4439
  formatFeeRate(exchangeFeeBps),
@@ -4307,7 +4471,7 @@ function SolanaTokenSelectStep({
4307
4471
  setError(null);
4308
4472
  const portfolioBySymbol = {};
4309
4473
  try {
4310
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4474
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4311
4475
  solanaAddress
4312
4476
  });
4313
4477
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -4318,7 +4482,7 @@ function SolanaTokenSelectStep({
4318
4482
  let parsed = 0n;
4319
4483
  try {
4320
4484
  parsed = BigInt(t.balance || "0");
4321
- } catch (e27) {
4485
+ } catch (e29) {
4322
4486
  parsed = 0n;
4323
4487
  }
4324
4488
  if (parsed <= 0n) continue;
@@ -4330,12 +4494,12 @@ function SolanaTokenSelectStep({
4330
4494
  };
4331
4495
  }
4332
4496
  }
4333
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4497
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4334
4498
  symbols: Object.keys(portfolioBySymbol)
4335
4499
  });
4336
4500
  } catch (err) {
4337
4501
  if (!active) return;
4338
- _chunkN3AAT6BScjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4502
+ _chunkHMUGY66Ocjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4339
4503
  solanaAddress
4340
4504
  });
4341
4505
  setError(
@@ -4360,7 +4524,7 @@ function SolanaTokenSelectStep({
4360
4524
  setTokenBalances(results);
4361
4525
  setLoading(false);
4362
4526
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
4363
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _208 => _208(totalUsd)]);
4527
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _214 => _214(totalUsd)]);
4364
4528
  }
4365
4529
  void loadBalances();
4366
4530
  return () => {
@@ -4382,8 +4546,8 @@ function SolanaTokenSelectStep({
4382
4546
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
4383
4547
  const numeric = Number(raw);
4384
4548
  if (!Number.isFinite(numeric)) return raw;
4385
- return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
4386
- } catch (e28) {
4549
+ return _chunkHMUGY66Ocjs.tokenFormatter.format(numeric);
4550
+ } catch (e30) {
4387
4551
  return "--";
4388
4552
  }
4389
4553
  };
@@ -4392,20 +4556,20 @@ function SolanaTokenSelectStep({
4392
4556
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4393
4557
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
4394
4558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4395
- _chunkN3AAT6BScjs.BodyHeader,
4559
+ _chunkHMUGY66Ocjs.BodyHeader,
4396
4560
  {
4397
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
4561
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}),
4398
4562
  title: "Your assets",
4399
4563
  subtitle: "Select source assets to transfer"
4400
4564
  }
4401
4565
  ),
4402
4566
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
4403
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-text-tertiary" }),
4567
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, { className: "rs-text-tertiary" }),
4404
4568
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
4405
4569
  ] }),
4406
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
4570
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: error }),
4407
4571
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
4408
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, { className: "rs-empty-icon" }),
4572
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, { className: "rs-empty-icon" }),
4409
4573
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
4410
4574
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
4411
4575
  solanaAddress.slice(0, 6),
@@ -4436,13 +4600,13 @@ function SolanaTokenSelectStep({
4436
4600
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4437
4601
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4438
4602
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4439
- _chunkN3AAT6BScjs.TokenIcon,
4603
+ _chunkHMUGY66Ocjs.TokenIcon,
4440
4604
  {
4441
4605
  symbol: entry.token.symbol,
4442
4606
  fallback: entry.token.symbol.slice(0, 4)
4443
4607
  }
4444
4608
  ) }),
4445
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4609
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4446
4610
  ] }),
4447
4611
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
4448
4612
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -4459,14 +4623,14 @@ function SolanaTokenSelectStep({
4459
4623
  ] })
4460
4624
  ] })
4461
4625
  ] }),
4462
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4626
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkHMUGY66Ocjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4463
4627
  ]
4464
4628
  },
4465
4629
  entry.token.symbol
4466
4630
  );
4467
4631
  }) }),
4468
4632
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4469
- _chunkN3AAT6BScjs.Button,
4633
+ _chunkHMUGY66Ocjs.Button,
4470
4634
  {
4471
4635
  onClick: () => selectedEntry && onContinue(
4472
4636
  selectedEntry.token,
@@ -4479,7 +4643,7 @@ function SolanaTokenSelectStep({
4479
4643
  }
4480
4644
  )
4481
4645
  ] }),
4482
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4646
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
4483
4647
  ] });
4484
4648
  }
4485
4649
 
@@ -4511,7 +4675,7 @@ function SolanaAmountStep({
4511
4675
  const [error, setError] = _react.useState.call(void 0, null);
4512
4676
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
4513
4677
  const isSourceStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, token.symbol);
4514
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _209 => _209.trim, 'call', _210 => _210(), 'access', _211 => _211.toLowerCase, 'call', _212 => _212()]) === "max";
4678
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _215 => _215.trim, 'call', _216 => _216(), 'access', _217 => _217.toLowerCase, 'call', _218 => _218()]) === "max";
4515
4679
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
4516
4680
  if (isSourceStablecoin) return 1;
4517
4681
  try {
@@ -4521,7 +4685,7 @@ function SolanaAmountStep({
4521
4685
  }
4522
4686
  const price = balanceUsd / balanceUnits;
4523
4687
  return price > 0 ? price : null;
4524
- } catch (e29) {
4688
+ } catch (e31) {
4525
4689
  return null;
4526
4690
  }
4527
4691
  }, [isSourceStablecoin, balance, token.decimals, balanceUsd]);
@@ -4531,8 +4695,8 @@ function SolanaAmountStep({
4531
4695
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
4532
4696
  const numeric = Number(raw);
4533
4697
  if (!Number.isFinite(numeric)) return raw;
4534
- return _chunkN3AAT6BScjs.tokenFormatter.format(numeric);
4535
- } catch (e30) {
4698
+ return _chunkHMUGY66Ocjs.tokenFormatter.format(numeric);
4699
+ } catch (e32) {
4536
4700
  return "\u2026";
4537
4701
  }
4538
4702
  }, [balance, token.decimals]);
@@ -4543,7 +4707,7 @@ function SolanaAmountStep({
4543
4707
  if (tokenPriceUsd !== null) return balanceUnits * tokenPriceUsd;
4544
4708
  if (Number.isFinite(balanceUsd) && balanceUsd > 0) return balanceUsd;
4545
4709
  return null;
4546
- } catch (e31) {
4710
+ } catch (e33) {
4547
4711
  return null;
4548
4712
  }
4549
4713
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
@@ -4557,7 +4721,7 @@ function SolanaAmountStep({
4557
4721
  if (!Number.isFinite(spendableUnits) || spendableUnits < 0) return null;
4558
4722
  if (tokenPriceUsd !== null) return spendableUnits * tokenPriceUsd;
4559
4723
  return null;
4560
- } catch (e32) {
4724
+ } catch (e34) {
4561
4725
  return null;
4562
4726
  }
4563
4727
  }, [spendableBalance, token.decimals, tokenPriceUsd]);
@@ -4572,7 +4736,7 @@ function SolanaAmountStep({
4572
4736
  const factor = 1e3;
4573
4737
  const truncated = Math.floor(value * factor) / factor;
4574
4738
  return truncated.toFixed(3).replace(/\.?0+$/, "");
4575
- } catch (e33) {
4739
+ } catch (e35) {
4576
4740
  return "";
4577
4741
  }
4578
4742
  },
@@ -4609,19 +4773,19 @@ function SolanaAmountStep({
4609
4773
  const raw = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
4610
4774
  try {
4611
4775
  return _viem.parseUnits.call(void 0, raw.toString(), token.decimals);
4612
- } catch (e34) {
4776
+ } catch (e36) {
4613
4777
  return null;
4614
4778
  }
4615
4779
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
4616
- const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _214 => _214.minDepositUsd]), () => ( null));
4617
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _215 => _215.maxDepositUsd]), () => ( null));
4780
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _219 => _219.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _220 => _220.minDepositUsd]), () => ( null));
4781
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _221 => _221.maxDepositUsd]), () => ( null));
4618
4782
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
4619
4783
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
4620
4784
  const exceedsBalance = Boolean(
4621
4785
  sourceAmountUnits !== null && sourceAmountUnits > spendableBalance
4622
4786
  );
4623
- const boundsFor = _chunkN3AAT6BScjs.useDepositBounds.call(void 0, );
4624
- const boundViolation = _chunkN3AAT6BScjs.depositBoundsViolation.call(void 0,
4787
+ const boundsFor = _chunkHMUGY66Ocjs.useDepositBounds.call(void 0, );
4788
+ const boundViolation = _chunkHMUGY66Ocjs.depositBoundsViolation.call(void 0,
4625
4789
  boundsFor("solana", token.mint),
4626
4790
  sourceAmountUnits
4627
4791
  );
@@ -4629,7 +4793,7 @@ function SolanaAmountStep({
4629
4793
  const handlePresetClick = (percentage) => {
4630
4794
  const formatted = computePresetAmount(percentage);
4631
4795
  if (!formatted) return;
4632
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4796
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4633
4797
  percentage,
4634
4798
  symbol: token.symbol,
4635
4799
  formatted
@@ -4664,8 +4828,8 @@ function SolanaAmountStep({
4664
4828
  let amountInUnits;
4665
4829
  try {
4666
4830
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
4667
- } catch (e35) {
4668
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4831
+ } catch (e37) {
4832
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4669
4833
  amount,
4670
4834
  sourceAmount: sourceAmountStr,
4671
4835
  reason: "parse-units-failed"
@@ -4680,7 +4844,7 @@ function SolanaAmountStep({
4680
4844
  );
4681
4845
  return;
4682
4846
  }
4683
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4847
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4684
4848
  symbol: token.symbol,
4685
4849
  inputAmountUsd: amount,
4686
4850
  sourceAmount: sourceAmountStr,
@@ -4693,7 +4857,7 @@ function SolanaAmountStep({
4693
4857
  const continueDisabled = exceedsBalance || boundViolation !== null || numericAmount === 0 && !isBelowMin;
4694
4858
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4695
4859
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4696
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Wallet deposit" }),
4860
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}), title: "Wallet deposit" }),
4697
4861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
4698
4862
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
4699
4863
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4713,13 +4877,13 @@ function SolanaAmountStep({
4713
4877
  " available",
4714
4878
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4715
4879
  " (~",
4716
- _chunkN3AAT6BScjs.currencyFormatter.format(computedBalanceUsd),
4880
+ _chunkHMUGY66Ocjs.currencyFormatter.format(computedBalanceUsd),
4717
4881
  ")"
4718
4882
  ] })
4719
4883
  ] }),
4720
4884
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4721
4885
  "Min. deposit ",
4722
- _chunkN3AAT6BScjs.currencyFormatter.format(minDepositUsd)
4886
+ _chunkHMUGY66Ocjs.currencyFormatter.format(minDepositUsd)
4723
4887
  ] })
4724
4888
  ] })
4725
4889
  ] }),
@@ -4742,7 +4906,7 @@ function SolanaAmountStep({
4742
4906
  "Solana ",
4743
4907
  token.symbol
4744
4908
  ] }),
4745
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: token.symbol }) })
4909
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: token.symbol }) })
4746
4910
  ] })
4747
4911
  ] }),
4748
4912
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4753,17 +4917,17 @@ function SolanaAmountStep({
4753
4917
  " ",
4754
4918
  targetTokenSymbol
4755
4919
  ] }),
4756
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.TokenIcon, { symbol: targetTokenSymbol }) })
4920
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.TokenIcon, { symbol: targetTokenSymbol }) })
4757
4921
  ] })
4758
4922
  ] }),
4759
4923
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4760
4924
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN3AAT6BScjs.currencyFormatter.format(balanceAfterUsd) })
4925
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkHMUGY66Ocjs.currencyFormatter.format(balanceAfterUsd) })
4762
4926
  ] })
4763
4927
  ] }),
4764
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
4928
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: error }),
4765
4929
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4766
- _chunkN3AAT6BScjs.Button,
4930
+ _chunkHMUGY66Ocjs.Button,
4767
4931
  {
4768
4932
  onClick: handleContinue,
4769
4933
  fullWidth: true,
@@ -4772,7 +4936,7 @@ function SolanaAmountStep({
4772
4936
  }
4773
4937
  )
4774
4938
  ] }),
4775
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
4939
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
4776
4940
  ] });
4777
4941
  }
4778
4942
 
@@ -4792,10 +4956,10 @@ function loadSolanaDependencies() {
4792
4956
  return dependenciesPromise2;
4793
4957
  }
4794
4958
  function getSolanaRpcUrl(rpcUrls) {
4795
- return _nullishCoalesce(_chunkN3AAT6BScjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4959
+ return _nullishCoalesce(_chunkHMUGY66Ocjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4796
4960
  }
4797
4961
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4798
- return _chunkN3AAT6BScjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4962
+ return _chunkHMUGY66Ocjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4799
4963
  }
4800
4964
  async function getSolanaConnection(rpcUrls) {
4801
4965
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4912,14 +5076,14 @@ function SolanaConfirmStep({
4912
5076
  onSubmittingChange,
4913
5077
  debug
4914
5078
  }) {
4915
- const rpcUrls = _chunkN3AAT6BScjs.useRpcUrls.call(void 0, );
5079
+ const rpcUrls = _chunkHMUGY66Ocjs.useRpcUrls.call(void 0, );
4916
5080
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4917
5081
  const [error, setError] = _react.useState.call(void 0, null);
4918
5082
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
4919
5083
  onSubmittingChangeRef.current = onSubmittingChange;
4920
5084
  _react.useEffect.call(void 0, () => {
4921
- _optionalChain([onSubmittingChangeRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217(isSubmitting)]);
4922
- return () => _optionalChain([onSubmittingChangeRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219(false)]);
5085
+ _optionalChain([onSubmittingChangeRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223(isSubmitting)]);
5086
+ return () => _optionalChain([onSubmittingChangeRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225(false)]);
4923
5087
  }, [isSubmitting]);
4924
5088
  const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
4925
5089
  const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
@@ -4927,28 +5091,28 @@ function SolanaConfirmStep({
4927
5091
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
4928
5092
  const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, "solana");
4929
5093
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
4930
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _220 => _220.feeSponsored]), () => ( false));
4931
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _221 => _221.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4932
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkN3AAT6BScjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
5094
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _226 => _226.feeSponsored]), () => ( false));
5095
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _227 => _227.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
5096
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkHMUGY66Ocjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4933
5097
  const receiveDisplay = (() => {
4934
5098
  const usdValue = Number(targetAmount);
4935
5099
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4936
- const estimate = _chunkN3AAT6BScjs.formatReceiveEstimate.call(void 0, {
5100
+ const estimate = _chunkHMUGY66Ocjs.formatReceiveEstimate.call(void 0, {
4937
5101
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4938
5102
  sourceSymbol: token.symbol,
4939
5103
  targetSymbol,
4940
5104
  sourceAmountUsd,
4941
- sourceTrusted: _chunkN3AAT6BScjs.isRecognizedToken.call(void 0, token.mint, "solana"),
5105
+ sourceTrusted: _chunkHMUGY66Ocjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4942
5106
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4943
5107
  // to the source (a held token). See ConfirmStep for the rationale.
4944
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkN3AAT6BScjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
5108
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHMUGY66Ocjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4945
5109
  });
4946
5110
  if (estimate !== void 0) return estimate;
4947
5111
  return targetSymbol;
4948
5112
  })();
4949
5113
  const handleConfirm = async () => {
4950
5114
  if (!solanaProvider) {
4951
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5115
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4952
5116
  reason: "missing-provider"
4953
5117
  });
4954
5118
  setError("Solana wallet not connected");
@@ -4956,7 +5120,7 @@ function SolanaConfirmStep({
4956
5120
  }
4957
5121
  const parsedAmount = parseFloat(sourceAmount);
4958
5122
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4959
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5123
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4960
5124
  reason: "invalid-amount",
4961
5125
  sourceAmount
4962
5126
  });
@@ -4965,7 +5129,7 @@ function SolanaConfirmStep({
4965
5129
  }
4966
5130
  setError(null);
4967
5131
  setIsSubmitting(true);
4968
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
5132
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4969
5133
  smartAccount,
4970
5134
  solanaAddress,
4971
5135
  solanaDepositAddress,
@@ -4975,7 +5139,7 @@ function SolanaConfirmStep({
4975
5139
  });
4976
5140
  try {
4977
5141
  const check = await service.checkAccount(smartAccount);
4978
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
5142
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4979
5143
  smartAccount,
4980
5144
  isRegistered: check.isRegistered,
4981
5145
  targetChain: check.targetChain,
@@ -4988,7 +5152,7 @@ function SolanaConfirmStep({
4988
5152
  }
4989
5153
  const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
4990
5154
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4991
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
5155
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4992
5156
  token: token.symbol,
4993
5157
  sourceAmount,
4994
5158
  amountUnits: amountUnits.toString()
@@ -5005,10 +5169,10 @@ function SolanaConfirmStep({
5005
5169
  token.mint,
5006
5170
  amountUnits
5007
5171
  );
5008
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
5172
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
5009
5173
  token: token.symbol,
5010
5174
  instructionCount: transaction.instructions.length,
5011
- feePayer: _optionalChain([transaction, 'access', _222 => _222.feePayer, 'optionalAccess', _223 => _223.toBase58, 'call', _224 => _224()]),
5175
+ feePayer: _optionalChain([transaction, 'access', _228 => _228.feePayer, 'optionalAccess', _229 => _229.toBase58, 'call', _230 => _230()]),
5012
5176
  recentBlockhash: transaction.recentBlockhash
5013
5177
  });
5014
5178
  const txHash = await sendSolanaTransaction(
@@ -5016,7 +5180,7 @@ function SolanaConfirmStep({
5016
5180
  connection,
5017
5181
  transaction
5018
5182
  );
5019
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
5183
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
5020
5184
  txHash,
5021
5185
  amountUnits: amountUnits.toString()
5022
5186
  });
@@ -5028,21 +5192,21 @@ function SolanaConfirmStep({
5028
5192
  });
5029
5193
  } catch (err) {
5030
5194
  const raw = err instanceof Error ? err.message : "Transfer failed";
5031
- const message = _chunkN3AAT6BScjs.formatUserError.call(void 0, raw);
5032
- _chunkN3AAT6BScjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
5195
+ const message = _chunkHMUGY66Ocjs.formatUserError.call(void 0, raw);
5196
+ _chunkHMUGY66Ocjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
5033
5197
  smartAccount,
5034
5198
  token: token.symbol,
5035
5199
  sourceAmount
5036
5200
  });
5037
5201
  setError(message);
5038
- _optionalChain([onError, 'optionalCall', _225 => _225(message, "SOLANA_TRANSFER_ERROR", raw)]);
5202
+ _optionalChain([onError, 'optionalCall', _231 => _231(message, "SOLANA_TRANSFER_ERROR", raw)]);
5039
5203
  } finally {
5040
5204
  setIsSubmitting(false);
5041
5205
  }
5042
5206
  };
5043
5207
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5044
5208
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5045
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}), title: "Review deposit" }),
5209
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}), title: "Review deposit" }),
5046
5210
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5047
5211
  ReviewDetails,
5048
5212
  {
@@ -5058,9 +5222,9 @@ function SolanaConfirmStep({
5058
5222
  fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
5059
5223
  }
5060
5224
  ),
5061
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Callout, { variant: "error", children: error }),
5225
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Callout, { variant: "error", children: error }),
5062
5226
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5063
- _chunkN3AAT6BScjs.Button,
5227
+ _chunkHMUGY66Ocjs.Button,
5064
5228
  {
5065
5229
  onClick: handleConfirm,
5066
5230
  loading: isSubmitting,
@@ -5071,7 +5235,7 @@ function SolanaConfirmStep({
5071
5235
  }
5072
5236
  )
5073
5237
  ] }),
5074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
5075
5239
  ] });
5076
5240
  }
5077
5241
 
@@ -5086,19 +5250,19 @@ function DappImportAssetSelectStep({
5086
5250
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5087
5251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5088
5252
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5089
- _chunkN3AAT6BScjs.BodyHeader,
5253
+ _chunkHMUGY66Ocjs.BodyHeader,
5090
5254
  {
5091
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
5255
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}),
5092
5256
  title: `Transfer from ${sourceLabel}`,
5093
5257
  subtitle: "Pick the balance to import"
5094
5258
  }
5095
5259
  ),
5096
5260
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
5097
5261
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
5098
- const tokenAmount = asset.balance ? _chunkN3AAT6BScjs.tokenFormatter.format(
5262
+ const tokenAmount = asset.balance ? _chunkHMUGY66Ocjs.tokenFormatter.format(
5099
5263
  Number(asset.balance) / 10 ** asset.decimals
5100
5264
  ) : "0";
5101
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5265
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkHMUGY66Ocjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5102
5266
  const assetIcon = asset.icon;
5103
5267
  const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
5104
5268
  const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, asset.chainId);
@@ -5111,14 +5275,14 @@ function DappImportAssetSelectStep({
5111
5275
  children: [
5112
5276
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
5113
5277
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
5114
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5115
- _chunkN3AAT6BScjs.TokenIcon,
5278
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5279
+ _chunkHMUGY66Ocjs.TokenIcon,
5116
5280
  {
5117
5281
  symbol: asset.symbol,
5118
5282
  fallback: asset.symbol.slice(0, 4)
5119
5283
  }
5120
5284
  ) }),
5121
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5285
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5122
5286
  "span",
5123
5287
  {
5124
5288
  className: "rs-asset-chain-badge",
@@ -5150,7 +5314,7 @@ function DappImportAssetSelectStep({
5150
5314
  );
5151
5315
  }) })
5152
5316
  ] }),
5153
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5317
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
5154
5318
  ] });
5155
5319
  }
5156
5320
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -5172,7 +5336,7 @@ function describeRow(status, comingSoon) {
5172
5336
  }
5173
5337
  if (status.enabled) {
5174
5338
  return {
5175
- subtitle: status.balanceUsd > 0 ? _chunkN3AAT6BScjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5339
+ subtitle: status.balanceUsd > 0 ? _chunkHMUGY66Ocjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5176
5340
  disabled: false,
5177
5341
  busy: false
5178
5342
  };
@@ -5195,9 +5359,9 @@ function DappImportSelectStep({
5195
5359
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5196
5360
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5197
5361
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5198
- _chunkN3AAT6BScjs.BodyHeader,
5362
+ _chunkHMUGY66Ocjs.BodyHeader,
5199
5363
  {
5200
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.MigrateAssetsIcon, {}),
5364
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.MigrateAssetsIcon, {}),
5201
5365
  title: "Migrate assets",
5202
5366
  subtitle: "Select a position to migrate"
5203
5367
  }
@@ -5209,16 +5373,16 @@ function DappImportSelectStep({
5209
5373
  Boolean(brand.comingSoon)
5210
5374
  );
5211
5375
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5212
- _chunkN3AAT6BScjs.ListRow,
5376
+ _chunkHMUGY66Ocjs.ListRow,
5213
5377
  {
5214
5378
  leadingMedia: brand.iconUrl,
5215
5379
  title: brand.label,
5216
5380
  subtitle,
5217
5381
  disabled,
5218
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5382
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5219
5383
  onClick: () => {
5220
5384
  if (status === "needs-connect") {
5221
- _optionalChain([onRequestConnect, 'optionalCall', _226 => _226()]);
5385
+ _optionalChain([onRequestConnect, 'optionalCall', _232 => _232()]);
5222
5386
  return;
5223
5387
  }
5224
5388
  onSelect(brand.id);
@@ -5228,7 +5392,7 @@ function DappImportSelectStep({
5228
5392
  );
5229
5393
  }) })
5230
5394
  ] }),
5231
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5395
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
5232
5396
  ] });
5233
5397
  }
5234
5398
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -5245,9 +5409,9 @@ function DappImportAssetSelectSkeleton({
5245
5409
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
5246
5410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5247
5411
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5248
- _chunkN3AAT6BScjs.BodyHeader,
5412
+ _chunkHMUGY66Ocjs.BodyHeader,
5249
5413
  {
5250
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.WalletIcon, {}),
5414
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.WalletIcon, {}),
5251
5415
  title: `Transfer from ${sourceLabel}`,
5252
5416
  subtitle: "Pick the balance to import"
5253
5417
  }
@@ -5285,7 +5449,7 @@ function DappImportAssetSelectSkeleton({
5285
5449
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
5286
5450
  }
5287
5451
  ) }),
5288
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.PoweredBy, {})
5452
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.PoweredBy, {})
5289
5453
  ] });
5290
5454
  }
5291
5455
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -5354,7 +5518,7 @@ function dappImportBalanceSource(asset) {
5354
5518
  if (asset.balance === void 0) return {};
5355
5519
  try {
5356
5520
  return { declaredBalance: BigInt(asset.balance) };
5357
- } catch (e36) {
5521
+ } catch (e38) {
5358
5522
  return {};
5359
5523
  }
5360
5524
  }
@@ -5374,7 +5538,7 @@ var aaveProvider = {
5374
5538
  throw new Error("Aave positions require a backend connection");
5375
5539
  }
5376
5540
  const response = await backend.getPositions(eoa);
5377
- if (_optionalChain([signal, 'optionalAccess', _227 => _227.aborted])) return null;
5541
+ if (_optionalChain([signal, 'optionalAccess', _233 => _233.aborted])) return null;
5378
5542
  const assets = toImportableAssets(response.positions);
5379
5543
  const failures = _nullishCoalesce(response.failures, () => ( []));
5380
5544
  if (assets.length === 0) {
@@ -5707,21 +5871,21 @@ var polymarketProvider = {
5707
5871
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
5708
5872
  const proxyWallet = await _chunkLVCD6RHFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5709
5873
  if (!proxyWallet) return null;
5710
- if (_optionalChain([signal, 'optionalAccess', _228 => _228.aborted])) return null;
5874
+ if (_optionalChain([signal, 'optionalAccess', _234 => _234.aborted])) return null;
5711
5875
  const polygonClient = getPublicClient2(_chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID);
5712
5876
  if (!polygonClient) return null;
5713
5877
  const balances = await _chunkLVCD6RHFcjs.readPolymarketBalances.call(void 0, {
5714
5878
  publicClient: polygonClient,
5715
5879
  proxyWallet
5716
5880
  });
5717
- if (_optionalChain([signal, 'optionalAccess', _229 => _229.aborted])) return null;
5881
+ if (_optionalChain([signal, 'optionalAccess', _235 => _235.aborted])) return null;
5718
5882
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
5719
5883
  const walletKind = await detectPolymarketWalletKind({
5720
5884
  publicClient: polygonClient,
5721
5885
  proxyWallet,
5722
5886
  eoa
5723
5887
  });
5724
- if (_optionalChain([signal, 'optionalAccess', _230 => _230.aborted])) return null;
5888
+ if (_optionalChain([signal, 'optionalAccess', _236 => _236.aborted])) return null;
5725
5889
  if (!walletKind) return null;
5726
5890
  const assets = [];
5727
5891
  if (balances.pusd > 0n) {
@@ -5859,7 +6023,7 @@ function narrowDappImportAvailability(availability, isExcluded) {
5859
6023
  function computeDappImportStatus(providerId, inputs) {
5860
6024
  const { owner, availability, availabilityOwner, setup } = inputs;
5861
6025
  if (!owner) return "needs-connect";
5862
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _231 => _231.toLowerCase, 'call', _232 => _232()]) === owner.toLowerCase() ? availability[providerId] : void 0;
6026
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _237 => _237.toLowerCase, 'call', _238 => _238()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5863
6027
  if (entry === "loading" || entry === void 0) return "loading";
5864
6028
  if (entry === "error") {
5865
6029
  return {
@@ -6201,7 +6365,7 @@ function DepositAnalyticsControllerProvider({
6201
6365
  children,
6202
6366
  controllerRef
6203
6367
  }) {
6204
- const emit = _chunkN3AAT6BScjs.useDepositAnalyticsEmitter.call(void 0, );
6368
+ const emit = _chunkHMUGY66Ocjs.useDepositAnalyticsEmitter.call(void 0, );
6205
6369
  const controller = _react.useMemo.call(void 0,
6206
6370
  () => createDepositAnalyticsController(emit),
6207
6371
  [emit]
@@ -6721,7 +6885,7 @@ function applyAction(state, action) {
6721
6885
  totalUsd: null,
6722
6886
  // Keep any prior chains visible so the cluster does not flicker
6723
6887
  // empty across a refresh.
6724
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _233 => _233.chainIds]), () => ( []))
6888
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _239 => _239.chainIds]), () => ( []))
6725
6889
  }
6726
6890
  }
6727
6891
  }
@@ -6932,7 +7096,7 @@ function applyAction(state, action) {
6932
7096
  flow: { ...state.flow, step: "processing" }
6933
7097
  };
6934
7098
  case "processing/quote-loaded":
6935
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _234 => _234.processing, 'access', _235 => _235.txHash, 'optionalAccess', _236 => _236.toLowerCase, 'call', _237 => _237()]) !== action.txHash.toLowerCase()) {
7099
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _240 => _240.processing, 'access', _241 => _241.txHash, 'optionalAccess', _242 => _242.toLowerCase, 'call', _243 => _243()]) !== action.txHash.toLowerCase()) {
6936
7100
  return state;
6937
7101
  }
6938
7102
  return {
@@ -7267,7 +7431,7 @@ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
7267
7431
  async function fetchPinnedQuote(params) {
7268
7432
  try {
7269
7433
  if (BigInt(params.amount) <= 0n) return void 0;
7270
- } catch (e37) {
7434
+ } catch (e39) {
7271
7435
  return void 0;
7272
7436
  }
7273
7437
  let timeoutId;
@@ -7283,8 +7447,8 @@ async function fetchPinnedQuote(params) {
7283
7447
  timeoutId = setTimeout(resolve, SWAPPED_QUOTE_FEE_TIMEOUT_MS, null);
7284
7448
  })
7285
7449
  ]);
7286
- return quote && !_chunkN3AAT6BScjs.isDepositPolicyRefusal.call(void 0, quote) ? quote : void 0;
7287
- } catch (e38) {
7450
+ return quote && !_chunkHMUGY66Ocjs.isDepositPolicyRefusal.call(void 0, quote) ? quote : void 0;
7451
+ } catch (e40) {
7288
7452
  return void 0;
7289
7453
  } finally {
7290
7454
  if (timeoutId !== void 0) clearTimeout(timeoutId);
@@ -7496,6 +7660,7 @@ function DepositFlow({
7496
7660
  sourceToken: defaultSourceToken,
7497
7661
  amount: defaultAmount,
7498
7662
  recipient,
7663
+ payment,
7499
7664
  appBalanceUsd,
7500
7665
  outputTokenRules,
7501
7666
  rejectUnmapped,
@@ -7526,11 +7691,11 @@ function DepositFlow({
7526
7691
  onError,
7527
7692
  debug
7528
7693
  }) {
7529
- const rpcUrls = _chunkN3AAT6BScjs.useRpcUrls.call(void 0, );
7530
- const onStepChangeRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onStepChange);
7694
+ const rpcUrls = _chunkHMUGY66Ocjs.useRpcUrls.call(void 0, );
7695
+ const onStepChangeRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onStepChange);
7531
7696
  const analytics = useDepositAnalyticsController();
7532
- const onLifecycleRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onLifecycle);
7533
- const onErrorRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onError);
7697
+ const onLifecycleRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onLifecycle);
7698
+ const onErrorRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onError);
7534
7699
  const storeApi = useDepositStoreApi();
7535
7700
  const flowSlice = useDepositStore((s) => s.flow);
7536
7701
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -7547,13 +7712,13 @@ function DepositFlow({
7547
7712
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
7548
7713
  const logFlow = _react.useCallback.call(void 0,
7549
7714
  (message, data) => {
7550
- _chunkN3AAT6BScjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7715
+ _chunkHMUGY66Ocjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7551
7716
  },
7552
7717
  [debug]
7553
7718
  );
7554
7719
  const logFlowError = _react.useCallback.call(void 0,
7555
7720
  (message, error, data) => {
7556
- _chunkN3AAT6BScjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7721
+ _chunkHMUGY66Ocjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7557
7722
  },
7558
7723
  [debug]
7559
7724
  );
@@ -7577,12 +7742,12 @@ function DepositFlow({
7577
7742
  };
7578
7743
  }, [enableSwappedPreconnect]);
7579
7744
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
7580
- if (!_optionalChain([walletClientProp, 'optionalAccess', _238 => _238.switchChain])) return void 0;
7745
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _244 => _244.switchChain])) return void 0;
7581
7746
  return async (chainId) => {
7582
- await _optionalChain([walletClientProp, 'access', _239 => _239.switchChain, 'optionalCall', _240 => _240({ id: chainId })]);
7747
+ await _optionalChain([walletClientProp, 'access', _245 => _245.switchChain, 'optionalCall', _246 => _246({ id: chainId })]);
7583
7748
  };
7584
7749
  }, [walletClientProp]);
7585
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _241 => _241.account, 'optionalAccess', _242 => _242.address]), () => ( null));
7750
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _247 => _247.account, 'optionalAccess', _248 => _248.address]), () => ( null));
7586
7751
  const walletOptions = _react.useMemo.call(void 0, () => {
7587
7752
  const options = [];
7588
7753
  const seen = /* @__PURE__ */ new Set();
@@ -7596,7 +7761,7 @@ function DepositFlow({
7596
7761
  });
7597
7762
  seen.add(id);
7598
7763
  }
7599
- if (_optionalChain([walletSession, 'optionalAccess', _243 => _243.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7764
+ if (_optionalChain([walletSession, 'optionalAccess', _249 => _249.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7600
7765
  const id = _nullishCoalesce(walletSession.caipAddress, () => ( `solana:${walletSession.solanaAddress}`));
7601
7766
  if (!seen.has(id)) {
7602
7767
  options.push({
@@ -7608,7 +7773,7 @@ function DepositFlow({
7608
7773
  });
7609
7774
  seen.add(id);
7610
7775
  }
7611
- } else if (_optionalChain([walletSession, 'optionalAccess', _244 => _244.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7776
+ } else if (_optionalChain([walletSession, 'optionalAccess', _250 => _250.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7612
7777
  const id = `evm:${walletSession.address.toLowerCase()}`;
7613
7778
  if (!seen.has(id)) {
7614
7779
  options.push({
@@ -7624,13 +7789,13 @@ function DepositFlow({
7624
7789
  return options;
7625
7790
  }, [
7626
7791
  connectedWalletAddress,
7627
- _optionalChain([walletSession, 'optionalAccess', _245 => _245.address]),
7628
- _optionalChain([walletSession, 'optionalAccess', _246 => _246.isConnected]),
7629
- _optionalChain([walletSession, 'optionalAccess', _247 => _247.canSignEvm]),
7630
- _optionalChain([walletSession, 'optionalAccess', _248 => _248.icon]),
7631
- _optionalChain([walletSession, 'optionalAccess', _249 => _249.isSolana]),
7632
- _optionalChain([walletSession, 'optionalAccess', _250 => _250.solanaAddress]),
7633
- _optionalChain([walletSession, 'optionalAccess', _251 => _251.caipAddress])
7792
+ _optionalChain([walletSession, 'optionalAccess', _251 => _251.address]),
7793
+ _optionalChain([walletSession, 'optionalAccess', _252 => _252.isConnected]),
7794
+ _optionalChain([walletSession, 'optionalAccess', _253 => _253.canSignEvm]),
7795
+ _optionalChain([walletSession, 'optionalAccess', _254 => _254.icon]),
7796
+ _optionalChain([walletSession, 'optionalAccess', _255 => _255.isSolana]),
7797
+ _optionalChain([walletSession, 'optionalAccess', _256 => _256.solanaAddress]),
7798
+ _optionalChain([walletSession, 'optionalAccess', _257 => _257.caipAddress])
7634
7799
  ]);
7635
7800
  const offeredFiatMethods = _react.useMemo.call(void 0,
7636
7801
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -7650,11 +7815,11 @@ function DepositFlow({
7650
7815
  hasEnabledAssetMigration
7651
7816
  ].filter(Boolean).length;
7652
7817
  const canAutoLock = Boolean(
7653
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _252 => _252.account]) && !walletSession && enabledFeatureCount === 1
7818
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _258 => _258.account]) && !walletSession && enabledFeatureCount === 1
7654
7819
  );
7655
7820
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
7656
7821
  const hasReownSession = Boolean(
7657
- _optionalChain([walletSession, 'optionalAccess', _253 => _253.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _254 => _254.address])
7822
+ _optionalChain([walletSession, 'optionalAccess', _259 => _259.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _260 => _260.address])
7658
7823
  );
7659
7824
  const isDappImportWalletHydrating = Boolean(
7660
7825
  hasWalletClientProp && walletClientProp === void 0 || walletSession && !hasReownSession && !walletSession.isReady
@@ -7685,7 +7850,7 @@ function DepositFlow({
7685
7850
  return;
7686
7851
  }
7687
7852
  let cancelled = false;
7688
- _chunkN3AAT6BScjs.fetchTokenPriceUsd.call(void 0, service, {
7853
+ _chunkHMUGY66Ocjs.fetchTokenPriceUsd.call(void 0, service, {
7689
7854
  chainId: targetChainId,
7690
7855
  address: targetToken,
7691
7856
  symbol: targetSymbol
@@ -7702,11 +7867,11 @@ function DepositFlow({
7702
7867
  return null;
7703
7868
  }
7704
7869
  if (canAutoLock) {
7705
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _255 => _255.chain, 'optionalAccess', _256 => _256.id]), () => ( setupChainId));
7870
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _261 => _261.chain, 'optionalAccess', _262 => _262.id]), () => ( setupChainId));
7706
7871
  return {
7707
7872
  ownerAddress: walletClientProp.account.address,
7708
7873
  walletClient: walletClientProp,
7709
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7874
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkHMUGY66Ocjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7710
7875
  switchChain: dappSwitchChain
7711
7876
  };
7712
7877
  }
@@ -7718,20 +7883,20 @@ function DepositFlow({
7718
7883
  if (selectedOption.kind === "solana") {
7719
7884
  return null;
7720
7885
  }
7721
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _257 => _257.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7722
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _258 => _258.chain, 'optionalAccess', _259 => _259.id]), () => ( setupChainId));
7886
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _263 => _263.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7887
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _264 => _264.chain, 'optionalAccess', _265 => _265.id]), () => ( setupChainId));
7723
7888
  return {
7724
7889
  ownerAddress: walletClientProp.account.address,
7725
7890
  walletClient: walletClientProp,
7726
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7891
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkHMUGY66Ocjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7727
7892
  switchChain: dappSwitchChain
7728
7893
  };
7729
7894
  }
7730
- if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _260 => _260.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7895
+ if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _266 => _266.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7731
7896
  return {
7732
7897
  ownerAddress: walletSession.address,
7733
7898
  walletClient: walletSession.walletClient,
7734
- publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkN3AAT6BScjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7899
+ publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkHMUGY66Ocjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7735
7900
  switchChain: walletSession.switchChain
7736
7901
  };
7737
7902
  }
@@ -7753,7 +7918,7 @@ function DepositFlow({
7753
7918
  // nothing else here when the host switches chain, and the context would go
7754
7919
  // on holding a client bound to the old one: `chainMismatch` never clears
7755
7920
  // and the CTA stays disabled with nothing beside it.
7756
- _optionalChain([walletSession, 'optionalAccess', _261 => _261.walletClient]),
7921
+ _optionalChain([walletSession, 'optionalAccess', _267 => _267.walletClient]),
7757
7922
  setupChainId,
7758
7923
  rpcUrls
7759
7924
  ]);
@@ -7793,35 +7958,35 @@ function DepositFlow({
7793
7958
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
7794
7959
  if (!selectedWalletId) return null;
7795
7960
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
7796
- if (_optionalChain([opt, 'optionalAccess', _262 => _262.kind]) === "external" && opt.address) {
7961
+ if (_optionalChain([opt, 'optionalAccess', _268 => _268.kind]) === "external" && opt.address) {
7797
7962
  return opt.address;
7798
7963
  }
7799
- if (_optionalChain([opt, 'optionalAccess', _263 => _263.kind]) === "connected" && opt.address) {
7964
+ if (_optionalChain([opt, 'optionalAccess', _269 => _269.kind]) === "connected" && opt.address) {
7800
7965
  return opt.address;
7801
7966
  }
7802
7967
  return null;
7803
7968
  }, [selectedWalletId, walletOptions]);
7804
7969
  const dappImportOwner = _react.useMemo.call(void 0, () => {
7805
7970
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
7806
- if (_optionalChain([walletSession, 'optionalAccess', _264 => _264.address]) && walletSession.isConnected) {
7971
+ if (_optionalChain([walletSession, 'optionalAccess', _270 => _270.address]) && walletSession.isConnected) {
7807
7972
  return walletSession.address;
7808
7973
  }
7809
7974
  if (connectedWalletAddress) return connectedWalletAddress;
7810
7975
  return null;
7811
7976
  }, [
7812
7977
  selectedEvmWalletOwner,
7813
- _optionalChain([walletSession, 'optionalAccess', _265 => _265.address]),
7814
- _optionalChain([walletSession, 'optionalAccess', _266 => _266.isConnected]),
7978
+ _optionalChain([walletSession, 'optionalAccess', _271 => _271.address]),
7979
+ _optionalChain([walletSession, 'optionalAccess', _272 => _272.isConnected]),
7815
7980
  connectedWalletAddress
7816
7981
  ]);
7817
7982
  const activeOwner = _react.useMemo.call(void 0,
7818
7983
  () => resolveOwnerForMode(flowMode, {
7819
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _267 => _267.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7984
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _273 => _273.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7820
7985
  dappImportOwner
7821
7986
  }),
7822
7987
  [
7823
7988
  flowMode,
7824
- _optionalChain([signerContext, 'optionalAccess', _268 => _268.ownerAddress]),
7989
+ _optionalChain([signerContext, 'optionalAccess', _274 => _274.ownerAddress]),
7825
7990
  canAutoLock,
7826
7991
  connectedWalletAddress,
7827
7992
  selectedEvmWalletOwner,
@@ -7838,7 +8003,7 @@ function DepositFlow({
7838
8003
  ].join(":");
7839
8004
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
7840
8005
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
7841
- _optionalChain([onLifecycleRef, 'access', _269 => _269.current, 'optionalCall', _270 => _270({
8006
+ _optionalChain([onLifecycleRef, 'access', _275 => _275.current, 'optionalCall', _276 => _276({
7842
8007
  type: "smart-account-changed",
7843
8008
  evm: activeEntry.smartAccount,
7844
8009
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -7866,7 +8031,7 @@ function DepositFlow({
7866
8031
  return;
7867
8032
  }
7868
8033
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
7869
- _optionalChain([onLifecycleRef, 'access', _271 => _271.current, 'optionalCall', _272 => _272({
8034
+ _optionalChain([onLifecycleRef, 'access', _277 => _277.current, 'optionalCall', _278 => _278({
7870
8035
  type: "connected",
7871
8036
  address: activeOwner,
7872
8037
  smartAccount: activeEntry.smartAccount
@@ -7939,7 +8104,7 @@ function DepositFlow({
7939
8104
  const handleWalletDisconnect = _react.useCallback.call(void 0, () => {
7940
8105
  analytics.abandon("wallet_disconnect");
7941
8106
  analytics.resetAttempt();
7942
- _optionalChain([onDisconnect, 'optionalCall', _273 => _273()]);
8107
+ _optionalChain([onDisconnect, 'optionalCall', _279 => _279()]);
7943
8108
  storeApi.dispatch({
7944
8109
  type: "back/requested",
7945
8110
  hasWalletOptions: hasWalletOptions || Boolean(walletSession)
@@ -7952,7 +8117,7 @@ function DepositFlow({
7952
8117
  setQrSourcePrice({ resolved: false, usd: null });
7953
8118
  if (!qrSourceAsset) return;
7954
8119
  let cancelled = false;
7955
- _chunkN3AAT6BScjs.fetchTokenPriceUsd.call(void 0, service, {
8120
+ _chunkHMUGY66Ocjs.fetchTokenPriceUsd.call(void 0, service, {
7956
8121
  chainId: qrSourceAsset.chainId,
7957
8122
  address: qrSourceAsset.token,
7958
8123
  symbol: qrSourceAsset.symbol
@@ -7975,7 +8140,7 @@ function DepositFlow({
7975
8140
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
7976
8141
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
7977
8142
  _react.useEffect.call(void 0, () => {
7978
- _optionalChain([onStepChangeRef, 'access', _274 => _274.current, 'optionalCall', _275 => _275(currentBackHandler, currentScreen)]);
8143
+ _optionalChain([onStepChangeRef, 'access', _280 => _280.current, 'optionalCall', _281 => _281(currentBackHandler, currentScreen)]);
7979
8144
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
7980
8145
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
7981
8146
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -7985,7 +8150,7 @@ function DepositFlow({
7985
8150
  modalContentElRef.current = mc;
7986
8151
  const ro = new ResizeObserver((entries) => {
7987
8152
  for (const entry of entries) {
7988
- const border = _optionalChain([entry, 'access', _276 => _276.borderBoxSize, 'optionalAccess', _277 => _277[0], 'optionalAccess', _278 => _278.blockSize]);
8153
+ const border = _optionalChain([entry, 'access', _282 => _282.borderBoxSize, 'optionalAccess', _283 => _283[0], 'optionalAccess', _284 => _284.blockSize]);
7989
8154
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
7990
8155
  }
7991
8156
  });
@@ -8046,7 +8211,7 @@ function DepositFlow({
8046
8211
  targetToken
8047
8212
  ]);
8048
8213
  _react.useEffect.call(void 0, () => {
8049
- _optionalChain([onLifecycleRef, 'access', _279 => _279.current, 'optionalCall', _280 => _280({
8214
+ _optionalChain([onLifecycleRef, 'access', _285 => _285.current, 'optionalCall', _286 => _286({
8050
8215
  type: "balance-changed",
8051
8216
  totalUsd: totalBalanceUsd
8052
8217
  })]);
@@ -8063,9 +8228,9 @@ function DepositFlow({
8063
8228
  const handleConfirmWallet = _react.useCallback.call(void 0,
8064
8229
  (walletId) => {
8065
8230
  const selectedOption = walletOptions.find((o) => o.id === walletId);
8066
- const mode = _optionalChain([selectedOption, 'optionalAccess', _281 => _281.kind]) === "solana" ? "solana-wallet" : "wallet";
8231
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _287 => _287.kind]) === "solana" ? "solana-wallet" : "wallet";
8067
8232
  analytics.selectMethod("wallet", "user", {
8068
- network: _optionalChain([selectedOption, 'optionalAccess', _282 => _282.kind]) === "solana" ? "solana" : "evm",
8233
+ network: _optionalChain([selectedOption, 'optionalAccess', _288 => _288.kind]) === "solana" ? "solana" : "evm",
8069
8234
  integration: _nullishCoalesce(walletIntegration, () => ( "none"))
8070
8235
  });
8071
8236
  storeApi.dispatch({
@@ -8077,7 +8242,7 @@ function DepositFlow({
8077
8242
  [analytics, walletIntegration, walletOptions, storeApi]
8078
8243
  );
8079
8244
  const isSolanaWalletConnected = Boolean(
8080
- _optionalChain([walletSession, 'optionalAccess', _283 => _283.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _284 => _284.isSolana])
8245
+ _optionalChain([walletSession, 'optionalAccess', _289 => _289.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _290 => _290.isSolana])
8081
8246
  );
8082
8247
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
8083
8248
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -8094,7 +8259,7 @@ function DepositFlow({
8094
8259
  const owner = dappImportOwner;
8095
8260
  if (owner) {
8096
8261
  const wallet = walletOptions.find(
8097
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _285 => _285.toLowerCase, 'call', _286 => _286()]) === owner.toLowerCase()
8262
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === owner.toLowerCase()
8098
8263
  );
8099
8264
  if (wallet) {
8100
8265
  storeApi.dispatch({
@@ -8138,8 +8303,8 @@ function DepositFlow({
8138
8303
  eoa: dappImportOwner,
8139
8304
  getPublicClient: (chainId) => {
8140
8305
  try {
8141
- return _chunkN3AAT6BScjs.getPublicClient.call(void 0, chainId, rpcUrls);
8142
- } catch (e39) {
8306
+ return _chunkHMUGY66Ocjs.getPublicClient.call(void 0, chainId, rpcUrls);
8307
+ } catch (e41) {
8143
8308
  return null;
8144
8309
  }
8145
8310
  },
@@ -8196,7 +8361,7 @@ function DepositFlow({
8196
8361
  const storedDappImportAvailability = useDepositStore(
8197
8362
  (s) => s.dappImport.availability
8198
8363
  );
8199
- const isExcludedByRestrictedList = _chunkN3AAT6BScjs.useRestrictedListExclusion.call(void 0, );
8364
+ const isExcludedByRestrictedList = _chunkHMUGY66Ocjs.useRestrictedListExclusion.call(void 0, );
8200
8365
  const dappImportAvailability = _react.useMemo.call(void 0,
8201
8366
  () => narrowDappImportAvailability(
8202
8367
  storedDappImportAvailability,
@@ -8251,7 +8416,7 @@ function DepositFlow({
8251
8416
  }, [activeDappImportProviderId, enabledDappImportProviders]);
8252
8417
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
8253
8418
  if (!activeDappImportProviderId) return null;
8254
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) !== dappImportOwner.toLowerCase()) {
8419
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _293 => _293.toLowerCase, 'call', _294 => _294()]) !== dappImportOwner.toLowerCase()) {
8255
8420
  return null;
8256
8421
  }
8257
8422
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -8294,7 +8459,7 @@ function DepositFlow({
8294
8459
  setup: setupSlice
8295
8460
  });
8296
8461
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
8297
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _289 => _289.toLowerCase, 'call', _290 => _290()]) === dappImportOwner.toLowerCase()
8462
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _295 => _295.toLowerCase, 'call', _296 => _296()]) === dappImportOwner.toLowerCase()
8298
8463
  ), () => ( null)) : null;
8299
8464
  const outcome = resolveBootOutcome({
8300
8465
  status,
@@ -8344,7 +8509,7 @@ function DepositFlow({
8344
8509
  if (dappImportOwner) {
8345
8510
  const plan = bootRetryPlan({
8346
8511
  setupStatus: snapshot.setup.status,
8347
- availabilityEntry: _optionalChain([snapshot, 'access', _291 => _291.dappImport, 'access', _292 => _292.availabilityOwner, 'optionalAccess', _293 => _293.toLowerCase, 'call', _294 => _294()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8512
+ availabilityEntry: _optionalChain([snapshot, 'access', _297 => _297.dappImport, 'access', _298 => _298.availabilityOwner, 'optionalAccess', _299 => _299.toLowerCase, 'call', _300 => _300()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8348
8513
  });
8349
8514
  if (plan.restartSetup) {
8350
8515
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -8418,7 +8583,7 @@ function DepositFlow({
8418
8583
  acceptedExchangeFeeBps: disclosedFeeBps
8419
8584
  });
8420
8585
  } catch (error) {
8421
- if (error instanceof _chunkN3AAT6BScjs.SwappedConnectFeeChangedError) {
8586
+ if (error instanceof _chunkHMUGY66Ocjs.SwappedConnectFeeChangedError) {
8422
8587
  return error.exchangeFeeBps;
8423
8588
  }
8424
8589
  throw error;
@@ -8426,7 +8591,7 @@ function DepositFlow({
8426
8591
  entry = { smartAccount: owner, response };
8427
8592
  }
8428
8593
  const currentAccount = storeApi.getState().setup.smartAccount;
8429
- if (_optionalChain([currentAccount, 'optionalAccess', _295 => _295.toLowerCase, 'call', _296 => _296()]) !== owner) {
8594
+ if (_optionalChain([currentAccount, 'optionalAccess', _301 => _301.toLowerCase, 'call', _302 => _302()]) !== owner) {
8430
8595
  swappedConnectUrlRef.current.delete(key);
8431
8596
  throw new Error("Deposit account changed. Select your exchange again.");
8432
8597
  }
@@ -8460,7 +8625,7 @@ function DepositFlow({
8460
8625
  );
8461
8626
  }
8462
8627
  swappedConnectUrlRef.current.delete(key);
8463
- const response = _optionalChain([entry, 'optionalAccess', _297 => _297.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8628
+ const response = _optionalChain([entry, 'optionalAccess', _303 => _303.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8464
8629
  smartAccount,
8465
8630
  connection,
8466
8631
  acceptedExchangeFeeBps: expectedFeeBps
@@ -8628,7 +8793,7 @@ function DepositFlow({
8628
8793
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
8629
8794
  analytics.completeStep();
8630
8795
  analytics.resetAttempt();
8631
- _optionalChain([onLifecycleRef, 'access', _298 => _298.current, 'optionalCall', _299 => _299({
8796
+ _optionalChain([onLifecycleRef, 'access', _304 => _304.current, 'optionalCall', _305 => _305({
8632
8797
  type: "smart-account-changed",
8633
8798
  evm: null,
8634
8799
  solana: null
@@ -8648,7 +8813,8 @@ function DepositFlow({
8648
8813
  recipient,
8649
8814
  outputTokenRules,
8650
8815
  rejectUnmapped,
8651
- forceRegister
8816
+ forceRegister,
8817
+ ...payment ? { salt: payment.salt } : {}
8652
8818
  }),
8653
8819
  [
8654
8820
  targetChain,
@@ -8656,20 +8822,21 @@ function DepositFlow({
8656
8822
  recipient,
8657
8823
  outputTokenRules,
8658
8824
  rejectUnmapped,
8659
- forceRegister
8825
+ forceRegister,
8826
+ payment
8660
8827
  ]
8661
8828
  );
8662
- const desiredSetupRequestKey = _chunkN3AAT6BScjs.computeRequestKey.call(void 0, setupInput);
8829
+ const desiredSetupRequestKey = _chunkHMUGY66Ocjs.computeRequestKey.call(void 0, setupInput);
8663
8830
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
8664
8831
  _react.useEffect.call(void 0, () => {
8665
8832
  void (async () => {
8666
- const requestKey = _chunkN3AAT6BScjs.computeRequestKey.call(void 0, setupInput);
8667
- const cacheKey = _chunkN3AAT6BScjs.computeCacheKey.call(void 0, setupInput);
8668
- const cacheable = _chunkN3AAT6BScjs.computeIsCacheable.call(void 0, setupInput);
8833
+ const requestKey = _chunkHMUGY66Ocjs.computeRequestKey.call(void 0, setupInput);
8834
+ const cacheKey = _chunkHMUGY66Ocjs.computeCacheKey.call(void 0, setupInput);
8835
+ const cacheable = _chunkHMUGY66Ocjs.computeIsCacheable.call(void 0, setupInput);
8669
8836
  if (storeApi.getState().setup.requestKey === requestKey) {
8670
8837
  return;
8671
8838
  }
8672
- const dedupedResult = _chunkN3AAT6BScjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8839
+ const dedupedResult = _chunkHMUGY66Ocjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8673
8840
  if (dedupedResult) {
8674
8841
  storeApi.dispatch({
8675
8842
  type: "setup/started",
@@ -8695,7 +8862,7 @@ function DepositFlow({
8695
8862
  cacheable
8696
8863
  });
8697
8864
  try {
8698
- const result = await _chunkN3AAT6BScjs.runAccountSetupDeduped.call(void 0,
8865
+ const result = await _chunkHMUGY66Ocjs.runAccountSetupDeduped.call(void 0,
8699
8866
  setupInput,
8700
8867
  { service, debug },
8701
8868
  requestKey
@@ -8710,7 +8877,7 @@ function DepositFlow({
8710
8877
  }
8711
8878
  });
8712
8879
  } catch (error) {
8713
- const message = error instanceof _chunkN3AAT6BScjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8880
+ const message = error instanceof _chunkHMUGY66Ocjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8714
8881
  storeApi.dispatch({
8715
8882
  type: "setup/failed",
8716
8883
  requestKey,
@@ -8742,11 +8909,11 @@ function DepositFlow({
8742
8909
  return;
8743
8910
  }
8744
8911
  storeApi.dispatch({ type: "portfolio/loading", network, address });
8745
- const requestId = _optionalChain([readPortfolioEntry, 'call', _300 => _300(
8912
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _306 => _306(
8746
8913
  storeApi.getState().portfolio,
8747
8914
  network,
8748
8915
  address
8749
- ), 'optionalAccess', _301 => _301.requestId]);
8916
+ ), 'optionalAccess', _307 => _307.requestId]);
8750
8917
  if (requestId === void 0) return;
8751
8918
  void (async () => {
8752
8919
  try {
@@ -8759,9 +8926,9 @@ function DepositFlow({
8759
8926
  address,
8760
8927
  requestId,
8761
8928
  totalUsd: portfolio.totalUsd,
8762
- chainIds: _chunkN3AAT6BScjs.chainIdsByValue.call(void 0, portfolio.tokens)
8929
+ chainIds: _chunkHMUGY66Ocjs.chainIdsByValue.call(void 0, portfolio.tokens)
8763
8930
  });
8764
- } catch (e40) {
8931
+ } catch (e42) {
8765
8932
  storeApi.dispatch({
8766
8933
  type: "portfolio/failed",
8767
8934
  network,
@@ -8783,7 +8950,7 @@ function DepositFlow({
8783
8950
  { type: "transaction_hash", value: data.txHash },
8784
8951
  "transfer_tracking"
8785
8952
  );
8786
- _optionalChain([onLifecycleRef, 'access', _302 => _302.current, 'optionalCall', _303 => _303({ type: "submitted", ...data })]);
8953
+ _optionalChain([onLifecycleRef, 'access', _308 => _308.current, 'optionalCall', _309 => _309({ type: "submitted", ...data })]);
8787
8954
  },
8788
8955
  [analytics, logFlow, onLifecycleRef]
8789
8956
  );
@@ -8852,7 +9019,7 @@ function DepositFlow({
8852
9019
  sourceDecimals: tokenAtSubmit.decimals,
8853
9020
  inputAmountUsd: amountUsd
8854
9021
  });
8855
- _optionalChain([onLifecycleRef, 'access', _304 => _304.current, 'optionalCall', _305 => _305({
9022
+ _optionalChain([onLifecycleRef, 'access', _310 => _310.current, 'optionalCall', _311 => _311({
8856
9023
  type: "submitted",
8857
9024
  txHash,
8858
9025
  sourceChain: "solana",
@@ -8946,8 +9113,8 @@ function DepositFlow({
8946
9113
  sourceChain: chainId,
8947
9114
  sourceToken: token,
8948
9115
  amount,
8949
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _306 => _306.symbol]),
8950
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _307 => _307.decimals]),
9116
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _312 => _312.symbol]),
9117
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _313 => _313.decimals]),
8951
9118
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
8952
9119
  directTransfer: routed.directTransfer,
8953
9120
  sourceTxHashPending: routed.sourceTxHashPending,
@@ -8988,7 +9155,7 @@ function DepositFlow({
8988
9155
  swappedContext,
8989
9156
  initialEvent: info.initialEvent
8990
9157
  });
8991
- _optionalChain([onLifecycleRef, 'access', _308 => _308.current, 'optionalCall', _309 => _309({
9158
+ _optionalChain([onLifecycleRef, 'access', _314 => _314.current, 'optionalCall', _315 => _315({
8992
9159
  type: "submitted",
8993
9160
  txHash: info.txHash,
8994
9161
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -9016,12 +9183,12 @@ function DepositFlow({
9016
9183
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
9017
9184
  (txHash, sourceChain, amount) => {
9018
9185
  const depositAtSubmit = storeApi.getState().deposit;
9019
- _optionalChain([onLifecycleRef, 'access', _310 => _310.current, 'optionalCall', _311 => _311({
9186
+ _optionalChain([onLifecycleRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317({
9020
9187
  type: "submitted",
9021
9188
  txHash,
9022
9189
  sourceChain,
9023
9190
  amount,
9024
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _312 => _312.selectedAsset, 'optionalAccess', _313 => _313.decimals]),
9191
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _318 => _318.selectedAsset, 'optionalAccess', _319 => _319.decimals]),
9025
9192
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
9026
9193
  })]);
9027
9194
  },
@@ -9034,7 +9201,7 @@ function DepositFlow({
9034
9201
  analyticsStepForFlowStep(analyticsMethod, "processing")
9035
9202
  );
9036
9203
  analytics.outcome("completed");
9037
- _optionalChain([onLifecycleRef, 'access', _314 => _314.current, 'optionalCall', _315 => _315({
9204
+ _optionalChain([onLifecycleRef, 'access', _320 => _320.current, 'optionalCall', _321 => _321({
9038
9205
  type: "complete",
9039
9206
  txHash,
9040
9207
  destinationTxHash,
@@ -9051,7 +9218,7 @@ function DepositFlow({
9051
9218
  );
9052
9219
  analytics.outcome("failed");
9053
9220
  analytics.failure("processor_failed", false);
9054
- _optionalChain([onLifecycleRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317({ type: "failed", txHash, error })]);
9221
+ _optionalChain([onLifecycleRef, 'access', _322 => _322.current, 'optionalCall', _323 => _323({ type: "failed", txHash, error })]);
9055
9222
  },
9056
9223
  [analytics, analyticsMethod, logFlowError, onLifecycleRef]
9057
9224
  );
@@ -9072,7 +9239,7 @@ function DepositFlow({
9072
9239
  failureStep
9073
9240
  );
9074
9241
  }
9075
- _optionalChain([onErrorRef, 'access', _318 => _318.current, 'optionalCall', _319 => _319({ message, code, cause })]);
9242
+ _optionalChain([onErrorRef, 'access', _324 => _324.current, 'optionalCall', _325 => _325({ message, code, cause })]);
9076
9243
  },
9077
9244
  [analytics, logFlowError, onErrorRef]
9078
9245
  );
@@ -9121,9 +9288,9 @@ function DepositFlow({
9121
9288
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
9122
9289
  state,
9123
9290
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
9124
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _320 => _320.status]), () => ( "loading")),
9125
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _321 => _321.status]) === "ready" ? portfolioEntry.totalUsd : null,
9126
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _322 => _322.chainIds]), () => ( []))
9291
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _326 => _326.status]), () => ( "loading")),
9292
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _327 => _327.status]) === "ready" ? portfolioEntry.totalUsd : null,
9293
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _328 => _328.chainIds]), () => ( []))
9127
9294
  };
9128
9295
  });
9129
9296
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -9137,6 +9304,7 @@ function DepositFlow({
9137
9304
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9138
9305
  ConnectStep,
9139
9306
  {
9307
+ title: payment ? "Pay" : void 0,
9140
9308
  walletRows,
9141
9309
  defaultMethodTab: flowSlice.methodTab,
9142
9310
  onMethodTabChange: (tab) => storeApi.dispatch({ type: "connect/method-tab-changed", tab }),
@@ -9206,6 +9374,7 @@ function DepositFlow({
9206
9374
  effectiveStep.type === "deposit-address" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9207
9375
  DepositAddressStep,
9208
9376
  {
9377
+ payment,
9209
9378
  smartAccount: effectiveStep.smartAccount,
9210
9379
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
9211
9380
  service,
@@ -9304,7 +9473,7 @@ function DepositFlow({
9304
9473
  consumePrefetchedUrl: consumeSwappedWidgetUrlPrefetch,
9305
9474
  onSwappedComplete: handleSwappedComplete,
9306
9475
  onSwappedFailed: handleDepositFailed,
9307
- onClose: () => _optionalChain([onClose, 'optionalCall', _323 => _323(
9476
+ onClose: () => _optionalChain([onClose, 'optionalCall', _329 => _329(
9308
9477
  openExternally ? "native_dismiss_request" : "header_button"
9309
9478
  )]),
9310
9479
  onGoBack: handleProviderBack,
@@ -9318,8 +9487,9 @@ function DepositFlow({
9318
9487
  }
9319
9488
  ),
9320
9489
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9321
- _chunkN3AAT6BScjs.ProcessingStep,
9490
+ _chunkHMUGY66Ocjs.ProcessingStep,
9322
9491
  {
9492
+ flowLabel: payment ? "payment" : void 0,
9323
9493
  smartAccount: step.smartAccount,
9324
9494
  solanaDepositAddress: step.solanaDepositAddress,
9325
9495
  txHash: step.txHash,
@@ -9384,7 +9554,7 @@ function DepositFlow({
9384
9554
  loadUrl: () => loadSwappedConnectUrl(step.smartAccount, step.connection),
9385
9555
  onSwappedComplete: handleSwappedComplete,
9386
9556
  onSwappedFailed: handleDepositFailed,
9387
- onClose: () => _optionalChain([onClose, 'optionalCall', _324 => _324(
9557
+ onClose: () => _optionalChain([onClose, 'optionalCall', _330 => _330(
9388
9558
  openExternally ? "native_dismiss_request" : "header_button"
9389
9559
  )]),
9390
9560
  onGoBack: handleProviderBack,
@@ -9398,8 +9568,9 @@ function DepositFlow({
9398
9568
  }
9399
9569
  ),
9400
9570
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9401
- _chunkN3AAT6BScjs.ProcessingStep,
9571
+ _chunkHMUGY66Ocjs.ProcessingStep,
9402
9572
  {
9573
+ flowLabel: payment ? "payment" : void 0,
9403
9574
  smartAccount: step.smartAccount,
9404
9575
  solanaDepositAddress: step.solanaDepositAddress,
9405
9576
  txHash: step.txHash,
@@ -9433,8 +9604,8 @@ function DepositFlow({
9433
9604
  );
9434
9605
  }
9435
9606
  if (isSolanaWalletMode) {
9436
- const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _325 => _325.solanaAddress]);
9437
- const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _326 => _326.solanaProvider]);
9607
+ const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _331 => _331.solanaAddress]);
9608
+ const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _332 => _332.solanaProvider]);
9438
9609
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9439
9610
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9440
9611
  AccountPreparingSkeleton,
@@ -9485,7 +9656,7 @@ function DepositFlow({
9485
9656
  targetToken,
9486
9657
  service,
9487
9658
  solanaProvider,
9488
- solanaConnection: _optionalChain([walletSession, 'optionalAccess', _327 => _327.solanaConnection]),
9659
+ solanaConnection: _optionalChain([walletSession, 'optionalAccess', _333 => _333.solanaConnection]),
9489
9660
  uiConfig,
9490
9661
  onConfirm: handleSolanaConfirmed,
9491
9662
  onError: handleError,
@@ -9527,8 +9698,9 @@ function DepositFlow({
9527
9698
  ) })
9528
9699
  ] }) : null,
9529
9700
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9530
- _chunkN3AAT6BScjs.ProcessingStep,
9701
+ _chunkHMUGY66Ocjs.ProcessingStep,
9531
9702
  {
9703
+ flowLabel: payment ? "payment" : void 0,
9532
9704
  smartAccount: effectiveStep.smartAccount,
9533
9705
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
9534
9706
  txHash: effectiveStep.txHash,
@@ -9566,7 +9738,7 @@ function DepositFlow({
9566
9738
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9567
9739
  DappImportAssetSelectSkeleton,
9568
9740
  {
9569
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _328 => _328.sourceLabel]), () => ( "")),
9741
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _334 => _334.sourceLabel]), () => ( "")),
9570
9742
  error: dappImportBootError,
9571
9743
  onRetry: handleBootRetry
9572
9744
  }
@@ -9588,7 +9760,7 @@ function DepositFlow({
9588
9760
  rows: dappImportSelectRows,
9589
9761
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
9590
9762
  onSelect: (providerId) => {
9591
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _329 => _329.toLowerCase, 'call', _330 => _330()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9763
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _335 => _335.toLowerCase, 'call', _336 => _336()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9592
9764
  if (availabilityEntry === "error") {
9593
9765
  storeApi.dispatch({
9594
9766
  type: "dapp-import/availability-retry-requested"
@@ -9607,16 +9779,16 @@ function DepositFlow({
9607
9779
  }
9608
9780
  );
9609
9781
  }
9610
- if (!_optionalChain([signerContext, 'optionalAccess', _331 => _331.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _332 => _332.publicClient])) {
9782
+ if (!_optionalChain([signerContext, 'optionalAccess', _337 => _337.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _338 => _338.publicClient])) {
9611
9783
  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" }) }) }) }) });
9612
9784
  }
9613
9785
  const ownerAddress = signerContext.ownerAddress;
9614
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _333 => _333.walletClient, 'optionalAccess', _334 => _334.chain, 'optionalAccess', _335 => _335.id]), () => ( _optionalChain([signerContext, 'access', _336 => _336.publicClient, 'access', _337 => _337.chain, 'optionalAccess', _338 => _338.id]))), () => ( setupChainId));
9786
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _339 => _339.walletClient, 'optionalAccess', _340 => _340.chain, 'optionalAccess', _341 => _341.id]), () => ( _optionalChain([signerContext, 'access', _342 => _342.publicClient, 'access', _343 => _343.chain, 'optionalAccess', _344 => _344.id]))), () => ( setupChainId));
9615
9787
  const getReadClientForChain = (chainId) => {
9616
- if (_optionalChain([signerContext, 'access', _339 => _339.publicClient, 'access', _340 => _340.chain, 'optionalAccess', _341 => _341.id]) === chainId) {
9788
+ if (_optionalChain([signerContext, 'access', _345 => _345.publicClient, 'access', _346 => _346.chain, 'optionalAccess', _347 => _347.id]) === chainId) {
9617
9789
  return signerContext.publicClient;
9618
9790
  }
9619
- return _chunkN3AAT6BScjs.getPublicClient.call(void 0, chainId, rpcUrls);
9791
+ return _chunkHMUGY66Ocjs.getPublicClient.call(void 0, chainId, rpcUrls);
9620
9792
  };
9621
9793
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9622
9794
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9642,9 +9814,9 @@ function DepositFlow({
9642
9814
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9643
9815
  DappImportAssetSelectStep,
9644
9816
  {
9645
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _342 => _342.assets, 'access', _343 => _343[0], 'optionalAccess', _344 => _344.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9817
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _348 => _348.assets, 'access', _349 => _349[0], 'optionalAccess', _350 => _350.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9646
9818
  assets: activeDappImportAvailability.assets,
9647
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _345 => _345.incomplete, 'optionalAccess', _346 => _346.summary]),
9819
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _351 => _351.incomplete, 'optionalAccess', _352 => _352.summary]),
9648
9820
  onSelect: handleDappImportAssetSelected
9649
9821
  }
9650
9822
  ),
@@ -9663,6 +9835,9 @@ function DepositFlow({
9663
9835
  uiConfig,
9664
9836
  appBalanceUsd,
9665
9837
  service,
9838
+ payment,
9839
+ account: effectiveStep.smartAccount,
9840
+ title: payment ? "Amount to pay" : void 0,
9666
9841
  onContinue: handleAmountContinue,
9667
9842
  onCtaClick: (ctaName) => {
9668
9843
  if (ctaName === "continue") analytics.completeStep();
@@ -9678,6 +9853,8 @@ function DepositFlow({
9678
9853
  recipient,
9679
9854
  asset: effectiveStep.asset,
9680
9855
  amount: effectiveStep.amount,
9856
+ title: payment ? "Review payment" : void 0,
9857
+ routeThroughAccount: Boolean(payment),
9681
9858
  targetAmount: effectiveStep.targetAmount,
9682
9859
  targetTokenPriceUsd: effectiveStep.targetTokenPriceUsd,
9683
9860
  balance: effectiveStep.balance,
@@ -9719,8 +9896,9 @@ function DepositFlow({
9719
9896
  }
9720
9897
  ),
9721
9898
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9722
- _chunkN3AAT6BScjs.ProcessingStep,
9899
+ _chunkHMUGY66Ocjs.ProcessingStep,
9723
9900
  {
9901
+ flowLabel: payment ? "payment" : void 0,
9724
9902
  smartAccount: effectiveStep.smartAccount,
9725
9903
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
9726
9904
  txHash: effectiveStep.txHash,
@@ -9759,7 +9937,7 @@ function DepositFlow({
9759
9937
 
9760
9938
  var ReownDepositInner = _react.lazy.call(void 0, async () => {
9761
9939
  await loadReownDependencies();
9762
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-TVO3ZQQK.cjs")));
9940
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-UITYXJ6W.cjs")));
9763
9941
  return { default: module.DepositModalReown };
9764
9942
  });
9765
9943
  function buildDepositAnalyticsSessionProperties({
@@ -9788,7 +9966,7 @@ function buildDepositAnalyticsSessionProperties({
9788
9966
  enabledFundingMethods.push("wallet");
9789
9967
  }
9790
9968
  if (enableQrTransfer) enabledFundingMethods.push("transfer");
9791
- if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _347 => _347.length]) !== 0) {
9969
+ if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _353 => _353.length]) !== 0) {
9792
9970
  enabledFundingMethods.push("fiat_onramp");
9793
9971
  }
9794
9972
  if (enableExchangeConnect) enabledFundingMethods.push("exchange_connect");
@@ -9808,7 +9986,7 @@ function buildDepositAnalyticsSessionProperties({
9808
9986
  amount: defaultAmount !== void 0,
9809
9987
  initial_asset_migration: initialAssetMigration !== void 0
9810
9988
  },
9811
- ..._chunkN3AAT6BScjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9989
+ ..._chunkHMUGY66Ocjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9812
9990
  };
9813
9991
  }
9814
9992
  var WALLET_CLIENT_PROP = "walletClient";
@@ -9816,8 +9994,8 @@ function hasSuppliedWalletClient(props) {
9816
9994
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
9817
9995
  }
9818
9996
  function DepositModal(props) {
9819
- _chunkN3AAT6BScjs.warnRemovedProps.call(void 0, "DepositModal", props);
9820
- _chunkN3AAT6BScjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9997
+ _chunkHMUGY66Ocjs.warnRemovedProps.call(void 0, "DepositModal", props);
9998
+ _chunkHMUGY66Ocjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9821
9999
  const needsReown = !!props.reownAppId;
9822
10000
  const hasWalletClientProp = hasSuppliedWalletClient(props);
9823
10001
  if (needsReown) {
@@ -9852,6 +10030,7 @@ function DepositModalInner({
9852
10030
  sourceToken,
9853
10031
  defaultAmount,
9854
10032
  recipient,
10033
+ payment,
9855
10034
  appBalanceUsd,
9856
10035
  backendUrl,
9857
10036
  rpcUrls: rpcUrlsProp,
@@ -9889,8 +10068,8 @@ function DepositModalInner({
9889
10068
  const analyticsControllerRef = _react.useRef.call(void 0, null);
9890
10069
  const analyticsSessionIdRef = _react.useRef.call(void 0, null);
9891
10070
  const previousOpenRef = _react.useRef.call(void 0, isOpen);
9892
- const onReadyRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onReady);
9893
- const onUiStateRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onUiState);
10071
+ const onReadyRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onReady);
10072
+ const onUiStateRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onUiState);
9894
10073
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
9895
10074
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
9896
10075
  const [submitting, setSubmitting] = _react.useState.call(void 0, false);
@@ -9898,31 +10077,31 @@ function DepositModalInner({
9898
10077
  void 0
9899
10078
  );
9900
10079
  const [processingSettled, setProcessingSettled] = _react.useState.call(void 0, false);
9901
- const historyButtonVisible = _chunkN3AAT6BScjs.isHistoryEntryVisible.call(void 0, {
10080
+ const historyButtonVisible = !payment && _chunkHMUGY66Ocjs.isHistoryEntryVisible.call(void 0, {
9902
10081
  screen: currentScreen,
9903
10082
  submitting,
9904
10083
  settled: processingSettled
9905
10084
  });
9906
10085
  const targetChain = typeof targetChainProp === "string" ? targetChainProp : _chunkOY5N3E6Lcjs.getChainId.call(void 0, targetChainProp);
9907
10086
  const sourceChain = sourceChainProp ? _chunkOY5N3E6Lcjs.getChainId.call(void 0, sourceChainProp) : void 0;
9908
- const rpcUrls = _chunkN3AAT6BScjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
10087
+ const rpcUrls = _chunkHMUGY66Ocjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9909
10088
  const service = _react.useMemo.call(void 0,
9910
- () => _chunkN3AAT6BScjs.createDepositService.call(void 0, backendUrl, {
10089
+ () => _chunkHMUGY66Ocjs.createDepositService.call(void 0, backendUrl, {
9911
10090
  debug,
9912
10091
  debugScope: "service:deposit"
9913
10092
  }),
9914
10093
  [backendUrl, debug]
9915
10094
  );
9916
10095
  const historyAnalytics = _react.useMemo.call(void 0,
9917
- () => _chunkN3AAT6BScjs.createHistoryAnalytics.call(void 0, {
10096
+ () => _chunkHMUGY66Ocjs.createHistoryAnalytics.call(void 0, {
9918
10097
  modal: "deposit",
9919
10098
  controllerRef: analyticsControllerRef,
9920
10099
  sessionIdRef: analyticsSessionIdRef
9921
10100
  }),
9922
10101
  []
9923
10102
  );
9924
- const history = _chunkN3AAT6BScjs.useHistoryPanel.call(void 0, {
9925
- isOpen,
10103
+ const history = _chunkHMUGY66Ocjs.useHistoryPanel.call(void 0, {
10104
+ isOpen: isOpen && !payment,
9926
10105
  recipient,
9927
10106
  service,
9928
10107
  canRecover: Boolean(signRecovery),
@@ -9961,15 +10140,15 @@ function DepositModalInner({
9961
10140
  }, [store, targetChain, targetToken]);
9962
10141
  _react.useEffect.call(void 0, () => {
9963
10142
  if (!isOpen || !modalRef.current) return;
9964
- return _chunkN3AAT6BScjs.applyTheme.call(void 0, modalRef.current, theme);
10143
+ return _chunkHMUGY66Ocjs.applyTheme.call(void 0, modalRef.current, theme);
9965
10144
  }, [isOpen, theme]);
9966
10145
  _react.useEffect.call(void 0, () => {
9967
10146
  if (isOpen) {
9968
- _optionalChain([onReadyRef, 'access', _348 => _348.current, 'optionalCall', _349 => _349()]);
10147
+ _optionalChain([onReadyRef, 'access', _354 => _354.current, 'optionalCall', _355 => _355()]);
9969
10148
  }
9970
10149
  }, [isOpen, onReadyRef]);
9971
10150
  _react.useEffect.call(void 0, () => {
9972
- _optionalChain([onUiStateRef, 'access', _350 => _350.current, 'optionalCall', _351 => _351({
10151
+ _optionalChain([onUiStateRef, 'access', _356 => _356.current, 'optionalCall', _357 => _357({
9973
10152
  screen: currentScreen,
9974
10153
  back: backHandler,
9975
10154
  // A recovery in flight is a submission whose outcome is unknown, so a
@@ -9990,10 +10169,10 @@ function DepositModalInner({
9990
10169
  },
9991
10170
  []
9992
10171
  );
9993
- const onLifecycleRef = _chunkN3AAT6BScjs.useLatestRef.call(void 0, onLifecycle);
10172
+ const onLifecycleRef = _chunkHMUGY66Ocjs.useLatestRef.call(void 0, onLifecycle);
9994
10173
  const handleLifecycle = _react.useCallback.call(void 0,
9995
10174
  (event) => {
9996
- _optionalChain([onLifecycleRef, 'access', _352 => _352.current, 'optionalCall', _353 => _353(event)]);
10175
+ _optionalChain([onLifecycleRef, 'access', _358 => _358.current, 'optionalCall', _359 => _359(event)]);
9997
10176
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
9998
10177
  invalidateHistory();
9999
10178
  }
@@ -10007,8 +10186,8 @@ function DepositModalInner({
10007
10186
  (source) => {
10008
10187
  if (recoverySubmitting) return;
10009
10188
  const analytics = analyticsControllerRef.current;
10010
- _optionalChain([analytics, 'optionalAccess', _354 => _354.abandon, 'call', _355 => _355(source === "provider_back" ? "provider_back" : "modal_close")]);
10011
- _optionalChain([analytics, 'optionalAccess', _356 => _356.close, 'call', _357 => _357(source)]);
10189
+ _optionalChain([analytics, 'optionalAccess', _360 => _360.abandon, 'call', _361 => _361(source === "provider_back" ? "provider_back" : "modal_close")]);
10190
+ _optionalChain([analytics, 'optionalAccess', _362 => _362.close, 'call', _363 => _363(source)]);
10012
10191
  onClose();
10013
10192
  },
10014
10193
  [onClose, recoverySubmitting]
@@ -10024,8 +10203,8 @@ function DepositModalInner({
10024
10203
  _react.useEffect.call(void 0, () => {
10025
10204
  if (previousOpenRef.current && !isOpen) {
10026
10205
  const analytics = analyticsControllerRef.current;
10027
- _optionalChain([analytics, 'optionalAccess', _358 => _358.abandon, 'call', _359 => _359("modal_close")]);
10028
- _optionalChain([analytics, 'optionalAccess', _360 => _360.close, 'call', _361 => _361("host_controlled")]);
10206
+ _optionalChain([analytics, 'optionalAccess', _364 => _364.abandon, 'call', _365 => _365("modal_close")]);
10207
+ _optionalChain([analytics, 'optionalAccess', _366 => _366.close, 'call', _367 => _367("host_controlled")]);
10029
10208
  }
10030
10209
  previousOpenRef.current = isOpen;
10031
10210
  }, [isOpen]);
@@ -10062,12 +10241,12 @@ function DepositModalInner({
10062
10241
  targetChain,
10063
10242
  targetToken
10064
10243
  });
10065
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _362 => _362.showBackButton]), () => ( true));
10244
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _368 => _368.showBackButton]), () => ( true));
10066
10245
  const canGoBack = backHandler !== void 0;
10067
10246
  const hideHeaderChrome = swappedImmersive;
10068
10247
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
10069
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10070
- _chunkN3AAT6BScjs.Modal,
10248
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10249
+ _chunkHMUGY66Ocjs.Modal,
10071
10250
  {
10072
10251
  isOpen,
10073
10252
  onClose: handleModalDismiss,
@@ -10076,7 +10255,7 @@ function DepositModalInner({
10076
10255
  closeOnOverlayClick,
10077
10256
  ariaLabel: "Deposit",
10078
10257
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10079
- _chunkN3AAT6BScjs.AnalyticsSession,
10258
+ _chunkHMUGY66Ocjs.AnalyticsSession,
10080
10259
  {
10081
10260
  modal: "deposit",
10082
10261
  sessionProperties: analyticsSessionProperties,
@@ -10098,12 +10277,12 @@ function DepositModalInner({
10098
10277
  className: "rs-modal-header-back",
10099
10278
  "aria-label": "Go back",
10100
10279
  onClick: backHandler,
10101
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.ChevronLeftIcon, {})
10280
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.ChevronLeftIcon, {})
10102
10281
  }
10103
10282
  ) }),
10104
10283
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
10105
10284
  historyButtonVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10106
- _chunkN3AAT6BScjs.HistoryEntryButton,
10285
+ _chunkHMUGY66Ocjs.HistoryEntryButton,
10107
10286
  {
10108
10287
  badge: history.badge,
10109
10288
  onClick: history.openPanel,
@@ -10117,7 +10296,7 @@ function DepositModalInner({
10117
10296
  onClick: () => closeWithSource("header_button"),
10118
10297
  className: "rs-modal-close",
10119
10298
  "aria-label": "Close",
10120
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3AAT6BScjs.CloseIcon, {})
10299
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMUGY66Ocjs.CloseIcon, {})
10121
10300
  }
10122
10301
  )
10123
10302
  ] })
@@ -10135,6 +10314,7 @@ function DepositModalInner({
10135
10314
  sourceToken,
10136
10315
  amount: defaultAmount,
10137
10316
  recipient,
10317
+ payment,
10138
10318
  appBalanceUsd,
10139
10319
  outputTokenRules,
10140
10320
  rejectUnmapped,
@@ -10153,7 +10333,7 @@ function DepositModalInner({
10153
10333
  onDisconnect,
10154
10334
  onRequestConnect,
10155
10335
  uiConfig,
10156
- appFees: _optionalChain([clientSetup, 'optionalAccess', _363 => _363.appFees]),
10336
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _369 => _369.appFees]),
10157
10337
  appFeesResolved: clientSetup !== null,
10158
10338
  onStepChange: handleStepChange,
10159
10339
  onSwappedImmersiveChange: setSwappedImmersive,
@@ -10167,7 +10347,7 @@ function DepositModalInner({
10167
10347
  }
10168
10348
  ),
10169
10349
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10170
- _chunkN3AAT6BScjs.HistoryOverlay,
10350
+ _chunkHMUGY66Ocjs.HistoryOverlay,
10171
10351
  {
10172
10352
  controller: history,
10173
10353
  backLabel: "Deposit",