@rhinestone/deposit-modal 0.20.1 → 0.21.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 (53) hide show
  1. package/README.md +42 -17
  2. package/dist/{BankOnrampStep-4D24HVHV.mjs → BankOnrampStep-JTU7WS5R.mjs} +22 -12
  3. package/dist/{BankOnrampStep-3SNUX6V2.cjs → BankOnrampStep-QCPISCAQ.cjs} +34 -24
  4. package/dist/{DepositModalReown-SYQ2SCHC.mjs → DepositModalReown-FJBSF4VL.mjs} +5 -3
  5. package/dist/{DepositModalReown-7EHOJTFW.cjs → DepositModalReown-QJ6O2FWY.cjs} +18 -16
  6. package/dist/{WithdrawModal-LXDIT4UV.mjs → WithdrawModal-CB7RNEPI.mjs} +3 -3
  7. package/dist/WithdrawModal-E2BTWJV7.cjs +12 -0
  8. package/dist/{chunk-ZOJMB5TZ.mjs → chunk-2D3J53PX.mjs} +1 -1
  9. package/dist/{chunk-KXSU24RU.cjs → chunk-4O2UGFFT.cjs} +71 -62
  10. package/dist/{chunk-IPKT3FU6.mjs → chunk-7CHQA2OZ.mjs} +1 -1
  11. package/dist/chunk-ADEWTBSN.cjs +19 -0
  12. package/dist/{chunk-O5OW4S7L.cjs → chunk-AV3SA7TW.cjs} +3 -3
  13. package/dist/{chunk-FW7ZMXQS.mjs → chunk-B2LUWNFX.mjs} +179 -96
  14. package/dist/{chunk-PVFEZ3UG.cjs → chunk-CAIRS4LK.cjs} +449 -366
  15. package/dist/{chunk-LVMNNMOZ.cjs → chunk-CG3JKPUF.cjs} +2 -2
  16. package/dist/{chunk-JPX4MEHV.mjs → chunk-CXEQFRX4.mjs} +1 -1
  17. package/dist/chunk-PP4QE32S.mjs +19 -0
  18. package/dist/{chunk-YQCRXJIL.mjs → chunk-PZIKRYMO.mjs} +1 -1
  19. package/dist/{chunk-CIVFT5KR.cjs → chunk-U7NYYT4Q.cjs} +58 -58
  20. package/dist/{chunk-OZPMRTW3.mjs → chunk-UNXUOV3F.mjs} +39 -30
  21. package/dist/{chunk-D3R3O4CY.cjs → chunk-VQAV6ESI.cjs} +1 -1
  22. package/dist/{chunk-EJDBIWNH.mjs → chunk-WK2ELRL3.mjs} +5 -16
  23. package/dist/{chunk-IPHKBBUV.cjs → chunk-X425VJFY.cjs} +10 -21
  24. package/dist/compliance.cjs +4 -4
  25. package/dist/compliance.mjs +3 -3
  26. package/dist/constants.cjs +2 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/deposit.cjs +6 -4
  31. package/dist/deposit.d.cts +2 -2
  32. package/dist/deposit.d.ts +2 -2
  33. package/dist/deposit.mjs +5 -3
  34. package/dist/embed.cjs +16 -14
  35. package/dist/embed.d.cts +1 -1
  36. package/dist/embed.d.ts +1 -1
  37. package/dist/embed.mjs +6 -4
  38. package/dist/index.cjs +7 -5
  39. package/dist/index.d.cts +1 -1
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.mjs +6 -4
  42. package/dist/onramp.cjs +5 -4
  43. package/dist/onramp.mjs +4 -3
  44. package/dist/server.cjs +12 -8
  45. package/dist/server.mjs +11 -7
  46. package/dist/{types-BEEMfNi2.d.cts → types-BrxDZNEr.d.cts} +20 -10
  47. package/dist/{types-DQDUqzsZ.d.ts → types-DCUB4DY8.d.ts} +20 -10
  48. package/dist/withdraw.cjs +4 -4
  49. package/dist/withdraw.d.cts +2 -2
  50. package/dist/withdraw.d.ts +2 -2
  51. package/dist/withdraw.mjs +3 -3
  52. package/package.json +3 -3
  53. package/dist/WithdrawModal-LLJLEYXZ.cjs +0 -12
@@ -97,7 +97,8 @@ var _chunkFVJKUTHFcjs = require('./chunk-FVJKUTHF.cjs');
97
97
 
98
98
 
99
99
 
100
- var _chunkKXSU24RUcjs = require('./chunk-KXSU24RU.cjs');
100
+
101
+ var _chunk4O2UGFFTcjs = require('./chunk-4O2UGFFT.cjs');
101
102
 
102
103
 
103
104
 
@@ -120,6 +121,12 @@ var _chunkKXSU24RUcjs = require('./chunk-KXSU24RU.cjs');
120
121
  var _chunkG264OM23cjs = require('./chunk-G264OM23.cjs');
121
122
 
122
123
 
124
+ var _chunkADEWTBSNcjs = require('./chunk-ADEWTBSN.cjs');
125
+
126
+
127
+ var _chunkCG3JKPUFcjs = require('./chunk-CG3JKPUF.cjs');
128
+
129
+
123
130
 
124
131
 
125
132
 
@@ -257,11 +264,11 @@ SegmentedToggle.displayName = "SegmentedToggle";
257
264
 
258
265
  function ChainIcon({ chainId, className, loading }) {
259
266
  const badge = _chunkFKJ6EJHHcjs.getChainBadge.call(void 0, chainId);
260
- const catalogChain = _chunkKXSU24RUcjs.useCatalogChain.call(void 0, _chunkKXSU24RUcjs.catalogKeyForChain.call(void 0, chainId));
267
+ const catalogChain = _chunk4O2UGFFTcjs.useCatalogChain.call(void 0, _chunk4O2UGFFTcjs.catalogKeyForChain.call(void 0, chainId));
261
268
  const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkFKJ6EJHHcjs.getChainName.call(void 0, chainId)));
262
269
  const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
263
270
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
264
- _chunkKXSU24RUcjs.CdnIcon,
271
+ _chunk4O2UGFFTcjs.CdnIcon,
265
272
  {
266
273
  src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, chainId))),
267
274
  alt: name,
@@ -284,7 +291,7 @@ ChainIcon.displayName = "ChainIcon";
284
291
  // src/components/ui/WalletBadgeIcons/index.tsx
285
292
 
286
293
  function BadgeImage({ src, alt = "" }) {
287
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src, alt }) });
294
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src, alt }) });
288
295
  }
289
296
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
290
297
  function WalletBadgeIcons() {
@@ -337,7 +344,7 @@ var DAPP_IMPORT_CATALOG = [
337
344
  // src/components/ui/BrandIcons.tsx
338
345
 
339
346
  function ExchangeBadgeImage({ name }) {
340
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: _nullishCoalesce(_chunkKXSU24RUcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
347
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: _nullishCoalesce(_chunk4O2UGFFTcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
341
348
  }
342
349
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
343
350
  function CardNetworkIcons() {
@@ -345,7 +352,7 @@ function CardNetworkIcons() {
345
352
  "span",
346
353
  {
347
354
  className: `rs-card-network rs-card-network--${network}`,
348
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: _chunkFKJ6EJHHcjs.cdnIconUrl.call(void 0, "cards", network) })
355
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: _chunkFKJ6EJHHcjs.cdnIconUrl.call(void 0, "cards", network) })
349
356
  },
350
357
  network
351
358
  )) });
@@ -364,7 +371,7 @@ function DappBadgeIcons() {
364
371
  ).filter(
365
372
  (brand) => Boolean(brand)
366
373
  );
367
- 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, _chunkKXSU24RUcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
374
+ 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, _chunk4O2UGFFTcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
368
375
  }
369
376
  DappBadgeIcons.displayName = "DappBadgeIcons";
370
377
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -482,7 +489,7 @@ var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fra
482
489
  ] });
483
490
  var EXTRA_EXCHANGE_COUNT = Math.max(
484
491
  0,
485
- _chunkKXSU24RUcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
492
+ _chunk4O2UGFFTcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
486
493
  );
487
494
  var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
488
495
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
@@ -542,7 +549,7 @@ function ConnectStep({
542
549
  if (onSelectTransferCrypto) {
543
550
  cryptoRows.push(
544
551
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
545
- _chunkKXSU24RUcjs.ListRow,
552
+ _chunk4O2UGFFTcjs.ListRow,
546
553
  {
547
554
  leading: TRANSFER_CRYPTO_LEADING,
548
555
  title: "Transfer crypto",
@@ -563,7 +570,7 @@ function ConnectStep({
563
570
  );
564
571
  cryptoRows.push(
565
572
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
566
- _chunkKXSU24RUcjs.ListRow,
573
+ _chunk4O2UGFFTcjs.ListRow,
567
574
  {
568
575
  leading: renderWalletLeading(row),
569
576
  title: collapseToExternal ? "External wallet" : row.label,
@@ -580,7 +587,7 @@ function ConnectStep({
580
587
  if (!hasSessionWallet && handleConnect) {
581
588
  cryptoRows.push(
582
589
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
583
- _chunkKXSU24RUcjs.ListRow,
590
+ _chunk4O2UGFFTcjs.ListRow,
584
591
  {
585
592
  leading: WALLET_LEADING,
586
593
  title: "Connect wallet",
@@ -595,7 +602,7 @@ function ConnectStep({
595
602
  if (onSelectFundFromExchange) {
596
603
  cryptoRows.push(
597
604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
598
- _chunkKXSU24RUcjs.ListRow,
605
+ _chunk4O2UGFFTcjs.ListRow,
599
606
  {
600
607
  leading: EXCHANGE_LEADING,
601
608
  title: "Connect exchange",
@@ -612,7 +619,7 @@ function ConnectStep({
612
619
  if (onSelectMigrateAssets) {
613
620
  cryptoRows.push(
614
621
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
615
- _chunkKXSU24RUcjs.ListRow,
622
+ _chunk4O2UGFFTcjs.ListRow,
616
623
  {
617
624
  leading: MIGRATE_ASSETS_LEADING,
618
625
  title: "Migrate assets",
@@ -633,7 +640,7 @@ function ConnectStep({
633
640
  for (const opt of fiatPaymentMethods) {
634
641
  cashRows.push(
635
642
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
636
- _chunkKXSU24RUcjs.ListRow,
643
+ _chunk4O2UGFFTcjs.ListRow,
637
644
  {
638
645
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
639
646
  title: opt.label,
@@ -648,7 +655,7 @@ function ConnectStep({
648
655
  } else if (fiatLoading) {
649
656
  cashRows.push(
650
657
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
651
- _chunkKXSU24RUcjs.ListRow,
658
+ _chunk4O2UGFFTcjs.ListRow,
652
659
  {
653
660
  leading: SMALL_SPINNER,
654
661
  title: "Loading payment options\u2026",
@@ -696,7 +703,7 @@ function ConnectStep({
696
703
  ) : void 0
697
704
  }
698
705
  ),
699
- fiatNotice && (activeTab === "cash" || !hasCash) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "warning", children: fiatNotice }),
706
+ fiatNotice && (activeTab === "cash" || !hasCash) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "warning", children: fiatNotice }),
700
707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
701
708
  "div",
702
709
  {
@@ -716,7 +723,7 @@ function ConnectStep({
716
723
  children: "Disconnect wallet"
717
724
  }
718
725
  ) }),
719
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
726
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
720
727
  ] });
721
728
  }
722
729
  ConnectStep.displayName = "ConnectStep";
@@ -739,13 +746,13 @@ function AssetSelectStep({
739
746
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
740
747
  const [loading, setLoading] = _react.useState.call(void 0, true);
741
748
  const [error, setError] = _react.useState.call(void 0, null);
742
- const isDepositChain = _chunkKXSU24RUcjs.useIsDepositChain.call(void 0, );
743
- const isExcludedByRestrictedList = _chunkKXSU24RUcjs.useRestrictedListExclusion.call(void 0, );
744
- const { catalog } = _chunkKXSU24RUcjs.useChainCatalog.call(void 0, );
745
- const chainName = _chunkKXSU24RUcjs.useChainName.call(void 0, );
749
+ const isDepositChain = _chunk4O2UGFFTcjs.useIsDepositChain.call(void 0, );
750
+ const isExcludedByRestrictedList = _chunk4O2UGFFTcjs.useRestrictedListExclusion.call(void 0, );
751
+ const { catalog } = _chunk4O2UGFFTcjs.useChainCatalog.call(void 0, );
752
+ const chainName = _chunk4O2UGFFTcjs.useChainName.call(void 0, );
746
753
  const defaultAssetId = _react.useMemo.call(void 0, () => {
747
754
  if (!defaultSourceChain || !defaultSourceToken) return null;
748
- return _chunkKXSU24RUcjs.getAssetId.call(void 0, {
755
+ return _chunk4O2UGFFTcjs.getAssetId.call(void 0, {
749
756
  chainId: defaultSourceChain,
750
757
  token: defaultSourceToken
751
758
  });
@@ -770,7 +777,7 @@ function AssetSelectStep({
770
777
  try {
771
778
  const portfolio = await service.fetchPortfolio(address);
772
779
  if (!active) return;
773
- const portfolioAssets = _chunkKXSU24RUcjs.portfolioToAssets.call(void 0, portfolio.tokens);
780
+ const portfolioAssets = _chunk4O2UGFFTcjs.portfolioToAssets.call(void 0, portfolio.tokens);
774
781
  setAssets(portfolioAssets);
775
782
  emitAssetsUpdate(portfolioAssets);
776
783
  const hasNative = portfolioAssets.some(
@@ -839,7 +846,7 @@ function AssetSelectStep({
839
846
  return 0;
840
847
  });
841
848
  }, [assets, isDepositChain, isExcludedByRestrictedList]);
842
- const displays = _chunkKXSU24RUcjs.useTokenDisplays.call(void 0,
849
+ const displays = _chunk4O2UGFFTcjs.useTokenDisplays.call(void 0,
843
850
  filteredRows.map((asset) => ({
844
851
  chain: asset.chainId,
845
852
  address: asset.token,
@@ -866,7 +873,7 @@ function AssetSelectStep({
866
873
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
867
874
  const numeric = Number(raw);
868
875
  if (!Number.isFinite(numeric)) return raw;
869
- return _chunkKXSU24RUcjs.tokenFormatter.format(numeric);
876
+ return _chunk4O2UGFFTcjs.tokenFormatter.format(numeric);
870
877
  } catch (e3) {
871
878
  return asset.balance;
872
879
  }
@@ -885,7 +892,7 @@ function AssetSelectStep({
885
892
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.Spinner, { className: "rs-text-tertiary" }),
886
893
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
887
894
  ] }),
888
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: error }),
895
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
889
896
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
890
897
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.WalletIcon, { className: "rs-empty-icon" }),
891
898
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
@@ -920,14 +927,14 @@ function AssetSelectStep({
920
927
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
921
928
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
922
929
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
923
- _chunkKXSU24RUcjs.TokenIcon,
930
+ _chunk4O2UGFFTcjs.TokenIcon,
924
931
  {
925
932
  token: { chain: asset.chainId, address: asset.token },
926
933
  symbol: asset.symbol,
927
934
  fallback: asset.symbol.slice(0, 4)
928
935
  }
929
936
  ) }),
930
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
937
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
931
938
  "span",
932
939
  {
933
940
  className: "rs-asset-chain-badge",
@@ -954,14 +961,14 @@ function AssetSelectStep({
954
961
  ] })
955
962
  ] })
956
963
  ] }),
957
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkKXSU24RUcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
964
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk4O2UGFFTcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
958
965
  ]
959
966
  },
960
967
  asset.id
961
968
  );
962
969
  }) }),
963
970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
964
- _chunkKXSU24RUcjs.Button,
971
+ _chunk4O2UGFFTcjs.Button,
965
972
  {
966
973
  onClick: () => selectedAsset && onContinue(selectedAsset),
967
974
  disabled: !selectedAsset,
@@ -970,7 +977,7 @@ function AssetSelectStep({
970
977
  }
971
978
  )
972
979
  ] }),
973
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
980
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
974
981
  ] });
975
982
  }
976
983
  async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
@@ -978,7 +985,7 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
978
985
  const connectedChainId = _optionalChain([publicClient, 'access', _18 => _18.chain, 'optionalAccess', _19 => _19.id]);
979
986
  if (!connectedChainId) return [];
980
987
  if (!isDepositChain(connectedChainId)) return [];
981
- const id = _chunkKXSU24RUcjs.getAssetId.call(void 0, {
988
+ const id = _chunk4O2UGFFTcjs.getAssetId.call(void 0, {
982
989
  chainId: connectedChainId,
983
990
  token: _chunkFKJ6EJHHcjs.NATIVE_TOKEN_ADDRESS
984
991
  });
@@ -1167,7 +1174,7 @@ function AmountStep({
1167
1174
  _optionalChain([walletClient, 'optionalAccess', _30 => _30.chain, 'optionalAccess', _31 => _31.id]) && walletClient.chain.id !== asset.chainId
1168
1175
  );
1169
1176
  const targetChainId = _chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain);
1170
- const targetSymbol = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
1177
+ const targetSymbol = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
1171
1178
  const isSourceStablecoin = _chunkFKJ6EJHHcjs.isStablecoinSymbol.call(void 0, asset.symbol);
1172
1179
  const derivedPriceUsd = _react.useMemo.call(void 0, () => {
1173
1180
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
@@ -1197,7 +1204,7 @@ function AmountStep({
1197
1204
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1198
1205
  if (!balanceTarget || !publicClient) return;
1199
1206
  try {
1200
- const bal = _chunkKXSU24RUcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1207
+ const bal = _chunk4O2UGFFTcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1201
1208
  address: asset.token,
1202
1209
  abi: _viem.erc20Abi,
1203
1210
  functionName: "balanceOf",
@@ -1218,7 +1225,7 @@ function AmountStep({
1218
1225
  hasAttemptedSwitch.current = true;
1219
1226
  switchChain(asset.chainId).catch((err) => {
1220
1227
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1221
- setError(_chunkKXSU24RUcjs.formatUserError.call(void 0, raw));
1228
+ setError(_chunk4O2UGFFTcjs.formatUserError.call(void 0, raw));
1222
1229
  });
1223
1230
  }
1224
1231
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1271,7 +1278,7 @@ function AmountStep({
1271
1278
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1272
1279
  const numeric = Number(raw);
1273
1280
  if (!Number.isFinite(numeric)) return raw;
1274
- return _chunkKXSU24RUcjs.tokenFormatter.format(numeric);
1281
+ return _chunk4O2UGFFTcjs.tokenFormatter.format(numeric);
1275
1282
  } catch (e9) {
1276
1283
  return "\u2026";
1277
1284
  }
@@ -1312,8 +1319,8 @@ function AmountStep({
1312
1319
  const exceedsBalance = Boolean(
1313
1320
  sourceAmountUnits !== null && balance !== null && sourceAmountUnits > balance
1314
1321
  );
1315
- const boundsFor = _chunkKXSU24RUcjs.useDepositBounds.call(void 0, );
1316
- const boundViolation = _chunkKXSU24RUcjs.depositBoundsViolation.call(void 0,
1322
+ const boundsFor = _chunk4O2UGFFTcjs.useDepositBounds.call(void 0, );
1323
+ const boundViolation = _chunk4O2UGFFTcjs.depositBoundsViolation.call(void 0,
1317
1324
  boundsFor(asset.chainId, asset.token),
1318
1325
  sourceAmountUnits
1319
1326
  );
@@ -1428,7 +1435,7 @@ function AmountStep({
1428
1435
  // that way and the payer has to be told, not left on a dead button.
1429
1436
  chainMismatch || lockedAmount === null || exceedsBalance || boundViolation !== null || knowsBalance && balance === null
1430
1437
  ) : chainMismatch || exceedsBalance || boundViolation !== null || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1431
- const chainName = _chunkKXSU24RUcjs.useChainName.call(void 0, );
1438
+ const chainName = _chunk4O2UGFFTcjs.useChainName.call(void 0, );
1432
1439
  const sourceChainName = chainName(asset.chainId);
1433
1440
  const targetChainName = chainName(targetChainId);
1434
1441
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
@@ -1436,7 +1443,7 @@ function AmountStep({
1436
1443
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.WalletIcon, {}), title }),
1437
1444
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1438
1445
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1439
- payment ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-fixed", "aria-label": "Amount to pay", children: lockedAmount ? `${_chunkKXSU24RUcjs.tokenFormatter.format(Number(lockedAmount))} ${asset.symbol}` : "\u2014" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1446
+ payment ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-amount-fixed", "aria-label": "Amount to pay", children: lockedAmount ? `${_chunk4O2UGFFTcjs.tokenFormatter.format(Number(lockedAmount))} ${asset.symbol}` : "\u2014" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1440
1447
  AnimatedAmountInput,
1441
1448
  {
1442
1449
  value: amount,
@@ -1453,13 +1460,13 @@ function AmountStep({
1453
1460
  " available",
1454
1461
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1455
1462
  " (~",
1456
- _chunkKXSU24RUcjs.currencyFormatter.format(balanceUsd),
1463
+ _chunk4O2UGFFTcjs.currencyFormatter.format(balanceUsd),
1457
1464
  ")"
1458
1465
  ] })
1459
1466
  ] }),
1460
1467
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1461
1468
  "Min. deposit ",
1462
- _chunkKXSU24RUcjs.currencyFormatter.format(minDepositUsd)
1469
+ _chunk4O2UGFFTcjs.currencyFormatter.format(minDepositUsd)
1463
1470
  ] })
1464
1471
  ] })
1465
1472
  ] }),
@@ -1485,7 +1492,7 @@ function AmountStep({
1485
1492
  asset.symbol
1486
1493
  ] }),
1487
1494
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1488
- _chunkKXSU24RUcjs.TokenIcon,
1495
+ _chunk4O2UGFFTcjs.TokenIcon,
1489
1496
  {
1490
1497
  token: { chain: asset.chainId, address: asset.token },
1491
1498
  symbol: asset.symbol
@@ -1502,7 +1509,7 @@ function AmountStep({
1502
1509
  targetSymbol
1503
1510
  ] }),
1504
1511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1505
- _chunkKXSU24RUcjs.TokenIcon,
1512
+ _chunk4O2UGFFTcjs.TokenIcon,
1506
1513
  {
1507
1514
  token: { chain: targetChainId, address: targetToken },
1508
1515
  symbol: targetSymbol
@@ -1512,10 +1519,10 @@ function AmountStep({
1512
1519
  ] }),
1513
1520
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1514
1521
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1515
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkKXSU24RUcjs.currencyFormatter.format(balanceAfterUsd) })
1522
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk4O2UGFFTcjs.currencyFormatter.format(balanceAfterUsd) })
1516
1523
  ] })
1517
1524
  ] }),
1518
- payment && paymentQuote === "unavailable" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: [
1525
+ payment && paymentQuote === "unavailable" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: [
1519
1526
  "This payment can't be priced from ",
1520
1527
  asset.symbol,
1521
1528
  " on",
@@ -1523,13 +1530,13 @@ function AmountStep({
1523
1530
  sourceChainName,
1524
1531
  " right now. Try another asset."
1525
1532
  ] }),
1526
- blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: [
1533
+ blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: [
1527
1534
  asset.symbol,
1528
1535
  " can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
1529
1536
  ] }),
1530
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: error }),
1537
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
1531
1538
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1532
- _chunkKXSU24RUcjs.Button,
1539
+ _chunk4O2UGFFTcjs.Button,
1533
1540
  {
1534
1541
  onClick: handleContinue,
1535
1542
  fullWidth: true,
@@ -1538,7 +1545,7 @@ function AmountStep({
1538
1545
  }
1539
1546
  )
1540
1547
  ] }),
1541
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
1548
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
1542
1549
  ] });
1543
1550
  }
1544
1551
 
@@ -1567,14 +1574,14 @@ function ReviewDetails({
1567
1574
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1568
1575
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1569
1576
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1570
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: sourceChainIcon }) })
1577
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: sourceChainIcon }) })
1571
1578
  ] })
1572
1579
  ] }),
1573
1580
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1574
1581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1575
1582
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1576
1583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1577
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: targetChainIcon }) })
1584
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: targetChainIcon }) })
1578
1585
  ] })
1579
1586
  ] }),
1580
1587
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1589,21 +1596,21 @@ function ReviewDetails({
1589
1596
  " ",
1590
1597
  sendSymbol
1591
1598
  ] }),
1592
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.TokenIcon, { token: sendToken, symbol: sendSymbol }) })
1599
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.TokenIcon, { token: sendToken, symbol: sendSymbol }) })
1593
1600
  ] })
1594
1601
  ] }),
1595
1602
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1596
1603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1597
1604
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1598
1605
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1599
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.TokenIcon, { token: receiveToken, symbol: receiveSymbol }) })
1606
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.TokenIcon, { token: receiveToken, symbol: receiveSymbol }) })
1600
1607
  ] })
1601
1608
  ] }),
1602
1609
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1603
1610
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
1604
1611
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1605
1612
  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 }),
1606
- fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.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, _chunkG264OM23cjs.InfoIcon, {}) }) })
1613
+ fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.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, _chunkG264OM23cjs.InfoIcon, {}) }) })
1607
1614
  ] })
1608
1615
  ] })
1609
1616
  ] });
@@ -1826,24 +1833,24 @@ function ConfirmStep({
1826
1833
  ]);
1827
1834
  const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _71 => _71.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1828
1835
  const targetChainId = _chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain);
1829
- const resolvedTargetSymbol = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
1836
+ const resolvedTargetSymbol = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
1830
1837
  const targetSymbol = sameRoute ? asset.symbol : resolvedTargetSymbol;
1831
- const sourceTrusted = _chunkKXSU24RUcjs.useIsRecognizedToken.call(void 0, asset.chainId, asset.token);
1838
+ const sourceTrusted = _chunk4O2UGFFTcjs.useIsRecognizedToken.call(void 0, asset.chainId, asset.token);
1832
1839
  const sourceChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, asset.chainId);
1833
1840
  const targetChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, targetChainId);
1834
1841
  const sourceChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, asset.chainId);
1835
1842
  const targetChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, targetChainId);
1836
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkKXSU24RUcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1837
- const mustHaveQuote = !appFeesResolved || _chunkKXSU24RUcjs.resolveAppFeeBps.call(void 0,
1843
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk4O2UGFFTcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1844
+ const mustHaveQuote = !appFeesResolved || _chunk4O2UGFFTcjs.resolveAppFeeBps.call(void 0,
1838
1845
  appFees,
1839
1846
  `eip155:${quoteSource.chainId}`,
1840
1847
  quoteSource.token
1841
1848
  ) > 0;
1842
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkKXSU24RUcjs.quoteFeeRow.call(void 0,
1849
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunk4O2UGFFTcjs.quoteFeeRow.call(void 0,
1843
1850
  _optionalChain([quote, 'optionalAccess', _72 => _72.fees])
1844
1851
  );
1845
1852
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer && !routeThroughAccount;
1846
- const permitEligible = enableGaslessDeposit && !_chunkKXSU24RUcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID;
1853
+ const permitEligible = enableGaslessDeposit && !_chunk4O2UGFFTcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID;
1847
1854
  const permitRequestKey = JSON.stringify([
1848
1855
  smartAccount.toLowerCase(),
1849
1856
  asset.chainId,
@@ -1853,9 +1860,9 @@ function ConfirmStep({
1853
1860
  address.toLowerCase()
1854
1861
  ]);
1855
1862
  const permit = permitEligible && !permitDisabled && _optionalChain([permitResult, 'optionalAccess', _73 => _73.requestKey]) === permitRequestKey ? permitResult.prepared : null;
1856
- const boundsFor = _chunkKXSU24RUcjs.useDepositBounds.call(void 0, );
1863
+ const boundsFor = _chunk4O2UGFFTcjs.useDepositBounds.call(void 0, );
1857
1864
  const activeRefusal = _nullishCoalesce((_optionalChain([previewRefusal, 'optionalAccess', _74 => _74.requestKey]) === quoteRequestKey ? previewRefusal.refusal : null), () => ( (_optionalChain([permitRefusal, 'optionalAccess', _75 => _75.requestKey]) === permitRequestKey ? permitRefusal.refusal : null)));
1858
- const blockedReason = activeRefusal ? _chunkKXSU24RUcjs.describePolicyRefusal.call(void 0,
1865
+ const blockedReason = activeRefusal ? _chunk4O2UGFFTcjs.describePolicyRefusal.call(void 0,
1859
1866
  activeRefusal,
1860
1867
  boundsFor(quoteSource.chainId, quoteSource.token)
1861
1868
  ) : null;
@@ -1871,12 +1878,12 @@ function ConfirmStep({
1871
1878
  const receiveDisplay = (() => {
1872
1879
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1873
1880
  if (quote) {
1874
- const quoted = _chunkKXSU24RUcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1881
+ const quoted = _chunk4O2UGFFTcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1875
1882
  if (quoted !== void 0) return quoted;
1876
1883
  }
1877
1884
  const usdValue = Number(targetAmount);
1878
1885
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1879
- const estimate = _chunkKXSU24RUcjs.formatReceiveEstimate.call(void 0, {
1886
+ const estimate = _chunk4O2UGFFTcjs.formatReceiveEstimate.call(void 0, {
1880
1887
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1881
1888
  sourceSymbol: asset.symbol,
1882
1889
  targetSymbol,
@@ -1885,19 +1892,19 @@ function ConfirmStep({
1885
1892
  // The target is the curated deposit destination, so a stablecoin target
1886
1893
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1887
1894
  // target prices). Not applied to the source — that can be a held token.
1888
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkKXSU24RUcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1895
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk4O2UGFFTcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1889
1896
  });
1890
1897
  if (estimate !== void 0) return estimate;
1891
1898
  return targetSymbol;
1892
1899
  })();
1893
1900
  const servedExpectedSeconds = _nullishCoalesce(_optionalChain([quote, 'optionalAccess', _76 => _76.timing, 'optionalAccess', _77 => _77.expectedSeconds]), () => ( (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0)));
1894
- const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunkKXSU24RUcjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1901
+ const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? _chunk4O2UGFFTcjs.formatExpectedDuration.call(void 0, servedExpectedSeconds) : estimatedTime;
1895
1902
  _react.useEffect.call(void 0, () => {
1896
1903
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1897
1904
  hasAttemptedSwitch.current = true;
1898
1905
  switchChain(asset.chainId).catch((err) => {
1899
1906
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1900
- setError(_chunkKXSU24RUcjs.formatUserError.call(void 0, raw));
1907
+ setError(_chunk4O2UGFFTcjs.formatUserError.call(void 0, raw));
1901
1908
  });
1902
1909
  }
1903
1910
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1925,7 +1932,7 @@ function ConfirmStep({
1925
1932
  }).then((result) => {
1926
1933
  if (cancelled) return;
1927
1934
  setPreviewSettledKey(quoteRequestKey);
1928
- if (_chunkKXSU24RUcjs.isDepositPolicyRefusal.call(void 0, result)) {
1935
+ if (_chunk4O2UGFFTcjs.isDepositPolicyRefusal.call(void 0, result)) {
1929
1936
  setQuoteResult(null);
1930
1937
  setPreviewRefusal({
1931
1938
  requestKey: quoteRequestKey,
@@ -1975,7 +1982,7 @@ function ConfirmStep({
1975
1982
  if (cancelled) return;
1976
1983
  setPermitSettledKey(permitRequestKey);
1977
1984
  if (prepared === null) return;
1978
- if (_chunkKXSU24RUcjs.isDepositPolicyRefusal.call(void 0, prepared)) {
1985
+ if (_chunk4O2UGFFTcjs.isDepositPolicyRefusal.call(void 0, prepared)) {
1979
1986
  setPermitRefusal({
1980
1987
  requestKey: permitRequestKey,
1981
1988
  refusal: prepared.policyRefusal
@@ -2110,9 +2117,9 @@ function ConfirmStep({
2110
2117
  );
2111
2118
  } catch (err) {
2112
2119
  const raw = err instanceof Error ? err.message : "Signing failed";
2113
- const safeToTransfer = !submitStarted || err instanceof _chunkKXSU24RUcjs.PermitDepositSubmitError && err.safeToTransfer;
2120
+ const safeToTransfer = !submitStarted || err instanceof _chunk4O2UGFFTcjs.PermitDepositSubmitError && err.safeToTransfer;
2114
2121
  if (safeToTransfer) setPermitDisabled(true);
2115
- const message = safeToTransfer ? _chunkKXSU24RUcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
2122
+ const message = safeToTransfer ? _chunk4O2UGFFTcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
2116
2123
  setError(message);
2117
2124
  _optionalChain([onError, 'optionalCall', _78 => _78(message, "PERMIT_ERROR", raw)]);
2118
2125
  } finally {
@@ -2133,7 +2140,7 @@ function ConfirmStep({
2133
2140
  const result = await executeTransfer(amountUnits);
2134
2141
  hash = result.txHash;
2135
2142
  resolvedSourceToken = result.sourceToken;
2136
- } else if (_chunkKXSU24RUcjs.isNativeAsset.call(void 0, asset)) {
2143
+ } else if (_chunk4O2UGFFTcjs.isNativeAsset.call(void 0, asset)) {
2137
2144
  hash = await walletClient.sendTransaction({
2138
2145
  account,
2139
2146
  chain,
@@ -2164,8 +2171,8 @@ function ConfirmStep({
2164
2171
  );
2165
2172
  } catch (err) {
2166
2173
  const raw = err instanceof Error ? err.message : "Transfer failed";
2167
- const uncertain = _chunkKXSU24RUcjs.isSubmissionUncertain.call(void 0, err);
2168
- const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkKXSU24RUcjs.formatUserError.call(void 0, raw);
2174
+ const uncertain = _chunk4O2UGFFTcjs.isSubmissionUncertain.call(void 0, err);
2175
+ const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunk4O2UGFFTcjs.formatUserError.call(void 0, raw);
2169
2176
  if (uncertain) setSubmissionUncertain(true);
2170
2177
  setError(message);
2171
2178
  _optionalChain([onError, 'optionalCall', _80 => _80(message, "TRANSFER_ERROR", raw)]);
@@ -2193,9 +2200,9 @@ function ConfirmStep({
2193
2200
  fee: { display: feeDisplay, struck: feesFullySponsored }
2194
2201
  }
2195
2202
  ),
2196
- (_nullishCoalesce(error, () => ( blockedReason))) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: _nullishCoalesce(error, () => ( blockedReason)) }),
2203
+ (_nullishCoalesce(error, () => ( blockedReason))) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: _nullishCoalesce(error, () => ( blockedReason)) }),
2197
2204
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2198
- _chunkKXSU24RUcjs.Button,
2205
+ _chunk4O2UGFFTcjs.Button,
2199
2206
  {
2200
2207
  onClick: handleConfirm,
2201
2208
  loading: isSubmitting,
@@ -2224,7 +2231,7 @@ function ConfirmStep({
2224
2231
  ] }),
2225
2232
  !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." })
2226
2233
  ] }),
2227
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
2234
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
2228
2235
  ] });
2229
2236
  }
2230
2237
 
@@ -2245,9 +2252,9 @@ function QrReviewStep({
2245
2252
  }) {
2246
2253
  const [quote, setQuote] = _react.useState.call(void 0, { state: "loading", value: null });
2247
2254
  const targetChainId = _chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain);
2248
- const targetSymbol = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
2249
- const sourceTrusted = _chunkKXSU24RUcjs.useIsRecognizedToken.call(void 0, asset.chainId, asset.token);
2250
- const boundsFor = _chunkKXSU24RUcjs.useDepositBounds.call(void 0, );
2255
+ const targetSymbol = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
2256
+ const sourceTrusted = _chunk4O2UGFFTcjs.useIsRecognizedToken.call(void 0, asset.chainId, asset.token);
2257
+ const boundsFor = _chunk4O2UGFFTcjs.useDepositBounds.call(void 0, );
2251
2258
  _react.useEffect.call(void 0, () => {
2252
2259
  let cancelled = false;
2253
2260
  let units;
@@ -2269,7 +2276,7 @@ function QrReviewStep({
2269
2276
  amount: units.toString()
2270
2277
  }).then((result) => {
2271
2278
  if (cancelled) return;
2272
- if (_chunkKXSU24RUcjs.isDepositPolicyRefusal.call(void 0, result)) {
2279
+ if (_chunk4O2UGFFTcjs.isDepositPolicyRefusal.call(void 0, result)) {
2273
2280
  setQuote({
2274
2281
  state: "refused",
2275
2282
  value: null,
@@ -2287,26 +2294,26 @@ function QrReviewStep({
2287
2294
  cancelled = true;
2288
2295
  };
2289
2296
  }, [service, smartAccount, asset, amount]);
2290
- const formattedSendAmount = _nullishCoalesce(_chunkKXSU24RUcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2297
+ const formattedSendAmount = _nullishCoalesce(_chunk4O2UGFFTcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2291
2298
  const receiveDisplay = (() => {
2292
2299
  if (quote.value) {
2293
- const quoted = _chunkKXSU24RUcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2300
+ const quoted = _chunk4O2UGFFTcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2294
2301
  if (quoted !== void 0) return quoted;
2295
2302
  }
2296
2303
  const usdValue = Number(targetAmount);
2297
- const estimate = _chunkKXSU24RUcjs.formatReceiveEstimate.call(void 0, {
2304
+ const estimate = _chunk4O2UGFFTcjs.formatReceiveEstimate.call(void 0, {
2298
2305
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
2299
2306
  sourceSymbol: asset.symbol,
2300
2307
  targetSymbol,
2301
2308
  sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
2302
2309
  sourceTrusted,
2303
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkKXSU24RUcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2310
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk4O2UGFFTcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2304
2311
  });
2305
2312
  return _nullishCoalesce(estimate, () => ( targetSymbol));
2306
2313
  })();
2307
2314
  const expectedSeconds = _nullishCoalesce(_optionalChain([quote, 'access', _81 => _81.value, 'optionalAccess', _82 => _82.timing, 'optionalAccess', _83 => _83.expectedSeconds]), () => ( (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0)));
2308
- const estimatedTime = expectedSeconds !== void 0 ? _chunkKXSU24RUcjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2309
- const { display: quotedFee, struck } = _chunkKXSU24RUcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _84 => _84.value, 'optionalAccess', _85 => _85.fees]));
2315
+ const estimatedTime = expectedSeconds !== void 0 ? _chunk4O2UGFFTcjs.formatExpectedDuration.call(void 0, expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2316
+ const { display: quotedFee, struck } = _chunk4O2UGFFTcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _84 => _84.value, 'optionalAccess', _85 => _85.fees]));
2310
2317
  const feeDisplay = quote.state === "unavailable" || quote.state === "refused" ? "\u2014" : quotedFee;
2311
2318
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2312
2319
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
@@ -2328,13 +2335,13 @@ function QrReviewStep({
2328
2335
  fee: { display: feeDisplay, struck }
2329
2336
  }
2330
2337
  ),
2331
- quote.state === "refused" && quote.refusal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: _chunkKXSU24RUcjs.describePolicyRefusal.call(void 0,
2338
+ quote.state === "refused" && quote.refusal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: _chunk4O2UGFFTcjs.describePolicyRefusal.call(void 0,
2332
2339
  quote.refusal,
2333
2340
  boundsFor(asset.chainId, asset.token)
2334
2341
  ) }),
2335
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2342
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2336
2343
  ] }),
2337
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
2344
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
2338
2345
  ] });
2339
2346
  }
2340
2347
  QrReviewStep.displayName = "QrReviewStep";
@@ -2371,7 +2378,7 @@ function DepositAddressSkeleton({
2371
2378
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
2372
2379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2373
2380
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2374
- _chunkKXSU24RUcjs.CdnIcon,
2381
+ _chunk4O2UGFFTcjs.CdnIcon,
2375
2382
  {
2376
2383
  src: chainIcon,
2377
2384
  className: "rs-deposit-address-dropdown-icon"
@@ -2387,7 +2394,7 @@ function DepositAddressSkeleton({
2387
2394
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2388
2395
  "Min.$",
2389
2396
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _86 => _86.minDepositUsd]), () => ( 0.1))).toFixed(2),
2390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2391
2398
  _chunkG264OM23cjs.InfoIcon,
2392
2399
  {
2393
2400
  className: "rs-deposit-address-min-icon",
@@ -2437,7 +2444,7 @@ function DepositAddressSkeleton({
2437
2444
  }
2438
2445
  )
2439
2446
  ] }),
2440
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
2447
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
2441
2448
  ] });
2442
2449
  }
2443
2450
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2449,9 +2456,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
2449
2456
  var MAX_POLL_INTERVAL = 3e4;
2450
2457
  var BACKOFF_MULTIPLIER = 1.5;
2451
2458
  function isEventForTx(event, txHash) {
2452
- const eventTxHash = _chunkKXSU24RUcjs.getEventTxHash.call(void 0, event);
2459
+ const eventTxHash = _chunk4O2UGFFTcjs.getEventTxHash.call(void 0, event);
2453
2460
  if (!eventTxHash) return false;
2454
- return _chunkKXSU24RUcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2461
+ return _chunk4O2UGFFTcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2455
2462
  }
2456
2463
  function truncateHash(hash) {
2457
2464
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -2639,7 +2646,7 @@ function DepositNotification({
2639
2646
  status,
2640
2647
  txHash
2641
2648
  ]);
2642
- const explorerTxUrl = _chunkKXSU24RUcjs.useExplorerTxUrl.call(void 0, );
2649
+ const explorerTxUrl = _chunk4O2UGFFTcjs.useExplorerTxUrl.call(void 0, );
2643
2650
  const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
2644
2651
  const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2645
2652
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
@@ -2833,7 +2840,7 @@ function asString(value) {
2833
2840
  return typeof value === "string" ? value : void 0;
2834
2841
  }
2835
2842
  function resolveSolanaTokenMeta(token) {
2836
- const matched = token ? _chunkKXSU24RUcjs.resolveSolanaToken.call(void 0, token) : void 0;
2843
+ const matched = token ? _chunk4O2UGFFTcjs.resolveSolanaToken.call(void 0, token) : void 0;
2837
2844
  return matched ? { sourceSymbol: matched.symbol, sourceDecimals: matched.decimals } : {};
2838
2845
  }
2839
2846
  function getDepositEventDetails(event) {
@@ -2894,7 +2901,7 @@ function selectionAsAsset(chainId, symbol, offer, catalogChain) {
2894
2901
  }
2895
2902
  function TokenGlyph({ symbol, token }) {
2896
2903
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2897
- _chunkKXSU24RUcjs.TokenIcon,
2904
+ _chunk4O2UGFFTcjs.TokenIcon,
2898
2905
  {
2899
2906
  token,
2900
2907
  symbol,
@@ -2926,14 +2933,14 @@ function DepositAddressStep({
2926
2933
  onError
2927
2934
  }) {
2928
2935
  const hasSolana = Boolean(solanaDepositAddress);
2929
- const offer = _chunkKXSU24RUcjs.useDepositOffer.call(void 0, );
2936
+ const offer = _chunk4O2UGFFTcjs.useDepositOffer.call(void 0, );
2930
2937
  const BASE_CHAIN_ID2 = 8453;
2931
- const evmChainIds = _chunkKXSU24RUcjs.useDepositChainIds.call(void 0, );
2932
- const { catalog, isLoading: catalogLoading, shortlist } = _chunkKXSU24RUcjs.useChainCatalog.call(void 0, );
2938
+ const evmChainIds = _chunk4O2UGFFTcjs.useDepositChainIds.call(void 0, );
2939
+ const { catalog, isLoading: catalogLoading, shortlist } = _chunk4O2UGFFTcjs.useChainCatalog.call(void 0, );
2933
2940
  const catalogFor = _react.useCallback.call(void 0,
2934
2941
  (chain) => {
2935
2942
  if (!catalog) return void 0;
2936
- const key = _chunkKXSU24RUcjs.catalogKeyForChain.call(void 0, chain);
2943
+ const key = _chunk4O2UGFFTcjs.catalogKeyForChain.call(void 0, chain);
2937
2944
  return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2938
2945
  },
2939
2946
  [catalog]
@@ -3052,10 +3059,10 @@ function DepositAddressStep({
3052
3059
  });
3053
3060
  return address ? { chain: sourceChainId, address } : void 0;
3054
3061
  };
3055
- const assetStore = _chunkKXSU24RUcjs.useAssetStore.call(void 0, );
3062
+ const assetStore = _chunk4O2UGFFTcjs.useAssetStore.call(void 0, );
3056
3063
  const assetStoreRef = _react.useRef.call(void 0, assetStore);
3057
3064
  assetStoreRef.current = assetStore;
3058
- const paymentDecimals = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0,
3065
+ const paymentDecimals = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0,
3059
3066
  typeof sourceChainId === "number" ? sourceChainId : void 0,
3060
3067
  sourceTokenIdentity
3061
3068
  ).decimals;
@@ -3192,10 +3199,10 @@ function DepositAddressStep({
3192
3199
  return;
3193
3200
  }
3194
3201
  const event = status.lastEvent;
3195
- const eventTxHash = _chunkKXSU24RUcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkKXSU24RUcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3202
+ const eventTxHash = _chunk4O2UGFFTcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk4O2UGFFTcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3196
3203
  if (baselineTxHashRef.current === void 0) {
3197
3204
  baselineTxHashRef.current = eventTxHash;
3198
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkKXSU24RUcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
3205
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk4O2UGFFTcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
3199
3206
  const details = getDepositEventDetails(event);
3200
3207
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
3201
3208
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -3205,8 +3212,8 @@ function DepositAddressStep({
3205
3212
  isTrackingRef.current = true;
3206
3213
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
3207
3214
  const knownChain = chainId === "unknown" ? void 0 : chainId;
3208
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (token && knownChain !== void 0 ? _nullishCoalesce(_optionalChain([_chunkKXSU24RUcjs.resolveCuratedToken.call(void 0, token, knownChain), 'optionalAccess', _149 => _149.decimals]), () => ( (knownChain === "hypercore" ? void 0 : _optionalChain([assetStoreRef, 'access', _150 => _150.current, 'optionalAccess', _151 => _151.peekMeta, 'call', _152 => _152(
3209
- _nullishCoalesce(_chunkKXSU24RUcjs.assetIdFor.call(void 0, knownChain, token), () => ( ""))
3215
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (token && knownChain !== void 0 ? _nullishCoalesce(_optionalChain([_chunk4O2UGFFTcjs.resolveCuratedToken.call(void 0, token, knownChain), 'optionalAccess', _149 => _149.decimals]), () => ( (knownChain === "hypercore" ? void 0 : _optionalChain([assetStoreRef, 'access', _150 => _150.current, 'optionalAccess', _151 => _151.peekMeta, 'call', _152 => _152(
3216
+ _nullishCoalesce(_chunk4O2UGFFTcjs.assetIdFor.call(void 0, knownChain, token), () => ( ""))
3210
3217
  ), 'optionalAccess', _153 => _153.decimals])))) : void 0)));
3211
3218
  const directTransfer = typeof chainId === "number" && isEvmToken && isSameRoute(
3212
3219
  chainId,
@@ -3279,8 +3286,8 @@ function DepositAddressStep({
3279
3286
  if (offer.status === "error") {
3280
3287
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3281
3288
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3282
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: "The tokens this app accepts could not be loaded, so there is no deposit address to show." }),
3283
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Button, { onClick: offer.retry, fullWidth: true, children: "Try again" })
3289
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: "The tokens this app accepts could not be loaded, so there is no deposit address to show." }),
3290
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Button, { onClick: offer.retry, fullWidth: true, children: "Try again" })
3284
3291
  ] }) });
3285
3292
  }
3286
3293
  if (chainOptions.length === 0) {
@@ -3289,7 +3296,7 @@ function DepositAddressStep({
3289
3296
  }
3290
3297
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3291
3298
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3292
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.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." })
3299
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.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." })
3293
3300
  ] }) });
3294
3301
  }
3295
3302
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
@@ -3310,7 +3317,7 @@ function DepositAddressStep({
3310
3317
  },
3311
3318
  children: [
3312
3319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3313
- _chunkKXSU24RUcjs.CdnIcon,
3320
+ _chunk4O2UGFFTcjs.CdnIcon,
3314
3321
  {
3315
3322
  src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _164 => _164(sourceChainId), 'optionalAccess', _165 => _165.iconUrl]), () => ( _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, sourceChainId))),
3316
3323
  className: "rs-deposit-address-dropdown-icon"
@@ -3329,7 +3336,7 @@ function DepositAddressStep({
3329
3336
  onClick: () => handleSelectChain(chainId),
3330
3337
  children: [
3331
3338
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3332
- _chunkKXSU24RUcjs.CdnIcon,
3339
+ _chunk4O2UGFFTcjs.CdnIcon,
3333
3340
  {
3334
3341
  src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _166 => _166(chainId), 'optionalAccess', _167 => _167.iconUrl]), () => ( _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, chainId))),
3335
3342
  className: "rs-deposit-address-dropdown-icon"
@@ -3347,7 +3354,7 @@ function DepositAddressStep({
3347
3354
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3348
3355
  "Min.$",
3349
3356
  (_chunkFKJ6EJHHcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkFKJ6EJHHcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _168 => _168.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _169 => _169.minDepositUsd]), () => ( 0.1))).toFixed(2),
3350
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3357
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3351
3358
  _chunkG264OM23cjs.InfoIcon,
3352
3359
  {
3353
3360
  className: "rs-deposit-address-min-icon",
@@ -3424,7 +3431,7 @@ function DepositAddressStep({
3424
3431
  ] }),
3425
3432
  !withholdPaymentQr && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-value", children: displayAddress })
3426
3433
  ] }),
3427
- paymentUnquotable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: [
3434
+ paymentUnquotable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: [
3428
3435
  "This payment can't be priced from ",
3429
3436
  sourceTokenSymbol,
3430
3437
  " on",
@@ -3476,7 +3483,7 @@ function DepositAddressStep({
3476
3483
  },
3477
3484
  deposit.id
3478
3485
  )) }),
3479
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
3486
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
3480
3487
  ] });
3481
3488
  }
3482
3489
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -3533,7 +3540,7 @@ function FinalisingDepositStep() {
3533
3540
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
3534
3541
  ] })
3535
3542
  ] }),
3536
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
3543
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
3537
3544
  ] });
3538
3545
  }
3539
3546
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -3612,7 +3619,7 @@ function SwappedOrderTracker({
3612
3619
  }
3613
3620
  )
3614
3621
  ] }),
3615
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
3622
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
3616
3623
  ] });
3617
3624
  }
3618
3625
  function formatTrackerAmount(amount) {
@@ -3682,7 +3689,7 @@ function parseSwappedIframeMessage(raw) {
3682
3689
  const inner = obj.data && typeof obj.data === "object" ? obj.data : obj;
3683
3690
  const rawStatus = _nullishCoalesce(_nullishCoalesce(inner.order_status, () => ( inner.status)), () => ( obj.status));
3684
3691
  const asString2 = (v) => typeof v === "string" && v.length > 0 ? v : void 0;
3685
- const state = typeof rawStatus === "string" ? _chunkKXSU24RUcjs.hostedOrderStateFromSwapped.call(void 0,
3692
+ const state = typeof rawStatus === "string" ? _chunk4O2UGFFTcjs.hostedOrderStateFromSwapped.call(void 0,
3686
3693
  rawStatus,
3687
3694
  _nullishCoalesce(asString2(inner.transaction_id), () => ( asString2(obj.transactionId)))
3688
3695
  ) : null;
@@ -3865,7 +3872,7 @@ function SwappedProviderStep({
3865
3872
  if (isCurrentOrder) {
3866
3873
  setOrderState((prev) => ({
3867
3874
  ...res,
3868
- ..._chunkKXSU24RUcjs.mergeHostedOrderState.call(void 0, prev, res)
3875
+ ..._chunk4O2UGFFTcjs.mergeHostedOrderState.call(void 0, prev, res)
3869
3876
  }));
3870
3877
  }
3871
3878
  } catch (e25) {
@@ -3910,8 +3917,8 @@ function SwappedProviderStep({
3910
3917
  deliveryTxHash
3911
3918
  );
3912
3919
  if (cancelled) return;
3913
- const txHash = _chunkKXSU24RUcjs.isDepositEvent.call(void 0, lastEvent) ? _chunkKXSU24RUcjs.getEventTxHash.call(void 0, lastEvent) : void 0;
3914
- if (lastEvent && txHash && _chunkKXSU24RUcjs.txRefsMatch.call(void 0, txHash, deliveryTxHash)) {
3920
+ const txHash = _chunk4O2UGFFTcjs.isDepositEvent.call(void 0, lastEvent) ? _chunk4O2UGFFTcjs.getEventTxHash.call(void 0, lastEvent) : void 0;
3921
+ if (lastEvent && txHash && _chunk4O2UGFFTcjs.txRefsMatch.call(void 0, txHash, deliveryTxHash)) {
3915
3922
  currentDepositTxHashRef.current = txHash;
3916
3923
  setLatestEvent(lastEvent);
3917
3924
  }
@@ -3919,10 +3926,10 @@ function SwappedProviderStep({
3919
3926
  const status = await service.fetchLatestStatus(smartAccount);
3920
3927
  if (cancelled) return;
3921
3928
  const event = status.lastEvent;
3922
- const eventTxHash = _chunkKXSU24RUcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkKXSU24RUcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3929
+ const eventTxHash = _chunk4O2UGFFTcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk4O2UGFFTcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3923
3930
  if (baselineDepositTxHashRef.current === void 0) {
3924
3931
  baselineDepositTxHashRef.current = eventTxHash;
3925
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkKXSU24RUcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3932
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk4O2UGFFTcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3926
3933
  currentDepositTxHashRef.current = eventTxHash;
3927
3934
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
3928
3935
  }
@@ -3948,7 +3955,7 @@ function SwappedProviderStep({
3948
3955
  }, [service, smartAccount]);
3949
3956
  _react.useEffect.call(void 0, () => {
3950
3957
  if (fastDepositPollEnabledRef.current) return;
3951
- if (!_chunkKXSU24RUcjs.hasReached.call(void 0, orderState, "paid")) return;
3958
+ if (!_chunk4O2UGFFTcjs.hasReached.call(void 0, orderState, "paid")) return;
3952
3959
  fastDepositPollEnabledRef.current = true;
3953
3960
  _optionalChain([rescheduleDepositPollRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3954
3961
  }, [orderState]);
@@ -3972,7 +3979,7 @@ function SwappedProviderStep({
3972
3979
  // Normalise to the uuid the backend poll also keys on, so orderState
3973
3980
  // is consistent regardless of which path set it.
3974
3981
  orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _193 => _193.orderId]))), () => ( ext)),
3975
- ..._chunkKXSU24RUcjs.mergeHostedOrderState.call(void 0, prev, parsed.state),
3982
+ ..._chunk4O2UGFFTcjs.mergeHostedOrderState.call(void 0, prev, parsed.state),
3976
3983
  orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _194 => _194.orderCrypto]))), () => ( null)),
3977
3984
  orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _195 => _195.orderCryptoAmount]))), () => ( null)),
3978
3985
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -3986,7 +3993,7 @@ function SwappedProviderStep({
3986
3993
  return () => window.removeEventListener("message", onMessage);
3987
3994
  }, [openExternally]);
3988
3995
  _react.useEffect.call(void 0, () => {
3989
- const swappedProvesLive = orderState !== null && (variant !== "fiat" || _chunkKXSU24RUcjs.hasReached.call(void 0, orderState, "paying") || orderState.outcome !== null);
3996
+ const swappedProvesLive = orderState !== null && (variant !== "fiat" || _chunk4O2UGFFTcjs.hasReached.call(void 0, orderState, "paying") || orderState.outcome !== null);
3990
3997
  if (phase === "provider" && (swappedProvesLive || latestEvent !== null)) {
3991
3998
  setPhase("tracker");
3992
3999
  }
@@ -3996,10 +4003,10 @@ function SwappedProviderStep({
3996
4003
  [orderState, latestEvent]
3997
4004
  );
3998
4005
  const terminalState = _react.useMemo.call(void 0, () => {
3999
- if (_chunkKXSU24RUcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
4006
+ if (_chunk4O2UGFFTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
4000
4007
  return {
4001
4008
  kind: "failed",
4002
- message: _chunkKXSU24RUcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
4009
+ message: _chunk4O2UGFFTcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
4003
4010
  };
4004
4011
  }
4005
4012
  const outcome = _optionalChain([orderState, 'optionalAccess', _200 => _200.outcome]);
@@ -4025,7 +4032,7 @@ function SwappedProviderStep({
4025
4032
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _205 => _205.orderCrypto]), () => ( null)),
4026
4033
  // Base-unit source amount from the deposit row/event, consistent with the
4027
4034
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
4028
- amount: _nullishCoalesce(_chunkKXSU24RUcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
4035
+ amount: _nullishCoalesce(_chunk4O2UGFFTcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
4029
4036
  expectedOrderUuid: expectedOrderUuidRef.current,
4030
4037
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
4031
4038
  };
@@ -4036,14 +4043,14 @@ function SwappedProviderStep({
4036
4043
  }, [latestEvent, orderState, smartAccount]);
4037
4044
  _react.useEffect.call(void 0, () => {
4038
4045
  if (failedFiredRef.current || completeFiredRef.current) return;
4039
- if (!_chunkKXSU24RUcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
4046
+ if (!_chunk4O2UGFFTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
4040
4047
  const txHash = currentDepositTxHashRef.current;
4041
4048
  if (!txHash) return;
4042
4049
  failedFiredRef.current = true;
4043
4050
  setPhase("tracker");
4044
4051
  _optionalChain([onSwappedFailedRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207(
4045
4052
  txHash,
4046
- _chunkKXSU24RUcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
4053
+ _chunk4O2UGFFTcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
4047
4054
  )]);
4048
4055
  }, [latestEvent]);
4049
4056
  const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
@@ -4117,7 +4124,7 @@ function SwappedProviderStep({
4117
4124
  }
4118
4125
  )
4119
4126
  ] }) }),
4120
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
4127
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
4121
4128
  ] });
4122
4129
  }
4123
4130
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
@@ -4157,17 +4164,17 @@ function SwappedProviderStep({
4157
4164
  retryToken
4158
4165
  )
4159
4166
  ] }) }),
4160
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
4167
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
4161
4168
  ] });
4162
4169
  }
4163
4170
  function deriveStepStates(order, latestEvent) {
4164
- if (_chunkKXSU24RUcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
4171
+ if (_chunk4O2UGFFTcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
4165
4172
  return ["complete", "complete", "failed", "pending"];
4166
4173
  }
4167
4174
  if (_optionalChain([order, 'optionalAccess', _219 => _219.outcome])) {
4168
4175
  return ["failed", "pending", "pending", "pending"];
4169
4176
  }
4170
- const step2Complete = latestEvent !== null || _chunkKXSU24RUcjs.hasReached.call(void 0, order, "sent");
4177
+ const step2Complete = latestEvent !== null || _chunk4O2UGFFTcjs.hasReached.call(void 0, order, "sent");
4171
4178
  const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _220 => _220.type]) === "bridge-complete";
4172
4179
  if (step3Complete) {
4173
4180
  return ["complete", "complete", "complete", "complete"];
@@ -4175,7 +4182,7 @@ function deriveStepStates(order, latestEvent) {
4175
4182
  if (step2Complete) {
4176
4183
  return ["complete", "complete", "active", "pending"];
4177
4184
  }
4178
- if (_chunkKXSU24RUcjs.hasReached.call(void 0, order, "paid")) {
4185
+ if (_chunk4O2UGFFTcjs.hasReached.call(void 0, order, "paid")) {
4179
4186
  return ["complete", "active", "pending", "pending"];
4180
4187
  }
4181
4188
  return ["active", "pending", "pending", "pending"];
@@ -4185,7 +4192,7 @@ SwappedProviderStep.displayName = "SwappedProviderStep";
4185
4192
  // src/components/steps/RampOrderStep.tsx
4186
4193
 
4187
4194
  var BankOnrampStep = _react.lazy.call(void 0, async () => {
4188
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./BankOnrampStep-3SNUX6V2.cjs")));
4195
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./BankOnrampStep-QCPISCAQ.cjs")));
4189
4196
  return { default: module.BankOnrampStep };
4190
4197
  });
4191
4198
  var HOSTED = {
@@ -4210,7 +4217,7 @@ function RampOrderStep(props) {
4210
4217
  {
4211
4218
  backendUrl: order.backendUrl,
4212
4219
  smartAccount,
4213
- bankOnramp: order.bankOnramp,
4220
+ getCustomerSession: order.getCustomerSession,
4214
4221
  onJourney: order.onJourney,
4215
4222
  onGoBack: props.onGoBack,
4216
4223
  onError: props.onError,
@@ -4274,6 +4281,47 @@ function HostedOrder({
4274
4281
  }
4275
4282
  RampOrderStep.displayName = "RampOrderStep";
4276
4283
 
4284
+ // src/core/ramp-rows.ts
4285
+ var NOT_SERVED_NOTICE = "Bank transfer isn't available in your region.";
4286
+ function resolveRampRows(input) {
4287
+ const { providers } = input;
4288
+ const has = (provider, kind) => providers === null || providers !== "loading" && providers.some((p) => p.provider === provider && p.kinds.includes(kind));
4289
+ const loading = providers === "loading";
4290
+ const exchange = !input.enableExchangeConnect ? "hidden" : loading ? "loading" : has("swapped", "exchange") ? "offered" : "hidden";
4291
+ const bankRequested = input.virtualAccounts && input.customerSession && input.bankTransferAllowed;
4292
+ const swappedFiat = has("swapped", "fiat");
4293
+ const bankBy = !bankRequested ? null : has("noah", "fiat") && !input.noahNotServed ? "noah" : swappedFiat && !refusesBank(input.swappedMethods) ? "swapped" : null;
4294
+ const notice = bankRequested && input.noahNotServed && !bankBy ? NOT_SERVED_NOTICE : null;
4295
+ const offered = input.enableFiatOnramp && swappedFiat ? input.swappedMethods : { kind: "hidden" };
4296
+ const swapped = offered.kind === "hidden" && bankBy ? {
4297
+ kind: "list",
4298
+ methods: [],
4299
+ recommendedMethod: input.bankRow.method,
4300
+ country: null,
4301
+ source: "configured"
4302
+ } : offered;
4303
+ if (loading && (input.enableFiatOnramp || bankRequested)) {
4304
+ return { cash: { kind: "loading" }, exchange, notice: null };
4305
+ }
4306
+ if (swapped.kind !== "list") return { cash: swapped, exchange, notice };
4307
+ const methods = swapped.methods.map((m) => ({
4308
+ ...m,
4309
+ provider: isBankRow(m) && bankBy ? bankBy : "swapped"
4310
+ }));
4311
+ if (bankBy && !methods.some(isBankRow)) {
4312
+ methods.push({ ...input.bankRow, provider: bankBy });
4313
+ }
4314
+ return { cash: { ...swapped, methods }, exchange, notice };
4315
+ }
4316
+ function refusesBank(swapped) {
4317
+ if (swapped.kind === "hidden") return true;
4318
+ if (swapped.kind !== "list" || swapped.source === "fallback") return false;
4319
+ return !swapped.methods.some(isBankRow);
4320
+ }
4321
+ function isBankRow(m) {
4322
+ return m.method === "bank-transfer";
4323
+ }
4324
+
4277
4325
  // src/components/steps/ExchangeSelectStep.tsx
4278
4326
 
4279
4327
 
@@ -4379,7 +4427,7 @@ function ExchangeSelectStep({
4379
4427
  )
4380
4428
  ] }),
4381
4429
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
4382
- const brand = _chunkKXSU24RUcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4430
+ const brand = _chunk4O2UGFFTcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4383
4431
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4384
4432
  "button",
4385
4433
  {
@@ -4404,7 +4452,7 @@ function ExchangeSelectStep({
4404
4452
  );
4405
4453
  }) })
4406
4454
  ] }),
4407
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {}),
4455
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {}),
4408
4456
  selectionNotice && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-exchange-select-fee-note", role: "status", children: selectionNotice })
4409
4457
  ] });
4410
4458
  }
@@ -4437,14 +4485,14 @@ function SolanaTokenSelectStep({
4437
4485
  setError(null);
4438
4486
  const portfolioBySymbol = {};
4439
4487
  try {
4440
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4488
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4441
4489
  solanaAddress
4442
4490
  });
4443
4491
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
4444
4492
  if (!active) return;
4445
4493
  for (const t of portfolio.tokens) {
4446
4494
  const symbol = t.symbol.toUpperCase();
4447
- if (!_chunkKXSU24RUcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
4495
+ if (!_chunk4O2UGFFTcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
4448
4496
  let parsed = 0n;
4449
4497
  try {
4450
4498
  parsed = BigInt(t.balance || "0");
@@ -4460,12 +4508,12 @@ function SolanaTokenSelectStep({
4460
4508
  };
4461
4509
  }
4462
4510
  }
4463
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4511
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4464
4512
  symbols: Object.keys(portfolioBySymbol)
4465
4513
  });
4466
4514
  } catch (err) {
4467
4515
  if (!active) return;
4468
- _chunkKXSU24RUcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4516
+ _chunk4O2UGFFTcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4469
4517
  solanaAddress
4470
4518
  });
4471
4519
  setError(
@@ -4476,7 +4524,7 @@ function SolanaTokenSelectStep({
4476
4524
  return;
4477
4525
  }
4478
4526
  const results = [];
4479
- for (const token of _chunkKXSU24RUcjs.SOLANA_TOKENS) {
4527
+ for (const token of _chunk4O2UGFFTcjs.SOLANA_TOKENS) {
4480
4528
  const fromPortfolio = portfolioBySymbol[token.symbol];
4481
4529
  if (fromPortfolio && fromPortfolio.balance > 0n) {
4482
4530
  results.push({
@@ -4512,7 +4560,7 @@ function SolanaTokenSelectStep({
4512
4560
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
4513
4561
  const numeric = Number(raw);
4514
4562
  if (!Number.isFinite(numeric)) return raw;
4515
- return _chunkKXSU24RUcjs.tokenFormatter.format(numeric);
4563
+ return _chunk4O2UGFFTcjs.tokenFormatter.format(numeric);
4516
4564
  } catch (e30) {
4517
4565
  return "--";
4518
4566
  }
@@ -4533,7 +4581,7 @@ function SolanaTokenSelectStep({
4533
4581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.Spinner, { className: "rs-text-tertiary" }),
4534
4582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
4535
4583
  ] }),
4536
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: error }),
4584
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
4537
4585
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
4538
4586
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG264OM23cjs.WalletIcon, { className: "rs-empty-icon" }),
4539
4587
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
@@ -4566,14 +4614,14 @@ function SolanaTokenSelectStep({
4566
4614
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4567
4615
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4568
4616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4569
- _chunkKXSU24RUcjs.TokenIcon,
4617
+ _chunk4O2UGFFTcjs.TokenIcon,
4570
4618
  {
4571
4619
  token: { chain: "solana", address: entry.token.mint },
4572
4620
  symbol: entry.token.symbol,
4573
4621
  fallback: entry.token.symbol.slice(0, 4)
4574
4622
  }
4575
4623
  ) }),
4576
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4624
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4577
4625
  ] }),
4578
4626
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
4579
4627
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -4590,14 +4638,14 @@ function SolanaTokenSelectStep({
4590
4638
  ] })
4591
4639
  ] })
4592
4640
  ] }),
4593
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkKXSU24RUcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk4O2UGFFTcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4594
4642
  ]
4595
4643
  },
4596
4644
  entry.token.symbol
4597
4645
  );
4598
4646
  }) }),
4599
4647
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4600
- _chunkKXSU24RUcjs.Button,
4648
+ _chunk4O2UGFFTcjs.Button,
4601
4649
  {
4602
4650
  onClick: () => selectedEntry && onContinue(
4603
4651
  selectedEntry.token,
@@ -4610,7 +4658,7 @@ function SolanaTokenSelectStep({
4610
4658
  }
4611
4659
  )
4612
4660
  ] }),
4613
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
4661
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
4614
4662
  ] });
4615
4663
  }
4616
4664
 
@@ -4663,7 +4711,7 @@ function SolanaAmountStep({
4663
4711
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
4664
4712
  const numeric = Number(raw);
4665
4713
  if (!Number.isFinite(numeric)) return raw;
4666
- return _chunkKXSU24RUcjs.tokenFormatter.format(numeric);
4714
+ return _chunk4O2UGFFTcjs.tokenFormatter.format(numeric);
4667
4715
  } catch (e32) {
4668
4716
  return "\u2026";
4669
4717
  }
@@ -4680,7 +4728,7 @@ function SolanaAmountStep({
4680
4728
  }
4681
4729
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
4682
4730
  const spendableBalance = _react.useMemo.call(void 0, () => {
4683
- if (!_chunkKXSU24RUcjs.isNativeSol.call(void 0, token)) return balance;
4731
+ if (!_chunk4O2UGFFTcjs.isNativeSol.call(void 0, token)) return balance;
4684
4732
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
4685
4733
  }, [balance, token]);
4686
4734
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -4752,8 +4800,8 @@ function SolanaAmountStep({
4752
4800
  const exceedsBalance = Boolean(
4753
4801
  sourceAmountUnits !== null && sourceAmountUnits > spendableBalance
4754
4802
  );
4755
- const boundsFor = _chunkKXSU24RUcjs.useDepositBounds.call(void 0, );
4756
- const boundViolation = _chunkKXSU24RUcjs.depositBoundsViolation.call(void 0,
4803
+ const boundsFor = _chunk4O2UGFFTcjs.useDepositBounds.call(void 0, );
4804
+ const boundViolation = _chunk4O2UGFFTcjs.depositBoundsViolation.call(void 0,
4757
4805
  boundsFor("solana", token.mint),
4758
4806
  sourceAmountUnits
4759
4807
  );
@@ -4761,7 +4809,7 @@ function SolanaAmountStep({
4761
4809
  const handlePresetClick = (percentage) => {
4762
4810
  const formatted = computePresetAmount(percentage);
4763
4811
  if (!formatted) return;
4764
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4812
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4765
4813
  percentage,
4766
4814
  symbol: token.symbol,
4767
4815
  formatted
@@ -4797,7 +4845,7 @@ function SolanaAmountStep({
4797
4845
  try {
4798
4846
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
4799
4847
  } catch (e37) {
4800
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4848
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4801
4849
  amount,
4802
4850
  sourceAmount: sourceAmountStr,
4803
4851
  reason: "parse-units-failed"
@@ -4806,13 +4854,13 @@ function SolanaAmountStep({
4806
4854
  return;
4807
4855
  }
4808
4856
  if (amountInUnits > spendableBalance) {
4809
- const isReserveIssue = _chunkKXSU24RUcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
4857
+ const isReserveIssue = _chunk4O2UGFFTcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
4810
4858
  setError(
4811
4859
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
4812
4860
  );
4813
4861
  return;
4814
4862
  }
4815
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4863
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4816
4864
  symbol: token.symbol,
4817
4865
  inputAmountUsd: amount,
4818
4866
  sourceAmount: sourceAmountStr,
@@ -4845,13 +4893,13 @@ function SolanaAmountStep({
4845
4893
  " available",
4846
4894
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4847
4895
  " (~",
4848
- _chunkKXSU24RUcjs.currencyFormatter.format(computedBalanceUsd),
4896
+ _chunk4O2UGFFTcjs.currencyFormatter.format(computedBalanceUsd),
4849
4897
  ")"
4850
4898
  ] })
4851
4899
  ] }),
4852
4900
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4853
4901
  "Min. deposit ",
4854
- _chunkKXSU24RUcjs.currencyFormatter.format(minDepositUsd)
4902
+ _chunk4O2UGFFTcjs.currencyFormatter.format(minDepositUsd)
4855
4903
  ] })
4856
4904
  ] })
4857
4905
  ] }),
@@ -4875,7 +4923,7 @@ function SolanaAmountStep({
4875
4923
  token.symbol
4876
4924
  ] }),
4877
4925
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4878
- _chunkKXSU24RUcjs.TokenIcon,
4926
+ _chunk4O2UGFFTcjs.TokenIcon,
4879
4927
  {
4880
4928
  token: { chain: "solana", address: token.mint },
4881
4929
  symbol: token.symbol
@@ -4891,17 +4939,17 @@ function SolanaAmountStep({
4891
4939
  " ",
4892
4940
  targetTokenSymbol
4893
4941
  ] }),
4894
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.TokenIcon, { token: targetToken, symbol: targetTokenSymbol }) })
4942
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.TokenIcon, { token: targetToken, symbol: targetTokenSymbol }) })
4895
4943
  ] })
4896
4944
  ] }),
4897
4945
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4898
4946
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4899
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkKXSU24RUcjs.currencyFormatter.format(balanceAfterUsd) })
4947
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk4O2UGFFTcjs.currencyFormatter.format(balanceAfterUsd) })
4900
4948
  ] })
4901
4949
  ] }),
4902
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: error }),
4950
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
4903
4951
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4904
- _chunkKXSU24RUcjs.Button,
4952
+ _chunk4O2UGFFTcjs.Button,
4905
4953
  {
4906
4954
  onClick: handleContinue,
4907
4955
  fullWidth: true,
@@ -4910,7 +4958,7 @@ function SolanaAmountStep({
4910
4958
  }
4911
4959
  )
4912
4960
  ] }),
4913
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
4961
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
4914
4962
  ] });
4915
4963
  }
4916
4964
 
@@ -4930,10 +4978,10 @@ function loadSolanaDependencies() {
4930
4978
  return dependenciesPromise2;
4931
4979
  }
4932
4980
  function getSolanaRpcUrl(rpcUrls) {
4933
- return _nullishCoalesce(_chunkKXSU24RUcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4981
+ return _nullishCoalesce(_chunk4O2UGFFTcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4934
4982
  }
4935
4983
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4936
- return _chunkKXSU24RUcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4984
+ return _chunk4O2UGFFTcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4937
4985
  }
4938
4986
  async function getSolanaConnection(rpcUrls) {
4939
4987
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -5050,7 +5098,7 @@ function SolanaConfirmStep({
5050
5098
  onSubmittingChange,
5051
5099
  debug
5052
5100
  }) {
5053
- const rpcUrls = _chunkKXSU24RUcjs.useRpcUrls.call(void 0, );
5101
+ const rpcUrls = _chunk4O2UGFFTcjs.useRpcUrls.call(void 0, );
5054
5102
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
5055
5103
  const [error, setError] = _react.useState.call(void 0, null);
5056
5104
  const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
@@ -5060,34 +5108,34 @@ function SolanaConfirmStep({
5060
5108
  return () => _optionalChain([onSubmittingChangeRef, 'access', _234 => _234.current, 'optionalCall', _235 => _235(false)]);
5061
5109
  }, [isSubmitting]);
5062
5110
  const targetChainId = _chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain);
5063
- const targetSymbol = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
5111
+ const targetSymbol = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChainId, targetToken).symbol;
5064
5112
  const sourceChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, "solana");
5065
5113
  const targetChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, targetChainId);
5066
5114
  const sourceChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, "solana");
5067
5115
  const targetChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, targetChainId);
5068
5116
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _236 => _236.feeSponsored]), () => ( false));
5069
5117
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _237 => _237.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
5070
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkKXSU24RUcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
5118
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk4O2UGFFTcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
5071
5119
  const receiveDisplay = (() => {
5072
5120
  const usdValue = Number(targetAmount);
5073
5121
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
5074
- const estimate = _chunkKXSU24RUcjs.formatReceiveEstimate.call(void 0, {
5122
+ const estimate = _chunk4O2UGFFTcjs.formatReceiveEstimate.call(void 0, {
5075
5123
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
5076
5124
  sourceSymbol: token.symbol,
5077
5125
  targetSymbol,
5078
5126
  sourceAmountUsd,
5079
5127
  // The wallet flow only offers the allowlist, so this is the check.
5080
- sourceTrusted: _chunkKXSU24RUcjs.resolveSolanaToken.call(void 0, token.mint) !== void 0,
5128
+ sourceTrusted: _chunk4O2UGFFTcjs.resolveSolanaToken.call(void 0, token.mint) !== void 0,
5081
5129
  // Curated stablecoin target estimates at $1 when unquoted; never applied
5082
5130
  // to the source (a held token). See ConfirmStep for the rationale.
5083
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkKXSU24RUcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
5131
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk4O2UGFFTcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
5084
5132
  });
5085
5133
  if (estimate !== void 0) return estimate;
5086
5134
  return targetSymbol;
5087
5135
  })();
5088
5136
  const handleConfirm = async () => {
5089
5137
  if (!solanaProvider) {
5090
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5138
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5091
5139
  reason: "missing-provider"
5092
5140
  });
5093
5141
  setError("Solana wallet not connected");
@@ -5095,7 +5143,7 @@ function SolanaConfirmStep({
5095
5143
  }
5096
5144
  const parsedAmount = parseFloat(sourceAmount);
5097
5145
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
5098
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5146
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
5099
5147
  reason: "invalid-amount",
5100
5148
  sourceAmount
5101
5149
  });
@@ -5104,7 +5152,7 @@ function SolanaConfirmStep({
5104
5152
  }
5105
5153
  setError(null);
5106
5154
  setIsSubmitting(true);
5107
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
5155
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
5108
5156
  smartAccount,
5109
5157
  solanaAddress,
5110
5158
  solanaDepositAddress,
@@ -5114,7 +5162,7 @@ function SolanaConfirmStep({
5114
5162
  });
5115
5163
  try {
5116
5164
  const check = await service.checkAccount(smartAccount);
5117
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
5165
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
5118
5166
  smartAccount,
5119
5167
  isRegistered: check.isRegistered,
5120
5168
  targetChain: check.targetChain,
@@ -5127,12 +5175,12 @@ function SolanaConfirmStep({
5127
5175
  }
5128
5176
  const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
5129
5177
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
5130
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
5178
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
5131
5179
  token: token.symbol,
5132
5180
  sourceAmount,
5133
5181
  amountUnits: amountUnits.toString()
5134
5182
  });
5135
- const transaction = _chunkKXSU24RUcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
5183
+ const transaction = _chunk4O2UGFFTcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
5136
5184
  connection,
5137
5185
  solanaAddress,
5138
5186
  solanaDepositAddress,
@@ -5144,7 +5192,7 @@ function SolanaConfirmStep({
5144
5192
  token.mint,
5145
5193
  amountUnits
5146
5194
  );
5147
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
5195
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
5148
5196
  token: token.symbol,
5149
5197
  instructionCount: transaction.instructions.length,
5150
5198
  feePayer: _optionalChain([transaction, 'access', _238 => _238.feePayer, 'optionalAccess', _239 => _239.toBase58, 'call', _240 => _240()]),
@@ -5155,7 +5203,7 @@ function SolanaConfirmStep({
5155
5203
  connection,
5156
5204
  transaction
5157
5205
  );
5158
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
5206
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
5159
5207
  txHash,
5160
5208
  amountUnits: amountUnits.toString()
5161
5209
  });
@@ -5167,8 +5215,8 @@ function SolanaConfirmStep({
5167
5215
  });
5168
5216
  } catch (err) {
5169
5217
  const raw = err instanceof Error ? err.message : "Transfer failed";
5170
- const message = _chunkKXSU24RUcjs.formatUserError.call(void 0, raw);
5171
- _chunkKXSU24RUcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
5218
+ const message = _chunk4O2UGFFTcjs.formatUserError.call(void 0, raw);
5219
+ _chunk4O2UGFFTcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
5172
5220
  smartAccount,
5173
5221
  token: token.symbol,
5174
5222
  sourceAmount
@@ -5199,9 +5247,9 @@ function SolanaConfirmStep({
5199
5247
  fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
5200
5248
  }
5201
5249
  ),
5202
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.Callout, { variant: "error", children: error }),
5250
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
5203
5251
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5204
- _chunkKXSU24RUcjs.Button,
5252
+ _chunk4O2UGFFTcjs.Button,
5205
5253
  {
5206
5254
  onClick: handleConfirm,
5207
5255
  loading: isSubmitting,
@@ -5212,7 +5260,7 @@ function SolanaConfirmStep({
5212
5260
  }
5213
5261
  )
5214
5262
  ] }),
5215
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
5263
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
5216
5264
  ] });
5217
5265
  }
5218
5266
 
@@ -5236,10 +5284,10 @@ function DappImportAssetSelectStep({
5236
5284
  ),
5237
5285
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
5238
5286
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
5239
- const tokenAmount = asset.balance ? _chunkKXSU24RUcjs.tokenFormatter.format(
5287
+ const tokenAmount = asset.balance ? _chunk4O2UGFFTcjs.tokenFormatter.format(
5240
5288
  Number(asset.balance) / 10 ** asset.decimals
5241
5289
  ) : "0";
5242
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkKXSU24RUcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5290
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk4O2UGFFTcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5243
5291
  const assetIcon = asset.icon;
5244
5292
  const chainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, asset.chainId);
5245
5293
  const badge = _chunkFKJ6EJHHcjs.getChainBadge.call(void 0, asset.chainId);
@@ -5252,15 +5300,15 @@ function DappImportAssetSelectStep({
5252
5300
  children: [
5253
5301
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
5254
5302
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
5255
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5256
- _chunkKXSU24RUcjs.TokenIcon,
5303
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5304
+ _chunk4O2UGFFTcjs.TokenIcon,
5257
5305
  {
5258
5306
  token: { chain: asset.chainId, address: asset.token },
5259
5307
  symbol: asset.symbol,
5260
5308
  fallback: asset.symbol.slice(0, 4)
5261
5309
  }
5262
5310
  ) }),
5263
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.CdnIcon, { src: chainIcon, alt: _chunkFKJ6EJHHcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5311
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: chainIcon, alt: _chunkFKJ6EJHHcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5264
5312
  "span",
5265
5313
  {
5266
5314
  className: "rs-asset-chain-badge",
@@ -5292,7 +5340,7 @@ function DappImportAssetSelectStep({
5292
5340
  );
5293
5341
  }) })
5294
5342
  ] }),
5295
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
5343
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
5296
5344
  ] });
5297
5345
  }
5298
5346
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -5314,7 +5362,7 @@ function describeRow(status, comingSoon) {
5314
5362
  }
5315
5363
  if (status.enabled) {
5316
5364
  return {
5317
- subtitle: status.balanceUsd > 0 ? _chunkKXSU24RUcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5365
+ subtitle: status.balanceUsd > 0 ? _chunk4O2UGFFTcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5318
5366
  disabled: false,
5319
5367
  busy: false
5320
5368
  };
@@ -5351,7 +5399,7 @@ function DappImportSelectStep({
5351
5399
  Boolean(brand.comingSoon)
5352
5400
  );
5353
5401
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5354
- _chunkKXSU24RUcjs.ListRow,
5402
+ _chunk4O2UGFFTcjs.ListRow,
5355
5403
  {
5356
5404
  leadingMedia: brand.iconUrl,
5357
5405
  title: brand.label,
@@ -5370,7 +5418,7 @@ function DappImportSelectStep({
5370
5418
  );
5371
5419
  }) })
5372
5420
  ] }),
5373
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
5421
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
5374
5422
  ] });
5375
5423
  }
5376
5424
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -5427,7 +5475,7 @@ function DappImportAssetSelectSkeleton({
5427
5475
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
5428
5476
  }
5429
5477
  ) }),
5430
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.PoweredBy, {})
5478
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
5431
5479
  ] });
5432
5480
  }
5433
5481
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -6117,6 +6165,7 @@ function analyticsStepForFlowStep(method, step) {
6117
6165
  }
6118
6166
  var BANK_FAILURES = {
6119
6167
  BANK_ONRAMP_OPTIONS_FAILED: "bank_options_failed",
6168
+ BANK_ONRAMP_SESSION_REFUSED: "bank_session_refused",
6120
6169
  BANK_ONRAMP_SETUP_FAILED: "bank_setup_failed",
6121
6170
  BANK_ONRAMP_DETAILS_FAILED: "bank_details_failed",
6122
6171
  BANK_ONRAMP_DETAILS_PENDING: "bank_details_pending"
@@ -6352,7 +6401,7 @@ function DepositAnalyticsControllerProvider({
6352
6401
  children,
6353
6402
  controllerRef
6354
6403
  }) {
6355
- const emit = _chunkKXSU24RUcjs.useDepositAnalyticsEmitter.call(void 0, );
6404
+ const emit = _chunk4O2UGFFTcjs.useDepositAnalyticsEmitter.call(void 0, );
6356
6405
  const controller = _react.useMemo.call(void 0,
6357
6406
  () => createDepositAnalyticsController(emit),
6358
6407
  [emit]
@@ -7440,7 +7489,7 @@ async function fetchPinnedQuote(params) {
7440
7489
  timeoutId = setTimeout(resolve, SWAPPED_QUOTE_FEE_TIMEOUT_MS, null);
7441
7490
  })
7442
7491
  ]);
7443
- return quote && !_chunkKXSU24RUcjs.isDepositPolicyRefusal.call(void 0, quote) ? quote : void 0;
7492
+ return quote && !_chunk4O2UGFFTcjs.isDepositPolicyRefusal.call(void 0, quote) ? quote : void 0;
7444
7493
  } catch (e40) {
7445
7494
  return void 0;
7446
7495
  } finally {
@@ -7663,7 +7712,8 @@ function DepositFlow({
7663
7712
  initialAssetMigration,
7664
7713
  enableWallet = true,
7665
7714
  enableFiatOnramp = false,
7666
- bankOnramp,
7715
+ virtualAccountOnramp,
7716
+ getCustomerSession,
7667
7717
  onBankJourney,
7668
7718
  backendUrl,
7669
7719
  enableQrTransfer = true,
@@ -7688,7 +7738,7 @@ function DepositFlow({
7688
7738
  onError,
7689
7739
  debug
7690
7740
  }) {
7691
- const rpcUrls = _chunkKXSU24RUcjs.useRpcUrls.call(void 0, );
7741
+ const rpcUrls = _chunk4O2UGFFTcjs.useRpcUrls.call(void 0, );
7692
7742
  const onStepChangeRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onStepChange);
7693
7743
  const analytics = useDepositAnalyticsController();
7694
7744
  const onLifecycleRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onLifecycle);
@@ -7709,18 +7759,18 @@ function DepositFlow({
7709
7759
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
7710
7760
  const logFlow = _react.useCallback.call(void 0,
7711
7761
  (message, data) => {
7712
- _chunkKXSU24RUcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7762
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7713
7763
  },
7714
7764
  [debug]
7715
7765
  );
7716
7766
  const logFlowError = _react.useCallback.call(void 0,
7717
7767
  (message, error, data) => {
7718
- _chunkKXSU24RUcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7768
+ _chunk4O2UGFFTcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7719
7769
  },
7720
7770
  [debug]
7721
7771
  );
7722
7772
  const bankOnrampEnabled = Boolean(
7723
- bankOnramp && (fiatMethods === void 0 || fiatMethods["bank-transfer"] === true)
7773
+ virtualAccountOnramp && getCustomerSession && (fiatMethods === void 0 || fiatMethods["bank-transfer"] === true)
7724
7774
  );
7725
7775
  const hasSwappedFiatMethod = Boolean(
7726
7776
  enableFiatOnramp && (!fiatMethods || Object.entries(fiatMethods).some(
@@ -7849,10 +7899,10 @@ function DepositFlow({
7849
7899
  ]);
7850
7900
  const setupChainId = typeof targetChain === "number" && !_chunkFKJ6EJHHcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : DEFAULT_SETUP_CHAIN_ID;
7851
7901
  const targetChainId = _chunkFKJ6EJHHcjs.targetChainToChainId.call(void 0, targetChain);
7852
- const targetDisplay = _chunkKXSU24RUcjs.useTokenDisplay.call(void 0, targetChainId, targetToken);
7902
+ const targetDisplay = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChainId, targetToken);
7853
7903
  const targetSymbol = targetDisplay.symbol;
7854
7904
  const isTargetStablecoin = _chunkFKJ6EJHHcjs.isStablecoinSymbol.call(void 0, targetSymbol);
7855
- const assetStore = _chunkKXSU24RUcjs.useAssetStore.call(void 0, );
7905
+ const assetStore = _chunk4O2UGFFTcjs.useAssetStore.call(void 0, );
7856
7906
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
7857
7907
  _react.useEffect.call(void 0, () => {
7858
7908
  targetMarketPriceRef.current = null;
@@ -7875,7 +7925,7 @@ function DepositFlow({
7875
7925
  return {
7876
7926
  ownerAddress: walletClientProp.account.address,
7877
7927
  walletClient: walletClientProp,
7878
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkKXSU24RUcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7928
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk4O2UGFFTcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7879
7929
  switchChain: dappSwitchChain
7880
7930
  };
7881
7931
  }
@@ -7892,7 +7942,7 @@ function DepositFlow({
7892
7942
  return {
7893
7943
  ownerAddress: walletClientProp.account.address,
7894
7944
  walletClient: walletClientProp,
7895
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkKXSU24RUcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7945
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk4O2UGFFTcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7896
7946
  switchChain: dappSwitchChain
7897
7947
  };
7898
7948
  }
@@ -7900,7 +7950,7 @@ function DepositFlow({
7900
7950
  return {
7901
7951
  ownerAddress: walletSession.address,
7902
7952
  walletClient: walletSession.walletClient,
7903
- publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkKXSU24RUcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7953
+ publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunk4O2UGFFTcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7904
7954
  switchChain: walletSession.switchChain
7905
7955
  };
7906
7956
  }
@@ -8312,7 +8362,7 @@ function DepositFlow({
8312
8362
  eoa: dappImportOwner,
8313
8363
  getPublicClient: (chainId) => {
8314
8364
  try {
8315
- return _chunkKXSU24RUcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8365
+ return _chunk4O2UGFFTcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8316
8366
  } catch (e41) {
8317
8367
  return null;
8318
8368
  }
@@ -8370,7 +8420,7 @@ function DepositFlow({
8370
8420
  const storedDappImportAvailability = useDepositStore(
8371
8421
  (s) => s.dappImport.availability
8372
8422
  );
8373
- const isExcludedByRestrictedList = _chunkKXSU24RUcjs.useRestrictedListExclusion.call(void 0, );
8423
+ const isExcludedByRestrictedList = _chunk4O2UGFFTcjs.useRestrictedListExclusion.call(void 0, );
8374
8424
  const dappImportAvailability = _react.useMemo.call(void 0,
8375
8425
  () => narrowDappImportAvailability(
8376
8426
  storedDappImportAvailability,
@@ -8692,11 +8742,6 @@ function DepositFlow({
8692
8742
  clearTimeout(timer);
8693
8743
  };
8694
8744
  }, [bankOnrampEnabled, enableExchangeConnect, enableFiatOnramp, service]);
8695
- const providersLoading = providers === "loading";
8696
- const offers = (provider, kind) => providers === null || providers !== "loading" && providers.some((p) => p.provider === provider && p.kinds.includes(kind));
8697
- const swappedFiatOffered = offers("swapped", "fiat");
8698
- const noahOffered = offers("noah", "fiat");
8699
- const exchangeOffered = enableExchangeConnect && offers("swapped", "exchange");
8700
8745
  const [regionalMethods, setRegionalMethods] = _react.useState.call(void 0, {
8701
8746
  status: "loading",
8702
8747
  country: null,
@@ -8743,57 +8788,51 @@ function DepositFlow({
8743
8788
  clearTimeout(timeoutTimer);
8744
8789
  };
8745
8790
  }, [analytics, enableFiatOnramp, hasConfiguredFiatMethods, service]);
8746
- const swappedCashDisplay = _react.useMemo.call(void 0,
8747
- () => !enableFiatOnramp || !swappedFiatOffered ? { kind: "hidden" } : hasConfiguredFiatMethods ? {
8791
+ const swappedMethods = _react.useMemo.call(void 0,
8792
+ () => hasConfiguredFiatMethods ? {
8748
8793
  kind: "list",
8749
8794
  methods: configuredFiatMethods,
8750
8795
  recommendedMethod: _nullishCoalesce(_optionalChain([configuredFiatMethods, 'access', _314 => _314[0], 'optionalAccess', _315 => _315.method]), () => ( "bank-transfer")),
8751
8796
  country: null,
8752
8797
  source: "configured"
8753
8798
  } : composeFiatMethods(regionalMethods, FIAT_ONRAMP_METHODS),
8799
+ [configuredFiatMethods, hasConfiguredFiatMethods, regionalMethods]
8800
+ );
8801
+ const [noahNotServedFor, setNoahNotServedFor] = _react.useState.call(void 0, null);
8802
+ const noahNotServed = noahNotServedFor !== null && noahNotServedFor === _optionalChain([setupSlice, 'access', _316 => _316.smartAccount, 'optionalAccess', _317 => _317.toLowerCase, 'call', _318 => _318()]);
8803
+ const rampRowInputs = _react.useMemo.call(void 0,
8804
+ () => ({
8805
+ enableFiatOnramp,
8806
+ virtualAccounts: Boolean(virtualAccountOnramp),
8807
+ customerSession: Boolean(getCustomerSession),
8808
+ bankTransferAllowed: fiatMethods === void 0 || fiatMethods["bank-transfer"] === true,
8809
+ enableExchangeConnect,
8810
+ providers,
8811
+ swappedMethods,
8812
+ bankRow: FIAT_ONRAMP_METHODS.find(({ method }) => method === "bank-transfer"),
8813
+ noahNotServed
8814
+ }),
8754
8815
  [
8755
- configuredFiatMethods,
8816
+ enableExchangeConnect,
8756
8817
  enableFiatOnramp,
8757
- hasConfiguredFiatMethods,
8758
- regionalMethods,
8759
- swappedFiatOffered
8818
+ fiatMethods,
8819
+ getCustomerSession,
8820
+ noahNotServed,
8821
+ providers,
8822
+ swappedMethods,
8823
+ virtualAccountOnramp
8760
8824
  ]
8761
8825
  );
8762
- const swappedOffersBank = swappedCashDisplay.kind === "list" && swappedCashDisplay.methods.some(({ method }) => method === "bank-transfer");
8763
- const [bankOnrampUnavailable, setBankOnrampUnavailable] = _react.useState.call(void 0, false);
8764
- const bankRowOffered = bankOnrampEnabled && noahOffered && !bankOnrampUnavailable;
8765
- const swappedRefusesBank = hasConfiguredFiatMethods ? !configuredFiatMethods.some(({ method }) => method === "bank-transfer") : regionalMethods.status === "ready" && regionalMethods.country !== null && !regionalMethods.methods.some(({ method }) => method === "bank-transfer");
8766
- const handleBankOnrampUnavailable = _react.useCallback.call(void 0, () => {
8767
- setBankOnrampUnavailable(true);
8768
- if (swappedRefusesBank) handleProviderBack();
8769
- }, [handleProviderBack, swappedRefusesBank]);
8770
- const cashDisplay = _react.useMemo.call(void 0, () => {
8771
- if (providersLoading && fiatEnabled) return { kind: "loading" };
8772
- const swappedDisplay = swappedCashDisplay;
8773
- if (!bankRowOffered || swappedDisplay.kind === "loading") {
8774
- return swappedDisplay;
8775
- }
8776
- const asNoah = (m) => m.method === "bank-transfer" ? { ...m, provider: "noah" } : m;
8777
- if (swappedOffersBank && swappedDisplay.kind === "list") {
8778
- return { ...swappedDisplay, methods: swappedDisplay.methods.map(asNoah) };
8779
- }
8780
- const bankTransfer = asNoah(
8781
- FIAT_ONRAMP_METHODS.find(({ method }) => method === "bank-transfer")
8782
- );
8783
- return {
8784
- kind: "list",
8785
- methods: swappedDisplay.kind === "list" ? [...swappedDisplay.methods, bankTransfer] : [bankTransfer],
8786
- recommendedMethod: swappedDisplay.kind === "list" ? swappedDisplay.recommendedMethod : bankTransfer.method,
8787
- country: swappedDisplay.kind === "list" ? swappedDisplay.country : null,
8788
- source: swappedDisplay.kind === "list" ? swappedDisplay.source : "configured"
8789
- };
8790
- }, [
8791
- bankRowOffered,
8792
- fiatEnabled,
8793
- providersLoading,
8794
- swappedCashDisplay,
8795
- swappedOffersBank
8796
- ]);
8826
+ const rampRows = _react.useMemo.call(void 0, () => resolveRampRows(rampRowInputs), [rampRowInputs]);
8827
+ const cashDisplay = rampRows.cash;
8828
+ const handleNoahNotServed = _react.useCallback.call(void 0,
8829
+ (smartAccount) => {
8830
+ setNoahNotServedFor(smartAccount.toLowerCase());
8831
+ const after = resolveRampRows({ ...rampRowInputs, noahNotServed: true });
8832
+ if (after.notice) handleProviderBack();
8833
+ },
8834
+ [handleProviderBack, rampRowInputs]
8835
+ );
8797
8836
  _react.useEffect.call(void 0, () => {
8798
8837
  if (cashDisplay.kind === "hidden" && fiatEnabled) {
8799
8838
  analytics.friction(
@@ -8809,7 +8848,7 @@ function DepositFlow({
8809
8848
  }, [analytics, cashDisplay, fiatEnabled, hasConfiguredFiatMethods]);
8810
8849
  const displayedFiatSource = cashDisplay.kind === "list" ? cashDisplay.source : void 0;
8811
8850
  const providerOf = _react.useCallback.call(void 0,
8812
- (method) => cashDisplay.kind === "list" && _optionalChain([cashDisplay, 'access', _316 => _316.methods, 'access', _317 => _317.find, 'call', _318 => _318((m) => m.method === method), 'optionalAccess', _319 => _319.provider]) || "swapped",
8851
+ (method) => cashDisplay.kind === "list" && _optionalChain([cashDisplay, 'access', _319 => _319.methods, 'access', _320 => _320.find, 'call', _321 => _321((m) => m.method === method), 'optionalAccess', _322 => _322.provider]) || "swapped",
8813
8852
  [cashDisplay]
8814
8853
  );
8815
8854
  const handleSelectDisplayedFiatMethod = _react.useCallback.call(void 0,
@@ -8829,7 +8868,7 @@ function DepositFlow({
8829
8868
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
8830
8869
  analytics.completeStep();
8831
8870
  analytics.resetAttempt();
8832
- _optionalChain([onLifecycleRef, 'access', _320 => _320.current, 'optionalCall', _321 => _321({
8871
+ _optionalChain([onLifecycleRef, 'access', _323 => _323.current, 'optionalCall', _324 => _324({
8833
8872
  type: "smart-account-changed",
8834
8873
  evm: null,
8835
8874
  solana: null
@@ -8861,17 +8900,17 @@ function DepositFlow({
8861
8900
  payment
8862
8901
  ]
8863
8902
  );
8864
- const desiredSetupRequestKey = _chunkKXSU24RUcjs.computeRequestKey.call(void 0, setupInput);
8903
+ const desiredSetupRequestKey = _chunk4O2UGFFTcjs.computeRequestKey.call(void 0, setupInput);
8865
8904
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
8866
8905
  _react.useEffect.call(void 0, () => {
8867
8906
  void (async () => {
8868
- const requestKey = _chunkKXSU24RUcjs.computeRequestKey.call(void 0, setupInput);
8869
- const cacheKey = _chunkKXSU24RUcjs.computeCacheKey.call(void 0, setupInput);
8870
- const cacheable = _chunkKXSU24RUcjs.computeIsCacheable.call(void 0, setupInput);
8907
+ const requestKey = _chunk4O2UGFFTcjs.computeRequestKey.call(void 0, setupInput);
8908
+ const cacheKey = _chunk4O2UGFFTcjs.computeCacheKey.call(void 0, setupInput);
8909
+ const cacheable = _chunk4O2UGFFTcjs.computeIsCacheable.call(void 0, setupInput);
8871
8910
  if (storeApi.getState().setup.requestKey === requestKey) {
8872
8911
  return;
8873
8912
  }
8874
- const dedupedResult = _chunkKXSU24RUcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8913
+ const dedupedResult = _chunk4O2UGFFTcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8875
8914
  if (dedupedResult) {
8876
8915
  storeApi.dispatch({
8877
8916
  type: "setup/started",
@@ -8897,7 +8936,7 @@ function DepositFlow({
8897
8936
  cacheable
8898
8937
  });
8899
8938
  try {
8900
- const result = await _chunkKXSU24RUcjs.runAccountSetupDeduped.call(void 0,
8939
+ const result = await _chunk4O2UGFFTcjs.runAccountSetupDeduped.call(void 0,
8901
8940
  setupInput,
8902
8941
  { service, debug },
8903
8942
  requestKey
@@ -8912,7 +8951,7 @@ function DepositFlow({
8912
8951
  }
8913
8952
  });
8914
8953
  } catch (error) {
8915
- const message = error instanceof _chunkKXSU24RUcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8954
+ const message = error instanceof _chunk4O2UGFFTcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8916
8955
  storeApi.dispatch({
8917
8956
  type: "setup/failed",
8918
8957
  requestKey,
@@ -8944,11 +8983,11 @@ function DepositFlow({
8944
8983
  return;
8945
8984
  }
8946
8985
  storeApi.dispatch({ type: "portfolio/loading", network, address });
8947
- const requestId = _optionalChain([readPortfolioEntry, 'call', _322 => _322(
8986
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _325 => _325(
8948
8987
  storeApi.getState().portfolio,
8949
8988
  network,
8950
8989
  address
8951
- ), 'optionalAccess', _323 => _323.requestId]);
8990
+ ), 'optionalAccess', _326 => _326.requestId]);
8952
8991
  if (requestId === void 0) return;
8953
8992
  void (async () => {
8954
8993
  try {
@@ -8961,7 +9000,7 @@ function DepositFlow({
8961
9000
  address,
8962
9001
  requestId,
8963
9002
  totalUsd: portfolio.totalUsd,
8964
- chainIds: _chunkKXSU24RUcjs.chainIdsByValue.call(void 0, portfolio.tokens)
9003
+ chainIds: _chunk4O2UGFFTcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8965
9004
  });
8966
9005
  } catch (e42) {
8967
9006
  storeApi.dispatch({
@@ -8985,7 +9024,7 @@ function DepositFlow({
8985
9024
  { type: "transaction_hash", value: data.txHash },
8986
9025
  "transfer_tracking"
8987
9026
  );
8988
- _optionalChain([onLifecycleRef, 'access', _324 => _324.current, 'optionalCall', _325 => _325({ type: "submitted", ...data })]);
9027
+ _optionalChain([onLifecycleRef, 'access', _327 => _327.current, 'optionalCall', _328 => _328({ type: "submitted", ...data })]);
8989
9028
  },
8990
9029
  [analytics, logFlow, onLifecycleRef]
8991
9030
  );
@@ -9052,7 +9091,7 @@ function DepositFlow({
9052
9091
  sourceDecimals: tokenAtSubmit.decimals,
9053
9092
  inputAmountUsd: amountUsd
9054
9093
  });
9055
- _optionalChain([onLifecycleRef, 'access', _326 => _326.current, 'optionalCall', _327 => _327({
9094
+ _optionalChain([onLifecycleRef, 'access', _329 => _329.current, 'optionalCall', _330 => _330({
9056
9095
  type: "submitted",
9057
9096
  txHash,
9058
9097
  sourceChain: "solana",
@@ -9143,8 +9182,8 @@ function DepositFlow({
9143
9182
  sourceChain: chainId,
9144
9183
  sourceToken: token,
9145
9184
  amount,
9146
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _328 => _328.symbol]),
9147
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _329 => _329.decimals]),
9185
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _331 => _331.symbol]),
9186
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _332 => _332.decimals]),
9148
9187
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
9149
9188
  directTransfer: routed.directTransfer,
9150
9189
  sourceTxHashPending: routed.sourceTxHashPending,
@@ -9185,7 +9224,7 @@ function DepositFlow({
9185
9224
  swappedContext,
9186
9225
  initialEvent: info.initialEvent
9187
9226
  });
9188
- _optionalChain([onLifecycleRef, 'access', _330 => _330.current, 'optionalCall', _331 => _331({
9227
+ _optionalChain([onLifecycleRef, 'access', _333 => _333.current, 'optionalCall', _334 => _334({
9189
9228
  type: "submitted",
9190
9229
  txHash: info.txHash,
9191
9230
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -9213,12 +9252,12 @@ function DepositFlow({
9213
9252
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
9214
9253
  (txHash, sourceChain, amount) => {
9215
9254
  const depositAtSubmit = storeApi.getState().deposit;
9216
- _optionalChain([onLifecycleRef, 'access', _332 => _332.current, 'optionalCall', _333 => _333({
9255
+ _optionalChain([onLifecycleRef, 'access', _335 => _335.current, 'optionalCall', _336 => _336({
9217
9256
  type: "submitted",
9218
9257
  txHash,
9219
9258
  sourceChain,
9220
9259
  amount,
9221
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _334 => _334.selectedAsset, 'optionalAccess', _335 => _335.decimals]),
9260
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _337 => _337.selectedAsset, 'optionalAccess', _338 => _338.decimals]),
9222
9261
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
9223
9262
  })]);
9224
9263
  },
@@ -9231,7 +9270,7 @@ function DepositFlow({
9231
9270
  analyticsStepForFlowStep(analyticsMethod, "processing")
9232
9271
  );
9233
9272
  analytics.outcome("completed");
9234
- _optionalChain([onLifecycleRef, 'access', _336 => _336.current, 'optionalCall', _337 => _337({
9273
+ _optionalChain([onLifecycleRef, 'access', _339 => _339.current, 'optionalCall', _340 => _340({
9235
9274
  type: "complete",
9236
9275
  txHash,
9237
9276
  destinationTxHash,
@@ -9248,7 +9287,7 @@ function DepositFlow({
9248
9287
  );
9249
9288
  analytics.outcome("failed");
9250
9289
  analytics.failure("processor_failed", false);
9251
- _optionalChain([onLifecycleRef, 'access', _338 => _338.current, 'optionalCall', _339 => _339({ type: "failed", txHash, error })]);
9290
+ _optionalChain([onLifecycleRef, 'access', _341 => _341.current, 'optionalCall', _342 => _342({ type: "failed", txHash, error })]);
9252
9291
  },
9253
9292
  [analytics, analyticsMethod, logFlowError, onLifecycleRef]
9254
9293
  );
@@ -9266,7 +9305,7 @@ function DepositFlow({
9266
9305
  failureStep
9267
9306
  );
9268
9307
  }
9269
- _optionalChain([onErrorRef, 'access', _340 => _340.current, 'optionalCall', _341 => _341({
9308
+ _optionalChain([onErrorRef, 'access', _343 => _343.current, 'optionalCall', _344 => _344({
9270
9309
  message,
9271
9310
  code,
9272
9311
  ...cause === void 0 ? {} : { cause }
@@ -9319,9 +9358,9 @@ function DepositFlow({
9319
9358
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
9320
9359
  state,
9321
9360
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
9322
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _342 => _342.status]), () => ( "loading")),
9323
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _343 => _343.status]) === "ready" ? portfolioEntry.totalUsd : null,
9324
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _344 => _344.chainIds]), () => ( []))
9361
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _345 => _345.status]), () => ( "loading")),
9362
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _346 => _346.status]) === "ready" ? portfolioEntry.totalUsd : null,
9363
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _347 => _347.chainIds]), () => ( []))
9325
9364
  };
9326
9365
  });
9327
9366
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -9354,12 +9393,12 @@ function DepositFlow({
9354
9393
  ),
9355
9394
  fiatPaymentMethods: cashDisplay.kind === "list" ? cashDisplay.methods : void 0,
9356
9395
  fiatLoading: cashDisplay.kind === "loading",
9357
- fiatNotice: bankOnrampUnavailable && swappedRefusesBank ? "Bank transfer isn't available in your region." : void 0,
9396
+ fiatNotice: _nullishCoalesce(rampRows.notice, () => ( void 0)),
9358
9397
  recommendedMethod: cashDisplay.kind === "list" ? cashDisplay.recommendedMethod : void 0,
9359
9398
  onSelectFiatMethod: cashDisplay.kind === "list" ? handleSelectDisplayedFiatMethod : void 0,
9360
9399
  onPrefetchFiatMethod: cashDisplay.kind === "list" ? handlePrefetchDisplayedFiatMethod : void 0,
9361
- onSelectFundFromExchange: exchangeOffered || enableExchangeConnect && providersLoading ? () => handleSelectExchange() : void 0,
9362
- fundFromExchangeLoading: enableExchangeConnect && providersLoading,
9400
+ onSelectFundFromExchange: rampRows.exchange === "hidden" ? void 0 : () => handleSelectExchange(),
9401
+ fundFromExchangeLoading: rampRows.exchange === "loading",
9363
9402
  onRequestConnect: enableWallet ? onRequestConnect : void 0,
9364
9403
  onConnect: enableWallet ? onConnect : void 0,
9365
9404
  onDisconnect,
@@ -9480,7 +9519,7 @@ function DepositFlow({
9480
9519
  service,
9481
9520
  onSwappedComplete: handleSwappedComplete,
9482
9521
  onSwappedFailed: handleDepositFailed,
9483
- onClose: () => _optionalChain([onClose, 'optionalCall', _345 => _345(openExternally ? "native_dismiss_request" : "header_button")]),
9522
+ onClose: () => _optionalChain([onClose, 'optionalCall', _348 => _348(openExternally ? "native_dismiss_request" : "header_button")]),
9484
9523
  onGoBack: handleProviderBack,
9485
9524
  onError: handleError,
9486
9525
  onAttemptConsumed: handleSwappedAttemptConsumed,
@@ -9510,12 +9549,12 @@ function DepositFlow({
9510
9549
  {
9511
9550
  ...rampCallbacks,
9512
9551
  smartAccount: step.smartAccount,
9513
- order: step.provider === "noah" && bankRowOffered && bankOnramp ? {
9552
+ order: step.provider === "noah" && !noahNotServed && getCustomerSession ? {
9514
9553
  flow: "funding_account",
9515
9554
  backendUrl,
9516
- bankOnramp,
9555
+ getCustomerSession,
9517
9556
  onJourney: onBankJourney,
9518
- onUnavailable: handleBankOnrampUnavailable
9557
+ onUnavailable: () => handleNoahNotServed(step.smartAccount)
9519
9558
  } : {
9520
9559
  flow: "hosted",
9521
9560
  kind: "fiat",
@@ -9526,7 +9565,7 @@ function DepositFlow({
9526
9565
  }
9527
9566
  ) }),
9528
9567
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9529
- _chunkKXSU24RUcjs.ProcessingStep,
9568
+ _chunk4O2UGFFTcjs.ProcessingStep,
9530
9569
  {
9531
9570
  flowLabel: payment ? "payment" : void 0,
9532
9571
  smartAccount: step.smartAccount,
@@ -9598,7 +9637,7 @@ function DepositFlow({
9598
9637
  }
9599
9638
  ),
9600
9639
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9601
- _chunkKXSU24RUcjs.ProcessingStep,
9640
+ _chunk4O2UGFFTcjs.ProcessingStep,
9602
9641
  {
9603
9642
  flowLabel: payment ? "payment" : void 0,
9604
9643
  smartAccount: step.smartAccount,
@@ -9634,8 +9673,8 @@ function DepositFlow({
9634
9673
  );
9635
9674
  }
9636
9675
  if (isSolanaWalletMode) {
9637
- const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _346 => _346.solanaAddress]);
9638
- const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _347 => _347.solanaProvider]);
9676
+ const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _349 => _349.solanaAddress]);
9677
+ const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _350 => _350.solanaProvider]);
9639
9678
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9640
9679
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9641
9680
  AccountPreparingSkeleton,
@@ -9687,7 +9726,7 @@ function DepositFlow({
9687
9726
  targetToken,
9688
9727
  service,
9689
9728
  solanaProvider,
9690
- solanaConnection: _optionalChain([walletSession, 'optionalAccess', _348 => _348.solanaConnection]),
9729
+ solanaConnection: _optionalChain([walletSession, 'optionalAccess', _351 => _351.solanaConnection]),
9691
9730
  uiConfig,
9692
9731
  onConfirm: handleSolanaConfirmed,
9693
9732
  onError: handleError,
@@ -9729,7 +9768,7 @@ function DepositFlow({
9729
9768
  ) })
9730
9769
  ] }) : null,
9731
9770
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9732
- _chunkKXSU24RUcjs.ProcessingStep,
9771
+ _chunk4O2UGFFTcjs.ProcessingStep,
9733
9772
  {
9734
9773
  flowLabel: payment ? "payment" : void 0,
9735
9774
  smartAccount: effectiveStep.smartAccount,
@@ -9769,7 +9808,7 @@ function DepositFlow({
9769
9808
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9770
9809
  DappImportAssetSelectSkeleton,
9771
9810
  {
9772
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _349 => _349.sourceLabel]), () => ( "")),
9811
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _352 => _352.sourceLabel]), () => ( "")),
9773
9812
  error: dappImportBootError,
9774
9813
  onRetry: handleBootRetry
9775
9814
  }
@@ -9791,7 +9830,7 @@ function DepositFlow({
9791
9830
  rows: dappImportSelectRows,
9792
9831
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
9793
9832
  onSelect: (providerId) => {
9794
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _350 => _350.toLowerCase, 'call', _351 => _351()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9833
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _353 => _353.toLowerCase, 'call', _354 => _354()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9795
9834
  if (availabilityEntry === "error") {
9796
9835
  storeApi.dispatch({
9797
9836
  type: "dapp-import/availability-retry-requested"
@@ -9810,16 +9849,16 @@ function DepositFlow({
9810
9849
  }
9811
9850
  );
9812
9851
  }
9813
- if (!_optionalChain([signerContext, 'optionalAccess', _352 => _352.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _353 => _353.publicClient])) {
9852
+ if (!_optionalChain([signerContext, 'optionalAccess', _355 => _355.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _356 => _356.publicClient])) {
9814
9853
  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" }) }) }) }) });
9815
9854
  }
9816
9855
  const ownerAddress = signerContext.ownerAddress;
9817
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _354 => _354.walletClient, 'optionalAccess', _355 => _355.chain, 'optionalAccess', _356 => _356.id]), () => ( _optionalChain([signerContext, 'access', _357 => _357.publicClient, 'access', _358 => _358.chain, 'optionalAccess', _359 => _359.id]))), () => ( setupChainId));
9856
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _357 => _357.walletClient, 'optionalAccess', _358 => _358.chain, 'optionalAccess', _359 => _359.id]), () => ( _optionalChain([signerContext, 'access', _360 => _360.publicClient, 'access', _361 => _361.chain, 'optionalAccess', _362 => _362.id]))), () => ( setupChainId));
9818
9857
  const getReadClientForChain = (chainId) => {
9819
- if (_optionalChain([signerContext, 'access', _360 => _360.publicClient, 'access', _361 => _361.chain, 'optionalAccess', _362 => _362.id]) === chainId) {
9858
+ if (_optionalChain([signerContext, 'access', _363 => _363.publicClient, 'access', _364 => _364.chain, 'optionalAccess', _365 => _365.id]) === chainId) {
9820
9859
  return signerContext.publicClient;
9821
9860
  }
9822
- return _chunkKXSU24RUcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9861
+ return _chunk4O2UGFFTcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9823
9862
  };
9824
9863
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9825
9864
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9845,9 +9884,9 @@ function DepositFlow({
9845
9884
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9846
9885
  DappImportAssetSelectStep,
9847
9886
  {
9848
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _363 => _363.assets, 'access', _364 => _364[0], 'optionalAccess', _365 => _365.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9887
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _366 => _366.assets, 'access', _367 => _367[0], 'optionalAccess', _368 => _368.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9849
9888
  assets: activeDappImportAvailability.assets,
9850
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _366 => _366.incomplete, 'optionalAccess', _367 => _367.summary]),
9889
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _369 => _369.incomplete, 'optionalAccess', _370 => _370.summary]),
9851
9890
  onSelect: handleDappImportAssetSelected
9852
9891
  }
9853
9892
  ),
@@ -9927,7 +9966,7 @@ function DepositFlow({
9927
9966
  }
9928
9967
  ),
9929
9968
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9930
- _chunkKXSU24RUcjs.ProcessingStep,
9969
+ _chunk4O2UGFFTcjs.ProcessingStep,
9931
9970
  {
9932
9971
  flowLabel: payment ? "payment" : void 0,
9933
9972
  smartAccount: effectiveStep.smartAccount,
@@ -9964,9 +10003,9 @@ function DepositFlow({
9964
10003
  ] });
9965
10004
  }
9966
10005
 
9967
- // src/components/history/useBankHistory.ts
10006
+ // src/components/history/useOrderHistory.ts
9968
10007
 
9969
- function useBankHistory(source, open, panelOpen) {
10008
+ function useOrderHistory(source, open, panelOpen) {
9970
10009
  const [orders, setOrders] = _react.useState.call(void 0, []);
9971
10010
  const [unread, setUnread] = _react.useState.call(void 0, false);
9972
10011
  const [loading, setLoading] = _react.useState.call(void 0, false);
@@ -9992,9 +10031,11 @@ function useBankHistory(source, open, panelOpen) {
9992
10031
  ...next ? { cursor: next } : {}
9993
10032
  });
9994
10033
  if (current !== generation.current) return;
9995
- const bank = page.items.filter((order) => order.provider === "noah");
10034
+ const listed = page.items.filter(
10035
+ (order) => order.provider === "noah" || _chunk4O2UGFFTcjs.hostedOrderState.call(void 0, order).progress !== "awaiting_payment"
10036
+ );
9996
10037
  let changed = false;
9997
- for (const order of bank) {
10038
+ for (const order of listed) {
9998
10039
  const fingerprint = JSON.stringify(order.stages);
9999
10040
  if (!next && seen.current.get(order.id) !== fingerprint)
10000
10041
  changed = true;
@@ -10004,7 +10045,7 @@ function useBankHistory(source, open, panelOpen) {
10004
10045
  if (!next) baselined.current = true;
10005
10046
  setOrders((previous) => {
10006
10047
  const merged = new Map(previous.map((order) => [order.id, order]));
10007
- for (const order of bank) merged.set(order.id, order);
10048
+ for (const order of listed) merged.set(order.id, order);
10008
10049
  return [...merged.values()].sort(
10009
10050
  (a, b) => b.createdAt.localeCompare(a.createdAt)
10010
10051
  );
@@ -10014,7 +10055,7 @@ function useBankHistory(source, open, panelOpen) {
10014
10055
  setError(null);
10015
10056
  } catch (e43) {
10016
10057
  if (current === generation.current)
10017
- setError("Bank transfer history is unavailable. Try again shortly.");
10058
+ setError("Order history is unavailable. Try again shortly.");
10018
10059
  } finally {
10019
10060
  if (current === generation.current) {
10020
10061
  busy.current = false;
@@ -10067,12 +10108,53 @@ function useBankHistory(source, open, panelOpen) {
10067
10108
  }
10068
10109
  };
10069
10110
  }
10111
+ function useSessionOrders(backendUrl, getCustomerSession, smartAccount) {
10112
+ const getSession = _chunkG264OM23cjs.useLatestRef.call(void 0, getCustomerSession);
10113
+ const enabled = Boolean(getCustomerSession);
10114
+ return _react.useMemo.call(void 0, () => {
10115
+ if (!enabled || !smartAccount) return null;
10116
+ return {
10117
+ listOrders: async ({ cursor, limit }) => {
10118
+ let refused = false;
10119
+ const request = _chunkCG3JKPUFcjs.createBearerTransport.call(void 0, {
10120
+ backendUrl,
10121
+ getSession: async () => {
10122
+ try {
10123
+ return await getSession.current(smartAccount, {
10124
+ resumeOnly: true
10125
+ });
10126
+ } catch (error) {
10127
+ refused = true;
10128
+ throw error;
10129
+ }
10130
+ }
10131
+ });
10132
+ try {
10133
+ return await request(
10134
+ `/onramp/orders?${_chunkADEWTBSNcjs.rampQuery.call(void 0, { cursor, limit })}`
10135
+ );
10136
+ } catch (error) {
10137
+ if (refused) return { items: [], nextCursor: null };
10138
+ throw error;
10139
+ }
10140
+ }
10141
+ };
10142
+ }, [backendUrl, enabled, smartAccount, getSession]);
10143
+ }
10070
10144
 
10071
10145
  // src/DepositModal.tsx
10072
10146
 
10147
+ var warnedNoCustomerSession = false;
10148
+ function warnNoCustomerSession() {
10149
+ if (warnedNoCustomerSession) return;
10150
+ warnedNoCustomerSession = true;
10151
+ console.warn(
10152
+ "[rhinestone] `virtualAccountOnramp` needs `getCustomerSession`; it is ignored without one."
10153
+ );
10154
+ }
10073
10155
  var ReownDepositInner = _react.lazy.call(void 0, async () => {
10074
10156
  await loadReownDependencies();
10075
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-7EHOJTFW.cjs")));
10157
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-QJ6O2FWY.cjs")));
10076
10158
  return { default: module.DepositModalReown };
10077
10159
  });
10078
10160
  function buildDepositAnalyticsSessionProperties({
@@ -10102,7 +10184,7 @@ function buildDepositAnalyticsSessionProperties({
10102
10184
  enabledFundingMethods.push("wallet");
10103
10185
  }
10104
10186
  if (enableQrTransfer) enabledFundingMethods.push("transfer");
10105
- if (bankOnrampEnabled || enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _368 => _368.length]) !== 0) {
10187
+ if (bankOnrampEnabled || enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _371 => _371.length]) !== 0) {
10106
10188
  enabledFundingMethods.push("fiat_onramp");
10107
10189
  }
10108
10190
  if (enableExchangeConnect) enabledFundingMethods.push("exchange_connect");
@@ -10122,7 +10204,7 @@ function buildDepositAnalyticsSessionProperties({
10122
10204
  amount: defaultAmount !== void 0,
10123
10205
  initial_asset_migration: initialAssetMigration !== void 0
10124
10206
  },
10125
- ..._chunkKXSU24RUcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
10207
+ ..._chunk4O2UGFFTcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
10126
10208
  };
10127
10209
  }
10128
10210
  var WALLET_CLIENT_PROP = "walletClient";
@@ -10130,8 +10212,9 @@ function hasSuppliedWalletClient(props) {
10130
10212
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
10131
10213
  }
10132
10214
  function DepositModal(props) {
10133
- _chunkKXSU24RUcjs.warnRemovedProps.call(void 0, "DepositModal", props);
10134
- _chunkKXSU24RUcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
10215
+ _chunk4O2UGFFTcjs.warnRemovedProps.call(void 0, "DepositModal", props);
10216
+ if (props.virtualAccountOnramp && !props.getCustomerSession) warnNoCustomerSession();
10217
+ _chunk4O2UGFFTcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
10135
10218
  const needsReown = !!props.reownAppId;
10136
10219
  const hasWalletClientProp = hasSuppliedWalletClient(props);
10137
10220
  if (needsReown) {
@@ -10174,7 +10257,8 @@ function DepositModalInner({
10174
10257
  assetMigrations,
10175
10258
  initialAssetMigration,
10176
10259
  enableFiatOnramp = false,
10177
- bankOnramp,
10260
+ virtualAccountOnramp,
10261
+ getCustomerSession,
10178
10262
  enableQrTransfer = true,
10179
10263
  enableGaslessDeposit = false,
10180
10264
  fiatMethods,
@@ -10208,22 +10292,10 @@ function DepositModalInner({
10208
10292
  const onReadyRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onReady);
10209
10293
  const onUiStateRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onUiState);
10210
10294
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
10211
- const bankScope = `${backendUrl}:${recipient}:${typeof targetChainProp === "string" ? targetChainProp : _chunkFKJ6EJHHcjs.getChainId.call(void 0, targetChainProp)}:${targetToken}`;
10212
- const [bankSession, setBankSession] = _react.useState.call(void 0, null);
10213
10295
  const [bankJourneyVisible, setBankJourneyVisible] = _react.useState.call(void 0, false);
10214
- const onBankJourney = _react.useCallback.call(void 0, (journey) => {
10215
- setBankJourneyVisible(Boolean(journey));
10216
- if (journey)
10217
- setBankSession(
10218
- journey.source ? { source: journey.source, scope: bankScope } : null
10219
- );
10220
- }, [bankScope]);
10221
- const bankSource = _optionalChain([bankSession, 'optionalAccess', _369 => _369.scope]) === bankScope ? bankSession.source : null;
10296
+ const [smartAccount, setSmartAccount] = _react.useState.call(void 0, null);
10222
10297
  _react.useEffect.call(void 0, () => {
10223
- if (!isOpen) {
10224
- setBankSession(null);
10225
- setBankJourneyVisible(false);
10226
- }
10298
+ if (!isOpen) setBankJourneyVisible(false);
10227
10299
  }, [isOpen]);
10228
10300
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
10229
10301
  const [submitting, setSubmitting] = _react.useState.call(void 0, false);
@@ -10231,48 +10303,57 @@ function DepositModalInner({
10231
10303
  void 0
10232
10304
  );
10233
10305
  const [processingSettled, setProcessingSettled] = _react.useState.call(void 0, false);
10234
- const historyButtonVisible = !payment && (bankJourneyVisible || _chunkKXSU24RUcjs.isHistoryEntryVisible.call(void 0, {
10306
+ const historyButtonVisible = !payment && (bankJourneyVisible || _chunk4O2UGFFTcjs.isHistoryEntryVisible.call(void 0, {
10235
10307
  screen: currentScreen,
10236
10308
  submitting,
10237
10309
  settled: processingSettled
10238
10310
  }));
10239
10311
  const targetChain = typeof targetChainProp === "string" ? targetChainProp : _chunkFKJ6EJHHcjs.getChainId.call(void 0, targetChainProp);
10240
10312
  const sourceChain = sourceChainProp ? _chunkFKJ6EJHHcjs.getChainId.call(void 0, sourceChainProp) : void 0;
10241
- const rpcUrls = _chunkKXSU24RUcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
10313
+ const accountScope = `${isOpen}|${backendUrl}|${recipient}|${targetChain}|${targetToken}`;
10314
+ const [scope, setScope] = _react.useState.call(void 0, accountScope);
10315
+ if (scope !== accountScope) {
10316
+ setScope(accountScope);
10317
+ setSmartAccount(null);
10318
+ }
10319
+ const rpcUrls = _chunk4O2UGFFTcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
10242
10320
  const service = _react.useMemo.call(void 0,
10243
- () => _chunkKXSU24RUcjs.createDepositService.call(void 0, backendUrl, {
10321
+ () => _chunk4O2UGFFTcjs.createDepositService.call(void 0, backendUrl, {
10244
10322
  debug,
10245
10323
  debugScope: "service:deposit"
10246
10324
  }),
10247
10325
  [backendUrl, debug]
10248
10326
  );
10249
10327
  const historyAnalytics = _react.useMemo.call(void 0,
10250
- () => _chunkKXSU24RUcjs.createHistoryAnalytics.call(void 0, {
10328
+ () => _chunk4O2UGFFTcjs.createHistoryAnalytics.call(void 0, {
10251
10329
  modal: "deposit",
10252
10330
  controllerRef: analyticsControllerRef,
10253
10331
  sessionIdRef: analyticsSessionIdRef
10254
10332
  }),
10255
10333
  []
10256
10334
  );
10257
- const history = _chunkKXSU24RUcjs.useHistoryPanel.call(void 0, {
10335
+ const history = _chunk4O2UGFFTcjs.useHistoryPanel.call(void 0, {
10258
10336
  isOpen: isOpen && !payment,
10259
10337
  recipient,
10260
10338
  service,
10261
10339
  canRecover: Boolean(signRecovery),
10262
10340
  analytics: historyAnalytics
10263
10341
  });
10264
- const bankOrders = useBankHistory(bankSource, isOpen && !payment, history.isPanelOpen);
10265
- const bankHistory = bankJourneyVisible && !bankSource ? { ...bankOrders, loading: true } : bankOrders;
10342
+ const orderHistory = useOrderHistory(
10343
+ useSessionOrders(backendUrl, getCustomerSession, smartAccount),
10344
+ isOpen && !payment,
10345
+ history.isPanelOpen
10346
+ );
10266
10347
  const historyDepositsRef = _chunkG264OM23cjs.useLatestRef.call(void 0, history.deposits);
10267
10348
  _react.useEffect.call(void 0, () => {
10268
- const waitingForSettlement = bankHistory.orders.some((order) => {
10349
+ const waitingForSettlement = orderHistory.orders.some((order) => {
10269
10350
  if (order.stages.delivery.status !== "completed") return false;
10270
10351
  const { depositId } = order.stages.delivery;
10271
10352
  const deposit = historyDepositsRef.current.find((item) => item.id === depositId);
10272
10353
  return !deposit || deposit.status === "pending" || deposit.status === "processing";
10273
10354
  });
10274
10355
  if (waitingForSettlement) history.markStale();
10275
- }, [bankHistory.orders, history.markStale, historyDepositsRef]);
10356
+ }, [orderHistory.orders, history.markStale, historyDepositsRef]);
10276
10357
  const {
10277
10358
  markStale: markHistoryStale,
10278
10359
  invalidate: invalidateHistory,
@@ -10306,15 +10387,15 @@ function DepositModalInner({
10306
10387
  }, [store, targetChain, targetToken]);
10307
10388
  _react.useEffect.call(void 0, () => {
10308
10389
  if (!isOpen || !modalRef.current) return;
10309
- return _chunkKXSU24RUcjs.applyTheme.call(void 0, modalRef.current, theme);
10390
+ return _chunk4O2UGFFTcjs.applyTheme.call(void 0, modalRef.current, theme);
10310
10391
  }, [isOpen, theme]);
10311
10392
  _react.useEffect.call(void 0, () => {
10312
10393
  if (isOpen) {
10313
- _optionalChain([onReadyRef, 'access', _370 => _370.current, 'optionalCall', _371 => _371()]);
10394
+ _optionalChain([onReadyRef, 'access', _372 => _372.current, 'optionalCall', _373 => _373()]);
10314
10395
  }
10315
10396
  }, [isOpen, onReadyRef]);
10316
10397
  _react.useEffect.call(void 0, () => {
10317
- _optionalChain([onUiStateRef, 'access', _372 => _372.current, 'optionalCall', _373 => _373({
10398
+ _optionalChain([onUiStateRef, 'access', _374 => _374.current, 'optionalCall', _375 => _375({
10318
10399
  screen: currentScreen,
10319
10400
  back: backHandler,
10320
10401
  // A recovery in flight is a submission whose outcome is unknown, so a
@@ -10338,9 +10419,10 @@ function DepositModalInner({
10338
10419
  const onLifecycleRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onLifecycle);
10339
10420
  const handleLifecycle = _react.useCallback.call(void 0,
10340
10421
  (event) => {
10341
- _optionalChain([onLifecycleRef, 'access', _374 => _374.current, 'optionalCall', _375 => _375(event)]);
10342
- if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
10343
- invalidateHistory();
10422
+ _optionalChain([onLifecycleRef, 'access', _376 => _376.current, 'optionalCall', _377 => _377(event)]);
10423
+ if (event.type === "smart-account-changed") {
10424
+ setSmartAccount(event.evm);
10425
+ if (!event.evm && !event.solana) invalidateHistory();
10344
10426
  }
10345
10427
  if (event.type === "submitted" || event.type === "complete" || event.type === "failed") {
10346
10428
  markHistoryStale();
@@ -10352,8 +10434,8 @@ function DepositModalInner({
10352
10434
  (source) => {
10353
10435
  if (recoverySubmitting) return;
10354
10436
  const analytics = analyticsControllerRef.current;
10355
- _optionalChain([analytics, 'optionalAccess', _376 => _376.abandon, 'call', _377 => _377(source === "provider_back" ? "provider_back" : "modal_close")]);
10356
- _optionalChain([analytics, 'optionalAccess', _378 => _378.close, 'call', _379 => _379(source)]);
10437
+ _optionalChain([analytics, 'optionalAccess', _378 => _378.abandon, 'call', _379 => _379(source === "provider_back" ? "provider_back" : "modal_close")]);
10438
+ _optionalChain([analytics, 'optionalAccess', _380 => _380.close, 'call', _381 => _381(source)]);
10357
10439
  onClose();
10358
10440
  },
10359
10441
  [onClose, recoverySubmitting]
@@ -10369,8 +10451,8 @@ function DepositModalInner({
10369
10451
  _react.useEffect.call(void 0, () => {
10370
10452
  if (previousOpenRef.current && !isOpen) {
10371
10453
  const analytics = analyticsControllerRef.current;
10372
- _optionalChain([analytics, 'optionalAccess', _380 => _380.abandon, 'call', _381 => _381("modal_close")]);
10373
- _optionalChain([analytics, 'optionalAccess', _382 => _382.close, 'call', _383 => _383("host_controlled")]);
10454
+ _optionalChain([analytics, 'optionalAccess', _382 => _382.abandon, 'call', _383 => _383("modal_close")]);
10455
+ _optionalChain([analytics, 'optionalAccess', _384 => _384.close, 'call', _385 => _385("host_controlled")]);
10374
10456
  }
10375
10457
  previousOpenRef.current = isOpen;
10376
10458
  }, [isOpen]);
@@ -10404,18 +10486,18 @@ function DepositModalInner({
10404
10486
  sourceToken,
10405
10487
  defaultAmount,
10406
10488
  bankOnrampEnabled: Boolean(
10407
- bankOnramp && (fiatMethods === void 0 || fiatMethods["bank-transfer"] === true)
10489
+ virtualAccountOnramp && getCustomerSession && (fiatMethods === void 0 || fiatMethods["bank-transfer"] === true)
10408
10490
  ),
10409
10491
  walletIntegration,
10410
10492
  targetChain,
10411
10493
  targetToken
10412
10494
  });
10413
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _384 => _384.showBackButton]), () => ( true));
10495
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _386 => _386.showBackButton]), () => ( true));
10414
10496
  const canGoBack = backHandler !== void 0;
10415
10497
  const hideHeaderChrome = swappedImmersive;
10416
10498
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
10417
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKXSU24RUcjs.AssetMetadataProvider, { service, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10418
- _chunkKXSU24RUcjs.Modal,
10499
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.AssetMetadataProvider, { service, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10500
+ _chunk4O2UGFFTcjs.Modal,
10419
10501
  {
10420
10502
  isOpen,
10421
10503
  onClose: handleModalDismiss,
@@ -10424,7 +10506,7 @@ function DepositModalInner({
10424
10506
  closeOnOverlayClick,
10425
10507
  ariaLabel: "Deposit",
10426
10508
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10427
- _chunkKXSU24RUcjs.AnalyticsSession,
10509
+ _chunk4O2UGFFTcjs.AnalyticsSession,
10428
10510
  {
10429
10511
  modal: "deposit",
10430
10512
  sessionProperties: analyticsSessionProperties,
@@ -10451,10 +10533,10 @@ function DepositModalInner({
10451
10533
  ) }),
10452
10534
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
10453
10535
  historyButtonVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10454
- _chunkKXSU24RUcjs.HistoryEntryButton,
10536
+ _chunk4O2UGFFTcjs.HistoryEntryButton,
10455
10537
  {
10456
10538
  badge: bankJourneyVisible ? null : history.badge,
10457
- unread: bankHistory.unread,
10539
+ unread: orderHistory.unread,
10458
10540
  onClick: history.openPanel,
10459
10541
  disabled: !recipient
10460
10542
  }
@@ -10492,8 +10574,9 @@ function DepositModalInner({
10492
10574
  assetMigrations,
10493
10575
  initialAssetMigration,
10494
10576
  enableFiatOnramp,
10495
- bankOnramp,
10496
- onBankJourney,
10577
+ virtualAccountOnramp,
10578
+ getCustomerSession,
10579
+ onBankJourney: setBankJourneyVisible,
10497
10580
  backendUrl,
10498
10581
  enableQrTransfer,
10499
10582
  enableGaslessDeposit,
@@ -10506,7 +10589,7 @@ function DepositModalInner({
10506
10589
  onDisconnect,
10507
10590
  onRequestConnect,
10508
10591
  uiConfig,
10509
- appFees: _optionalChain([clientSetup, 'optionalAccess', _385 => _385.appFees]),
10592
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _387 => _387.appFees]),
10510
10593
  appFeesResolved: clientSetup !== null,
10511
10594
  onStepChange: handleStepChange,
10512
10595
  onSwappedImmersiveChange: setSwappedImmersive,
@@ -10520,11 +10603,11 @@ function DepositModalInner({
10520
10603
  }
10521
10604
  ),
10522
10605
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10523
- _chunkKXSU24RUcjs.HistoryOverlay,
10606
+ _chunk4O2UGFFTcjs.HistoryOverlay,
10524
10607
  {
10525
10608
  controller: history,
10526
- bankHistory,
10527
- bankSupportUrl: _optionalChain([bankOnramp, 'optionalAccess', _386 => _386.supportUrl]),
10609
+ orderHistory,
10610
+ bankSupportUrl: _optionalChain([virtualAccountOnramp, 'optionalAccess', _388 => _388.supportUrl]),
10528
10611
  backLabel: "Deposit",
10529
10612
  recipient,
10530
10613
  backendUrl,