@rhinestone/deposit-modal 0.9.0 → 0.10.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 (30) hide show
  1. package/dist/{DepositModalReown-6KUAO5ZC.mjs → DepositModalReown-MTWT6Y66.mjs} +5 -5
  2. package/dist/{DepositModalReown-XC5RIU7Z.cjs → DepositModalReown-S3DSFXTX.cjs} +9 -9
  3. package/dist/{chunk-4WB2FHGC.mjs → chunk-5NJYW5FT.mjs} +3 -3
  4. package/dist/{chunk-OSI2CFGL.mjs → chunk-5OEWGJR4.mjs} +1 -1
  5. package/dist/{chunk-VOGZAZB2.mjs → chunk-7TV7GLJB.mjs} +62 -1
  6. package/dist/{chunk-NMIMRASD.cjs → chunk-A42XAHIB.cjs} +66 -66
  7. package/dist/{chunk-PAGMU4RQ.cjs → chunk-DEF767BA.cjs} +52 -52
  8. package/dist/{chunk-LGVJWVSS.mjs → chunk-KW32UBUQ.mjs} +2 -2
  9. package/dist/{chunk-E4G5BOZP.mjs → chunk-LR7MKHYV.mjs} +2 -2
  10. package/dist/{chunk-KKHLNFSA.mjs → chunk-MHIOMTMM.mjs} +281 -119
  11. package/dist/{chunk-NEXUCY4B.cjs → chunk-NF4NBRUP.cjs} +1 -1
  12. package/dist/{chunk-VN4BLZYC.cjs → chunk-PUJHXHRA.cjs} +108 -47
  13. package/dist/{chunk-DIX7M3SP.cjs → chunk-UMCDZJMG.cjs} +57 -57
  14. package/dist/{chunk-WYXBY2MQ.mjs → chunk-VDGT6NZQ.mjs} +1 -1
  15. package/dist/{chunk-T7LGQFP3.cjs → chunk-VTVOHNXM.cjs} +3 -3
  16. package/dist/{chunk-22RV33LK.cjs → chunk-W4YAOJPG.cjs} +621 -459
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.mjs +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants.mjs +1 -1
  23. package/dist/deposit.cjs +6 -6
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +8 -8
  26. package/dist/index.mjs +7 -7
  27. package/dist/styles.css +14 -0
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
@@ -18,10 +18,10 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkNMIMRASDcjs = require('./chunk-NMIMRASD.cjs');
21
+ var _chunkA42XAHIBcjs = require('./chunk-A42XAHIB.cjs');
22
22
 
23
23
 
24
- var _chunkT7LGQFP3cjs = require('./chunk-T7LGQFP3.cjs');
24
+ var _chunkVTVOHNXMcjs = require('./chunk-VTVOHNXM.cjs');
25
25
 
26
26
 
27
27
 
@@ -77,7 +77,7 @@ var _chunkT7LGQFP3cjs = require('./chunk-T7LGQFP3.cjs');
77
77
 
78
78
 
79
79
 
80
- var _chunkVN4BLZYCcjs = require('./chunk-VN4BLZYC.cjs');
80
+ var _chunkPUJHXHRAcjs = require('./chunk-PUJHXHRA.cjs');
81
81
 
82
82
 
83
83
 
@@ -114,6 +114,7 @@ var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
114
114
 
115
115
 
116
116
 
117
+
117
118
 
118
119
 
119
120
  var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
@@ -208,7 +209,7 @@ SegmentedToggle.displayName = "SegmentedToggle";
208
209
  function ChainIcon({ chainId, className, loading }) {
209
210
  const badge = _chunkH577RJN5cjs.getChainBadge.call(void 0, chainId);
210
211
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
211
- _chunkVN4BLZYCcjs.CdnIcon,
212
+ _chunkPUJHXHRAcjs.CdnIcon,
212
213
  {
213
214
  src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chainId),
214
215
  alt: _chunkH577RJN5cjs.getChainName.call(void 0, chainId),
@@ -231,7 +232,7 @@ ChainIcon.displayName = "ChainIcon";
231
232
  // src/components/ui/WalletBadgeIcons/index.tsx
232
233
 
233
234
  function BadgeImage({ src, alt = "" }) {
234
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src, alt }) });
235
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src, alt }) });
235
236
  }
236
237
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
237
238
  function WalletBadgeIcons() {
@@ -262,18 +263,17 @@ var DAPP_IMPORT_CATALOG = [
262
263
  label: "Polymarket",
263
264
  iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "polymarket")
264
265
  },
266
+ {
267
+ id: "aave",
268
+ label: "Aave",
269
+ iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "aave")
270
+ },
265
271
  {
266
272
  id: "hyperliquid",
267
273
  label: "Hyperliquid",
268
274
  iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "hyperliquid"),
269
275
  comingSoon: true
270
276
  },
271
- {
272
- id: "aave",
273
- label: "Aave",
274
- iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "aave"),
275
- comingSoon: true
276
- },
277
277
  {
278
278
  id: "morpho",
279
279
  label: "Morpho",
@@ -285,7 +285,7 @@ var DAPP_IMPORT_CATALOG = [
285
285
  // src/components/ui/BrandIcons.tsx
286
286
 
287
287
  function ExchangeBadgeImage({ name }) {
288
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: _nullishCoalesce(_chunkNMIMRASDcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
288
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: _nullishCoalesce(_chunkA42XAHIBcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
289
289
  }
290
290
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
291
291
  function CardNetworkIcons() {
@@ -293,7 +293,7 @@ function CardNetworkIcons() {
293
293
  "span",
294
294
  {
295
295
  className: `rs-card-network rs-card-network--${network}`,
296
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "cards", network) })
296
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "cards", network) })
297
297
  },
298
298
  network
299
299
  )) });
@@ -314,7 +314,7 @@ function DappBadgeIcons() {
314
314
  ).filter(
315
315
  (brand) => Boolean(brand)
316
316
  );
317
- 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, _chunkVN4BLZYCcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
317
+ 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, _chunkPUJHXHRAcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
318
318
  }
319
319
  DappBadgeIcons.displayName = "DappBadgeIcons";
320
320
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -334,9 +334,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
334
334
  return "No balance";
335
335
  }
336
336
  function fiatIcon(name) {
337
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.AppleIcon, {});
338
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BankIcon, {});
339
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CardIcon, {});
337
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.AppleIcon, {});
338
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BankIcon, {});
339
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CardIcon, {});
340
340
  }
341
341
  function FiatMethodIcon({ option }) {
342
342
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -419,13 +419,13 @@ function renderWalletLeading(row) {
419
419
  }
420
420
  );
421
421
  }
422
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {});
422
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {});
423
423
  }
424
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TransferCryptoIcon, {});
425
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {});
426
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.UnplugIcon, {});
427
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.MigrateAssetsIcon, {});
428
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, { className: "rs-spinner--sm" });
424
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {});
425
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {});
426
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.UnplugIcon, {});
427
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.MigrateAssetsIcon, {});
428
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" });
429
429
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
430
430
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
431
431
  "+100"
@@ -474,8 +474,7 @@ function ConnectStep({
474
474
  title = "Deposit",
475
475
  subtitle,
476
476
  defaultMethodTab = "crypto",
477
- onMethodTabChange,
478
- onInteract
477
+ onMethodTabChange
479
478
  }) {
480
479
  const rows = _nullishCoalesce(walletRows, () => ( []));
481
480
  const handleConnect = _nullishCoalesce(onConnect, () => ( onRequestConnect));
@@ -487,7 +486,7 @@ function ConnectStep({
487
486
  if (onSelectTransferCrypto) {
488
487
  cryptoRows.push(
489
488
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
490
- _chunkT7LGQFP3cjs.ListRow,
489
+ _chunkVTVOHNXMcjs.ListRow,
491
490
  {
492
491
  leading: TRANSFER_CRYPTO_LEADING,
493
492
  title: "Transfer crypto",
@@ -508,7 +507,7 @@ function ConnectStep({
508
507
  );
509
508
  cryptoRows.push(
510
509
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
511
- _chunkT7LGQFP3cjs.ListRow,
510
+ _chunkVTVOHNXMcjs.ListRow,
512
511
  {
513
512
  leading: renderWalletLeading(row),
514
513
  title: collapseToExternal ? "External wallet" : row.label,
@@ -525,7 +524,7 @@ function ConnectStep({
525
524
  if (!hasReownWallet && handleConnect) {
526
525
  cryptoRows.push(
527
526
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
528
- _chunkT7LGQFP3cjs.ListRow,
527
+ _chunkVTVOHNXMcjs.ListRow,
529
528
  {
530
529
  leading: WALLET_LEADING,
531
530
  title: "Connect wallet",
@@ -540,7 +539,7 @@ function ConnectStep({
540
539
  if (onSelectFundFromExchange) {
541
540
  cryptoRows.push(
542
541
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
543
- _chunkT7LGQFP3cjs.ListRow,
542
+ _chunkVTVOHNXMcjs.ListRow,
544
543
  {
545
544
  leading: EXCHANGE_LEADING,
546
545
  title: "Connect exchange",
@@ -555,7 +554,7 @@ function ConnectStep({
555
554
  if (onSelectMigrateAssets) {
556
555
  cryptoRows.push(
557
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
558
- _chunkT7LGQFP3cjs.ListRow,
557
+ _chunkVTVOHNXMcjs.ListRow,
559
558
  {
560
559
  leading: MIGRATE_ASSETS_LEADING,
561
560
  title: "Migrate assets",
@@ -576,7 +575,7 @@ function ConnectStep({
576
575
  for (const opt of fiatPaymentMethods) {
577
576
  cashRows.push(
578
577
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
579
- _chunkT7LGQFP3cjs.ListRow,
578
+ _chunkVTVOHNXMcjs.ListRow,
580
579
  {
581
580
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
582
581
  title: opt.label,
@@ -591,7 +590,7 @@ function ConnectStep({
591
590
  } else if (fiatLoading) {
592
591
  cashRows.push(
593
592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
594
- _chunkT7LGQFP3cjs.ListRow,
593
+ _chunkVTVOHNXMcjs.ListRow,
595
594
  {
596
595
  leading: SMALL_SPINNER,
597
596
  title: "Loading payment options\u2026",
@@ -617,58 +616,49 @@ function ConnectStep({
617
616
  }
618
617
  onPrefetchFiatMethod(recommendedMethod);
619
618
  }, [activeTab, onPrefetchFiatMethod, recommendedMethod]);
620
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
621
- "div",
622
- {
623
- className: "rs-screen",
624
- onPointerDownCapture: onInteract,
625
- onFocusCapture: onInteract,
626
- onKeyDownCapture: onInteract,
627
- children: [
628
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
630
- _chunkVN4BLZYCcjs.BodyHeader,
631
- {
632
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HandCoinsIcon, {}),
633
- title,
634
- subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
635
- aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
636
- SegmentedToggle,
637
- {
638
- ariaLabel: "Deposit method type",
639
- value: activeTab,
640
- onChange: handleTabChange,
641
- options: [
642
- { value: "crypto", label: "Crypto" },
643
- { value: "cash", label: "Cash" }
644
- ]
645
- }
646
- ) : void 0
647
- }
648
- ),
649
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
650
- "div",
619
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
620
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
621
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
622
+ _chunkPUJHXHRAcjs.BodyHeader,
623
+ {
624
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HandCoinsIcon, {}),
625
+ title,
626
+ subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
627
+ aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
628
+ SegmentedToggle,
651
629
  {
652
- className: "rs-list",
653
- "aria-live": activeTab === "cash" ? "polite" : void 0,
654
- "aria-busy": activeTab === "cash" && fiatLoading ? true : void 0,
655
- children: activeRows
630
+ ariaLabel: "Deposit method type",
631
+ value: activeTab,
632
+ onChange: handleTabChange,
633
+ options: [
634
+ { value: "crypto", label: "Crypto" },
635
+ { value: "cash", label: "Cash" }
636
+ ]
656
637
  }
657
- )
658
- ] }),
659
- onDisconnect && hasReownWallet && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-tight-row", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
660
- "button",
661
- {
662
- type: "button",
663
- className: "rs-connect-wallet-manage",
664
- onClick: onDisconnect,
665
- children: "Disconnect wallet"
666
- }
667
- ) }),
668
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
669
- ]
670
- }
671
- );
638
+ ) : void 0
639
+ }
640
+ ),
641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
642
+ "div",
643
+ {
644
+ className: "rs-list",
645
+ "aria-live": activeTab === "cash" ? "polite" : void 0,
646
+ "aria-busy": activeTab === "cash" && fiatLoading ? true : void 0,
647
+ children: activeRows
648
+ }
649
+ )
650
+ ] }),
651
+ onDisconnect && hasReownWallet && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-tight-row", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
652
+ "button",
653
+ {
654
+ type: "button",
655
+ className: "rs-connect-wallet-manage",
656
+ onClick: onDisconnect,
657
+ children: "Disconnect wallet"
658
+ }
659
+ ) }),
660
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
661
+ ] });
672
662
  }
673
663
  ConnectStep.displayName = "ConnectStep";
674
664
 
@@ -692,12 +682,12 @@ function AssetSelectStep({
692
682
  const [error, setError] = _react.useState.call(void 0, null);
693
683
  const defaultAssetId = _react.useMemo.call(void 0, () => {
694
684
  if (!defaultSourceChain || !defaultSourceToken) return null;
695
- return _chunkVN4BLZYCcjs.getAssetId.call(void 0, {
685
+ return _chunkPUJHXHRAcjs.getAssetId.call(void 0, {
696
686
  chainId: defaultSourceChain,
697
687
  token: defaultSourceToken
698
688
  });
699
689
  }, [defaultSourceChain, defaultSourceToken]);
700
- const onTotalBalanceComputedRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
690
+ const onTotalBalanceComputedRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
701
691
  _react.useEffect.call(void 0, () => {
702
692
  let active = true;
703
693
  function emitAssetsUpdate(currentAssets) {
@@ -717,7 +707,7 @@ function AssetSelectStep({
717
707
  try {
718
708
  const portfolio = await service.fetchPortfolio(address);
719
709
  if (!active) return;
720
- const portfolioAssets = _chunkVN4BLZYCcjs.portfolioToAssets.call(void 0, portfolio.tokens);
710
+ const portfolioAssets = _chunkPUJHXHRAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
721
711
  setAssets(portfolioAssets);
722
712
  emitAssetsUpdate(portfolioAssets);
723
713
  const hasNative = portfolioAssets.some(
@@ -785,7 +775,7 @@ function AssetSelectStep({
785
775
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
786
776
  const numeric = Number(raw);
787
777
  if (!Number.isFinite(numeric)) return raw;
788
- return _chunkVN4BLZYCcjs.tokenFormatter.format(numeric);
778
+ return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
789
779
  } catch (e3) {
790
780
  return asset.balance;
791
781
  }
@@ -793,20 +783,20 @@ function AssetSelectStep({
793
783
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
794
784
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
795
785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
796
- _chunkVN4BLZYCcjs.BodyHeader,
786
+ _chunkPUJHXHRAcjs.BodyHeader,
797
787
  {
798
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}),
788
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
799
789
  title: "Your assets",
800
790
  subtitle: "Select source assets to transfer"
801
791
  }
802
792
  ),
803
793
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
804
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, { className: "rs-text-tertiary" }),
794
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-text-tertiary" }),
805
795
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
806
796
  ] }),
807
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
797
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
808
798
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
809
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, { className: "rs-empty-icon" }),
799
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, { className: "rs-empty-icon" }),
810
800
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
811
801
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
812
802
  address.slice(0, 6),
@@ -839,13 +829,13 @@ function AssetSelectStep({
839
829
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
840
830
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
841
831
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
842
- _chunkVN4BLZYCcjs.TokenIcon,
832
+ _chunkPUJHXHRAcjs.TokenIcon,
843
833
  {
844
834
  symbol: asset.symbol,
845
835
  fallback: asset.symbol.slice(0, 4)
846
836
  }
847
837
  ) }),
848
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
838
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
849
839
  "span",
850
840
  {
851
841
  className: "rs-asset-chain-badge",
@@ -872,14 +862,14 @@ function AssetSelectStep({
872
862
  ] })
873
863
  ] })
874
864
  ] }),
875
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkVN4BLZYCcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
865
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
876
866
  ]
877
867
  },
878
868
  asset.id
879
869
  );
880
870
  }) }),
881
871
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
882
- _chunkVN4BLZYCcjs.Button,
872
+ _chunkPUJHXHRAcjs.Button,
883
873
  {
884
874
  onClick: () => selectedAsset && onContinue(selectedAsset),
885
875
  disabled: !selectedAsset,
@@ -888,7 +878,7 @@ function AssetSelectStep({
888
878
  }
889
879
  )
890
880
  ] }),
891
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
881
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
892
882
  ] });
893
883
  }
894
884
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -896,7 +886,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
896
886
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
897
887
  if (!connectedChainId) return [];
898
888
  if (!_chunkH577RJN5cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
899
- const id = _chunkVN4BLZYCcjs.getAssetId.call(void 0, {
889
+ const id = _chunkPUJHXHRAcjs.getAssetId.call(void 0, {
900
890
  chainId: connectedChainId,
901
891
  token: _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS
902
892
  });
@@ -1046,6 +1036,7 @@ function AmountStep({
1046
1036
  publicClient,
1047
1037
  address,
1048
1038
  balanceAddress,
1039
+ declaredBalance,
1049
1040
  asset,
1050
1041
  defaultAmount,
1051
1042
  switchChain,
@@ -1088,11 +1079,15 @@ function AmountStep({
1088
1079
  const hasPricing = tokenPriceUsd !== null;
1089
1080
  _react.useEffect.call(void 0, () => {
1090
1081
  let active = true;
1082
+ if (declaredBalance !== void 0) {
1083
+ setBalance(declaredBalance);
1084
+ return;
1085
+ }
1091
1086
  async function fetchBalance() {
1092
1087
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1093
1088
  if (!balanceTarget || !publicClient) return;
1094
1089
  try {
1095
- const bal = _chunkVN4BLZYCcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1090
+ const bal = _chunkPUJHXHRAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1096
1091
  address: asset.token,
1097
1092
  abi: _viem.erc20Abi,
1098
1093
  functionName: "balanceOf",
@@ -1107,13 +1102,13 @@ function AmountStep({
1107
1102
  return () => {
1108
1103
  active = false;
1109
1104
  };
1110
- }, [address, balanceAddress, publicClient, asset]);
1105
+ }, [address, balanceAddress, declaredBalance, publicClient, asset]);
1111
1106
  _react.useEffect.call(void 0, () => {
1112
1107
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1113
1108
  hasAttemptedSwitch.current = true;
1114
1109
  switchChain(asset.chainId).catch((err) => {
1115
1110
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1116
- setError(_chunkVN4BLZYCcjs.formatUserError.call(void 0, raw));
1111
+ setError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw));
1117
1112
  });
1118
1113
  }
1119
1114
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1166,7 +1161,7 @@ function AmountStep({
1166
1161
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1167
1162
  const numeric = Number(raw);
1168
1163
  if (!Number.isFinite(numeric)) return raw;
1169
- return _chunkVN4BLZYCcjs.tokenFormatter.format(numeric);
1164
+ return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
1170
1165
  } catch (e8) {
1171
1166
  return "\u2026";
1172
1167
  }
@@ -1255,7 +1250,7 @@ function AmountStep({
1255
1250
  const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
1256
1251
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1257
1252
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1258
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}), title: "Wallet deposit" }),
1253
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Wallet deposit" }),
1259
1254
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1260
1255
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1261
1256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1275,13 +1270,13 @@ function AmountStep({
1275
1270
  " available",
1276
1271
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1277
1272
  " (~",
1278
- _chunkVN4BLZYCcjs.currencyFormatter.format(balanceUsd),
1273
+ _chunkPUJHXHRAcjs.currencyFormatter.format(balanceUsd),
1279
1274
  ")"
1280
1275
  ] })
1281
1276
  ] }),
1282
1277
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1283
1278
  "Min. deposit ",
1284
- _chunkVN4BLZYCcjs.currencyFormatter.format(minDepositUsd)
1279
+ _chunkPUJHXHRAcjs.currencyFormatter.format(minDepositUsd)
1285
1280
  ] })
1286
1281
  ] })
1287
1282
  ] }),
@@ -1306,7 +1301,7 @@ function AmountStep({
1306
1301
  " ",
1307
1302
  asset.symbol
1308
1303
  ] }),
1309
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: asset.symbol }) })
1304
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: asset.symbol }) })
1310
1305
  ] })
1311
1306
  ] }),
1312
1307
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1317,18 +1312,18 @@ function AmountStep({
1317
1312
  " ",
1318
1313
  targetSymbol
1319
1314
  ] }),
1320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: targetSymbol }) })
1315
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
1321
1316
  ] })
1322
1317
  ] }),
1323
1318
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1324
1319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1325
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkVN4BLZYCcjs.currencyFormatter.format(balanceAfterUsd) })
1320
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPUJHXHRAcjs.currencyFormatter.format(balanceAfterUsd) })
1326
1321
  ] })
1327
1322
  ] }),
1328
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1329
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
1323
+ targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1324
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
1330
1325
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1331
- _chunkVN4BLZYCcjs.Button,
1326
+ _chunkPUJHXHRAcjs.Button,
1332
1327
  {
1333
1328
  onClick: handleContinue,
1334
1329
  fullWidth: true,
@@ -1337,7 +1332,7 @@ function AmountStep({
1337
1332
  }
1338
1333
  )
1339
1334
  ] }),
1340
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
1335
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
1341
1336
  ] });
1342
1337
  }
1343
1338
 
@@ -1405,34 +1400,34 @@ function ConfirmStep({
1405
1400
  const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
1406
1401
  const sourceChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, asset.chainId);
1407
1402
  const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
1408
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkVN4BLZYCcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1409
- const mustHaveQuote = !appFeesResolved || _chunkVN4BLZYCcjs.resolveAppFeeBps.call(void 0,
1403
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkPUJHXHRAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1404
+ const mustHaveQuote = !appFeesResolved || _chunkPUJHXHRAcjs.resolveAppFeeBps.call(void 0,
1410
1405
  appFees,
1411
1406
  `eip155:${quoteSource.chainId}`,
1412
1407
  quoteSource.token
1413
1408
  ) > 0;
1414
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkVN4BLZYCcjs.quoteFeeRow.call(void 0,
1409
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunkPUJHXHRAcjs.quoteFeeRow.call(void 0,
1415
1410
  _optionalChain([quote, 'optionalAccess', _24 => _24.fees])
1416
1411
  );
1417
1412
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1418
1413
  const receiveDisplay = (() => {
1419
1414
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1420
1415
  if (quote) {
1421
- const quoted = _chunkVN4BLZYCcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1416
+ const quoted = _chunkPUJHXHRAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1422
1417
  if (quoted !== void 0) return quoted;
1423
1418
  }
1424
1419
  const usdValue = Number(targetAmount);
1425
1420
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1426
- const estimate = _chunkVN4BLZYCcjs.formatReceiveEstimate.call(void 0, {
1421
+ const estimate = _chunkPUJHXHRAcjs.formatReceiveEstimate.call(void 0, {
1427
1422
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1428
1423
  sourceSymbol: asset.symbol,
1429
1424
  targetSymbol,
1430
1425
  sourceAmountUsd,
1431
- sourceTrusted: _chunkVN4BLZYCcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1426
+ sourceTrusted: _chunkPUJHXHRAcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1432
1427
  // The target is the curated deposit destination, so a stablecoin target
1433
1428
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1434
1429
  // target prices). Not applied to the source — that can be a held token.
1435
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkVN4BLZYCcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1430
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkPUJHXHRAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1436
1431
  });
1437
1432
  if (estimate !== void 0) return estimate;
1438
1433
  return targetSymbol;
@@ -1443,7 +1438,7 @@ function ConfirmStep({
1443
1438
  hasAttemptedSwitch.current = true;
1444
1439
  switchChain(asset.chainId).catch((err) => {
1445
1440
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1446
- setError(_chunkVN4BLZYCcjs.formatUserError.call(void 0, raw));
1441
+ setError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw));
1447
1442
  });
1448
1443
  }
1449
1444
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1532,7 +1527,7 @@ function ConfirmStep({
1532
1527
  const result = await executeTransfer(amountUnits);
1533
1528
  hash = result.txHash;
1534
1529
  resolvedSourceToken = result.sourceToken;
1535
- } else if (_chunkVN4BLZYCcjs.isNativeAsset.call(void 0, asset)) {
1530
+ } else if (_chunkPUJHXHRAcjs.isNativeAsset.call(void 0, asset)) {
1536
1531
  hash = await walletClient.sendTransaction({
1537
1532
  account,
1538
1533
  chain,
@@ -1563,7 +1558,7 @@ function ConfirmStep({
1563
1558
  );
1564
1559
  } catch (err) {
1565
1560
  const raw = err instanceof Error ? err.message : "Transfer failed";
1566
- const message = _chunkVN4BLZYCcjs.formatUserError.call(void 0, raw);
1561
+ const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
1567
1562
  setError(message);
1568
1563
  _optionalChain([onError, 'optionalCall', _26 => _26(message, "TRANSFER_ERROR")]);
1569
1564
  } finally {
@@ -1572,20 +1567,20 @@ function ConfirmStep({
1572
1567
  };
1573
1568
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1574
1569
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1575
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}), title: "Review deposit" }),
1570
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Review deposit" }),
1576
1571
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1577
1572
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1578
1573
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1579
1574
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1580
1575
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1581
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: sourceChainIcon }) })
1576
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
1582
1577
  ] })
1583
1578
  ] }),
1584
1579
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1585
1580
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1586
1581
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1587
1582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1588
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: targetChainIcon }) })
1583
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
1589
1584
  ] })
1590
1585
  ] }),
1591
1586
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1600,14 +1595,14 @@ function ConfirmStep({
1600
1595
  " ",
1601
1596
  asset.symbol
1602
1597
  ] }),
1603
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: asset.symbol }) })
1598
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: asset.symbol }) })
1604
1599
  ] })
1605
1600
  ] }),
1606
1601
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1607
1602
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1608
1603
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1609
1604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1610
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: targetSymbol }) })
1605
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
1611
1606
  ] })
1612
1607
  ] }),
1613
1608
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1627,10 +1622,10 @@ function ConfirmStep({
1627
1622
  ) })
1628
1623
  ] })
1629
1624
  ] }),
1630
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1631
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
1625
+ targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1626
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
1632
1627
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1633
- _chunkVN4BLZYCcjs.Button,
1628
+ _chunkPUJHXHRAcjs.Button,
1634
1629
  {
1635
1630
  onClick: handleConfirm,
1636
1631
  loading: isSubmitting,
@@ -1644,7 +1639,7 @@ function ConfirmStep({
1644
1639
  }
1645
1640
  )
1646
1641
  ] }),
1647
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
1642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
1648
1643
  ] });
1649
1644
  }
1650
1645
 
@@ -1667,9 +1662,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1667
1662
  var MAX_POLL_INTERVAL = 3e4;
1668
1663
  var BACKOFF_MULTIPLIER = 1.5;
1669
1664
  function isEventForTx(event, txHash) {
1670
- const eventTxHash = _chunkNMIMRASDcjs.getEventTxHash.call(void 0, event);
1665
+ const eventTxHash = _chunkA42XAHIBcjs.getEventTxHash.call(void 0, event);
1671
1666
  if (!eventTxHash) return false;
1672
- return _chunkNMIMRASDcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1667
+ return _chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1673
1668
  }
1674
1669
  function truncateHash(hash) {
1675
1670
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1719,7 +1714,7 @@ function formatBridgeFailedMessage(event) {
1719
1714
  }
1720
1715
  return "Bridge failed";
1721
1716
  }
1722
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1717
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1723
1718
  function DepositNotification({
1724
1719
  deposit,
1725
1720
  smartAccount,
@@ -1753,7 +1748,7 @@ function DepositNotification({
1753
1748
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1754
1749
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1755
1750
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1756
- const depositContextRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, {
1751
+ const depositContextRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, {
1757
1752
  amount,
1758
1753
  sourceChain,
1759
1754
  sourceToken: token,
@@ -1761,8 +1756,8 @@ function DepositNotification({
1761
1756
  targetChain,
1762
1757
  targetToken
1763
1758
  });
1764
- const onCompleteRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onComplete);
1765
- const onFailedRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onFailed);
1759
+ const onCompleteRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onComplete);
1760
+ const onFailedRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onFailed);
1766
1761
  const handleComplete = _react.useCallback.call(void 0,
1767
1762
  (destTxHash) => {
1768
1763
  if (completedRef.current) return;
@@ -1857,7 +1852,7 @@ function DepositNotification({
1857
1852
  const destExplorerUrl = destinationTxHash ? _chunkH577RJN5cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1858
1853
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1859
1854
  const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
1860
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1855
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1861
1856
  "svg",
1862
1857
  {
1863
1858
  className: "rs-deposit-notification-spinner",
@@ -1907,7 +1902,7 @@ function DepositNotification({
1907
1902
  className: "rs-deposit-notification-close",
1908
1903
  onClick: () => onDismiss(deposit.id),
1909
1904
  "aria-label": "Dismiss",
1910
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {})
1905
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
1911
1906
  }
1912
1907
  )
1913
1908
  ] }),
@@ -1923,7 +1918,7 @@ function DepositNotification({
1923
1918
  "aria-expanded": expanded,
1924
1919
  children: [
1925
1920
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1921
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1927
1922
  ]
1928
1923
  }
1929
1924
  ),
@@ -2073,7 +2068,7 @@ function resolveSourceTokenAddress(symbol, chainId, topTokens) {
2073
2068
  }
2074
2069
  function TokenGlyph({ symbol }) {
2075
2070
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2076
- _chunkVN4BLZYCcjs.TokenIcon,
2071
+ _chunkPUJHXHRAcjs.TokenIcon,
2077
2072
  {
2078
2073
  symbol,
2079
2074
  className: "rs-deposit-address-dropdown-icon",
@@ -2308,10 +2303,10 @@ function DepositAddressStep({
2308
2303
  return;
2309
2304
  }
2310
2305
  const event = status.lastEvent;
2311
- const eventTxHash = _chunkNMIMRASDcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkNMIMRASDcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2306
+ const eventTxHash = _chunkA42XAHIBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkA42XAHIBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2312
2307
  if (baselineTxHashRef.current === void 0) {
2313
2308
  baselineTxHashRef.current = eventTxHash;
2314
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkNMIMRASDcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2309
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2315
2310
  const details = getDepositEventDetails(event);
2316
2311
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
2317
2312
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -2388,7 +2383,7 @@ function DepositAddressStep({
2388
2383
  const qrIconSrc = _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChainId);
2389
2384
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
2390
2385
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2386
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2392
2387
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
2393
2388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
2394
2389
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2404,14 +2399,14 @@ function DepositAddressStep({
2404
2399
  },
2405
2400
  children: [
2406
2401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2407
- _chunkVN4BLZYCcjs.CdnIcon,
2402
+ _chunkPUJHXHRAcjs.CdnIcon,
2408
2403
  {
2409
2404
  src: _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChainId),
2410
2405
  className: "rs-deposit-address-dropdown-icon"
2411
2406
  }
2412
2407
  ),
2413
2408
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
2414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2409
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2415
2410
  ]
2416
2411
  }
2417
2412
  ),
@@ -2423,7 +2418,7 @@ function DepositAddressStep({
2423
2418
  onClick: () => handleSelectChain(chainId),
2424
2419
  children: [
2425
2420
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2426
- _chunkVN4BLZYCcjs.CdnIcon,
2421
+ _chunkPUJHXHRAcjs.CdnIcon,
2427
2422
  {
2428
2423
  src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chainId),
2429
2424
  className: "rs-deposit-address-dropdown-icon"
@@ -2441,8 +2436,8 @@ function DepositAddressStep({
2441
2436
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2442
2437
  "Min.$",
2443
2438
  (targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkH577RJN5cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _72 => _72.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _73 => _73.minDepositUsd]), () => ( 0.1))).toFixed(2),
2444
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMIMRASDcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2445
- _chunkVN4BLZYCcjs.InfoIcon,
2439
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2440
+ _chunkPUJHXHRAcjs.InfoIcon,
2446
2441
  {
2447
2442
  className: "rs-deposit-address-min-icon",
2448
2443
  "aria-hidden": "true"
@@ -2463,7 +2458,7 @@ function DepositAddressStep({
2463
2458
  children: [
2464
2459
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
2465
2460
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
2466
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2461
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2467
2462
  ]
2468
2463
  }
2469
2464
  ),
@@ -2507,7 +2502,7 @@ function DepositAddressStep({
2507
2502
  className: "rs-deposit-address-copy",
2508
2503
  onClick: handleCopy,
2509
2504
  children: [
2510
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CopyIcon, {}),
2505
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CopyIcon, {}),
2511
2506
  copied ? "Copied!" : "Copy address"
2512
2507
  ]
2513
2508
  }
@@ -2515,7 +2510,7 @@ function DepositAddressStep({
2515
2510
  ]
2516
2511
  }
2517
2512
  ),
2518
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2513
+ targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2519
2514
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2520
2515
  "div",
2521
2516
  {
@@ -2533,16 +2528,16 @@ function DepositAddressStep({
2533
2528
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2534
2529
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2535
2530
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2536
- _chunkNMIMRASDcjs.Tooltip,
2531
+ _chunkA42XAHIBcjs.Tooltip,
2537
2532
  {
2538
2533
  className: "rs-price-impact-info",
2539
2534
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2540
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.InfoIcon, { "aria-hidden": "true" })
2535
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
2541
2536
  }
2542
2537
  )
2543
2538
  ] }),
2544
2539
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2545
- _chunkVN4BLZYCcjs.ChevronDownIcon,
2540
+ _chunkPUJHXHRAcjs.ChevronDownIcon,
2546
2541
  {
2547
2542
  className: "rs-price-impact-chevron",
2548
2543
  "aria-hidden": "true"
@@ -2553,29 +2548,29 @@ function DepositAddressStep({
2553
2548
  ),
2554
2549
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-price-impact-panel", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-panel-inner", children: [
2555
2550
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2556
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PercentIcon, {}) }),
2551
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PercentIcon, {}) }),
2557
2552
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2558
2553
  "Max slippage: ",
2559
2554
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2560
2555
  ] }),
2561
2556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2562
- _chunkNMIMRASDcjs.Tooltip,
2557
+ _chunkA42XAHIBcjs.Tooltip,
2563
2558
  {
2564
2559
  className: "rs-price-impact-info",
2565
2560
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2566
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.InfoIcon, { "aria-hidden": "true" })
2561
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
2567
2562
  }
2568
2563
  )
2569
2564
  ] }),
2570
2565
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2571
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ClockIcon, {}) }),
2566
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ClockIcon, {}) }),
2572
2567
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2573
2568
  "Processing time: ",
2574
2569
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2575
2570
  ] })
2576
2571
  ] }),
2577
2572
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2578
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PlusCircleIcon, {}) }),
2573
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PlusCircleIcon, {}) }),
2579
2574
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2580
2575
  "Max deposit:",
2581
2576
  " ",
@@ -2606,7 +2601,7 @@ function DepositAddressStep({
2606
2601
  },
2607
2602
  deposit.id
2608
2603
  )) }),
2609
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
2604
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2610
2605
  ] });
2611
2606
  }
2612
2607
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2654,7 +2649,7 @@ function FinalisingDepositStep() {
2654
2649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2655
2650
  ] })
2656
2651
  ] }),
2657
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
2652
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2658
2653
  ] });
2659
2654
  }
2660
2655
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2684,7 +2679,7 @@ function SwappedOrderTracker({
2684
2679
  ];
2685
2680
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2686
2681
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2687
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HandCoinsIcon, {}), title }),
2682
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HandCoinsIcon, {}), title }),
2688
2683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2689
2684
  const status = stepStates[idx];
2690
2685
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2698,7 +2693,7 @@ function SwappedOrderTracker({
2698
2693
  {
2699
2694
  className: "rs-swapped-tracker-step-marker",
2700
2695
  "aria-hidden": "true",
2701
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2696
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2702
2697
  "svg",
2703
2698
  {
2704
2699
  className: "rs-swapped-tracker-step-ring",
@@ -2733,7 +2728,7 @@ function SwappedOrderTracker({
2733
2728
  }
2734
2729
  )
2735
2730
  ] }),
2736
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
2731
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2737
2732
  ] });
2738
2733
  }
2739
2734
  function formatTrackerAmount(amount) {
@@ -2938,10 +2933,10 @@ function SwappedIframeStep({
2938
2933
  const status = await service.fetchLatestStatus(smartAccount);
2939
2934
  if (cancelled) return;
2940
2935
  const event = status.lastEvent;
2941
- const eventTxHash = _chunkNMIMRASDcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkNMIMRASDcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2936
+ const eventTxHash = _chunkA42XAHIBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkA42XAHIBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2942
2937
  if (baselineDepositTxHashRef.current === void 0) {
2943
2938
  baselineDepositTxHashRef.current = eventTxHash;
2944
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkNMIMRASDcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2939
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2945
2940
  currentDepositTxHashRef.current = eventTxHash;
2946
2941
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2947
2942
  }
@@ -3015,10 +3010,10 @@ function SwappedIframeStep({
3015
3010
  [orderState, latestEvent]
3016
3011
  );
3017
3012
  const terminalState = _react.useMemo.call(void 0, () => {
3018
- if (_chunkNMIMRASDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3013
+ if (_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3019
3014
  return {
3020
3015
  kind: "failed",
3021
- message: _chunkNMIMRASDcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3016
+ message: _chunkA42XAHIBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3022
3017
  };
3023
3018
  }
3024
3019
  if (_optionalChain([orderState, 'optionalAccess', _90 => _90.status]) === "order_cancelled") {
@@ -3041,7 +3036,7 @@ function SwappedIframeStep({
3041
3036
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _92 => _92.orderCrypto]), () => ( null)),
3042
3037
  // Base-unit source amount from the deposit row/event, consistent with the
3043
3038
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3044
- amount: _nullishCoalesce(_chunkNMIMRASDcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3039
+ amount: _nullishCoalesce(_chunkA42XAHIBcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3045
3040
  expectedOrderUuid: expectedOrderUuidRef.current,
3046
3041
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3047
3042
  };
@@ -3052,14 +3047,14 @@ function SwappedIframeStep({
3052
3047
  }, [latestEvent, orderState, smartAccount]);
3053
3048
  _react.useEffect.call(void 0, () => {
3054
3049
  if (failedFiredRef.current || completeFiredRef.current) return;
3055
- if (!_chunkNMIMRASDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3050
+ if (!_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3056
3051
  const txHash = currentDepositTxHashRef.current;
3057
3052
  if (!txHash) return;
3058
3053
  failedFiredRef.current = true;
3059
3054
  setPhase("tracker");
3060
3055
  _optionalChain([onSwappedFailedRef, 'access', _93 => _93.current, 'optionalCall', _94 => _94(
3061
3056
  txHash,
3062
- _chunkNMIMRASDcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3057
+ _chunkA42XAHIBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3063
3058
  )]);
3064
3059
  }, [latestEvent]);
3065
3060
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -3105,7 +3100,7 @@ function SwappedIframeStep({
3105
3100
  }
3106
3101
  )
3107
3102
  ] }),
3108
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, {}) }),
3103
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) }),
3109
3104
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3110
3105
  "iframe",
3111
3106
  {
@@ -3128,11 +3123,11 @@ function SwappedIframeStep({
3128
3123
  retryToken
3129
3124
  )
3130
3125
  ] }) }),
3131
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
3126
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3132
3127
  ] });
3133
3128
  }
3134
3129
  function deriveStepStates(swappedStatus, latestEvent) {
3135
- if (_chunkNMIMRASDcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3130
+ if (_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3136
3131
  return ["complete", "complete", "failed", "pending"];
3137
3132
  }
3138
3133
  if (swappedStatus === "order_cancelled") {
@@ -3322,7 +3317,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
3322
3317
  function ExchangeLogo({ exchange }) {
3323
3318
  const [failed, setFailed] = _react.useState.call(void 0, false);
3324
3319
  if (!exchange.logoUrl || failed) {
3325
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BankIcon, {});
3320
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BankIcon, {});
3326
3321
  }
3327
3322
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3328
3323
  "img",
@@ -3403,14 +3398,14 @@ function ExchangeSelectStep({
3403
3398
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
3404
3399
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3405
3400
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3406
- _chunkVN4BLZYCcjs.BodyHeader,
3401
+ _chunkPUJHXHRAcjs.BodyHeader,
3407
3402
  {
3408
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.UnplugIcon, {}),
3403
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.UnplugIcon, {}),
3409
3404
  title: "Connect exchange",
3410
3405
  subtitle: "Select an exchange to connect"
3411
3406
  }
3412
3407
  ),
3413
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, {}) }),
3408
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) }),
3414
3409
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
3415
3410
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
3416
3411
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3436,7 +3431,7 @@ function ExchangeSelectStep({
3436
3431
  )
3437
3432
  ] }),
3438
3433
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
3439
- const brand = _chunkNMIMRASDcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
3434
+ const brand = _chunkA42XAHIBcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
3440
3435
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3441
3436
  "button",
3442
3437
  {
@@ -3461,7 +3456,7 @@ function ExchangeSelectStep({
3461
3456
  );
3462
3457
  }) })
3463
3458
  ] }),
3464
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {}),
3459
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {}),
3465
3460
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
3466
3461
  "A ",
3467
3462
  formatFeeRate(exchangeFeeBps),
@@ -3487,20 +3482,20 @@ function DepositAddressSkeleton({
3487
3482
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
3488
3483
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
3489
3484
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3490
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3485
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3491
3486
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
3492
3487
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
3493
3488
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
3494
3489
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
3495
3490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3496
- _chunkVN4BLZYCcjs.CdnIcon,
3491
+ _chunkPUJHXHRAcjs.CdnIcon,
3497
3492
  {
3498
3493
  src: chainIcon,
3499
3494
  className: "rs-deposit-address-dropdown-icon"
3500
3495
  }
3501
3496
  ),
3502
3497
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
3503
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3498
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3504
3499
  ] })
3505
3500
  ] }),
3506
3501
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -3509,8 +3504,8 @@ function DepositAddressSkeleton({
3509
3504
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3510
3505
  "Min.$",
3511
3506
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.minDepositUsd]), () => ( 0.1))).toFixed(2),
3512
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMIMRASDcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3513
- _chunkVN4BLZYCcjs.InfoIcon,
3507
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3508
+ _chunkPUJHXHRAcjs.InfoIcon,
3514
3509
  {
3515
3510
  className: "rs-deposit-address-min-icon",
3516
3511
  "aria-hidden": "true"
@@ -3520,14 +3515,14 @@ function DepositAddressSkeleton({
3520
3515
  ] }),
3521
3516
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
3522
3517
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3523
- _chunkVN4BLZYCcjs.TokenIcon,
3518
+ _chunkPUJHXHRAcjs.TokenIcon,
3524
3519
  {
3525
3520
  symbol: defaultToken,
3526
3521
  className: "rs-deposit-address-dropdown-icon"
3527
3522
  }
3528
3523
  ),
3529
3524
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
3530
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3525
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3531
3526
  ] })
3532
3527
  ] })
3533
3528
  ] }),
@@ -3548,7 +3543,7 @@ function DepositAddressSkeleton({
3548
3543
  disabled: true,
3549
3544
  "aria-hidden": "true",
3550
3545
  children: [
3551
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CopyIcon, {}),
3546
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CopyIcon, {}),
3552
3547
  "Copy address"
3553
3548
  ]
3554
3549
  }
@@ -3561,16 +3556,16 @@ function DepositAddressSkeleton({
3561
3556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
3562
3557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
3563
3558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3564
- _chunkNMIMRASDcjs.Tooltip,
3559
+ _chunkA42XAHIBcjs.Tooltip,
3565
3560
  {
3566
3561
  className: "rs-price-impact-info",
3567
3562
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
3568
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.InfoIcon, { "aria-hidden": "true" })
3563
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
3569
3564
  }
3570
3565
  )
3571
3566
  ] }),
3572
3567
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3573
- _chunkVN4BLZYCcjs.ChevronDownIcon,
3568
+ _chunkPUJHXHRAcjs.ChevronDownIcon,
3574
3569
  {
3575
3570
  className: "rs-price-impact-chevron",
3576
3571
  "aria-hidden": "true"
@@ -3578,7 +3573,7 @@ function DepositAddressSkeleton({
3578
3573
  )
3579
3574
  ] }) })
3580
3575
  ] }),
3581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
3576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3582
3577
  ] });
3583
3578
  }
3584
3579
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3610,7 +3605,7 @@ function SolanaTokenSelectStep({
3610
3605
  setError(null);
3611
3606
  const portfolioBySymbol = {};
3612
3607
  try {
3613
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3608
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3614
3609
  solanaAddress
3615
3610
  });
3616
3611
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -3633,12 +3628,12 @@ function SolanaTokenSelectStep({
3633
3628
  };
3634
3629
  }
3635
3630
  }
3636
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3631
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3637
3632
  symbols: Object.keys(portfolioBySymbol)
3638
3633
  });
3639
3634
  } catch (err) {
3640
3635
  if (!active) return;
3641
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3636
+ _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3642
3637
  solanaAddress
3643
3638
  });
3644
3639
  setError(
@@ -3685,7 +3680,7 @@ function SolanaTokenSelectStep({
3685
3680
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3686
3681
  const numeric = Number(raw);
3687
3682
  if (!Number.isFinite(numeric)) return raw;
3688
- return _chunkVN4BLZYCcjs.tokenFormatter.format(numeric);
3683
+ return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
3689
3684
  } catch (e22) {
3690
3685
  return "--";
3691
3686
  }
@@ -3695,20 +3690,20 @@ function SolanaTokenSelectStep({
3695
3690
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3696
3691
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3697
3692
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3698
- _chunkVN4BLZYCcjs.BodyHeader,
3693
+ _chunkPUJHXHRAcjs.BodyHeader,
3699
3694
  {
3700
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}),
3695
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
3701
3696
  title: "Your assets",
3702
3697
  subtitle: "Select source assets to transfer"
3703
3698
  }
3704
3699
  ),
3705
3700
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3706
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, { className: "rs-text-tertiary" }),
3701
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-text-tertiary" }),
3707
3702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3708
3703
  ] }),
3709
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
3704
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
3710
3705
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3711
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, { className: "rs-empty-icon" }),
3706
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, { className: "rs-empty-icon" }),
3712
3707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3713
3708
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3714
3709
  solanaAddress.slice(0, 6),
@@ -3739,13 +3734,13 @@ function SolanaTokenSelectStep({
3739
3734
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3740
3735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3741
3736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3742
- _chunkVN4BLZYCcjs.TokenIcon,
3737
+ _chunkPUJHXHRAcjs.TokenIcon,
3743
3738
  {
3744
3739
  symbol: entry.token.symbol,
3745
3740
  fallback: entry.token.symbol.slice(0, 4)
3746
3741
  }
3747
3742
  ) }),
3748
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
3743
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
3749
3744
  ] }),
3750
3745
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
3751
3746
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -3762,14 +3757,14 @@ function SolanaTokenSelectStep({
3762
3757
  ] })
3763
3758
  ] })
3764
3759
  ] }),
3765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkVN4BLZYCcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3760
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3766
3761
  ]
3767
3762
  },
3768
3763
  entry.token.symbol
3769
3764
  );
3770
3765
  }) }),
3771
3766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3772
- _chunkVN4BLZYCcjs.Button,
3767
+ _chunkPUJHXHRAcjs.Button,
3773
3768
  {
3774
3769
  onClick: () => selectedEntry && onContinue(
3775
3770
  selectedEntry.token,
@@ -3782,7 +3777,7 @@ function SolanaTokenSelectStep({
3782
3777
  }
3783
3778
  )
3784
3779
  ] }),
3785
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
3780
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3786
3781
  ] });
3787
3782
  }
3788
3783
 
@@ -3834,7 +3829,7 @@ function SolanaAmountStep({
3834
3829
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3835
3830
  const numeric = Number(raw);
3836
3831
  if (!Number.isFinite(numeric)) return raw;
3837
- return _chunkVN4BLZYCcjs.tokenFormatter.format(numeric);
3832
+ return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
3838
3833
  } catch (e24) {
3839
3834
  return "\u2026";
3840
3835
  }
@@ -3927,7 +3922,7 @@ function SolanaAmountStep({
3927
3922
  const handlePresetClick = (percentage) => {
3928
3923
  const formatted = computePresetAmount(percentage);
3929
3924
  if (!formatted) return;
3930
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3925
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3931
3926
  percentage,
3932
3927
  symbol: token.symbol,
3933
3928
  formatted
@@ -3962,7 +3957,7 @@ function SolanaAmountStep({
3962
3957
  try {
3963
3958
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3964
3959
  } catch (e29) {
3965
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3960
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3966
3961
  amount,
3967
3962
  sourceAmount: sourceAmountStr,
3968
3963
  reason: "parse-units-failed"
@@ -3977,7 +3972,7 @@ function SolanaAmountStep({
3977
3972
  );
3978
3973
  return;
3979
3974
  }
3980
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3975
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3981
3976
  symbol: token.symbol,
3982
3977
  inputAmountUsd: amount,
3983
3978
  sourceAmount: sourceAmountStr,
@@ -3990,7 +3985,7 @@ function SolanaAmountStep({
3990
3985
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3991
3986
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3992
3987
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3993
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}), title: "Wallet deposit" }),
3988
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3994
3989
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3995
3990
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3996
3991
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4010,13 +4005,13 @@ function SolanaAmountStep({
4010
4005
  " available",
4011
4006
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4012
4007
  " (~",
4013
- _chunkVN4BLZYCcjs.currencyFormatter.format(computedBalanceUsd),
4008
+ _chunkPUJHXHRAcjs.currencyFormatter.format(computedBalanceUsd),
4014
4009
  ")"
4015
4010
  ] })
4016
4011
  ] }),
4017
4012
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4018
4013
  "Min. deposit ",
4019
- _chunkVN4BLZYCcjs.currencyFormatter.format(minDepositUsd)
4014
+ _chunkPUJHXHRAcjs.currencyFormatter.format(minDepositUsd)
4020
4015
  ] })
4021
4016
  ] })
4022
4017
  ] }),
@@ -4039,7 +4034,7 @@ function SolanaAmountStep({
4039
4034
  "Solana ",
4040
4035
  token.symbol
4041
4036
  ] }),
4042
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: token.symbol }) })
4037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: token.symbol }) })
4043
4038
  ] })
4044
4039
  ] }),
4045
4040
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4050,18 +4045,18 @@ function SolanaAmountStep({
4050
4045
  " ",
4051
4046
  targetTokenSymbol
4052
4047
  ] }),
4053
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4048
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4054
4049
  ] })
4055
4050
  ] }),
4056
4051
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4057
4052
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4058
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkVN4BLZYCcjs.currencyFormatter.format(balanceAfterUsd) })
4053
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPUJHXHRAcjs.currencyFormatter.format(balanceAfterUsd) })
4059
4054
  ] })
4060
4055
  ] }),
4061
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
4062
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
4056
+ targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
4057
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
4063
4058
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4064
- _chunkVN4BLZYCcjs.Button,
4059
+ _chunkPUJHXHRAcjs.Button,
4065
4060
  {
4066
4061
  onClick: handleContinue,
4067
4062
  fullWidth: true,
@@ -4070,7 +4065,7 @@ function SolanaAmountStep({
4070
4065
  }
4071
4066
  )
4072
4067
  ] }),
4073
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
4068
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4074
4069
  ] });
4075
4070
  }
4076
4071
 
@@ -4093,10 +4088,10 @@ var _spltoken = require('@solana/spl-token');
4093
4088
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
4094
4089
  var cachedConnections = /* @__PURE__ */ new Map();
4095
4090
  function getSolanaRpcUrl(rpcUrls) {
4096
- return _nullishCoalesce(_chunkVN4BLZYCcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4091
+ return _nullishCoalesce(_chunkPUJHXHRAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4097
4092
  }
4098
4093
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4099
- return _chunkVN4BLZYCcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4094
+ return _chunkPUJHXHRAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4100
4095
  }
4101
4096
  function getSolanaConnection(rpcUrls) {
4102
4097
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4198,7 +4193,7 @@ function SolanaConfirmStep({
4198
4193
  onError,
4199
4194
  debug
4200
4195
  }) {
4201
- const rpcUrls = _chunkVN4BLZYCcjs.useRpcUrls.call(void 0, );
4196
+ const rpcUrls = _chunkPUJHXHRAcjs.useRpcUrls.call(void 0, );
4202
4197
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4203
4198
  const [error, setError] = _react.useState.call(void 0, null);
4204
4199
  const targetSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
@@ -4208,26 +4203,26 @@ function SolanaConfirmStep({
4208
4203
  const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
4209
4204
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _118 => _118.feeSponsored]), () => ( false));
4210
4205
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4211
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkVN4BLZYCcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4206
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkPUJHXHRAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4212
4207
  const receiveDisplay = (() => {
4213
4208
  const usdValue = Number(targetAmount);
4214
4209
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4215
- const estimate = _chunkVN4BLZYCcjs.formatReceiveEstimate.call(void 0, {
4210
+ const estimate = _chunkPUJHXHRAcjs.formatReceiveEstimate.call(void 0, {
4216
4211
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4217
4212
  sourceSymbol: token.symbol,
4218
4213
  targetSymbol,
4219
4214
  sourceAmountUsd,
4220
- sourceTrusted: _chunkVN4BLZYCcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4215
+ sourceTrusted: _chunkPUJHXHRAcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4221
4216
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4222
4217
  // to the source (a held token). See ConfirmStep for the rationale.
4223
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkVN4BLZYCcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4218
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkPUJHXHRAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4224
4219
  });
4225
4220
  if (estimate !== void 0) return estimate;
4226
4221
  return targetSymbol;
4227
4222
  })();
4228
4223
  const handleConfirm = async () => {
4229
4224
  if (!solanaProvider) {
4230
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4225
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4231
4226
  reason: "missing-provider"
4232
4227
  });
4233
4228
  setError("Solana wallet not connected");
@@ -4235,7 +4230,7 @@ function SolanaConfirmStep({
4235
4230
  }
4236
4231
  const parsedAmount = parseFloat(sourceAmount);
4237
4232
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4238
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4233
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4239
4234
  reason: "invalid-amount",
4240
4235
  sourceAmount
4241
4236
  });
@@ -4244,7 +4239,7 @@ function SolanaConfirmStep({
4244
4239
  }
4245
4240
  setError(null);
4246
4241
  setIsSubmitting(true);
4247
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4242
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4248
4243
  smartAccount,
4249
4244
  solanaAddress,
4250
4245
  solanaDepositAddress,
@@ -4254,7 +4249,7 @@ function SolanaConfirmStep({
4254
4249
  });
4255
4250
  try {
4256
4251
  const check = await service.checkAccount(smartAccount);
4257
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4252
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4258
4253
  smartAccount,
4259
4254
  isRegistered: check.isRegistered,
4260
4255
  targetChain: check.targetChain,
@@ -4267,7 +4262,7 @@ function SolanaConfirmStep({
4267
4262
  }
4268
4263
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
4269
4264
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4270
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4265
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4271
4266
  token: token.symbol,
4272
4267
  sourceAmount,
4273
4268
  amountUnits: amountUnits.toString()
@@ -4284,7 +4279,7 @@ function SolanaConfirmStep({
4284
4279
  token.mint,
4285
4280
  amountUnits
4286
4281
  );
4287
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4282
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4288
4283
  token: token.symbol,
4289
4284
  instructionCount: transaction.instructions.length,
4290
4285
  feePayer: _optionalChain([transaction, 'access', _120 => _120.feePayer, 'optionalAccess', _121 => _121.toBase58, 'call', _122 => _122()]),
@@ -4295,7 +4290,7 @@ function SolanaConfirmStep({
4295
4290
  connection,
4296
4291
  transaction
4297
4292
  );
4298
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4293
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4299
4294
  txHash,
4300
4295
  amountUnits: amountUnits.toString()
4301
4296
  });
@@ -4307,8 +4302,8 @@ function SolanaConfirmStep({
4307
4302
  });
4308
4303
  } catch (err) {
4309
4304
  const raw = err instanceof Error ? err.message : "Transfer failed";
4310
- const message = _chunkVN4BLZYCcjs.formatUserError.call(void 0, raw);
4311
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4305
+ const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
4306
+ _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4312
4307
  smartAccount,
4313
4308
  token: token.symbol,
4314
4309
  sourceAmount
@@ -4321,20 +4316,20 @@ function SolanaConfirmStep({
4321
4316
  };
4322
4317
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4323
4318
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4324
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}), title: "Review deposit" }),
4319
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Review deposit" }),
4325
4320
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
4326
4321
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4327
4322
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
4328
4323
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4329
4324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
4330
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: sourceChainIcon }) })
4325
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
4331
4326
  ] })
4332
4327
  ] }),
4333
4328
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4334
4329
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
4335
4330
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4336
4331
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
4337
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: targetChainIcon }) })
4332
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
4338
4333
  ] })
4339
4334
  ] }),
4340
4335
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -4349,14 +4344,14 @@ function SolanaConfirmStep({
4349
4344
  " ",
4350
4345
  token.symbol
4351
4346
  ] }),
4352
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: token.symbol }) })
4347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: token.symbol }) })
4353
4348
  ] })
4354
4349
  ] }),
4355
4350
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4356
4351
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
4357
4352
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4358
4353
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
4359
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: targetSymbol }) })
4354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
4360
4355
  ] })
4361
4356
  ] }),
4362
4357
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -4369,13 +4364,13 @@ function SolanaConfirmStep({
4369
4364
  children: "$0.04"
4370
4365
  }
4371
4366
  ),
4372
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMIMRASDcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.InfoIcon, {}) }) })
4367
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, {}) }) })
4373
4368
  ] })
4374
4369
  ] })
4375
4370
  ] }),
4376
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
4371
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
4377
4372
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4378
- _chunkVN4BLZYCcjs.Button,
4373
+ _chunkPUJHXHRAcjs.Button,
4379
4374
  {
4380
4375
  onClick: handleConfirm,
4381
4376
  loading: isSubmitting,
@@ -4386,7 +4381,7 @@ function SolanaConfirmStep({
4386
4381
  }
4387
4382
  )
4388
4383
  ] }),
4389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
4384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4390
4385
  ] });
4391
4386
  }
4392
4387
 
@@ -4395,23 +4390,25 @@ function SolanaConfirmStep({
4395
4390
  function DappImportAssetSelectStep({
4396
4391
  sourceLabel,
4397
4392
  assets,
4393
+ incompleteSummary,
4398
4394
  onSelect
4399
4395
  }) {
4400
4396
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4401
4397
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4402
4398
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4403
- _chunkVN4BLZYCcjs.BodyHeader,
4399
+ _chunkPUJHXHRAcjs.BodyHeader,
4404
4400
  {
4405
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}),
4401
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
4406
4402
  title: `Transfer from ${sourceLabel}`,
4407
4403
  subtitle: "Pick the balance to import"
4408
4404
  }
4409
4405
  ),
4406
+ incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
4410
4407
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
4411
- const tokenAmount = asset.balance ? _chunkVN4BLZYCcjs.tokenFormatter.format(
4408
+ const tokenAmount = asset.balance ? _chunkPUJHXHRAcjs.tokenFormatter.format(
4412
4409
  Number(asset.balance) / 10 ** asset.decimals
4413
4410
  ) : "0";
4414
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkVN4BLZYCcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
4411
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
4415
4412
  const assetIcon = asset.icon;
4416
4413
  const chainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, asset.chainId);
4417
4414
  const badge = _chunkH577RJN5cjs.getChainBadge.call(void 0, asset.chainId);
@@ -4424,14 +4421,14 @@ function DappImportAssetSelectStep({
4424
4421
  children: [
4425
4422
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4426
4423
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4427
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4428
- _chunkVN4BLZYCcjs.TokenIcon,
4424
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4425
+ _chunkPUJHXHRAcjs.TokenIcon,
4429
4426
  {
4430
4427
  symbol: asset.symbol,
4431
4428
  fallback: asset.symbol.slice(0, 4)
4432
4429
  }
4433
4430
  ) }),
4434
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4431
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4435
4432
  "span",
4436
4433
  {
4437
4434
  className: "rs-asset-chain-badge",
@@ -4445,7 +4442,8 @@ function DappImportAssetSelectStep({
4445
4442
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
4446
4443
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
4447
4444
  "on ",
4448
- asset.sourceLabel
4445
+ asset.sourceLabel,
4446
+ asset.qualifier ? ` \xB7 ${asset.qualifier}` : ""
4449
4447
  ] })
4450
4448
  ] }),
4451
4449
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -4462,7 +4460,7 @@ function DappImportAssetSelectStep({
4462
4460
  );
4463
4461
  }) })
4464
4462
  ] }),
4465
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
4463
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4466
4464
  ] });
4467
4465
  }
4468
4466
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -4484,7 +4482,7 @@ function describeRow(status, comingSoon) {
4484
4482
  }
4485
4483
  if (status.enabled) {
4486
4484
  return {
4487
- subtitle: status.balanceUsd > 0 ? _chunkVN4BLZYCcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
4485
+ subtitle: status.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
4488
4486
  disabled: false,
4489
4487
  busy: false
4490
4488
  };
@@ -4507,9 +4505,9 @@ function DappImportSelectStep({
4507
4505
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4508
4506
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4509
4507
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4510
- _chunkVN4BLZYCcjs.BodyHeader,
4508
+ _chunkPUJHXHRAcjs.BodyHeader,
4511
4509
  {
4512
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.MigrateAssetsIcon, {}),
4510
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.MigrateAssetsIcon, {}),
4513
4511
  title: "Migrate assets",
4514
4512
  subtitle: "Select a position to migrate"
4515
4513
  }
@@ -4521,13 +4519,13 @@ function DappImportSelectStep({
4521
4519
  Boolean(brand.comingSoon)
4522
4520
  );
4523
4521
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4524
- _chunkT7LGQFP3cjs.ListRow,
4522
+ _chunkVTVOHNXMcjs.ListRow,
4525
4523
  {
4526
4524
  leadingMedia: brand.iconUrl,
4527
4525
  title: brand.label,
4528
4526
  subtitle,
4529
4527
  disabled,
4530
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
4528
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
4531
4529
  onClick: () => {
4532
4530
  if (status === "needs-connect") {
4533
4531
  _optionalChain([onRequestConnect, 'optionalCall', _124 => _124()]);
@@ -4540,7 +4538,7 @@ function DappImportSelectStep({
4540
4538
  );
4541
4539
  }) })
4542
4540
  ] }),
4543
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
4541
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4544
4542
  ] });
4545
4543
  }
4546
4544
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -4557,9 +4555,9 @@ function DappImportAssetSelectSkeleton({
4557
4555
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
4558
4556
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4559
4557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4560
- _chunkVN4BLZYCcjs.BodyHeader,
4558
+ _chunkPUJHXHRAcjs.BodyHeader,
4561
4559
  {
4562
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.WalletIcon, {}),
4560
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
4563
4561
  title: `Transfer from ${sourceLabel}`,
4564
4562
  subtitle: "Pick the balance to import"
4565
4563
  }
@@ -4597,13 +4595,13 @@ function DappImportAssetSelectSkeleton({
4597
4595
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
4598
4596
  }
4599
4597
  ) }),
4600
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
4598
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4601
4599
  ] });
4602
4600
  }
4603
4601
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
4604
4602
 
4605
4603
  // src/core/fiat-methods.ts
4606
- var REGIONAL_METHODS_FALLBACK_DELAY_MS = 500;
4604
+ var REGIONAL_METHODS_TIMEOUT_MS = 3e3;
4607
4605
  var BUILT_IN_ICON_METHODS = /* @__PURE__ */ new Set([
4608
4606
  "creditcard",
4609
4607
  "bank-transfer",
@@ -4659,6 +4657,188 @@ function composeFiatMethods(regional, fallbackMethods) {
4659
4657
  };
4660
4658
  }
4661
4659
 
4660
+ // src/core/dapp-imports/balance-source.ts
4661
+ function dappImportBalanceSource(asset) {
4662
+ if (!isDappImportAsset(asset)) return {};
4663
+ if (asset.balanceAddress) return { balanceAddress: asset.balanceAddress };
4664
+ if (asset.balance === void 0) return {};
4665
+ try {
4666
+ return { declaredBalance: BigInt(asset.balance) };
4667
+ } catch (e30) {
4668
+ return {};
4669
+ }
4670
+ }
4671
+
4672
+ // src/core/dapp-imports/aave/index.ts
4673
+ var PROVIDER_ID = "aave";
4674
+ var SOURCE_LABEL = "Aave";
4675
+ var POLICY_REFUSED = [
4676
+ "below_deposit_floor",
4677
+ "deposit_not_whitelisted"
4678
+ ];
4679
+ var aaveProvider = {
4680
+ id: PROVIDER_ID,
4681
+ sourceLabel: SOURCE_LABEL,
4682
+ async fetchAvailability({ eoa, backend, signal }) {
4683
+ if (!backend) {
4684
+ throw new Error("Aave positions require a backend connection");
4685
+ }
4686
+ const response = await backend.getPositions(eoa);
4687
+ if (_optionalChain([signal, 'optionalAccess', _125 => _125.aborted])) return null;
4688
+ const assets = toImportableAssets(response.positions);
4689
+ const failures = _nullishCoalesce(response.failures, () => ( []));
4690
+ if (assets.length === 0) {
4691
+ if (failures.length > 0) {
4692
+ throw new Error(
4693
+ `Could not read Aave positions: ${failures.map((failure) => failure.reason).join("; ")}`
4694
+ );
4695
+ }
4696
+ return null;
4697
+ }
4698
+ const availability = {
4699
+ providerId: PROVIDER_ID,
4700
+ // Deliberately the sum over importable assets rather than
4701
+ // `response.totalUsd`: the latter counts positions this flow filters out,
4702
+ // so using it would show a balance the user then cannot find.
4703
+ totalUsd: assets.reduce((sum, asset) => sum + (_nullishCoalesce(asset.balanceUsd, () => ( 0))), 0),
4704
+ assets,
4705
+ // Some markets read, some did not. Erroring would discard positions the
4706
+ // user can migrate right now — and with ~29 markets on a keyless API, one
4707
+ // failing is the expected case, so erroring would be the normal outcome.
4708
+ // The list therefore stands, marked as a floor. The upstream reason names
4709
+ // an internal market, so it is summarised rather than surfaced.
4710
+ ...failures.length > 0 ? {
4711
+ incomplete: {
4712
+ summary: failures.length === 1 ? "One Aave market couldn't be loaded, so a position may be missing." : `${failures.length} Aave markets couldn't be loaded, so positions may be missing.`
4713
+ }
4714
+ } : {}
4715
+ };
4716
+ return availability;
4717
+ },
4718
+ async executeTransfer({ walletClient, recipient, asset, amount, backend }) {
4719
+ if (!backend) {
4720
+ throw new Error("Aave withdrawals require a backend connection");
4721
+ }
4722
+ const metadata = asset.providerMetadata;
4723
+ const account = walletClient.account;
4724
+ const chain = walletClient.chain;
4725
+ if (!account || !chain) {
4726
+ throw new Error("Wallet not connected");
4727
+ }
4728
+ if (chain.id !== metadata.chainId) {
4729
+ throw new Error(
4730
+ `Switch to ${metadata.marketName} chain (${metadata.chainId}) to sign`
4731
+ );
4732
+ }
4733
+ const prepared = await backend.prepareUnwind({
4734
+ address: account.address,
4735
+ // The backend resolves the recipient from this account rather than
4736
+ // trusting a supplied address. `amount` is always explicit — expressing
4737
+ // "everything" is the backend's call, since only it knows whether sweeping
4738
+ // accrued interest could push the delivered amount past a whitelist
4739
+ // ceiling and get the proceeds rejected after the withdraw succeeded.
4740
+ account: recipient,
4741
+ market: metadata.market,
4742
+ chainId: metadata.chainId,
4743
+ asset: metadata.asset,
4744
+ amount: amount.toString()
4745
+ });
4746
+ if (prepared.recipient.toLowerCase() !== recipient.toLowerCase()) {
4747
+ throw new Error(
4748
+ "Aave withdrawal would send funds to an unexpected address"
4749
+ );
4750
+ }
4751
+ if (prepared.transaction.chainId !== metadata.chainId) {
4752
+ throw new Error("Aave withdrawal was prepared for a different chain");
4753
+ }
4754
+ const txHash = await walletClient.sendTransaction({
4755
+ account,
4756
+ chain,
4757
+ to: prepared.transaction.to,
4758
+ data: prepared.transaction.data,
4759
+ value: BigInt(prepared.transaction.value)
4760
+ });
4761
+ return {
4762
+ txHash,
4763
+ // Aave pays out the underlying straight to the deposit address — no
4764
+ // unwrap, no swap, so what arrives is what was supplied.
4765
+ sourceToken: metadata.asset,
4766
+ sourceSymbol: asset.symbol,
4767
+ sourceDecimals: asset.decimals
4768
+ };
4769
+ }
4770
+ };
4771
+ function toImportableAssets(positions) {
4772
+ const assets = [];
4773
+ for (const position of positions) {
4774
+ const chainId = _chunkH577RJN5cjs.parseEvmChainId.call(void 0, position.chain);
4775
+ if (chainId === null) continue;
4776
+ if (!_chunkH577RJN5cjs.CHAIN_BY_ID[chainId]) continue;
4777
+ if (BigInt(position.maxWithdrawable) <= 0n) continue;
4778
+ if (position.constraints.some((c) => POLICY_REFUSED.includes(c))) continue;
4779
+ assets.push(buildAsset(position, chainId));
4780
+ }
4781
+ return qualifyAmbiguousMarkets(assets);
4782
+ }
4783
+ function buildAsset(position, chainId) {
4784
+ const { asset, market } = position;
4785
+ const token = asset.address.toLowerCase();
4786
+ const metadata = {
4787
+ market: market.address,
4788
+ marketName: market.name,
4789
+ chainId,
4790
+ asset: asset.address
4791
+ };
4792
+ return {
4793
+ // Market-keyed, so one chain holding the same token in two markets yields
4794
+ // two distinct rows rather than one that silently shadows the other.
4795
+ id: `aave:${chainId}:${market.address.toLowerCase()}:${token}`,
4796
+ chainId,
4797
+ token,
4798
+ symbol: asset.symbol,
4799
+ // The market name, not a token description: it is what tells four Aave v3
4800
+ // markets on Ethereum apart.
4801
+ name: market.name,
4802
+ decimals: asset.decimals,
4803
+ // `maxWithdrawable`, NOT the supplied balance. The amount selector lets the
4804
+ // user pick up to this, and seeding it with the supplied balance would let
4805
+ // them choose above the cap and sign a withdraw the pool rejects.
4806
+ balance: position.maxWithdrawable,
4807
+ balanceUsd: withdrawableUsd(position),
4808
+ source: PROVIDER_ID,
4809
+ sourceLabel: SOURCE_LABEL,
4810
+ reviewLabel: `You withdraw ${asset.symbol} from Aave`,
4811
+ // Aave sends the underlying itself to the deposit address, so the token the
4812
+ // orchestrator sees land is the same one and on the same chain.
4813
+ depositToken: token,
4814
+ depositChainId: chainId,
4815
+ providerMetadata: metadata
4816
+ };
4817
+ }
4818
+ function qualifyAmbiguousMarkets(assets) {
4819
+ const counts = /* @__PURE__ */ new Map();
4820
+ for (const asset of assets) {
4821
+ const key = `${asset.chainId}:${asset.token}`;
4822
+ counts.set(key, (_nullishCoalesce(counts.get(key), () => ( 0))) + 1);
4823
+ }
4824
+ return assets.map(
4825
+ (asset) => (_nullishCoalesce(counts.get(`${asset.chainId}:${asset.token}`), () => ( 0))) > 1 ? {
4826
+ ...asset,
4827
+ qualifier: asset.providerMetadata.marketName
4828
+ } : asset
4829
+ );
4830
+ }
4831
+ function withdrawableUsd(position) {
4832
+ const amount = BigInt(position.amount);
4833
+ const withdrawable = BigInt(position.maxWithdrawable);
4834
+ if (amount === 0n) return 0;
4835
+ if (withdrawable === amount) return position.usdValue;
4836
+ const SCALE = 1000000n;
4837
+ const ratio = Number(withdrawable * SCALE / amount) / Number(SCALE);
4838
+ const usd = position.usdValue * ratio;
4839
+ return Number.isFinite(usd) ? usd : 0;
4840
+ }
4841
+
4662
4842
  // src/core/dapp-imports/polymarket/index.ts
4663
4843
 
4664
4844
 
@@ -4829,44 +5009,43 @@ function buildPusdUnwrapCalls(recipient, amount) {
4829
5009
  }
4830
5010
 
4831
5011
  // src/core/dapp-imports/polymarket/index.ts
4832
- var PROVIDER_ID = "polymarket";
5012
+ var PROVIDER_ID2 = "polymarket";
4833
5013
  var polymarketProvider = {
4834
- id: PROVIDER_ID,
5014
+ id: PROVIDER_ID2,
4835
5015
  sourceLabel: "Polymarket",
4836
- chainId: _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID,
4837
5016
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4838
5017
  const proxyWallet = await _chunkYEBXUUH3cjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4839
5018
  if (!proxyWallet) return null;
4840
- if (_optionalChain([signal, 'optionalAccess', _125 => _125.aborted])) return null;
5019
+ if (_optionalChain([signal, 'optionalAccess', _126 => _126.aborted])) return null;
4841
5020
  const polygonClient = getPublicClient2(_chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID);
4842
5021
  if (!polygonClient) return null;
4843
5022
  const balances = await _chunkYEBXUUH3cjs.readPolymarketBalances.call(void 0, {
4844
5023
  publicClient: polygonClient,
4845
5024
  proxyWallet
4846
5025
  });
4847
- if (_optionalChain([signal, 'optionalAccess', _126 => _126.aborted])) return null;
5026
+ if (_optionalChain([signal, 'optionalAccess', _127 => _127.aborted])) return null;
4848
5027
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
4849
5028
  const walletKind = await detectPolymarketWalletKind({
4850
5029
  publicClient: polygonClient,
4851
5030
  proxyWallet,
4852
5031
  eoa
4853
5032
  });
4854
- if (_optionalChain([signal, 'optionalAccess', _127 => _127.aborted])) return null;
5033
+ if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4855
5034
  if (!walletKind) return null;
4856
5035
  const assets = [];
4857
5036
  if (balances.pusd > 0n) {
4858
5037
  assets.push(
4859
- buildAsset({ tokenKind: "pusd", proxyWallet, walletKind, balance: balances.pusd })
5038
+ buildAsset2({ tokenKind: "pusd", proxyWallet, walletKind, balance: balances.pusd })
4860
5039
  );
4861
5040
  }
4862
5041
  if (balances.usdce > 0n) {
4863
5042
  assets.push(
4864
- buildAsset({ tokenKind: "usdce", proxyWallet, walletKind, balance: balances.usdce })
5043
+ buildAsset2({ tokenKind: "usdce", proxyWallet, walletKind, balance: balances.usdce })
4865
5044
  );
4866
5045
  }
4867
5046
  const totalUsd = assets.reduce((sum, a) => sum + (_nullishCoalesce(a.balanceUsd, () => ( 0))), 0);
4868
5047
  const availability = {
4869
- providerId: PROVIDER_ID,
5048
+ providerId: PROVIDER_ID2,
4870
5049
  totalUsd,
4871
5050
  assets
4872
5051
  };
@@ -4914,7 +5093,7 @@ var polymarketProvider = {
4914
5093
  };
4915
5094
  }
4916
5095
  };
4917
- function buildAsset(params) {
5096
+ function buildAsset2(params) {
4918
5097
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4919
5098
  const isPusd = tokenKind === "pusd";
4920
5099
  const tokenAddress = isPusd ? _chunkYEBXUUH3cjs.POLYMARKET_PUSD_ADDRESS : _chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS;
@@ -4931,8 +5110,11 @@ function buildAsset(params) {
4931
5110
  decimals: 6,
4932
5111
  balance: balance.toString(),
4933
5112
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
4934
- source: PROVIDER_ID,
5113
+ source: PROVIDER_ID2,
4935
5114
  sourceLabel: "Polymarket",
5115
+ // The proxy wallet really does hold this ERC-20, so the amount step reads it
5116
+ // live rather than trusting the figure from the availability fetch.
5117
+ balanceAddress: proxyWallet,
4936
5118
  reviewLabel: isPusd ? "You send pUSD from Polymarket" : "You send USDC.e from Polymarket",
4937
5119
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4938
5120
  // arrives at the smart account, so it's also what the orchestrator
@@ -4944,7 +5126,10 @@ function buildAsset(params) {
4944
5126
  }
4945
5127
 
4946
5128
  // src/core/dapp-imports/registry.ts
4947
- var DAPP_IMPORT_PROVIDERS = [polymarketProvider];
5129
+ var DAPP_IMPORT_PROVIDERS = [
5130
+ polymarketProvider,
5131
+ aaveProvider
5132
+ ];
4948
5133
  function getEnabledProviders(config) {
4949
5134
  if (!config) return [];
4950
5135
  return DAPP_IMPORT_PROVIDERS.filter(
@@ -4956,7 +5141,7 @@ function getEnabledProviders(config) {
4956
5141
  function computeDappImportStatus(providerId, inputs) {
4957
5142
  const { owner, availability, availabilityOwner, setup } = inputs;
4958
5143
  if (!owner) return "needs-connect";
4959
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _128 => _128.toLowerCase, 'call', _129 => _129()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5144
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _129 => _129.toLowerCase, 'call', _130 => _130()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4960
5145
  if (entry === "loading" || entry === void 0) return "loading";
4961
5146
  if (entry === "error") {
4962
5147
  return {
@@ -5482,7 +5667,7 @@ function applyAction(state, action) {
5482
5667
  totalUsd: null,
5483
5668
  // Keep any prior chains visible so the cluster does not flicker
5484
5669
  // empty across a refresh.
5485
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _130 => _130.chainIds]), () => ( []))
5670
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _131 => _131.chainIds]), () => ( []))
5486
5671
  }
5487
5672
  }
5488
5673
  }
@@ -5647,7 +5832,7 @@ function applyAction(state, action) {
5647
5832
  flow: { ...state.flow, step: "processing" }
5648
5833
  };
5649
5834
  case "processing/quote-loaded":
5650
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _131 => _131.processing, 'access', _132 => _132.txHash, 'optionalAccess', _133 => _133.toLowerCase, 'call', _134 => _134()]) !== action.txHash.toLowerCase()) {
5835
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _132 => _132.processing, 'access', _133 => _133.txHash, 'optionalAccess', _134 => _134.toLowerCase, 'call', _135 => _135()]) !== action.txHash.toLowerCase()) {
5651
5836
  return state;
5652
5837
  }
5653
5838
  return {
@@ -5980,7 +6165,7 @@ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
5980
6165
  async function fetchPinnedQuote(params) {
5981
6166
  try {
5982
6167
  if (BigInt(params.amount) <= 0n) return void 0;
5983
- } catch (e30) {
6168
+ } catch (e31) {
5984
6169
  return void 0;
5985
6170
  }
5986
6171
  let timeoutId;
@@ -5997,7 +6182,7 @@ async function fetchPinnedQuote(params) {
5997
6182
  })
5998
6183
  ]);
5999
6184
  return _nullishCoalesce(quote, () => ( void 0));
6000
- } catch (e31) {
6185
+ } catch (e32) {
6001
6186
  return void 0;
6002
6187
  } finally {
6003
6188
  if (timeoutId !== void 0) clearTimeout(timeoutId);
@@ -6213,11 +6398,11 @@ function DepositFlow({
6213
6398
  onError,
6214
6399
  debug
6215
6400
  }) {
6216
- const rpcUrls = _chunkVN4BLZYCcjs.useRpcUrls.call(void 0, );
6217
- const onStepChangeRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onStepChange);
6218
- const onEventRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onEvent);
6219
- const onLifecycleRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onLifecycle);
6220
- const onErrorRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onError);
6401
+ const rpcUrls = _chunkPUJHXHRAcjs.useRpcUrls.call(void 0, );
6402
+ const onStepChangeRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onStepChange);
6403
+ const onEventRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onEvent);
6404
+ const onLifecycleRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onLifecycle);
6405
+ const onErrorRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onError);
6221
6406
  const storeApi = useDepositStoreApi();
6222
6407
  const flowSlice = useDepositStore((s) => s.flow);
6223
6408
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -6234,13 +6419,13 @@ function DepositFlow({
6234
6419
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
6235
6420
  const logFlow = _react.useCallback.call(void 0,
6236
6421
  (message, data) => {
6237
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
6422
+ _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
6238
6423
  },
6239
6424
  [debug]
6240
6425
  );
6241
6426
  const logFlowError = _react.useCallback.call(void 0,
6242
6427
  (message, error, data) => {
6243
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
6428
+ _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
6244
6429
  },
6245
6430
  [debug]
6246
6431
  );
@@ -6264,12 +6449,12 @@ function DepositFlow({
6264
6449
  };
6265
6450
  }, [enableSwappedPreconnect]);
6266
6451
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
6267
- if (!_optionalChain([walletClientProp, 'optionalAccess', _135 => _135.switchChain])) return void 0;
6452
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _136 => _136.switchChain])) return void 0;
6268
6453
  return async (chainId) => {
6269
- await _optionalChain([walletClientProp, 'access', _136 => _136.switchChain, 'optionalCall', _137 => _137({ id: chainId })]);
6454
+ await _optionalChain([walletClientProp, 'access', _137 => _137.switchChain, 'optionalCall', _138 => _138({ id: chainId })]);
6270
6455
  };
6271
6456
  }, [walletClientProp]);
6272
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _138 => _138.account, 'optionalAccess', _139 => _139.address]), () => ( null));
6457
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _139 => _139.account, 'optionalAccess', _140 => _140.address]), () => ( null));
6273
6458
  const walletOptions = _react.useMemo.call(void 0, () => {
6274
6459
  const options = [];
6275
6460
  const seen = /* @__PURE__ */ new Set();
@@ -6283,7 +6468,7 @@ function DepositFlow({
6283
6468
  });
6284
6469
  seen.add(id);
6285
6470
  }
6286
- if (_optionalChain([reownWallet, 'optionalAccess', _140 => _140.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress) {
6471
+ if (_optionalChain([reownWallet, 'optionalAccess', _141 => _141.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress) {
6287
6472
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
6288
6473
  if (!seen.has(id)) {
6289
6474
  options.push({
@@ -6295,7 +6480,7 @@ function DepositFlow({
6295
6480
  });
6296
6481
  seen.add(id);
6297
6482
  }
6298
- } else if (_optionalChain([reownWallet, 'optionalAccess', _141 => _141.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
6483
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _142 => _142.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
6299
6484
  const id = `evm:${reownWallet.address.toLowerCase()}`;
6300
6485
  if (!seen.has(id)) {
6301
6486
  options.push({
@@ -6311,14 +6496,14 @@ function DepositFlow({
6311
6496
  return options;
6312
6497
  }, [
6313
6498
  connectedWalletAddress,
6314
- _optionalChain([reownWallet, 'optionalAccess', _142 => _142.address]),
6315
- _optionalChain([reownWallet, 'optionalAccess', _143 => _143.isConnected]),
6316
- _optionalChain([reownWallet, 'optionalAccess', _144 => _144.walletClient]),
6317
- _optionalChain([reownWallet, 'optionalAccess', _145 => _145.publicClient]),
6318
- _optionalChain([reownWallet, 'optionalAccess', _146 => _146.icon]),
6319
- _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isSolana]),
6320
- _optionalChain([reownWallet, 'optionalAccess', _148 => _148.solanaAddress]),
6321
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.caipAddress])
6499
+ _optionalChain([reownWallet, 'optionalAccess', _143 => _143.address]),
6500
+ _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]),
6501
+ _optionalChain([reownWallet, 'optionalAccess', _145 => _145.walletClient]),
6502
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.publicClient]),
6503
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.icon]),
6504
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.isSolana]),
6505
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.solanaAddress]),
6506
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.caipAddress])
6322
6507
  ]);
6323
6508
  const offeredFiatMethods = _react.useMemo.call(void 0,
6324
6509
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -6338,11 +6523,11 @@ function DepositFlow({
6338
6523
  hasEnabledAssetMigration
6339
6524
  ].filter(Boolean).length;
6340
6525
  const canAutoLock = Boolean(
6341
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _150 => _150.account]) && !reownWallet && enabledFeatureCount === 1
6526
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _151 => _151.account]) && !reownWallet && enabledFeatureCount === 1
6342
6527
  );
6343
6528
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
6344
6529
  const hasReownSession = Boolean(
6345
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _152 => _152.address])
6530
+ _optionalChain([reownWallet, 'optionalAccess', _152 => _152.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _153 => _153.address])
6346
6531
  );
6347
6532
  const isDappImportWalletHydrating = Boolean(
6348
6533
  hasWalletClientProp && walletClientProp === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -6372,7 +6557,7 @@ function DepositFlow({
6372
6557
  return;
6373
6558
  }
6374
6559
  let cancelled = false;
6375
- _chunkNMIMRASDcjs.fetchTokenPriceUsd.call(void 0, service, {
6560
+ _chunkA42XAHIBcjs.fetchTokenPriceUsd.call(void 0, service, {
6376
6561
  chainId: targetChain,
6377
6562
  address: targetToken,
6378
6563
  symbol: targetSymbol
@@ -6389,11 +6574,11 @@ function DepositFlow({
6389
6574
  return null;
6390
6575
  }
6391
6576
  if (canAutoLock) {
6392
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _153 => _153.chain, 'optionalAccess', _154 => _154.id]), () => ( setupChainId));
6577
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _154 => _154.chain, 'optionalAccess', _155 => _155.id]), () => ( setupChainId));
6393
6578
  return {
6394
6579
  ownerAddress: walletClientProp.account.address,
6395
6580
  walletClient: walletClientProp,
6396
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkNMIMRASDcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6581
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6397
6582
  switchChain: dappSwitchChain
6398
6583
  };
6399
6584
  }
@@ -6405,20 +6590,20 @@ function DepositFlow({
6405
6590
  if (selectedOption.kind === "solana") {
6406
6591
  return null;
6407
6592
  }
6408
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _155 => _155.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6409
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _156 => _156.chain, 'optionalAccess', _157 => _157.id]), () => ( setupChainId));
6593
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _156 => _156.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6594
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
6410
6595
  return {
6411
6596
  ownerAddress: walletClientProp.account.address,
6412
6597
  walletClient: walletClientProp,
6413
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkNMIMRASDcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6598
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6414
6599
  switchChain: dappSwitchChain
6415
6600
  };
6416
6601
  }
6417
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _158 => _158.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6602
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6418
6603
  return {
6419
6604
  ownerAddress: reownWallet.address,
6420
6605
  walletClient: reownWallet.walletClient,
6421
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkNMIMRASDcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
6606
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
6422
6607
  switchChain: reownWallet.switchChain
6423
6608
  };
6424
6609
  }
@@ -6471,35 +6656,35 @@ function DepositFlow({
6471
6656
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
6472
6657
  if (!selectedWalletId) return null;
6473
6658
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
6474
- if (_optionalChain([opt, 'optionalAccess', _159 => _159.kind]) === "external" && opt.address) {
6659
+ if (_optionalChain([opt, 'optionalAccess', _160 => _160.kind]) === "external" && opt.address) {
6475
6660
  return opt.address;
6476
6661
  }
6477
- if (_optionalChain([opt, 'optionalAccess', _160 => _160.kind]) === "connected" && opt.address) {
6662
+ if (_optionalChain([opt, 'optionalAccess', _161 => _161.kind]) === "connected" && opt.address) {
6478
6663
  return opt.address;
6479
6664
  }
6480
6665
  return null;
6481
6666
  }, [selectedWalletId, walletOptions]);
6482
6667
  const dappImportOwner = _react.useMemo.call(void 0, () => {
6483
6668
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
6484
- if (_optionalChain([reownWallet, 'optionalAccess', _161 => _161.address]) && reownWallet.isConnected) {
6669
+ if (_optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && reownWallet.isConnected) {
6485
6670
  return reownWallet.address;
6486
6671
  }
6487
6672
  if (connectedWalletAddress) return connectedWalletAddress;
6488
6673
  return null;
6489
6674
  }, [
6490
6675
  selectedEvmWalletOwner,
6491
- _optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]),
6492
- _optionalChain([reownWallet, 'optionalAccess', _163 => _163.isConnected]),
6676
+ _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]),
6677
+ _optionalChain([reownWallet, 'optionalAccess', _164 => _164.isConnected]),
6493
6678
  connectedWalletAddress
6494
6679
  ]);
6495
6680
  const activeOwner = _react.useMemo.call(void 0,
6496
6681
  () => resolveOwnerForMode(flowMode, {
6497
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _164 => _164.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
6682
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _165 => _165.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
6498
6683
  dappImportOwner
6499
6684
  }),
6500
6685
  [
6501
6686
  flowMode,
6502
- _optionalChain([signerContext, 'optionalAccess', _165 => _165.ownerAddress]),
6687
+ _optionalChain([signerContext, 'optionalAccess', _166 => _166.ownerAddress]),
6503
6688
  canAutoLock,
6504
6689
  connectedWalletAddress,
6505
6690
  selectedEvmWalletOwner,
@@ -6516,7 +6701,7 @@ function DepositFlow({
6516
6701
  ].join(":");
6517
6702
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
6518
6703
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
6519
- _optionalChain([onLifecycleRef, 'access', _166 => _166.current, 'optionalCall', _167 => _167({
6704
+ _optionalChain([onLifecycleRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168({
6520
6705
  type: "smart-account-changed",
6521
6706
  evm: activeEntry.smartAccount,
6522
6707
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -6544,7 +6729,7 @@ function DepositFlow({
6544
6729
  return;
6545
6730
  }
6546
6731
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
6547
- _optionalChain([onLifecycleRef, 'access', _168 => _168.current, 'optionalCall', _169 => _169({
6732
+ _optionalChain([onLifecycleRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170({
6548
6733
  type: "connected",
6549
6734
  address: activeOwner,
6550
6735
  smartAccount: activeEntry.smartAccount
@@ -6589,7 +6774,7 @@ function DepositFlow({
6589
6774
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
6590
6775
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
6591
6776
  _react.useEffect.call(void 0, () => {
6592
- _optionalChain([onStepChangeRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171(currentBackHandler, currentScreen)]);
6777
+ _optionalChain([onStepChangeRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172(currentBackHandler, currentScreen)]);
6593
6778
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
6594
6779
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
6595
6780
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -6599,7 +6784,7 @@ function DepositFlow({
6599
6784
  modalContentElRef.current = mc;
6600
6785
  const ro = new ResizeObserver((entries) => {
6601
6786
  for (const entry of entries) {
6602
- const border = _optionalChain([entry, 'access', _172 => _172.borderBoxSize, 'optionalAccess', _173 => _173[0], 'optionalAccess', _174 => _174.blockSize]);
6787
+ const border = _optionalChain([entry, 'access', _173 => _173.borderBoxSize, 'optionalAccess', _174 => _174[0], 'optionalAccess', _175 => _175.blockSize]);
6603
6788
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
6604
6789
  }
6605
6790
  });
@@ -6640,7 +6825,7 @@ function DepositFlow({
6640
6825
  }
6641
6826
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
6642
6827
  if (effectiveStep.type === "select-asset") {
6643
- _optionalChain([onEventRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176({
6828
+ _optionalChain([onEventRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177({
6644
6829
  type: "deposit_modal_connected_wallet_select_source_open",
6645
6830
  total_balance_in_external_wallet: totalBalanceUsd,
6646
6831
  pred_balance: totalBalanceUsd
@@ -6648,7 +6833,7 @@ function DepositFlow({
6648
6833
  } else if (effectiveStep.type === "deposit-address") {
6649
6834
  const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
6650
6835
  const tokenSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6651
- _optionalChain([onEventRef, 'access', _177 => _177.current, 'optionalCall', _178 => _178({
6836
+ _optionalChain([onEventRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
6652
6837
  type: "deposit_modal_transfer_crypto_open",
6653
6838
  default_chain: chainName,
6654
6839
  default_token: tokenSymbol,
@@ -6656,7 +6841,7 @@ function DepositFlow({
6656
6841
  })]);
6657
6842
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6658
6843
  const receiveSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6659
- _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
6844
+ _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
6660
6845
  type: "deposit_modal_connected_wallet_enter_value_open",
6661
6846
  send_token: stepSendToken,
6662
6847
  receive_token: receiveSymbol,
@@ -6689,7 +6874,7 @@ function DepositFlow({
6689
6874
  targetToken
6690
6875
  ]);
6691
6876
  _react.useEffect.call(void 0, () => {
6692
- _optionalChain([onLifecycleRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
6877
+ _optionalChain([onLifecycleRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
6693
6878
  type: "balance-changed",
6694
6879
  totalUsd: totalBalanceUsd
6695
6880
  })]);
@@ -6705,7 +6890,7 @@ function DepositFlow({
6705
6890
  const handleConfirmWallet = _react.useCallback.call(void 0,
6706
6891
  (walletId) => {
6707
6892
  const selectedOption = walletOptions.find((o) => o.id === walletId);
6708
- const mode = _optionalChain([selectedOption, 'optionalAccess', _183 => _183.kind]) === "solana" ? "solana-wallet" : "wallet";
6893
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _184 => _184.kind]) === "solana" ? "solana-wallet" : "wallet";
6709
6894
  storeApi.dispatch({
6710
6895
  type: "connect/wallet-confirmed",
6711
6896
  walletId,
@@ -6715,7 +6900,7 @@ function DepositFlow({
6715
6900
  [walletOptions, storeApi]
6716
6901
  );
6717
6902
  const isSolanaWalletConnected = Boolean(
6718
- _optionalChain([reownWallet, 'optionalAccess', _184 => _184.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _185 => _185.isSolana])
6903
+ _optionalChain([reownWallet, 'optionalAccess', _185 => _185.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _186 => _186.isSolana])
6719
6904
  );
6720
6905
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
6721
6906
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -6732,7 +6917,7 @@ function DepositFlow({
6732
6917
  const owner = dappImportOwner;
6733
6918
  if (owner) {
6734
6919
  const wallet = walletOptions.find(
6735
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _186 => _186.toLowerCase, 'call', _187 => _187()]) === owner.toLowerCase()
6920
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _187 => _187.toLowerCase, 'call', _188 => _188()]) === owner.toLowerCase()
6736
6921
  );
6737
6922
  if (wallet) {
6738
6923
  storeApi.dispatch({
@@ -6773,11 +6958,14 @@ function DepositFlow({
6773
6958
  eoa: dappImportOwner,
6774
6959
  getPublicClient: (chainId) => {
6775
6960
  try {
6776
- return _chunkNMIMRASDcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6777
- } catch (e32) {
6961
+ return _chunkA42XAHIBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6962
+ } catch (e33) {
6778
6963
  return null;
6779
6964
  }
6780
6965
  },
6966
+ // Providers whose positions live behind the Rhinestone API rather than
6967
+ // an RPC (Aave) read them through here.
6968
+ backend: service,
6781
6969
  signal: controller.signal
6782
6970
  }).then((availability) => {
6783
6971
  if (controller.signal.aborted) return;
@@ -6802,7 +6990,8 @@ function DepositFlow({
6802
6990
  enabledDappImportProviders,
6803
6991
  dappImportAttemptNonce,
6804
6992
  storeApi,
6805
- rpcUrls
6993
+ rpcUrls,
6994
+ service
6806
6995
  ]);
6807
6996
  _react.useLayoutEffect.call(void 0, () => {
6808
6997
  if (!initialAssetMigrationProvider) return;
@@ -6862,7 +7051,7 @@ function DepositFlow({
6862
7051
  }, [activeDappImportProviderId, enabledDappImportProviders]);
6863
7052
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
6864
7053
  if (!activeDappImportProviderId) return null;
6865
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _188 => _188.toLowerCase, 'call', _189 => _189()]) !== dappImportOwner.toLowerCase()) {
7054
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _189 => _189.toLowerCase, 'call', _190 => _190()]) !== dappImportOwner.toLowerCase()) {
6866
7055
  return null;
6867
7056
  }
6868
7057
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6903,7 +7092,7 @@ function DepositFlow({
6903
7092
  setup: setupSlice
6904
7093
  });
6905
7094
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6906
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === dappImportOwner.toLowerCase()
7095
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === dappImportOwner.toLowerCase()
6907
7096
  ), () => ( null)) : null;
6908
7097
  const outcome = resolveBootOutcome({
6909
7098
  status,
@@ -6945,7 +7134,7 @@ function DepositFlow({
6945
7134
  if (dappImportOwner) {
6946
7135
  const plan = bootRetryPlan({
6947
7136
  setupStatus: snapshot.setup.status,
6948
- availabilityEntry: _optionalChain([snapshot, 'access', _192 => _192.dappImport, 'access', _193 => _193.availabilityOwner, 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
7137
+ availabilityEntry: _optionalChain([snapshot, 'access', _193 => _193.dappImport, 'access', _194 => _194.availabilityOwner, 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6949
7138
  });
6950
7139
  if (plan.restartSetup) {
6951
7140
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -6994,7 +7183,7 @@ function DepositFlow({
6994
7183
  acceptedExchangeFeeBps: disclosedFeeBps
6995
7184
  });
6996
7185
  } catch (error) {
6997
- if (error instanceof _chunkVN4BLZYCcjs.SwappedConnectFeeChangedError) {
7186
+ if (error instanceof _chunkPUJHXHRAcjs.SwappedConnectFeeChangedError) {
6998
7187
  return error.exchangeFeeBps;
6999
7188
  }
7000
7189
  throw error;
@@ -7002,7 +7191,7 @@ function DepositFlow({
7002
7191
  entry = { smartAccount: owner, response };
7003
7192
  }
7004
7193
  const currentAccount = storeApi.getState().setup.smartAccount;
7005
- if (_optionalChain([currentAccount, 'optionalAccess', _196 => _196.toLowerCase, 'call', _197 => _197()]) !== owner) {
7194
+ if (_optionalChain([currentAccount, 'optionalAccess', _197 => _197.toLowerCase, 'call', _198 => _198()]) !== owner) {
7006
7195
  swappedConnectUrlRef.current.delete(key);
7007
7196
  throw new Error("Deposit account changed. Select your exchange again.");
7008
7197
  }
@@ -7033,7 +7222,7 @@ function DepositFlow({
7033
7222
  );
7034
7223
  }
7035
7224
  swappedConnectUrlRef.current.delete(key);
7036
- const response = _optionalChain([entry, 'optionalAccess', _198 => _198.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
7225
+ const response = _optionalChain([entry, 'optionalAccess', _199 => _199.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
7037
7226
  smartAccount,
7038
7227
  connection,
7039
7228
  acceptedExchangeFeeBps: expectedFeeBps
@@ -7106,9 +7295,6 @@ function DepositFlow({
7106
7295
  acknowledgedConnectFeeRef.current.clear();
7107
7296
  }, [setupSlice.smartAccount]);
7108
7297
  const hasConfiguredFiatMethods = fiatMethods !== void 0;
7109
- const regionalMethodsInteractedRef = _react.useRef.call(void 0, false);
7110
- const regionalMethodsAppliedRef = _react.useRef.call(void 0, false);
7111
- const [regionalMethodsLocked, setRegionalMethodsLocked] = _react.useState.call(void 0, false);
7112
7298
  const [regionalMethods, setRegionalMethods] = _react.useState.call(void 0, {
7113
7299
  status: "loading",
7114
7300
  country: null,
@@ -7118,17 +7304,16 @@ function DepositFlow({
7118
7304
  _react.useEffect.call(void 0, () => {
7119
7305
  if (!fiatEnabled || hasConfiguredFiatMethods) return;
7120
7306
  let cancelled = false;
7121
- regionalMethodsInteractedRef.current = false;
7122
- regionalMethodsAppliedRef.current = false;
7123
- setRegionalMethodsLocked(false);
7124
7307
  setRegionalMethods({
7125
7308
  status: "loading",
7126
7309
  country: null,
7127
7310
  methods: [],
7128
7311
  recommendedMethod: null
7129
7312
  });
7313
+ let settled = false;
7130
7314
  const showFallback = () => {
7131
- if (cancelled) return;
7315
+ if (cancelled || settled) return;
7316
+ settled = true;
7132
7317
  setRegionalMethods({
7133
7318
  status: "error",
7134
7319
  country: null,
@@ -7136,33 +7321,22 @@ function DepositFlow({
7136
7321
  recommendedMethod: null
7137
7322
  });
7138
7323
  };
7139
- const fallbackTimer = setTimeout(
7140
- showFallback,
7141
- REGIONAL_METHODS_FALLBACK_DELAY_MS
7142
- );
7324
+ const timeoutTimer = setTimeout(showFallback, REGIONAL_METHODS_TIMEOUT_MS);
7143
7325
  service.getSwappedPaymentMethods().then((res) => {
7144
- if (cancelled) return;
7145
- clearTimeout(fallbackTimer);
7146
- if (regionalMethodsInteractedRef.current) {
7147
- showFallback();
7148
- return;
7149
- }
7326
+ if (cancelled || settled) return;
7327
+ settled = true;
7328
+ clearTimeout(timeoutTimer);
7150
7329
  setRegionalMethods({ status: "ready", ...res });
7151
7330
  }).catch(() => {
7152
7331
  if (cancelled) return;
7153
- clearTimeout(fallbackTimer);
7332
+ clearTimeout(timeoutTimer);
7154
7333
  showFallback();
7155
7334
  });
7156
7335
  return () => {
7157
7336
  cancelled = true;
7158
- clearTimeout(fallbackTimer);
7337
+ clearTimeout(timeoutTimer);
7159
7338
  };
7160
7339
  }, [fiatEnabled, hasConfiguredFiatMethods, service]);
7161
- _react.useLayoutEffect.call(void 0, () => {
7162
- if (regionalMethods.status === "ready" && !regionalMethodsLocked) {
7163
- regionalMethodsAppliedRef.current = true;
7164
- }
7165
- }, [regionalMethods.status, regionalMethodsLocked]);
7166
7340
  const cashDisplay = _react.useMemo.call(void 0, () => {
7167
7341
  if (!fiatEnabled) return { kind: "hidden" };
7168
7342
  if (hasConfiguredFiatMethods) {
@@ -7174,22 +7348,12 @@ function DepositFlow({
7174
7348
  source: "configured"
7175
7349
  };
7176
7350
  }
7177
- const effectiveRegionalMethods = regionalMethodsLocked ? {
7178
- status: "error",
7179
- country: null,
7180
- methods: [],
7181
- recommendedMethod: null
7182
- } : regionalMethods;
7183
- return composeFiatMethods(
7184
- effectiveRegionalMethods,
7185
- FIAT_ONRAMP_METHODS
7186
- );
7351
+ return composeFiatMethods(regionalMethods, FIAT_ONRAMP_METHODS);
7187
7352
  }, [
7188
7353
  fiatEnabled,
7189
7354
  hasConfiguredFiatMethods,
7190
7355
  offeredFiatMethods,
7191
- regionalMethods,
7192
- regionalMethodsLocked
7356
+ regionalMethods
7193
7357
  ]);
7194
7358
  const lastFiatMethodsRenderedEventRef = _react.useRef.call(void 0, null);
7195
7359
  _react.useEffect.call(void 0, () => {
@@ -7211,17 +7375,12 @@ function DepositFlow({
7211
7375
  source: cashDisplay.source
7212
7376
  });
7213
7377
  }, [cashDisplay, onEvent, onEventRef]);
7214
- const markRegionalMethodsInteracted = _react.useCallback.call(void 0, () => {
7215
- if (regionalMethodsAppliedRef.current) return;
7216
- regionalMethodsInteractedRef.current = true;
7217
- setRegionalMethodsLocked(true);
7218
- }, []);
7219
7378
  const displayedFiatSource = cashDisplay.kind === "list" ? cashDisplay.source : void 0;
7220
7379
  const displayedFiatCountry = cashDisplay.kind === "list" ? cashDisplay.country : null;
7221
7380
  const handleSelectDisplayedFiatMethod = _react.useCallback.call(void 0,
7222
7381
  (method) => {
7223
7382
  if (!displayedFiatSource) return;
7224
- _optionalChain([onEventRef, 'access', _199 => _199.current, 'optionalCall', _200 => _200({
7383
+ _optionalChain([onEventRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
7225
7384
  type: "deposit_modal_fiat_method_click",
7226
7385
  country: displayedFiatCountry,
7227
7386
  payment_method: method,
@@ -7244,7 +7403,7 @@ function DepositFlow({
7244
7403
  [displayedFiatSource, handlePrefetchFiatMethod]
7245
7404
  );
7246
7405
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
7247
- _optionalChain([onLifecycleRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202({
7406
+ _optionalChain([onLifecycleRef, 'access', _202 => _202.current, 'optionalCall', _203 => _203({
7248
7407
  type: "smart-account-changed",
7249
7408
  evm: null,
7250
7409
  solana: null
@@ -7275,17 +7434,17 @@ function DepositFlow({
7275
7434
  forceRegister
7276
7435
  ]
7277
7436
  );
7278
- const desiredSetupRequestKey = _chunkNMIMRASDcjs.computeRequestKey.call(void 0, setupInput);
7437
+ const desiredSetupRequestKey = _chunkA42XAHIBcjs.computeRequestKey.call(void 0, setupInput);
7279
7438
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
7280
7439
  _react.useEffect.call(void 0, () => {
7281
7440
  void (async () => {
7282
- const requestKey = _chunkNMIMRASDcjs.computeRequestKey.call(void 0, setupInput);
7283
- const cacheKey = _chunkNMIMRASDcjs.computeCacheKey.call(void 0, setupInput);
7284
- const cacheable = _chunkNMIMRASDcjs.computeIsCacheable.call(void 0, setupInput);
7441
+ const requestKey = _chunkA42XAHIBcjs.computeRequestKey.call(void 0, setupInput);
7442
+ const cacheKey = _chunkA42XAHIBcjs.computeCacheKey.call(void 0, setupInput);
7443
+ const cacheable = _chunkA42XAHIBcjs.computeIsCacheable.call(void 0, setupInput);
7285
7444
  if (storeApi.getState().setup.requestKey === requestKey) {
7286
7445
  return;
7287
7446
  }
7288
- const dedupedResult = _chunkNMIMRASDcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
7447
+ const dedupedResult = _chunkA42XAHIBcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
7289
7448
  if (dedupedResult) {
7290
7449
  storeApi.dispatch({
7291
7450
  type: "setup/started",
@@ -7311,7 +7470,7 @@ function DepositFlow({
7311
7470
  cacheable
7312
7471
  });
7313
7472
  try {
7314
- const result = await _chunkNMIMRASDcjs.runAccountSetupDeduped.call(void 0,
7473
+ const result = await _chunkA42XAHIBcjs.runAccountSetupDeduped.call(void 0,
7315
7474
  setupInput,
7316
7475
  { service, debug },
7317
7476
  requestKey
@@ -7326,7 +7485,7 @@ function DepositFlow({
7326
7485
  }
7327
7486
  });
7328
7487
  } catch (error) {
7329
- const message = error instanceof _chunkNMIMRASDcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
7488
+ const message = error instanceof _chunkA42XAHIBcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
7330
7489
  storeApi.dispatch({
7331
7490
  type: "setup/failed",
7332
7491
  requestKey,
@@ -7358,11 +7517,11 @@ function DepositFlow({
7358
7517
  return;
7359
7518
  }
7360
7519
  storeApi.dispatch({ type: "portfolio/loading", network, address });
7361
- const requestId = _optionalChain([readPortfolioEntry, 'call', _203 => _203(
7520
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _204 => _204(
7362
7521
  storeApi.getState().portfolio,
7363
7522
  network,
7364
7523
  address
7365
- ), 'optionalAccess', _204 => _204.requestId]);
7524
+ ), 'optionalAccess', _205 => _205.requestId]);
7366
7525
  if (requestId === void 0) return;
7367
7526
  void (async () => {
7368
7527
  try {
@@ -7375,9 +7534,9 @@ function DepositFlow({
7375
7534
  address,
7376
7535
  requestId,
7377
7536
  totalUsd: portfolio.totalUsd,
7378
- chainIds: _chunkVN4BLZYCcjs.chainIdsByValue.call(void 0, portfolio.tokens)
7537
+ chainIds: _chunkPUJHXHRAcjs.chainIdsByValue.call(void 0, portfolio.tokens)
7379
7538
  });
7380
- } catch (e33) {
7539
+ } catch (e34) {
7381
7540
  storeApi.dispatch({
7382
7541
  type: "portfolio/failed",
7383
7542
  network,
@@ -7395,7 +7554,7 @@ function DepositFlow({
7395
7554
  sourceChain: data.sourceChain,
7396
7555
  amount: data.amount
7397
7556
  });
7398
- _optionalChain([onLifecycleRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({ type: "submitted", ...data })]);
7557
+ _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({ type: "submitted", ...data })]);
7399
7558
  },
7400
7559
  [logFlow, onLifecycleRef]
7401
7560
  );
@@ -7459,7 +7618,7 @@ function DepositFlow({
7459
7618
  sourceDecimals: tokenAtSubmit.decimals,
7460
7619
  inputAmountUsd: amountUsd
7461
7620
  });
7462
- _optionalChain([onLifecycleRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
7621
+ _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
7463
7622
  type: "submitted",
7464
7623
  txHash,
7465
7624
  sourceChain: "solana",
@@ -7472,7 +7631,7 @@ function DepositFlow({
7472
7631
  );
7473
7632
  const handleAssetContinue = _react.useCallback.call(void 0,
7474
7633
  (asset) => {
7475
- _optionalChain([onEventRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210({
7634
+ _optionalChain([onEventRef, 'access', _210 => _210.current, 'optionalCall', _211 => _211({
7476
7635
  type: "deposit_modal_connected_wallet_select_source_cta_click",
7477
7636
  total_balance_in_external_wallet: totalBalanceUsd,
7478
7637
  pred_balance: totalBalanceUsd,
@@ -7526,8 +7685,8 @@ function DepositFlow({
7526
7685
  sourceChain: chainId,
7527
7686
  sourceToken: token,
7528
7687
  amount,
7529
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _211 => _211.symbol]),
7530
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _212 => _212.decimals]),
7688
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _212 => _212.symbol]),
7689
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _213 => _213.decimals]),
7531
7690
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
7532
7691
  directTransfer: routed.directTransfer,
7533
7692
  quote
@@ -7567,7 +7726,7 @@ function DepositFlow({
7567
7726
  swappedContext,
7568
7727
  initialEvent: info.initialEvent
7569
7728
  });
7570
- _optionalChain([onLifecycleRef, 'access', _213 => _213.current, 'optionalCall', _214 => _214({
7729
+ _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
7571
7730
  type: "submitted",
7572
7731
  txHash: info.txHash,
7573
7732
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -7595,12 +7754,12 @@ function DepositFlow({
7595
7754
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
7596
7755
  (txHash, sourceChain, amount) => {
7597
7756
  const depositAtSubmit = storeApi.getState().deposit;
7598
- _optionalChain([onLifecycleRef, 'access', _215 => _215.current, 'optionalCall', _216 => _216({
7757
+ _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
7599
7758
  type: "submitted",
7600
7759
  txHash,
7601
7760
  sourceChain,
7602
7761
  amount,
7603
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _217 => _217.selectedAsset, 'optionalAccess', _218 => _218.decimals]),
7762
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _218 => _218.selectedAsset, 'optionalAccess', _219 => _219.decimals]),
7604
7763
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
7605
7764
  })]);
7606
7765
  },
@@ -7609,7 +7768,7 @@ function DepositFlow({
7609
7768
  const handleDepositComplete = _react.useCallback.call(void 0,
7610
7769
  (txHash, destinationTxHash, context) => {
7611
7770
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
7612
- _optionalChain([onLifecycleRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({
7771
+ _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({
7613
7772
  type: "complete",
7614
7773
  txHash,
7615
7774
  destinationTxHash,
@@ -7621,14 +7780,14 @@ function DepositFlow({
7621
7780
  const handleDepositFailed = _react.useCallback.call(void 0,
7622
7781
  (txHash, error) => {
7623
7782
  logFlowError("deposit:failed", error, { txHash });
7624
- _optionalChain([onLifecycleRef, 'access', _221 => _221.current, 'optionalCall', _222 => _222({ type: "failed", txHash, error })]);
7783
+ _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ type: "failed", txHash, error })]);
7625
7784
  },
7626
7785
  [logFlowError, onLifecycleRef]
7627
7786
  );
7628
7787
  const handleError = _react.useCallback.call(void 0,
7629
7788
  (message, code) => {
7630
7789
  logFlowError("flow:error", message, { code });
7631
- _optionalChain([onErrorRef, 'access', _223 => _223.current, 'optionalCall', _224 => _224({ message, code })]);
7790
+ _optionalChain([onErrorRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({ message, code })]);
7632
7791
  },
7633
7792
  [logFlowError, onErrorRef]
7634
7793
  );
@@ -7677,9 +7836,9 @@ function DepositFlow({
7677
7836
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
7678
7837
  state,
7679
7838
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
7680
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _225 => _225.status]), () => ( "loading")),
7681
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _226 => _226.status]) === "ready" ? portfolioEntry.totalUsd : null,
7682
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _227 => _227.chainIds]), () => ( []))
7839
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _226 => _226.status]), () => ( "loading")),
7840
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _227 => _227.status]) === "ready" ? portfolioEntry.totalUsd : null,
7841
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _228 => _228.chainIds]), () => ( []))
7683
7842
  };
7684
7843
  });
7685
7844
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -7695,7 +7854,6 @@ function DepositFlow({
7695
7854
  walletRows,
7696
7855
  defaultMethodTab: flowSlice.methodTab,
7697
7856
  onMethodTabChange: (tab) => storeApi.dispatch({ type: "connect/method-tab-changed", tab }),
7698
- onInteract: fiatEnabled && !hasConfiguredFiatMethods ? markRegionalMethodsInteracted : void 0,
7699
7857
  transferCryptoState,
7700
7858
  transferCryptoErrorReason: _nullishCoalesce(transferCryptoEntry.message, () => ( void 0)),
7701
7859
  onSelectTransferCrypto: (
@@ -7771,7 +7929,7 @@ function DepositFlow({
7771
7929
  onCopyAddress: () => {
7772
7930
  const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
7773
7931
  const tokenSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7774
- _optionalChain([onEvent, 'optionalCall', _228 => _228({
7932
+ _optionalChain([onEvent, 'optionalCall', _229 => _229({
7775
7933
  type: "deposit_modal_transfer_crypto_cta_click",
7776
7934
  default_chain: chainName,
7777
7935
  default_token: tokenSymbol,
@@ -7818,7 +7976,7 @@ function DepositFlow({
7818
7976
  }
7819
7977
  ),
7820
7978
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7821
- _chunkNMIMRASDcjs.ProcessingStep,
7979
+ _chunkA42XAHIBcjs.ProcessingStep,
7822
7980
  {
7823
7981
  smartAccount: step.smartAccount,
7824
7982
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7890,7 +8048,7 @@ function DepositFlow({
7890
8048
  }
7891
8049
  ),
7892
8050
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7893
- _chunkNMIMRASDcjs.ProcessingStep,
8051
+ _chunkA42XAHIBcjs.ProcessingStep,
7894
8052
  {
7895
8053
  smartAccount: step.smartAccount,
7896
8054
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7923,8 +8081,8 @@ function DepositFlow({
7923
8081
  );
7924
8082
  }
7925
8083
  if (isSolanaWalletMode) {
7926
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _229 => _229.solanaAddress]);
7927
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaProvider]);
8084
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
8085
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
7928
8086
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7929
8087
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7930
8088
  AccountPreparingSkeleton,
@@ -7978,7 +8136,7 @@ function DepositFlow({
7978
8136
  targetToken,
7979
8137
  service,
7980
8138
  solanaProvider,
7981
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaConnection]),
8139
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
7982
8140
  uiConfig,
7983
8141
  onConfirm: handleSolanaConfirmed,
7984
8142
  onError: handleError,
@@ -8019,7 +8177,7 @@ function DepositFlow({
8019
8177
  ) })
8020
8178
  ] }) : null,
8021
8179
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8022
- _chunkNMIMRASDcjs.ProcessingStep,
8180
+ _chunkA42XAHIBcjs.ProcessingStep,
8023
8181
  {
8024
8182
  smartAccount: effectiveStep.smartAccount,
8025
8183
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -8056,7 +8214,7 @@ function DepositFlow({
8056
8214
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8057
8215
  DappImportAssetSelectSkeleton,
8058
8216
  {
8059
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _232 => _232.sourceLabel]), () => ( "")),
8217
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _233 => _233.sourceLabel]), () => ( "")),
8060
8218
  error: dappImportBootError,
8061
8219
  onRetry: handleBootRetry
8062
8220
  }
@@ -8078,7 +8236,7 @@ function DepositFlow({
8078
8236
  rows: dappImportSelectRows,
8079
8237
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
8080
8238
  onSelect: (providerId) => {
8081
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _233 => _233.toLowerCase, 'call', _234 => _234()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
8239
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _234 => _234.toLowerCase, 'call', _235 => _235()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
8082
8240
  if (availabilityEntry === "error") {
8083
8241
  storeApi.dispatch({
8084
8242
  type: "dapp-import/availability-retry-requested"
@@ -8097,16 +8255,16 @@ function DepositFlow({
8097
8255
  }
8098
8256
  );
8099
8257
  }
8100
- if (!_optionalChain([signerContext, 'optionalAccess', _235 => _235.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _236 => _236.publicClient])) {
8258
+ if (!_optionalChain([signerContext, 'optionalAccess', _236 => _236.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _237 => _237.publicClient])) {
8101
8259
  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" }) }) }) }) });
8102
8260
  }
8103
8261
  const ownerAddress = signerContext.ownerAddress;
8104
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _237 => _237.walletClient, 'optionalAccess', _238 => _238.chain, 'optionalAccess', _239 => _239.id]), () => ( _optionalChain([signerContext, 'access', _240 => _240.publicClient, 'access', _241 => _241.chain, 'optionalAccess', _242 => _242.id]))), () => ( setupChainId));
8262
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _238 => _238.walletClient, 'optionalAccess', _239 => _239.chain, 'optionalAccess', _240 => _240.id]), () => ( _optionalChain([signerContext, 'access', _241 => _241.publicClient, 'access', _242 => _242.chain, 'optionalAccess', _243 => _243.id]))), () => ( setupChainId));
8105
8263
  const getReadClientForChain = (chainId) => {
8106
- if (_optionalChain([signerContext, 'access', _243 => _243.publicClient, 'access', _244 => _244.chain, 'optionalAccess', _245 => _245.id]) === chainId) {
8264
+ if (_optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]) === chainId) {
8107
8265
  return signerContext.publicClient;
8108
8266
  }
8109
- return _chunkNMIMRASDcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8267
+ return _chunkA42XAHIBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8110
8268
  };
8111
8269
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
8112
8270
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8135,8 +8293,9 @@ function DepositFlow({
8135
8293
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8136
8294
  DappImportAssetSelectStep,
8137
8295
  {
8138
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _246 => _246.assets, 'access', _247 => _247[0], 'optionalAccess', _248 => _248.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
8296
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _247 => _247.assets, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
8139
8297
  assets: activeDappImportAvailability.assets,
8298
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _250 => _250.incomplete, 'optionalAccess', _251 => _251.summary]),
8140
8299
  onSelect: handleDappImportAssetSelected
8141
8300
  }
8142
8301
  ),
@@ -8146,7 +8305,7 @@ function DepositFlow({
8146
8305
  walletClient: signerContext.walletClient,
8147
8306
  publicClient: getReadClientForChain(effectiveStep.asset.chainId),
8148
8307
  address: ownerAddress,
8149
- balanceAddress: isDappImportAsset(effectiveStep.asset) ? effectiveStep.asset.providerMetadata.proxyWallet : void 0,
8308
+ ...dappImportBalanceSource(effectiveStep.asset),
8150
8309
  asset: effectiveStep.asset,
8151
8310
  defaultAmount: _nullishCoalesce(effectiveStep.inputAmountUsd, () => ( defaultAmount)),
8152
8311
  switchChain: signerContext.switchChain,
@@ -8158,7 +8317,7 @@ function DepositFlow({
8158
8317
  onContinue: handleAmountContinue,
8159
8318
  onCtaClick: (ctaName) => {
8160
8319
  const receiveSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
8161
- _optionalChain([onEvent, 'optionalCall', _249 => _249({
8320
+ _optionalChain([onEvent, 'optionalCall', _252 => _252({
8162
8321
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
8163
8322
  send_token: effectiveStep.asset.symbol,
8164
8323
  receive_token: receiveSymbol,
@@ -8193,8 +8352,11 @@ function DepositFlow({
8193
8352
  const result = await activeDappImportProvider.executeTransfer(
8194
8353
  {
8195
8354
  walletClient: signerContext.walletClient,
8355
+ // The asset's chain: a provider's assets can span chains
8356
+ // (Aave positions exist on every deposit-enabled chain), so
8357
+ // there is no single provider-level chain to read from.
8196
8358
  publicClient: getReadClientForChain(
8197
- activeDappImportProvider.chainId
8359
+ effectiveStep.asset.chainId
8198
8360
  ),
8199
8361
  recipient: effectiveStep.smartAccount,
8200
8362
  asset: effectiveStep.asset,
@@ -8213,7 +8375,7 @@ function DepositFlow({
8213
8375
  }
8214
8376
  ),
8215
8377
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8216
- _chunkNMIMRASDcjs.ProcessingStep,
8378
+ _chunkA42XAHIBcjs.ProcessingStep,
8217
8379
  {
8218
8380
  smartAccount: effectiveStep.smartAccount,
8219
8381
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -8259,7 +8421,7 @@ function formatDate(iso) {
8259
8421
  month: "short",
8260
8422
  year: "numeric"
8261
8423
  });
8262
- } catch (e34) {
8424
+ } catch (e35) {
8263
8425
  return iso;
8264
8426
  }
8265
8427
  }
@@ -8320,7 +8482,7 @@ function formatAmount(rawAmount, token, chainId) {
8320
8482
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
8321
8483
  if (frac.length < 2) frac = frac.padEnd(2, "0");
8322
8484
  return `${whole}.${frac}`;
8323
- } catch (e35) {
8485
+ } catch (e36) {
8324
8486
  return rawAmount;
8325
8487
  }
8326
8488
  }
@@ -8369,7 +8531,7 @@ function DepositHistoryPanel({
8369
8531
  );
8370
8532
  const visibleDeposits = _react.useMemo.call(void 0, () => {
8371
8533
  const sourceHashes = new Set(
8372
- deposits.map((d) => _optionalChain([d, 'access', _250 => _250.sourceTxHash, 'optionalAccess', _251 => _251.toLowerCase, 'call', _252 => _252()])).filter((h) => Boolean(h))
8534
+ deposits.map((d) => _optionalChain([d, 'access', _253 => _253.sourceTxHash, 'optionalAccess', _254 => _254.toLowerCase, 'call', _255 => _255()])).filter((h) => Boolean(h))
8373
8535
  );
8374
8536
  return deposits.filter(
8375
8537
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -8391,7 +8553,7 @@ function DepositHistoryPanel({
8391
8553
  className: "rs-modal-header-back",
8392
8554
  "aria-label": "Back",
8393
8555
  onClick: onClose,
8394
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronLeftIcon, {})
8556
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronLeftIcon, {})
8395
8557
  }
8396
8558
  ) }),
8397
8559
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8401,29 +8563,29 @@ function DepositHistoryPanel({
8401
8563
  className: "rs-modal-close",
8402
8564
  "aria-label": "Close",
8403
8565
  onClick: onCloseModal,
8404
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {})
8566
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
8405
8567
  }
8406
8568
  ) })
8407
8569
  ] }),
8408
8570
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
8409
8571
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
8410
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HistoryIcon, {}), title: "History" }),
8572
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}), title: "History" }),
8411
8573
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8412
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HistoryIcon, {}) }),
8574
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}) }),
8413
8575
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Spinner, { className: "rs-spinner--sm" }),
8576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" }),
8415
8577
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
8416
8578
  ] })
8417
8579
  ] }),
8418
8580
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8419
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.AlertTriangleIcon, {}) }),
8581
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.AlertTriangleIcon, {}) }),
8420
8582
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8421
8583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
8422
8584
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
8423
8585
  ] })
8424
8586
  ] }),
8425
8587
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8426
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HistoryIcon, {}) }),
8588
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}) }),
8427
8589
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8428
8590
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
8429
8591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -8443,7 +8605,7 @@ function DepositHistoryPanel({
8443
8605
  )
8444
8606
  ] })
8445
8607
  ] }),
8446
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
8608
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
8447
8609
  ] })
8448
8610
  ]
8449
8611
  }
@@ -8479,8 +8641,8 @@ function HistoryCard({ deposit }) {
8479
8641
  children: [
8480
8642
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
8481
8643
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
8482
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
8483
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: sourceChainIcon }) })
8644
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
8645
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
8484
8646
  ] }),
8485
8647
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
8486
8648
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: txTypeLabel }),
@@ -8496,14 +8658,14 @@ function HistoryCard({ deposit }) {
8496
8658
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
8497
8659
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
8498
8660
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
8499
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: sourceChainIcon }) })
8661
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
8500
8662
  ] })
8501
8663
  ] }),
8502
8664
  targetChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
8503
8665
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
8504
8666
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
8505
8667
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
8506
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: targetChainIcon }) })
8668
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
8507
8669
  ] })
8508
8670
  ] }),
8509
8671
  srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -8518,7 +8680,7 @@ function HistoryCard({ deposit }) {
8518
8680
  onClick: (e) => e.stopPropagation(),
8519
8681
  children: [
8520
8682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
8521
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ArrowUpRightIcon, {})
8683
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ArrowUpRightIcon, {})
8522
8684
  ]
8523
8685
  }
8524
8686
  )
@@ -8533,7 +8695,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
8533
8695
  // src/DepositModal.tsx
8534
8696
 
8535
8697
  var ReownDepositInner = _react.lazy.call(void 0,
8536
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-XC5RIU7Z.cjs"))).then((m) => ({ default: m.DepositModalReown }))
8698
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-S3DSFXTX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
8537
8699
  );
8538
8700
  function sortByCreatedAtDesc(items) {
8539
8701
  return [...items].sort((a, b) => {
@@ -8547,8 +8709,8 @@ function hasSuppliedWalletClient(props) {
8547
8709
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
8548
8710
  }
8549
8711
  function DepositModal(props) {
8550
- _chunkNMIMRASDcjs.warnRemovedProps.call(void 0, "DepositModal", props);
8551
- _chunkVN4BLZYCcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
8712
+ _chunkA42XAHIBcjs.warnRemovedProps.call(void 0, "DepositModal", props);
8713
+ _chunkPUJHXHRAcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
8552
8714
  const needsReown = !!props.reownAppId;
8553
8715
  const hasWalletClientProp = hasSuppliedWalletClient(props);
8554
8716
  if (needsReown) {
@@ -8610,13 +8772,13 @@ function DepositModalInner({
8610
8772
  debug
8611
8773
  }) {
8612
8774
  const modalRef = _react.useRef.call(void 0, null);
8613
- const onReadyRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onReady);
8775
+ const onReadyRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onReady);
8614
8776
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
8615
8777
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
8616
8778
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
8617
8779
  void 0
8618
8780
  );
8619
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _253 => _253.showHistoryButton]), () => ( false));
8781
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _256 => _256.showHistoryButton]), () => ( false));
8620
8782
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
8621
8783
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
8622
8784
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -8629,9 +8791,9 @@ function DepositModalInner({
8629
8791
  const historyLoadedRef = _react.useRef.call(void 0, false);
8630
8792
  const targetChain = targetChainProp === "solana" ? "solana" : _chunkH577RJN5cjs.getChainId.call(void 0, targetChainProp);
8631
8793
  const sourceChain = sourceChainProp ? _chunkH577RJN5cjs.getChainId.call(void 0, sourceChainProp) : void 0;
8632
- const rpcUrls = _chunkVN4BLZYCcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
8794
+ const rpcUrls = _chunkPUJHXHRAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
8633
8795
  const service = _react.useMemo.call(void 0,
8634
- () => _chunkVN4BLZYCcjs.createDepositService.call(void 0, backendUrl, {
8796
+ () => _chunkPUJHXHRAcjs.createDepositService.call(void 0, backendUrl, {
8635
8797
  debug,
8636
8798
  debugScope: "service:deposit"
8637
8799
  }),
@@ -8665,12 +8827,12 @@ function DepositModalInner({
8665
8827
  }, [store, targetChain, targetToken]);
8666
8828
  _react.useEffect.call(void 0, () => {
8667
8829
  if (isOpen && modalRef.current) {
8668
- _chunkVN4BLZYCcjs.applyTheme.call(void 0, modalRef.current, theme);
8830
+ _chunkPUJHXHRAcjs.applyTheme.call(void 0, modalRef.current, theme);
8669
8831
  }
8670
8832
  }, [isOpen, theme]);
8671
8833
  _react.useEffect.call(void 0, () => {
8672
8834
  if (isOpen) {
8673
- _optionalChain([onReadyRef, 'access', _254 => _254.current, 'optionalCall', _255 => _255()]);
8835
+ _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
8674
8836
  }
8675
8837
  }, [isOpen, onReadyRef]);
8676
8838
  const handleStepChange = _react.useCallback.call(void 0,
@@ -8746,10 +8908,10 @@ function DepositModalInner({
8746
8908
  fetchHistory("initial");
8747
8909
  }
8748
8910
  }, [historyOpen, fetchHistory]);
8749
- const onLifecycleRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onLifecycle);
8911
+ const onLifecycleRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onLifecycle);
8750
8912
  const handleLifecycle = _react.useCallback.call(void 0,
8751
8913
  (event) => {
8752
- _optionalChain([onLifecycleRef, 'access', _256 => _256.current, 'optionalCall', _257 => _257(event)]);
8914
+ _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
8753
8915
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
8754
8916
  historyStaleRef.current = true;
8755
8917
  }
@@ -8778,12 +8940,12 @@ function DepositModalInner({
8778
8940
  store.dispatch({ type: "flow/reset" });
8779
8941
  }
8780
8942
  }, [isOpen, store]);
8781
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _258 => _258.showBackButton]), () => ( true));
8943
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
8782
8944
  const canGoBack = backHandler !== void 0;
8783
8945
  const hideHeaderChrome = swappedImmersive;
8784
8946
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8785
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8786
- _chunkVN4BLZYCcjs.Modal,
8947
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8948
+ _chunkPUJHXHRAcjs.Modal,
8787
8949
  {
8788
8950
  isOpen,
8789
8951
  onClose,
@@ -8799,7 +8961,7 @@ function DepositModalInner({
8799
8961
  className: "rs-modal-header-back",
8800
8962
  "aria-label": "Go back",
8801
8963
  onClick: backHandler,
8802
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronLeftIcon, {})
8964
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronLeftIcon, {})
8803
8965
  }
8804
8966
  ) }),
8805
8967
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8811,7 +8973,7 @@ function DepositModalInner({
8811
8973
  "aria-label": "Deposit history",
8812
8974
  onClick: handleHistoryOpen,
8813
8975
  disabled: !recipient,
8814
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HistoryIcon, {})
8976
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {})
8815
8977
  }
8816
8978
  ),
8817
8979
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8821,7 +8983,7 @@ function DepositModalInner({
8821
8983
  onClick: onClose,
8822
8984
  className: "rs-modal-close",
8823
8985
  "aria-label": "Close",
8824
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {})
8986
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
8825
8987
  }
8826
8988
  )
8827
8989
  ] })
@@ -8855,7 +9017,7 @@ function DepositModalInner({
8855
9017
  onDisconnect,
8856
9018
  onRequestConnect,
8857
9019
  uiConfig,
8858
- appFees: _optionalChain([clientSetup, 'optionalAccess', _259 => _259.appFees]),
9020
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _262 => _262.appFees]),
8859
9021
  appFeesResolved: clientSetup !== null,
8860
9022
  onStepChange: handleStepChange,
8861
9023
  onSwappedImmersiveChange: setSwappedImmersive,