@rhinestone/deposit-modal 0.0.0-dev-20260728142010 → 0.0.0-dev-20260728145716

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{DepositModalReown-QISHOPBZ.mjs → DepositModalReown-IA652WUO.mjs} +5 -5
  2. package/dist/{DepositModalReown-ZZ7TSKJU.cjs → DepositModalReown-YYZ2UG5D.cjs} +9 -9
  3. package/dist/{chunk-V6UFU6OM.mjs → chunk-47R2JLNO.mjs} +1 -1
  4. package/dist/{chunk-QMSHSRCV.cjs → chunk-665QDRDO.cjs} +2 -2
  5. package/dist/{chunk-F25IGLXY.cjs → chunk-6W5HNVH7.cjs} +55 -55
  6. package/dist/{chunk-HRQAQ6GG.cjs → chunk-AXGX5ZAB.cjs} +3 -3
  7. package/dist/{chunk-2ZEWWJNW.cjs → chunk-B5UJBLRX.cjs} +49 -49
  8. package/dist/{chunk-6UDMG6QC.cjs → chunk-BXYDVFAB.cjs} +60 -60
  9. package/dist/{chunk-KY5SOFFK.mjs → chunk-DVWIWSKY.mjs} +4 -4
  10. package/dist/{chunk-XLKPGHUE.mjs → chunk-HGYHHXIO.mjs} +1 -1
  11. package/dist/{chunk-A6SXAQWV.cjs → chunk-I2B66AEE.cjs} +1 -1
  12. package/dist/{chunk-SQZI47X2.cjs → chunk-ME4E66WE.cjs} +258 -258
  13. package/dist/{chunk-V3JVC44N.mjs → chunk-OA4BOJYX.mjs} +1 -1
  14. package/dist/{chunk-3YW7LB6V.mjs → chunk-OGT6I4MG.mjs} +2 -2
  15. package/dist/{chunk-XEBPBDON.mjs → chunk-OTFJPJZK.mjs} +1 -1
  16. package/dist/{chunk-K6IYTJ7K.mjs → chunk-WWC24RNC.mjs} +2 -2
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.mjs +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants.mjs +1 -1
  23. package/dist/deposit.cjs +6 -6
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +8 -8
  26. package/dist/index.mjs +7 -7
  27. package/dist/styles.css +54 -13
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-KY5SOFFK.mjs";
4
- import "./chunk-V3JVC44N.mjs";
5
- import "./chunk-V6UFU6OM.mjs";
3
+ } from "./chunk-DVWIWSKY.mjs";
4
+ import "./chunk-OA4BOJYX.mjs";
5
+ import "./chunk-47R2JLNO.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-XLKPGHUE.mjs";
10
- import "./chunk-XEBPBDON.mjs";
9
+ } from "./chunk-HGYHHXIO.mjs";
10
+ import "./chunk-OTFJPJZK.mjs";
11
11
  import "./chunk-YJP274QC.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkSQZI47X2cjs = require('./chunk-SQZI47X2.cjs');
4
- require('./chunk-6UDMG6QC.cjs');
5
- require('./chunk-HRQAQ6GG.cjs');
3
+ var _chunkME4E66WEcjs = require('./chunk-ME4E66WE.cjs');
4
+ require('./chunk-BXYDVFAB.cjs');
5
+ require('./chunk-AXGX5ZAB.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkQMSHSRCVcjs = require('./chunk-QMSHSRCV.cjs');
10
- require('./chunk-A6SXAQWV.cjs');
9
+ var _chunk665QDRDOcjs = require('./chunk-665QDRDO.cjs');
10
+ require('./chunk-I2B66AEE.cjs');
11
11
  require('./chunk-W3WWC4LD.cjs');
12
12
 
13
13
 
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
88
88
  const transports = {};
89
89
  for (const network of EVM_NETWORKS) {
90
90
  const id = Number(network.id);
91
- transports[id] = _viem.http.call(void 0, _chunkQMSHSRCVcjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunk665QDRDOcjs.rpcUrlFor.call(void 0, rpcUrls, id));
92
92
  }
93
93
  return transports;
94
94
  }
95
95
  function getEvmRpcFingerprint(rpcUrls) {
96
96
  return EVM_NETWORKS.map((network) => {
97
97
  const id = Number(network.id);
98
- return `${id}=${_nullishCoalesce(_chunkQMSHSRCVcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunk665QDRDOcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
99
99
  }).join("|");
100
100
  }
101
101
  var cachedAdapter = null;
@@ -189,7 +189,7 @@ function useReownWallet() {
189
189
  await switchChainAsync({ chainId });
190
190
  }
191
191
  } catch (err) {
192
- if (_chunkQMSHSRCVcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunk665QDRDOcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
193
193
  throw new Error(
194
194
  `Switch to ${_chunkEGB3NWMLcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
195
195
  );
@@ -223,7 +223,7 @@ function DepositModalWithReown(props) {
223
223
  reown.disconnect();
224
224
  }, [reown.disconnect]);
225
225
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
226
- _chunkSQZI47X2cjs.DepositModalInner,
226
+ _chunkME4E66WEcjs.DepositModalInner,
227
227
  {
228
228
  ...props,
229
229
  reownWallet: reownWithSolana,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CdnIcon,
3
3
  ChevronRightIcon
4
- } from "./chunk-XLKPGHUE.mjs";
4
+ } from "./chunk-HGYHHXIO.mjs";
5
5
 
6
6
  // src/components/ui/ListRow.tsx
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkA6SXAQWVcjs = require('./chunk-A6SXAQWV.cjs');
3
+ var _chunkI2B66AEEcjs = require('./chunk-I2B66AEE.cjs');
4
4
 
5
5
 
6
6
 
@@ -678,7 +678,7 @@ function isNativeAsset(asset) {
678
678
  // src/core/deposit-service.ts
679
679
  var SERVICE_HEADERS = {
680
680
  "Content-Type": "application/json",
681
- "x-deposit-modal-version": _chunkA6SXAQWVcjs.MODAL_VERSION
681
+ "x-deposit-modal-version": _chunkI2B66AEEcjs.MODAL_VERSION
682
682
  };
683
683
  function depositRowToEvent(row) {
684
684
  const status = row.status;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk6UDMG6QCcjs = require('./chunk-6UDMG6QC.cjs');
6
+ var _chunkBXYDVFABcjs = require('./chunk-BXYDVFAB.cjs');
7
7
 
8
8
 
9
9
 
@@ -32,7 +32,7 @@ var _chunk6UDMG6QCcjs = require('./chunk-6UDMG6QC.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkQMSHSRCVcjs = require('./chunk-QMSHSRCV.cjs');
35
+ var _chunk665QDRDOcjs = require('./chunk-665QDRDO.cjs');
36
36
 
37
37
 
38
38
 
@@ -256,7 +256,7 @@ function WithdrawFormStep({
256
256
  return;
257
257
  }
258
258
  try {
259
- const bal = _chunkQMSHSRCVcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
259
+ const bal = _chunk665QDRDOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
260
260
  address: asset.token,
261
261
  abi: _viem.erc20Abi,
262
262
  functionName: "balanceOf",
@@ -361,7 +361,7 @@ function WithdrawFormStep({
361
361
  await onSubmit(recipient, amount);
362
362
  } catch (err) {
363
363
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
364
- setError(_chunkQMSHSRCVcjs.formatUserError.call(void 0, raw));
364
+ setError(_chunk665QDRDOcjs.formatUserError.call(void 0, raw));
365
365
  } finally {
366
366
  setIsSubmitting(false);
367
367
  }
@@ -377,16 +377,16 @@ function WithdrawFormStep({
377
377
  if (isBalanceLoading) {
378
378
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
379
379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
380
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Spinner, { className: "rs-spinner--lg" }),
380
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.Spinner, { className: "rs-spinner--lg" }),
381
381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
382
382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
383
383
  ] }),
384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.PoweredBy, {})
385
385
  ] });
386
386
  }
387
387
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
388
388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
389
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
390
390
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
391
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
392
392
  "label",
@@ -446,7 +446,7 @@ function WithdrawFormStep({
446
446
  ) })
447
447
  ] }),
448
448
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
449
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkQMSHSRCVcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
449
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunk665QDRDOcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
450
450
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
451
451
  "Balance: ",
452
452
  formattedBalance,
@@ -477,7 +477,7 @@ function WithdrawFormStep({
477
477
  children: [
478
478
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
479
479
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
480
- _chunkQMSHSRCVcjs.CdnIcon,
480
+ _chunk665QDRDOcjs.CdnIcon,
481
481
  {
482
482
  src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain),
483
483
  alt: targetChainName,
@@ -487,7 +487,7 @@ function WithdrawFormStep({
487
487
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
488
488
  ] }),
489
489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
490
- _chunkQMSHSRCVcjs.ChevronDownIcon,
490
+ _chunk665QDRDOcjs.ChevronDownIcon,
491
491
  {
492
492
  className: "rs-withdraw-dropdown-arrow",
493
493
  style: {
@@ -509,7 +509,7 @@ function WithdrawFormStep({
509
509
  },
510
510
  children: [
511
511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
512
- _chunkQMSHSRCVcjs.CdnIcon,
512
+ _chunk665QDRDOcjs.CdnIcon,
513
513
  {
514
514
  src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, chain.id),
515
515
  alt: chain.name,
@@ -546,7 +546,7 @@ function WithdrawFormStep({
546
546
  children: [
547
547
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
548
548
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
549
- _chunkQMSHSRCVcjs.TokenIcon,
549
+ _chunk665QDRDOcjs.TokenIcon,
550
550
  {
551
551
  symbol: targetSymbol,
552
552
  className: "rs-withdraw-dropdown-icon"
@@ -555,7 +555,7 @@ function WithdrawFormStep({
555
555
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
556
556
  ] }),
557
557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
558
- _chunkQMSHSRCVcjs.ChevronDownIcon,
558
+ _chunk665QDRDOcjs.ChevronDownIcon,
559
559
  {
560
560
  className: "rs-withdraw-dropdown-arrow",
561
561
  style: {
@@ -577,7 +577,7 @@ function WithdrawFormStep({
577
577
  },
578
578
  children: [
579
579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
580
- _chunkQMSHSRCVcjs.TokenIcon,
580
+ _chunk665QDRDOcjs.TokenIcon,
581
581
  {
582
582
  symbol: option.symbol,
583
583
  className: "rs-withdraw-dropdown-icon"
@@ -593,10 +593,10 @@ function WithdrawFormStep({
593
593
  )
594
594
  ] })
595
595
  ] }),
596
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: error }),
597
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: registrationError }),
596
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.Callout, { variant: "error", children: error }),
597
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.Callout, { variant: "error", children: registrationError }),
598
598
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
599
- _chunkQMSHSRCVcjs.Button,
599
+ _chunk665QDRDOcjs.Button,
600
600
  {
601
601
  onClick: handleWithdraw,
602
602
  fullWidth: true,
@@ -606,7 +606,7 @@ function WithdrawFormStep({
606
606
  }
607
607
  )
608
608
  ] }),
609
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
609
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.PoweredBy, {})
610
610
  ] });
611
611
  }
612
612
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -640,16 +640,16 @@ function WithdrawReviewStep({
640
640
  const targetChainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
641
641
  const targetChainIcon = _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain);
642
642
  const amountNumber = Number(amount);
643
- const formattedSendAmount = _nullishCoalesce(_chunkQMSHSRCVcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
644
- const prices = _chunk6UDMG6QCcjs.useTokenPrices.call(void 0, service, [
643
+ const formattedSendAmount = _nullishCoalesce(_chunk665QDRDOcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
644
+ const prices = _chunkBXYDVFABcjs.useTokenPrices.call(void 0, service, [
645
645
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
646
646
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
647
647
  ]);
648
- const receiveDisplay = _nullishCoalesce(_chunkQMSHSRCVcjs.formatReceiveEstimate.call(void 0, {
648
+ const receiveDisplay = _nullishCoalesce(_chunk665QDRDOcjs.formatReceiveEstimate.call(void 0, {
649
649
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
650
650
  sourceSymbol,
651
651
  targetSymbol,
652
- sourceTrusted: _chunkQMSHSRCVcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
652
+ sourceTrusted: _chunk665QDRDOcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
653
653
  prices
654
654
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
655
655
  "\u2014"));
@@ -660,7 +660,7 @@ function WithdrawReviewStep({
660
660
  await onConfirm();
661
661
  } catch (err) {
662
662
  const raw = err instanceof Error ? err.message : "Withdraw failed";
663
- const message = _chunkQMSHSRCVcjs.formatUserError.call(void 0, raw);
663
+ const message = _chunk665QDRDOcjs.formatUserError.call(void 0, raw);
664
664
  setError(message);
665
665
  _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR")]);
666
666
  } finally {
@@ -671,9 +671,9 @@ function WithdrawReviewStep({
671
671
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
672
672
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
673
673
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
674
- _chunkQMSHSRCVcjs.BodyHeader,
674
+ _chunk665QDRDOcjs.BodyHeader,
675
675
  {
676
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CircleArrowOutUpLeftIcon, {}),
676
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CircleArrowOutUpLeftIcon, {}),
677
677
  title: "Review withdrawal"
678
678
  }
679
679
  ),
@@ -686,14 +686,14 @@ function WithdrawReviewStep({
686
686
  " ",
687
687
  sourceSymbol
688
688
  ] }),
689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.TokenIcon, { symbol: sourceSymbol }) })
689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.TokenIcon, { symbol: sourceSymbol }) })
690
690
  ] })
691
691
  ] }),
692
692
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
693
693
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
694
694
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
695
695
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
696
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CdnIcon, { src: sourceChainIcon }) })
696
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CdnIcon, { src: sourceChainIcon }) })
697
697
  ] })
698
698
  ] }),
699
699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -704,14 +704,14 @@ function WithdrawReviewStep({
704
704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
705
705
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
706
706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
707
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.TokenIcon, { symbol: targetSymbol }) })
707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.TokenIcon, { symbol: targetSymbol }) })
708
708
  ] })
709
709
  ] }),
710
710
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
711
711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
712
712
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
713
713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
714
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CdnIcon, { src: targetChainIcon }) })
714
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CdnIcon, { src: targetChainIcon }) })
715
715
  ] })
716
716
  ] }),
717
717
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -719,10 +719,10 @@ function WithdrawReviewStep({
719
719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
720
720
  ] })
721
721
  ] }),
722
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: error }),
723
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: registrationError }),
722
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.Callout, { variant: "error", children: error }),
723
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.Callout, { variant: "error", children: registrationError }),
724
724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
725
- _chunkQMSHSRCVcjs.Button,
725
+ _chunk665QDRDOcjs.Button,
726
726
  {
727
727
  onClick: handleConfirm,
728
728
  loading: isSubmitting,
@@ -733,7 +733,7 @@ function WithdrawReviewStep({
733
733
  }
734
734
  )
735
735
  ] }),
736
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
736
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.PoweredBy, {})
737
737
  ] });
738
738
  }
739
739
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -766,11 +766,11 @@ function WithdrawFlow({
766
766
  onError,
767
767
  debug
768
768
  }) {
769
- const rpcUrls = _chunkQMSHSRCVcjs.useRpcUrls.call(void 0, );
770
- const onStepChangeRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onStepChange);
771
- const onEventRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onEvent);
772
- const onLifecycleRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onLifecycle);
773
- const onErrorRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onError);
769
+ const rpcUrls = _chunk665QDRDOcjs.useRpcUrls.call(void 0, );
770
+ const onStepChangeRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onStepChange);
771
+ const onEventRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onEvent);
772
+ const onLifecycleRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onLifecycle);
773
+ const onErrorRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onError);
774
774
  const isFlowActiveRef = _react.useRef.call(void 0, true);
775
775
  const submitGenerationRef = _react.useRef.call(void 0, 0);
776
776
  _react.useEffect.call(void 0, () => {
@@ -781,13 +781,13 @@ function WithdrawFlow({
781
781
  }, []);
782
782
  const logFlow = _react.useCallback.call(void 0,
783
783
  (message, data) => {
784
- _chunkQMSHSRCVcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
784
+ _chunk665QDRDOcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
785
785
  },
786
786
  [debug]
787
787
  );
788
788
  const logFlowError = _react.useCallback.call(void 0,
789
789
  (message, error, data) => {
790
- _chunkQMSHSRCVcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
790
+ _chunk665QDRDOcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
791
791
  },
792
792
  [debug]
793
793
  );
@@ -811,7 +811,7 @@ function WithdrawFlow({
811
811
  const flowStep = useWithdrawStore((s) => s.step);
812
812
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
813
813
  const publicClient = _react.useMemo.call(void 0,
814
- () => _chunk6UDMG6QCcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
814
+ () => _chunkBXYDVFABcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
815
815
  [sourceChain, rpcUrls]
816
816
  );
817
817
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
@@ -839,7 +839,7 @@ function WithdrawFlow({
839
839
  targetToken,
840
840
  recipient: recipientForRegistration
841
841
  });
842
- const salt = _chunk6UDMG6QCcjs.deriveAccountSalt.call(void 0, {
842
+ const salt = _chunkBXYDVFABcjs.deriveAccountSalt.call(void 0, {
843
843
  recipient: recipientForRegistration,
844
844
  targetChain,
845
845
  targetToken
@@ -869,7 +869,7 @@ function WithdrawFlow({
869
869
  } catch (err) {
870
870
  if (cancelled) return;
871
871
  const raw = err instanceof Error ? err.message : "Registration failed";
872
- const message = _chunkQMSHSRCVcjs.formatUserError.call(void 0, raw);
872
+ const message = _chunk665QDRDOcjs.formatUserError.call(void 0, raw);
873
873
  logFlowError("auto-register:failed", err, {
874
874
  accountAddress,
875
875
  targetChain,
@@ -903,7 +903,7 @@ function WithdrawFlow({
903
903
  const symbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
904
904
  const decimals = _chunkEGB3NWMLcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
905
905
  return {
906
- id: _chunkQMSHSRCVcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
906
+ id: _chunk665QDRDOcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
907
907
  chainId: sourceChain,
908
908
  token: sourceToken,
909
909
  symbol,
@@ -1083,7 +1083,7 @@ function WithdrawFlow({
1083
1083
  targetChain,
1084
1084
  targetToken
1085
1085
  });
1086
- handleError(_chunkQMSHSRCVcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1086
+ handleError(_chunk665QDRDOcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1087
1087
  throw err;
1088
1088
  }
1089
1089
  },
@@ -1213,7 +1213,7 @@ function WithdrawFlow({
1213
1213
  }
1214
1214
  ),
1215
1215
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1216
- _chunk6UDMG6QCcjs.ProcessingStep,
1216
+ _chunkBXYDVFABcjs.ProcessingStep,
1217
1217
  {
1218
1218
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1219
1219
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1280,19 +1280,19 @@ function WithdrawModal({
1280
1280
  debug
1281
1281
  }) {
1282
1282
  const modalRef = _react.useRef.call(void 0, null);
1283
- const onReadyRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onReady);
1283
+ const onReadyRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onReady);
1284
1284
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1285
1285
  void 0
1286
1286
  );
1287
1287
  const targetChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1288
1288
  const sourceChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, sourceChainProp);
1289
- const rpcUrls = _chunkQMSHSRCVcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1289
+ const rpcUrls = _chunk665QDRDOcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1290
1290
  const service = _react.useMemo.call(void 0,
1291
- () => _chunkQMSHSRCVcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1291
+ () => _chunk665QDRDOcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1292
1292
  [backendUrl, debug]
1293
1293
  );
1294
1294
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1295
- const onErrorRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onError);
1295
+ const onErrorRef = _chunk665QDRDOcjs.useLatestRef.call(void 0, onError);
1296
1296
  _react.useEffect.call(void 0, () => {
1297
1297
  if (isOpen && typeof onSendTransaction !== "function") {
1298
1298
  _optionalChain([onErrorRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34({
@@ -1303,7 +1303,7 @@ function WithdrawModal({
1303
1303
  }, [isOpen, onSendTransaction, onErrorRef]);
1304
1304
  _react.useEffect.call(void 0, () => {
1305
1305
  if (isOpen && modalRef.current) {
1306
- _chunkQMSHSRCVcjs.applyTheme.call(void 0, modalRef.current, theme);
1306
+ _chunk665QDRDOcjs.applyTheme.call(void 0, modalRef.current, theme);
1307
1307
  }
1308
1308
  }, [isOpen, theme]);
1309
1309
  _react.useEffect.call(void 0, () => {
@@ -1321,8 +1321,8 @@ function WithdrawModal({
1321
1321
  }, []);
1322
1322
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _37 => _37.showBackButton]), () => ( true));
1323
1323
  const canGoBack = backHandler !== void 0;
1324
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1325
- _chunkQMSHSRCVcjs.Modal,
1324
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1325
+ _chunk665QDRDOcjs.Modal,
1326
1326
  {
1327
1327
  isOpen,
1328
1328
  onClose,
@@ -1338,7 +1338,7 @@ function WithdrawModal({
1338
1338
  className: "rs-modal-header-back",
1339
1339
  "aria-label": "Go back",
1340
1340
  onClick: backHandler,
1341
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.ChevronLeftIcon, {})
1341
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.ChevronLeftIcon, {})
1342
1342
  }
1343
1343
  ) }),
1344
1344
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1348,7 +1348,7 @@ function WithdrawModal({
1348
1348
  onClick: onClose,
1349
1349
  className: "rs-modal-close",
1350
1350
  "aria-label": "Close",
1351
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CloseIcon, {})
1351
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CloseIcon, {})
1352
1352
  }
1353
1353
  ) })
1354
1354
  ] }),
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkQMSHSRCVcjs = require('./chunk-QMSHSRCV.cjs');
4
+ var _chunk665QDRDOcjs = require('./chunk-665QDRDO.cjs');
5
5
 
6
6
  // src/components/ui/ListRow.tsx
7
7
  var _jsxruntime = require('react/jsx-runtime');
@@ -19,7 +19,7 @@ function ListRow({
19
19
  ...props
20
20
  }) {
21
21
  const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
22
- leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
22
+ leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
23
23
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-body", children: [
24
24
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-text", children: [
25
25
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-title", children: title }),
@@ -39,7 +39,7 @@ function ListRow({
39
39
  }
40
40
  ) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-list-row-meta", children: meta })
41
41
  ] }),
42
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.ChevronRightIcon, {}))) })
42
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk665QDRDOcjs.ChevronRightIcon, {}))) })
43
43
  ] });
44
44
  if (action) {
45
45
  const handleKey = (e) => {