@rhinestone/deposit-modal 0.10.0 → 0.11.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 (49) hide show
  1. package/dist/{DepositModalReown-MTWT6Y66.mjs → DepositModalReown-6RVLEM3B.mjs} +96 -26
  2. package/dist/{DepositModalReown-S3DSFXTX.cjs → DepositModalReown-TXTLVZIQ.cjs} +97 -27
  3. package/dist/caip-D8aRWdEY.d.cts +40 -0
  4. package/dist/caip-D8aRWdEY.d.ts +40 -0
  5. package/dist/{chunk-A223BLVC.mjs → chunk-53IFZGSF.mjs} +177 -21
  6. package/dist/{chunk-W4YAOJPG.cjs → chunk-7RNEYPI4.cjs} +614 -560
  7. package/dist/{chunk-UMCDZJMG.cjs → chunk-BLJMYCBF.cjs} +92 -90
  8. package/dist/{chunk-KW32UBUQ.mjs → chunk-DYTRG4C7.mjs} +1 -1
  9. package/dist/{chunk-LR7MKHYV.mjs → chunk-G4FVZQOM.mjs} +23 -21
  10. package/dist/{chunk-DEF767BA.cjs → chunk-GWA6GFTI.cjs} +66 -63
  11. package/dist/{chunk-A42XAHIB.cjs → chunk-HCQWFL3A.cjs} +84 -101
  12. package/dist/{chunk-7TV7GLJB.mjs → chunk-ITAYM7SB.mjs} +723 -167
  13. package/dist/{chunk-YEBXUUH3.cjs → chunk-JPRV36DT.cjs} +2 -2
  14. package/dist/{chunk-VTVOHNXM.cjs → chunk-JYKMR6QI.cjs} +3 -3
  15. package/dist/{chunk-ILT2PITN.mjs → chunk-MZ53PDIX.mjs} +1 -1
  16. package/dist/{chunk-PUJHXHRA.cjs → chunk-NPSC5R22.cjs} +805 -249
  17. package/dist/{chunk-5OEWGJR4.mjs → chunk-QRR3Y7EK.mjs} +1 -1
  18. package/dist/{chunk-H577RJN5.cjs → chunk-TENL4H64.cjs} +186 -30
  19. package/dist/{chunk-MHIOMTMM.mjs → chunk-TRD2FCAR.mjs} +140 -86
  20. package/dist/{chunk-5NJYW5FT.mjs → chunk-VRNRRN2U.mjs} +12 -9
  21. package/dist/{chunk-VDGT6NZQ.mjs → chunk-WLDTBKRA.mjs} +14 -31
  22. package/dist/{chunk-NF4NBRUP.cjs → chunk-XVKBCDZI.cjs} +1 -1
  23. package/dist/claim.cjs +6 -6
  24. package/dist/claim.d.cts +3 -2
  25. package/dist/claim.d.ts +3 -2
  26. package/dist/claim.mjs +5 -5
  27. package/dist/{caip-523Zrc3r.d.cts → constants-FuzG3h4m.d.cts} +1 -18
  28. package/dist/{caip-523Zrc3r.d.ts → constants-FuzG3h4m.d.ts} +1 -18
  29. package/dist/constants.cjs +5 -3
  30. package/dist/constants.d.cts +3 -2
  31. package/dist/constants.d.ts +3 -2
  32. package/dist/constants.mjs +4 -2
  33. package/dist/deposit.cjs +8 -8
  34. package/dist/deposit.d.cts +3 -2
  35. package/dist/deposit.d.ts +3 -2
  36. package/dist/deposit.mjs +7 -7
  37. package/dist/index.cjs +12 -10
  38. package/dist/index.d.cts +3 -2
  39. package/dist/index.d.ts +3 -2
  40. package/dist/index.mjs +11 -9
  41. package/dist/polymarket.cjs +5 -5
  42. package/dist/polymarket.mjs +2 -2
  43. package/dist/{types-C0SGf-21.d.cts → types-C7wag_iL.d.cts} +4 -3
  44. package/dist/{types-C0SGf-21.d.ts → types-D4b6Cjox.d.ts} +4 -3
  45. package/dist/withdraw.cjs +6 -6
  46. package/dist/withdraw.d.cts +3 -2
  47. package/dist/withdraw.d.ts +3 -2
  48. package/dist/withdraw.mjs +5 -5
  49. package/package.json +1 -1
@@ -17,11 +17,11 @@
17
17
 
18
18
 
19
19
 
20
+ var _chunkHCQWFL3Acjs = require('./chunk-HCQWFL3A.cjs');
20
21
 
21
- var _chunkA42XAHIBcjs = require('./chunk-A42XAHIB.cjs');
22
22
 
23
+ var _chunkJYKMR6QIcjs = require('./chunk-JYKMR6QI.cjs');
23
24
 
24
- var _chunkVTVOHNXMcjs = require('./chunk-VTVOHNXM.cjs');
25
25
 
26
26
 
27
27
 
@@ -77,7 +77,6 @@ var _chunkVTVOHNXMcjs = require('./chunk-VTVOHNXM.cjs');
77
77
 
78
78
 
79
79
 
80
- var _chunkPUJHXHRAcjs = require('./chunk-PUJHXHRA.cjs');
81
80
 
82
81
 
83
82
 
@@ -86,9 +85,9 @@ var _chunkPUJHXHRAcjs = require('./chunk-PUJHXHRA.cjs');
86
85
 
87
86
 
88
87
 
88
+ var _chunkNPSC5R22cjs = require('./chunk-NPSC5R22.cjs');
89
89
 
90
90
 
91
- var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
92
91
 
93
92
 
94
93
 
@@ -97,6 +96,7 @@ var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
97
96
 
98
97
 
99
98
 
99
+ var _chunkJPRV36DTcjs = require('./chunk-JPRV36DT.cjs');
100
100
 
101
101
 
102
102
 
@@ -117,7 +117,19 @@ var _chunkYEBXUUH3cjs = require('./chunk-YEBXUUH3.cjs');
117
117
 
118
118
 
119
119
 
120
- var _chunkH577RJN5cjs = require('./chunk-H577RJN5.cjs');
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
121
133
 
122
134
  // src/DepositModal.tsx
123
135
 
@@ -207,12 +219,15 @@ SegmentedToggle.displayName = "SegmentedToggle";
207
219
  // src/components/ui/ChainIcon.tsx
208
220
 
209
221
  function ChainIcon({ chainId, className, loading }) {
210
- const badge = _chunkH577RJN5cjs.getChainBadge.call(void 0, chainId);
222
+ const badge = _chunkTENL4H64cjs.getChainBadge.call(void 0, chainId);
223
+ const catalogChain = _chunkNPSC5R22cjs.useCatalogChain.call(void 0, _chunkNPSC5R22cjs.catalogKeyForChain.call(void 0, chainId));
224
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _2 => _2.name]), () => ( _chunkTENL4H64cjs.getChainName.call(void 0, chainId)));
225
+ const initial = (_nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _3 => _3.name]), () => ( badge.shortLabel))).charAt(0);
211
226
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
212
- _chunkPUJHXHRAcjs.CdnIcon,
227
+ _chunkNPSC5R22cjs.CdnIcon,
213
228
  {
214
- src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chainId),
215
- alt: _chunkH577RJN5cjs.getChainName.call(void 0, chainId),
229
+ src: _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _4 => _4.iconUrl]), () => ( _chunkTENL4H64cjs.getChainIcon.call(void 0, chainId))),
230
+ alt: name,
216
231
  className,
217
232
  loading,
218
233
  fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -220,8 +235,8 @@ function ChainIcon({ chainId, className, loading }) {
220
235
  {
221
236
  className: "rs-chain-badge-fallback",
222
237
  style: { backgroundColor: badge.bg, color: badge.color },
223
- "aria-label": _chunkH577RJN5cjs.getChainName.call(void 0, chainId),
224
- children: badge.shortLabel.charAt(0)
238
+ "aria-label": name,
239
+ children: initial
225
240
  }
226
241
  )
227
242
  }
@@ -232,16 +247,16 @@ ChainIcon.displayName = "ChainIcon";
232
247
  // src/components/ui/WalletBadgeIcons/index.tsx
233
248
 
234
249
  function BadgeImage({ src, alt = "" }) {
235
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src, alt }) });
250
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src, alt }) });
236
251
  }
237
252
  var WALLET_BADGES = ["rabby", "phantom", "walletconnect"];
238
253
  function WalletBadgeIcons() {
239
- 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: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "wallets", slug) }, slug)) });
254
+ 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: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "wallets", slug) }, slug)) });
240
255
  }
241
256
  WalletBadgeIcons.displayName = "WalletBadgeIcons";
242
257
  var TRANSFER_CHAIN_BADGES = ["mainnet", "solana", "base"];
243
258
  function ChainBadgeIcons() {
244
- 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: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "chains", slug) }, slug)) });
259
+ 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: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "chains", slug) }, slug)) });
245
260
  }
246
261
  ChainBadgeIcons.displayName = "ChainBadgeIcons";
247
262
  var MAX_WALLET_CHAIN_MARKS = 3;
@@ -261,23 +276,23 @@ var DAPP_IMPORT_CATALOG = [
261
276
  {
262
277
  id: "polymarket",
263
278
  label: "Polymarket",
264
- iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "polymarket")
279
+ iconUrl: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "dapps", "polymarket")
265
280
  },
266
281
  {
267
282
  id: "aave",
268
283
  label: "Aave",
269
- iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "aave")
284
+ iconUrl: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "dapps", "aave")
270
285
  },
271
286
  {
272
287
  id: "hyperliquid",
273
288
  label: "Hyperliquid",
274
- iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "hyperliquid"),
289
+ iconUrl: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "dapps", "hyperliquid"),
275
290
  comingSoon: true
276
291
  },
277
292
  {
278
293
  id: "morpho",
279
294
  label: "Morpho",
280
- iconUrl: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "dapps", "morpho"),
295
+ iconUrl: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "dapps", "morpho"),
281
296
  comingSoon: true
282
297
  }
283
298
  ];
@@ -285,7 +300,7 @@ var DAPP_IMPORT_CATALOG = [
285
300
  // src/components/ui/BrandIcons.tsx
286
301
 
287
302
  function ExchangeBadgeImage({ name }) {
288
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: _nullishCoalesce(_chunkA42XAHIBcjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
303
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: _nullishCoalesce(_chunkHCQWFL3Acjs.getExchangeLogoSrc.call(void 0, name), () => ( void 0)) });
289
304
  }
290
305
  var CARD_NETWORKS = ["amex", "visa", "mastercard"];
291
306
  function CardNetworkIcons() {
@@ -293,7 +308,7 @@ function CardNetworkIcons() {
293
308
  "span",
294
309
  {
295
310
  className: `rs-card-network rs-card-network--${network}`,
296
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: _chunkH577RJN5cjs.cdnIconUrl.call(void 0, "cards", network) })
311
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: _chunkTENL4H64cjs.cdnIconUrl.call(void 0, "cards", network) })
297
312
  },
298
313
  network
299
314
  )) });
@@ -314,7 +329,7 @@ function DappBadgeIcons() {
314
329
  ).filter(
315
330
  (brand) => Boolean(brand)
316
331
  );
317
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-meta-icons rs-list-row-meta-icons--exchanges", children: marks.map((brand) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
332
+ 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, _chunkNPSC5R22cjs.CdnIcon, { src: brand.iconUrl, alt: brand.label }) }, brand.id)) });
318
333
  }
319
334
  DappBadgeIcons.displayName = "DappBadgeIcons";
320
335
  var DAPP_BADGE_COUNT = DAPP_BADGE_ORDER.length;
@@ -334,9 +349,9 @@ function balanceSubtitle(status, balanceUsd, fallback) {
334
349
  return "No balance";
335
350
  }
336
351
  function fiatIcon(name) {
337
- if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.AppleIcon, {});
338
- if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BankIcon, {});
339
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CardIcon, {});
352
+ if (name === "apple") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.AppleIcon, {});
353
+ if (name === "bank") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BankIcon, {});
354
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CardIcon, {});
340
355
  }
341
356
  function FiatMethodIcon({ option }) {
342
357
  const [remoteFailed, setRemoteFailed] = _react.useState.call(void 0, false);
@@ -419,13 +434,13 @@ function renderWalletLeading(row) {
419
434
  }
420
435
  );
421
436
  }
422
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {});
437
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {});
423
438
  }
424
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {});
425
- var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {});
426
- var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.UnplugIcon, {});
427
- var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.MigrateAssetsIcon, {});
428
- var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" });
439
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TransferCryptoIcon, {});
440
+ var WALLET_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {});
441
+ var EXCHANGE_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.UnplugIcon, {});
442
+ var MIGRATE_ASSETS_LEADING = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.MigrateAssetsIcon, {});
443
+ var SMALL_SPINNER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, { className: "rs-spinner--sm" });
429
444
  var CONNECT_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
430
445
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletBadgeIcons, {}),
431
446
  "+100"
@@ -442,7 +457,7 @@ var MIGRATE_ASSETS_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxrunt
442
457
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DappBadgeIcons, {}),
443
458
  EXTRA_DAPP_COUNT > 0 ? `+${EXTRA_DAPP_COUNT}` : null
444
459
  ] });
445
- var EXTRA_CHAIN_COUNT = Math.max(0, _chunkH577RJN5cjs.getSupportedChainIds.call(void 0, ).length - 3);
460
+ var EXTRA_CHAIN_COUNT = Math.max(0, _chunkTENL4H64cjs.getSupportedChainIds.call(void 0, ).length - 3);
446
461
  var CHAIN_BADGE_META = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
447
462
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChainBadgeIcons, {}),
448
463
  EXTRA_CHAIN_COUNT > 0 ? `+${EXTRA_CHAIN_COUNT}` : null
@@ -486,7 +501,7 @@ function ConnectStep({
486
501
  if (onSelectTransferCrypto) {
487
502
  cryptoRows.push(
488
503
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
489
- _chunkVTVOHNXMcjs.ListRow,
504
+ _chunkJYKMR6QIcjs.ListRow,
490
505
  {
491
506
  leading: TRANSFER_CRYPTO_LEADING,
492
507
  title: "Transfer crypto",
@@ -507,13 +522,13 @@ function ConnectStep({
507
522
  );
508
523
  cryptoRows.push(
509
524
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
510
- _chunkVTVOHNXMcjs.ListRow,
525
+ _chunkJYKMR6QIcjs.ListRow,
511
526
  {
512
527
  leading: renderWalletLeading(row),
513
528
  title: collapseToExternal ? "External wallet" : row.label,
514
529
  subtitle: subtitleText,
515
- meta: row.kind === "solana" || !_optionalChain([row, 'access', _2 => _2.balanceChainIds, 'optionalAccess', _3 => _3.length]) ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletChainBadgeIcons, { chainIds: row.balanceChainIds }),
516
- onClick: () => _optionalChain([onConfirmWallet, 'optionalCall', _4 => _4(row.id)]),
530
+ meta: row.kind === "solana" || !_optionalChain([row, 'access', _5 => _5.balanceChainIds, 'optionalAccess', _6 => _6.length]) ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletChainBadgeIcons, { chainIds: row.balanceChainIds }),
531
+ onClick: () => _optionalChain([onConfirmWallet, 'optionalCall', _7 => _7(row.id)]),
517
532
  disabled: row.state === "loading",
518
533
  trailing: renderRowTrailing(row.state)
519
534
  },
@@ -524,7 +539,7 @@ function ConnectStep({
524
539
  if (!hasReownWallet && handleConnect) {
525
540
  cryptoRows.push(
526
541
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
527
- _chunkVTVOHNXMcjs.ListRow,
542
+ _chunkJYKMR6QIcjs.ListRow,
528
543
  {
529
544
  leading: WALLET_LEADING,
530
545
  title: "Connect wallet",
@@ -539,7 +554,7 @@ function ConnectStep({
539
554
  if (onSelectFundFromExchange) {
540
555
  cryptoRows.push(
541
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
542
- _chunkVTVOHNXMcjs.ListRow,
557
+ _chunkJYKMR6QIcjs.ListRow,
543
558
  {
544
559
  leading: EXCHANGE_LEADING,
545
560
  title: "Connect exchange",
@@ -554,7 +569,7 @@ function ConnectStep({
554
569
  if (onSelectMigrateAssets) {
555
570
  cryptoRows.push(
556
571
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
557
- _chunkVTVOHNXMcjs.ListRow,
572
+ _chunkJYKMR6QIcjs.ListRow,
558
573
  {
559
574
  leading: MIGRATE_ASSETS_LEADING,
560
575
  title: "Migrate assets",
@@ -575,7 +590,7 @@ function ConnectStep({
575
590
  for (const opt of fiatPaymentMethods) {
576
591
  cashRows.push(
577
592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
578
- _chunkVTVOHNXMcjs.ListRow,
593
+ _chunkJYKMR6QIcjs.ListRow,
579
594
  {
580
595
  leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FiatMethodIcon, { option: opt }),
581
596
  title: opt.label,
@@ -590,7 +605,7 @@ function ConnectStep({
590
605
  } else if (fiatLoading) {
591
606
  cashRows.push(
592
607
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
593
- _chunkVTVOHNXMcjs.ListRow,
608
+ _chunkJYKMR6QIcjs.ListRow,
594
609
  {
595
610
  leading: SMALL_SPINNER,
596
611
  title: "Loading payment options\u2026",
@@ -606,7 +621,7 @@ function ConnectStep({
606
621
  const [tab, setTab] = _react.useState.call(void 0, defaultMethodTab);
607
622
  const handleTabChange = (next) => {
608
623
  setTab(next);
609
- _optionalChain([onMethodTabChange, 'optionalCall', _5 => _5(next)]);
624
+ _optionalChain([onMethodTabChange, 'optionalCall', _8 => _8(next)]);
610
625
  };
611
626
  const activeTab = showToggle ? tab : hasCash && !hasCrypto ? "cash" : "crypto";
612
627
  const activeRows = activeTab === "cash" ? cashRows : cryptoRows;
@@ -619,9 +634,9 @@ function ConnectStep({
619
634
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
620
635
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
621
636
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
622
- _chunkPUJHXHRAcjs.BodyHeader,
637
+ _chunkNPSC5R22cjs.BodyHeader,
623
638
  {
624
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HandCoinsIcon, {}),
639
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HandCoinsIcon, {}),
625
640
  title,
626
641
  subtitle: _nullishCoalesce(subtitle, () => ( defaultSubtitle)),
627
642
  aside: showToggle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -657,7 +672,7 @@ function ConnectStep({
657
672
  children: "Disconnect wallet"
658
673
  }
659
674
  ) }),
660
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
675
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
661
676
  ] });
662
677
  }
663
678
  ConnectStep.displayName = "ConnectStep";
@@ -680,14 +695,17 @@ function AssetSelectStep({
680
695
  const [selectedAssetId, setSelectedAssetId] = _react.useState.call(void 0, null);
681
696
  const [loading, setLoading] = _react.useState.call(void 0, true);
682
697
  const [error, setError] = _react.useState.call(void 0, null);
698
+ const isDepositChain = _chunkNPSC5R22cjs.useIsDepositChain.call(void 0, );
699
+ const { catalog } = _chunkNPSC5R22cjs.useChainCatalog.call(void 0, );
700
+ const chainName = _chunkNPSC5R22cjs.useChainName.call(void 0, );
683
701
  const defaultAssetId = _react.useMemo.call(void 0, () => {
684
702
  if (!defaultSourceChain || !defaultSourceToken) return null;
685
- return _chunkPUJHXHRAcjs.getAssetId.call(void 0, {
703
+ return _chunkNPSC5R22cjs.getAssetId.call(void 0, {
686
704
  chainId: defaultSourceChain,
687
705
  token: defaultSourceToken
688
706
  });
689
707
  }, [defaultSourceChain, defaultSourceToken]);
690
- const onTotalBalanceComputedRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
708
+ const onTotalBalanceComputedRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onTotalBalanceComputed);
691
709
  _react.useEffect.call(void 0, () => {
692
710
  let active = true;
693
711
  function emitAssetsUpdate(currentAssets) {
@@ -695,7 +713,7 @@ function AssetSelectStep({
695
713
  (sum, asset) => sum + (_nullishCoalesce(asset.balanceUsd, () => ( 0))),
696
714
  0
697
715
  );
698
- _optionalChain([onTotalBalanceComputedRef, 'access', _6 => _6.current, 'optionalCall', _7 => _7(total)]);
716
+ _optionalChain([onTotalBalanceComputedRef, 'access', _9 => _9.current, 'optionalCall', _10 => _10(total)]);
699
717
  }
700
718
  async function loadPortfolio() {
701
719
  if (!address) {
@@ -707,17 +725,20 @@ function AssetSelectStep({
707
725
  try {
708
726
  const portfolio = await service.fetchPortfolio(address);
709
727
  if (!active) return;
710
- const portfolioAssets = _chunkPUJHXHRAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
728
+ const portfolioAssets = _chunkNPSC5R22cjs.portfolioToAssets.call(void 0, portfolio.tokens);
711
729
  setAssets(portfolioAssets);
712
730
  emitAssetsUpdate(portfolioAssets);
713
731
  const hasNative = portfolioAssets.some(
714
- (asset) => asset.token.toLowerCase() === _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS
732
+ (asset) => asset.token.toLowerCase() === _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS
715
733
  );
716
734
  if (!hasNative) {
735
+ const connectedChainId = _optionalChain([publicClient, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.id]);
717
736
  const nativeAssets = await fetchNativeAssets(
718
737
  address,
719
738
  publicClient,
720
- portfolioAssets
739
+ portfolioAssets,
740
+ isDepositChain,
741
+ connectedChainId != null ? _optionalChain([catalog, 'optionalAccess', _13 => _13.byChainId, 'access', _14 => _14.get, 'call', _15 => _15(connectedChainId)]) : void 0
721
742
  );
722
743
  if (!active) return;
723
744
  if (nativeAssets.length > 0) {
@@ -739,15 +760,23 @@ function AssetSelectStep({
739
760
  return () => {
740
761
  active = false;
741
762
  };
742
- }, [address, publicClient, service, onTotalBalanceComputedRef]);
763
+ }, [
764
+ address,
765
+ publicClient,
766
+ service,
767
+ onTotalBalanceComputedRef,
768
+ isDepositChain,
769
+ catalog
770
+ ]);
743
771
  const rows = _react.useMemo.call(void 0, () => {
744
772
  return assets.filter((a) => {
773
+ if (!isDepositChain(a.chainId)) return false;
745
774
  try {
746
775
  if (BigInt(_nullishCoalesce(a.balance, () => ( "0"))) <= BigInt(0)) return false;
747
776
  } catch (e2) {
748
777
  return false;
749
778
  }
750
- const isNativeToken = a.token.toLowerCase() === _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS;
779
+ const isNativeToken = a.token.toLowerCase() === _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS;
751
780
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
752
781
  return false;
753
782
  return true;
@@ -761,7 +790,7 @@ function AssetSelectStep({
761
790
  if (balB < balA) return -1;
762
791
  return 0;
763
792
  });
764
- }, [assets]);
793
+ }, [assets, isDepositChain]);
765
794
  _react.useEffect.call(void 0, () => {
766
795
  if (!defaultAssetId || selectedAssetId) return;
767
796
  if (rows.some((asset) => asset.id === defaultAssetId)) {
@@ -775,7 +804,7 @@ function AssetSelectStep({
775
804
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
776
805
  const numeric = Number(raw);
777
806
  if (!Number.isFinite(numeric)) return raw;
778
- return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
807
+ return _chunkNPSC5R22cjs.tokenFormatter.format(numeric);
779
808
  } catch (e3) {
780
809
  return asset.balance;
781
810
  }
@@ -783,20 +812,20 @@ function AssetSelectStep({
783
812
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
784
813
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
785
814
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
786
- _chunkPUJHXHRAcjs.BodyHeader,
815
+ _chunkNPSC5R22cjs.BodyHeader,
787
816
  {
788
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
817
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}),
789
818
  title: "Your assets",
790
819
  subtitle: "Select source assets to transfer"
791
820
  }
792
821
  ),
793
822
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
794
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-text-tertiary" }),
823
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, { className: "rs-text-tertiary" }),
795
824
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
796
825
  ] }),
797
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
826
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
798
827
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
799
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, { className: "rs-empty-icon" }),
828
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, { className: "rs-empty-icon" }),
800
829
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
801
830
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
802
831
  address.slice(0, 6),
@@ -816,8 +845,8 @@ function AssetSelectStep({
816
845
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
817
846
  const isSelected = selectedAssetId === asset.id;
818
847
  const tokenAmount = formatBalance(asset);
819
- const badge = _chunkH577RJN5cjs.getChainBadge.call(void 0, asset.chainId);
820
- const chainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, asset.chainId);
848
+ const badge = _chunkTENL4H64cjs.getChainBadge.call(void 0, asset.chainId);
849
+ const chainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, asset.chainId);
821
850
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
822
851
  "button",
823
852
  {
@@ -829,13 +858,13 @@ function AssetSelectStep({
829
858
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
830
859
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
831
860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
832
- _chunkPUJHXHRAcjs.TokenIcon,
861
+ _chunkNPSC5R22cjs.TokenIcon,
833
862
  {
834
863
  symbol: asset.symbol,
835
864
  fallback: asset.symbol.slice(0, 4)
836
865
  }
837
866
  ) }),
838
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
867
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: chainIcon, alt: chainName(asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
839
868
  "span",
840
869
  {
841
870
  className: "rs-asset-chain-badge",
@@ -852,7 +881,7 @@ function AssetSelectStep({
852
881
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
853
882
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
854
883
  "on ",
855
- _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId)
884
+ chainName(asset.chainId)
856
885
  ] })
857
886
  ] }),
858
887
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -862,14 +891,14 @@ function AssetSelectStep({
862
891
  ] })
863
892
  ] })
864
893
  ] }),
865
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
894
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkNPSC5R22cjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
866
895
  ]
867
896
  },
868
897
  asset.id
869
898
  );
870
899
  }) }),
871
900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
872
- _chunkPUJHXHRAcjs.Button,
901
+ _chunkNPSC5R22cjs.Button,
873
902
  {
874
903
  onClick: () => selectedAsset && onContinue(selectedAsset),
875
904
  disabled: !selectedAsset,
@@ -878,30 +907,31 @@ function AssetSelectStep({
878
907
  }
879
908
  )
880
909
  ] }),
881
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
910
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
882
911
  ] });
883
912
  }
884
- async function fetchNativeAssets(address, publicClient, existing) {
913
+ async function fetchNativeAssets(address, publicClient, existing, isDepositChain, catalogChain) {
885
914
  const existingIds = new Set(existing.map((asset) => asset.id));
886
- const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
915
+ const connectedChainId = _optionalChain([publicClient, 'access', _16 => _16.chain, 'optionalAccess', _17 => _17.id]);
887
916
  if (!connectedChainId) return [];
888
- if (!_chunkH577RJN5cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
889
- const id = _chunkPUJHXHRAcjs.getAssetId.call(void 0, {
917
+ if (!isDepositChain(connectedChainId)) return [];
918
+ const id = _chunkNPSC5R22cjs.getAssetId.call(void 0, {
890
919
  chainId: connectedChainId,
891
- token: _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS
920
+ token: _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS
892
921
  });
893
922
  if (existingIds.has(id)) return [];
894
923
  try {
895
924
  const balance = await publicClient.getBalance({ address });
896
- const nativeSymbol = _chunkH577RJN5cjs.getNativeSymbol.call(void 0, connectedChainId);
925
+ const nativeSymbol = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _18 => _18.nativeToken, 'access', _19 => _19.symbol]), () => ( _chunkTENL4H64cjs.getNativeSymbol.call(void 0, connectedChainId)));
926
+ const nativeDecimals = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _20 => _20.nativeToken, 'access', _21 => _21.decimals]), () => ( 18));
897
927
  return [
898
928
  {
899
929
  id,
900
930
  chainId: connectedChainId,
901
- token: _chunkH577RJN5cjs.NATIVE_TOKEN_ADDRESS,
931
+ token: _chunkTENL4H64cjs.NATIVE_TOKEN_ADDRESS,
902
932
  symbol: nativeSymbol,
903
933
  name: nativeSymbol,
904
- decimals: 18,
934
+ decimals: nativeDecimals,
905
935
  balance: balance.toString()
906
936
  }
907
937
  ];
@@ -1054,12 +1084,13 @@ function AmountStep({
1054
1084
  const [error, setError] = _react.useState.call(void 0, null);
1055
1085
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
1056
1086
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
1057
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11(), 'access', _12 => _12.toLowerCase, 'call', _13 => _13()]) === "max";
1087
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _22 => _22.trim, 'call', _23 => _23(), 'access', _24 => _24.toLowerCase, 'call', _25 => _25()]) === "max";
1058
1088
  const chainMismatch = Boolean(
1059
- _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
1089
+ _optionalChain([walletClient, 'optionalAccess', _26 => _26.chain, 'optionalAccess', _27 => _27.id]) && walletClient.chain.id !== asset.chainId
1060
1090
  );
1061
- const targetSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
1062
- const isSourceStablecoin = _chunkH577RJN5cjs.isStablecoinSymbol.call(void 0, asset.symbol);
1091
+ const targetChainId = _chunkTENL4H64cjs.targetChainToChainId.call(void 0, targetChain);
1092
+ const targetSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1093
+ const isSourceStablecoin = _chunkTENL4H64cjs.isStablecoinSymbol.call(void 0, asset.symbol);
1063
1094
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
1064
1095
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
1065
1096
  return tokenPriceUsdOverride;
@@ -1087,7 +1118,7 @@ function AmountStep({
1087
1118
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
1088
1119
  if (!balanceTarget || !publicClient) return;
1089
1120
  try {
1090
- const bal = _chunkPUJHXHRAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1121
+ const bal = _chunkNPSC5R22cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
1091
1122
  address: asset.token,
1092
1123
  abi: _viem.erc20Abi,
1093
1124
  functionName: "balanceOf",
@@ -1108,7 +1139,7 @@ function AmountStep({
1108
1139
  hasAttemptedSwitch.current = true;
1109
1140
  switchChain(asset.chainId).catch((err) => {
1110
1141
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1111
- setError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw));
1142
+ setError(_chunkNPSC5R22cjs.formatUserError.call(void 0, raw));
1112
1143
  });
1113
1144
  }
1114
1145
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1161,7 +1192,7 @@ function AmountStep({
1161
1192
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
1162
1193
  const numeric = Number(raw);
1163
1194
  if (!Number.isFinite(numeric)) return raw;
1164
- return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
1195
+ return _chunkNPSC5R22cjs.tokenFormatter.format(numeric);
1165
1196
  } catch (e8) {
1166
1197
  return "\u2026";
1167
1198
  }
@@ -1180,8 +1211,8 @@ function AmountStep({
1180
1211
  return null;
1181
1212
  }
1182
1213
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
1183
- const minDepositUsd = targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkH577RJN5cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
1184
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
1214
+ const minDepositUsd = _chunkTENL4H64cjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkTENL4H64cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _29 => _29.minDepositUsd]), () => ( null));
1215
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _30 => _30.maxDepositUsd]), () => ( null));
1185
1216
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
1186
1217
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
1187
1218
  const exceedsBalance = Boolean(
@@ -1190,7 +1221,7 @@ function AmountStep({
1190
1221
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
1191
1222
  const handlePresetClick = (percentage) => {
1192
1223
  if (balance === null) return;
1193
- _optionalChain([onCtaClick, 'optionalCall', _19 => _19(percentage === 100 ? "Max" : `${percentage}%`)]);
1224
+ _optionalChain([onCtaClick, 'optionalCall', _31 => _31(percentage === 100 ? "Max" : `${percentage}%`)]);
1194
1225
  const next = formatAmountFromBalance(
1195
1226
  balance,
1196
1227
  asset.decimals,
@@ -1237,7 +1268,7 @@ function AmountStep({
1237
1268
  return;
1238
1269
  }
1239
1270
  setError(null);
1240
- _optionalChain([onCtaClick, 'optionalCall', _20 => _20("continue")]);
1271
+ _optionalChain([onCtaClick, 'optionalCall', _32 => _32("continue")]);
1241
1272
  onContinue(
1242
1273
  sourceAmount.toString(),
1243
1274
  effectiveAmount.toString(),
@@ -1246,11 +1277,12 @@ function AmountStep({
1246
1277
  };
1247
1278
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
1248
1279
  const continueDisabled = chainMismatch || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
1249
- const sourceChainName = _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId);
1250
- const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
1280
+ const chainName = _chunkNPSC5R22cjs.useChainName.call(void 0, );
1281
+ const sourceChainName = chainName(asset.chainId);
1282
+ const targetChainName = chainName(targetChainId);
1251
1283
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1252
1284
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1253
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Wallet deposit" }),
1285
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}), title: "Wallet deposit" }),
1254
1286
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
1255
1287
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
1256
1288
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1270,13 +1302,13 @@ function AmountStep({
1270
1302
  " available",
1271
1303
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1272
1304
  " (~",
1273
- _chunkPUJHXHRAcjs.currencyFormatter.format(balanceUsd),
1305
+ _chunkNPSC5R22cjs.currencyFormatter.format(balanceUsd),
1274
1306
  ")"
1275
1307
  ] })
1276
1308
  ] }),
1277
1309
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
1278
1310
  "Min. deposit ",
1279
- _chunkPUJHXHRAcjs.currencyFormatter.format(minDepositUsd)
1311
+ _chunkNPSC5R22cjs.currencyFormatter.format(minDepositUsd)
1280
1312
  ] })
1281
1313
  ] })
1282
1314
  ] }),
@@ -1301,7 +1333,7 @@ function AmountStep({
1301
1333
  " ",
1302
1334
  asset.symbol
1303
1335
  ] }),
1304
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: asset.symbol }) })
1336
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: asset.symbol }) })
1305
1337
  ] })
1306
1338
  ] }),
1307
1339
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -1312,18 +1344,17 @@ function AmountStep({
1312
1344
  " ",
1313
1345
  targetSymbol
1314
1346
  ] }),
1315
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
1347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: targetSymbol }) })
1316
1348
  ] })
1317
1349
  ] }),
1318
1350
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
1319
1351
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
1320
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPUJHXHRAcjs.currencyFormatter.format(balanceAfterUsd) })
1352
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkNPSC5R22cjs.currencyFormatter.format(balanceAfterUsd) })
1321
1353
  ] })
1322
1354
  ] }),
1323
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1324
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
1355
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
1325
1356
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1326
- _chunkPUJHXHRAcjs.Button,
1357
+ _chunkNPSC5R22cjs.Button,
1327
1358
  {
1328
1359
  onClick: handleContinue,
1329
1360
  fullWidth: true,
@@ -1332,7 +1363,7 @@ function AmountStep({
1332
1363
  }
1333
1364
  )
1334
1365
  ] }),
1335
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
1366
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
1336
1367
  ] });
1337
1368
  }
1338
1369
 
@@ -1379,7 +1410,7 @@ function ConfirmStep({
1379
1410
  const [quoteResult, setQuoteResult] = _react.useState.call(void 0, null);
1380
1411
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
1381
1412
  const chainMismatch = Boolean(
1382
- _optionalChain([walletClient, 'optionalAccess', _21 => _21.chain, 'optionalAccess', _22 => _22.id]) && walletClient.chain.id !== asset.chainId
1413
+ _optionalChain([walletClient, 'optionalAccess', _33 => _33.chain, 'optionalAccess', _34 => _34.id]) && walletClient.chain.id !== asset.chainId
1383
1414
  );
1384
1415
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
1385
1416
  const quoteSource = isDappImportAsset(asset) ? { chainId: asset.depositChainId, token: asset.depositToken } : { chainId: asset.chainId, token: asset.token };
@@ -1394,40 +1425,41 @@ function ConfirmStep({
1394
1425
  targetToken,
1395
1426
  recipient
1396
1427
  ]);
1397
- const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _23 => _23.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1398
- const targetSymbol = sameRoute ? asset.symbol : _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
1399
- const sourceChainName = _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId);
1400
- const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
1401
- const sourceChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, asset.chainId);
1402
- const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
1403
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkPUJHXHRAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1404
- const mustHaveQuote = !appFeesResolved || _chunkPUJHXHRAcjs.resolveAppFeeBps.call(void 0,
1428
+ const quote = setupReady && _optionalChain([quoteResult, 'optionalAccess', _35 => _35.requestKey]) === quoteRequestKey ? quoteResult.quote : null;
1429
+ const targetChainId = _chunkTENL4H64cjs.targetChainToChainId.call(void 0, targetChain);
1430
+ const targetSymbol = sameRoute ? asset.symbol : _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
1431
+ const sourceChainName = _chunkTENL4H64cjs.getChainName.call(void 0, asset.chainId);
1432
+ const targetChainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId);
1433
+ const sourceChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, asset.chainId);
1434
+ const targetChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, targetChainId);
1435
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkNPSC5R22cjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
1436
+ const mustHaveQuote = !appFeesResolved || _chunkNPSC5R22cjs.resolveAppFeeBps.call(void 0,
1405
1437
  appFees,
1406
1438
  `eip155:${quoteSource.chainId}`,
1407
1439
  quoteSource.token
1408
1440
  ) > 0;
1409
- const { display: feeDisplay, struck: feesFullySponsored } = _chunkPUJHXHRAcjs.quoteFeeRow.call(void 0,
1410
- _optionalChain([quote, 'optionalAccess', _24 => _24.fees])
1441
+ const { display: feeDisplay, struck: feesFullySponsored } = _chunkNPSC5R22cjs.quoteFeeRow.call(void 0,
1442
+ _optionalChain([quote, 'optionalAccess', _36 => _36.fees])
1411
1443
  );
1412
1444
  const directTransfer = sameRoute && !mustHaveQuote && !executeTransfer;
1413
1445
  const receiveDisplay = (() => {
1414
1446
  if (directTransfer) return `${formattedSendAmount} ${asset.symbol}`;
1415
1447
  if (quote) {
1416
- const quoted = _chunkPUJHXHRAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1448
+ const quoted = _chunkNPSC5R22cjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
1417
1449
  if (quoted !== void 0) return quoted;
1418
1450
  }
1419
1451
  const usdValue = Number(targetAmount);
1420
1452
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
1421
- const estimate = _chunkPUJHXHRAcjs.formatReceiveEstimate.call(void 0, {
1453
+ const estimate = _chunkNPSC5R22cjs.formatReceiveEstimate.call(void 0, {
1422
1454
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
1423
1455
  sourceSymbol: asset.symbol,
1424
1456
  targetSymbol,
1425
1457
  sourceAmountUsd,
1426
- sourceTrusted: _chunkPUJHXHRAcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1458
+ sourceTrusted: _chunkNPSC5R22cjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
1427
1459
  // The target is the curated deposit destination, so a stablecoin target
1428
1460
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
1429
1461
  // target prices). Not applied to the source — that can be a held token.
1430
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkPUJHXHRAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1462
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkNPSC5R22cjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
1431
1463
  });
1432
1464
  if (estimate !== void 0) return estimate;
1433
1465
  return targetSymbol;
@@ -1438,7 +1470,7 @@ function ConfirmStep({
1438
1470
  hasAttemptedSwitch.current = true;
1439
1471
  switchChain(asset.chainId).catch((err) => {
1440
1472
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
1441
- setError(_chunkPUJHXHRAcjs.formatUserError.call(void 0, raw));
1473
+ setError(_chunkNPSC5R22cjs.formatUserError.call(void 0, raw));
1442
1474
  });
1443
1475
  }
1444
1476
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1527,7 +1559,7 @@ function ConfirmStep({
1527
1559
  const result = await executeTransfer(amountUnits);
1528
1560
  hash = result.txHash;
1529
1561
  resolvedSourceToken = result.sourceToken;
1530
- } else if (_chunkPUJHXHRAcjs.isNativeAsset.call(void 0, asset)) {
1562
+ } else if (_chunkNPSC5R22cjs.isNativeAsset.call(void 0, asset)) {
1531
1563
  hash = await walletClient.sendTransaction({
1532
1564
  account,
1533
1565
  chain,
@@ -1544,7 +1576,7 @@ function ConfirmStep({
1544
1576
  args: [transferTo, amountUnits]
1545
1577
  });
1546
1578
  }
1547
- _optionalChain([onDepositSubmitted, 'optionalCall', _25 => _25(hash, asset.chainId, amountUnits.toString())]);
1579
+ _optionalChain([onDepositSubmitted, 'optionalCall', _37 => _37(hash, asset.chainId, amountUnits.toString())]);
1548
1580
  onConfirm(
1549
1581
  hash,
1550
1582
  asset.chainId,
@@ -1558,29 +1590,29 @@ function ConfirmStep({
1558
1590
  );
1559
1591
  } catch (err) {
1560
1592
  const raw = err instanceof Error ? err.message : "Transfer failed";
1561
- const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
1593
+ const message = _chunkNPSC5R22cjs.formatUserError.call(void 0, raw);
1562
1594
  setError(message);
1563
- _optionalChain([onError, 'optionalCall', _26 => _26(message, "TRANSFER_ERROR")]);
1595
+ _optionalChain([onError, 'optionalCall', _38 => _38(message, "TRANSFER_ERROR")]);
1564
1596
  } finally {
1565
1597
  setIsSubmitting(false);
1566
1598
  }
1567
1599
  };
1568
1600
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1569
1601
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1570
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Review deposit" }),
1602
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}), title: "Review deposit" }),
1571
1603
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1572
1604
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1573
1605
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1574
1606
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1575
1607
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1576
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
1608
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: sourceChainIcon }) })
1577
1609
  ] })
1578
1610
  ] }),
1579
1611
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1580
1612
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1581
1613
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1582
1614
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1583
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
1615
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: targetChainIcon }) })
1584
1616
  ] })
1585
1617
  ] }),
1586
1618
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1595,14 +1627,14 @@ function ConfirmStep({
1595
1627
  " ",
1596
1628
  asset.symbol
1597
1629
  ] }),
1598
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: asset.symbol }) })
1630
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: asset.symbol }) })
1599
1631
  ] })
1600
1632
  ] }),
1601
1633
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1602
1634
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1603
1635
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1604
1636
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1605
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
1637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: targetSymbol }) })
1606
1638
  ] })
1607
1639
  ] }),
1608
1640
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1622,10 +1654,9 @@ function ConfirmStep({
1622
1654
  ) })
1623
1655
  ] })
1624
1656
  ] }),
1625
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1626
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
1657
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
1627
1658
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1628
- _chunkPUJHXHRAcjs.Button,
1659
+ _chunkNPSC5R22cjs.Button,
1629
1660
  {
1630
1661
  onClick: handleConfirm,
1631
1662
  loading: isSubmitting,
@@ -1639,7 +1670,7 @@ function ConfirmStep({
1639
1670
  }
1640
1671
  )
1641
1672
  ] }),
1642
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
1673
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
1643
1674
  ] });
1644
1675
  }
1645
1676
 
@@ -1662,9 +1693,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1662
1693
  var MAX_POLL_INTERVAL = 3e4;
1663
1694
  var BACKOFF_MULTIPLIER = 1.5;
1664
1695
  function isEventForTx(event, txHash) {
1665
- const eventTxHash = _chunkA42XAHIBcjs.getEventTxHash.call(void 0, event);
1696
+ const eventTxHash = _chunkHCQWFL3Acjs.getEventTxHash.call(void 0, event);
1666
1697
  if (!eventTxHash) return false;
1667
- return _chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1698
+ return _chunkHCQWFL3Acjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1668
1699
  }
1669
1700
  function truncateHash(hash) {
1670
1701
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1694,7 +1725,7 @@ function formatTimestamp(ms) {
1694
1725
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
1695
1726
  }
1696
1727
  function formatBridgeFailedMessage(event) {
1697
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _27 => _27.data]), () => ( {}));
1728
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _39 => _39.data]), () => ( {}));
1698
1729
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1699
1730
  if (backendMessage.length > 0) {
1700
1731
  const lower = backendMessage.toLowerCase();
@@ -1714,7 +1745,7 @@ function formatBridgeFailedMessage(event) {
1714
1745
  }
1715
1746
  return "Bridge failed";
1716
1747
  }
1717
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1748
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1718
1749
  function DepositNotification({
1719
1750
  deposit,
1720
1751
  smartAccount,
@@ -1748,7 +1779,7 @@ function DepositNotification({
1748
1779
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1749
1780
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1750
1781
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1751
- const depositContextRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, {
1782
+ const depositContextRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, {
1752
1783
  amount,
1753
1784
  sourceChain,
1754
1785
  sourceToken: token,
@@ -1756,8 +1787,8 @@ function DepositNotification({
1756
1787
  targetChain,
1757
1788
  targetToken
1758
1789
  });
1759
- const onCompleteRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onComplete);
1760
- const onFailedRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onFailed);
1790
+ const onCompleteRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onComplete);
1791
+ const onFailedRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onFailed);
1761
1792
  const handleComplete = _react.useCallback.call(void 0,
1762
1793
  (destTxHash) => {
1763
1794
  if (completedRef.current) return;
@@ -1766,7 +1797,7 @@ function DepositNotification({
1766
1797
  setCompletedAt(Date.now());
1767
1798
  setStatus("complete");
1768
1799
  const context = depositContextRef.current;
1769
- _optionalChain([onCompleteRef, 'access', _28 => _28.current, 'optionalCall', _29 => _29(txHash, destTxHash, {
1800
+ _optionalChain([onCompleteRef, 'access', _40 => _40.current, 'optionalCall', _41 => _41(txHash, destTxHash, {
1770
1801
  amount: context.amount,
1771
1802
  sourceChain: context.sourceChain,
1772
1803
  sourceToken: context.sourceToken,
@@ -1782,7 +1813,7 @@ function DepositNotification({
1782
1813
  if (completedRef.current) return;
1783
1814
  completedRef.current = true;
1784
1815
  setStatus("failed");
1785
- _optionalChain([onFailedRef, 'access', _30 => _30.current, 'optionalCall', _31 => _31(txHash, error)]);
1816
+ _optionalChain([onFailedRef, 'access', _42 => _42.current, 'optionalCall', _43 => _43(txHash, error)]);
1786
1817
  },
1787
1818
  [onFailedRef, txHash]
1788
1819
  );
@@ -1800,17 +1831,17 @@ function DepositNotification({
1800
1831
  if (!isMounted) return;
1801
1832
  const lastEvent = data.lastEvent;
1802
1833
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
1803
- if (_optionalChain([eventForTx, 'optionalAccess', _32 => _32.type]) === "bridge-complete") {
1804
- const destTx = _optionalChain([eventForTx, 'access', _33 => _33.data, 'optionalAccess', _34 => _34.destination, 'optionalAccess', _35 => _35.transactionHash]);
1834
+ if (_optionalChain([eventForTx, 'optionalAccess', _44 => _44.type]) === "bridge-complete") {
1835
+ const destTx = _optionalChain([eventForTx, 'access', _45 => _45.data, 'optionalAccess', _46 => _46.destination, 'optionalAccess', _47 => _47.transactionHash]);
1805
1836
  handleComplete(destTx);
1806
1837
  return;
1807
1838
  }
1808
- if (_optionalChain([eventForTx, 'optionalAccess', _36 => _36.type]) === "bridge-failed") {
1839
+ if (_optionalChain([eventForTx, 'optionalAccess', _48 => _48.type]) === "bridge-failed") {
1809
1840
  handleFailed(formatBridgeFailedMessage(eventForTx));
1810
1841
  return;
1811
1842
  }
1812
- if (_optionalChain([eventForTx, 'optionalAccess', _37 => _37.type]) === "error") {
1813
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _38 => _38.data, 'optionalAccess', _39 => _39.message]), () => ( "Unknown error"));
1843
+ if (_optionalChain([eventForTx, 'optionalAccess', _49 => _49.type]) === "error") {
1844
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _50 => _50.data, 'optionalAccess', _51 => _51.message]), () => ( "Unknown error"));
1814
1845
  handleFailed(errorMessage);
1815
1846
  return;
1816
1847
  }
@@ -1848,11 +1879,12 @@ function DepositNotification({
1848
1879
  status,
1849
1880
  txHash
1850
1881
  ]);
1851
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkH577RJN5cjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1852
- const destExplorerUrl = destinationTxHash ? _chunkH577RJN5cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1882
+ const explorerTxUrl = _chunkNPSC5R22cjs.useExplorerTxUrl.call(void 0, );
1883
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : explorerTxUrl(sourceChain, txHash);
1884
+ const destExplorerUrl = destinationTxHash ? explorerTxUrl(_chunkTENL4H64cjs.targetChainToChainId.call(void 0, targetChain), destinationTxHash) : null;
1853
1885
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1854
1886
  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.";
1855
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1887
+ 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, _chunkNPSC5R22cjs.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, _chunkNPSC5R22cjs.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,
1856
1888
  "svg",
1857
1889
  {
1858
1890
  className: "rs-deposit-notification-spinner",
@@ -1902,7 +1934,7 @@ function DepositNotification({
1902
1934
  className: "rs-deposit-notification-close",
1903
1935
  onClick: () => onDismiss(deposit.id),
1904
1936
  "aria-label": "Dismiss",
1905
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
1937
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CloseIcon, {})
1906
1938
  }
1907
1939
  )
1908
1940
  ] }),
@@ -1918,7 +1950,7 @@ function DepositNotification({
1918
1950
  "aria-expanded": expanded,
1919
1951
  children: [
1920
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1921
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1953
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1922
1954
  ]
1923
1955
  }
1924
1956
  ),
@@ -2008,7 +2040,7 @@ function asString(value) {
2008
2040
  function resolveSolanaTokenMeta(token) {
2009
2041
  if (!token) return {};
2010
2042
  const normalized = token.toLowerCase();
2011
- const matched = _chunkH577RJN5cjs.SOLANA_TOKENS.find(
2043
+ const matched = _chunkTENL4H64cjs.SOLANA_TOKENS.find(
2012
2044
  (entry) => entry.mint.toLowerCase() === normalized
2013
2045
  );
2014
2046
  if (matched) {
@@ -2020,7 +2052,7 @@ function resolveSolanaTokenMeta(token) {
2020
2052
  return {};
2021
2053
  }
2022
2054
  function getDepositEventDetails(event) {
2023
- if (!_optionalChain([event, 'optionalAccess', _40 => _40.type]) || !isRecord(event.data)) return {};
2055
+ if (!_optionalChain([event, 'optionalAccess', _52 => _52.type]) || !isRecord(event.data)) return {};
2024
2056
  if (event.type === "deposit-received") {
2025
2057
  const chainId = asChainId(event.data.chain);
2026
2058
  const token = asString(event.data.token);
@@ -2035,12 +2067,12 @@ function getDepositEventDetails(event) {
2035
2067
  const source = isRecord(event.data.source) ? event.data.source : void 0;
2036
2068
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
2037
2069
  if (source || deposit) {
2038
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _41 => _41.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _42 => _42.chain]))));
2039
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _43 => _43.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _44 => _44.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _45 => _45.token]))));
2070
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _53 => _53.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _54 => _54.chain]))));
2071
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _55 => _55.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _56 => _56.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _57 => _57.token]))));
2040
2072
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
2041
2073
  return {
2042
2074
  chainId,
2043
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _46 => _46.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _47 => _47.amount])))),
2075
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _58 => _58.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _59 => _59.amount])))),
2044
2076
  token,
2045
2077
  ...solanaMeta
2046
2078
  };
@@ -2050,25 +2082,29 @@ function getDepositEventDetails(event) {
2050
2082
  function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
2051
2083
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
2052
2084
  }
2053
- function chainLabel(chainId) {
2054
- return _chunkH577RJN5cjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
2055
- }
2056
- function computeTokensForChain(chainId, topTokens) {
2057
- const fromBackend = _optionalChain([topTokens, 'optionalAccess', _48 => _48[String(chainId)], 'optionalAccess', _49 => _49.map, 'call', _50 => _50((t) => t.symbol)]);
2058
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkH577RJN5cjs.SOLANA_TOKENS.map((t) => t.symbol) : (
2059
- // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
2060
- // spot transfers); it has no EVM source-chain matrix entry.
2061
- chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkH577RJN5cjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
2062
- ))));
2063
- return all;
2064
- }
2065
- function resolveSourceTokenAddress(symbol, chainId, topTokens) {
2066
- const top = _optionalChain([topTokens, 'optionalAccess', _51 => _51[String(chainId)], 'optionalAccess', _52 => _52.find, 'call', _53 => _53((t) => t.symbol === symbol)]);
2067
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _54 => _54.address]), () => ( _chunkH577RJN5cjs.getTokenAddress.call(void 0, symbol, chainId)));
2085
+ function chainLabel(chainId, catalogChain) {
2086
+ const name = _nullishCoalesce(_optionalChain([catalogChain, 'optionalAccess', _60 => _60.name]), () => ( _chunkTENL4H64cjs.getChainName.call(void 0, chainId)));
2087
+ return name.replace(/\s+(One|Mainnet|Smart Chain|Chain)$/i, "");
2088
+ }
2089
+ function computeTokensForChain(chainId, topTokens, catalogChain) {
2090
+ const fromBackend = _optionalChain([topTokens, 'optionalAccess', _61 => _61[String(chainId)], 'optionalAccess', _62 => _62.map, 'call', _63 => _63((t) => t.symbol)]);
2091
+ if (fromBackend) return fromBackend;
2092
+ if (chainId === "solana") return _chunkTENL4H64cjs.SOLANA_TOKENS.map((t) => t.symbol);
2093
+ if (chainId === "hypercore") return ["USDC", "USDT0"];
2094
+ const bundled = _chunkTENL4H64cjs.getBundledTargetTokens.call(void 0, chainId).map((t) => t.symbol);
2095
+ if (bundled.length > 0) return bundled;
2096
+ return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _64 => _64.supportedTokens])) ? catalogChain.supportedTokens.map((t) => t.symbol) : [];
2097
+ }
2098
+ function resolveSourceTokenAddress(symbol, chainId, topTokens, catalogChain) {
2099
+ const top = _optionalChain([topTokens, 'optionalAccess', _65 => _65[String(chainId)], 'optionalAccess', _66 => _66.find, 'call', _67 => _67((t) => t.symbol === symbol)]);
2100
+ if (_optionalChain([top, 'optionalAccess', _68 => _68.address])) return top.address;
2101
+ const fromRegistry = _chunkTENL4H64cjs.getTokenAddress.call(void 0, symbol, chainId);
2102
+ if (fromRegistry) return fromRegistry;
2103
+ return Array.isArray(_optionalChain([catalogChain, 'optionalAccess', _69 => _69.supportedTokens])) ? _optionalChain([catalogChain, 'access', _70 => _70.supportedTokens, 'access', _71 => _71.find, 'call', _72 => _72((t) => t.symbol === symbol), 'optionalAccess', _73 => _73.address]) : void 0;
2068
2104
  }
2069
2105
  function TokenGlyph({ symbol }) {
2070
2106
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2071
- _chunkPUJHXHRAcjs.TokenIcon,
2107
+ _chunkNPSC5R22cjs.TokenIcon,
2072
2108
  {
2073
2109
  symbol,
2074
2110
  className: "rs-deposit-address-dropdown-icon",
@@ -2098,25 +2134,38 @@ function DepositAddressStep({
2098
2134
  const [topTokens, setTopTokens] = _react.useState.call(void 0, null);
2099
2135
  _react.useEffect.call(void 0, () => {
2100
2136
  let active = true;
2137
+ setTopTokens(null);
2101
2138
  service.getTopTokens().then((t) => {
2102
- if (active) setTopTokens(t);
2139
+ if (!active) return;
2140
+ setTopTokens(t);
2141
+ if (t) _chunkTENL4H64cjs.publishShortlistTokens.call(void 0, t);
2103
2142
  });
2104
2143
  return () => {
2105
2144
  active = false;
2106
2145
  };
2107
2146
  }, [service]);
2108
2147
  const BASE_CHAIN_ID2 = 8453;
2109
- const evmChainIds = _react.useMemo.call(void 0, () => _chunkH577RJN5cjs.getSupportedChainIds.call(void 0, ), []);
2148
+ const evmChainIds = _chunkNPSC5R22cjs.useDepositChainIds.call(void 0, );
2149
+ const { catalog } = _chunkNPSC5R22cjs.useChainCatalog.call(void 0, );
2150
+ const catalogFor = _react.useCallback.call(void 0,
2151
+ (chain) => {
2152
+ if (!catalog) return void 0;
2153
+ const key = _chunkNPSC5R22cjs.catalogKeyForChain.call(void 0, chain);
2154
+ return typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2155
+ },
2156
+ [catalog]
2157
+ );
2110
2158
  const chainOptions = _react.useMemo.call(void 0, () => {
2159
+ const acceptsDeposits = (chain) => _optionalChain([catalogFor, 'call', _74 => _74(chain), 'optionalAccess', _75 => _75.deposit]) !== false;
2111
2160
  const options = [...evmChainIds];
2112
2161
  const extras = [];
2113
- if (hasSolana) extras.push("solana");
2114
- extras.push("hypercore");
2162
+ if (hasSolana && acceptsDeposits("solana")) extras.push("solana");
2163
+ if (acceptsDeposits("hypercore")) extras.push("hypercore");
2115
2164
  options.splice(1, 0, ...extras);
2116
2165
  return options.filter(
2117
- (chain) => _optionalChain([topTokens, 'optionalAccess', _55 => _55[String(chain)], 'optionalAccess', _56 => _56.length]) !== 0
2166
+ (chain) => _optionalChain([topTokens, 'optionalAccess', _76 => _76[String(chain)], 'optionalAccess', _77 => _77.length]) !== 0 && computeTokensForChain(chain, topTokens, catalogFor(chain)).length > 0
2118
2167
  );
2119
- }, [evmChainIds, hasSolana, topTokens]);
2168
+ }, [evmChainIds, hasSolana, topTokens, catalogFor]);
2120
2169
  const preferredChainId = (options) => options.includes(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(options[0], () => ( BASE_CHAIN_ID2));
2121
2170
  const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, () => preferredChainId(chainOptions));
2122
2171
  _react.useEffect.call(void 0, () => {
@@ -2127,8 +2176,8 @@ function DepositAddressStep({
2127
2176
  const isSolana = sourceChainId === "solana";
2128
2177
  const isHyperCore = sourceChainId === "hypercore";
2129
2178
  const tokensForChain = _react.useMemo.call(void 0,
2130
- () => computeTokensForChain(sourceChainId, topTokens),
2131
- [sourceChainId, topTokens]
2179
+ () => computeTokensForChain(sourceChainId, topTokens, catalogFor(sourceChainId)),
2180
+ [sourceChainId, topTokens, catalogFor]
2132
2181
  );
2133
2182
  const defaultToken = pickFallbackToken(tokensForChain, "USDC");
2134
2183
  const [sourceTokenSymbol, setSourceTokenSymbol] = _react.useState.call(void 0, defaultToken);
@@ -2159,7 +2208,8 @@ function DepositAddressStep({
2159
2208
  const sourceTokenAddress = resolveSourceTokenAddress(
2160
2209
  sourceTokenSymbol,
2161
2210
  sourceChainId,
2162
- topTokens
2211
+ topTokens,
2212
+ catalogFor(sourceChainId)
2163
2213
  );
2164
2214
  if (!sourceTokenAddress) {
2165
2215
  setLiquidityHelper({ kind: "idle" });
@@ -2170,7 +2220,7 @@ function DepositAddressStep({
2170
2220
  service.checkLiquidity({
2171
2221
  sourceChainId,
2172
2222
  sourceToken: sourceTokenAddress,
2173
- destinationChainId: targetChain,
2223
+ destinationChainId: _chunkTENL4H64cjs.targetChainToCaip2.call(void 0, targetChain),
2174
2224
  destinationToken: targetToken,
2175
2225
  amount: "1"
2176
2226
  }).then((result) => {
@@ -2210,8 +2260,8 @@ function DepositAddressStep({
2210
2260
  function handlePointerDown(event) {
2211
2261
  const target = event.target;
2212
2262
  if (!target) return;
2213
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _57 => _57.current, 'optionalAccess', _58 => _58.contains, 'call', _59 => _59(target)]);
2214
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _60 => _60.current, 'optionalAccess', _61 => _61.contains, 'call', _62 => _62(target)]);
2263
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _78 => _78.current, 'optionalAccess', _79 => _79.contains, 'call', _80 => _80(target)]);
2264
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _81 => _81.current, 'optionalAccess', _82 => _82.contains, 'call', _83 => _83(target)]);
2215
2265
  if (clickedChainDropdown || clickedTokenDropdown) return;
2216
2266
  setChainDropdownOpen(false);
2217
2267
  setTokenDropdownOpen(false);
@@ -2224,7 +2274,7 @@ function DepositAddressStep({
2224
2274
  };
2225
2275
  }, [chainDropdownOpen, tokenDropdownOpen]);
2226
2276
  const handleCopy = _react.useCallback.call(void 0, async () => {
2227
- _optionalChain([onCopyAddress, 'optionalCall', _63 => _63()]);
2277
+ _optionalChain([onCopyAddress, 'optionalCall', _84 => _84()]);
2228
2278
  try {
2229
2279
  await navigator.clipboard.writeText(displayAddress);
2230
2280
  setCopied(true);
@@ -2244,14 +2294,18 @@ function DepositAddressStep({
2244
2294
  }, [displayAddress, onCopyAddress]);
2245
2295
  const handleSelectChain = _react.useCallback.call(void 0,
2246
2296
  (nextChain) => {
2247
- const nextTokens = computeTokensForChain(nextChain, topTokens);
2297
+ const nextTokens = computeTokensForChain(
2298
+ nextChain,
2299
+ topTokens,
2300
+ catalogFor(nextChain)
2301
+ );
2248
2302
  setSourceChainId(nextChain);
2249
2303
  setSourceTokenSymbol(pickFallbackToken(nextTokens, sourceTokenSymbol));
2250
2304
  setChainDropdownOpen(false);
2251
2305
  setTokenDropdownOpen(false);
2252
2306
  setCopied(false);
2253
2307
  },
2254
- [sourceTokenSymbol, topTokens]
2308
+ [sourceTokenSymbol, topTokens, catalogFor]
2255
2309
  );
2256
2310
  const onDepositSubmittedRef = _react.useRef.call(void 0, onDepositSubmitted);
2257
2311
  onDepositSubmittedRef.current = onDepositSubmitted;
@@ -2303,10 +2357,10 @@ function DepositAddressStep({
2303
2357
  return;
2304
2358
  }
2305
2359
  const event = status.lastEvent;
2306
- const eventTxHash = _chunkA42XAHIBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkA42XAHIBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2360
+ const eventTxHash = _chunkHCQWFL3Acjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkHCQWFL3Acjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2307
2361
  if (baselineTxHashRef.current === void 0) {
2308
2362
  baselineTxHashRef.current = eventTxHash;
2309
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2363
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkHCQWFL3Acjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2310
2364
  const details = getDepositEventDetails(event);
2311
2365
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
2312
2366
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -2315,7 +2369,7 @@ function DepositAddressStep({
2315
2369
  baselineTxHashRef.current = eventTxHash;
2316
2370
  isTrackingRef.current = true;
2317
2371
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
2318
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkH577RJN5cjs.findTokenDecimals.call(void 0,
2372
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkTENL4H64cjs.findTokenDecimals.call(void 0,
2319
2373
  token,
2320
2374
  typeof chainId === "number" ? chainId : void 0
2321
2375
  ) : void 0)));
@@ -2338,7 +2392,7 @@ function DepositAddressStep({
2338
2392
  directTransfer
2339
2393
  };
2340
2394
  setNotifications((prev) => [notification, ...prev]);
2341
- _optionalChain([onDepositSubmittedRef, 'access', _64 => _64.current, 'optionalCall', _65 => _65({
2395
+ _optionalChain([onDepositSubmittedRef, 'access', _85 => _85.current, 'optionalCall', _86 => _86({
2342
2396
  txHash: eventTxHash,
2343
2397
  sourceChain: chainId,
2344
2398
  amount,
@@ -2350,7 +2404,7 @@ function DepositAddressStep({
2350
2404
  if (!cancelled) {
2351
2405
  const msg = err instanceof Error ? err.message : "Failed to check status";
2352
2406
  setPollingError(msg);
2353
- _optionalChain([onErrorRef, 'access', _66 => _66.current, 'optionalCall', _67 => _67(msg, "STATUS_POLL_ERROR")]);
2407
+ _optionalChain([onErrorRef, 'access', _87 => _87.current, 'optionalCall', _88 => _88(msg, "STATUS_POLL_ERROR")]);
2354
2408
  }
2355
2409
  }
2356
2410
  if (!cancelled) {
@@ -2366,24 +2420,24 @@ function DepositAddressStep({
2366
2420
  const handleNotificationComplete = _react.useCallback.call(void 0,
2367
2421
  (txHash, destinationTxHash, context) => {
2368
2422
  isTrackingRef.current = false;
2369
- _optionalChain([onDepositCompleteRef, 'access', _68 => _68.current, 'optionalCall', _69 => _69(txHash, destinationTxHash, context)]);
2423
+ _optionalChain([onDepositCompleteRef, 'access', _89 => _89.current, 'optionalCall', _90 => _90(txHash, destinationTxHash, context)]);
2370
2424
  },
2371
2425
  []
2372
2426
  );
2373
2427
  const handleNotificationFailed = _react.useCallback.call(void 0,
2374
2428
  (txHash, error) => {
2375
2429
  isTrackingRef.current = false;
2376
- _optionalChain([onDepositFailedRef, 'access', _70 => _70.current, 'optionalCall', _71 => _71(txHash, error)]);
2430
+ _optionalChain([onDepositFailedRef, 'access', _91 => _91.current, 'optionalCall', _92 => _92(txHash, error)]);
2377
2431
  },
2378
2432
  []
2379
2433
  );
2380
2434
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
2381
2435
  setNotifications((prev) => prev.filter((n) => n.id !== id));
2382
2436
  }, []);
2383
- const qrIconSrc = _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChainId);
2437
+ const qrIconSrc = _nullishCoalesce(_optionalChain([catalogFor, 'call', _93 => _93(sourceChainId), 'optionalAccess', _94 => _94.iconUrl]), () => ( _chunkTENL4H64cjs.getChainIcon.call(void 0, sourceChainId)));
2384
2438
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
2385
2439
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2440
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2387
2441
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
2388
2442
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
2389
2443
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2399,14 +2453,14 @@ function DepositAddressStep({
2399
2453
  },
2400
2454
  children: [
2401
2455
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2402
- _chunkPUJHXHRAcjs.CdnIcon,
2456
+ _chunkNPSC5R22cjs.CdnIcon,
2403
2457
  {
2404
- src: _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChainId),
2458
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _95 => _95(sourceChainId), 'optionalAccess', _96 => _96.iconUrl]), () => ( _chunkTENL4H64cjs.getChainIcon.call(void 0, sourceChainId))),
2405
2459
  className: "rs-deposit-address-dropdown-icon"
2406
2460
  }
2407
2461
  ),
2408
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
2409
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2462
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId, catalogFor(sourceChainId)) }),
2463
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2410
2464
  ]
2411
2465
  }
2412
2466
  ),
@@ -2418,13 +2472,13 @@ function DepositAddressStep({
2418
2472
  onClick: () => handleSelectChain(chainId),
2419
2473
  children: [
2420
2474
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2421
- _chunkPUJHXHRAcjs.CdnIcon,
2475
+ _chunkNPSC5R22cjs.CdnIcon,
2422
2476
  {
2423
- src: _chunkH577RJN5cjs.getChainIcon.call(void 0, chainId),
2477
+ src: _nullishCoalesce(_optionalChain([catalogFor, 'call', _97 => _97(chainId), 'optionalAccess', _98 => _98.iconUrl]), () => ( _chunkTENL4H64cjs.getChainIcon.call(void 0, chainId))),
2424
2478
  className: "rs-deposit-address-dropdown-icon"
2425
2479
  }
2426
2480
  ),
2427
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(chainId) })
2481
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(chainId, catalogFor(chainId)) })
2428
2482
  ]
2429
2483
  },
2430
2484
  String(chainId)
@@ -2435,9 +2489,9 @@ function DepositAddressStep({
2435
2489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2436
2490
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2437
2491
  "Min.$",
2438
- (targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkH577RJN5cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _72 => _72.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _73 => _73.minDepositUsd]), () => ( 0.1))).toFixed(2),
2439
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2440
- _chunkPUJHXHRAcjs.InfoIcon,
2492
+ (_chunkTENL4H64cjs.isHyperCoreDestination.call(void 0, targetChain) || isHyperCore ? Math.max(_chunkTENL4H64cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _99 => _99.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _100 => _100.minDepositUsd]), () => ( 0.1))).toFixed(2),
2493
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCQWFL3Acjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2494
+ _chunkNPSC5R22cjs.InfoIcon,
2441
2495
  {
2442
2496
  className: "rs-deposit-address-min-icon",
2443
2497
  "aria-hidden": "true"
@@ -2458,7 +2512,7 @@ function DepositAddressStep({
2458
2512
  children: [
2459
2513
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
2460
2514
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
2461
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2515
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2462
2516
  ]
2463
2517
  }
2464
2518
  ),
@@ -2502,7 +2556,7 @@ function DepositAddressStep({
2502
2556
  className: "rs-deposit-address-copy",
2503
2557
  onClick: handleCopy,
2504
2558
  children: [
2505
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CopyIcon, {}),
2559
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CopyIcon, {}),
2506
2560
  copied ? "Copied!" : "Copy address"
2507
2561
  ]
2508
2562
  }
@@ -2510,7 +2564,6 @@ function DepositAddressStep({
2510
2564
  ]
2511
2565
  }
2512
2566
  ),
2513
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2514
2567
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2515
2568
  "div",
2516
2569
  {
@@ -2528,16 +2581,16 @@ function DepositAddressStep({
2528
2581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2529
2582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2530
2583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2531
- _chunkA42XAHIBcjs.Tooltip,
2584
+ _chunkHCQWFL3Acjs.Tooltip,
2532
2585
  {
2533
2586
  className: "rs-price-impact-info",
2534
2587
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2535
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
2588
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.InfoIcon, { "aria-hidden": "true" })
2536
2589
  }
2537
2590
  )
2538
2591
  ] }),
2539
2592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2540
- _chunkPUJHXHRAcjs.ChevronDownIcon,
2593
+ _chunkNPSC5R22cjs.ChevronDownIcon,
2541
2594
  {
2542
2595
  className: "rs-price-impact-chevron",
2543
2596
  "aria-hidden": "true"
@@ -2548,29 +2601,29 @@ function DepositAddressStep({
2548
2601
  ),
2549
2602
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-price-impact-panel", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-panel-inner", children: [
2550
2603
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2551
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PercentIcon, {}) }),
2604
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PercentIcon, {}) }),
2552
2605
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2553
2606
  "Max slippage: ",
2554
2607
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2555
2608
  ] }),
2556
2609
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2557
- _chunkA42XAHIBcjs.Tooltip,
2610
+ _chunkHCQWFL3Acjs.Tooltip,
2558
2611
  {
2559
2612
  className: "rs-price-impact-info",
2560
2613
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2561
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
2614
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.InfoIcon, { "aria-hidden": "true" })
2562
2615
  }
2563
2616
  )
2564
2617
  ] }),
2565
2618
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2566
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ClockIcon, {}) }),
2619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ClockIcon, {}) }),
2567
2620
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2568
2621
  "Processing time: ",
2569
2622
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2570
2623
  ] })
2571
2624
  ] }),
2572
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2573
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PlusCircleIcon, {}) }),
2625
+ liquidityHelper.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2626
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PlusCircleIcon, {}) }),
2574
2627
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2575
2628
  "Max deposit:",
2576
2629
  " ",
@@ -2601,7 +2654,7 @@ function DepositAddressStep({
2601
2654
  },
2602
2655
  deposit.id
2603
2656
  )) }),
2604
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2657
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
2605
2658
  ] });
2606
2659
  }
2607
2660
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2649,7 +2702,7 @@ function FinalisingDepositStep() {
2649
2702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2650
2703
  ] })
2651
2704
  ] }),
2652
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2705
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
2653
2706
  ] });
2654
2707
  }
2655
2708
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2679,7 +2732,7 @@ function SwappedOrderTracker({
2679
2732
  ];
2680
2733
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2681
2734
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2682
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HandCoinsIcon, {}), title }),
2735
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HandCoinsIcon, {}), title }),
2683
2736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2684
2737
  const status = stepStates[idx];
2685
2738
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2693,7 +2746,7 @@ function SwappedOrderTracker({
2693
2746
  {
2694
2747
  className: "rs-swapped-tracker-step-marker",
2695
2748
  "aria-hidden": "true",
2696
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2749
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2697
2750
  "svg",
2698
2751
  {
2699
2752
  className: "rs-swapped-tracker-step-ring",
@@ -2728,7 +2781,7 @@ function SwappedOrderTracker({
2728
2781
  }
2729
2782
  )
2730
2783
  ] }),
2731
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
2784
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
2732
2785
  ] });
2733
2786
  }
2734
2787
  function formatTrackerAmount(amount) {
@@ -2880,7 +2933,7 @@ function SwappedIframeStep({
2880
2933
  if (cancelled) return;
2881
2934
  const message = err instanceof Error ? err.message : loadErrorFallback;
2882
2935
  setLoadError(message);
2883
- _optionalChain([onErrorRef, 'access', _74 => _74.current, 'optionalCall', _75 => _75(message, loadErrorCode)]);
2936
+ _optionalChain([onErrorRef, 'access', _101 => _101.current, 'optionalCall', _102 => _102(message, loadErrorCode)]);
2884
2937
  });
2885
2938
  return () => {
2886
2939
  cancelled = true;
@@ -2933,10 +2986,10 @@ function SwappedIframeStep({
2933
2986
  const status = await service.fetchLatestStatus(smartAccount);
2934
2987
  if (cancelled) return;
2935
2988
  const event = status.lastEvent;
2936
- const eventTxHash = _chunkA42XAHIBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkA42XAHIBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2989
+ const eventTxHash = _chunkHCQWFL3Acjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkHCQWFL3Acjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2937
2990
  if (baselineDepositTxHashRef.current === void 0) {
2938
2991
  baselineDepositTxHashRef.current = eventTxHash;
2939
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkA42XAHIBcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2992
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkHCQWFL3Acjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2940
2993
  currentDepositTxHashRef.current = eventTxHash;
2941
2994
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2942
2995
  }
@@ -2961,15 +3014,15 @@ function SwappedIframeStep({
2961
3014
  }, [service, smartAccount]);
2962
3015
  _react.useEffect.call(void 0, () => {
2963
3016
  if (fastDepositPollEnabledRef.current) return;
2964
- const status = _optionalChain([orderState, 'optionalAccess', _76 => _76.status]);
3017
+ const status = _optionalChain([orderState, 'optionalAccess', _103 => _103.status]);
2965
3018
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
2966
3019
  fastDepositPollEnabledRef.current = true;
2967
- _optionalChain([rescheduleDepositPollRef, 'access', _77 => _77.current, 'optionalCall', _78 => _78(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
3020
+ _optionalChain([rescheduleDepositPollRef, 'access', _104 => _104.current, 'optionalCall', _105 => _105(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2968
3021
  }, [orderState]);
2969
3022
  _react.useEffect.call(void 0, () => {
2970
3023
  function onMessage(e) {
2971
3024
  if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
2972
- if (e.source !== _optionalChain([iframeRef, 'access', _79 => _79.current, 'optionalAccess', _80 => _80.contentWindow])) return;
3025
+ if (e.source !== _optionalChain([iframeRef, 'access', _106 => _106.current, 'optionalAccess', _107 => _107.contentWindow])) return;
2973
3026
  if (isSwappedGoBackMessage(e.data)) {
2974
3027
  onGoBackRef.current();
2975
3028
  return;
@@ -2984,16 +3037,16 @@ function SwappedIframeStep({
2984
3037
  setOrderState((prev) => ({
2985
3038
  // Normalise to the uuid the backend poll also keys on, so orderState
2986
3039
  // is consistent regardless of which path set it.
2987
- orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _81 => _81.orderId]))), () => ( ext)),
3040
+ orderId: _nullishCoalesce(_nullishCoalesce(expectedOrderUuidRef.current, () => ( _optionalChain([prev, 'optionalAccess', _108 => _108.orderId]))), () => ( ext)),
2988
3041
  status: parsed.status,
2989
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderCrypto]))), () => ( null)),
2990
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderCryptoAmount]))), () => ( null)),
2991
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.transactionId]))), () => ( null)),
3042
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _109 => _109.orderCrypto]))), () => ( null)),
3043
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _110 => _110.orderCryptoAmount]))), () => ( null)),
3044
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _111 => _111.transactionId]))), () => ( null)),
2992
3045
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
2993
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _85 => _85.paidAmountUsd]), () => ( null)),
2994
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _86 => _86.paidAmountEur]), () => ( null)),
2995
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.onrampFeeUsd]), () => ( null)),
2996
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.paymentMethod]), () => ( null))
3046
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _112 => _112.paidAmountUsd]), () => ( null)),
3047
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _113 => _113.paidAmountEur]), () => ( null)),
3048
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _114 => _114.onrampFeeUsd]), () => ( null)),
3049
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _115 => _115.paymentMethod]), () => ( null))
2997
3050
  }));
2998
3051
  }
2999
3052
  window.addEventListener("message", onMessage);
@@ -3006,17 +3059,17 @@ function SwappedIframeStep({
3006
3059
  }
3007
3060
  }, [phase, orderState, latestEvent, variant]);
3008
3061
  const stepStates = _react.useMemo.call(void 0,
3009
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _89 => _89.status]), () => ( null)), latestEvent),
3062
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _116 => _116.status]), () => ( null)), latestEvent),
3010
3063
  [orderState, latestEvent]
3011
3064
  );
3012
3065
  const terminalState = _react.useMemo.call(void 0, () => {
3013
- if (_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3066
+ if (_chunkHCQWFL3Acjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3014
3067
  return {
3015
3068
  kind: "failed",
3016
- message: _chunkA42XAHIBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3069
+ message: _chunkHCQWFL3Acjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3017
3070
  };
3018
3071
  }
3019
- if (_optionalChain([orderState, 'optionalAccess', _90 => _90.status]) === "order_cancelled") {
3072
+ if (_optionalChain([orderState, 'optionalAccess', _117 => _117.status]) === "order_cancelled") {
3020
3073
  const banner = bannerForStatus("order_cancelled", {});
3021
3074
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
3022
3075
  }
@@ -3024,7 +3077,7 @@ function SwappedIframeStep({
3024
3077
  }, [latestEvent, orderState, bannerForStatus]);
3025
3078
  _react.useEffect.call(void 0, () => {
3026
3079
  if (completeFiredRef.current || failedFiredRef.current) return;
3027
- const t = _optionalChain([latestEvent, 'optionalAccess', _91 => _91.type]);
3080
+ const t = _optionalChain([latestEvent, 'optionalAccess', _118 => _118.type]);
3028
3081
  const isSuccess = t === "bridge-complete";
3029
3082
  if (!isSuccess) return;
3030
3083
  const txHash = currentDepositTxHashRef.current;
@@ -3033,10 +3086,10 @@ function SwappedIframeStep({
3033
3086
  const info = {
3034
3087
  smartAccount,
3035
3088
  txHash,
3036
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _92 => _92.orderCrypto]), () => ( null)),
3089
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _119 => _119.orderCrypto]), () => ( null)),
3037
3090
  // Base-unit source amount from the deposit row/event, consistent with the
3038
3091
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
3039
- amount: _nullishCoalesce(_chunkA42XAHIBcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3092
+ amount: _nullishCoalesce(_chunkHCQWFL3Acjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
3040
3093
  expectedOrderUuid: expectedOrderUuidRef.current,
3041
3094
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
3042
3095
  };
@@ -3047,21 +3100,21 @@ function SwappedIframeStep({
3047
3100
  }, [latestEvent, orderState, smartAccount]);
3048
3101
  _react.useEffect.call(void 0, () => {
3049
3102
  if (failedFiredRef.current || completeFiredRef.current) return;
3050
- if (!_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3103
+ if (!_chunkHCQWFL3Acjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
3051
3104
  const txHash = currentDepositTxHashRef.current;
3052
3105
  if (!txHash) return;
3053
3106
  failedFiredRef.current = true;
3054
3107
  setPhase("tracker");
3055
- _optionalChain([onSwappedFailedRef, 'access', _93 => _93.current, 'optionalCall', _94 => _94(
3108
+ _optionalChain([onSwappedFailedRef, 'access', _120 => _120.current, 'optionalCall', _121 => _121(
3056
3109
  txHash,
3057
- _chunkA42XAHIBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3110
+ _chunkHCQWFL3Acjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
3058
3111
  )]);
3059
3112
  }, [latestEvent]);
3060
3113
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
3061
3114
  _react.useEffect.call(void 0, () => {
3062
- _optionalChain([onImmersiveChangeRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(immersive)]);
3115
+ _optionalChain([onImmersiveChangeRef, 'access', _122 => _122.current, 'optionalCall', _123 => _123(immersive)]);
3063
3116
  }, [immersive]);
3064
- _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _97 => _97.current, 'optionalCall', _98 => _98(false)]), []);
3117
+ _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _124 => _124.current, 'optionalCall', _125 => _125(false)]), []);
3065
3118
  const handleRetry = () => {
3066
3119
  setIframeSrc(null);
3067
3120
  setWidgetUrl(null);
@@ -3077,8 +3130,8 @@ function SwappedIframeStep({
3077
3130
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3078
3131
  SwappedOrderTracker,
3079
3132
  {
3080
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCryptoAmount]), () => ( null)),
3081
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _100 => _100.orderCrypto]), () => ( "USDC")),
3133
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _126 => _126.orderCryptoAmount]), () => ( null)),
3134
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _127 => _127.orderCrypto]), () => ( "USDC")),
3082
3135
  stepStates,
3083
3136
  terminal: terminalState,
3084
3137
  onRetry: handleRetry,
@@ -3100,7 +3153,7 @@ function SwappedIframeStep({
3100
3153
  }
3101
3154
  )
3102
3155
  ] }),
3103
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) }),
3156
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, {}) }),
3104
3157
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3105
3158
  "iframe",
3106
3159
  {
@@ -3112,7 +3165,7 @@ function SwappedIframeStep({
3112
3165
  allow: "payment; camera; microphone; clipboard-write; geolocation",
3113
3166
  onLoad: () => {
3114
3167
  try {
3115
- if (_optionalChain([iframeRef, 'access', _101 => _101.current, 'optionalAccess', _102 => _102.contentWindow, 'optionalAccess', _103 => _103.location, 'optionalAccess', _104 => _104.href]) === "about:blank") {
3168
+ if (_optionalChain([iframeRef, 'access', _128 => _128.current, 'optionalAccess', _129 => _129.contentWindow, 'optionalAccess', _130 => _130.location, 'optionalAccess', _131 => _131.href]) === "about:blank") {
3116
3169
  return;
3117
3170
  }
3118
3171
  } catch (e19) {
@@ -3123,11 +3176,11 @@ function SwappedIframeStep({
3123
3176
  retryToken
3124
3177
  )
3125
3178
  ] }) }),
3126
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3179
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
3127
3180
  ] });
3128
3181
  }
3129
3182
  function deriveStepStates(swappedStatus, latestEvent) {
3130
- if (_chunkA42XAHIBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3183
+ if (_chunkHCQWFL3Acjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
3131
3184
  return ["complete", "complete", "failed", "pending"];
3132
3185
  }
3133
3186
  if (swappedStatus === "order_cancelled") {
@@ -3135,7 +3188,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
3135
3188
  }
3136
3189
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
3137
3190
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
3138
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _105 => _105.type]) === "bridge-complete";
3191
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _132 => _132.type]) === "bridge-complete";
3139
3192
  if (step3Complete) {
3140
3193
  return ["complete", "complete", "complete", "complete"];
3141
3194
  }
@@ -3191,7 +3244,7 @@ function FiatOnrampStep({
3191
3244
  onImmersiveChange
3192
3245
  }) {
3193
3246
  const loadUrl = _react.useCallback.call(void 0, async () => {
3194
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _106 => _106(
3247
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _133 => _133(
3195
3248
  smartAccount,
3196
3249
  paymentMethod,
3197
3250
  methodSelectionSource
@@ -3317,7 +3370,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
3317
3370
  function ExchangeLogo({ exchange }) {
3318
3371
  const [failed, setFailed] = _react.useState.call(void 0, false);
3319
3372
  if (!exchange.logoUrl || failed) {
3320
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BankIcon, {});
3373
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BankIcon, {});
3321
3374
  }
3322
3375
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3323
3376
  "img",
@@ -3362,7 +3415,7 @@ function ExchangeSelectStep({
3362
3415
  setExchanges([]);
3363
3416
  setExchangeFeeBps(0);
3364
3417
  setError(message);
3365
- _optionalChain([onError, 'optionalCall', _107 => _107(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
3418
+ _optionalChain([onError, 'optionalCall', _134 => _134(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
3366
3419
  }).finally(() => {
3367
3420
  if (!cancelled) setLoading(false);
3368
3421
  });
@@ -3388,7 +3441,7 @@ function ExchangeSelectStep({
3388
3441
  } catch (err) {
3389
3442
  const message = err instanceof Error ? err.message : "Failed to prepare Connect";
3390
3443
  setSelectionNotice(message);
3391
- _optionalChain([onError, 'optionalCall', _108 => _108(message, "SWAPPED_CONNECT_URL_FAILED")]);
3444
+ _optionalChain([onError, 'optionalCall', _135 => _135(message, "SWAPPED_CONNECT_URL_FAILED")]);
3392
3445
  } finally {
3393
3446
  setSelectingConnection(null);
3394
3447
  }
@@ -3398,14 +3451,14 @@ function ExchangeSelectStep({
3398
3451
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
3399
3452
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3400
3453
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3401
- _chunkPUJHXHRAcjs.BodyHeader,
3454
+ _chunkNPSC5R22cjs.BodyHeader,
3402
3455
  {
3403
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.UnplugIcon, {}),
3456
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.UnplugIcon, {}),
3404
3457
  title: "Connect exchange",
3405
3458
  subtitle: "Select an exchange to connect"
3406
3459
  }
3407
3460
  ),
3408
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, {}) }),
3461
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, {}) }),
3409
3462
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
3410
3463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
3411
3464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3431,7 +3484,7 @@ function ExchangeSelectStep({
3431
3484
  )
3432
3485
  ] }),
3433
3486
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
3434
- const brand = _chunkA42XAHIBcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
3487
+ const brand = _chunkHCQWFL3Acjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
3435
3488
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3436
3489
  "button",
3437
3490
  {
@@ -3456,7 +3509,7 @@ function ExchangeSelectStep({
3456
3509
  );
3457
3510
  }) })
3458
3511
  ] }),
3459
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {}),
3512
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {}),
3460
3513
  exchangeFeeBps > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-exchange-select-fee-note", children: [
3461
3514
  "A ",
3462
3515
  formatFeeRate(exchangeFeeBps),
@@ -3473,29 +3526,29 @@ var BASE_CHAIN_ID = 8453;
3473
3526
  function DepositAddressSkeleton({
3474
3527
  uiConfig
3475
3528
  }) {
3476
- const evmChainIds = _chunkH577RJN5cjs.getSupportedChainIds.call(void 0, );
3529
+ const evmChainIds = _chunkTENL4H64cjs.getSupportedChainIds.call(void 0, );
3477
3530
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
3478
- const tokensForChain = _chunkH577RJN5cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
3531
+ const tokensForChain = _chunkTENL4H64cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
3479
3532
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
3480
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, defaultChainId);
3481
- const chainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, defaultChainId);
3533
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, defaultChainId);
3534
+ const chainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, defaultChainId);
3482
3535
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
3483
3536
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
3484
3537
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3485
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3538
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
3486
3539
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
3487
3540
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
3488
3541
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
3489
3542
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
3490
3543
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3491
- _chunkPUJHXHRAcjs.CdnIcon,
3544
+ _chunkNPSC5R22cjs.CdnIcon,
3492
3545
  {
3493
3546
  src: chainIcon,
3494
3547
  className: "rs-deposit-address-dropdown-icon"
3495
3548
  }
3496
3549
  ),
3497
3550
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
3498
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3551
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3499
3552
  ] })
3500
3553
  ] }),
3501
3554
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -3503,9 +3556,9 @@ function DepositAddressSkeleton({
3503
3556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
3504
3557
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
3505
3558
  "Min.$",
3506
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.minDepositUsd]), () => ( 0.1))).toFixed(2),
3507
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3508
- _chunkPUJHXHRAcjs.InfoIcon,
3559
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _136 => _136.minDepositUsd]), () => ( 0.1))).toFixed(2),
3560
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCQWFL3Acjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3561
+ _chunkNPSC5R22cjs.InfoIcon,
3509
3562
  {
3510
3563
  className: "rs-deposit-address-min-icon",
3511
3564
  "aria-hidden": "true"
@@ -3515,14 +3568,14 @@ function DepositAddressSkeleton({
3515
3568
  ] }),
3516
3569
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
3517
3570
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3518
- _chunkPUJHXHRAcjs.TokenIcon,
3571
+ _chunkNPSC5R22cjs.TokenIcon,
3519
3572
  {
3520
3573
  symbol: defaultToken,
3521
3574
  className: "rs-deposit-address-dropdown-icon"
3522
3575
  }
3523
3576
  ),
3524
3577
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
3525
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3578
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
3526
3579
  ] })
3527
3580
  ] })
3528
3581
  ] }),
@@ -3543,7 +3596,7 @@ function DepositAddressSkeleton({
3543
3596
  disabled: true,
3544
3597
  "aria-hidden": "true",
3545
3598
  children: [
3546
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CopyIcon, {}),
3599
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CopyIcon, {}),
3547
3600
  "Copy address"
3548
3601
  ]
3549
3602
  }
@@ -3556,16 +3609,16 @@ function DepositAddressSkeleton({
3556
3609
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
3557
3610
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
3558
3611
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3559
- _chunkA42XAHIBcjs.Tooltip,
3612
+ _chunkHCQWFL3Acjs.Tooltip,
3560
3613
  {
3561
3614
  className: "rs-price-impact-info",
3562
3615
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
3563
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, { "aria-hidden": "true" })
3616
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.InfoIcon, { "aria-hidden": "true" })
3564
3617
  }
3565
3618
  )
3566
3619
  ] }),
3567
3620
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3568
- _chunkPUJHXHRAcjs.ChevronDownIcon,
3621
+ _chunkNPSC5R22cjs.ChevronDownIcon,
3569
3622
  {
3570
3623
  className: "rs-price-impact-chevron",
3571
3624
  "aria-hidden": "true"
@@ -3573,7 +3626,7 @@ function DepositAddressSkeleton({
3573
3626
  )
3574
3627
  ] }) })
3575
3628
  ] }),
3576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3629
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
3577
3630
  ] });
3578
3631
  }
3579
3632
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3605,14 +3658,14 @@ function SolanaTokenSelectStep({
3605
3658
  setError(null);
3606
3659
  const portfolioBySymbol = {};
3607
3660
  try {
3608
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3661
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3609
3662
  solanaAddress
3610
3663
  });
3611
3664
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3612
3665
  if (!active) return;
3613
3666
  for (const t of portfolio.tokens) {
3614
3667
  const symbol = t.symbol.toUpperCase();
3615
- if (!_chunkH577RJN5cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3668
+ if (!_chunkTENL4H64cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3616
3669
  let parsed = 0n;
3617
3670
  try {
3618
3671
  parsed = BigInt(t.balance || "0");
@@ -3628,12 +3681,12 @@ function SolanaTokenSelectStep({
3628
3681
  };
3629
3682
  }
3630
3683
  }
3631
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3684
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3632
3685
  symbols: Object.keys(portfolioBySymbol)
3633
3686
  });
3634
3687
  } catch (err) {
3635
3688
  if (!active) return;
3636
- _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3689
+ _chunkNPSC5R22cjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3637
3690
  solanaAddress
3638
3691
  });
3639
3692
  setError(
@@ -3644,7 +3697,7 @@ function SolanaTokenSelectStep({
3644
3697
  return;
3645
3698
  }
3646
3699
  const results = [];
3647
- for (const token of _chunkH577RJN5cjs.SOLANA_TOKENS) {
3700
+ for (const token of _chunkTENL4H64cjs.SOLANA_TOKENS) {
3648
3701
  const fromPortfolio = portfolioBySymbol[token.symbol];
3649
3702
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3650
3703
  results.push({
@@ -3658,7 +3711,7 @@ function SolanaTokenSelectStep({
3658
3711
  setTokenBalances(results);
3659
3712
  setLoading(false);
3660
3713
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
3661
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _110 => _110(totalUsd)]);
3714
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _137 => _137(totalUsd)]);
3662
3715
  }
3663
3716
  void loadBalances();
3664
3717
  return () => {
@@ -3680,30 +3733,30 @@ function SolanaTokenSelectStep({
3680
3733
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3681
3734
  const numeric = Number(raw);
3682
3735
  if (!Number.isFinite(numeric)) return raw;
3683
- return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
3736
+ return _chunkNPSC5R22cjs.tokenFormatter.format(numeric);
3684
3737
  } catch (e22) {
3685
3738
  return "--";
3686
3739
  }
3687
3740
  };
3688
- const chainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, "solana");
3689
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, "solana");
3741
+ const chainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, "solana");
3742
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, "solana");
3690
3743
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3691
3744
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3692
3745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3693
- _chunkPUJHXHRAcjs.BodyHeader,
3746
+ _chunkNPSC5R22cjs.BodyHeader,
3694
3747
  {
3695
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
3748
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}),
3696
3749
  title: "Your assets",
3697
3750
  subtitle: "Select source assets to transfer"
3698
3751
  }
3699
3752
  ),
3700
3753
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3701
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-text-tertiary" }),
3754
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, { className: "rs-text-tertiary" }),
3702
3755
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3703
3756
  ] }),
3704
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
3757
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
3705
3758
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3706
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, { className: "rs-empty-icon" }),
3759
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, { className: "rs-empty-icon" }),
3707
3760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3708
3761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3709
3762
  solanaAddress.slice(0, 6),
@@ -3734,13 +3787,13 @@ function SolanaTokenSelectStep({
3734
3787
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3735
3788
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3736
3789
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3737
- _chunkPUJHXHRAcjs.TokenIcon,
3790
+ _chunkNPSC5R22cjs.TokenIcon,
3738
3791
  {
3739
3792
  symbol: entry.token.symbol,
3740
3793
  fallback: entry.token.symbol.slice(0, 4)
3741
3794
  }
3742
3795
  ) }),
3743
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: chainName }) })
3796
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: chainIcon, alt: chainName }) })
3744
3797
  ] }),
3745
3798
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
3746
3799
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-name-row", children: [
@@ -3757,14 +3810,14 @@ function SolanaTokenSelectStep({
3757
3810
  ] })
3758
3811
  ] })
3759
3812
  ] }),
3760
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3813
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkNPSC5R22cjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3761
3814
  ]
3762
3815
  },
3763
3816
  entry.token.symbol
3764
3817
  );
3765
3818
  }) }),
3766
3819
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3767
- _chunkPUJHXHRAcjs.Button,
3820
+ _chunkNPSC5R22cjs.Button,
3768
3821
  {
3769
3822
  onClick: () => selectedEntry && onContinue(
3770
3823
  selectedEntry.token,
@@ -3777,7 +3830,7 @@ function SolanaTokenSelectStep({
3777
3830
  }
3778
3831
  )
3779
3832
  ] }),
3780
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
3833
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
3781
3834
  ] });
3782
3835
  }
3783
3836
 
@@ -3808,8 +3861,8 @@ function SolanaAmountStep({
3808
3861
  const [amount, setAmount] = _react.useState.call(void 0, "");
3809
3862
  const [error, setError] = _react.useState.call(void 0, null);
3810
3863
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3811
- const isSourceStablecoin = _chunkH577RJN5cjs.isStablecoinSymbol.call(void 0, token.symbol);
3812
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _111 => _111.trim, 'call', _112 => _112(), 'access', _113 => _113.toLowerCase, 'call', _114 => _114()]) === "max";
3864
+ const isSourceStablecoin = _chunkTENL4H64cjs.isStablecoinSymbol.call(void 0, token.symbol);
3865
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _138 => _138.trim, 'call', _139 => _139(), 'access', _140 => _140.toLowerCase, 'call', _141 => _141()]) === "max";
3813
3866
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3814
3867
  if (isSourceStablecoin) return 1;
3815
3868
  try {
@@ -3829,7 +3882,7 @@ function SolanaAmountStep({
3829
3882
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3830
3883
  const numeric = Number(raw);
3831
3884
  if (!Number.isFinite(numeric)) return raw;
3832
- return _chunkPUJHXHRAcjs.tokenFormatter.format(numeric);
3885
+ return _chunkNPSC5R22cjs.tokenFormatter.format(numeric);
3833
3886
  } catch (e24) {
3834
3887
  return "\u2026";
3835
3888
  }
@@ -3846,7 +3899,7 @@ function SolanaAmountStep({
3846
3899
  }
3847
3900
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3848
3901
  const spendableBalance = _react.useMemo.call(void 0, () => {
3849
- if (!_chunkH577RJN5cjs.isNativeSol.call(void 0, token)) return balance;
3902
+ if (!_chunkTENL4H64cjs.isNativeSol.call(void 0, token)) return balance;
3850
3903
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3851
3904
  }, [balance, token]);
3852
3905
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3911,8 +3964,8 @@ function SolanaAmountStep({
3911
3964
  return null;
3912
3965
  }
3913
3966
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3914
- const minDepositUsd = targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkH577RJN5cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _116 => _116.minDepositUsd]), () => ( null));
3915
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _117 => _117.maxDepositUsd]), () => ( null));
3967
+ const minDepositUsd = _chunkTENL4H64cjs.isHyperCoreDestination.call(void 0, targetChain) ? Math.max(_chunkTENL4H64cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _142 => _142.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _143 => _143.minDepositUsd]), () => ( null));
3968
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _144 => _144.maxDepositUsd]), () => ( null));
3916
3969
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3917
3970
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3918
3971
  const exceedsBalance = Boolean(
@@ -3922,7 +3975,7 @@ function SolanaAmountStep({
3922
3975
  const handlePresetClick = (percentage) => {
3923
3976
  const formatted = computePresetAmount(percentage);
3924
3977
  if (!formatted) return;
3925
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3978
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3926
3979
  percentage,
3927
3980
  symbol: token.symbol,
3928
3981
  formatted
@@ -3957,7 +4010,7 @@ function SolanaAmountStep({
3957
4010
  try {
3958
4011
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3959
4012
  } catch (e29) {
3960
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
4013
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3961
4014
  amount,
3962
4015
  sourceAmount: sourceAmountStr,
3963
4016
  reason: "parse-units-failed"
@@ -3966,13 +4019,13 @@ function SolanaAmountStep({
3966
4019
  return;
3967
4020
  }
3968
4021
  if (amountInUnits > spendableBalance) {
3969
- const isReserveIssue = _chunkH577RJN5cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
4022
+ const isReserveIssue = _chunkTENL4H64cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3970
4023
  setError(
3971
4024
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3972
4025
  );
3973
4026
  return;
3974
4027
  }
3975
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
4028
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3976
4029
  symbol: token.symbol,
3977
4030
  inputAmountUsd: amount,
3978
4031
  sourceAmount: sourceAmountStr,
@@ -3985,7 +4038,7 @@ function SolanaAmountStep({
3985
4038
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3986
4039
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3987
4040
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3988
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Wallet deposit" }),
4041
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}), title: "Wallet deposit" }),
3989
4042
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3990
4043
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3991
4044
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4005,13 +4058,13 @@ function SolanaAmountStep({
4005
4058
  " available",
4006
4059
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4007
4060
  " (~",
4008
- _chunkPUJHXHRAcjs.currencyFormatter.format(computedBalanceUsd),
4061
+ _chunkNPSC5R22cjs.currencyFormatter.format(computedBalanceUsd),
4009
4062
  ")"
4010
4063
  ] })
4011
4064
  ] }),
4012
4065
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
4013
4066
  "Min. deposit ",
4014
- _chunkPUJHXHRAcjs.currencyFormatter.format(minDepositUsd)
4067
+ _chunkNPSC5R22cjs.currencyFormatter.format(minDepositUsd)
4015
4068
  ] })
4016
4069
  ] })
4017
4070
  ] }),
@@ -4034,7 +4087,7 @@ function SolanaAmountStep({
4034
4087
  "Solana ",
4035
4088
  token.symbol
4036
4089
  ] }),
4037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: token.symbol }) })
4090
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: token.symbol }) })
4038
4091
  ] })
4039
4092
  ] }),
4040
4093
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -4045,18 +4098,17 @@ function SolanaAmountStep({
4045
4098
  " ",
4046
4099
  targetTokenSymbol
4047
4100
  ] }),
4048
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetTokenSymbol }) })
4101
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: targetTokenSymbol }) })
4049
4102
  ] })
4050
4103
  ] }),
4051
4104
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
4052
4105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
4053
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkPUJHXHRAcjs.currencyFormatter.format(balanceAfterUsd) })
4106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkNPSC5R22cjs.currencyFormatter.format(balanceAfterUsd) })
4054
4107
  ] })
4055
4108
  ] }),
4056
- targetChain === _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
4057
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
4109
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
4058
4110
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4059
- _chunkPUJHXHRAcjs.Button,
4111
+ _chunkNPSC5R22cjs.Button,
4060
4112
  {
4061
4113
  onClick: handleContinue,
4062
4114
  fullWidth: true,
@@ -4065,7 +4117,7 @@ function SolanaAmountStep({
4065
4117
  }
4066
4118
  )
4067
4119
  ] }),
4068
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4120
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
4069
4121
  ] });
4070
4122
  }
4071
4123
 
@@ -4088,10 +4140,10 @@ var _spltoken = require('@solana/spl-token');
4088
4140
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
4089
4141
  var cachedConnections = /* @__PURE__ */ new Map();
4090
4142
  function getSolanaRpcUrl(rpcUrls) {
4091
- return _nullishCoalesce(_chunkPUJHXHRAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4143
+ return _nullishCoalesce(_chunkNPSC5R22cjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
4092
4144
  }
4093
4145
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
4094
- return _chunkPUJHXHRAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4146
+ return _chunkNPSC5R22cjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
4095
4147
  }
4096
4148
  function getSolanaConnection(rpcUrls) {
4097
4149
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -4193,36 +4245,37 @@ function SolanaConfirmStep({
4193
4245
  onError,
4194
4246
  debug
4195
4247
  }) {
4196
- const rpcUrls = _chunkPUJHXHRAcjs.useRpcUrls.call(void 0, );
4248
+ const rpcUrls = _chunkNPSC5R22cjs.useRpcUrls.call(void 0, );
4197
4249
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
4198
4250
  const [error, setError] = _react.useState.call(void 0, null);
4199
- const targetSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
4200
- const sourceChainName = _chunkH577RJN5cjs.getChainName.call(void 0, "solana");
4201
- const targetChainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
4202
- const sourceChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, "solana");
4203
- const targetChainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChain);
4204
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _118 => _118.feeSponsored]), () => ( false));
4205
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4206
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkPUJHXHRAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4251
+ const targetChainId = _chunkTENL4H64cjs.targetChainToChainId.call(void 0, targetChain);
4252
+ const targetSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
4253
+ const sourceChainName = _chunkTENL4H64cjs.getChainName.call(void 0, "solana");
4254
+ const targetChainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId);
4255
+ const sourceChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, "solana");
4256
+ const targetChainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, targetChainId);
4257
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _145 => _145.feeSponsored]), () => ( false));
4258
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _146 => _146.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
4259
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkNPSC5R22cjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
4207
4260
  const receiveDisplay = (() => {
4208
4261
  const usdValue = Number(targetAmount);
4209
4262
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
4210
- const estimate = _chunkPUJHXHRAcjs.formatReceiveEstimate.call(void 0, {
4263
+ const estimate = _chunkNPSC5R22cjs.formatReceiveEstimate.call(void 0, {
4211
4264
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
4212
4265
  sourceSymbol: token.symbol,
4213
4266
  targetSymbol,
4214
4267
  sourceAmountUsd,
4215
- sourceTrusted: _chunkPUJHXHRAcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4268
+ sourceTrusted: _chunkNPSC5R22cjs.isRecognizedToken.call(void 0, token.mint, "solana"),
4216
4269
  // Curated stablecoin target estimates at $1 when unquoted; never applied
4217
4270
  // to the source (a held token). See ConfirmStep for the rationale.
4218
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkPUJHXHRAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4271
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkNPSC5R22cjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
4219
4272
  });
4220
4273
  if (estimate !== void 0) return estimate;
4221
4274
  return targetSymbol;
4222
4275
  })();
4223
4276
  const handleConfirm = async () => {
4224
4277
  if (!solanaProvider) {
4225
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4278
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4226
4279
  reason: "missing-provider"
4227
4280
  });
4228
4281
  setError("Solana wallet not connected");
@@ -4230,7 +4283,7 @@ function SolanaConfirmStep({
4230
4283
  }
4231
4284
  const parsedAmount = parseFloat(sourceAmount);
4232
4285
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
4233
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4286
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
4234
4287
  reason: "invalid-amount",
4235
4288
  sourceAmount
4236
4289
  });
@@ -4239,7 +4292,7 @@ function SolanaConfirmStep({
4239
4292
  }
4240
4293
  setError(null);
4241
4294
  setIsSubmitting(true);
4242
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4295
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
4243
4296
  smartAccount,
4244
4297
  solanaAddress,
4245
4298
  solanaDepositAddress,
@@ -4249,7 +4302,7 @@ function SolanaConfirmStep({
4249
4302
  });
4250
4303
  try {
4251
4304
  const check = await service.checkAccount(smartAccount);
4252
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4305
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
4253
4306
  smartAccount,
4254
4307
  isRegistered: check.isRegistered,
4255
4308
  targetChain: check.targetChain,
@@ -4262,12 +4315,12 @@ function SolanaConfirmStep({
4262
4315
  }
4263
4316
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
4264
4317
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
4265
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4318
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
4266
4319
  token: token.symbol,
4267
4320
  sourceAmount,
4268
4321
  amountUnits: amountUnits.toString()
4269
4322
  });
4270
- const transaction = _chunkH577RJN5cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
4323
+ const transaction = _chunkTENL4H64cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
4271
4324
  connection,
4272
4325
  solanaAddress,
4273
4326
  solanaDepositAddress,
@@ -4279,10 +4332,10 @@ function SolanaConfirmStep({
4279
4332
  token.mint,
4280
4333
  amountUnits
4281
4334
  );
4282
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4335
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
4283
4336
  token: token.symbol,
4284
4337
  instructionCount: transaction.instructions.length,
4285
- feePayer: _optionalChain([transaction, 'access', _120 => _120.feePayer, 'optionalAccess', _121 => _121.toBase58, 'call', _122 => _122()]),
4338
+ feePayer: _optionalChain([transaction, 'access', _147 => _147.feePayer, 'optionalAccess', _148 => _148.toBase58, 'call', _149 => _149()]),
4286
4339
  recentBlockhash: transaction.recentBlockhash
4287
4340
  });
4288
4341
  const txHash = await sendSolanaTransaction(
@@ -4290,7 +4343,7 @@ function SolanaConfirmStep({
4290
4343
  connection,
4291
4344
  transaction
4292
4345
  );
4293
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4346
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
4294
4347
  txHash,
4295
4348
  amountUnits: amountUnits.toString()
4296
4349
  });
@@ -4302,34 +4355,34 @@ function SolanaConfirmStep({
4302
4355
  });
4303
4356
  } catch (err) {
4304
4357
  const raw = err instanceof Error ? err.message : "Transfer failed";
4305
- const message = _chunkPUJHXHRAcjs.formatUserError.call(void 0, raw);
4306
- _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4358
+ const message = _chunkNPSC5R22cjs.formatUserError.call(void 0, raw);
4359
+ _chunkNPSC5R22cjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
4307
4360
  smartAccount,
4308
4361
  token: token.symbol,
4309
4362
  sourceAmount
4310
4363
  });
4311
4364
  setError(message);
4312
- _optionalChain([onError, 'optionalCall', _123 => _123(message, "SOLANA_TRANSFER_ERROR")]);
4365
+ _optionalChain([onError, 'optionalCall', _150 => _150(message, "SOLANA_TRANSFER_ERROR")]);
4313
4366
  } finally {
4314
4367
  setIsSubmitting(false);
4315
4368
  }
4316
4369
  };
4317
4370
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4318
4371
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4319
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}), title: "Review deposit" }),
4372
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}), title: "Review deposit" }),
4320
4373
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
4321
4374
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4322
4375
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
4323
4376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4324
4377
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
4325
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
4378
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: sourceChainIcon }) })
4326
4379
  ] })
4327
4380
  ] }),
4328
4381
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4329
4382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
4330
4383
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4331
4384
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
4332
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
4385
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: targetChainIcon }) })
4333
4386
  ] })
4334
4387
  ] }),
4335
4388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -4344,14 +4397,14 @@ function SolanaConfirmStep({
4344
4397
  " ",
4345
4398
  token.symbol
4346
4399
  ] }),
4347
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: token.symbol }) })
4400
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: token.symbol }) })
4348
4401
  ] })
4349
4402
  ] }),
4350
4403
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
4351
4404
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
4352
4405
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
4353
4406
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
4354
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: targetSymbol }) })
4407
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: targetSymbol }) })
4355
4408
  ] })
4356
4409
  ] }),
4357
4410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -4364,13 +4417,13 @@ function SolanaConfirmStep({
4364
4417
  children: "$0.04"
4365
4418
  }
4366
4419
  ),
4367
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA42XAHIBcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.InfoIcon, {}) }) })
4420
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCQWFL3Acjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.InfoIcon, {}) }) })
4368
4421
  ] })
4369
4422
  ] })
4370
4423
  ] }),
4371
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Callout, { variant: "error", children: error }),
4424
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Callout, { variant: "error", children: error }),
4372
4425
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4373
- _chunkPUJHXHRAcjs.Button,
4426
+ _chunkNPSC5R22cjs.Button,
4374
4427
  {
4375
4428
  onClick: handleConfirm,
4376
4429
  loading: isSubmitting,
@@ -4381,7 +4434,7 @@ function SolanaConfirmStep({
4381
4434
  }
4382
4435
  )
4383
4436
  ] }),
4384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
4385
4438
  ] });
4386
4439
  }
4387
4440
 
@@ -4396,22 +4449,22 @@ function DappImportAssetSelectStep({
4396
4449
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4397
4450
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4398
4451
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4399
- _chunkPUJHXHRAcjs.BodyHeader,
4452
+ _chunkNPSC5R22cjs.BodyHeader,
4400
4453
  {
4401
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
4454
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}),
4402
4455
  title: `Transfer from ${sourceLabel}`,
4403
4456
  subtitle: "Pick the balance to import"
4404
4457
  }
4405
4458
  ),
4406
4459
  incompleteSummary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-notice", role: "status", children: incompleteSummary }),
4407
4460
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
4408
- const tokenAmount = asset.balance ? _chunkPUJHXHRAcjs.tokenFormatter.format(
4461
+ const tokenAmount = asset.balance ? _chunkNPSC5R22cjs.tokenFormatter.format(
4409
4462
  Number(asset.balance) / 10 ** asset.decimals
4410
4463
  ) : "0";
4411
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
4464
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkNPSC5R22cjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
4412
4465
  const assetIcon = asset.icon;
4413
- const chainIcon = _chunkH577RJN5cjs.getChainIcon.call(void 0, asset.chainId);
4414
- const badge = _chunkH577RJN5cjs.getChainBadge.call(void 0, asset.chainId);
4466
+ const chainIcon = _chunkTENL4H64cjs.getChainIcon.call(void 0, asset.chainId);
4467
+ const badge = _chunkTENL4H64cjs.getChainBadge.call(void 0, asset.chainId);
4415
4468
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4416
4469
  "button",
4417
4470
  {
@@ -4421,14 +4474,14 @@ function DappImportAssetSelectStep({
4421
4474
  children: [
4422
4475
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
4423
4476
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
4424
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4425
- _chunkPUJHXHRAcjs.TokenIcon,
4477
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4478
+ _chunkNPSC5R22cjs.TokenIcon,
4426
4479
  {
4427
4480
  symbol: asset.symbol,
4428
4481
  fallback: asset.symbol.slice(0, 4)
4429
4482
  }
4430
4483
  ) }),
4431
- chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: chainIcon, alt: _chunkH577RJN5cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4484
+ chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: chainIcon, alt: _chunkTENL4H64cjs.getChainName.call(void 0, asset.chainId) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4432
4485
  "span",
4433
4486
  {
4434
4487
  className: "rs-asset-chain-badge",
@@ -4460,7 +4513,7 @@ function DappImportAssetSelectStep({
4460
4513
  );
4461
4514
  }) })
4462
4515
  ] }),
4463
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4516
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
4464
4517
  ] });
4465
4518
  }
4466
4519
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -4482,7 +4535,7 @@ function describeRow(status, comingSoon) {
4482
4535
  }
4483
4536
  if (status.enabled) {
4484
4537
  return {
4485
- subtitle: status.balanceUsd > 0 ? _chunkPUJHXHRAcjs.currencyFormatter.format(status.balanceUsd) : "No balance",
4538
+ subtitle: status.balanceUsd > 0 ? _chunkNPSC5R22cjs.currencyFormatter.format(status.balanceUsd) : "No balance",
4486
4539
  disabled: false,
4487
4540
  busy: false
4488
4541
  };
@@ -4505,9 +4558,9 @@ function DappImportSelectStep({
4505
4558
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
4506
4559
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4507
4560
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4508
- _chunkPUJHXHRAcjs.BodyHeader,
4561
+ _chunkNPSC5R22cjs.BodyHeader,
4509
4562
  {
4510
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.MigrateAssetsIcon, {}),
4563
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.MigrateAssetsIcon, {}),
4511
4564
  title: "Migrate assets",
4512
4565
  subtitle: "Select a position to migrate"
4513
4566
  }
@@ -4519,16 +4572,16 @@ function DappImportSelectStep({
4519
4572
  Boolean(brand.comingSoon)
4520
4573
  );
4521
4574
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4522
- _chunkVTVOHNXMcjs.ListRow,
4575
+ _chunkJYKMR6QIcjs.ListRow,
4523
4576
  {
4524
4577
  leadingMedia: brand.iconUrl,
4525
4578
  title: brand.label,
4526
4579
  subtitle,
4527
4580
  disabled,
4528
- trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
4581
+ trailing: busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, { className: "rs-spinner--sm" }) : void 0,
4529
4582
  onClick: () => {
4530
4583
  if (status === "needs-connect") {
4531
- _optionalChain([onRequestConnect, 'optionalCall', _124 => _124()]);
4584
+ _optionalChain([onRequestConnect, 'optionalCall', _151 => _151()]);
4532
4585
  return;
4533
4586
  }
4534
4587
  onSelect(brand.id);
@@ -4538,7 +4591,7 @@ function DappImportSelectStep({
4538
4591
  );
4539
4592
  }) })
4540
4593
  ] }),
4541
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4594
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
4542
4595
  ] });
4543
4596
  }
4544
4597
  DappImportSelectStep.displayName = "DappImportSelectStep";
@@ -4555,9 +4608,9 @@ function DappImportAssetSelectSkeleton({
4555
4608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
4556
4609
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
4557
4610
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4558
- _chunkPUJHXHRAcjs.BodyHeader,
4611
+ _chunkNPSC5R22cjs.BodyHeader,
4559
4612
  {
4560
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.WalletIcon, {}),
4613
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.WalletIcon, {}),
4561
4614
  title: `Transfer from ${sourceLabel}`,
4562
4615
  subtitle: "Pick the balance to import"
4563
4616
  }
@@ -4595,7 +4648,7 @@ function DappImportAssetSelectSkeleton({
4595
4648
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
4596
4649
  }
4597
4650
  ) }),
4598
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
4651
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
4599
4652
  ] });
4600
4653
  }
4601
4654
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -4684,7 +4737,7 @@ var aaveProvider = {
4684
4737
  throw new Error("Aave positions require a backend connection");
4685
4738
  }
4686
4739
  const response = await backend.getPositions(eoa);
4687
- if (_optionalChain([signal, 'optionalAccess', _125 => _125.aborted])) return null;
4740
+ if (_optionalChain([signal, 'optionalAccess', _152 => _152.aborted])) return null;
4688
4741
  const assets = toImportableAssets(response.positions);
4689
4742
  const failures = _nullishCoalesce(response.failures, () => ( []));
4690
4743
  if (assets.length === 0) {
@@ -4771,9 +4824,9 @@ var aaveProvider = {
4771
4824
  function toImportableAssets(positions) {
4772
4825
  const assets = [];
4773
4826
  for (const position of positions) {
4774
- const chainId = _chunkH577RJN5cjs.parseEvmChainId.call(void 0, position.chain);
4827
+ const chainId = _chunkTENL4H64cjs.parseEvmChainId.call(void 0, position.chain);
4775
4828
  if (chainId === null) continue;
4776
- if (!_chunkH577RJN5cjs.CHAIN_BY_ID[chainId]) continue;
4829
+ if (!_chunkTENL4H64cjs.CHAIN_BY_ID[chainId]) continue;
4777
4830
  if (BigInt(position.maxWithdrawable) <= 0n) continue;
4778
4831
  if (position.constraints.some((c) => POLICY_REFUSED.includes(c))) continue;
4779
4832
  assets.push(buildAsset(position, chainId));
@@ -4890,7 +4943,7 @@ async function detectPolymarketWalletKind(params) {
4890
4943
  contracts: [
4891
4944
  {
4892
4945
  address: proxyWallet,
4893
- abi: _chunkYEBXUUH3cjs.SAFE_ABI,
4946
+ abi: _chunkJPRV36DTcjs.SAFE_ABI,
4894
4947
  functionName: "isOwner",
4895
4948
  args: [eoa]
4896
4949
  },
@@ -4923,7 +4976,7 @@ async function buildSignedDepositWalletBatch(params) {
4923
4976
  if (!account || !chain) {
4924
4977
  throw new Error("Wallet not connected");
4925
4978
  }
4926
- if (chain.id !== _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID) {
4979
+ if (chain.id !== _chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4927
4980
  throw new Error("Switch to Polygon to sign");
4928
4981
  }
4929
4982
  const owner = await publicClient.readContract({
@@ -4968,14 +5021,14 @@ async function buildSignedDepositWalletBatch(params) {
4968
5021
  })),
4969
5022
  signature
4970
5023
  },
4971
- sourceToken: _chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS,
5024
+ sourceToken: _chunkJPRV36DTcjs.POLYMARKET_USDCE_ADDRESS,
4972
5025
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4973
5026
  };
4974
5027
  }
4975
5028
  function buildUsdceTransferCalls(recipient, amount) {
4976
5029
  return [
4977
5030
  {
4978
- target: _chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS,
5031
+ target: _chunkJPRV36DTcjs.POLYMARKET_USDCE_ADDRESS,
4979
5032
  value: 0n,
4980
5033
  data: _viem.encodeFunctionData.call(void 0, {
4981
5034
  abi: _viem.erc20Abi,
@@ -4988,21 +5041,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4988
5041
  function buildPusdUnwrapCalls(recipient, amount) {
4989
5042
  return [
4990
5043
  {
4991
- target: _chunkYEBXUUH3cjs.POLYMARKET_PUSD_ADDRESS,
5044
+ target: _chunkJPRV36DTcjs.POLYMARKET_PUSD_ADDRESS,
4992
5045
  value: 0n,
4993
5046
  data: _viem.encodeFunctionData.call(void 0, {
4994
5047
  abi: _viem.erc20Abi,
4995
5048
  functionName: "approve",
4996
- args: [_chunkYEBXUUH3cjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
5049
+ args: [_chunkJPRV36DTcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4997
5050
  })
4998
5051
  },
4999
5052
  {
5000
- target: _chunkYEBXUUH3cjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
5053
+ target: _chunkJPRV36DTcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
5001
5054
  value: 0n,
5002
5055
  data: _viem.encodeFunctionData.call(void 0, {
5003
5056
  abi: COLLATERAL_OFFRAMP_ABI,
5004
5057
  functionName: "unwrap",
5005
- args: [_chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
5058
+ args: [_chunkJPRV36DTcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
5006
5059
  })
5007
5060
  }
5008
5061
  ];
@@ -5014,23 +5067,23 @@ var polymarketProvider = {
5014
5067
  id: PROVIDER_ID2,
5015
5068
  sourceLabel: "Polymarket",
5016
5069
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
5017
- const proxyWallet = await _chunkYEBXUUH3cjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5070
+ const proxyWallet = await _chunkJPRV36DTcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
5018
5071
  if (!proxyWallet) return null;
5019
- if (_optionalChain([signal, 'optionalAccess', _126 => _126.aborted])) return null;
5020
- const polygonClient = getPublicClient2(_chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID);
5072
+ if (_optionalChain([signal, 'optionalAccess', _153 => _153.aborted])) return null;
5073
+ const polygonClient = getPublicClient2(_chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID);
5021
5074
  if (!polygonClient) return null;
5022
- const balances = await _chunkYEBXUUH3cjs.readPolymarketBalances.call(void 0, {
5075
+ const balances = await _chunkJPRV36DTcjs.readPolymarketBalances.call(void 0, {
5023
5076
  publicClient: polygonClient,
5024
5077
  proxyWallet
5025
5078
  });
5026
- if (_optionalChain([signal, 'optionalAccess', _127 => _127.aborted])) return null;
5079
+ if (_optionalChain([signal, 'optionalAccess', _154 => _154.aborted])) return null;
5027
5080
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
5028
5081
  const walletKind = await detectPolymarketWalletKind({
5029
5082
  publicClient: polygonClient,
5030
5083
  proxyWallet,
5031
5084
  eoa
5032
5085
  });
5033
- if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
5086
+ if (_optionalChain([signal, 'optionalAccess', _155 => _155.aborted])) return null;
5034
5087
  if (!walletKind) return null;
5035
5088
  const assets = [];
5036
5089
  if (balances.pusd > 0n) {
@@ -5077,7 +5130,7 @@ var polymarketProvider = {
5077
5130
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
5078
5131
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
5079
5132
  }
5080
- const result = await _chunkYEBXUUH3cjs.executePolymarketSafeTransfer.call(void 0, {
5133
+ const result = await _chunkJPRV36DTcjs.executePolymarketSafeTransfer.call(void 0, {
5081
5134
  walletClient,
5082
5135
  publicClient,
5083
5136
  safeAddress: metadata.proxyWallet,
@@ -5096,17 +5149,17 @@ var polymarketProvider = {
5096
5149
  function buildAsset2(params) {
5097
5150
  const { tokenKind, proxyWallet, walletKind, balance } = params;
5098
5151
  const isPusd = tokenKind === "pusd";
5099
- const tokenAddress = isPusd ? _chunkYEBXUUH3cjs.POLYMARKET_PUSD_ADDRESS : _chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS;
5152
+ const tokenAddress = isPusd ? _chunkJPRV36DTcjs.POLYMARKET_PUSD_ADDRESS : _chunkJPRV36DTcjs.POLYMARKET_USDCE_ADDRESS;
5100
5153
  const symbol = isPusd ? "pUSD" : "USDC.e";
5101
5154
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
5102
5155
  const metadata = { proxyWallet, tokenKind, walletKind };
5103
5156
  return {
5104
5157
  id: `polymarket:${tokenKind}`,
5105
- chainId: _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID,
5158
+ chainId: _chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID,
5106
5159
  token: tokenAddress,
5107
5160
  symbol,
5108
5161
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
5109
- icon: isPusd ? _chunkYEBXUUH3cjs.POLYMARKET_ICON_URL : void 0,
5162
+ icon: isPusd ? _chunkJPRV36DTcjs.POLYMARKET_ICON_URL : void 0,
5110
5163
  decimals: 6,
5111
5164
  balance: balance.toString(),
5112
5165
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -5119,8 +5172,8 @@ function buildAsset2(params) {
5119
5172
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
5120
5173
  // arrives at the smart account, so it's also what the orchestrator
5121
5174
  // bridges from.
5122
- depositToken: _chunkYEBXUUH3cjs.POLYMARKET_USDCE_ADDRESS,
5123
- depositChainId: _chunkYEBXUUH3cjs.POLYMARKET_POLYGON_CHAIN_ID,
5175
+ depositToken: _chunkJPRV36DTcjs.POLYMARKET_USDCE_ADDRESS,
5176
+ depositChainId: _chunkJPRV36DTcjs.POLYMARKET_POLYGON_CHAIN_ID,
5124
5177
  providerMetadata: metadata
5125
5178
  };
5126
5179
  }
@@ -5141,7 +5194,7 @@ function getEnabledProviders(config) {
5141
5194
  function computeDappImportStatus(providerId, inputs) {
5142
5195
  const { owner, availability, availabilityOwner, setup } = inputs;
5143
5196
  if (!owner) return "needs-connect";
5144
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _129 => _129.toLowerCase, 'call', _130 => _130()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5197
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _156 => _156.toLowerCase, 'call', _157 => _157()]) === owner.toLowerCase() ? availability[providerId] : void 0;
5145
5198
  if (entry === "loading" || entry === void 0) return "loading";
5146
5199
  if (entry === "error") {
5147
5200
  return {
@@ -5667,7 +5720,7 @@ function applyAction(state, action) {
5667
5720
  totalUsd: null,
5668
5721
  // Keep any prior chains visible so the cluster does not flicker
5669
5722
  // empty across a refresh.
5670
- chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _131 => _131.chainIds]), () => ( []))
5723
+ chainIds: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _158 => _158.chainIds]), () => ( []))
5671
5724
  }
5672
5725
  }
5673
5726
  }
@@ -5832,7 +5885,7 @@ function applyAction(state, action) {
5832
5885
  flow: { ...state.flow, step: "processing" }
5833
5886
  };
5834
5887
  case "processing/quote-loaded":
5835
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _132 => _132.processing, 'access', _133 => _133.txHash, 'optionalAccess', _134 => _134.toLowerCase, 'call', _135 => _135()]) !== action.txHash.toLowerCase()) {
5888
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _159 => _159.processing, 'access', _160 => _160.txHash, 'optionalAccess', _161 => _161.toLowerCase, 'call', _162 => _162()]) !== action.txHash.toLowerCase()) {
5836
5889
  return state;
5837
5890
  }
5838
5891
  return {
@@ -6398,11 +6451,11 @@ function DepositFlow({
6398
6451
  onError,
6399
6452
  debug
6400
6453
  }) {
6401
- const rpcUrls = _chunkPUJHXHRAcjs.useRpcUrls.call(void 0, );
6402
- const onStepChangeRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onStepChange);
6403
- const onEventRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onEvent);
6404
- const onLifecycleRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onLifecycle);
6405
- const onErrorRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onError);
6454
+ const rpcUrls = _chunkNPSC5R22cjs.useRpcUrls.call(void 0, );
6455
+ const onStepChangeRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onStepChange);
6456
+ const onEventRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onEvent);
6457
+ const onLifecycleRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onLifecycle);
6458
+ const onErrorRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onError);
6406
6459
  const storeApi = useDepositStoreApi();
6407
6460
  const flowSlice = useDepositStore((s) => s.flow);
6408
6461
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -6419,13 +6472,13 @@ function DepositFlow({
6419
6472
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
6420
6473
  const logFlow = _react.useCallback.call(void 0,
6421
6474
  (message, data) => {
6422
- _chunkPUJHXHRAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
6475
+ _chunkNPSC5R22cjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
6423
6476
  },
6424
6477
  [debug]
6425
6478
  );
6426
6479
  const logFlowError = _react.useCallback.call(void 0,
6427
6480
  (message, error, data) => {
6428
- _chunkPUJHXHRAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
6481
+ _chunkNPSC5R22cjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
6429
6482
  },
6430
6483
  [debug]
6431
6484
  );
@@ -6449,12 +6502,12 @@ function DepositFlow({
6449
6502
  };
6450
6503
  }, [enableSwappedPreconnect]);
6451
6504
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
6452
- if (!_optionalChain([walletClientProp, 'optionalAccess', _136 => _136.switchChain])) return void 0;
6505
+ if (!_optionalChain([walletClientProp, 'optionalAccess', _163 => _163.switchChain])) return void 0;
6453
6506
  return async (chainId) => {
6454
- await _optionalChain([walletClientProp, 'access', _137 => _137.switchChain, 'optionalCall', _138 => _138({ id: chainId })]);
6507
+ await _optionalChain([walletClientProp, 'access', _164 => _164.switchChain, 'optionalCall', _165 => _165({ id: chainId })]);
6455
6508
  };
6456
6509
  }, [walletClientProp]);
6457
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _139 => _139.account, 'optionalAccess', _140 => _140.address]), () => ( null));
6510
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _166 => _166.account, 'optionalAccess', _167 => _167.address]), () => ( null));
6458
6511
  const walletOptions = _react.useMemo.call(void 0, () => {
6459
6512
  const options = [];
6460
6513
  const seen = /* @__PURE__ */ new Set();
@@ -6468,7 +6521,7 @@ function DepositFlow({
6468
6521
  });
6469
6522
  seen.add(id);
6470
6523
  }
6471
- if (_optionalChain([reownWallet, 'optionalAccess', _141 => _141.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress) {
6524
+ if (_optionalChain([reownWallet, 'optionalAccess', _168 => _168.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress) {
6472
6525
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
6473
6526
  if (!seen.has(id)) {
6474
6527
  options.push({
@@ -6480,7 +6533,7 @@ function DepositFlow({
6480
6533
  });
6481
6534
  seen.add(id);
6482
6535
  }
6483
- } else if (_optionalChain([reownWallet, 'optionalAccess', _142 => _142.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
6536
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _169 => _169.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
6484
6537
  const id = `evm:${reownWallet.address.toLowerCase()}`;
6485
6538
  if (!seen.has(id)) {
6486
6539
  options.push({
@@ -6496,14 +6549,14 @@ function DepositFlow({
6496
6549
  return options;
6497
6550
  }, [
6498
6551
  connectedWalletAddress,
6499
- _optionalChain([reownWallet, 'optionalAccess', _143 => _143.address]),
6500
- _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]),
6501
- _optionalChain([reownWallet, 'optionalAccess', _145 => _145.walletClient]),
6502
- _optionalChain([reownWallet, 'optionalAccess', _146 => _146.publicClient]),
6503
- _optionalChain([reownWallet, 'optionalAccess', _147 => _147.icon]),
6504
- _optionalChain([reownWallet, 'optionalAccess', _148 => _148.isSolana]),
6505
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.solanaAddress]),
6506
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.caipAddress])
6552
+ _optionalChain([reownWallet, 'optionalAccess', _170 => _170.address]),
6553
+ _optionalChain([reownWallet, 'optionalAccess', _171 => _171.isConnected]),
6554
+ _optionalChain([reownWallet, 'optionalAccess', _172 => _172.walletClient]),
6555
+ _optionalChain([reownWallet, 'optionalAccess', _173 => _173.publicClient]),
6556
+ _optionalChain([reownWallet, 'optionalAccess', _174 => _174.icon]),
6557
+ _optionalChain([reownWallet, 'optionalAccess', _175 => _175.isSolana]),
6558
+ _optionalChain([reownWallet, 'optionalAccess', _176 => _176.solanaAddress]),
6559
+ _optionalChain([reownWallet, 'optionalAccess', _177 => _177.caipAddress])
6507
6560
  ]);
6508
6561
  const offeredFiatMethods = _react.useMemo.call(void 0,
6509
6562
  () => fiatMethods ? FIAT_ONRAMP_METHODS.filter((m) => fiatMethods[m.method]) : FIAT_ONRAMP_METHODS,
@@ -6523,11 +6576,11 @@ function DepositFlow({
6523
6576
  hasEnabledAssetMigration
6524
6577
  ].filter(Boolean).length;
6525
6578
  const canAutoLock = Boolean(
6526
- enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _151 => _151.account]) && !reownWallet && enabledFeatureCount === 1
6579
+ enableWallet && _optionalChain([walletClientProp, 'optionalAccess', _178 => _178.account]) && !reownWallet && enabledFeatureCount === 1
6527
6580
  );
6528
6581
  const hasWalletOptions = enableWallet && walletOptions.length > 0;
6529
6582
  const hasReownSession = Boolean(
6530
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _153 => _153.address])
6583
+ _optionalChain([reownWallet, 'optionalAccess', _179 => _179.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _180 => _180.address])
6531
6584
  );
6532
6585
  const isDappImportWalletHydrating = Boolean(
6533
6586
  hasWalletClientProp && walletClientProp === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -6547,9 +6600,10 @@ function DepositFlow({
6547
6600
  isConnectSelectionConfirmed,
6548
6601
  selectedWalletId
6549
6602
  ]);
6550
- const setupChainId = typeof targetChain === "number" && !_chunkH577RJN5cjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
6551
- const targetSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6552
- const isTargetStablecoin = _chunkH577RJN5cjs.isStablecoinSymbol.call(void 0, targetSymbol);
6603
+ const setupChainId = typeof targetChain === "number" && !_chunkTENL4H64cjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
6604
+ const targetChainId = _chunkTENL4H64cjs.targetChainToChainId.call(void 0, targetChain);
6605
+ const targetSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
6606
+ const isTargetStablecoin = _chunkTENL4H64cjs.isStablecoinSymbol.call(void 0, targetSymbol);
6553
6607
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
6554
6608
  _react.useEffect.call(void 0, () => {
6555
6609
  targetMarketPriceRef.current = null;
@@ -6557,8 +6611,8 @@ function DepositFlow({
6557
6611
  return;
6558
6612
  }
6559
6613
  let cancelled = false;
6560
- _chunkA42XAHIBcjs.fetchTokenPriceUsd.call(void 0, service, {
6561
- chainId: targetChain,
6614
+ _chunkHCQWFL3Acjs.fetchTokenPriceUsd.call(void 0, service, {
6615
+ chainId: targetChainId,
6562
6616
  address: targetToken,
6563
6617
  symbol: targetSymbol
6564
6618
  }).then((price) => {
@@ -6574,11 +6628,11 @@ function DepositFlow({
6574
6628
  return null;
6575
6629
  }
6576
6630
  if (canAutoLock) {
6577
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _154 => _154.chain, 'optionalAccess', _155 => _155.id]), () => ( setupChainId));
6631
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _181 => _181.chain, 'optionalAccess', _182 => _182.id]), () => ( setupChainId));
6578
6632
  return {
6579
6633
  ownerAddress: walletClientProp.account.address,
6580
6634
  walletClient: walletClientProp,
6581
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6635
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkNPSC5R22cjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6582
6636
  switchChain: dappSwitchChain
6583
6637
  };
6584
6638
  }
@@ -6590,20 +6644,20 @@ function DepositFlow({
6590
6644
  if (selectedOption.kind === "solana") {
6591
6645
  return null;
6592
6646
  }
6593
- if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _156 => _156.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6594
- const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
6647
+ if (selectedOption.kind === "connected" && _optionalChain([walletClientProp, 'optionalAccess', _183 => _183.account]) && selectedOption.address && walletClientProp.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6648
+ const fallbackChainId = _nullishCoalesce(_optionalChain([walletClientProp, 'optionalAccess', _184 => _184.chain, 'optionalAccess', _185 => _185.id]), () => ( setupChainId));
6595
6649
  return {
6596
6650
  ownerAddress: walletClientProp.account.address,
6597
6651
  walletClient: walletClientProp,
6598
- publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6652
+ publicClient: _nullishCoalesce(publicClientProp, () => ( _chunkNPSC5R22cjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
6599
6653
  switchChain: dappSwitchChain
6600
6654
  };
6601
6655
  }
6602
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6656
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _186 => _186.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
6603
6657
  return {
6604
6658
  ownerAddress: reownWallet.address,
6605
6659
  walletClient: reownWallet.walletClient,
6606
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkA42XAHIBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
6660
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkNPSC5R22cjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
6607
6661
  switchChain: reownWallet.switchChain
6608
6662
  };
6609
6663
  }
@@ -6656,35 +6710,35 @@ function DepositFlow({
6656
6710
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
6657
6711
  if (!selectedWalletId) return null;
6658
6712
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
6659
- if (_optionalChain([opt, 'optionalAccess', _160 => _160.kind]) === "external" && opt.address) {
6713
+ if (_optionalChain([opt, 'optionalAccess', _187 => _187.kind]) === "external" && opt.address) {
6660
6714
  return opt.address;
6661
6715
  }
6662
- if (_optionalChain([opt, 'optionalAccess', _161 => _161.kind]) === "connected" && opt.address) {
6716
+ if (_optionalChain([opt, 'optionalAccess', _188 => _188.kind]) === "connected" && opt.address) {
6663
6717
  return opt.address;
6664
6718
  }
6665
6719
  return null;
6666
6720
  }, [selectedWalletId, walletOptions]);
6667
6721
  const dappImportOwner = _react.useMemo.call(void 0, () => {
6668
6722
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
6669
- if (_optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && reownWallet.isConnected) {
6723
+ if (_optionalChain([reownWallet, 'optionalAccess', _189 => _189.address]) && reownWallet.isConnected) {
6670
6724
  return reownWallet.address;
6671
6725
  }
6672
6726
  if (connectedWalletAddress) return connectedWalletAddress;
6673
6727
  return null;
6674
6728
  }, [
6675
6729
  selectedEvmWalletOwner,
6676
- _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]),
6677
- _optionalChain([reownWallet, 'optionalAccess', _164 => _164.isConnected]),
6730
+ _optionalChain([reownWallet, 'optionalAccess', _190 => _190.address]),
6731
+ _optionalChain([reownWallet, 'optionalAccess', _191 => _191.isConnected]),
6678
6732
  connectedWalletAddress
6679
6733
  ]);
6680
6734
  const activeOwner = _react.useMemo.call(void 0,
6681
6735
  () => resolveOwnerForMode(flowMode, {
6682
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _165 => _165.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
6736
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _192 => _192.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
6683
6737
  dappImportOwner
6684
6738
  }),
6685
6739
  [
6686
6740
  flowMode,
6687
- _optionalChain([signerContext, 'optionalAccess', _166 => _166.ownerAddress]),
6741
+ _optionalChain([signerContext, 'optionalAccess', _193 => _193.ownerAddress]),
6688
6742
  canAutoLock,
6689
6743
  connectedWalletAddress,
6690
6744
  selectedEvmWalletOwner,
@@ -6701,7 +6755,7 @@ function DepositFlow({
6701
6755
  ].join(":");
6702
6756
  if (lastSmartAccountLifecycleKeyRef.current === lifecycleKey) return;
6703
6757
  lastSmartAccountLifecycleKeyRef.current = lifecycleKey;
6704
- _optionalChain([onLifecycleRef, 'access', _167 => _167.current, 'optionalCall', _168 => _168({
6758
+ _optionalChain([onLifecycleRef, 'access', _194 => _194.current, 'optionalCall', _195 => _195({
6705
6759
  type: "smart-account-changed",
6706
6760
  evm: activeEntry.smartAccount,
6707
6761
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
@@ -6729,7 +6783,7 @@ function DepositFlow({
6729
6783
  return;
6730
6784
  }
6731
6785
  lastConnectedLifecycleKeyRef.current = lifecycleKey;
6732
- _optionalChain([onLifecycleRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170({
6786
+ _optionalChain([onLifecycleRef, 'access', _196 => _196.current, 'optionalCall', _197 => _197({
6733
6787
  type: "connected",
6734
6788
  address: activeOwner,
6735
6789
  smartAccount: activeEntry.smartAccount
@@ -6774,7 +6828,7 @@ function DepositFlow({
6774
6828
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
6775
6829
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
6776
6830
  _react.useEffect.call(void 0, () => {
6777
- _optionalChain([onStepChangeRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172(currentBackHandler, currentScreen)]);
6831
+ _optionalChain([onStepChangeRef, 'access', _198 => _198.current, 'optionalCall', _199 => _199(currentBackHandler, currentScreen)]);
6778
6832
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
6779
6833
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
6780
6834
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -6784,7 +6838,7 @@ function DepositFlow({
6784
6838
  modalContentElRef.current = mc;
6785
6839
  const ro = new ResizeObserver((entries) => {
6786
6840
  for (const entry of entries) {
6787
- const border = _optionalChain([entry, 'access', _173 => _173.borderBoxSize, 'optionalAccess', _174 => _174[0], 'optionalAccess', _175 => _175.blockSize]);
6841
+ const border = _optionalChain([entry, 'access', _200 => _200.borderBoxSize, 'optionalAccess', _201 => _201[0], 'optionalAccess', _202 => _202.blockSize]);
6788
6842
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
6789
6843
  }
6790
6844
  });
@@ -6825,23 +6879,23 @@ function DepositFlow({
6825
6879
  }
6826
6880
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
6827
6881
  if (effectiveStep.type === "select-asset") {
6828
- _optionalChain([onEventRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177({
6882
+ _optionalChain([onEventRef, 'access', _203 => _203.current, 'optionalCall', _204 => _204({
6829
6883
  type: "deposit_modal_connected_wallet_select_source_open",
6830
6884
  total_balance_in_external_wallet: totalBalanceUsd,
6831
6885
  pred_balance: totalBalanceUsd
6832
6886
  })]);
6833
6887
  } else if (effectiveStep.type === "deposit-address") {
6834
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
6835
- const tokenSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6836
- _optionalChain([onEventRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
6888
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId);
6889
+ const tokenSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
6890
+ _optionalChain([onEventRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({
6837
6891
  type: "deposit_modal_transfer_crypto_open",
6838
6892
  default_chain: chainName,
6839
6893
  default_token: tokenSymbol,
6840
6894
  pred_balance: totalBalanceUsd
6841
6895
  })]);
6842
6896
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6843
- const receiveSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6844
- _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
6897
+ const receiveSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
6898
+ _optionalChain([onEventRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
6845
6899
  type: "deposit_modal_connected_wallet_enter_value_open",
6846
6900
  send_token: stepSendToken,
6847
6901
  receive_token: receiveSymbol,
@@ -6874,7 +6928,7 @@ function DepositFlow({
6874
6928
  targetToken
6875
6929
  ]);
6876
6930
  _react.useEffect.call(void 0, () => {
6877
- _optionalChain([onLifecycleRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
6931
+ _optionalChain([onLifecycleRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210({
6878
6932
  type: "balance-changed",
6879
6933
  totalUsd: totalBalanceUsd
6880
6934
  })]);
@@ -6890,7 +6944,7 @@ function DepositFlow({
6890
6944
  const handleConfirmWallet = _react.useCallback.call(void 0,
6891
6945
  (walletId) => {
6892
6946
  const selectedOption = walletOptions.find((o) => o.id === walletId);
6893
- const mode = _optionalChain([selectedOption, 'optionalAccess', _184 => _184.kind]) === "solana" ? "solana-wallet" : "wallet";
6947
+ const mode = _optionalChain([selectedOption, 'optionalAccess', _211 => _211.kind]) === "solana" ? "solana-wallet" : "wallet";
6894
6948
  storeApi.dispatch({
6895
6949
  type: "connect/wallet-confirmed",
6896
6950
  walletId,
@@ -6900,7 +6954,7 @@ function DepositFlow({
6900
6954
  [walletOptions, storeApi]
6901
6955
  );
6902
6956
  const isSolanaWalletConnected = Boolean(
6903
- _optionalChain([reownWallet, 'optionalAccess', _185 => _185.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _186 => _186.isSolana])
6957
+ _optionalChain([reownWallet, 'optionalAccess', _212 => _212.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _213 => _213.isSolana])
6904
6958
  );
6905
6959
  const assetMigrationsKey = assetMigrations ? Object.keys(assetMigrations).filter((k) => assetMigrations[k]).sort().join(",") : "";
6906
6960
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -6917,7 +6971,7 @@ function DepositFlow({
6917
6971
  const owner = dappImportOwner;
6918
6972
  if (owner) {
6919
6973
  const wallet = walletOptions.find(
6920
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _187 => _187.toLowerCase, 'call', _188 => _188()]) === owner.toLowerCase()
6974
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _214 => _214.toLowerCase, 'call', _215 => _215()]) === owner.toLowerCase()
6921
6975
  );
6922
6976
  if (wallet) {
6923
6977
  storeApi.dispatch({
@@ -6958,7 +7012,7 @@ function DepositFlow({
6958
7012
  eoa: dappImportOwner,
6959
7013
  getPublicClient: (chainId) => {
6960
7014
  try {
6961
- return _chunkA42XAHIBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7015
+ return _chunkNPSC5R22cjs.getPublicClient.call(void 0, chainId, rpcUrls);
6962
7016
  } catch (e33) {
6963
7017
  return null;
6964
7018
  }
@@ -7051,7 +7105,7 @@ function DepositFlow({
7051
7105
  }, [activeDappImportProviderId, enabledDappImportProviders]);
7052
7106
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
7053
7107
  if (!activeDappImportProviderId) return null;
7054
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _189 => _189.toLowerCase, 'call', _190 => _190()]) !== dappImportOwner.toLowerCase()) {
7108
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _216 => _216.toLowerCase, 'call', _217 => _217()]) !== dappImportOwner.toLowerCase()) {
7055
7109
  return null;
7056
7110
  }
7057
7111
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -7092,7 +7146,7 @@ function DepositFlow({
7092
7146
  setup: setupSlice
7093
7147
  });
7094
7148
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
7095
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === dappImportOwner.toLowerCase()
7149
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _218 => _218.toLowerCase, 'call', _219 => _219()]) === dappImportOwner.toLowerCase()
7096
7150
  ), () => ( null)) : null;
7097
7151
  const outcome = resolveBootOutcome({
7098
7152
  status,
@@ -7134,7 +7188,7 @@ function DepositFlow({
7134
7188
  if (dappImportOwner) {
7135
7189
  const plan = bootRetryPlan({
7136
7190
  setupStatus: snapshot.setup.status,
7137
- availabilityEntry: _optionalChain([snapshot, 'access', _193 => _193.dappImport, 'access', _194 => _194.availabilityOwner, 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
7191
+ availabilityEntry: _optionalChain([snapshot, 'access', _220 => _220.dappImport, 'access', _221 => _221.availabilityOwner, 'optionalAccess', _222 => _222.toLowerCase, 'call', _223 => _223()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
7138
7192
  });
7139
7193
  if (plan.restartSetup) {
7140
7194
  storeApi.dispatch({ type: "setup/retry-requested" });
@@ -7183,7 +7237,7 @@ function DepositFlow({
7183
7237
  acceptedExchangeFeeBps: disclosedFeeBps
7184
7238
  });
7185
7239
  } catch (error) {
7186
- if (error instanceof _chunkPUJHXHRAcjs.SwappedConnectFeeChangedError) {
7240
+ if (error instanceof _chunkNPSC5R22cjs.SwappedConnectFeeChangedError) {
7187
7241
  return error.exchangeFeeBps;
7188
7242
  }
7189
7243
  throw error;
@@ -7191,7 +7245,7 @@ function DepositFlow({
7191
7245
  entry = { smartAccount: owner, response };
7192
7246
  }
7193
7247
  const currentAccount = storeApi.getState().setup.smartAccount;
7194
- if (_optionalChain([currentAccount, 'optionalAccess', _197 => _197.toLowerCase, 'call', _198 => _198()]) !== owner) {
7248
+ if (_optionalChain([currentAccount, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) !== owner) {
7195
7249
  swappedConnectUrlRef.current.delete(key);
7196
7250
  throw new Error("Deposit account changed. Select your exchange again.");
7197
7251
  }
@@ -7222,7 +7276,7 @@ function DepositFlow({
7222
7276
  );
7223
7277
  }
7224
7278
  swappedConnectUrlRef.current.delete(key);
7225
- const response = _optionalChain([entry, 'optionalAccess', _199 => _199.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
7279
+ const response = _optionalChain([entry, 'optionalAccess', _226 => _226.smartAccount]) === smartAccount.toLowerCase() ? entry.response : await service.getSwappedConnectUrl({
7226
7280
  smartAccount,
7227
7281
  connection,
7228
7282
  acceptedExchangeFeeBps: expectedFeeBps
@@ -7380,7 +7434,7 @@ function DepositFlow({
7380
7434
  const handleSelectDisplayedFiatMethod = _react.useCallback.call(void 0,
7381
7435
  (method) => {
7382
7436
  if (!displayedFiatSource) return;
7383
- _optionalChain([onEventRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
7437
+ _optionalChain([onEventRef, 'access', _227 => _227.current, 'optionalCall', _228 => _228({
7384
7438
  type: "deposit_modal_fiat_method_click",
7385
7439
  country: displayedFiatCountry,
7386
7440
  payment_method: method,
@@ -7403,7 +7457,7 @@ function DepositFlow({
7403
7457
  [displayedFiatSource, handlePrefetchFiatMethod]
7404
7458
  );
7405
7459
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
7406
- _optionalChain([onLifecycleRef, 'access', _202 => _202.current, 'optionalCall', _203 => _203({
7460
+ _optionalChain([onLifecycleRef, 'access', _229 => _229.current, 'optionalCall', _230 => _230({
7407
7461
  type: "smart-account-changed",
7408
7462
  evm: null,
7409
7463
  solana: null
@@ -7434,17 +7488,17 @@ function DepositFlow({
7434
7488
  forceRegister
7435
7489
  ]
7436
7490
  );
7437
- const desiredSetupRequestKey = _chunkA42XAHIBcjs.computeRequestKey.call(void 0, setupInput);
7491
+ const desiredSetupRequestKey = _chunkHCQWFL3Acjs.computeRequestKey.call(void 0, setupInput);
7438
7492
  const setupReady = setupSlice.status === "ready" && setupSlice.requestKey === desiredSetupRequestKey;
7439
7493
  _react.useEffect.call(void 0, () => {
7440
7494
  void (async () => {
7441
- const requestKey = _chunkA42XAHIBcjs.computeRequestKey.call(void 0, setupInput);
7442
- const cacheKey = _chunkA42XAHIBcjs.computeCacheKey.call(void 0, setupInput);
7443
- const cacheable = _chunkA42XAHIBcjs.computeIsCacheable.call(void 0, setupInput);
7495
+ const requestKey = _chunkHCQWFL3Acjs.computeRequestKey.call(void 0, setupInput);
7496
+ const cacheKey = _chunkHCQWFL3Acjs.computeCacheKey.call(void 0, setupInput);
7497
+ const cacheable = _chunkHCQWFL3Acjs.computeIsCacheable.call(void 0, setupInput);
7444
7498
  if (storeApi.getState().setup.requestKey === requestKey) {
7445
7499
  return;
7446
7500
  }
7447
- const dedupedResult = _chunkA42XAHIBcjs.readDedupedAccountSetupResult.call(void 0, requestKey);
7501
+ const dedupedResult = _chunkHCQWFL3Acjs.readDedupedAccountSetupResult.call(void 0, requestKey);
7448
7502
  if (dedupedResult) {
7449
7503
  storeApi.dispatch({
7450
7504
  type: "setup/started",
@@ -7470,7 +7524,7 @@ function DepositFlow({
7470
7524
  cacheable
7471
7525
  });
7472
7526
  try {
7473
- const result = await _chunkA42XAHIBcjs.runAccountSetupDeduped.call(void 0,
7527
+ const result = await _chunkHCQWFL3Acjs.runAccountSetupDeduped.call(void 0,
7474
7528
  setupInput,
7475
7529
  { service, debug },
7476
7530
  requestKey
@@ -7485,7 +7539,7 @@ function DepositFlow({
7485
7539
  }
7486
7540
  });
7487
7541
  } catch (error) {
7488
- const message = error instanceof _chunkA42XAHIBcjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
7542
+ const message = error instanceof _chunkHCQWFL3Acjs.SetupError ? error.message : "Deposit service is temporarily unavailable. Please try again shortly.";
7489
7543
  storeApi.dispatch({
7490
7544
  type: "setup/failed",
7491
7545
  requestKey,
@@ -7517,11 +7571,11 @@ function DepositFlow({
7517
7571
  return;
7518
7572
  }
7519
7573
  storeApi.dispatch({ type: "portfolio/loading", network, address });
7520
- const requestId = _optionalChain([readPortfolioEntry, 'call', _204 => _204(
7574
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _231 => _231(
7521
7575
  storeApi.getState().portfolio,
7522
7576
  network,
7523
7577
  address
7524
- ), 'optionalAccess', _205 => _205.requestId]);
7578
+ ), 'optionalAccess', _232 => _232.requestId]);
7525
7579
  if (requestId === void 0) return;
7526
7580
  void (async () => {
7527
7581
  try {
@@ -7534,7 +7588,7 @@ function DepositFlow({
7534
7588
  address,
7535
7589
  requestId,
7536
7590
  totalUsd: portfolio.totalUsd,
7537
- chainIds: _chunkPUJHXHRAcjs.chainIdsByValue.call(void 0, portfolio.tokens)
7591
+ chainIds: _chunkNPSC5R22cjs.chainIdsByValue.call(void 0, portfolio.tokens)
7538
7592
  });
7539
7593
  } catch (e34) {
7540
7594
  storeApi.dispatch({
@@ -7554,7 +7608,7 @@ function DepositFlow({
7554
7608
  sourceChain: data.sourceChain,
7555
7609
  amount: data.amount
7556
7610
  });
7557
- _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({ type: "submitted", ...data })]);
7611
+ _optionalChain([onLifecycleRef, 'access', _233 => _233.current, 'optionalCall', _234 => _234({ type: "submitted", ...data })]);
7558
7612
  },
7559
7613
  [logFlow, onLifecycleRef]
7560
7614
  );
@@ -7573,8 +7627,8 @@ function DepositFlow({
7573
7627
  );
7574
7628
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
7575
7629
  (token, sourceAmount, inputAmountUsd) => {
7576
- const targetSym = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7577
- const isTargetStable = _chunkH577RJN5cjs.isStablecoinSymbol.call(void 0, targetSym);
7630
+ const targetSym = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
7631
+ const isTargetStable = _chunkTENL4H64cjs.isStablecoinSymbol.call(void 0, targetSym);
7578
7632
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
7579
7633
  logFlow("solana:amount:continue", {
7580
7634
  token: token.symbol,
@@ -7618,7 +7672,7 @@ function DepositFlow({
7618
7672
  sourceDecimals: tokenAtSubmit.decimals,
7619
7673
  inputAmountUsd: amountUsd
7620
7674
  });
7621
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
7675
+ _optionalChain([onLifecycleRef, 'access', _235 => _235.current, 'optionalCall', _236 => _236({
7622
7676
  type: "submitted",
7623
7677
  txHash,
7624
7678
  sourceChain: "solana",
@@ -7631,7 +7685,7 @@ function DepositFlow({
7631
7685
  );
7632
7686
  const handleAssetContinue = _react.useCallback.call(void 0,
7633
7687
  (asset) => {
7634
- _optionalChain([onEventRef, 'access', _210 => _210.current, 'optionalCall', _211 => _211({
7688
+ _optionalChain([onEventRef, 'access', _237 => _237.current, 'optionalCall', _238 => _238({
7635
7689
  type: "deposit_modal_connected_wallet_select_source_cta_click",
7636
7690
  total_balance_in_external_wallet: totalBalanceUsd,
7637
7691
  pred_balance: totalBalanceUsd,
@@ -7651,8 +7705,8 @@ function DepositFlow({
7651
7705
  (amount, targetAmount, balance) => {
7652
7706
  const entry = storeApi.getState().setup;
7653
7707
  if (entry.status !== "ready") return;
7654
- const targetSym = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7655
- const isTargetStable = _chunkH577RJN5cjs.isStablecoinSymbol.call(void 0, targetSym);
7708
+ const targetSym = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
7709
+ const isTargetStable = _chunkTENL4H64cjs.isStablecoinSymbol.call(void 0, targetSym);
7656
7710
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
7657
7711
  storeApi.dispatch({
7658
7712
  type: "amount/entered",
@@ -7685,8 +7739,8 @@ function DepositFlow({
7685
7739
  sourceChain: chainId,
7686
7740
  sourceToken: token,
7687
7741
  amount,
7688
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _212 => _212.symbol]),
7689
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _213 => _213.decimals]),
7742
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _239 => _239.symbol]),
7743
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _240 => _240.decimals]),
7690
7744
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
7691
7745
  directTransfer: routed.directTransfer,
7692
7746
  quote
@@ -7726,7 +7780,7 @@ function DepositFlow({
7726
7780
  swappedContext,
7727
7781
  initialEvent: info.initialEvent
7728
7782
  });
7729
- _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
7783
+ _optionalChain([onLifecycleRef, 'access', _241 => _241.current, 'optionalCall', _242 => _242({
7730
7784
  type: "submitted",
7731
7785
  txHash: info.txHash,
7732
7786
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -7754,12 +7808,12 @@ function DepositFlow({
7754
7808
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
7755
7809
  (txHash, sourceChain, amount) => {
7756
7810
  const depositAtSubmit = storeApi.getState().deposit;
7757
- _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
7811
+ _optionalChain([onLifecycleRef, 'access', _243 => _243.current, 'optionalCall', _244 => _244({
7758
7812
  type: "submitted",
7759
7813
  txHash,
7760
7814
  sourceChain,
7761
7815
  amount,
7762
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _218 => _218.selectedAsset, 'optionalAccess', _219 => _219.decimals]),
7816
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _245 => _245.selectedAsset, 'optionalAccess', _246 => _246.decimals]),
7763
7817
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
7764
7818
  })]);
7765
7819
  },
@@ -7768,7 +7822,7 @@ function DepositFlow({
7768
7822
  const handleDepositComplete = _react.useCallback.call(void 0,
7769
7823
  (txHash, destinationTxHash, context) => {
7770
7824
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
7771
- _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({
7825
+ _optionalChain([onLifecycleRef, 'access', _247 => _247.current, 'optionalCall', _248 => _248({
7772
7826
  type: "complete",
7773
7827
  txHash,
7774
7828
  destinationTxHash,
@@ -7780,14 +7834,14 @@ function DepositFlow({
7780
7834
  const handleDepositFailed = _react.useCallback.call(void 0,
7781
7835
  (txHash, error) => {
7782
7836
  logFlowError("deposit:failed", error, { txHash });
7783
- _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ type: "failed", txHash, error })]);
7837
+ _optionalChain([onLifecycleRef, 'access', _249 => _249.current, 'optionalCall', _250 => _250({ type: "failed", txHash, error })]);
7784
7838
  },
7785
7839
  [logFlowError, onLifecycleRef]
7786
7840
  );
7787
7841
  const handleError = _react.useCallback.call(void 0,
7788
7842
  (message, code) => {
7789
7843
  logFlowError("flow:error", message, { code });
7790
- _optionalChain([onErrorRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({ message, code })]);
7844
+ _optionalChain([onErrorRef, 'access', _251 => _251.current, 'optionalCall', _252 => _252({ message, code })]);
7791
7845
  },
7792
7846
  [logFlowError, onErrorRef]
7793
7847
  );
@@ -7836,9 +7890,9 @@ function DepositFlow({
7836
7890
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
7837
7891
  state,
7838
7892
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
7839
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _226 => _226.status]), () => ( "loading")),
7840
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _227 => _227.status]) === "ready" ? portfolioEntry.totalUsd : null,
7841
- balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _228 => _228.chainIds]), () => ( []))
7893
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _253 => _253.status]), () => ( "loading")),
7894
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _254 => _254.status]) === "ready" ? portfolioEntry.totalUsd : null,
7895
+ balanceChainIds: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _255 => _255.chainIds]), () => ( []))
7842
7896
  };
7843
7897
  });
7844
7898
  }, [enableWallet, walletOptions, setupSlice, portfolioSlice]);
@@ -7927,9 +7981,9 @@ function DepositFlow({
7927
7981
  onDepositComplete: handleDepositComplete,
7928
7982
  onDepositFailed: handleDepositFailed,
7929
7983
  onCopyAddress: () => {
7930
- const chainName = _chunkH577RJN5cjs.getChainName.call(void 0, targetChain);
7931
- const tokenSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7932
- _optionalChain([onEvent, 'optionalCall', _229 => _229({
7984
+ const chainName = _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId);
7985
+ const tokenSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
7986
+ _optionalChain([onEvent, 'optionalCall', _256 => _256({
7933
7987
  type: "deposit_modal_transfer_crypto_cta_click",
7934
7988
  default_chain: chainName,
7935
7989
  default_token: tokenSymbol,
@@ -7976,7 +8030,7 @@ function DepositFlow({
7976
8030
  }
7977
8031
  ),
7978
8032
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7979
- _chunkA42XAHIBcjs.ProcessingStep,
8033
+ _chunkHCQWFL3Acjs.ProcessingStep,
7980
8034
  {
7981
8035
  smartAccount: step.smartAccount,
7982
8036
  solanaDepositAddress: step.solanaDepositAddress,
@@ -8048,7 +8102,7 @@ function DepositFlow({
8048
8102
  }
8049
8103
  ),
8050
8104
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8051
- _chunkA42XAHIBcjs.ProcessingStep,
8105
+ _chunkHCQWFL3Acjs.ProcessingStep,
8052
8106
  {
8053
8107
  smartAccount: step.smartAccount,
8054
8108
  solanaDepositAddress: step.solanaDepositAddress,
@@ -8081,8 +8135,8 @@ function DepositFlow({
8081
8135
  );
8082
8136
  }
8083
8137
  if (isSolanaWalletMode) {
8084
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
8085
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
8138
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _257 => _257.solanaAddress]);
8139
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _258 => _258.solanaProvider]);
8086
8140
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
8087
8141
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8088
8142
  AccountPreparingSkeleton,
@@ -8114,8 +8168,8 @@ function DepositFlow({
8114
8168
  defaultAmount: effectiveStep.inputAmountUsd,
8115
8169
  uiConfig,
8116
8170
  targetChain,
8117
- targetChainName: _chunkH577RJN5cjs.getChainName.call(void 0, targetChain),
8118
- targetTokenSymbol: _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
8171
+ targetChainName: _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId),
8172
+ targetTokenSymbol: _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId),
8119
8173
  appBalanceUsd,
8120
8174
  onContinue: handleSolanaAmountContinue,
8121
8175
  debug
@@ -8136,7 +8190,7 @@ function DepositFlow({
8136
8190
  targetToken,
8137
8191
  service,
8138
8192
  solanaProvider,
8139
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
8193
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _259 => _259.solanaConnection]),
8140
8194
  uiConfig,
8141
8195
  onConfirm: handleSolanaConfirmed,
8142
8196
  onError: handleError,
@@ -8177,7 +8231,7 @@ function DepositFlow({
8177
8231
  ) })
8178
8232
  ] }) : null,
8179
8233
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8180
- _chunkA42XAHIBcjs.ProcessingStep,
8234
+ _chunkHCQWFL3Acjs.ProcessingStep,
8181
8235
  {
8182
8236
  smartAccount: effectiveStep.smartAccount,
8183
8237
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -8214,7 +8268,7 @@ function DepositFlow({
8214
8268
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8215
8269
  DappImportAssetSelectSkeleton,
8216
8270
  {
8217
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _233 => _233.sourceLabel]), () => ( "")),
8271
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _260 => _260.sourceLabel]), () => ( "")),
8218
8272
  error: dappImportBootError,
8219
8273
  onRetry: handleBootRetry
8220
8274
  }
@@ -8236,7 +8290,7 @@ function DepositFlow({
8236
8290
  rows: dappImportSelectRows,
8237
8291
  onRequestConnect: _nullishCoalesce(onConnect, () => ( onRequestConnect)),
8238
8292
  onSelect: (providerId) => {
8239
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _234 => _234.toLowerCase, 'call', _235 => _235()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
8293
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _261 => _261.toLowerCase, 'call', _262 => _262()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
8240
8294
  if (availabilityEntry === "error") {
8241
8295
  storeApi.dispatch({
8242
8296
  type: "dapp-import/availability-retry-requested"
@@ -8255,16 +8309,16 @@ function DepositFlow({
8255
8309
  }
8256
8310
  );
8257
8311
  }
8258
- if (!_optionalChain([signerContext, 'optionalAccess', _236 => _236.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _237 => _237.publicClient])) {
8312
+ if (!_optionalChain([signerContext, 'optionalAccess', _263 => _263.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _264 => _264.publicClient])) {
8259
8313
  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" }) }) }) }) });
8260
8314
  }
8261
8315
  const ownerAddress = signerContext.ownerAddress;
8262
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _238 => _238.walletClient, 'optionalAccess', _239 => _239.chain, 'optionalAccess', _240 => _240.id]), () => ( _optionalChain([signerContext, 'access', _241 => _241.publicClient, 'access', _242 => _242.chain, 'optionalAccess', _243 => _243.id]))), () => ( setupChainId));
8316
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _265 => _265.walletClient, 'optionalAccess', _266 => _266.chain, 'optionalAccess', _267 => _267.id]), () => ( _optionalChain([signerContext, 'access', _268 => _268.publicClient, 'access', _269 => _269.chain, 'optionalAccess', _270 => _270.id]))), () => ( setupChainId));
8263
8317
  const getReadClientForChain = (chainId) => {
8264
- if (_optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]) === chainId) {
8318
+ if (_optionalChain([signerContext, 'access', _271 => _271.publicClient, 'access', _272 => _272.chain, 'optionalAccess', _273 => _273.id]) === chainId) {
8265
8319
  return signerContext.publicClient;
8266
8320
  }
8267
- return _chunkA42XAHIBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
8321
+ return _chunkNPSC5R22cjs.getPublicClient.call(void 0, chainId, rpcUrls);
8268
8322
  };
8269
8323
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
8270
8324
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8293,9 +8347,9 @@ function DepositFlow({
8293
8347
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8294
8348
  DappImportAssetSelectStep,
8295
8349
  {
8296
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _247 => _247.assets, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
8350
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _274 => _274.assets, 'access', _275 => _275[0], 'optionalAccess', _276 => _276.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
8297
8351
  assets: activeDappImportAvailability.assets,
8298
- incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _250 => _250.incomplete, 'optionalAccess', _251 => _251.summary]),
8352
+ incompleteSummary: _optionalChain([activeDappImportAvailability, 'access', _277 => _277.incomplete, 'optionalAccess', _278 => _278.summary]),
8299
8353
  onSelect: handleDappImportAssetSelected
8300
8354
  }
8301
8355
  ),
@@ -8316,8 +8370,8 @@ function DepositFlow({
8316
8370
  service,
8317
8371
  onContinue: handleAmountContinue,
8318
8372
  onCtaClick: (ctaName) => {
8319
- const receiveSymbol = _chunkH577RJN5cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
8320
- _optionalChain([onEvent, 'optionalCall', _252 => _252({
8373
+ const receiveSymbol = _chunkTENL4H64cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChainId);
8374
+ _optionalChain([onEvent, 'optionalCall', _279 => _279({
8321
8375
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
8322
8376
  send_token: effectiveStep.asset.symbol,
8323
8377
  receive_token: receiveSymbol,
@@ -8375,7 +8429,7 @@ function DepositFlow({
8375
8429
  }
8376
8430
  ),
8377
8431
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8378
- _chunkA42XAHIBcjs.ProcessingStep,
8432
+ _chunkHCQWFL3Acjs.ProcessingStep,
8379
8433
  {
8380
8434
  smartAccount: effectiveStep.smartAccount,
8381
8435
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -8428,9 +8482,9 @@ function formatDate(iso) {
8428
8482
  function resolveChainId(value) {
8429
8483
  if (value === void 0 || value === null) return null;
8430
8484
  if (typeof value === "number") return value;
8431
- if (_chunkH577RJN5cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
8432
- if (_chunkH577RJN5cjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
8433
- const parsed = _chunkH577RJN5cjs.parseEvmChainId.call(void 0, value);
8485
+ if (_chunkTENL4H64cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
8486
+ if (_chunkTENL4H64cjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
8487
+ const parsed = _chunkTENL4H64cjs.parseEvmChainId.call(void 0, value);
8434
8488
  if (parsed !== null) return parsed;
8435
8489
  const num = Number(value);
8436
8490
  return Number.isFinite(num) ? num : null;
@@ -8439,7 +8493,7 @@ function resolveTokenSymbol(token, chainId) {
8439
8493
  if (!token) return "";
8440
8494
  if (chainId === "solana") {
8441
8495
  const normalized = token.toLowerCase();
8442
- const matched = _chunkH577RJN5cjs.SOLANA_TOKENS.find(
8496
+ const matched = _chunkTENL4H64cjs.SOLANA_TOKENS.find(
8443
8497
  (entry) => entry.mint.toLowerCase() === normalized
8444
8498
  );
8445
8499
  if (matched) return matched.symbol;
@@ -8448,8 +8502,8 @@ function resolveTokenSymbol(token, chainId) {
8448
8502
  }
8449
8503
  }
8450
8504
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
8451
- const evmChainId = chainId === "hypercore" ? _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID : chainId;
8452
- const sym = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, token, evmChainId);
8505
+ const evmChainId = chainId === "hypercore" ? _chunkTENL4H64cjs.HYPERCORE_CHAIN_ID : chainId;
8506
+ const sym = _chunkTENL4H64cjs.getTokenSymbol.call(void 0, token, evmChainId);
8453
8507
  if (sym !== "Token") return sym;
8454
8508
  }
8455
8509
  return shortenHash(token);
@@ -8460,7 +8514,7 @@ function formatAmount(rawAmount, token, chainId) {
8460
8514
  if (token && chainId !== null && chainId !== void 0) {
8461
8515
  if (chainId === "solana") {
8462
8516
  const normalized = token.toLowerCase();
8463
- const matched = _chunkH577RJN5cjs.SOLANA_TOKENS.find(
8517
+ const matched = _chunkTENL4H64cjs.SOLANA_TOKENS.find(
8464
8518
  (entry) => entry.mint.toLowerCase() === normalized
8465
8519
  );
8466
8520
  if (matched) {
@@ -8469,8 +8523,8 @@ function formatAmount(rawAmount, token, chainId) {
8469
8523
  decimals = 9;
8470
8524
  }
8471
8525
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
8472
- const evmChainId = chainId === "hypercore" ? _chunkH577RJN5cjs.HYPERCORE_CHAIN_ID : chainId;
8473
- decimals = _chunkH577RJN5cjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
8526
+ const evmChainId = chainId === "hypercore" ? _chunkTENL4H64cjs.HYPERCORE_CHAIN_ID : chainId;
8527
+ decimals = _chunkTENL4H64cjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
8474
8528
  }
8475
8529
  }
8476
8530
  try {
@@ -8488,7 +8542,7 @@ function formatAmount(rawAmount, token, chainId) {
8488
8542
  }
8489
8543
  function getTxExplorerUrl(txHash, chainId) {
8490
8544
  if (!chainId) return null;
8491
- const base2 = _chunkH577RJN5cjs.getExplorerUrl.call(void 0, chainId);
8545
+ const base2 = _chunkTENL4H64cjs.getExplorerUrl.call(void 0, chainId);
8492
8546
  if (!base2) return null;
8493
8547
  return `${base2}/tx/${txHash}`;
8494
8548
  }
@@ -8531,7 +8585,7 @@ function DepositHistoryPanel({
8531
8585
  );
8532
8586
  const visibleDeposits = _react.useMemo.call(void 0, () => {
8533
8587
  const sourceHashes = new Set(
8534
- deposits.map((d) => _optionalChain([d, 'access', _253 => _253.sourceTxHash, 'optionalAccess', _254 => _254.toLowerCase, 'call', _255 => _255()])).filter((h) => Boolean(h))
8588
+ deposits.map((d) => _optionalChain([d, 'access', _280 => _280.sourceTxHash, 'optionalAccess', _281 => _281.toLowerCase, 'call', _282 => _282()])).filter((h) => Boolean(h))
8535
8589
  );
8536
8590
  return deposits.filter(
8537
8591
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -8553,7 +8607,7 @@ function DepositHistoryPanel({
8553
8607
  className: "rs-modal-header-back",
8554
8608
  "aria-label": "Back",
8555
8609
  onClick: onClose,
8556
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronLeftIcon, {})
8610
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronLeftIcon, {})
8557
8611
  }
8558
8612
  ) }),
8559
8613
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8563,29 +8617,29 @@ function DepositHistoryPanel({
8563
8617
  className: "rs-modal-close",
8564
8618
  "aria-label": "Close",
8565
8619
  onClick: onCloseModal,
8566
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
8620
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CloseIcon, {})
8567
8621
  }
8568
8622
  ) })
8569
8623
  ] }),
8570
8624
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
8571
8625
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
8572
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}), title: "History" }),
8626
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HistoryIcon, {}), title: "History" }),
8573
8627
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}) }),
8628
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HistoryIcon, {}) }),
8575
8629
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8576
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.Spinner, { className: "rs-spinner--sm" }),
8630
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.Spinner, { className: "rs-spinner--sm" }),
8577
8631
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
8578
8632
  ] })
8579
8633
  ] }),
8580
8634
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.AlertTriangleIcon, {}) }),
8635
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.AlertTriangleIcon, {}) }),
8582
8636
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8583
8637
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
8584
8638
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
8585
8639
  ] })
8586
8640
  ] }),
8587
8641
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
8588
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {}) }),
8642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HistoryIcon, {}) }),
8589
8643
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
8590
8644
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
8591
8645
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -8605,7 +8659,7 @@ function DepositHistoryPanel({
8605
8659
  )
8606
8660
  ] })
8607
8661
  ] }),
8608
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.PoweredBy, {})
8662
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.PoweredBy, {})
8609
8663
  ] })
8610
8664
  ]
8611
8665
  }
@@ -8616,10 +8670,10 @@ function HistoryCard({ deposit }) {
8616
8670
  const status = normalizeStatus(deposit.status, deposit.isSpam);
8617
8671
  const sourceChainId = resolveChainId(deposit.chain);
8618
8672
  const targetChainId = resolveChainId(deposit.targetChain);
8619
- const sourceChainName = sourceChainId ? _chunkH577RJN5cjs.getChainName.call(void 0, sourceChainId) : null;
8620
- const targetChainName = targetChainId ? _chunkH577RJN5cjs.getChainName.call(void 0, targetChainId) : null;
8621
- const sourceChainIcon = sourceChainId ? _chunkH577RJN5cjs.getChainIcon.call(void 0, sourceChainId) : void 0;
8622
- const targetChainIcon = targetChainId ? _chunkH577RJN5cjs.getChainIcon.call(void 0, targetChainId) : void 0;
8673
+ const sourceChainName = sourceChainId ? _chunkTENL4H64cjs.getChainName.call(void 0, sourceChainId) : null;
8674
+ const targetChainName = targetChainId ? _chunkTENL4H64cjs.getChainName.call(void 0, targetChainId) : null;
8675
+ const sourceChainIcon = sourceChainId ? _chunkTENL4H64cjs.getChainIcon.call(void 0, sourceChainId) : void 0;
8676
+ const targetChainIcon = targetChainId ? _chunkTENL4H64cjs.getChainIcon.call(void 0, targetChainId) : void 0;
8623
8677
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
8624
8678
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
8625
8679
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
@@ -8641,8 +8695,8 @@ function HistoryCard({ deposit }) {
8641
8695
  children: [
8642
8696
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
8643
8697
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
8644
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
8645
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
8698
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
8699
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: sourceChainIcon }) })
8646
8700
  ] }),
8647
8701
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
8648
8702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-title", children: txTypeLabel }),
@@ -8658,14 +8712,14 @@ function HistoryCard({ deposit }) {
8658
8712
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
8659
8713
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
8660
8714
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
8661
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: sourceChainIcon }) })
8715
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: sourceChainIcon }) })
8662
8716
  ] })
8663
8717
  ] }),
8664
8718
  targetChainName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
8665
8719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
8666
8720
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
8667
8721
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
8668
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CdnIcon, { src: targetChainIcon }) })
8722
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CdnIcon, { src: targetChainIcon }) })
8669
8723
  ] })
8670
8724
  ] }),
8671
8725
  srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -8680,7 +8734,7 @@ function HistoryCard({ deposit }) {
8680
8734
  onClick: (e) => e.stopPropagation(),
8681
8735
  children: [
8682
8736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
8683
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ArrowUpRightIcon, {})
8737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ArrowUpRightIcon, {})
8684
8738
  ]
8685
8739
  }
8686
8740
  )
@@ -8695,7 +8749,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
8695
8749
  // src/DepositModal.tsx
8696
8750
 
8697
8751
  var ReownDepositInner = _react.lazy.call(void 0,
8698
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-S3DSFXTX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
8752
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-TXTLVZIQ.cjs"))).then((m) => ({ default: m.DepositModalReown }))
8699
8753
  );
8700
8754
  function sortByCreatedAtDesc(items) {
8701
8755
  return [...items].sort((a, b) => {
@@ -8709,8 +8763,8 @@ function hasSuppliedWalletClient(props) {
8709
8763
  return Object.prototype.hasOwnProperty.call(props, WALLET_CLIENT_PROP);
8710
8764
  }
8711
8765
  function DepositModal(props) {
8712
- _chunkA42XAHIBcjs.warnRemovedProps.call(void 0, "DepositModal", props);
8713
- _chunkPUJHXHRAcjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
8766
+ _chunkHCQWFL3Acjs.warnRemovedProps.call(void 0, "DepositModal", props);
8767
+ _chunkNPSC5R22cjs.checkBackendUrl.call(void 0, "DepositModal", props.backendUrl);
8714
8768
  const needsReown = !!props.reownAppId;
8715
8769
  const hasWalletClientProp = hasSuppliedWalletClient(props);
8716
8770
  if (needsReown) {
@@ -8772,13 +8826,13 @@ function DepositModalInner({
8772
8826
  debug
8773
8827
  }) {
8774
8828
  const modalRef = _react.useRef.call(void 0, null);
8775
- const onReadyRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onReady);
8829
+ const onReadyRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onReady);
8776
8830
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
8777
8831
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
8778
8832
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
8779
8833
  void 0
8780
8834
  );
8781
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _256 => _256.showHistoryButton]), () => ( false));
8835
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _283 => _283.showHistoryButton]), () => ( false));
8782
8836
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
8783
8837
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
8784
8838
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -8789,11 +8843,11 @@ function DepositModalInner({
8789
8843
  const cursorRef = _react.useRef.call(void 0, null);
8790
8844
  const historyStaleRef = _react.useRef.call(void 0, false);
8791
8845
  const historyLoadedRef = _react.useRef.call(void 0, false);
8792
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkH577RJN5cjs.getChainId.call(void 0, targetChainProp);
8793
- const sourceChain = sourceChainProp ? _chunkH577RJN5cjs.getChainId.call(void 0, sourceChainProp) : void 0;
8794
- const rpcUrls = _chunkPUJHXHRAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
8846
+ const targetChain = targetChainProp === "solana" || targetChainProp === _chunkTENL4H64cjs.HYPERCORE_SPOT_CAIP2 ? targetChainProp : _chunkTENL4H64cjs.getChainId.call(void 0, targetChainProp);
8847
+ const sourceChain = sourceChainProp ? _chunkTENL4H64cjs.getChainId.call(void 0, sourceChainProp) : void 0;
8848
+ const rpcUrls = _chunkNPSC5R22cjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
8795
8849
  const service = _react.useMemo.call(void 0,
8796
- () => _chunkPUJHXHRAcjs.createDepositService.call(void 0, backendUrl, {
8850
+ () => _chunkNPSC5R22cjs.createDepositService.call(void 0, backendUrl, {
8797
8851
  debug,
8798
8852
  debugScope: "service:deposit"
8799
8853
  }),
@@ -8827,12 +8881,12 @@ function DepositModalInner({
8827
8881
  }, [store, targetChain, targetToken]);
8828
8882
  _react.useEffect.call(void 0, () => {
8829
8883
  if (isOpen && modalRef.current) {
8830
- _chunkPUJHXHRAcjs.applyTheme.call(void 0, modalRef.current, theme);
8884
+ _chunkNPSC5R22cjs.applyTheme.call(void 0, modalRef.current, theme);
8831
8885
  }
8832
8886
  }, [isOpen, theme]);
8833
8887
  _react.useEffect.call(void 0, () => {
8834
8888
  if (isOpen) {
8835
- _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
8889
+ _optionalChain([onReadyRef, 'access', _284 => _284.current, 'optionalCall', _285 => _285()]);
8836
8890
  }
8837
8891
  }, [isOpen, onReadyRef]);
8838
8892
  const handleStepChange = _react.useCallback.call(void 0,
@@ -8908,10 +8962,10 @@ function DepositModalInner({
8908
8962
  fetchHistory("initial");
8909
8963
  }
8910
8964
  }, [historyOpen, fetchHistory]);
8911
- const onLifecycleRef = _chunkPUJHXHRAcjs.useLatestRef.call(void 0, onLifecycle);
8965
+ const onLifecycleRef = _chunkNPSC5R22cjs.useLatestRef.call(void 0, onLifecycle);
8912
8966
  const handleLifecycle = _react.useCallback.call(void 0,
8913
8967
  (event) => {
8914
- _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
8968
+ _optionalChain([onLifecycleRef, 'access', _286 => _286.current, 'optionalCall', _287 => _287(event)]);
8915
8969
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
8916
8970
  historyStaleRef.current = true;
8917
8971
  }
@@ -8940,12 +8994,12 @@ function DepositModalInner({
8940
8994
  store.dispatch({ type: "flow/reset" });
8941
8995
  }
8942
8996
  }, [isOpen, store]);
8943
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
8997
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _288 => _288.showBackButton]), () => ( true));
8944
8998
  const canGoBack = backHandler !== void 0;
8945
8999
  const hideHeaderChrome = swappedImmersive;
8946
9000
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8947
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8948
- _chunkPUJHXHRAcjs.Modal,
9001
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9002
+ _chunkNPSC5R22cjs.Modal,
8949
9003
  {
8950
9004
  isOpen,
8951
9005
  onClose,
@@ -8961,7 +9015,7 @@ function DepositModalInner({
8961
9015
  className: "rs-modal-header-back",
8962
9016
  "aria-label": "Go back",
8963
9017
  onClick: backHandler,
8964
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.ChevronLeftIcon, {})
9018
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.ChevronLeftIcon, {})
8965
9019
  }
8966
9020
  ) }),
8967
9021
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8973,7 +9027,7 @@ function DepositModalInner({
8973
9027
  "aria-label": "Deposit history",
8974
9028
  onClick: handleHistoryOpen,
8975
9029
  disabled: !recipient,
8976
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.HistoryIcon, {})
9030
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.HistoryIcon, {})
8977
9031
  }
8978
9032
  ),
8979
9033
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8983,7 +9037,7 @@ function DepositModalInner({
8983
9037
  onClick: onClose,
8984
9038
  className: "rs-modal-close",
8985
9039
  "aria-label": "Close",
8986
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPUJHXHRAcjs.CloseIcon, {})
9040
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPSC5R22cjs.CloseIcon, {})
8987
9041
  }
8988
9042
  )
8989
9043
  ] })
@@ -9017,7 +9071,7 @@ function DepositModalInner({
9017
9071
  onDisconnect,
9018
9072
  onRequestConnect,
9019
9073
  uiConfig,
9020
- appFees: _optionalChain([clientSetup, 'optionalAccess', _262 => _262.appFees]),
9074
+ appFees: _optionalChain([clientSetup, 'optionalAccess', _289 => _289.appFees]),
9021
9075
  appFeesResolved: clientSetup !== null,
9022
9076
  onStepChange: handleStepChange,
9023
9077
  onSwappedImmersiveChange: setSwappedImmersive,
@@ -9043,7 +9097,7 @@ function DepositModalInner({
9043
9097
  )
9044
9098
  ] })
9045
9099
  }
9046
- ) }) });
9100
+ ) }) }) });
9047
9101
  }
9048
9102
 
9049
9103