@rhinestone/deposit-modal 0.14.1 → 0.15.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 (68) hide show
  1. package/README.md +6 -0
  2. package/bridge-transcript.json +14 -0
  3. package/dist/ClaimModal-GFDBVCN5.cjs +11 -0
  4. package/dist/ClaimModal-VQS3AKEL.mjs +11 -0
  5. package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-KOJ7VEY7.mjs} +6 -7
  6. package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-R37SSHUF.cjs} +21 -22
  7. package/dist/WithdrawModal-QVXHMH43.mjs +12 -0
  8. package/dist/WithdrawModal-RY2NMFLE.cjs +12 -0
  9. package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
  10. package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
  11. package/dist/{chunk-HAQOFI3D.cjs → chunk-3OOY67VJ.cjs} +1046 -226
  12. package/dist/{chunk-AQVJUXSG.cjs → chunk-5P2PVLS4.cjs} +1 -1
  13. package/dist/{chunk-UX35GYLM.mjs → chunk-5VONFVQN.mjs} +918 -98
  14. package/dist/chunk-6HUHVXCY.cjs +704 -0
  15. package/dist/{chunk-GZ4GQ5MC.mjs → chunk-7UQ6OUEE.mjs} +166 -45
  16. package/dist/{chunk-LMG46EP2.mjs → chunk-CXBMIZUF.mjs} +1 -1
  17. package/dist/{chunk-A6JPBMYY.cjs → chunk-DTVZUBHI.cjs} +236 -115
  18. package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
  19. package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
  20. package/dist/{chunk-5Q5CSVKF.mjs → chunk-IKUYZA7A.mjs} +195 -495
  21. package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
  22. package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
  23. package/dist/chunk-QJ7RCCU7.mjs +704 -0
  24. package/dist/{chunk-XCTRKCNM.mjs → chunk-UCBUCX2W.mjs} +1515 -194
  25. package/dist/{chunk-NQMC5VKQ.cjs → chunk-VPDCGD2D.cjs} +552 -852
  26. package/dist/{chunk-4J5ADVIN.cjs → chunk-X4D52IZK.cjs} +1496 -175
  27. package/dist/claim.cjs +5 -7
  28. package/dist/claim.d.cts +3 -3
  29. package/dist/claim.d.ts +3 -3
  30. package/dist/claim.mjs +4 -6
  31. package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
  32. package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
  33. package/dist/constants.cjs +3 -3
  34. package/dist/constants.d.cts +3 -3
  35. package/dist/constants.d.ts +3 -3
  36. package/dist/constants.mjs +2 -2
  37. package/dist/deposit.cjs +7 -8
  38. package/dist/deposit.d.cts +3 -3
  39. package/dist/deposit.d.ts +3 -3
  40. package/dist/deposit.mjs +6 -7
  41. package/dist/embed.cjs +135 -44
  42. package/dist/embed.d.cts +2 -2
  43. package/dist/embed.d.ts +2 -2
  44. package/dist/embed.mjs +116 -25
  45. package/dist/index.cjs +13 -11
  46. package/dist/index.d.cts +3 -3
  47. package/dist/index.d.ts +3 -3
  48. package/dist/index.mjs +12 -10
  49. package/dist/polymarket.cjs +6 -6
  50. package/dist/polymarket.mjs +2 -2
  51. package/dist/styles.css +132 -100
  52. package/dist/{types-DP_3KwlD.d.cts → types-CQ0NHqCy.d.ts} +146 -11
  53. package/dist/{types-Bho4OA03.d.ts → types-CxiLX5sv.d.cts} +146 -11
  54. package/dist/withdraw.cjs +6 -6
  55. package/dist/withdraw.d.cts +4 -4
  56. package/dist/withdraw.d.ts +4 -4
  57. package/dist/withdraw.mjs +5 -5
  58. package/package.json +6 -6
  59. package/dist/ClaimModal-GDFENSLV.mjs +0 -13
  60. package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
  61. package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
  62. package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
  63. package/dist/chunk-62UCV2LG.cjs +0 -81
  64. package/dist/chunk-7AZFT2MV.cjs +0 -163
  65. package/dist/chunk-QACOOLOE.mjs +0 -1062
  66. package/dist/chunk-R5UQ3TN4.mjs +0 -81
  67. package/dist/chunk-VALXN5IO.mjs +0 -163
  68. package/dist/chunk-YP7QVKQ6.cjs +0 -1062
@@ -19,13 +19,12 @@
19
19
 
20
20
 
21
21
 
22
- var _chunk4J5ADVINcjs = require('./chunk-4J5ADVIN.cjs');
23
22
 
24
23
 
25
- var _chunk62UCV2LGcjs = require('./chunk-62UCV2LG.cjs');
26
24
 
27
25
 
28
26
 
27
+ var _chunkX4D52IZKcjs = require('./chunk-X4D52IZK.cjs');
29
28
 
30
29
 
31
30
 
@@ -88,8 +87,8 @@ var _chunk62UCV2LGcjs = require('./chunk-62UCV2LG.cjs');
88
87
 
89
88
 
90
89
 
91
- var _chunkHAQOFI3Dcjs = require('./chunk-HAQOFI3D.cjs');
92
90
 
91
+ var _chunk3OOY67VJcjs = require('./chunk-3OOY67VJ.cjs');
93
92
 
94
93
 
95
94
 
@@ -100,8 +99,8 @@ var _chunkHAQOFI3Dcjs = require('./chunk-HAQOFI3D.cjs');
100
99
 
101
100
 
102
101
 
103
- var _chunkDW2EQA2Ucjs = require('./chunk-DW2EQA2U.cjs');
104
102
 
103
+ var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
105
104
 
106
105
 
107
106
 
@@ -128,10 +127,7 @@ var _chunkDW2EQA2Ucjs = require('./chunk-DW2EQA2U.cjs');
128
127
 
129
128
 
130
129
 
131
-
132
-
133
-
134
- var _chunk4KCSH4T3cjs = require('./chunk-4KCSH4T3.cjs');
130
+ var _chunkOY5N3E6Lcjs = require('./chunk-OY5N3E6L.cjs');
135
131
 
136
132
  // src/core/reown-dependencies.ts
137
133
  var dependencies;
@@ -249,14 +245,14 @@ SegmentedToggle.displayName = "SegmentedToggle";
249
245
  // src/components/ui/ChainIcon.tsx
250
246
 
251
247
  function ChainIcon({ chainId, className, loading }) {
252
- const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, chainId);
253
- const catalogChain = _chunkHAQOFI3Dcjs.useCatalogChain.call(void 0, _chunkHAQOFI3Dcjs.catalogKeyForChain.call(void 0, chainId));
254
- const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunk4KCSH4T3cjs.getChainName.call(void 0, chainId)));
248
+ const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, chainId);
249
+ const catalogChain = _chunk3OOY67VJcjs.useCatalogChain.call(void 0, _chunk3OOY67VJcjs.catalogKeyForChain.call(void 0, chainId));
250
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
255
251
  const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
256
252
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
257
- _chunkHAQOFI3Dcjs.CdnIcon,
253
+ _chunk3OOY67VJcjs.CdnIcon,
258
254
  {
259
- src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
255
+ src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
260
256
  alt: name,
261
257
  className,
262
258
  loading,
@@ -277,16 +273,16 @@ ChainIcon.displayName = "ChainIcon";
277
273
  // src/components/ui/WalletBadgeIcons/index.tsx
278
274
 
279
275
  function BadgeImage({ src, alt = "" }) {
280
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src, alt }) });
276
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src, alt }) });
281
277
  }
282
278
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
283
279
  function WalletBadgeIcons() {
284
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons", children: WALLET_BADGES.map((slug) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BadgeImage, { src: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "wallets", slug) }, slug)) });
280
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons", children: WALLET_BADGES.map((slug) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BadgeImage, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "wallets", slug) }, slug)) });
285
281
  }
286
282
  WalletBadgeIcons.displayName = "WalletBadgeIcons";
287
283
  var TRANSFER_CHAIN_BADGES = ["mainnet", "solana", "base"];
288
284
  function ChainBadgeIcons() {
289
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons", children: TRANSFER_CHAIN_BADGES.map((slug) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BadgeImage, { src: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "chains", slug) }, slug)) });
285
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons", children: TRANSFER_CHAIN_BADGES.map((slug) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BadgeImage, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "chains", slug) }, slug)) });
290
286
  }
291
287
  ChainBadgeIcons.displayName = "ChainBadgeIcons";
292
288
  var MAX_WALLET_CHAIN_MARKS = 3;
@@ -306,23 +302,23 @@ var DAPP_IMPORT_CATALOG = [
306
302
  {
307
303
  id: "polymarket",
308
304
  label: "Polymarket",
309
- iconUrl: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "dapps", "polymarket")
305
+ iconUrl: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "dapps", "polymarket")
310
306
  },
311
307
  {
312
308
  id: "aave",
313
309
  label: "Aave",
314
- iconUrl: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "dapps", "aave")
310
+ iconUrl: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "dapps", "aave")
315
311
  },
316
312
  {
317
313
  id: "hyperliquid",
318
314
  label: "Hyperliquid",
319
- iconUrl: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "dapps", "hyperliquid"),
315
+ iconUrl: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "dapps", "hyperliquid"),
320
316
  comingSoon: true
321
317
  },
322
318
  {
323
319
  id: "morpho",
324
320
  label: "Morpho",
325
- iconUrl: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "dapps", "morpho"),
321
+ iconUrl: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "dapps", "morpho"),
326
322
  comingSoon: true
327
323
  }
328
324
  ];
@@ -330,7 +326,7 @@ var DAPP_IMPORT_CATALOG = [
330
326
  // src/components/ui/BrandIcons.tsx
331
327
 
332
328
  function ExchangeBadgeImage({ name }) {
333
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: _nullishCoalesce(_chunk4J5ADVINcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
329
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: _nullishCoalesce(_chunkX4D52IZKcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
334
330
  }
335
331
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
336
332
  function CardNetworkIcons() {
@@ -338,7 +334,7 @@ function CardNetworkIcons() {
338
334
  "span",
339
335
  {
340
336
  className: `rs-card-network rs-card-network--${network}`,
341
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: _chunk4KCSH4T3cjs.cdnIconUrl.call(void 0, "cards", network) })
337
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: _chunkOY5N3E6Lcjs.cdnIconUrl.call(void 0, "cards", network) })
342
338
  },
343
339
  network
344
340
  )) });
@@ -357,7 +353,7 @@ function DappBadgeIcons() {
357
353
  ).filter(
358
354
  (brand) => Boolean(brand)
359
355
  );
360
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
356
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
361
357
  }
362
358
  DappBadgeIcons.displayName = "DappBadgeIcons";
363
359
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -377,9 +373,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
377
373
  return "No balance";
378
374
  }
379
375
  function fiatIcon(name) {
380
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.AppleIcon, {});
381
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BankIcon, {});
382
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CardIcon, {});
376
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.AppleIcon, {});
377
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BankIcon, {});
378
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CardIcon, {});
383
379
  }
384
380
  function FiatMethodIcon({ option }) {
385
381
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -462,20 +458,20 @@ function renderWalletLeading(row) {
462
458
  }
463
459
  );
464
460
  }
465
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {});
461
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {});
466
462
  }
467
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TransferCryptoIcon, {});
468
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {});
469
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.UnplugIcon, {});
470
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.MigrateAssetsIcon, {});
471
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, { className: "rs-spinner--sm" });
463
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {});
464
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {});
465
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.UnplugIcon, {});
466
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.MigrateAssetsIcon, {});
467
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-spinner--sm" });
472
468
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
473
469
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
474
470
  "+100"
475
471
  ] });
476
472
  var EXTRA_EXCHANGE_COUNT = Math.max(
477
473
  0,
478
- _chunkHAQOFI3Dcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
474
+ _chunk3OOY67VJcjs.SUPPORTED_CONNECT_EXCHANGE_COUNT - EXCHANGE_BADGE_COUNT
479
475
  );
480
476
  var EXCHANGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
481
477
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeBadgeIcons, {}),
@@ -489,7 +485,7 @@ var MIGRATE_ASSETS_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxrunt
489
485
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DappBadgeIcons, {}),
490
486
  EXTRA_DAPP_COUNT > 0 ? `+${EXTRA_DAPP_COUNT}` : null
491
487
  ] });
492
- var EXTRA_CHAIN_COUNT = Math.max(0, _chunk4KCSH4T3cjs.getSupportedChainIds.call(void 0, ).length - 3);
488
+ var EXTRA_CHAIN_COUNT = Math.max(0, _chunkOY5N3E6Lcjs.getSupportedChainIds.call(void 0, ).length - 3);
493
489
  var CHAIN_BADGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
494
490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChainBadgeIcons, {}),
495
491
  EXTRA_CHAIN_COUNT > 0 ? `+${EXTRA_CHAIN_COUNT}` : null
@@ -533,7 +529,7 @@ function ConnectStep({
533
529
  if (onSelectTransferCrypto) {
534
530
  cryptoRows.push(
535
531
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
536
- _chunk62UCV2LGcjs.ListRow,
532
+ _chunk3OOY67VJcjs.ListRow,
537
533
  {
538
534
  leading: TRANSFER_CRYPTO_LEADING,
539
535
  title: "Transfer crypto",
@@ -554,7 +550,7 @@ function ConnectStep({
554
550
  );
555
551
  cryptoRows.push(
556
552
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
557
- _chunk62UCV2LGcjs.ListRow,
553
+ _chunk3OOY67VJcjs.ListRow,
558
554
  {
559
555
  leading: renderWalletLeading(row),
560
556
  title: collapseToExternal ? "External wallet" : row.label,
@@ -571,7 +567,7 @@ function ConnectStep({
571
567
  if (!hasSessionWallet && handleConnect) {
572
568
  cryptoRows.push(
573
569
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
574
- _chunk62UCV2LGcjs.ListRow,
570
+ _chunk3OOY67VJcjs.ListRow,
575
571
  {
576
572
  leading: WALLET_LEADING,
577
573
  title: "Connect wallet",
@@ -586,7 +582,7 @@ function ConnectStep({
586
582
  if (onSelectFundFromExchange) {
587
583
  cryptoRows.push(
588
584
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
589
- _chunk62UCV2LGcjs.ListRow,
585
+ _chunk3OOY67VJcjs.ListRow,
590
586
  {
591
587
  leading: EXCHANGE_LEADING,
592
588
  title: "Connect exchange",
@@ -601,7 +597,7 @@ function ConnectStep({
601
597
  if (onSelectMigrateAssets) {
602
598
  cryptoRows.push(
603
599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
604
- _chunk62UCV2LGcjs.ListRow,
600
+ _chunk3OOY67VJcjs.ListRow,
605
601
  {
606
602
  leading: MIGRATE_ASSETS_LEADING,
607
603
  title: "Migrate assets",
@@ -622,7 +618,7 @@ function ConnectStep({
622
618
  for (const opt of fiatPaymentMethods) {
623
619
  cashRows.push(
624
620
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
625
- _chunk62UCV2LGcjs.ListRow,
621
+ _chunk3OOY67VJcjs.ListRow,
626
622
  {
627
623
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
628
624
  title: opt.label,
@@ -637,7 +633,7 @@ function ConnectStep({
637
633
  } else if (fiatLoading) {
638
634
  cashRows.push(
639
635
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
640
- _chunk62UCV2LGcjs.ListRow,
636
+ _chunk3OOY67VJcjs.ListRow,
641
637
  {
642
638
  leading: SMALL_SPINNER,
643
639
  title: "Loading payment options\u2026",
@@ -666,9 +662,9 @@ function ConnectStep({
666
662
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
667
663
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
668
664
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
669
- _chunkHAQOFI3Dcjs.BodyHeader,
665
+ _chunk3OOY67VJcjs.BodyHeader,
670
666
  {
671
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HandCoinsIcon, {}),
667
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.HandCoinsIcon, {}),
672
668
  title,
673
669
  subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
674
670
  aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -704,7 +700,7 @@ function ConnectStep({
704
700
  children: "Disconnect wallet"
705
701
  }
706
702
  ) }),
707
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
703
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
708
704
  ] });
709
705
  }
710
706
  ConnectStep.displayName = "ConnectStep";
@@ -727,17 +723,17 @@ function AssetSelectStep({
727
723
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
728
724
  const [loading, setLoading] = _react.useState.call(void 0, true);
729
725
  const [error, setError] = _react.useState.call(void 0, null);
730
- const isDepositChain = _chunkHAQOFI3Dcjs.useIsDepositChain.call(void 0, );
731
- const { catalog } = _chunkHAQOFI3Dcjs.useChainCatalog.call(void 0, );
732
- const chainName = _chunkHAQOFI3Dcjs.useChainName.call(void 0, );
726
+ const isDepositChain = _chunk3OOY67VJcjs.useIsDepositChain.call(void 0, );
727
+ const { catalog } = _chunk3OOY67VJcjs.useChainCatalog.call(void 0, );
728
+ const chainName = _chunk3OOY67VJcjs.useChainName.call(void 0, );
733
729
  const defaultAssetId = _react.useMemo.call(void 0, () => {
734
730
  if (!defaultSourceChain || !defaultSourceToken) return null;
735
- return _chunkHAQOFI3Dcjs.getAssetId.call(void 0, {
731
+ return _chunk3OOY67VJcjs.getAssetId.call(void 0, {
736
732
  chainId: defaultSourceChain,
737
733
  token: defaultSourceToken
738
734
  });
739
735
  }, [defaultSourceChain, defaultSourceToken]);
740
- const onTotalBalanceComputedRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
736
+ const onTotalBalanceComputedRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
741
737
  _react.useEffect.call(void 0, () => {
742
738
  let active = true;
743
739
  function emitAssetsUpdate(currentAssets) {
@@ -757,11 +753,11 @@ function AssetSelectStep({
757
753
  try {
758
754
  const portfolio = await service.fetchPortfolio(address);
759
755
  if (!active) return;
760
- const portfolioAssets = _chunkHAQOFI3Dcjs.portfolioToAssets.call(void 0, portfolio.tokens);
756
+ const portfolioAssets = _chunk3OOY67VJcjs.portfolioToAssets.call(void 0, portfolio.tokens);
761
757
  setAssets(portfolioAssets);
762
758
  emitAssetsUpdate(portfolioAssets);
763
759
  const hasNative = portfolioAssets.some(
764
- (asset) => asset.token.toLowerCase() === _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS
760
+ (asset) => asset.token.toLowerCase() === _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS
765
761
  );
766
762
  if (!hasNative) {
767
763
  const connectedChainId = _optionalChain([publicClient, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.id]);
@@ -808,7 +804,7 @@ function AssetSelectStep({
808
804
  } catch (e2) {
809
805
  return false;
810
806
  }
811
- const isNativeToken = a.token.toLowerCase() === _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS;
807
+ const isNativeToken = a.token.toLowerCase() === _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS;
812
808
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
813
809
  return false;
814
810
  return true;
@@ -836,7 +832,7 @@ function AssetSelectStep({
836
832
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
837
833
  const numeric = Number(raw);
838
834
  if (!Number.isFinite(numeric)) return raw;
839
- return _chunkHAQOFI3Dcjs.tokenFormatter.format(numeric);
835
+ return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
840
836
  } catch (e3) {
841
837
  return asset.balance;
842
838
  }
@@ -844,20 +840,20 @@ function AssetSelectStep({
844
840
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
845
841
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
846
842
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
847
- _chunkHAQOFI3Dcjs.BodyHeader,
843
+ _chunk3OOY67VJcjs.BodyHeader,
848
844
  {
849
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}),
845
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
850
846
  title: "Your assets",
851
847
  subtitle: "Select source assets to transfer"
852
848
  }
853
849
  ),
854
850
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
855
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, { className: "rs-text-tertiary" }),
851
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-text-tertiary" }),
856
852
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
857
853
  ] }),
858
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
854
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
859
855
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
860
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, { className: "rs-empty-icon" }),
856
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, { className: "rs-empty-icon" }),
861
857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
862
858
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
863
859
  address.slice(0, 6),
@@ -877,8 +873,8 @@ function AssetSelectStep({
877
873
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
878
874
  const isSelected = selectedAssetId === asset.id;
879
875
  const tokenAmount = formatBalance(asset);
880
- const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, asset.chainId);
881
- const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
876
+ const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, asset.chainId);
877
+ const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
882
878
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
883
879
  "button",
884
880
  {
@@ -890,13 +886,13 @@ function AssetSelectStep({
890
886
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
891
887
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
892
888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
893
- _chunkHAQOFI3Dcjs.TokenIcon,
889
+ _chunk3OOY67VJcjs.TokenIcon,
894
890
  {
895
891
  symbol: asset.symbol,
896
892
  fallback: asset.symbol.slice(0, 4)
897
893
  }
898
894
  ) }),
899
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
895
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
900
896
  "span",
901
897
  {
902
898
  className: "rs-asset-chain-badge",
@@ -923,14 +919,14 @@ function AssetSelectStep({
923
919
  ] })
924
920
  ] })
925
921
  ] }),
926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkHAQOFI3Dcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
922
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
927
923
  ]
928
924
  },
929
925
  asset.id
930
926
  );
931
927
  }) }),
932
928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
933
- _chunkHAQOFI3Dcjs.Button,
929
+ _chunk3OOY67VJcjs.Button,
934
930
  {
935
931
  onClick: () => selectedAsset && onContinue(selectedAsset),
936
932
  disabled: !selectedAsset,
@@ -939,7 +935,7 @@ function AssetSelectStep({
939
935
  }
940
936
  )
941
937
  ] }),
942
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
938
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
943
939
  ] });
944
940
  }
945
941
  async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
@@ -947,20 +943,20 @@ async function fetchNativeAssets(address, publicClient, existing, isDepositChain
947
943
  const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
948
944
  if (!connectedChainId) return [];
949
945
  if (!isDepositChain(connectedChainId)) return [];
950
- const id = _chunkHAQOFI3Dcjs.getAssetId.call(void 0, {
946
+ const id = _chunk3OOY67VJcjs.getAssetId.call(void 0, {
951
947
  chainId: connectedChainId,
952
- token: _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS
948
+ token: _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS
953
949
  });
954
950
  if (existingIds.has(id)) return [];
955
951
  try {
956
952
  const balance = await publicClient.getBalance({ address });
957
- const nativeSymbol = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _18 => _18.nativeToken, 'access', _19 => _19.symbol]), () => ( _chunk4KCSH4T3cjs.getNativeSymbol.call(void 0, connectedChainId)));
953
+ const nativeSymbol = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _18 => _18.nativeToken, 'access', _19 => _19.symbol]), () => ( _chunkOY5N3E6Lcjs.getNativeSymbol.call(void 0, connectedChainId)));
958
954
  const nativeDecimals = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _20 => _20.nativeToken, 'access', _21 => _21.decimals]), () => ( 18));
959
955
  return [
960
956
  {
961
957
  id,
962
958
  chainId: connectedChainId,
963
- token: _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS,
959
+ token: _chunkOY5N3E6Lcjs.NATIVE_TOKEN_ADDRESS,
964
960
  symbol: nativeSymbol,
965
961
  name: nativeSymbol,
966
962
  decimals: nativeDecimals,
@@ -1122,9 +1118,9 @@ function AmountStep({
1122
1118
  const chainMismatch = Boolean(
1123
1119
  _optionalChain([walletClient, 'optionalAccess', _26 => _26.chain, 'optionalAccess', _27 => _27.id]) && walletClient.chain.id !== asset.chainId
1124
1120
  );
1125
- const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
1126
- const targetSymbol = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1127
- const isSourceStablecoin = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, asset.symbol);
1121
+ const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
1122
+ const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1123
+ const isSourceStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, asset.symbol);
1128
1124
  const derivedPriceUsd = _react.useMemo.call(void 0, () => {
1129
1125
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
1130
1126
  return tokenPriceUsdOverride;
@@ -1153,7 +1149,7 @@ function AmountStep({
1153
1149
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1154
1150
  if (!balanceTarget || !publicClient) return;
1155
1151
  try {
1156
- const bal = _chunkHAQOFI3Dcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1152
+ const bal = _chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1157
1153
  address: asset.token,
1158
1154
  abi: _viem.erc20Abi,
1159
1155
  functionName: "balanceOf",
@@ -1174,7 +1170,7 @@ function AmountStep({
1174
1170
  hasAttemptedSwitch.current = true;
1175
1171
  switchChain(asset.chainId).catch((err) => {
1176
1172
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1177
- setError(_chunkHAQOFI3Dcjs.formatUserError.call(void 0, raw));
1173
+ setError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw));
1178
1174
  });
1179
1175
  }
1180
1176
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1227,7 +1223,7 @@ function AmountStep({
1227
1223
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1228
1224
  const numeric = Number(raw);
1229
1225
  if (!Number.isFinite(numeric)) return raw;
1230
- return _chunkHAQOFI3Dcjs.tokenFormatter.format(numeric);
1226
+ return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
1231
1227
  } catch (e8) {
1232
1228
  return "\u2026";
1233
1229
  }
@@ -1246,7 +1242,7 @@ function AmountStep({
1246
1242
  return null;
1247
1243
  }
1248
1244
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
1249
- const minDepositUsd = _chunk4KCSH4T3cjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunk4KCSH4T3cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _29 => _29.minDepositUsd]), () => ( null));
1245
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _29 => _29.minDepositUsd]), () => ( null));
1250
1246
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _30 => _30.maxDepositUsd]), () => ( null));
1251
1247
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
1252
1248
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -1315,12 +1311,12 @@ function AmountStep({
1315
1311
  const needsPricing = !knowsBalance && !isSourceStablecoin;
1316
1312
  const blockedOnPricing = needsPricing && !hasPricing;
1317
1313
  const continueDisabled = chainMismatch || exceedsBalance || blockedOnPricing || numericAmount === 0 && !isBelowMin || knowsBalance && balance === null;
1318
- const chainName = _chunkHAQOFI3Dcjs.useChainName.call(void 0, );
1314
+ const chainName = _chunk3OOY67VJcjs.useChainName.call(void 0, );
1319
1315
  const sourceChainName = chainName(asset.chainId);
1320
1316
  const targetChainName = chainName(targetChainId);
1321
1317
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1322
1318
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1323
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}), title }),
1319
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title }),
1324
1320
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1325
1321
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1326
1322
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1340,13 +1336,13 @@ function AmountStep({
1340
1336
  " available",
1341
1337
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1342
1338
  " (~",
1343
- _chunkHAQOFI3Dcjs.currencyFormatter.format(balanceUsd),
1339
+ _chunk3OOY67VJcjs.currencyFormatter.format(balanceUsd),
1344
1340
  ")"
1345
1341
  ] })
1346
1342
  ] }),
1347
1343
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1348
1344
  "Min. deposit ",
1349
- _chunkHAQOFI3Dcjs.currencyFormatter.format(minDepositUsd)
1345
+ _chunk3OOY67VJcjs.currencyFormatter.format(minDepositUsd)
1350
1346
  ] })
1351
1347
  ] })
1352
1348
  ] }),
@@ -1371,7 +1367,7 @@ function AmountStep({
1371
1367
  " ",
1372
1368
  asset.symbol
1373
1369
  ] }),
1374
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: asset.symbol }) })
1370
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: asset.symbol }) })
1375
1371
  ] })
1376
1372
  ] }),
1377
1373
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1382,21 +1378,21 @@ function AmountStep({
1382
1378
  " ",
1383
1379
  targetSymbol
1384
1380
  ] }),
1385
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: targetSymbol }) })
1381
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: targetSymbol }) })
1386
1382
  ] })
1387
1383
  ] }),
1388
1384
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1389
1385
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkHAQOFI3Dcjs.currencyFormatter.format(balanceAfterUsd) })
1386
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk3OOY67VJcjs.currencyFormatter.format(balanceAfterUsd) })
1391
1387
  ] })
1392
1388
  ] }),
1393
- blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: [
1389
+ blockedOnPricing && sourcePriceUnavailable && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: [
1394
1390
  asset.symbol,
1395
1391
  " can't be priced right now, so this deposit can't be estimated. You can still send any amount to the deposit address."
1396
1392
  ] }),
1397
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
1393
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
1398
1394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1399
- _chunkHAQOFI3Dcjs.Button,
1395
+ _chunk3OOY67VJcjs.Button,
1400
1396
  {
1401
1397
  onClick: handleContinue,
1402
1398
  fullWidth: true,
@@ -1405,7 +1401,7 @@ function AmountStep({
1405
1401
  }
1406
1402
  )
1407
1403
  ] }),
1408
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
1404
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
1409
1405
  ] });
1410
1406
  }
1411
1407
 
@@ -1432,14 +1428,14 @@ function ReviewDetails({
1432
1428
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1433
1429
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1434
1430
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1435
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: sourceChainIcon }) })
1431
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: sourceChainIcon }) })
1436
1432
  ] })
1437
1433
  ] }),
1438
1434
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1439
1435
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1440
1436
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1441
1437
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1442
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: targetChainIcon }) })
1438
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: targetChainIcon }) })
1443
1439
  ] })
1444
1440
  ] }),
1445
1441
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1454,21 +1450,21 @@ function ReviewDetails({
1454
1450
  " ",
1455
1451
  sendSymbol
1456
1452
  ] }),
1457
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: sendSymbol }) })
1453
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: sendSymbol }) })
1458
1454
  ] })
1459
1455
  ] }),
1460
1456
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1461
1457
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1462
1458
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1463
1459
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1464
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: receiveSymbol }) })
1460
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: receiveSymbol }) })
1465
1461
  ] })
1466
1462
  ] }),
1467
1463
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1468
1464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
1469
1465
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1470
1466
  fee.display === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-skeleton rs-skeleton-fee", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: fee.struck ? { textDecoration: "line-through" } : void 0, children: fee.display }),
1471
- fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4J5ADVINcjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.InfoIcon, {}) }) })
1467
+ fee.tooltip !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.Tooltip, { content: fee.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.InfoIcon, {}) }) })
1472
1468
  ] })
1473
1469
  ] })
1474
1470
  ] });
@@ -1680,23 +1676,23 @@ function ConfirmStep({
1680
1676
  recipient
1681
1677
  ]);
1682
1678
  const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _66 => _66.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1683
- const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
1684
- const targetSymbol = sameRoute ? asset.symbol : _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1685
- const sourceChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, asset.chainId);
1686
- const targetChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId);
1687
- const sourceChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
1688
- const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
1689
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1690
- const mustHaveQuote = !appFeesResolved || _chunkHAQOFI3Dcjs.resolveAppFeeBps.call(void 0,
1679
+ const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
1680
+ const targetSymbol = sameRoute ? asset.symbol : _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1681
+ const sourceChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId);
1682
+ const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
1683
+ const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
1684
+ const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
1685
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1686
+ const mustHaveQuote = !appFeesResolved || _chunk3OOY67VJcjs.resolveAppFeeBps.call(void 0,
1691
1687
  appFees,
1692
1688
  `eip155:${quoteSource.chainId}`,
1693
1689
  quoteSource.token
1694
1690
  ) > 0;
1695
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkHAQOFI3Dcjs.quoteFeeRow.call(void 0,
1691
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunk3OOY67VJcjs.quoteFeeRow.call(void 0,
1696
1692
  _optionalChain([quote, 'optionalAccess', _67 => _67.fees])
1697
1693
  );
1698
1694
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1699
- const permitEligible = enableGaslessDeposit && !_chunkHAQOFI3Dcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID;
1695
+ const permitEligible = enableGaslessDeposit && !_chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset) && !isDappImportAsset(asset) && !executeTransfer && !directTransfer && asset.chainId !== _chunkOY5N3E6Lcjs.HYPERCORE_CHAIN_ID;
1700
1696
  const permitRequestKey = JSON.stringify([
1701
1697
  smartAccount.toLowerCase(),
1702
1698
  asset.chainId,
@@ -1709,21 +1705,21 @@ function ConfirmStep({
1709
1705
  const receiveDisplay = (() => {
1710
1706
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1711
1707
  if (quote) {
1712
- const quoted = _chunkHAQOFI3Dcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1708
+ const quoted = _chunk3OOY67VJcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1713
1709
  if (quoted !== void 0) return quoted;
1714
1710
  }
1715
1711
  const usdValue = Number(targetAmount);
1716
1712
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1717
- const estimate = _chunkHAQOFI3Dcjs.formatReceiveEstimate.call(void 0, {
1713
+ const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
1718
1714
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1719
1715
  sourceSymbol: asset.symbol,
1720
1716
  targetSymbol,
1721
1717
  sourceAmountUsd,
1722
- sourceTrusted: _chunkHAQOFI3Dcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1718
+ sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1723
1719
  // The target is the curated deposit destination, so a stablecoin target
1724
1720
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1725
1721
  // target prices). Not applied to the source — that can be a held token.
1726
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHAQOFI3Dcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1722
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1727
1723
  });
1728
1724
  if (estimate !== void 0) return estimate;
1729
1725
  return targetSymbol;
@@ -1734,7 +1730,7 @@ function ConfirmStep({
1734
1730
  hasAttemptedSwitch.current = true;
1735
1731
  switchChain(asset.chainId).catch((err) => {
1736
1732
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1737
- setError(_chunkHAQOFI3Dcjs.formatUserError.call(void 0, raw));
1733
+ setError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw));
1738
1734
  });
1739
1735
  }
1740
1736
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1921,9 +1917,9 @@ function ConfirmStep({
1921
1917
  );
1922
1918
  } catch (err) {
1923
1919
  const raw = err instanceof Error ? err.message : "Signing failed";
1924
- const safeToTransfer = !submitStarted || err instanceof _chunkHAQOFI3Dcjs.PermitDepositSubmitError && err.safeToTransfer;
1920
+ const safeToTransfer = !submitStarted || err instanceof _chunk3OOY67VJcjs.PermitDepositSubmitError && err.safeToTransfer;
1925
1921
  if (safeToTransfer) setPermitDisabled(true);
1926
- const message = safeToTransfer ? _chunkHAQOFI3Dcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1922
+ const message = safeToTransfer ? _chunk3OOY67VJcjs.formatUserError.call(void 0, raw) : "Deposit submission status is uncertain. Check your activity before trying a transfer.";
1927
1923
  setError(message);
1928
1924
  _optionalChain([onError, 'optionalCall', _69 => _69(message, "PERMIT_ERROR", raw)]);
1929
1925
  } finally {
@@ -1944,7 +1940,7 @@ function ConfirmStep({
1944
1940
  const result = await executeTransfer(amountUnits);
1945
1941
  hash = result.txHash;
1946
1942
  resolvedSourceToken = result.sourceToken;
1947
- } else if (_chunkHAQOFI3Dcjs.isNativeAsset.call(void 0, asset)) {
1943
+ } else if (_chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset)) {
1948
1944
  hash = await walletClient.sendTransaction({
1949
1945
  account,
1950
1946
  chain,
@@ -1975,8 +1971,8 @@ function ConfirmStep({
1975
1971
  );
1976
1972
  } catch (err) {
1977
1973
  const raw = err instanceof Error ? err.message : "Transfer failed";
1978
- const uncertain = _chunk4J5ADVINcjs.isSubmissionUncertain.call(void 0, err);
1979
- const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunkHAQOFI3Dcjs.formatUserError.call(void 0, raw);
1974
+ const uncertain = _chunkX4D52IZKcjs.isSubmissionUncertain.call(void 0, err);
1975
+ const message = uncertain ? "Deposit submission status is uncertain. Check your activity before trying again." : _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
1980
1976
  if (uncertain) setSubmissionUncertain(true);
1981
1977
  setError(message);
1982
1978
  _optionalChain([onError, 'optionalCall', _71 => _71(message, "TRANSFER_ERROR", raw)]);
@@ -1986,7 +1982,7 @@ function ConfirmStep({
1986
1982
  };
1987
1983
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1988
1984
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1989
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}), title: "Review deposit" }),
1985
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Review deposit" }),
1990
1986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1991
1987
  ReviewDetails,
1992
1988
  {
@@ -2002,9 +1998,9 @@ function ConfirmStep({
2002
1998
  fee: { display: feeDisplay, struck: feesFullySponsored }
2003
1999
  }
2004
2000
  ),
2005
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
2001
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
2006
2002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkHAQOFI3Dcjs.Button,
2003
+ _chunk3OOY67VJcjs.Button,
2008
2004
  {
2009
2005
  onClick: handleConfirm,
2010
2006
  loading: isSubmitting,
@@ -2031,7 +2027,7 @@ function ConfirmStep({
2031
2027
  ] }),
2032
2028
  !permit && permitEligible && permitUnavailable && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-gasless-note", children: permitUnavailable === "permit2-approval-required" ? "Gasless unavailable until Permit2 is approved; Continue sends a token transaction." : "This wallet/token cannot use gasless authorization; Continue sends a token transaction." })
2033
2029
  ] }),
2034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
2030
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2035
2031
  ] });
2036
2032
  }
2037
2033
 
@@ -2051,8 +2047,8 @@ function QrReviewStep({
2051
2047
  onClose
2052
2048
  }) {
2053
2049
  const [quote, setQuote] = _react.useState.call(void 0, { state: "loading", value: null });
2054
- const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
2055
- const targetSymbol = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
2050
+ const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
2051
+ const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
2056
2052
  _react.useEffect.call(void 0, () => {
2057
2053
  let cancelled = false;
2058
2054
  let units;
@@ -2084,36 +2080,36 @@ function QrReviewStep({
2084
2080
  cancelled = true;
2085
2081
  };
2086
2082
  }, [service, smartAccount, asset, amount]);
2087
- const formattedSendAmount = _nullishCoalesce(_chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2083
+ const formattedSendAmount = _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( amount));
2088
2084
  const receiveDisplay = (() => {
2089
2085
  if (quote.value) {
2090
- const quoted = _chunkHAQOFI3Dcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2086
+ const quoted = _chunk3OOY67VJcjs.formatQuotedReceive.call(void 0, quote.value.output, targetSymbol);
2091
2087
  if (quoted !== void 0) return quoted;
2092
2088
  }
2093
2089
  const usdValue = Number(targetAmount);
2094
- const estimate = _chunkHAQOFI3Dcjs.formatReceiveEstimate.call(void 0, {
2090
+ const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
2095
2091
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
2096
2092
  sourceSymbol: asset.symbol,
2097
2093
  targetSymbol,
2098
2094
  sourceAmountUsd: Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0,
2099
- sourceTrusted: _chunkHAQOFI3Dcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2100
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHAQOFI3Dcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2095
+ sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
2096
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
2101
2097
  });
2102
2098
  return _nullishCoalesce(estimate, () => ( targetSymbol));
2103
2099
  })();
2104
2100
  const estimatedTime = quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.value.estimatedFillTimeSeconds / 60)} min` : quote.state === "loading" ? "\u2026" : "\u2014";
2105
- const { display: quotedFee, struck } = _chunkHAQOFI3Dcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _72 => _72.value, 'optionalAccess', _73 => _73.fees]));
2101
+ const { display: quotedFee, struck } = _chunk3OOY67VJcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'access', _72 => _72.value, 'optionalAccess', _73 => _73.fees]));
2106
2102
  const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
2107
2103
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2108
2104
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2109
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2105
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Fee estimate" }),
2110
2106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2111
2107
  ReviewDetails,
2112
2108
  {
2113
- sourceChainName: _chunk4KCSH4T3cjs.getChainName.call(void 0, asset.chainId),
2114
- sourceChainIcon: _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId),
2115
- targetChainName: _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId),
2116
- targetChainIcon: _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId),
2109
+ sourceChainName: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId),
2110
+ sourceChainIcon: _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId),
2111
+ targetChainName: _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId),
2112
+ targetChainIcon: _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId),
2117
2113
  estimatedTime,
2118
2114
  sendAmount: formattedSendAmount,
2119
2115
  sendSymbol: asset.symbol,
@@ -2122,9 +2118,9 @@ function QrReviewStep({
2122
2118
  fee: { display: feeDisplay, struck }
2123
2119
  }
2124
2120
  ),
2125
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2121
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Button, { onClick: onClose, fullWidth: true, children: "Close" })
2126
2122
  ] }),
2127
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
2123
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2128
2124
  ] });
2129
2125
  }
2130
2126
  QrReviewStep.displayName = "QrReviewStep";
@@ -2146,29 +2142,29 @@ var BASE_CHAIN_ID = 8453;
2146
2142
  function DepositAddressSkeleton({
2147
2143
  uiConfig
2148
2144
  }) {
2149
- const evmChainIds = _chunk4KCSH4T3cjs.getSupportedChainIds.call(void 0, );
2145
+ const evmChainIds = _chunkOY5N3E6Lcjs.getSupportedChainIds.call(void 0, );
2150
2146
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2151
- const tokensForChain = _chunk4KCSH4T3cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2147
+ const tokensForChain = _chunkOY5N3E6Lcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2152
2148
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2153
- const chainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, defaultChainId);
2154
- const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, defaultChainId);
2149
+ const chainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, defaultChainId);
2150
+ const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, defaultChainId);
2155
2151
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2156
2152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2157
2153
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2158
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2154
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2159
2155
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2160
2156
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2161
2157
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
2162
2158
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2163
2159
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2164
- _chunkHAQOFI3Dcjs.CdnIcon,
2160
+ _chunk3OOY67VJcjs.CdnIcon,
2165
2161
  {
2166
2162
  src: chainIcon,
2167
2163
  className: "rs-deposit-address-dropdown-icon"
2168
2164
  }
2169
2165
  ),
2170
2166
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2171
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2167
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2172
2168
  ] })
2173
2169
  ] }),
2174
2170
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2177,8 +2173,8 @@ function DepositAddressSkeleton({
2177
2173
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2178
2174
  "Min.$",
2179
2175
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _74 => _74.minDepositUsd]), () => ( 0.1))).toFixed(2),
2180
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4J5ADVINcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2181
- _chunkHAQOFI3Dcjs.InfoIcon,
2176
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2177
+ _chunk3OOY67VJcjs.InfoIcon,
2182
2178
  {
2183
2179
  className: "rs-deposit-address-min-icon",
2184
2180
  "aria-hidden": "true"
@@ -2188,14 +2184,14 @@ function DepositAddressSkeleton({
2188
2184
  ] }),
2189
2185
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2190
2186
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2191
- _chunkHAQOFI3Dcjs.TokenIcon,
2187
+ _chunk3OOY67VJcjs.TokenIcon,
2192
2188
  {
2193
2189
  symbol: defaultToken,
2194
2190
  className: "rs-deposit-address-dropdown-icon"
2195
2191
  }
2196
2192
  ),
2197
2193
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2198
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2199
2195
  ] })
2200
2196
  ] })
2201
2197
  ] }),
@@ -2210,7 +2206,7 @@ function DepositAddressSkeleton({
2210
2206
  ] }),
2211
2207
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-actions", "aria-hidden": "true", children: [
2212
2208
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "rs-deposit-address-copy", disabled: true, children: [
2213
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CopyIcon, {}),
2209
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CopyIcon, {}),
2214
2210
  "Copy address"
2215
2211
  ] }),
2216
2212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2227,7 +2223,7 @@ function DepositAddressSkeleton({
2227
2223
  }
2228
2224
  )
2229
2225
  ] }),
2230
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
2226
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
2231
2227
  ] });
2232
2228
  }
2233
2229
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2239,9 +2235,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
2239
2235
  var MAX_POLL_INTERVAL = 3e4;
2240
2236
  var BACKOFF_MULTIPLIER = 1.5;
2241
2237
  function isEventForTx(event, txHash) {
2242
- const eventTxHash = _chunk4J5ADVINcjs.getEventTxHash.call(void 0, event);
2238
+ const eventTxHash = _chunkX4D52IZKcjs.getEventTxHash.call(void 0, event);
2243
2239
  if (!eventTxHash) return false;
2244
- return _chunk4J5ADVINcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2240
+ return _chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
2245
2241
  }
2246
2242
  function truncateHash(hash) {
2247
2243
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -2291,7 +2287,7 @@ function formatBridgeFailedMessage(event) {
2291
2287
  }
2292
2288
  return "Bridge failed";
2293
2289
  }
2294
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2290
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
2295
2291
  function DepositNotification({
2296
2292
  deposit,
2297
2293
  smartAccount,
@@ -2325,7 +2321,7 @@ function DepositNotification({
2325
2321
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
2326
2322
  const pollTimeoutRef = _react.useRef.call(void 0, null);
2327
2323
  const completedRef = _react.useRef.call(void 0, false);
2328
- const depositContextRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, {
2324
+ const depositContextRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, {
2329
2325
  amount,
2330
2326
  sourceChain,
2331
2327
  sourceToken: token,
@@ -2333,8 +2329,8 @@ function DepositNotification({
2333
2329
  targetChain,
2334
2330
  targetToken
2335
2331
  });
2336
- const onCompleteRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onComplete);
2337
- const onFailedRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onFailed);
2332
+ const onCompleteRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onComplete);
2333
+ const onFailedRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onFailed);
2338
2334
  const handleComplete = _react.useCallback.call(void 0,
2339
2335
  (destTxHash) => {
2340
2336
  if (completedRef.current) return;
@@ -2425,12 +2421,12 @@ function DepositNotification({
2425
2421
  status,
2426
2422
  txHash
2427
2423
  ]);
2428
- const explorerTxUrl = _chunkHAQOFI3Dcjs.useExplorerTxUrl.call(void 0, );
2424
+ const explorerTxUrl = _chunk3OOY67VJcjs.useExplorerTxUrl.call(void 0, );
2429
2425
  const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
2430
- const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2426
+ const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
2431
2427
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
2432
2428
  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.";
2433
- 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, _chunkHAQOFI3Dcjs.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, _chunkHAQOFI3Dcjs.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,
2429
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2434
2430
  "svg",
2435
2431
  {
2436
2432
  className: "rs-deposit-notification-spinner",
@@ -2480,7 +2476,7 @@ function DepositNotification({
2480
2476
  className: "rs-deposit-notification-close",
2481
2477
  onClick: () => onDismiss(deposit.id),
2482
2478
  "aria-label": "Dismiss",
2483
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CloseIcon, {})
2479
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {})
2484
2480
  }
2485
2481
  )
2486
2482
  ] }),
@@ -2496,7 +2492,7 @@ function DepositNotification({
2496
2492
  "aria-expanded": expanded,
2497
2493
  children: [
2498
2494
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
2499
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2495
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
2500
2496
  ]
2501
2497
  }
2502
2498
  ),
@@ -2551,9 +2547,9 @@ function DepositNotification({
2551
2547
  var SOLANA_NATIVE_MINT = "11111111111111111111111111111111";
2552
2548
  var EVM_ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
2553
2549
  function sourceChainToCaip2(chain) {
2554
- if (chain === "solana") return _chunk4KCSH4T3cjs.SOLANA_MAINNET_CAIP2;
2555
- if (chain === "hypercore") return _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2;
2556
- return _chunk4KCSH4T3cjs.toEvmCaip2.call(void 0, chain);
2550
+ if (chain === "solana") return _chunkOY5N3E6Lcjs.SOLANA_MAINNET_CAIP2;
2551
+ if (chain === "hypercore") return _chunkOY5N3E6Lcjs.HYPERCORE_SPOT_CAIP2;
2552
+ return _chunkOY5N3E6Lcjs.toEvmCaip2.call(void 0, chain);
2557
2553
  }
2558
2554
  function findAddress(tokens, symbol) {
2559
2555
  return _optionalChain([tokens, 'optionalAccess', _88 => _88.find, 'call', _89 => _89((t) => t.symbol.toLowerCase() === symbol.toLowerCase()), 'optionalAccess', _90 => _90.address]);
@@ -2610,7 +2606,7 @@ function asString(value) {
2610
2606
  function resolveSolanaTokenMeta(token) {
2611
2607
  if (!token) return {};
2612
2608
  const normalized = token.toLowerCase();
2613
- const matched = _chunk4KCSH4T3cjs.SOLANA_TOKENS.find(
2609
+ const matched = _chunkOY5N3E6Lcjs.SOLANA_TOKENS.find(
2614
2610
  (entry) => entry.mint.toLowerCase() === normalized
2615
2611
  );
2616
2612
  if (matched) {
@@ -2653,7 +2649,7 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2653
2649
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2654
2650
  }
2655
2651
  function chainLabel(chainId, catalogChain) {
2656
- const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _100 => _100.name]), () => ( _chunk4KCSH4T3cjs.getChainName.call(void 0, chainId)));
2652
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _100 => _100.name]), () => ( _chunkOY5N3E6Lcjs.getChainName.call(void 0, chainId)));
2657
2653
  return name.replace(/\s+(One|Mainnet|Smart Chain|Chain)$/i, "");
2658
2654
  }
2659
2655
  function computeTokensForChain(chainId, topTokens, catalogChain) {
@@ -2681,7 +2677,7 @@ function selectionAsAsset(chainId, symbol, topTokens, catalogChain) {
2681
2677
  }
2682
2678
  function TokenGlyph({ symbol }) {
2683
2679
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2684
- _chunkHAQOFI3Dcjs.TokenIcon,
2680
+ _chunk3OOY67VJcjs.TokenIcon,
2685
2681
  {
2686
2682
  symbol,
2687
2683
  className: "rs-deposit-address-dropdown-icon",
@@ -2721,19 +2717,19 @@ function DepositAddressStep({
2721
2717
  if (!active) return;
2722
2718
  setTopTokens(t);
2723
2719
  setTopTokensSettled(true);
2724
- if (t) _chunk4KCSH4T3cjs.publishShortlistTokens.call(void 0, t);
2720
+ if (t) _chunkOY5N3E6Lcjs.publishShortlistTokens.call(void 0, t);
2725
2721
  });
2726
2722
  return () => {
2727
2723
  active = false;
2728
2724
  };
2729
2725
  }, [service]);
2730
2726
  const BASE_CHAIN_ID2 = 8453;
2731
- const evmChainIds = _chunkHAQOFI3Dcjs.useDepositChainIds.call(void 0, );
2732
- const { catalog, isLoading: catalogLoading } = _chunkHAQOFI3Dcjs.useChainCatalog.call(void 0, );
2727
+ const evmChainIds = _chunk3OOY67VJcjs.useDepositChainIds.call(void 0, );
2728
+ const { catalog, isLoading: catalogLoading } = _chunk3OOY67VJcjs.useChainCatalog.call(void 0, );
2733
2729
  const catalogFor = _react.useCallback.call(void 0,
2734
2730
  (chain) => {
2735
2731
  if (!catalog) return void 0;
2736
- const key = _chunkHAQOFI3Dcjs.catalogKeyForChain.call(void 0, chain);
2732
+ const key = _chunk3OOY67VJcjs.catalogKeyForChain.call(void 0, chain);
2737
2733
  return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2738
2734
  },
2739
2735
  [catalog]
@@ -2938,10 +2934,10 @@ function DepositAddressStep({
2938
2934
  return;
2939
2935
  }
2940
2936
  const event = status.lastEvent;
2941
- const eventTxHash = _chunk4J5ADVINcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk4J5ADVINcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2937
+ const eventTxHash = _chunkX4D52IZKcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkX4D52IZKcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2942
2938
  if (baselineTxHashRef.current === void 0) {
2943
2939
  baselineTxHashRef.current = eventTxHash;
2944
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk4J5ADVINcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2940
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2945
2941
  const details = getDepositEventDetails(event);
2946
2942
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
2947
2943
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -2950,7 +2946,7 @@ function DepositAddressStep({
2950
2946
  baselineTxHashRef.current = eventTxHash;
2951
2947
  isTrackingRef.current = true;
2952
2948
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
2953
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunk4KCSH4T3cjs.findTokenDecimals.call(void 0,
2949
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkOY5N3E6Lcjs.findTokenDecimals.call(void 0,
2954
2950
  token,
2955
2951
  typeof chainId === "number" ? chainId : void 0
2956
2952
  ) : void 0)));
@@ -3015,7 +3011,7 @@ function DepositAddressStep({
3015
3011
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
3016
3012
  setNotifications((prev) => prev.filter((n) => n.id !== id));
3017
3013
  }, []);
3018
- const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _140 => _140(sourceChainId), 'optionalAccess', _141 => _141.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, sourceChainId)));
3014
+ const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _140 => _140(sourceChainId), 'optionalAccess', _141 => _141.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId)));
3019
3015
  const reviewAsset = selectionAsAsset(
3020
3016
  sourceChainId,
3021
3017
  sourceTokenSymbol,
@@ -3025,13 +3021,13 @@ function DepositAddressStep({
3025
3021
  if (chainOptions.length === 0) {
3026
3022
  if (catalogLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositAddressSkeleton, { uiConfig });
3027
3023
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3028
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3029
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3024
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3025
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: "Supported chains are unavailable right now, so there is no deposit address to show. Close and try again in a moment." })
3030
3026
  ] }) });
3031
3027
  }
3032
3028
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
3033
3029
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3030
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3035
3031
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
3036
3032
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
3037
3033
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -3047,14 +3043,14 @@ function DepositAddressStep({
3047
3043
  },
3048
3044
  children: [
3049
3045
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3050
- _chunkHAQOFI3Dcjs.CdnIcon,
3046
+ _chunk3OOY67VJcjs.CdnIcon,
3051
3047
  {
3052
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _142 => _142(sourceChainId), 'optionalAccess', _143 => _143.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, sourceChainId))),
3048
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _142 => _142(sourceChainId), 'optionalAccess', _143 => _143.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, sourceChainId))),
3053
3049
  className: "rs-deposit-address-dropdown-icon"
3054
3050
  }
3055
3051
  ),
3056
3052
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
3057
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3053
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3058
3054
  ]
3059
3055
  }
3060
3056
  ),
@@ -3066,9 +3062,9 @@ function DepositAddressStep({
3066
3062
  onClick: () => handleSelectChain(chainId),
3067
3063
  children: [
3068
3064
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3069
- _chunkHAQOFI3Dcjs.CdnIcon,
3065
+ _chunk3OOY67VJcjs.CdnIcon,
3070
3066
  {
3071
- src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _144 => _144(chainId), 'optionalAccess', _145 => _145.iconUrl]), () => ( _chunk4KCSH4T3cjs.getChainIcon.call(void 0, chainId))),
3067
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _144 => _144(chainId), 'optionalAccess', _145 => _145.iconUrl]), () => ( _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chainId))),
3072
3068
  className: "rs-deposit-address-dropdown-icon"
3073
3069
  }
3074
3070
  ),
@@ -3083,9 +3079,9 @@ function DepositAddressStep({
3083
3079
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
3084
3080
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3085
3081
  "Min.$",
3086
- (_chunk4KCSH4T3cjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunk4KCSH4T3cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _146 => _146.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _147 => _147.minDepositUsd]), () => ( 0.1))).toFixed(2),
3087
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4J5ADVINcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3088
- _chunkHAQOFI3Dcjs.InfoIcon,
3082
+ (_chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _146 => _146.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _147 => _147.minDepositUsd]), () => ( 0.1))).toFixed(2),
3083
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4D52IZKcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3084
+ _chunk3OOY67VJcjs.InfoIcon,
3089
3085
  {
3090
3086
  className: "rs-deposit-address-min-icon",
3091
3087
  "aria-hidden": "true"
@@ -3106,7 +3102,7 @@ function DepositAddressStep({
3106
3102
  children: [
3107
3103
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
3108
3104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
3109
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3105
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3110
3106
  ]
3111
3107
  }
3112
3108
  ),
@@ -3151,7 +3147,7 @@ function DepositAddressStep({
3151
3147
  className: "rs-deposit-address-copy",
3152
3148
  onClick: handleCopy,
3153
3149
  children: [
3154
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CopyIcon, {}),
3150
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CopyIcon, {}),
3155
3151
  copied ? "Copied!" : "Copy address"
3156
3152
  ]
3157
3153
  }
@@ -3186,7 +3182,7 @@ function DepositAddressStep({
3186
3182
  },
3187
3183
  deposit.id
3188
3184
  )) }),
3189
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
3185
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3190
3186
  ] });
3191
3187
  }
3192
3188
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -3243,7 +3239,7 @@ function FinalisingDepositStep() {
3243
3239
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
3244
3240
  ] })
3245
3241
  ] }),
3246
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
3242
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3247
3243
  ] });
3248
3244
  }
3249
3245
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -3273,7 +3269,7 @@ function SwappedOrderTracker({
3273
3269
  ];
3274
3270
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
3275
3271
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3276
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HandCoinsIcon, {}), title }),
3272
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.HandCoinsIcon, {}), title }),
3277
3273
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
3278
3274
  const status = stepStates[idx];
3279
3275
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -3287,7 +3283,7 @@ function SwappedOrderTracker({
3287
3283
  {
3288
3284
  className: "rs-swapped-tracker-step-marker",
3289
3285
  "aria-hidden": "true",
3290
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3286
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3291
3287
  "svg",
3292
3288
  {
3293
3289
  className: "rs-swapped-tracker-step-ring",
@@ -3322,7 +3318,7 @@ function SwappedOrderTracker({
3322
3318
  }
3323
3319
  )
3324
3320
  ] }),
3325
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
3321
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3326
3322
  ] });
3327
3323
  }
3328
3324
  function formatTrackerAmount(amount) {
@@ -3610,10 +3606,10 @@ function SwappedProviderStep({
3610
3606
  const status = await service.fetchLatestStatus(smartAccount);
3611
3607
  if (cancelled) return;
3612
3608
  const event = status.lastEvent;
3613
- const eventTxHash = _chunk4J5ADVINcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk4J5ADVINcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3609
+ const eventTxHash = _chunkX4D52IZKcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkX4D52IZKcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
3614
3610
  if (baselineDepositTxHashRef.current === void 0) {
3615
3611
  baselineDepositTxHashRef.current = eventTxHash;
3616
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk4J5ADVINcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3612
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkX4D52IZKcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
3617
3613
  currentDepositTxHashRef.current = eventTxHash;
3618
3614
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
3619
3615
  }
@@ -3688,10 +3684,10 @@ function SwappedProviderStep({
3688
3684
  [orderState, latestEvent]
3689
3685
  );
3690
3686
  const terminalState = _react.useMemo.call(void 0, () => {
3691
- if (_chunk4J5ADVINcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3687
+ if (_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3692
3688
  return {
3693
3689
  kind: "failed",
3694
- message: _chunk4J5ADVINcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3690
+ message: _chunkX4D52IZKcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3695
3691
  };
3696
3692
  }
3697
3693
  if (_optionalChain([orderState, 'optionalAccess', _178 => _178.status]) === "order_cancelled") {
@@ -3717,7 +3713,7 @@ function SwappedProviderStep({
3717
3713
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _183 => _183.orderCrypto]), () => ( null)),
3718
3714
  // Base-unit source amount from the deposit row/event, consistent with the
3719
3715
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3720
- amount: _nullishCoalesce(_chunk4J5ADVINcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3716
+ amount: _nullishCoalesce(_chunkX4D52IZKcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3721
3717
  expectedOrderUuid: expectedOrderUuidRef.current,
3722
3718
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3723
3719
  };
@@ -3728,14 +3724,14 @@ function SwappedProviderStep({
3728
3724
  }, [latestEvent, orderState, smartAccount]);
3729
3725
  _react.useEffect.call(void 0, () => {
3730
3726
  if (failedFiredRef.current || completeFiredRef.current) return;
3731
- if (!_chunk4J5ADVINcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3727
+ if (!_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3732
3728
  const txHash = currentDepositTxHashRef.current;
3733
3729
  if (!txHash) return;
3734
3730
  failedFiredRef.current = true;
3735
3731
  setPhase("tracker");
3736
3732
  _optionalChain([onSwappedFailedRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185(
3737
3733
  txHash,
3738
- _chunk4J5ADVINcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3734
+ _chunkX4D52IZKcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3739
3735
  )]);
3740
3736
  }, [latestEvent]);
3741
3737
  const immersive = !openExternally && variant === "fiat" && phase === "provider" && !loadError;
@@ -3785,7 +3781,7 @@ function SwappedProviderStep({
3785
3781
  }
3786
3782
  )
3787
3783
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3788
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, {}),
3784
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}),
3789
3785
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-swapped-handoff-text", children: [
3790
3786
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-swapped-handoff-title", children: handoffOpened ? variant === "fiat" ? "Finish paying in your browser" : "Approve the transfer in your browser" : "Opening your browser\u2026" }),
3791
3787
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-swapped-handoff-subtitle", children: handoffOpened ? (
@@ -3809,7 +3805,7 @@ function SwappedProviderStep({
3809
3805
  }
3810
3806
  )
3811
3807
  ] }) }),
3812
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
3808
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3813
3809
  ] });
3814
3810
  }
3815
3811
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
@@ -3826,7 +3822,7 @@ function SwappedProviderStep({
3826
3822
  }
3827
3823
  )
3828
3824
  ] }),
3829
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, {}) }),
3825
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) }),
3830
3826
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3831
3827
  "iframe",
3832
3828
  {
@@ -3849,11 +3845,11 @@ function SwappedProviderStep({
3849
3845
  retryToken
3850
3846
  )
3851
3847
  ] }) }),
3852
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
3848
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
3853
3849
  ] });
3854
3850
  }
3855
3851
  function deriveStepStates(swappedStatus, latestEvent) {
3856
- if (_chunk4J5ADVINcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3852
+ if (_chunkX4D52IZKcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3857
3853
  return ["complete", "complete", "failed", "pending"];
3858
3854
  }
3859
3855
  if (swappedStatus === "order_cancelled") {
@@ -4063,7 +4059,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
4063
4059
  function ExchangeLogo({ exchange }) {
4064
4060
  const [failed, setFailed] = _react.useState.call(void 0, false);
4065
4061
  if (!exchange.logoUrl || failed) {
4066
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BankIcon, {});
4062
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BankIcon, {});
4067
4063
  }
4068
4064
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4069
4065
  "img",
@@ -4144,14 +4140,14 @@ function ExchangeSelectStep({
4144
4140
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
4145
4141
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4146
4142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4147
- _chunkHAQOFI3Dcjs.BodyHeader,
4143
+ _chunk3OOY67VJcjs.BodyHeader,
4148
4144
  {
4149
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.UnplugIcon, {}),
4145
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.UnplugIcon, {}),
4150
4146
  title: "Connect exchange",
4151
4147
  subtitle: "Select an exchange to connect"
4152
4148
  }
4153
4149
  ),
4154
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, {}) }),
4150
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, {}) }),
4155
4151
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
4156
4152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
4157
4153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4177,7 +4173,7 @@ function ExchangeSelectStep({
4177
4173
  )
4178
4174
  ] }),
4179
4175
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
4180
- const brand = _chunk4J5ADVINcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4176
+ const brand = _chunkX4D52IZKcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
4181
4177
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4182
4178
  "button",
4183
4179
  {
@@ -4202,7 +4198,7 @@ function ExchangeSelectStep({
4202
4198
  );
4203
4199
  }) })
4204
4200
  ] }),
4205
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {}),
4201
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {}),
4206
4202
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
4207
4203
  "A ",
4208
4204
  formatFeeRate(exchangeFeeBps),
@@ -4240,14 +4236,14 @@ function SolanaTokenSelectStep({
4240
4236
  setError(null);
4241
4237
  const portfolioBySymbol = {};
4242
4238
  try {
4243
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4239
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
4244
4240
  solanaAddress
4245
4241
  });
4246
4242
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
4247
4243
  if (!active) return;
4248
4244
  for (const t of portfolio.tokens) {
4249
4245
  const symbol = t.symbol.toUpperCase();
4250
- if (!_chunk4KCSH4T3cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
4246
+ if (!_chunkOY5N3E6Lcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
4251
4247
  let parsed = 0n;
4252
4248
  try {
4253
4249
  parsed = BigInt(t.balance || "0");
@@ -4263,12 +4259,12 @@ function SolanaTokenSelectStep({
4263
4259
  };
4264
4260
  }
4265
4261
  }
4266
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4262
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
4267
4263
  symbols: Object.keys(portfolioBySymbol)
4268
4264
  });
4269
4265
  } catch (err) {
4270
4266
  if (!active) return;
4271
- _chunkHAQOFI3Dcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4267
+ _chunk3OOY67VJcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
4272
4268
  solanaAddress
4273
4269
  });
4274
4270
  setError(
@@ -4279,7 +4275,7 @@ function SolanaTokenSelectStep({
4279
4275
  return;
4280
4276
  }
4281
4277
  const results = [];
4282
- for (const token of _chunk4KCSH4T3cjs.SOLANA_TOKENS) {
4278
+ for (const token of _chunkOY5N3E6Lcjs.SOLANA_TOKENS) {
4283
4279
  const fromPortfolio = portfolioBySymbol[token.symbol];
4284
4280
  if (fromPortfolio && fromPortfolio.balance > 0n) {
4285
4281
  results.push({
@@ -4315,30 +4311,30 @@ function SolanaTokenSelectStep({
4315
4311
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
4316
4312
  const numeric = Number(raw);
4317
4313
  if (!Number.isFinite(numeric)) return raw;
4318
- return _chunkHAQOFI3Dcjs.tokenFormatter.format(numeric);
4314
+ return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
4319
4315
  } catch (e27) {
4320
4316
  return "--";
4321
4317
  }
4322
4318
  };
4323
- const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, "solana");
4324
- const chainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, "solana");
4319
+ const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, "solana");
4320
+ const chainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, "solana");
4325
4321
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4326
4322
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
4327
4323
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4328
- _chunkHAQOFI3Dcjs.BodyHeader,
4324
+ _chunk3OOY67VJcjs.BodyHeader,
4329
4325
  {
4330
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}),
4326
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
4331
4327
  title: "Your assets",
4332
4328
  subtitle: "Select source assets to transfer"
4333
4329
  }
4334
4330
  ),
4335
4331
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
4336
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, { className: "rs-text-tertiary" }),
4332
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-text-tertiary" }),
4337
4333
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
4338
4334
  ] }),
4339
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
4335
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4340
4336
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
4341
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, { className: "rs-empty-icon" }),
4337
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, { className: "rs-empty-icon" }),
4342
4338
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
4343
4339
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
4344
4340
  solanaAddress.slice(0, 6),
@@ -4369,13 +4365,13 @@ function SolanaTokenSelectStep({
4369
4365
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4370
4366
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4371
4367
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4372
- _chunkHAQOFI3Dcjs.TokenIcon,
4368
+ _chunk3OOY67VJcjs.TokenIcon,
4373
4369
  {
4374
4370
  symbol: entry.token.symbol,
4375
4371
  fallback: entry.token.symbol.slice(0, 4)
4376
4372
  }
4377
4373
  ) }),
4378
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4374
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
4379
4375
  ] }),
4380
4376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
4381
4377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -4392,14 +4388,14 @@ function SolanaTokenSelectStep({
4392
4388
  ] })
4393
4389
  ] })
4394
4390
  ] }),
4395
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkHAQOFI3Dcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
4396
4392
  ]
4397
4393
  },
4398
4394
  entry.token.symbol
4399
4395
  );
4400
4396
  }) }),
4401
4397
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4402
- _chunkHAQOFI3Dcjs.Button,
4398
+ _chunk3OOY67VJcjs.Button,
4403
4399
  {
4404
4400
  onClick: () => selectedEntry && onContinue(
4405
4401
  selectedEntry.token,
@@ -4412,7 +4408,7 @@ function SolanaTokenSelectStep({
4412
4408
  }
4413
4409
  )
4414
4410
  ] }),
4415
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
4411
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4416
4412
  ] });
4417
4413
  }
4418
4414
 
@@ -4443,7 +4439,7 @@ function SolanaAmountStep({
4443
4439
  const [amount, setAmount] = _react.useState.call(void 0, "");
4444
4440
  const [error, setError] = _react.useState.call(void 0, null);
4445
4441
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
4446
- const isSourceStablecoin = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, token.symbol);
4442
+ const isSourceStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, token.symbol);
4447
4443
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _202 => _202.trim, 'call', _203 => _203(), 'access', _204 => _204.toLowerCase, 'call', _205 => _205()]) === "max";
4448
4444
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
4449
4445
  if (isSourceStablecoin) return 1;
@@ -4464,7 +4460,7 @@ function SolanaAmountStep({
4464
4460
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
4465
4461
  const numeric = Number(raw);
4466
4462
  if (!Number.isFinite(numeric)) return raw;
4467
- return _chunkHAQOFI3Dcjs.tokenFormatter.format(numeric);
4463
+ return _chunk3OOY67VJcjs.tokenFormatter.format(numeric);
4468
4464
  } catch (e29) {
4469
4465
  return "\u2026";
4470
4466
  }
@@ -4481,7 +4477,7 @@ function SolanaAmountStep({
4481
4477
  }
4482
4478
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
4483
4479
  const spendableBalance = _react.useMemo.call(void 0, () => {
4484
- if (!_chunk4KCSH4T3cjs.isNativeSol.call(void 0, token)) return balance;
4480
+ if (!_chunkOY5N3E6Lcjs.isNativeSol.call(void 0, token)) return balance;
4485
4481
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
4486
4482
  }, [balance, token]);
4487
4483
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -4546,7 +4542,7 @@ function SolanaAmountStep({
4546
4542
  return null;
4547
4543
  }
4548
4544
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
4549
- const minDepositUsd = _chunk4KCSH4T3cjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunk4KCSH4T3cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _206 => _206.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _207 => _207.minDepositUsd]), () => ( null));
4545
+ const minDepositUsd = _chunkOY5N3E6Lcjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkOY5N3E6Lcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _206 => _206.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _207 => _207.minDepositUsd]), () => ( null));
4550
4546
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _208 => _208.maxDepositUsd]), () => ( null));
4551
4547
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
4552
4548
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -4557,7 +4553,7 @@ function SolanaAmountStep({
4557
4553
  const handlePresetClick = (percentage) => {
4558
4554
  const formatted = computePresetAmount(percentage);
4559
4555
  if (!formatted) return;
4560
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4556
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
4561
4557
  percentage,
4562
4558
  symbol: token.symbol,
4563
4559
  formatted
@@ -4592,7 +4588,7 @@ function SolanaAmountStep({
4592
4588
  try {
4593
4589
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
4594
4590
  } catch (e34) {
4595
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4591
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4596
4592
  amount,
4597
4593
  sourceAmount: sourceAmountStr,
4598
4594
  reason: "parse-units-failed"
@@ -4601,13 +4597,13 @@ function SolanaAmountStep({
4601
4597
  return;
4602
4598
  }
4603
4599
  if (amountInUnits > spendableBalance) {
4604
- const isReserveIssue = _chunk4KCSH4T3cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
4600
+ const isReserveIssue = _chunkOY5N3E6Lcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
4605
4601
  setError(
4606
4602
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
4607
4603
  );
4608
4604
  return;
4609
4605
  }
4610
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4606
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4611
4607
  symbol: token.symbol,
4612
4608
  inputAmountUsd: amount,
4613
4609
  sourceAmount: sourceAmountStr,
@@ -4620,7 +4616,7 @@ function SolanaAmountStep({
4620
4616
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
4621
4617
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4622
4618
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4623
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}), title: "Wallet deposit" }),
4619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Wallet deposit" }),
4624
4620
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
4625
4621
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
4626
4622
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4640,13 +4636,13 @@ function SolanaAmountStep({
4640
4636
  " available",
4641
4637
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4642
4638
  " (~",
4643
- _chunkHAQOFI3Dcjs.currencyFormatter.format(computedBalanceUsd),
4639
+ _chunk3OOY67VJcjs.currencyFormatter.format(computedBalanceUsd),
4644
4640
  ")"
4645
4641
  ] })
4646
4642
  ] }),
4647
4643
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4648
4644
  "Min. deposit ",
4649
- _chunkHAQOFI3Dcjs.currencyFormatter.format(minDepositUsd)
4645
+ _chunk3OOY67VJcjs.currencyFormatter.format(minDepositUsd)
4650
4646
  ] })
4651
4647
  ] })
4652
4648
  ] }),
@@ -4669,7 +4665,7 @@ function SolanaAmountStep({
4669
4665
  "Solana ",
4670
4666
  token.symbol
4671
4667
  ] }),
4672
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: token.symbol }) })
4668
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: token.symbol }) })
4673
4669
  ] })
4674
4670
  ] }),
4675
4671
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4680,17 +4676,17 @@ function SolanaAmountStep({
4680
4676
  " ",
4681
4677
  targetTokenSymbol
4682
4678
  ] }),
4683
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4679
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4684
4680
  ] })
4685
4681
  ] }),
4686
4682
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4687
4683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4688
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkHAQOFI3Dcjs.currencyFormatter.format(balanceAfterUsd) })
4684
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk3OOY67VJcjs.currencyFormatter.format(balanceAfterUsd) })
4689
4685
  ] })
4690
4686
  ] }),
4691
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
4687
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4692
4688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4693
- _chunkHAQOFI3Dcjs.Button,
4689
+ _chunk3OOY67VJcjs.Button,
4694
4690
  {
4695
4691
  onClick: handleContinue,
4696
4692
  fullWidth: true,
@@ -4699,7 +4695,7 @@ function SolanaAmountStep({
4699
4695
  }
4700
4696
  )
4701
4697
  ] }),
4702
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
4698
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4703
4699
  ] });
4704
4700
  }
4705
4701
 
@@ -4719,10 +4715,10 @@ function loadSolanaDependencies() {
4719
4715
  return dependenciesPromise2;
4720
4716
  }
4721
4717
  function getSolanaRpcUrl(rpcUrls) {
4722
- return _nullishCoalesce(_chunkHAQOFI3Dcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4718
+ return _nullishCoalesce(_chunk3OOY67VJcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4723
4719
  }
4724
4720
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4725
- return _chunkHAQOFI3Dcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4721
+ return _chunk3OOY67VJcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4726
4722
  }
4727
4723
  async function getSolanaConnection(rpcUrls) {
4728
4724
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4836,39 +4832,46 @@ function SolanaConfirmStep({
4836
4832
  estimatedTime = "< 1 min",
4837
4833
  onConfirm,
4838
4834
  onError,
4835
+ onSubmittingChange,
4839
4836
  debug
4840
4837
  }) {
4841
- const rpcUrls = _chunkHAQOFI3Dcjs.useRpcUrls.call(void 0, );
4838
+ const rpcUrls = _chunk3OOY67VJcjs.useRpcUrls.call(void 0, );
4842
4839
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4843
4840
  const [error, setError] = _react.useState.call(void 0, null);
4844
- const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
4845
- const targetSymbol = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
4846
- const sourceChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, "solana");
4847
- const targetChainName = _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId);
4848
- const sourceChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, "solana");
4849
- const targetChainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId);
4850
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _209 => _209.feeSponsored]), () => ( false));
4851
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _210 => _210.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4852
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4841
+ const onSubmittingChangeRef = _react.useRef.call(void 0, onSubmittingChange);
4842
+ onSubmittingChangeRef.current = onSubmittingChange;
4843
+ _react.useEffect.call(void 0, () => {
4844
+ _optionalChain([onSubmittingChangeRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210(isSubmitting)]);
4845
+ return () => _optionalChain([onSubmittingChangeRef, 'access', _211 => _211.current, 'optionalCall', _212 => _212(false)]);
4846
+ }, [isSubmitting]);
4847
+ const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
4848
+ const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
4849
+ const sourceChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, "solana");
4850
+ const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId);
4851
+ const sourceChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, "solana");
4852
+ const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChainId);
4853
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _213 => _213.feeSponsored]), () => ( false));
4854
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _214 => _214.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4855
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4853
4856
  const receiveDisplay = (() => {
4854
4857
  const usdValue = Number(targetAmount);
4855
4858
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4856
- const estimate = _chunkHAQOFI3Dcjs.formatReceiveEstimate.call(void 0, {
4859
+ const estimate = _chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
4857
4860
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4858
4861
  sourceSymbol: token.symbol,
4859
4862
  targetSymbol,
4860
4863
  sourceAmountUsd,
4861
- sourceTrusted: _chunkHAQOFI3Dcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4864
+ sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4862
4865
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4863
4866
  // to the source (a held token). See ConfirmStep for the rationale.
4864
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkHAQOFI3Dcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4867
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk3OOY67VJcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4865
4868
  });
4866
4869
  if (estimate !== void 0) return estimate;
4867
4870
  return targetSymbol;
4868
4871
  })();
4869
4872
  const handleConfirm = async () => {
4870
4873
  if (!solanaProvider) {
4871
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4874
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4872
4875
  reason: "missing-provider"
4873
4876
  });
4874
4877
  setError("Solana wallet not connected");
@@ -4876,7 +4879,7 @@ function SolanaConfirmStep({
4876
4879
  }
4877
4880
  const parsedAmount = parseFloat(sourceAmount);
4878
4881
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4879
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4882
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4880
4883
  reason: "invalid-amount",
4881
4884
  sourceAmount
4882
4885
  });
@@ -4885,7 +4888,7 @@ function SolanaConfirmStep({
4885
4888
  }
4886
4889
  setError(null);
4887
4890
  setIsSubmitting(true);
4888
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4891
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4889
4892
  smartAccount,
4890
4893
  solanaAddress,
4891
4894
  solanaDepositAddress,
@@ -4895,7 +4898,7 @@ function SolanaConfirmStep({
4895
4898
  });
4896
4899
  try {
4897
4900
  const check = await service.checkAccount(smartAccount);
4898
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4901
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4899
4902
  smartAccount,
4900
4903
  isRegistered: check.isRegistered,
4901
4904
  targetChain: check.targetChain,
@@ -4908,12 +4911,12 @@ function SolanaConfirmStep({
4908
4911
  }
4909
4912
  const connection = await (hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls))));
4910
4913
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4911
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4914
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4912
4915
  token: token.symbol,
4913
4916
  sourceAmount,
4914
4917
  amountUnits: amountUnits.toString()
4915
4918
  });
4916
- const transaction = _chunk4KCSH4T3cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
4919
+ const transaction = _chunkOY5N3E6Lcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
4917
4920
  connection,
4918
4921
  solanaAddress,
4919
4922
  solanaDepositAddress,
@@ -4925,10 +4928,10 @@ function SolanaConfirmStep({
4925
4928
  token.mint,
4926
4929
  amountUnits
4927
4930
  );
4928
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4931
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4929
4932
  token: token.symbol,
4930
4933
  instructionCount: transaction.instructions.length,
4931
- feePayer: _optionalChain([transaction, 'access', _211 => _211.feePayer, 'optionalAccess', _212 => _212.toBase58, 'call', _213 => _213()]),
4934
+ feePayer: _optionalChain([transaction, 'access', _215 => _215.feePayer, 'optionalAccess', _216 => _216.toBase58, 'call', _217 => _217()]),
4932
4935
  recentBlockhash: transaction.recentBlockhash
4933
4936
  });
4934
4937
  const txHash = await sendSolanaTransaction(
@@ -4936,7 +4939,7 @@ function SolanaConfirmStep({
4936
4939
  connection,
4937
4940
  transaction
4938
4941
  );
4939
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4942
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4940
4943
  txHash,
4941
4944
  amountUnits: amountUnits.toString()
4942
4945
  });
@@ -4948,21 +4951,21 @@ function SolanaConfirmStep({
4948
4951
  });
4949
4952
  } catch (err) {
4950
4953
  const raw = err instanceof Error ? err.message : "Transfer failed";
4951
- const message = _chunkHAQOFI3Dcjs.formatUserError.call(void 0, raw);
4952
- _chunkHAQOFI3Dcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4954
+ const message = _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
4955
+ _chunk3OOY67VJcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4953
4956
  smartAccount,
4954
4957
  token: token.symbol,
4955
4958
  sourceAmount
4956
4959
  });
4957
4960
  setError(message);
4958
- _optionalChain([onError, 'optionalCall', _214 => _214(message, "SOLANA_TRANSFER_ERROR", raw)]);
4961
+ _optionalChain([onError, 'optionalCall', _218 => _218(message, "SOLANA_TRANSFER_ERROR", raw)]);
4959
4962
  } finally {
4960
4963
  setIsSubmitting(false);
4961
4964
  }
4962
4965
  };
4963
4966
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4964
4967
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4965
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}), title: "Review deposit" }),
4968
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}), title: "Review deposit" }),
4966
4969
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4967
4970
  ReviewDetails,
4968
4971
  {
@@ -4978,9 +4981,9 @@ function SolanaConfirmStep({
4978
4981
  fee: { display: "$0.04", struck: feeSponsored, tooltip: feeTooltip }
4979
4982
  }
4980
4983
  ),
4981
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: error }),
4984
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
4982
4985
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4983
- _chunkHAQOFI3Dcjs.Button,
4986
+ _chunk3OOY67VJcjs.Button,
4984
4987
  {
4985
4988
  onClick: handleConfirm,
4986
4989
  loading: isSubmitting,
@@ -4991,7 +4994,7 @@ function SolanaConfirmStep({
4991
4994
  }
4992
4995
  )
4993
4996
  ] }),
4994
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
4997
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
4995
4998
  ] });
4996
4999
  }
4997
5000
 
@@ -5006,22 +5009,22 @@ function DappImportAssetSelectStep({
5006
5009
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5007
5010
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5008
5011
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5009
- _chunkHAQOFI3Dcjs.BodyHeader,
5012
+ _chunk3OOY67VJcjs.BodyHeader,
5010
5013
  {
5011
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}),
5014
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
5012
5015
  title: `Transfer from ${sourceLabel}`,
5013
5016
  subtitle: "Pick the balance to import"
5014
5017
  }
5015
5018
  ),
5016
5019
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
5017
5020
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
5018
- const tokenAmount = asset.balance ? _chunkHAQOFI3Dcjs.tokenFormatter.format(
5021
+ const tokenAmount = asset.balance ? _chunk3OOY67VJcjs.tokenFormatter.format(
5019
5022
  Number(asset.balance) / 10 ** asset.decimals
5020
5023
  ) : "0";
5021
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkHAQOFI3Dcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5024
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
5022
5025
  const assetIcon = asset.icon;
5023
- const chainIcon = _chunk4KCSH4T3cjs.getChainIcon.call(void 0, asset.chainId);
5024
- const badge = _chunk4KCSH4T3cjs.getChainBadge.call(void 0, asset.chainId);
5026
+ const chainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, asset.chainId);
5027
+ const badge = _chunkOY5N3E6Lcjs.getChainBadge.call(void 0, asset.chainId);
5025
5028
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5026
5029
  "button",
5027
5030
  {
@@ -5031,14 +5034,14 @@ function DappImportAssetSelectStep({
5031
5034
  children: [
5032
5035
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
5033
5036
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
5034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5035
- _chunkHAQOFI3Dcjs.TokenIcon,
5037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5038
+ _chunk3OOY67VJcjs.TokenIcon,
5036
5039
  {
5037
5040
  symbol: asset.symbol,
5038
5041
  fallback: asset.symbol.slice(0, 4)
5039
5042
  }
5040
5043
  ) }),
5041
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: chainIcon, alt: _chunk4KCSH4T3cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5044
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: chainIcon, alt: _chunkOY5N3E6Lcjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5042
5045
  "span",
5043
5046
  {
5044
5047
  className: "rs-asset-chain-badge",
@@ -5070,7 +5073,7 @@ function DappImportAssetSelectStep({
5070
5073
  );
5071
5074
  }) })
5072
5075
  ] }),
5073
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
5076
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5074
5077
  ] });
5075
5078
  }
5076
5079
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -5092,7 +5095,7 @@ function describeRow(status, comingSoon) {
5092
5095
  }
5093
5096
  if (status.enabled) {
5094
5097
  return {
5095
- subtitle: status.balanceUsd > 0 ? _chunkHAQOFI3Dcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5098
+ subtitle: status.balanceUsd > 0 ? _chunk3OOY67VJcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
5096
5099
  disabled: false,
5097
5100
  busy: false
5098
5101
  };
@@ -5115,9 +5118,9 @@ function DappImportSelectStep({
5115
5118
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
5116
5119
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5117
5120
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5118
- _chunkHAQOFI3Dcjs.BodyHeader,
5121
+ _chunk3OOY67VJcjs.BodyHeader,
5119
5122
  {
5120
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.MigrateAssetsIcon, {}),
5123
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.MigrateAssetsIcon, {}),
5121
5124
  title: "Migrate assets",
5122
5125
  subtitle: "Select a position to migrate"
5123
5126
  }
@@ -5129,16 +5132,16 @@ function DappImportSelectStep({
5129
5132
  Boolean(brand.comingSoon)
5130
5133
  );
5131
5134
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5132
- _chunk62UCV2LGcjs.ListRow,
5135
+ _chunk3OOY67VJcjs.ListRow,
5133
5136
  {
5134
5137
  leadingMedia: brand.iconUrl,
5135
5138
  title: brand.label,
5136
5139
  subtitle,
5137
5140
  disabled,
5138
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5141
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
5139
5142
  onClick: () => {
5140
5143
  if (status === "needs-connect") {
5141
- _optionalChain([onRequestConnect, 'optionalCall', _215 => _215()]);
5144
+ _optionalChain([onRequestConnect, 'optionalCall', _219 => _219()]);
5142
5145
  return;
5143
5146
  }
5144
5147
  onSelect(brand.id);
@@ -5148,7 +5151,7 @@ function DappImportSelectStep({
5148
5151
  );
5149
5152
  }) })
5150
5153
  ] }),
5151
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
5154
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5152
5155
  ] });
5153
5156
  }
5154
5157
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -5165,9 +5168,9 @@ function DappImportAssetSelectSkeleton({
5165
5168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
5166
5169
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
5167
5170
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5168
- _chunkHAQOFI3Dcjs.BodyHeader,
5171
+ _chunk3OOY67VJcjs.BodyHeader,
5169
5172
  {
5170
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}),
5173
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.WalletIcon, {}),
5171
5174
  title: `Transfer from ${sourceLabel}`,
5172
5175
  subtitle: "Pick the balance to import"
5173
5176
  }
@@ -5205,7 +5208,7 @@ function DappImportAssetSelectSkeleton({
5205
5208
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
5206
5209
  }
5207
5210
  ) }),
5208
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
5211
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
5209
5212
  ] });
5210
5213
  }
5211
5214
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -5294,7 +5297,7 @@ var aaveProvider = {
5294
5297
  throw new Error("Aave positions require a backend connection");
5295
5298
  }
5296
5299
  const response = await backend.getPositions(eoa);
5297
- if (_optionalChain([signal, 'optionalAccess', _216 => _216.aborted])) return null;
5300
+ if (_optionalChain([signal, 'optionalAccess', _220 => _220.aborted])) return null;
5298
5301
  const assets = toImportableAssets(response.positions);
5299
5302
  const failures = _nullishCoalesce(response.failures, () => ( []));
5300
5303
  if (assets.length === 0) {
@@ -5381,9 +5384,9 @@ var aaveProvider = {
5381
5384
  function toImportableAssets(positions) {
5382
5385
  const assets = [];
5383
5386
  for (const position of positions) {
5384
- const chainId = _chunk4KCSH4T3cjs.parseEvmChainId.call(void 0, position.chain);
5387
+ const chainId = _chunkOY5N3E6Lcjs.parseEvmChainId.call(void 0, position.chain);
5385
5388
  if (chainId === null) continue;
5386
- if (!_chunk4KCSH4T3cjs.SUPPORTED_CHAIN_IDS.includes(chainId)) continue;
5389
+ if (!_chunkOY5N3E6Lcjs.SUPPORTED_CHAIN_IDS.includes(chainId)) continue;
5387
5390
  if (BigInt(position.maxWithdrawable) <= 0n) continue;
5388
5391
  if (position.constraints.some((c) => POLICY_REFUSED.includes(c))) continue;
5389
5392
  assets.push(buildAsset(position, chainId));
@@ -5497,11 +5500,11 @@ async function detectPolymarketWalletKind(params) {
5497
5500
  const { publicClient, proxyWallet, eoa } = params;
5498
5501
  const results = await publicClient.multicall({
5499
5502
  allowFailure: true,
5500
- multicallAddress: _chunkDW2EQA2Ucjs.MULTICALL3_ADDRESS,
5503
+ multicallAddress: _chunkLVCD6RHFcjs.MULTICALL3_ADDRESS,
5501
5504
  contracts: [
5502
5505
  {
5503
5506
  address: proxyWallet,
5504
- abi: _chunkDW2EQA2Ucjs.SAFE_ABI,
5507
+ abi: _chunkLVCD6RHFcjs.SAFE_ABI,
5505
5508
  functionName: "isOwner",
5506
5509
  args: [eoa]
5507
5510
  },
@@ -5534,7 +5537,7 @@ async function buildSignedDepositWalletBatch(params) {
5534
5537
  if (!account || !chain) {
5535
5538
  throw new Error("Wallet not connected");
5536
5539
  }
5537
- if (chain.id !== _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID) {
5540
+ if (chain.id !== _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID) {
5538
5541
  throw new Error("Switch to Polygon to sign");
5539
5542
  }
5540
5543
  const owner = await publicClient.readContract({
@@ -5579,14 +5582,14 @@ async function buildSignedDepositWalletBatch(params) {
5579
5582
  })),
5580
5583
  signature
5581
5584
  },
5582
- sourceToken: _chunkDW2EQA2Ucjs.POLYMARKET_USDCE_ADDRESS,
5585
+ sourceToken: _chunkLVCD6RHFcjs.POLYMARKET_USDCE_ADDRESS,
5583
5586
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
5584
5587
  };
5585
5588
  }
5586
5589
  function buildUsdceTransferCalls(recipient, amount) {
5587
5590
  return [
5588
5591
  {
5589
- target: _chunkDW2EQA2Ucjs.POLYMARKET_USDCE_ADDRESS,
5592
+ target: _chunkLVCD6RHFcjs.POLYMARKET_USDCE_ADDRESS,
5590
5593
  value: 0n,
5591
5594
  data: _viem.encodeFunctionData.call(void 0, {
5592
5595
  abi: _viem.erc20Abi,
@@ -5599,21 +5602,21 @@ function buildUsdceTransferCalls(recipient, amount) {
5599
5602
  function buildPusdUnwrapCalls(recipient, amount) {
5600
5603
  return [
5601
5604
  {
5602
- target: _chunkDW2EQA2Ucjs.POLYMARKET_PUSD_ADDRESS,
5605
+ target: _chunkLVCD6RHFcjs.POLYMARKET_PUSD_ADDRESS,
5603
5606
  value: 0n,
5604
5607
  data: _viem.encodeFunctionData.call(void 0, {
5605
5608
  abi: _viem.erc20Abi,
5606
5609
  functionName: "approve",
5607
- args: [_chunkDW2EQA2Ucjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
5610
+ args: [_chunkLVCD6RHFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
5608
5611
  })
5609
5612
  },
5610
5613
  {
5611
- target: _chunkDW2EQA2Ucjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
5614
+ target: _chunkLVCD6RHFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
5612
5615
  value: 0n,
5613
5616
  data: _viem.encodeFunctionData.call(void 0, {
5614
5617
  abi: COLLATERAL_OFFRAMP_ABI,
5615
5618
  functionName: "unwrap",
5616
- args: [_chunkDW2EQA2Ucjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
5619
+ args: [_chunkLVCD6RHFcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
5617
5620
  })
5618
5621
  }
5619
5622
  ];
@@ -5625,23 +5628,23 @@ var polymarketProvider = {
5625
5628
  id: PROVIDER_ID2,
5626
5629
  sourceLabel: "Polymarket",
5627
5630
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
5628
- const proxyWallet = await _chunkDW2EQA2Ucjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5631
+ const proxyWallet = await _chunkLVCD6RHFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5629
5632
  if (!proxyWallet) return null;
5630
- if (_optionalChain([signal, 'optionalAccess', _217 => _217.aborted])) return null;
5631
- const polygonClient = getPublicClient2(_chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID);
5633
+ if (_optionalChain([signal, 'optionalAccess', _221 => _221.aborted])) return null;
5634
+ const polygonClient = getPublicClient2(_chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID);
5632
5635
  if (!polygonClient) return null;
5633
- const balances = await _chunkDW2EQA2Ucjs.readPolymarketBalances.call(void 0, {
5636
+ const balances = await _chunkLVCD6RHFcjs.readPolymarketBalances.call(void 0, {
5634
5637
  publicClient: polygonClient,
5635
5638
  proxyWallet
5636
5639
  });
5637
- if (_optionalChain([signal, 'optionalAccess', _218 => _218.aborted])) return null;
5640
+ if (_optionalChain([signal, 'optionalAccess', _222 => _222.aborted])) return null;
5638
5641
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
5639
5642
  const walletKind = await detectPolymarketWalletKind({
5640
5643
  publicClient: polygonClient,
5641
5644
  proxyWallet,
5642
5645
  eoa
5643
5646
  });
5644
- if (_optionalChain([signal, 'optionalAccess', _219 => _219.aborted])) return null;
5647
+ if (_optionalChain([signal, 'optionalAccess', _223 => _223.aborted])) return null;
5645
5648
  if (!walletKind) return null;
5646
5649
  const assets = [];
5647
5650
  if (balances.pusd > 0n) {
@@ -5688,7 +5691,7 @@ var polymarketProvider = {
5688
5691
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
5689
5692
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
5690
5693
  }
5691
- const result = await _chunkDW2EQA2Ucjs.executePolymarketSafeTransfer.call(void 0, {
5694
+ const result = await _chunkLVCD6RHFcjs.executePolymarketSafeTransfer.call(void 0, {
5692
5695
  walletClient,
5693
5696
  publicClient,
5694
5697
  safeAddress: metadata.proxyWallet,
@@ -5707,17 +5710,17 @@ var polymarketProvider = {
5707
5710
  function buildAsset2(params) {
5708
5711
  const { tokenKind, proxyWallet, walletKind, balance } = params;
5709
5712
  const isPusd = tokenKind === "pusd";
5710
- const tokenAddress = isPusd ? _chunkDW2EQA2Ucjs.POLYMARKET_PUSD_ADDRESS : _chunkDW2EQA2Ucjs.POLYMARKET_USDCE_ADDRESS;
5713
+ const tokenAddress = isPusd ? _chunkLVCD6RHFcjs.POLYMARKET_PUSD_ADDRESS : _chunkLVCD6RHFcjs.POLYMARKET_USDCE_ADDRESS;
5711
5714
  const symbol = isPusd ? "pUSD" : "USDC.e";
5712
5715
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
5713
5716
  const metadata = { proxyWallet, tokenKind, walletKind };
5714
5717
  return {
5715
5718
  id: `polymarket:${tokenKind}`,
5716
- chainId: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
5719
+ chainId: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
5717
5720
  token: tokenAddress,
5718
5721
  symbol,
5719
5722
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
5720
- icon: isPusd ? _chunkDW2EQA2Ucjs.POLYMARKET_ICON_URL : void 0,
5723
+ icon: isPusd ? _chunkLVCD6RHFcjs.POLYMARKET_ICON_URL : void 0,
5721
5724
  decimals: 6,
5722
5725
  balance: balance.toString(),
5723
5726
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -5730,8 +5733,8 @@ function buildAsset2(params) {
5730
5733
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
5731
5734
  // arrives at the smart account, so it's also what the orchestrator
5732
5735
  // bridges from.
5733
- depositToken: _chunkDW2EQA2Ucjs.POLYMARKET_USDCE_ADDRESS,
5734
- depositChainId: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
5736
+ depositToken: _chunkLVCD6RHFcjs.POLYMARKET_USDCE_ADDRESS,
5737
+ depositChainId: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
5735
5738
  providerMetadata: metadata
5736
5739
  };
5737
5740
  }
@@ -5752,7 +5755,7 @@ function getEnabledProviders(config) {
5752
5755
  function computeDappImportStatus(providerId, inputs) {
5753
5756
  const { owner, availability, availabilityOwner, setup } = inputs;
5754
5757
  if (!owner) return "needs-connect";
5755
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _220 => _220.toLowerCase, 'call', _221 => _221()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5758
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5756
5759
  if (entry === "loading" || entry === void 0) return "loading";
5757
5760
  if (entry === "error") {
5758
5761
  return {
@@ -5910,6 +5913,10 @@ function createDepositAnalyticsController(emit) {
5910
5913
  dedupe.add(key);
5911
5914
  emit(...args);
5912
5915
  };
5916
+ const sendHistory = (type, detail) => {
5917
+ controller.openSession();
5918
+ emit(...[{ type, ...detail }, method]);
5919
+ };
5913
5920
  const controller = {
5914
5921
  emit,
5915
5922
  openSession() {
@@ -5917,6 +5924,21 @@ function createDepositAnalyticsController(emit) {
5917
5924
  opened = true;
5918
5925
  emit({ type: "deposit_modal_open" }, null);
5919
5926
  },
5927
+ historyOpened(detail) {
5928
+ sendHistory("deposit_modal_history_open", detail);
5929
+ },
5930
+ historyRowViewed(detail) {
5931
+ sendHistory("deposit_modal_history_row_view", detail);
5932
+ },
5933
+ historyLoadMore(detail) {
5934
+ sendHistory("deposit_modal_history_load_more", detail);
5935
+ },
5936
+ historyFallbackOpened(detail) {
5937
+ sendHistory("deposit_modal_history_fallback_open", detail);
5938
+ },
5939
+ historyRecoveryStarted(detail) {
5940
+ sendHistory("deposit_modal_history_recovery_start", detail);
5941
+ },
5920
5942
  selectMethod(...args) {
5921
5943
  const [nextMethod, entrySource, identifiers] = args;
5922
5944
  controller.openSession();
@@ -6075,7 +6097,7 @@ function DepositAnalyticsControllerProvider({
6075
6097
  children,
6076
6098
  controllerRef
6077
6099
  }) {
6078
- const emit = _chunkHAQOFI3Dcjs.useDepositAnalyticsEmitter.call(void 0, );
6100
+ const emit = _chunk3OOY67VJcjs.useDepositAnalyticsEmitter.call(void 0, );
6079
6101
  const controller = _react.useMemo.call(void 0,
6080
6102
  () => createDepositAnalyticsController(emit),
6081
6103
  [emit]
@@ -6595,7 +6617,7 @@ function applyAction(state, action) {
6595
6617
  totalUsd: null,
6596
6618
  // Keep any prior chains visible so the cluster does not flicker
6597
6619
  // empty across a refresh.
6598
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _222 => _222.chainIds]), () => ( []))
6620
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _226 => _226.chainIds]), () => ( []))
6599
6621
  }
6600
6622
  }
6601
6623
  }
@@ -6806,7 +6828,7 @@ function applyAction(state, action) {
6806
6828
  flow: { ...state.flow, step: "processing" }
6807
6829
  };
6808
6830
  case "processing/quote-loaded":
6809
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _223 => _223.processing, 'access', _224 => _224.txHash, 'optionalAccess', _225 => _225.toLowerCase, 'call', _226 => _226()]) !== action.txHash.toLowerCase()) {
6831
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _227 => _227.processing, 'access', _228 => _228.txHash, 'optionalAccess', _229 => _229.toLowerCase, 'call', _230 => _230()]) !== action.txHash.toLowerCase()) {
6810
6832
  return state;
6811
6833
  }
6812
6834
  return {
@@ -7394,16 +7416,17 @@ function DepositFlow({
7394
7416
  onSwappedImmersiveChange,
7395
7417
  openExternally,
7396
7418
  onSubmittingChange,
7419
+ onProcessingSettledChange,
7397
7420
  onClose,
7398
7421
  onLifecycle,
7399
7422
  onError,
7400
7423
  debug
7401
7424
  }) {
7402
- const rpcUrls = _chunkHAQOFI3Dcjs.useRpcUrls.call(void 0, );
7403
- const onStepChangeRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onStepChange);
7425
+ const rpcUrls = _chunk3OOY67VJcjs.useRpcUrls.call(void 0, );
7426
+ const onStepChangeRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onStepChange);
7404
7427
  const analytics = useDepositAnalyticsController();
7405
- const onLifecycleRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onLifecycle);
7406
- const onErrorRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onError);
7428
+ const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
7429
+ const onErrorRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onError);
7407
7430
  const storeApi = useDepositStoreApi();
7408
7431
  const flowSlice = useDepositStore((s) => s.flow);
7409
7432
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -7420,13 +7443,13 @@ function DepositFlow({
7420
7443
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
7421
7444
  const logFlow = _react.useCallback.call(void 0,
7422
7445
  (message, data) => {
7423
- _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7446
+ _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
7424
7447
  },
7425
7448
  [debug]
7426
7449
  );
7427
7450
  const logFlowError = _react.useCallback.call(void 0,
7428
7451
  (message, error, data) => {
7429
- _chunkHAQOFI3Dcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7452
+ _chunk3OOY67VJcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
7430
7453
  },
7431
7454
  [debug]
7432
7455
  );
@@ -7450,12 +7473,12 @@ function DepositFlow({
7450
7473
  };
7451
7474
  }, [enableSwappedPreconnect]);
7452
7475
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
7453
- if (!_optionalChain([walletClientProp, 'optionalAccess', _227 => _227.switchChain])) return void 0;
7476
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _231 => _231.switchChain])) return void 0;
7454
7477
  return async (chainId) => {
7455
- await _optionalChain([walletClientProp, 'access', _228 => _228.switchChain, 'optionalCall', _229 => _229({ id: chainId })]);
7478
+ await _optionalChain([walletClientProp, 'access', _232 => _232.switchChain, 'optionalCall', _233 => _233({ id: chainId })]);
7456
7479
  };
7457
7480
  }, [walletClientProp]);
7458
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _230 => _230.account, 'optionalAccess', _231 => _231.address]), () => ( null));
7481
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _234 => _234.account, 'optionalAccess', _235 => _235.address]), () => ( null));
7459
7482
  const walletOptions = _react.useMemo.call(void 0, () => {
7460
7483
  const options = [];
7461
7484
  const seen = /* @__PURE__ */ new Set();
@@ -7469,7 +7492,7 @@ function DepositFlow({
7469
7492
  });
7470
7493
  seen.add(id);
7471
7494
  }
7472
- if (_optionalChain([walletSession, 'optionalAccess', _232 => _232.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7495
+ if (_optionalChain([walletSession, 'optionalAccess', _236 => _236.isConnected]) && walletSession.isSolana && walletSession.solanaAddress) {
7473
7496
  const id = _nullishCoalesce(walletSession.caipAddress, () => ( `solana:${walletSession.solanaAddress}`));
7474
7497
  if (!seen.has(id)) {
7475
7498
  options.push({
@@ -7481,7 +7504,7 @@ function DepositFlow({
7481
7504
  });
7482
7505
  seen.add(id);
7483
7506
  }
7484
- } else if (_optionalChain([walletSession, 'optionalAccess', _233 => _233.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7507
+ } else if (_optionalChain([walletSession, 'optionalAccess', _237 => _237.address]) && walletSession.isConnected && walletSession.canSignEvm && !seen.has(`evm:${walletSession.address.toLowerCase()}`)) {
7485
7508
  const id = `evm:${walletSession.address.toLowerCase()}`;
7486
7509
  if (!seen.has(id)) {
7487
7510
  options.push({
@@ -7497,13 +7520,13 @@ function DepositFlow({
7497
7520
  return options;
7498
7521
  }, [
7499
7522
  connectedWalletAddress,
7500
- _optionalChain([walletSession, 'optionalAccess', _234 => _234.address]),
7501
- _optionalChain([walletSession, 'optionalAccess', _235 => _235.isConnected]),
7502
- _optionalChain([walletSession, 'optionalAccess', _236 => _236.canSignEvm]),
7503
- _optionalChain([walletSession, 'optionalAccess', _237 => _237.icon]),
7504
- _optionalChain([walletSession, 'optionalAccess', _238 => _238.isSolana]),
7505
- _optionalChain([walletSession, 'optionalAccess', _239 => _239.solanaAddress]),
7506
- _optionalChain([walletSession, 'optionalAccess', _240 => _240.caipAddress])
7523
+ _optionalChain([walletSession, 'optionalAccess', _238 => _238.address]),
7524
+ _optionalChain([walletSession, 'optionalAccess', _239 => _239.isConnected]),
7525
+ _optionalChain([walletSession, 'optionalAccess', _240 => _240.canSignEvm]),
7526
+ _optionalChain([walletSession, 'optionalAccess', _241 => _241.icon]),
7527
+ _optionalChain([walletSession, 'optionalAccess', _242 => _242.isSolana]),
7528
+ _optionalChain([walletSession, 'optionalAccess', _243 => _243.solanaAddress]),
7529
+ _optionalChain([walletSession, 'optionalAccess', _244 => _244.caipAddress])
7507
7530
  ]);
7508
7531
  const offeredFiatMethods = _react.useMemo.call(void 0,
7509
7532
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -7523,11 +7546,11 @@ function DepositFlow({
7523
7546
  hasEnabledAssetMigration
7524
7547
  ].filter(Boolean).length;
7525
7548
  const canAutoLock = Boolean(
7526
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _241 => _241.account]) && !walletSession && enabledFeatureCount === 1
7549
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _245 => _245.account]) && !walletSession && enabledFeatureCount === 1
7527
7550
  );
7528
7551
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
7529
7552
  const hasReownSession = Boolean(
7530
- _optionalChain([walletSession, 'optionalAccess', _242 => _242.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _243 => _243.address])
7553
+ _optionalChain([walletSession, 'optionalAccess', _246 => _246.isConnected]) || _optionalChain([walletSession, 'optionalAccess', _247 => _247.address])
7531
7554
  );
7532
7555
  const isDappImportWalletHydrating = Boolean(
7533
7556
  hasWalletClientProp && walletClientProp === void 0 || walletSession && !hasReownSession && !walletSession.isReady
@@ -7547,10 +7570,10 @@ function DepositFlow({
7547
7570
  isConnectSelectionConfirmed,
7548
7571
  selectedWalletId
7549
7572
  ]);
7550
- const setupChainId = typeof targetChain === "number" && !_chunk4KCSH4T3cjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : DEFAULT_SETUP_CHAIN_ID;
7551
- const targetChainId = _chunk4KCSH4T3cjs.targetChainToChainId.call(void 0, targetChain);
7552
- const targetSymbol = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
7553
- const isTargetStablecoin = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, targetSymbol);
7573
+ const setupChainId = typeof targetChain === "number" && !_chunkOY5N3E6Lcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : DEFAULT_SETUP_CHAIN_ID;
7574
+ const targetChainId = _chunkOY5N3E6Lcjs.targetChainToChainId.call(void 0, targetChain);
7575
+ const targetSymbol = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
7576
+ const isTargetStablecoin = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, targetSymbol);
7554
7577
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
7555
7578
  _react.useEffect.call(void 0, () => {
7556
7579
  targetMarketPriceRef.current = null;
@@ -7558,7 +7581,7 @@ function DepositFlow({
7558
7581
  return;
7559
7582
  }
7560
7583
  let cancelled = false;
7561
- _chunk4J5ADVINcjs.fetchTokenPriceUsd.call(void 0, service, {
7584
+ _chunkX4D52IZKcjs.fetchTokenPriceUsd.call(void 0, service, {
7562
7585
  chainId: targetChainId,
7563
7586
  address: targetToken,
7564
7587
  symbol: targetSymbol
@@ -7575,11 +7598,11 @@ function DepositFlow({
7575
7598
  return null;
7576
7599
  }
7577
7600
  if (canAutoLock) {
7578
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _244 => _244.chain, 'optionalAccess', _245 => _245.id]), () => ( setupChainId));
7601
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _248 => _248.chain, 'optionalAccess', _249 => _249.id]), () => ( setupChainId));
7579
7602
  return {
7580
7603
  ownerAddress: walletClientProp.account.address,
7581
7604
  walletClient: walletClientProp,
7582
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkHAQOFI3Dcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7605
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7583
7606
  switchChain: dappSwitchChain
7584
7607
  };
7585
7608
  }
@@ -7591,20 +7614,20 @@ function DepositFlow({
7591
7614
  if (selectedOption.kind === "solana") {
7592
7615
  return null;
7593
7616
  }
7594
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _246 => _246.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7595
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _247 => _247.chain, 'optionalAccess', _248 => _248.id]), () => ( setupChainId));
7617
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _250 => _250.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7618
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _251 => _251.chain, 'optionalAccess', _252 => _252.id]), () => ( setupChainId));
7596
7619
  return {
7597
7620
  ownerAddress: walletClientProp.account.address,
7598
7621
  walletClient: walletClientProp,
7599
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkHAQOFI3Dcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7622
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
7600
7623
  switchChain: dappSwitchChain
7601
7624
  };
7602
7625
  }
7603
- if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _249 => _249.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7626
+ if (selectedOption.kind === "external" && _optionalChain([walletSession, 'optionalAccess', _253 => _253.address]) && selectedOption.address && walletSession.address.toLowerCase() === selectedOption.address.toLowerCase()) {
7604
7627
  return {
7605
7628
  ownerAddress: walletSession.address,
7606
7629
  walletClient: walletSession.walletClient,
7607
- publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunkHAQOFI3Dcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7630
+ publicClient: _nullishCoalesce(walletSession.publicClient, () => ( _chunk3OOY67VJcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
7608
7631
  switchChain: walletSession.switchChain
7609
7632
  };
7610
7633
  }
@@ -7626,7 +7649,7 @@ function DepositFlow({
7626
7649
  // nothing else here when the host switches chain, and the context would go
7627
7650
  // on holding a client bound to the old one: `chainMismatch` never clears
7628
7651
  // and the CTA stays disabled with nothing beside it.
7629
- _optionalChain([walletSession, 'optionalAccess', _250 => _250.walletClient]),
7652
+ _optionalChain([walletSession, 'optionalAccess', _254 => _254.walletClient]),
7630
7653
  setupChainId,
7631
7654
  rpcUrls
7632
7655
  ]);
@@ -7666,35 +7689,35 @@ function DepositFlow({
7666
7689
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
7667
7690
  if (!selectedWalletId) return null;
7668
7691
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
7669
- if (_optionalChain([opt, 'optionalAccess', _251 => _251.kind]) === "external" && opt.address) {
7692
+ if (_optionalChain([opt, 'optionalAccess', _255 => _255.kind]) === "external" && opt.address) {
7670
7693
  return opt.address;
7671
7694
  }
7672
- if (_optionalChain([opt, 'optionalAccess', _252 => _252.kind]) === "connected" && opt.address) {
7695
+ if (_optionalChain([opt, 'optionalAccess', _256 => _256.kind]) === "connected" && opt.address) {
7673
7696
  return opt.address;
7674
7697
  }
7675
7698
  return null;
7676
7699
  }, [selectedWalletId, walletOptions]);
7677
7700
  const dappImportOwner = _react.useMemo.call(void 0, () => {
7678
7701
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
7679
- if (_optionalChain([walletSession, 'optionalAccess', _253 => _253.address]) && walletSession.isConnected) {
7702
+ if (_optionalChain([walletSession, 'optionalAccess', _257 => _257.address]) && walletSession.isConnected) {
7680
7703
  return walletSession.address;
7681
7704
  }
7682
7705
  if (connectedWalletAddress) return connectedWalletAddress;
7683
7706
  return null;
7684
7707
  }, [
7685
7708
  selectedEvmWalletOwner,
7686
- _optionalChain([walletSession, 'optionalAccess', _254 => _254.address]),
7687
- _optionalChain([walletSession, 'optionalAccess', _255 => _255.isConnected]),
7709
+ _optionalChain([walletSession, 'optionalAccess', _258 => _258.address]),
7710
+ _optionalChain([walletSession, 'optionalAccess', _259 => _259.isConnected]),
7688
7711
  connectedWalletAddress
7689
7712
  ]);
7690
7713
  const activeOwner = _react.useMemo.call(void 0,
7691
7714
  () => resolveOwnerForMode(flowMode, {
7692
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _256 => _256.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7715
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _260 => _260.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
7693
7716
  dappImportOwner
7694
7717
  }),
7695
7718
  [
7696
7719
  flowMode,
7697
- _optionalChain([signerContext, 'optionalAccess', _257 => _257.ownerAddress]),
7720
+ _optionalChain([signerContext, 'optionalAccess', _261 => _261.ownerAddress]),
7698
7721
  canAutoLock,
7699
7722
  connectedWalletAddress,
7700
7723
  selectedEvmWalletOwner,
@@ -7711,7 +7734,7 @@ function DepositFlow({
7711
7734
  ].join(":");
7712
7735
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
7713
7736
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
7714
- _optionalChain([onLifecycleRef, 'access', _258 => _258.current, 'optionalCall', _259 => _259({
7737
+ _optionalChain([onLifecycleRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
7715
7738
  type: "smart-account-changed",
7716
7739
  evm: activeEntry.smartAccount,
7717
7740
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -7739,7 +7762,7 @@ function DepositFlow({
7739
7762
  return;
7740
7763
  }
7741
7764
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
7742
- _optionalChain([onLifecycleRef, 'access', _260 => _260.current, 'optionalCall', _261 => _261({
7765
+ _optionalChain([onLifecycleRef, 'access', _264 => _264.current, 'optionalCall', _265 => _265({
7743
7766
  type: "connected",
7744
7767
  address: activeOwner,
7745
7768
  smartAccount: activeEntry.smartAccount
@@ -7812,7 +7835,7 @@ function DepositFlow({
7812
7835
  const handleWalletDisconnect = _react.useCallback.call(void 0, () => {
7813
7836
  analytics.abandon("wallet_disconnect");
7814
7837
  analytics.resetAttempt();
7815
- _optionalChain([onDisconnect, 'optionalCall', _262 => _262()]);
7838
+ _optionalChain([onDisconnect, 'optionalCall', _266 => _266()]);
7816
7839
  storeApi.dispatch({
7817
7840
  type: "back/requested",
7818
7841
  hasWalletOptions: hasWalletOptions || Boolean(walletSession)
@@ -7825,7 +7848,7 @@ function DepositFlow({
7825
7848
  setQrSourcePrice({ resolved: false, usd: null });
7826
7849
  if (!qrSourceAsset) return;
7827
7850
  let cancelled = false;
7828
- _chunk4J5ADVINcjs.fetchTokenPriceUsd.call(void 0, service, {
7851
+ _chunkX4D52IZKcjs.fetchTokenPriceUsd.call(void 0, service, {
7829
7852
  chainId: qrSourceAsset.chainId,
7830
7853
  address: qrSourceAsset.token,
7831
7854
  symbol: qrSourceAsset.symbol
@@ -7848,7 +7871,7 @@ function DepositFlow({
7848
7871
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
7849
7872
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
7850
7873
  _react.useEffect.call(void 0, () => {
7851
- _optionalChain([onStepChangeRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(currentBackHandler, currentScreen)]);
7874
+ _optionalChain([onStepChangeRef, 'access', _267 => _267.current, 'optionalCall', _268 => _268(currentBackHandler, currentScreen)]);
7852
7875
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
7853
7876
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
7854
7877
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -7858,7 +7881,7 @@ function DepositFlow({
7858
7881
  modalContentElRef.current = mc;
7859
7882
  const ro = new ResizeObserver((entries) => {
7860
7883
  for (const entry of entries) {
7861
- const border = _optionalChain([entry, 'access', _265 => _265.borderBoxSize, 'optionalAccess', _266 => _266[0], 'optionalAccess', _267 => _267.blockSize]);
7884
+ const border = _optionalChain([entry, 'access', _269 => _269.borderBoxSize, 'optionalAccess', _270 => _270[0], 'optionalAccess', _271 => _271.blockSize]);
7862
7885
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
7863
7886
  }
7864
7887
  });
@@ -7919,7 +7942,7 @@ function DepositFlow({
7919
7942
  targetToken
7920
7943
  ]);
7921
7944
  _react.useEffect.call(void 0, () => {
7922
- _optionalChain([onLifecycleRef, 'access', _268 => _268.current, 'optionalCall', _269 => _269({
7945
+ _optionalChain([onLifecycleRef, 'access', _272 => _272.current, 'optionalCall', _273 => _273({
7923
7946
  type: "balance-changed",
7924
7947
  totalUsd: totalBalanceUsd
7925
7948
  })]);
@@ -7936,9 +7959,9 @@ function DepositFlow({
7936
7959
  const handleConfirmWallet = _react.useCallback.call(void 0,
7937
7960
  (walletId) => {
7938
7961
  const selectedOption = walletOptions.find((o) => o.id === walletId);
7939
- const mode = _optionalChain([selectedOption, 'optionalAccess', _270 => _270.kind]) === "solana" ? "solana-wallet" : "wallet";
7962
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _274 => _274.kind]) === "solana" ? "solana-wallet" : "wallet";
7940
7963
  analytics.selectMethod("wallet", "user", {
7941
- network: _optionalChain([selectedOption, 'optionalAccess', _271 => _271.kind]) === "solana" ? "solana" : "evm",
7964
+ network: _optionalChain([selectedOption, 'optionalAccess', _275 => _275.kind]) === "solana" ? "solana" : "evm",
7942
7965
  integration: _nullishCoalesce(walletIntegration, () => ( "none"))
7943
7966
  });
7944
7967
  storeApi.dispatch({
@@ -7950,7 +7973,7 @@ function DepositFlow({
7950
7973
  [analytics, walletIntegration, walletOptions, storeApi]
7951
7974
  );
7952
7975
  const isSolanaWalletConnected = Boolean(
7953
- _optionalChain([walletSession, 'optionalAccess', _272 => _272.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _273 => _273.isSolana])
7976
+ _optionalChain([walletSession, 'optionalAccess', _276 => _276.isConnected]) && _optionalChain([walletSession, 'optionalAccess', _277 => _277.isSolana])
7954
7977
  );
7955
7978
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
7956
7979
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -7967,7 +7990,7 @@ function DepositFlow({
7967
7990
  const owner = dappImportOwner;
7968
7991
  if (owner) {
7969
7992
  const wallet = walletOptions.find(
7970
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _274 => _274.toLowerCase, 'call', _275 => _275()]) === owner.toLowerCase()
7993
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _278 => _278.toLowerCase, 'call', _279 => _279()]) === owner.toLowerCase()
7971
7994
  );
7972
7995
  if (wallet) {
7973
7996
  storeApi.dispatch({
@@ -8011,7 +8034,7 @@ function DepositFlow({
8011
8034
  eoa: dappImportOwner,
8012
8035
  getPublicClient: (chainId) => {
8013
8036
  try {
8014
- return _chunkHAQOFI3Dcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8037
+ return _chunk3OOY67VJcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8015
8038
  } catch (e38) {
8016
8039
  return null;
8017
8040
  }
@@ -8114,7 +8137,7 @@ function DepositFlow({
8114
8137
  }, [activeDappImportProviderId, enabledDappImportProviders]);
8115
8138
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
8116
8139
  if (!activeDappImportProviderId) return null;
8117
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _276 => _276.toLowerCase, 'call', _277 => _277()]) !== dappImportOwner.toLowerCase()) {
8140
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _280 => _280.toLowerCase, 'call', _281 => _281()]) !== dappImportOwner.toLowerCase()) {
8118
8141
  return null;
8119
8142
  }
8120
8143
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -8157,7 +8180,7 @@ function DepositFlow({
8157
8180
  setup: setupSlice
8158
8181
  });
8159
8182
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
8160
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _278 => _278.toLowerCase, 'call', _279 => _279()]) === dappImportOwner.toLowerCase()
8183
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _282 => _282.toLowerCase, 'call', _283 => _283()]) === dappImportOwner.toLowerCase()
8161
8184
  ), () => ( null)) : null;
8162
8185
  const outcome = resolveBootOutcome({
8163
8186
  status,
@@ -8207,7 +8230,7 @@ function DepositFlow({
8207
8230
  if (dappImportOwner) {
8208
8231
  const plan = bootRetryPlan({
8209
8232
  setupStatus: snapshot.setup.status,
8210
- availabilityEntry: _optionalChain([snapshot, 'access', _280 => _280.dappImport, 'access', _281 => _281.availabilityOwner, 'optionalAccess', _282 => _282.toLowerCase, 'call', _283 => _283()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8233
+ availabilityEntry: _optionalChain([snapshot, 'access', _284 => _284.dappImport, 'access', _285 => _285.availabilityOwner, 'optionalAccess', _286 => _286.toLowerCase, 'call', _287 => _287()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
8211
8234
  });
8212
8235
  if (plan.restartSetup) {
8213
8236
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -8281,7 +8304,7 @@ function DepositFlow({
8281
8304
  acceptedExchangeFeeBps: disclosedFeeBps
8282
8305
  });
8283
8306
  } catch (error) {
8284
- if (error instanceof _chunkHAQOFI3Dcjs.SwappedConnectFeeChangedError) {
8307
+ if (error instanceof _chunk3OOY67VJcjs.SwappedConnectFeeChangedError) {
8285
8308
  return error.exchangeFeeBps;
8286
8309
  }
8287
8310
  throw error;
@@ -8289,7 +8312,7 @@ function DepositFlow({
8289
8312
  entry = { smartAccount: owner, response };
8290
8313
  }
8291
8314
  const currentAccount = storeApi.getState().setup.smartAccount;
8292
- if (_optionalChain([currentAccount, 'optionalAccess', _284 => _284.toLowerCase, 'call', _285 => _285()]) !== owner) {
8315
+ if (_optionalChain([currentAccount, 'optionalAccess', _288 => _288.toLowerCase, 'call', _289 => _289()]) !== owner) {
8293
8316
  swappedConnectUrlRef.current.delete(key);
8294
8317
  throw new Error("Deposit account changed. Select your exchange again.");
8295
8318
  }
@@ -8323,7 +8346,7 @@ function DepositFlow({
8323
8346
  );
8324
8347
  }
8325
8348
  swappedConnectUrlRef.current.delete(key);
8326
- const response = _optionalChain([entry, 'optionalAccess', _286 => _286.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8349
+ const response = _optionalChain([entry, 'optionalAccess', _290 => _290.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
8327
8350
  smartAccount,
8328
8351
  connection,
8329
8352
  acceptedExchangeFeeBps: expectedFeeBps
@@ -8491,7 +8514,7 @@ function DepositFlow({
8491
8514
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
8492
8515
  analytics.completeStep();
8493
8516
  analytics.resetAttempt();
8494
- _optionalChain([onLifecycleRef, 'access', _287 => _287.current, 'optionalCall', _288 => _288({
8517
+ _optionalChain([onLifecycleRef, 'access', _291 => _291.current, 'optionalCall', _292 => _292({
8495
8518
  type: "smart-account-changed",
8496
8519
  evm: null,
8497
8520
  solana: null
@@ -8522,17 +8545,17 @@ function DepositFlow({
8522
8545
  forceRegister
8523
8546
  ]
8524
8547
  );
8525
- const desiredSetupRequestKey = _chunk4J5ADVINcjs.computeRequestKey.call(void 0, setupInput);
8548
+ const desiredSetupRequestKey = _chunkX4D52IZKcjs.computeRequestKey.call(void 0, setupInput);
8526
8549
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
8527
8550
  _react.useEffect.call(void 0, () => {
8528
8551
  void (async () => {
8529
- const requestKey = _chunk4J5ADVINcjs.computeRequestKey.call(void 0, setupInput);
8530
- const cacheKey = _chunk4J5ADVINcjs.computeCacheKey.call(void 0, setupInput);
8531
- const cacheable = _chunk4J5ADVINcjs.computeIsCacheable.call(void 0, setupInput);
8552
+ const requestKey = _chunkX4D52IZKcjs.computeRequestKey.call(void 0, setupInput);
8553
+ const cacheKey = _chunkX4D52IZKcjs.computeCacheKey.call(void 0, setupInput);
8554
+ const cacheable = _chunkX4D52IZKcjs.computeIsCacheable.call(void 0, setupInput);
8532
8555
  if (storeApi.getState().setup.requestKey === requestKey) {
8533
8556
  return;
8534
8557
  }
8535
- const dedupedResult = _chunk4J5ADVINcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8558
+ const dedupedResult = _chunkX4D52IZKcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
8536
8559
  if (dedupedResult) {
8537
8560
  storeApi.dispatch({
8538
8561
  type: "setup/started",
@@ -8558,7 +8581,7 @@ function DepositFlow({
8558
8581
  cacheable
8559
8582
  });
8560
8583
  try {
8561
- const result = await _chunk4J5ADVINcjs.runAccountSetupDeduped.call(void 0,
8584
+ const result = await _chunkX4D52IZKcjs.runAccountSetupDeduped.call(void 0,
8562
8585
  setupInput,
8563
8586
  { service, debug },
8564
8587
  requestKey
@@ -8573,7 +8596,7 @@ function DepositFlow({
8573
8596
  }
8574
8597
  });
8575
8598
  } catch (error) {
8576
- const message = error instanceof _chunk4J5ADVINcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8599
+ const message = error instanceof _chunkX4D52IZKcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
8577
8600
  storeApi.dispatch({
8578
8601
  type: "setup/failed",
8579
8602
  requestKey,
@@ -8605,11 +8628,11 @@ function DepositFlow({
8605
8628
  return;
8606
8629
  }
8607
8630
  storeApi.dispatch({ type: "portfolio/loading", network, address });
8608
- const requestId = _optionalChain([readPortfolioEntry, 'call', _289 => _289(
8631
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _293 => _293(
8609
8632
  storeApi.getState().portfolio,
8610
8633
  network,
8611
8634
  address
8612
- ), 'optionalAccess', _290 => _290.requestId]);
8635
+ ), 'optionalAccess', _294 => _294.requestId]);
8613
8636
  if (requestId === void 0) return;
8614
8637
  void (async () => {
8615
8638
  try {
@@ -8622,7 +8645,7 @@ function DepositFlow({
8622
8645
  address,
8623
8646
  requestId,
8624
8647
  totalUsd: portfolio.totalUsd,
8625
- chainIds: _chunkHAQOFI3Dcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8648
+ chainIds: _chunk3OOY67VJcjs.chainIdsByValue.call(void 0, portfolio.tokens)
8626
8649
  });
8627
8650
  } catch (e39) {
8628
8651
  storeApi.dispatch({
@@ -8646,7 +8669,7 @@ function DepositFlow({
8646
8669
  { type: "transaction_hash", value: data.txHash },
8647
8670
  "transfer_tracking"
8648
8671
  );
8649
- _optionalChain([onLifecycleRef, 'access', _291 => _291.current, 'optionalCall', _292 => _292({ type: "submitted", ...data })]);
8672
+ _optionalChain([onLifecycleRef, 'access', _295 => _295.current, 'optionalCall', _296 => _296({ type: "submitted", ...data })]);
8650
8673
  },
8651
8674
  [analytics, logFlow, onLifecycleRef]
8652
8675
  );
@@ -8665,8 +8688,8 @@ function DepositFlow({
8665
8688
  );
8666
8689
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
8667
8690
  (token, sourceAmount, inputAmountUsd) => {
8668
- const targetSym = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8669
- const isTargetStable = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, targetSym);
8691
+ const targetSym = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8692
+ const isTargetStable = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, targetSym);
8670
8693
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
8671
8694
  logFlow("solana:amount:continue", {
8672
8695
  token: token.symbol,
@@ -8715,7 +8738,7 @@ function DepositFlow({
8715
8738
  sourceDecimals: tokenAtSubmit.decimals,
8716
8739
  inputAmountUsd: amountUsd
8717
8740
  });
8718
- _optionalChain([onLifecycleRef, 'access', _293 => _293.current, 'optionalCall', _294 => _294({
8741
+ _optionalChain([onLifecycleRef, 'access', _297 => _297.current, 'optionalCall', _298 => _298({
8719
8742
  type: "submitted",
8720
8743
  txHash,
8721
8744
  sourceChain: "solana",
@@ -8741,8 +8764,8 @@ function DepositFlow({
8741
8764
  (amount, targetAmount, balance) => {
8742
8765
  const entry = storeApi.getState().setup;
8743
8766
  if (entry.status !== "ready") return;
8744
- const targetSym = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8745
- const isTargetStable = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, targetSym);
8767
+ const targetSym = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8768
+ const isTargetStable = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, targetSym);
8746
8769
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
8747
8770
  storeApi.dispatch({
8748
8771
  type: "amount/entered",
@@ -8762,8 +8785,8 @@ function DepositFlow({
8762
8785
  );
8763
8786
  const handleQrAmountContinue = _react.useCallback.call(void 0,
8764
8787
  (amount, targetAmount) => {
8765
- const targetSym = _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8766
- const targetTokenPriceUsd = _chunk4KCSH4T3cjs.isStablecoinSymbol.call(void 0, targetSym) ? 1 : targetMarketPriceRef.current;
8788
+ const targetSym = _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8789
+ const targetTokenPriceUsd = _chunkOY5N3E6Lcjs.isStablecoinSymbol.call(void 0, targetSym) ? 1 : targetMarketPriceRef.current;
8767
8790
  storeApi.dispatch({
8768
8791
  type: "qr/amount-entered",
8769
8792
  amount,
@@ -8809,8 +8832,8 @@ function DepositFlow({
8809
8832
  sourceChain: chainId,
8810
8833
  sourceToken: token,
8811
8834
  amount,
8812
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _295 => _295.symbol]),
8813
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _296 => _296.decimals]),
8835
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _299 => _299.symbol]),
8836
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _300 => _300.decimals]),
8814
8837
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
8815
8838
  directTransfer: routed.directTransfer,
8816
8839
  sourceTxHashPending: routed.sourceTxHashPending,
@@ -8851,7 +8874,7 @@ function DepositFlow({
8851
8874
  swappedContext,
8852
8875
  initialEvent: info.initialEvent
8853
8876
  });
8854
- _optionalChain([onLifecycleRef, 'access', _297 => _297.current, 'optionalCall', _298 => _298({
8877
+ _optionalChain([onLifecycleRef, 'access', _301 => _301.current, 'optionalCall', _302 => _302({
8855
8878
  type: "submitted",
8856
8879
  txHash: info.txHash,
8857
8880
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -8879,12 +8902,12 @@ function DepositFlow({
8879
8902
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
8880
8903
  (txHash, sourceChain, amount) => {
8881
8904
  const depositAtSubmit = storeApi.getState().deposit;
8882
- _optionalChain([onLifecycleRef, 'access', _299 => _299.current, 'optionalCall', _300 => _300({
8905
+ _optionalChain([onLifecycleRef, 'access', _303 => _303.current, 'optionalCall', _304 => _304({
8883
8906
  type: "submitted",
8884
8907
  txHash,
8885
8908
  sourceChain,
8886
8909
  amount,
8887
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _301 => _301.selectedAsset, 'optionalAccess', _302 => _302.decimals]),
8910
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _305 => _305.selectedAsset, 'optionalAccess', _306 => _306.decimals]),
8888
8911
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
8889
8912
  })]);
8890
8913
  },
@@ -8897,7 +8920,7 @@ function DepositFlow({
8897
8920
  analyticsStepForFlowStep(analyticsMethod, "processing")
8898
8921
  );
8899
8922
  analytics.outcome("completed");
8900
- _optionalChain([onLifecycleRef, 'access', _303 => _303.current, 'optionalCall', _304 => _304({
8923
+ _optionalChain([onLifecycleRef, 'access', _307 => _307.current, 'optionalCall', _308 => _308({
8901
8924
  type: "complete",
8902
8925
  txHash,
8903
8926
  destinationTxHash,
@@ -8914,7 +8937,7 @@ function DepositFlow({
8914
8937
  );
8915
8938
  analytics.outcome("failed");
8916
8939
  analytics.failure("processor_failed", false);
8917
- _optionalChain([onLifecycleRef, 'access', _305 => _305.current, 'optionalCall', _306 => _306({ type: "failed", txHash, error })]);
8940
+ _optionalChain([onLifecycleRef, 'access', _309 => _309.current, 'optionalCall', _310 => _310({ type: "failed", txHash, error })]);
8918
8941
  },
8919
8942
  [analytics, analyticsMethod, logFlowError, onLifecycleRef]
8920
8943
  );
@@ -8935,7 +8958,7 @@ function DepositFlow({
8935
8958
  failureStep
8936
8959
  );
8937
8960
  }
8938
- _optionalChain([onErrorRef, 'access', _307 => _307.current, 'optionalCall', _308 => _308({ message, code, cause })]);
8961
+ _optionalChain([onErrorRef, 'access', _311 => _311.current, 'optionalCall', _312 => _312({ message, code, cause })]);
8939
8962
  },
8940
8963
  [analytics, logFlowError, onErrorRef]
8941
8964
  );
@@ -8984,9 +9007,9 @@ function DepositFlow({
8984
9007
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
8985
9008
  state,
8986
9009
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
8987
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _309 => _309.status]), () => ( "loading")),
8988
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _310 => _310.status]) === "ready" ? portfolioEntry.totalUsd : null,
8989
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _311 => _311.chainIds]), () => ( []))
9010
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _313 => _313.status]), () => ( "loading")),
9011
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _314 => _314.status]) === "ready" ? portfolioEntry.totalUsd : null,
9012
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _315 => _315.chainIds]), () => ( []))
8990
9013
  };
8991
9014
  });
8992
9015
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -9167,7 +9190,7 @@ function DepositFlow({
9167
9190
  consumePrefetchedUrl: consumeSwappedWidgetUrlPrefetch,
9168
9191
  onSwappedComplete: handleSwappedComplete,
9169
9192
  onSwappedFailed: handleDepositFailed,
9170
- onClose: () => _optionalChain([onClose, 'optionalCall', _312 => _312(
9193
+ onClose: () => _optionalChain([onClose, 'optionalCall', _316 => _316(
9171
9194
  openExternally ? "native_dismiss_request" : "header_button"
9172
9195
  )]),
9173
9196
  onGoBack: handleProviderBack,
@@ -9181,7 +9204,7 @@ function DepositFlow({
9181
9204
  }
9182
9205
  ),
9183
9206
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9184
- _chunk4J5ADVINcjs.ProcessingStep,
9207
+ _chunkX4D52IZKcjs.ProcessingStep,
9185
9208
  {
9186
9209
  smartAccount: step.smartAccount,
9187
9210
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9207,7 +9230,8 @@ function DepositFlow({
9207
9230
  onDepositComplete: handleDepositComplete,
9208
9231
  onDepositFailed: handleDepositFailed,
9209
9232
  onError: handleError,
9210
- debug
9233
+ debug,
9234
+ onSettledChange: onProcessingSettledChange
9211
9235
  }
9212
9236
  )
9213
9237
  ]
@@ -9246,7 +9270,7 @@ function DepositFlow({
9246
9270
  loadUrl: () => loadSwappedConnectUrl(step.smartAccount, step.connection),
9247
9271
  onSwappedComplete: handleSwappedComplete,
9248
9272
  onSwappedFailed: handleDepositFailed,
9249
- onClose: () => _optionalChain([onClose, 'optionalCall', _313 => _313(
9273
+ onClose: () => _optionalChain([onClose, 'optionalCall', _317 => _317(
9250
9274
  openExternally ? "native_dismiss_request" : "header_button"
9251
9275
  )]),
9252
9276
  onGoBack: handleProviderBack,
@@ -9260,7 +9284,7 @@ function DepositFlow({
9260
9284
  }
9261
9285
  ),
9262
9286
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9263
- _chunk4J5ADVINcjs.ProcessingStep,
9287
+ _chunkX4D52IZKcjs.ProcessingStep,
9264
9288
  {
9265
9289
  smartAccount: step.smartAccount,
9266
9290
  solanaDepositAddress: step.solanaDepositAddress,
@@ -9286,7 +9310,8 @@ function DepositFlow({
9286
9310
  onDepositComplete: handleDepositComplete,
9287
9311
  onDepositFailed: handleDepositFailed,
9288
9312
  onError: handleError,
9289
- debug
9313
+ debug,
9314
+ onSettledChange: onProcessingSettledChange
9290
9315
  }
9291
9316
  )
9292
9317
  ]
@@ -9294,8 +9319,8 @@ function DepositFlow({
9294
9319
  );
9295
9320
  }
9296
9321
  if (isSolanaWalletMode) {
9297
- const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _314 => _314.solanaAddress]);
9298
- const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _315 => _315.solanaProvider]);
9322
+ const solanaAddr = _optionalChain([walletSession, 'optionalAccess', _318 => _318.solanaAddress]);
9323
+ const solanaProvider = _optionalChain([walletSession, 'optionalAccess', _319 => _319.solanaProvider]);
9299
9324
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9300
9325
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9301
9326
  AccountPreparingSkeleton,
@@ -9324,8 +9349,8 @@ function DepositFlow({
9324
9349
  defaultAmount: effectiveStep.inputAmountUsd,
9325
9350
  uiConfig,
9326
9351
  targetChain,
9327
- targetChainName: _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId),
9328
- targetTokenSymbol: _chunk4KCSH4T3cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId),
9352
+ targetChainName: _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChainId),
9353
+ targetTokenSymbol: _chunkOY5N3E6Lcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId),
9329
9354
  appBalanceUsd,
9330
9355
  onContinue: handleSolanaAmountContinue,
9331
9356
  debug
@@ -9346,11 +9371,12 @@ function DepositFlow({
9346
9371
  targetToken,
9347
9372
  service,
9348
9373
  solanaProvider,
9349
- solanaConnection: _optionalChain([walletSession, 'optionalAccess', _316 => _316.solanaConnection]),
9374
+ solanaConnection: _optionalChain([walletSession, 'optionalAccess', _320 => _320.solanaConnection]),
9350
9375
  uiConfig,
9351
9376
  onConfirm: handleSolanaConfirmed,
9352
9377
  onError: handleError,
9353
- debug
9378
+ debug,
9379
+ onSubmittingChange
9354
9380
  }
9355
9381
  ) : effectiveStep.type === "solana-confirm" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
9356
9382
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
@@ -9387,7 +9413,7 @@ function DepositFlow({
9387
9413
  ) })
9388
9414
  ] }) : null,
9389
9415
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9390
- _chunk4J5ADVINcjs.ProcessingStep,
9416
+ _chunkX4D52IZKcjs.ProcessingStep,
9391
9417
  {
9392
9418
  smartAccount: effectiveStep.smartAccount,
9393
9419
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9410,7 +9436,8 @@ function DepositFlow({
9410
9436
  onDepositComplete: handleDepositComplete,
9411
9437
  onDepositFailed: handleDepositFailed,
9412
9438
  onError: handleError,
9413
- debug
9439
+ debug,
9440
+ onSettledChange: onProcessingSettledChange
9414
9441
  }
9415
9442
  )
9416
9443
  ] });
@@ -9425,7 +9452,7 @@ function DepositFlow({
9425
9452
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9426
9453
  DappImportAssetSelectSkeleton,
9427
9454
  {
9428
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _317 => _317.sourceLabel]), () => ( "")),
9455
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _321 => _321.sourceLabel]), () => ( "")),
9429
9456
  error: dappImportBootError,
9430
9457
  onRetry: handleBootRetry
9431
9458
  }
@@ -9447,7 +9474,7 @@ function DepositFlow({
9447
9474
  rows: dappImportSelectRows,
9448
9475
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
9449
9476
  onSelect: (providerId) => {
9450
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _318 => _318.toLowerCase, 'call', _319 => _319()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9477
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _322 => _322.toLowerCase, 'call', _323 => _323()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
9451
9478
  if (availabilityEntry === "error") {
9452
9479
  storeApi.dispatch({
9453
9480
  type: "dapp-import/availability-retry-requested"
@@ -9466,16 +9493,16 @@ function DepositFlow({
9466
9493
  }
9467
9494
  );
9468
9495
  }
9469
- if (!_optionalChain([signerContext, 'optionalAccess', _320 => _320.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _321 => _321.publicClient])) {
9496
+ if (!_optionalChain([signerContext, 'optionalAccess', _324 => _324.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _325 => _325.publicClient])) {
9470
9497
  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" }) }) }) }) });
9471
9498
  }
9472
9499
  const ownerAddress = signerContext.ownerAddress;
9473
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _322 => _322.walletClient, 'optionalAccess', _323 => _323.chain, 'optionalAccess', _324 => _324.id]), () => ( _optionalChain([signerContext, 'access', _325 => _325.publicClient, 'access', _326 => _326.chain, 'optionalAccess', _327 => _327.id]))), () => ( setupChainId));
9500
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _326 => _326.walletClient, 'optionalAccess', _327 => _327.chain, 'optionalAccess', _328 => _328.id]), () => ( _optionalChain([signerContext, 'access', _329 => _329.publicClient, 'access', _330 => _330.chain, 'optionalAccess', _331 => _331.id]))), () => ( setupChainId));
9474
9501
  const getReadClientForChain = (chainId) => {
9475
- if (_optionalChain([signerContext, 'access', _328 => _328.publicClient, 'access', _329 => _329.chain, 'optionalAccess', _330 => _330.id]) === chainId) {
9502
+ if (_optionalChain([signerContext, 'access', _332 => _332.publicClient, 'access', _333 => _333.chain, 'optionalAccess', _334 => _334.id]) === chainId) {
9476
9503
  return signerContext.publicClient;
9477
9504
  }
9478
- return _chunkHAQOFI3Dcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9505
+ return _chunk3OOY67VJcjs.getPublicClient.call(void 0, chainId, rpcUrls);
9479
9506
  };
9480
9507
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
9481
9508
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9501,9 +9528,9 @@ function DepositFlow({
9501
9528
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9502
9529
  DappImportAssetSelectStep,
9503
9530
  {
9504
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _331 => _331.assets, 'access', _332 => _332[0], 'optionalAccess', _333 => _333.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9531
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _335 => _335.assets, 'access', _336 => _336[0], 'optionalAccess', _337 => _337.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
9505
9532
  assets: activeDappImportAvailability.assets,
9506
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _334 => _334.incomplete, 'optionalAccess', _335 => _335.summary]),
9533
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _338 => _338.incomplete, 'optionalAccess', _339 => _339.summary]),
9507
9534
  onSelect: handleDappImportAssetSelected
9508
9535
  }
9509
9536
  ),
@@ -9578,7 +9605,7 @@ function DepositFlow({
9578
9605
  }
9579
9606
  ),
9580
9607
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9581
- _chunk4J5ADVINcjs.ProcessingStep,
9608
+ _chunkX4D52IZKcjs.ProcessingStep,
9582
9609
  {
9583
9610
  smartAccount: effectiveStep.smartAccount,
9584
9611
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -9607,308 +9634,20 @@ function DepositFlow({
9607
9634
  onDepositComplete: handleDepositComplete,
9608
9635
  onDepositFailed: handleDepositFailed,
9609
9636
  onError: handleError,
9610
- debug
9637
+ debug,
9638
+ onSettledChange: onProcessingSettledChange
9611
9639
  }
9612
9640
  )
9613
9641
  ] });
9614
9642
  }
9615
9643
 
9616
- // src/components/history/DepositHistoryPanel.tsx
9617
-
9618
-
9619
- function shortenHash(hash) {
9620
- if (hash.length <= 14) return hash;
9621
- return `${hash.slice(0, 6)}\u2026${hash.slice(-4)}`;
9622
- }
9623
- function formatDate(iso) {
9624
- try {
9625
- const date = new Date(iso);
9626
- if (Number.isNaN(date.getTime())) return iso;
9627
- return date.toLocaleDateString("en-US", {
9628
- day: "numeric",
9629
- month: "short",
9630
- year: "numeric"
9631
- });
9632
- } catch (e40) {
9633
- return iso;
9634
- }
9635
- }
9636
- function resolveChainId(value) {
9637
- if (value === void 0 || value === null) return null;
9638
- if (typeof value === "number") return value;
9639
- if (_chunk4KCSH4T3cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
9640
- if (_chunk4KCSH4T3cjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
9641
- const parsed = _chunk4KCSH4T3cjs.parseEvmChainId.call(void 0, value);
9642
- if (parsed !== null) return parsed;
9643
- const num = Number(value);
9644
- return Number.isFinite(num) ? num : null;
9645
- }
9646
- function resolveTokenSymbol(token, chainId) {
9647
- if (!token) return "";
9648
- if (chainId === "solana") {
9649
- const normalized = token.toLowerCase();
9650
- const matched = _chunk4KCSH4T3cjs.SOLANA_TOKENS.find(
9651
- (entry) => entry.mint.toLowerCase() === normalized
9652
- );
9653
- if (matched) return matched.symbol;
9654
- if (normalized === "native" || normalized === "11111111111111111111111111111111" || normalized === "so11111111111111111111111111111111111111112") {
9655
- return "SOL";
9656
- }
9657
- }
9658
- if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
9659
- const evmChainId = chainId === "hypercore" ? _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID : chainId;
9660
- const sym = _chunk4KCSH4T3cjs.getTokenSymbol.call(void 0, token, evmChainId);
9661
- if (sym !== "Token") return sym;
9662
- }
9663
- return shortenHash(token);
9664
- }
9665
- function formatAmount(rawAmount, token, chainId) {
9666
- if (!rawAmount) return "";
9667
- let decimals = 18;
9668
- if (token && chainId !== null && chainId !== void 0) {
9669
- if (chainId === "solana") {
9670
- const normalized = token.toLowerCase();
9671
- const matched = _chunk4KCSH4T3cjs.SOLANA_TOKENS.find(
9672
- (entry) => entry.mint.toLowerCase() === normalized
9673
- );
9674
- if (matched) {
9675
- decimals = matched.decimals;
9676
- } else if (normalized === "native" || normalized === "11111111111111111111111111111111" || normalized === "so11111111111111111111111111111111111111112") {
9677
- decimals = 9;
9678
- }
9679
- } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
9680
- const evmChainId = chainId === "hypercore" ? _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID : chainId;
9681
- decimals = _chunk4KCSH4T3cjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
9682
- }
9683
- }
9684
- try {
9685
- const raw = BigInt(rawAmount);
9686
- const divisor = 10n ** BigInt(decimals);
9687
- const whole = raw / divisor;
9688
- const remainder = raw % divisor;
9689
- const fracStr = remainder.toString().padStart(decimals, "0");
9690
- let frac = fracStr.slice(0, 5).replace(/0+$/, "");
9691
- if (frac.length < 2) frac = frac.padEnd(2, "0");
9692
- return `${whole}.${frac}`;
9693
- } catch (e41) {
9694
- return rawAmount;
9695
- }
9696
- }
9697
- function normalizeStatus(raw, isSpam) {
9698
- const lower = raw.toLowerCase();
9699
- if (lower === "completed" || lower === "complete" || lower === "bridge-complete" || lower === "processed")
9700
- return "completed";
9701
- if (lower === "failed" || lower === "error" || lower === "bridge-failed") {
9702
- return isSpam ? "spam" : "failed";
9703
- }
9704
- if (lower === "processing" || lower === "submitted" || lower === "bridging")
9705
- return "processing";
9706
- return "pending";
9707
- }
9708
- var STATUS_LABEL = {
9709
- pending: "Pending",
9710
- processing: "Processing",
9711
- completed: "Completed",
9712
- failed: "Failed",
9713
- spam: "Spam token"
9714
- };
9715
- function DepositHistoryPanel({
9716
- deposits,
9717
- isLoading,
9718
- error,
9719
- hasMore,
9720
- isLoadingMore,
9721
- onLoadMore,
9722
- onClose,
9723
- onCloseModal
9724
- }) {
9725
- const handleKeyDown = _react.useCallback.call(void 0,
9726
- (e) => {
9727
- if (e.key === "Escape") {
9728
- e.stopPropagation();
9729
- onClose();
9730
- }
9731
- },
9732
- [onClose]
9733
- );
9734
- const visibleDeposits = _react.useMemo.call(void 0, () => {
9735
- const sourceHashes = new Set(
9736
- deposits.map((d) => _optionalChain([d, 'access', _336 => _336.sourceTxHash, 'optionalAccess', _337 => _337.toLowerCase, 'call', _338 => _338()])).filter((h) => Boolean(h))
9737
- );
9738
- return deposits.filter(
9739
- (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
9740
- );
9741
- }, [deposits]);
9742
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9743
- "div",
9744
- {
9745
- className: "rs-history-panel",
9746
- role: "dialog",
9747
- "aria-label": "Deposit history",
9748
- onKeyDown: handleKeyDown,
9749
- children: [
9750
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header--redesigned", children: [
9751
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-left", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9752
- "button",
9753
- {
9754
- type: "button",
9755
- className: "rs-modal-header-back",
9756
- "aria-label": "Back",
9757
- onClick: onClose,
9758
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronLeftIcon, {})
9759
- }
9760
- ) }),
9761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9762
- "button",
9763
- {
9764
- type: "button",
9765
- className: "rs-modal-close",
9766
- "aria-label": "Close",
9767
- onClick: onCloseModal,
9768
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CloseIcon, {})
9769
- }
9770
- ) })
9771
- ] }),
9772
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
9773
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
9774
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HistoryIcon, {}), title: "History" }),
9775
- isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
9776
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HistoryIcon, {}) }),
9777
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
9778
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Spinner, { className: "rs-spinner--sm" }),
9779
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
9780
- ] })
9781
- ] }),
9782
- error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
9783
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.AlertTriangleIcon, {}) }),
9784
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
9785
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
9786
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
9787
- ] })
9788
- ] }),
9789
- !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
9790
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HistoryIcon, {}) }),
9791
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
9792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
9793
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
9794
- ] })
9795
- ] }),
9796
- visibleDeposits.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-list", children: [
9797
- visibleDeposits.map((deposit, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HistoryCard, { deposit }, deposit.txHash || i)),
9798
- hasMore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9799
- "button",
9800
- {
9801
- type: "button",
9802
- className: "rs-history-load-more",
9803
- onClick: onLoadMore,
9804
- disabled: isLoadingMore,
9805
- children: isLoadingMore ? "Loading\u2026" : "Load more"
9806
- }
9807
- )
9808
- ] })
9809
- ] }),
9810
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
9811
- ] })
9812
- ]
9813
- }
9814
- );
9815
- }
9816
- function HistoryCard({ deposit }) {
9817
- const explorerTxUrl = _chunkHAQOFI3Dcjs.useExplorerTxUrl.call(void 0, );
9818
- const [expanded, setExpanded] = _react.useState.call(void 0, false);
9819
- const status = normalizeStatus(deposit.status, deposit.isSpam);
9820
- const sourceChainId = resolveChainId(deposit.chain);
9821
- const targetChainId = resolveChainId(deposit.targetChain);
9822
- const sourceChainName = sourceChainId ? _chunk4KCSH4T3cjs.getChainName.call(void 0, sourceChainId) : null;
9823
- const targetChainName = targetChainId ? _chunk4KCSH4T3cjs.getChainName.call(void 0, targetChainId) : null;
9824
- const sourceChainIcon = sourceChainId ? _chunk4KCSH4T3cjs.getChainIcon.call(void 0, sourceChainId) : void 0;
9825
- const targetChainIcon = targetChainId ? _chunk4KCSH4T3cjs.getChainIcon.call(void 0, targetChainId) : void 0;
9826
- const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
9827
- const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
9828
- const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
9829
- const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
9830
- minimumFractionDigits: 2,
9831
- maximumFractionDigits: 2
9832
- })}` : `${formattedAmount} ${sourceSymbol}` : "\u2014";
9833
- const date = deposit.createdAt ? formatDate(deposit.createdAt) : null;
9834
- const txTypeLabel = `Deposit${sourceSymbol ? ` ${sourceSymbol}` : ""}`;
9835
- const srcTxHash = sourceChainId === "hypercore" ? deposit.txHash : deposit.sourceTxHash;
9836
- const srcTxUrl = srcTxHash && sourceChainId ? explorerTxUrl(sourceChainId, srcTxHash) : null;
9837
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9838
- "button",
9839
- {
9840
- type: "button",
9841
- className: `rs-history-card ${expanded ? "rs-history-card--expanded" : ""}`,
9842
- onClick: () => setExpanded((v) => !v),
9843
- "aria-expanded": expanded,
9844
- children: [
9845
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
9846
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
9847
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
9848
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: sourceChainIcon }) })
9849
- ] }),
9850
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
9851
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: txTypeLabel }),
9852
- date && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-date", children: date })
9853
- ] }),
9854
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-side", children: [
9855
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-amount", children: displayAmount }),
9856
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `rs-history-badge rs-history-badge--${status}`, children: STATUS_LABEL[status] })
9857
- ] })
9858
- ] }),
9859
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-history-card-panel", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-history-card-panel-inner", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-details", children: [
9860
- sourceChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
9861
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
9862
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
9863
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
9864
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: sourceChainIcon }) })
9865
- ] })
9866
- ] }),
9867
- targetChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
9868
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
9869
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
9870
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
9871
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: targetChainIcon }) })
9872
- ] })
9873
- ] }),
9874
- srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
9875
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Transaction details" }),
9876
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9877
- "a",
9878
- {
9879
- href: srcTxUrl,
9880
- target: "_blank",
9881
- rel: "noopener noreferrer",
9882
- className: "rs-history-card-link",
9883
- onClick: (e) => e.stopPropagation(),
9884
- children: [
9885
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
9886
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ArrowUpRightIcon, {})
9887
- ]
9888
- }
9889
- )
9890
- ] })
9891
- ] }) }) })
9892
- ]
9893
- }
9894
- );
9895
- }
9896
- DepositHistoryPanel.displayName = "DepositHistoryPanel";
9897
-
9898
9644
  // src/DepositModal.tsx
9899
9645
 
9900
9646
  var ReownDepositInner = _react.lazy.call(void 0, async () => {
9901
9647
  await loadReownDependencies();
9902
- const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-GAD45GIC.cjs")));
9648
+ const module = await Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-R37SSHUF.cjs")));
9903
9649
  return { default: module.DepositModalReown };
9904
9650
  });
9905
- function sortByCreatedAtDesc(items) {
9906
- return [...items].sort((a, b) => {
9907
- const at = a.createdAt ? Date.parse(a.createdAt) : 0;
9908
- const bt = b.createdAt ? Date.parse(b.createdAt) : 0;
9909
- return bt - at;
9910
- });
9911
- }
9912
9651
  function buildDepositAnalyticsSessionProperties({
9913
9652
  enableWallet = true,
9914
9653
  enableFiatOnramp = false,
@@ -9935,7 +9674,7 @@ function buildDepositAnalyticsSessionProperties({
9935
9674
  enabledFundingMethods.push("wallet");
9936
9675
  }
9937
9676
  if (enableQrTransfer) enabledFundingMethods.push("transfer");
9938
- if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _339 => _339.length]) !== 0) {
9677
+ if (enableFiatOnramp && _optionalChain([configuredFiatIdentifiers, 'optionalAccess', _340 => _340.length]) !== 0) {
9939
9678
  enabledFundingMethods.push("fiat_onramp");
9940
9679
  }
9941
9680
  if (enableExchangeConnect) enabledFundingMethods.push("exchange_connect");
@@ -9955,7 +9694,7 @@ function buildDepositAnalyticsSessionProperties({
9955
9694
  amount: defaultAmount !== void 0,
9956
9695
  initial_asset_migration: initialAssetMigration !== void 0
9957
9696
  },
9958
- ..._chunk4J5ADVINcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9697
+ ..._chunkX4D52IZKcjs.analyticsTargetProperties.call(void 0, { targetChain, targetToken })
9959
9698
  };
9960
9699
  }
9961
9700
  var WALLET_CLIENT_PROP = "walletClient";
@@ -9963,8 +9702,8 @@ function hasSuppliedWalletClient(props) {
9963
9702
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
9964
9703
  }
9965
9704
  function DepositModal(props) {
9966
- _chunk4J5ADVINcjs.warnRemovedProps.call(void 0, "DepositModal", props);
9967
- _chunkHAQOFI3Dcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9705
+ _chunkX4D52IZKcjs.warnRemovedProps.call(void 0, "DepositModal", props);
9706
+ _chunk3OOY67VJcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
9968
9707
  const needsReown = !!props.reownAppId;
9969
9708
  const hasWalletClientProp = hasSuppliedWalletClient(props);
9970
9709
  if (needsReown) {
@@ -10029,39 +9768,57 @@ function DepositModalInner({
10029
9768
  onUiState,
10030
9769
  openExternally,
10031
9770
  walletIntegration: walletIntegrationProp,
9771
+ signRecovery,
10032
9772
  debug
10033
9773
  }) {
10034
9774
  const modalRef = _react.useRef.call(void 0, null);
10035
9775
  const analyticsControllerRef = _react.useRef.call(void 0, null);
9776
+ const analyticsSessionIdRef = _react.useRef.call(void 0, null);
10036
9777
  const previousOpenRef = _react.useRef.call(void 0, isOpen);
10037
- const onReadyRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onReady);
10038
- const onUiStateRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onUiState);
9778
+ const onReadyRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onReady);
9779
+ const onUiStateRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onUiState);
10039
9780
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
10040
9781
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
10041
9782
  const [submitting, setSubmitting] = _react.useState.call(void 0, false);
10042
9783
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
10043
9784
  void 0
10044
9785
  );
10045
- const historyButtonVisible = currentScreen === "connect";
10046
- const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
10047
- const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
10048
- const [hasMoreHistory, setHasMoreHistory] = _react.useState.call(void 0, false);
10049
- const [historyLoading, setHistoryLoading] = _react.useState.call(void 0, false);
10050
- const [historyLoadingMore, setHistoryLoadingMore] = _react.useState.call(void 0, false);
10051
- const [historyError, setHistoryError] = _react.useState.call(void 0, null);
10052
- const cursorRef = _react.useRef.call(void 0, null);
10053
- const historyStaleRef = _react.useRef.call(void 0, false);
10054
- const historyLoadedRef = _react.useRef.call(void 0, false);
10055
- const targetChain = targetChainProp === "solana" || targetChainProp === _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2 ? targetChainProp : _chunk4KCSH4T3cjs.getChainId.call(void 0, targetChainProp);
10056
- const sourceChain = sourceChainProp ? _chunk4KCSH4T3cjs.getChainId.call(void 0, sourceChainProp) : void 0;
10057
- const rpcUrls = _chunkHAQOFI3Dcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
9786
+ const [processingSettled, setProcessingSettled] = _react.useState.call(void 0, false);
9787
+ const historyButtonVisible = _chunkX4D52IZKcjs.isHistoryEntryVisible.call(void 0, {
9788
+ screen: currentScreen,
9789
+ submitting,
9790
+ settled: processingSettled
9791
+ });
9792
+ const targetChain = typeof targetChainProp === "string" ? targetChainProp : _chunkOY5N3E6Lcjs.getChainId.call(void 0, targetChainProp);
9793
+ const sourceChain = sourceChainProp ? _chunkOY5N3E6Lcjs.getChainId.call(void 0, sourceChainProp) : void 0;
9794
+ const rpcUrls = _chunk3OOY67VJcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
10058
9795
  const service = _react.useMemo.call(void 0,
10059
- () => _chunkHAQOFI3Dcjs.createDepositService.call(void 0, backendUrl, {
9796
+ () => _chunk3OOY67VJcjs.createDepositService.call(void 0, backendUrl, {
10060
9797
  debug,
10061
9798
  debugScope: "service:deposit"
10062
9799
  }),
10063
9800
  [backendUrl, debug]
10064
9801
  );
9802
+ const historyAnalytics = _react.useMemo.call(void 0,
9803
+ () => _chunkX4D52IZKcjs.createHistoryAnalytics.call(void 0, {
9804
+ modal: "deposit",
9805
+ controllerRef: analyticsControllerRef,
9806
+ sessionIdRef: analyticsSessionIdRef
9807
+ }),
9808
+ []
9809
+ );
9810
+ const history = _chunkX4D52IZKcjs.useHistoryPanel.call(void 0, {
9811
+ isOpen,
9812
+ recipient,
9813
+ service,
9814
+ canRecover: Boolean(signRecovery),
9815
+ analytics: historyAnalytics
9816
+ });
9817
+ const {
9818
+ markStale: markHistoryStale,
9819
+ invalidate: invalidateHistory,
9820
+ recoverySubmitting
9821
+ } = history;
10065
9822
  const [clientSetup, setClientSetup] = _react.useState.call(void 0,
10066
9823
  null
10067
9824
  );
@@ -10090,20 +9847,28 @@ function DepositModalInner({
10090
9847
  }, [store, targetChain, targetToken]);
10091
9848
  _react.useEffect.call(void 0, () => {
10092
9849
  if (!isOpen || !modalRef.current) return;
10093
- return _chunkHAQOFI3Dcjs.applyTheme.call(void 0, modalRef.current, theme);
9850
+ return _chunk3OOY67VJcjs.applyTheme.call(void 0, modalRef.current, theme);
10094
9851
  }, [isOpen, theme]);
10095
9852
  _react.useEffect.call(void 0, () => {
10096
9853
  if (isOpen) {
10097
- _optionalChain([onReadyRef, 'access', _340 => _340.current, 'optionalCall', _341 => _341()]);
9854
+ _optionalChain([onReadyRef, 'access', _341 => _341.current, 'optionalCall', _342 => _342()]);
10098
9855
  }
10099
9856
  }, [isOpen, onReadyRef]);
10100
9857
  _react.useEffect.call(void 0, () => {
10101
- _optionalChain([onUiStateRef, 'access', _342 => _342.current, 'optionalCall', _343 => _343({
9858
+ _optionalChain([onUiStateRef, 'access', _343 => _343.current, 'optionalCall', _344 => _344({
10102
9859
  screen: currentScreen,
10103
9860
  back: backHandler,
10104
- submitting
9861
+ // A recovery in flight is a submission whose outcome is unknown, so a
9862
+ // native host's dismissal lock has to hold through it too.
9863
+ submitting: submitting || recoverySubmitting
10105
9864
  })]);
10106
- }, [currentScreen, backHandler, submitting, onUiStateRef]);
9865
+ }, [
9866
+ currentScreen,
9867
+ backHandler,
9868
+ submitting,
9869
+ recoverySubmitting,
9870
+ onUiStateRef
9871
+ ]);
10107
9872
  const handleStepChange = _react.useCallback.call(void 0,
10108
9873
  (onBack, screen) => {
10109
9874
  setBackHandler(() => onBack);
@@ -10111,93 +9876,28 @@ function DepositModalInner({
10111
9876
  },
10112
9877
  []
10113
9878
  );
10114
- const fetchHistory = _react.useCallback.call(void 0,
10115
- async (mode = "initial") => {
10116
- if (!recipient) return;
10117
- const isInitial = mode === "initial";
10118
- if (isInitial) {
10119
- setHistoryLoading(true);
10120
- } else {
10121
- setHistoryLoadingMore(true);
10122
- }
10123
- setHistoryError(null);
10124
- try {
10125
- const cursor = isInitial ? null : cursorRef.current;
10126
- if (!isInitial && !cursor) {
10127
- setHasMoreHistory(false);
10128
- return;
10129
- }
10130
- const result = await service.fetchDepositHistory({
10131
- recipient,
10132
- limit: 20,
10133
- cursor: _nullishCoalesce(cursor, () => ( void 0))
10134
- });
10135
- const incoming = result.deposits;
10136
- const nextCursor = _nullishCoalesce(result.nextCursor, () => ( null));
10137
- if (isInitial) {
10138
- setHistoryDeposits(sortByCreatedAtDesc(incoming));
10139
- } else {
10140
- setHistoryDeposits(
10141
- (prev) => sortByCreatedAtDesc([...prev, ...incoming])
10142
- );
10143
- }
10144
- cursorRef.current = nextCursor;
10145
- setHasMoreHistory(Boolean(nextCursor));
10146
- historyStaleRef.current = false;
10147
- historyLoadedRef.current = true;
10148
- } catch (err) {
10149
- setHistoryError(
10150
- err instanceof Error ? err.message : "Failed to load history"
10151
- );
10152
- } finally {
10153
- if (isInitial) {
10154
- setHistoryLoading(false);
10155
- } else {
10156
- setHistoryLoadingMore(false);
10157
- }
10158
- }
10159
- },
10160
- [recipient, service]
10161
- );
10162
- const handleHistoryOpen = _react.useCallback.call(void 0, () => {
10163
- setHistoryOpen(true);
10164
- if (!historyLoadedRef.current || historyStaleRef.current) {
10165
- fetchHistory("initial");
10166
- }
10167
- }, [fetchHistory]);
10168
- const handleHistoryClose = _react.useCallback.call(void 0, () => {
10169
- setHistoryOpen(false);
10170
- }, []);
10171
- const handleHistoryLoadMore = _react.useCallback.call(void 0, () => {
10172
- fetchHistory("more");
10173
- }, [fetchHistory]);
10174
- const markHistoryStale = _react.useCallback.call(void 0, () => {
10175
- historyStaleRef.current = true;
10176
- if (historyOpen) {
10177
- fetchHistory("initial");
10178
- }
10179
- }, [historyOpen, fetchHistory]);
10180
- const onLifecycleRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onLifecycle);
9879
+ const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
10181
9880
  const handleLifecycle = _react.useCallback.call(void 0,
10182
9881
  (event) => {
10183
- _optionalChain([onLifecycleRef, 'access', _344 => _344.current, 'optionalCall', _345 => _345(event)]);
9882
+ _optionalChain([onLifecycleRef, 'access', _345 => _345.current, 'optionalCall', _346 => _346(event)]);
10184
9883
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
10185
- historyStaleRef.current = true;
9884
+ invalidateHistory();
10186
9885
  }
10187
9886
  if (event.type === "submitted" || event.type === "complete" || event.type === "failed") {
10188
9887
  markHistoryStale();
10189
9888
  }
10190
9889
  },
10191
- [onLifecycleRef, markHistoryStale]
9890
+ [onLifecycleRef, markHistoryStale, invalidateHistory]
10192
9891
  );
10193
9892
  const closeWithSource = _react.useCallback.call(void 0,
10194
9893
  (source) => {
9894
+ if (recoverySubmitting) return;
10195
9895
  const analytics = analyticsControllerRef.current;
10196
- _optionalChain([analytics, 'optionalAccess', _346 => _346.abandon, 'call', _347 => _347(source === "provider_back" ? "provider_back" : "modal_close")]);
10197
- _optionalChain([analytics, 'optionalAccess', _348 => _348.close, 'call', _349 => _349(source)]);
9896
+ _optionalChain([analytics, 'optionalAccess', _347 => _347.abandon, 'call', _348 => _348(source === "provider_back" ? "provider_back" : "modal_close")]);
9897
+ _optionalChain([analytics, 'optionalAccess', _349 => _349.close, 'call', _350 => _350(source)]);
10198
9898
  onClose();
10199
9899
  },
10200
- [onClose]
9900
+ [onClose, recoverySubmitting]
10201
9901
  );
10202
9902
  const handleModalDismiss = _react.useCallback.call(void 0,
10203
9903
  (reason) => {
@@ -10210,24 +9910,18 @@ function DepositModalInner({
10210
9910
  _react.useEffect.call(void 0, () => {
10211
9911
  if (previousOpenRef.current && !isOpen) {
10212
9912
  const analytics = analyticsControllerRef.current;
10213
- _optionalChain([analytics, 'optionalAccess', _350 => _350.abandon, 'call', _351 => _351("modal_close")]);
10214
- _optionalChain([analytics, 'optionalAccess', _352 => _352.close, 'call', _353 => _353("host_controlled")]);
9913
+ _optionalChain([analytics, 'optionalAccess', _351 => _351.abandon, 'call', _352 => _352("modal_close")]);
9914
+ _optionalChain([analytics, 'optionalAccess', _353 => _353.close, 'call', _354 => _354("host_controlled")]);
10215
9915
  }
10216
9916
  previousOpenRef.current = isOpen;
10217
9917
  }, [isOpen]);
10218
9918
  _react.useEffect.call(void 0, () => {
10219
9919
  if (!isOpen) {
10220
- setHistoryOpen(false);
10221
- setHistoryDeposits([]);
10222
- setHasMoreHistory(false);
10223
- setHistoryError(null);
10224
- cursorRef.current = null;
10225
- historyStaleRef.current = false;
10226
- historyLoadedRef.current = false;
10227
9920
  setCurrentScreen("connect");
10228
9921
  setBackHandler(void 0);
10229
9922
  setSwappedImmersive(false);
10230
9923
  setSubmitting(false);
9924
+ setProcessingSettled(false);
10231
9925
  }
10232
9926
  }, [isOpen]);
10233
9927
  _react.useEffect.call(void 0, () => {
@@ -10254,20 +9948,21 @@ function DepositModalInner({
10254
9948
  targetChain,
10255
9949
  targetToken
10256
9950
  });
10257
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _354 => _354.showBackButton]), () => ( true));
9951
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _355 => _355.showBackButton]), () => ( true));
10258
9952
  const canGoBack = backHandler !== void 0;
10259
9953
  const hideHeaderChrome = swappedImmersive;
10260
9954
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
10261
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10262
- _chunkHAQOFI3Dcjs.Modal,
9955
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9956
+ _chunk3OOY67VJcjs.Modal,
10263
9957
  {
10264
9958
  isOpen,
10265
9959
  onClose: handleModalDismiss,
10266
9960
  className,
10267
9961
  inline,
10268
9962
  closeOnOverlayClick,
9963
+ ariaLabel: "Deposit",
10269
9964
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10270
- _chunkHAQOFI3Dcjs.AnalyticsSession,
9965
+ _chunk3OOY67VJcjs.AnalyticsSession,
10271
9966
  {
10272
9967
  modal: "deposit",
10273
9968
  sessionProperties: analyticsSessionProperties,
@@ -10275,6 +9970,7 @@ function DepositModalInner({
10275
9970
  backendUrl,
10276
9971
  enableIngest: enableAnalyticsIngest,
10277
9972
  ingestUrl: analyticsIngestUrl,
9973
+ sessionIdRef: analyticsSessionIdRef,
10278
9974
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10279
9975
  DepositAnalyticsControllerProvider,
10280
9976
  {
@@ -10288,19 +9984,16 @@ function DepositModalInner({
10288
9984
  className: "rs-modal-header-back",
10289
9985
  "aria-label": "Go back",
10290
9986
  onClick: backHandler,
10291
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronLeftIcon, {})
9987
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronLeftIcon, {})
10292
9988
  }
10293
9989
  ) }),
10294
9990
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
10295
9991
  historyButtonVisible && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10296
- "button",
9992
+ _chunkX4D52IZKcjs.HistoryEntryButton,
10297
9993
  {
10298
- type: "button",
10299
- className: "rs-modal-header-history",
10300
- "aria-label": "Deposit history",
10301
- onClick: handleHistoryOpen,
10302
- disabled: !recipient,
10303
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.HistoryIcon, {})
9994
+ badge: history.badge,
9995
+ onClick: history.openPanel,
9996
+ disabled: !recipient
10304
9997
  }
10305
9998
  ),
10306
9999
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10310,7 +10003,7 @@ function DepositModalInner({
10310
10003
  onClick: () => closeWithSource("header_button"),
10311
10004
  className: "rs-modal-close",
10312
10005
  "aria-label": "Close",
10313
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CloseIcon, {})
10006
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {})
10314
10007
  }
10315
10008
  )
10316
10009
  ] })
@@ -10346,29 +10039,36 @@ function DepositModalInner({
10346
10039
  onDisconnect,
10347
10040
  onRequestConnect,
10348
10041
  uiConfig,
10349
- appFees: _optionalChain([clientSetup, 'optionalAccess', _355 => _355.appFees]),
10042
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _356 => _356.appFees]),
10350
10043
  appFeesResolved: clientSetup !== null,
10351
10044
  onStepChange: handleStepChange,
10352
10045
  onSwappedImmersiveChange: setSwappedImmersive,
10353
10046
  openExternally,
10354
10047
  onSubmittingChange: setSubmitting,
10048
+ onProcessingSettledChange: setProcessingSettled,
10355
10049
  onClose: (source) => closeWithSource(_nullishCoalesce(source, () => ( "header_button"))),
10356
10050
  onLifecycle: handleLifecycle,
10357
10051
  onError,
10358
10052
  debug
10359
10053
  }
10360
10054
  ),
10361
- historyOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10362
- DepositHistoryPanel,
10055
+ history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10056
+ _chunkX4D52IZKcjs.HistoryOverlay,
10363
10057
  {
10364
- deposits: historyDeposits,
10365
- isLoading: historyLoading,
10366
- error: historyError,
10367
- hasMore: hasMoreHistory,
10368
- isLoadingMore: historyLoadingMore,
10369
- onLoadMore: handleHistoryLoadMore,
10370
- onClose: handleHistoryClose,
10371
- onCloseModal: () => closeWithSource("header_button")
10058
+ controller: history,
10059
+ backLabel: "Deposit",
10060
+ recipient,
10061
+ backendUrl,
10062
+ service,
10063
+ signRecovery,
10064
+ debug,
10065
+ onCloseModal: () => closeWithSource("header_button"),
10066
+ analytics: historyAnalytics,
10067
+ inline,
10068
+ closeOnOverlayClick,
10069
+ enableAnalyticsIngest,
10070
+ analyticsIngestUrl,
10071
+ onEvent
10372
10072
  }
10373
10073
  )
10374
10074
  ] })