@rhinestone/deposit-modal 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +45 -17
  2. package/dist/{BankOnrampStep-JG32OCM2.mjs → BankOnrampStep-JTU7WS5R.mjs} +22 -12
  3. package/dist/{BankOnrampStep-NPGXAA7U.cjs → BankOnrampStep-QCPISCAQ.cjs} +34 -24
  4. package/dist/{DepositModalReown-3FGTPER6.mjs → DepositModalReown-FJBSF4VL.mjs} +5 -3
  5. package/dist/{DepositModalReown-ALVWADG7.cjs → DepositModalReown-QJ6O2FWY.cjs} +18 -16
  6. package/dist/{WithdrawModal-LL4Z5WZP.mjs → WithdrawModal-CB7RNEPI.mjs} +3 -3
  7. package/dist/WithdrawModal-E2BTWJV7.cjs +12 -0
  8. package/dist/{chunk-B2LZQIGB.mjs → chunk-2D3J53PX.mjs} +1 -1
  9. package/dist/{chunk-CXRH5MKO.cjs → chunk-4O2UGFFT.cjs} +385 -297
  10. package/dist/{chunk-HP7S7AD6.mjs → chunk-7CHQA2OZ.mjs} +1 -1
  11. package/dist/chunk-ADEWTBSN.cjs +19 -0
  12. package/dist/{chunk-FMUSY563.cjs → chunk-AV3SA7TW.cjs} +3 -3
  13. package/dist/{chunk-247GJH57.mjs → chunk-B2LUWNFX.mjs} +583 -533
  14. package/dist/{chunk-Z4RBTNKX.cjs → chunk-CAIRS4LK.cjs} +732 -682
  15. package/dist/{chunk-OPT5EW6L.cjs → chunk-CG3JKPUF.cjs} +2 -2
  16. package/dist/{chunk-5QUWEFD4.mjs → chunk-CXEQFRX4.mjs} +1 -1
  17. package/dist/chunk-PP4QE32S.mjs +19 -0
  18. package/dist/{chunk-XBJCZYBX.mjs → chunk-PZIKRYMO.mjs} +1 -1
  19. package/dist/{chunk-BTEG2VNZ.cjs → chunk-U7NYYT4Q.cjs} +58 -58
  20. package/dist/{chunk-32ERBFMO.mjs → chunk-UNXUOV3F.mjs} +131 -43
  21. package/dist/{chunk-EKFXUF5A.cjs → chunk-VQAV6ESI.cjs} +1 -1
  22. package/dist/{chunk-6CTJFR3T.mjs → chunk-WK2ELRL3.mjs} +5 -16
  23. package/dist/{chunk-PYRXOP2Y.cjs → chunk-X425VJFY.cjs} +10 -21
  24. package/dist/compliance.cjs +4 -4
  25. package/dist/compliance.mjs +3 -3
  26. package/dist/constants.cjs +2 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/deposit.cjs +6 -4
  31. package/dist/deposit.d.cts +2 -2
  32. package/dist/deposit.d.ts +2 -2
  33. package/dist/deposit.mjs +5 -3
  34. package/dist/embed.cjs +16 -14
  35. package/dist/embed.d.cts +1 -1
  36. package/dist/embed.d.ts +1 -1
  37. package/dist/embed.mjs +6 -4
  38. package/dist/index.cjs +7 -5
  39. package/dist/index.d.cts +1 -1
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.mjs +6 -4
  42. package/dist/onramp.cjs +5 -4
  43. package/dist/onramp.mjs +4 -3
  44. package/dist/server.cjs +12 -8
  45. package/dist/server.mjs +11 -7
  46. package/dist/{types-CixUBhrM.d.cts → types-BrxDZNEr.d.cts} +23 -11
  47. package/dist/{types-BxSrazbq.d.ts → types-DCUB4DY8.d.ts} +23 -11
  48. package/dist/withdraw.cjs +4 -4
  49. package/dist/withdraw.d.cts +2 -2
  50. package/dist/withdraw.d.ts +2 -2
  51. package/dist/withdraw.mjs +3 -3
  52. package/package.json +5 -5
  53. package/dist/WithdrawModal-5YWFJSYY.cjs +0 -12
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkEKFXUF5Acjs = require('./chunk-EKFXUF5A.cjs');
3
+ var _chunkVQAV6ESIcjs = require('./chunk-VQAV6ESI.cjs');
4
4
 
5
5
  // src/core/bearer-transport.ts
6
6
  var ScopedRequestError = class extends Error {
@@ -23,7 +23,7 @@ function createBearerTransport(options) {
23
23
  const response = await fetch(`${base}${path}`, {
24
24
  method: body === void 0 ? "GET" : "POST",
25
25
  headers: {
26
- ..._chunkEKFXUF5Acjs.serviceHeaders.call(void 0, ),
26
+ ..._chunkVQAV6ESIcjs.serviceHeaders.call(void 0, ),
27
27
  Authorization: `Bearer ${session.token}`
28
28
  },
29
29
  body: body === void 0 ? void 0 : JSON.stringify(body),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createBearerTransport
3
- } from "./chunk-XBJCZYBX.mjs";
3
+ } from "./chunk-PZIKRYMO.mjs";
4
4
 
5
5
  // src/core/compliance-service.ts
6
6
  function getComplianceStatus(options) {
@@ -0,0 +1,19 @@
1
+ // src/core/ramp-utils.ts
2
+ function rampQuery(value) {
3
+ return new URLSearchParams(
4
+ Object.entries(value).filter(([, value2]) => value2 !== void 0).map(([key, value2]) => [key, String(value2)])
5
+ ).toString();
6
+ }
7
+ function rampResourceId(value) {
8
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
9
+ value
10
+ )) {
11
+ throw new Error("Invalid ramp resource ID");
12
+ }
13
+ return value;
14
+ }
15
+
16
+ export {
17
+ rampQuery,
18
+ rampResourceId
19
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serviceHeaders
3
- } from "./chunk-B2LZQIGB.mjs";
3
+ } from "./chunk-2D3J53PX.mjs";
4
4
 
5
5
  // src/core/bearer-transport.ts
6
6
  var ScopedRequestError = class extends Error {
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- var _chunkCXRH5MKOcjs = require('./chunk-CXRH5MKO.cjs');
43
+ var _chunk4O2UGFFTcjs = require('./chunk-4O2UGFFT.cjs');
44
44
 
45
45
 
46
46
 
@@ -249,7 +249,7 @@ function WithdrawFormStep({
249
249
  const offeredTarget = targetTokenOptions.find(
250
250
  (option) => option.address.toLowerCase() === targetToken.toLowerCase()
251
251
  );
252
- const resolvedTargetSymbol = _chunkCXRH5MKOcjs.useTokenDisplay.call(void 0, targetChain, targetToken).symbol;
252
+ const resolvedTargetSymbol = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, targetChain, targetToken).symbol;
253
253
  const targetSymbol = _nullishCoalesce(_optionalChain([offeredTarget, 'optionalAccess', _3 => _3.symbol]), () => ( resolvedTargetSymbol));
254
254
  const targetChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, targetChain);
255
255
  const isBusy = submitting || isSubmitting;
@@ -275,7 +275,7 @@ function WithdrawFormStep({
275
275
  return;
276
276
  }
277
277
  try {
278
- const bal = _chunkCXRH5MKOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
278
+ const bal = _chunk4O2UGFFTcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
279
279
  address: asset.token,
280
280
  abi: _viem.erc20Abi,
281
281
  functionName: "balanceOf",
@@ -379,7 +379,7 @@ function WithdrawFormStep({
379
379
  await onSubmit(recipient, amount);
380
380
  } catch (err) {
381
381
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
382
- setError(_chunkCXRH5MKOcjs.formatUserError.call(void 0, raw));
382
+ setError(_chunk4O2UGFFTcjs.formatUserError.call(void 0, raw));
383
383
  } finally {
384
384
  setIsSubmitting(false);
385
385
  }
@@ -401,7 +401,7 @@ function WithdrawFormStep({
401
401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
402
402
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
403
403
  ] }),
404
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.PoweredBy, {})
404
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
405
405
  ] });
406
406
  }
407
407
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
@@ -466,7 +466,7 @@ function WithdrawFormStep({
466
466
  ) })
467
467
  ] }),
468
468
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
469
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkCXRH5MKOcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
469
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunk4O2UGFFTcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
470
470
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
471
471
  "Balance: ",
472
472
  formattedBalance,
@@ -497,7 +497,7 @@ function WithdrawFormStep({
497
497
  children: [
498
498
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
499
499
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
500
- _chunkCXRH5MKOcjs.CdnIcon,
500
+ _chunk4O2UGFFTcjs.CdnIcon,
501
501
  {
502
502
  src: _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, targetChain),
503
503
  alt: targetChainName,
@@ -529,7 +529,7 @@ function WithdrawFormStep({
529
529
  },
530
530
  children: [
531
531
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
532
- _chunkCXRH5MKOcjs.CdnIcon,
532
+ _chunk4O2UGFFTcjs.CdnIcon,
533
533
  {
534
534
  src: _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, chain.id),
535
535
  alt: chain.name,
@@ -566,7 +566,7 @@ function WithdrawFormStep({
566
566
  children: [
567
567
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
568
568
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
569
- _chunkCXRH5MKOcjs.TokenIcon,
569
+ _chunk4O2UGFFTcjs.TokenIcon,
570
570
  {
571
571
  token: { chain: targetChain, address: targetToken },
572
572
  symbol: targetSymbol,
@@ -598,7 +598,7 @@ function WithdrawFormStep({
598
598
  },
599
599
  children: [
600
600
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
601
- _chunkCXRH5MKOcjs.TokenIcon,
601
+ _chunk4O2UGFFTcjs.TokenIcon,
602
602
  {
603
603
  token: { chain: targetChain, address: option.address },
604
604
  symbol: option.symbol,
@@ -615,11 +615,11 @@ function WithdrawFormStep({
615
615
  )
616
616
  ] })
617
617
  ] }),
618
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.Callout, { variant: "error", children: error }),
619
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.Callout, { variant: "error", children: registrationError }),
620
- decimalsStatus === "unresolved" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.Callout, { variant: "error", children: "This token's decimals couldn't be determined, so this withdrawal can't be prepared." }),
618
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
619
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: registrationError }),
620
+ decimalsStatus === "unresolved" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: "This token's decimals couldn't be determined, so this withdrawal can't be prepared." }),
621
621
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
622
- _chunkCXRH5MKOcjs.Button,
622
+ _chunk4O2UGFFTcjs.Button,
623
623
  {
624
624
  onClick: handleWithdraw,
625
625
  fullWidth: true,
@@ -634,7 +634,7 @@ function WithdrawFormStep({
634
634
  }
635
635
  )
636
636
  ] }),
637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.PoweredBy, {})
637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
638
638
  ] });
639
639
  }
640
640
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -671,7 +671,7 @@ function WithdrawReviewStep({
671
671
  }, [isSubmitting]);
672
672
  const sourceChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, sourceChain);
673
673
  const sourceChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, sourceChain);
674
- const [sourceDisplay, targetDisplay] = _chunkCXRH5MKOcjs.useTokenDisplays.call(void 0, [
674
+ const [sourceDisplay, targetDisplay] = _chunk4O2UGFFTcjs.useTokenDisplays.call(void 0, [
675
675
  { chain: sourceChain, address: sourceToken },
676
676
  { chain: targetChain, address: targetToken }
677
677
  ]);
@@ -679,12 +679,12 @@ function WithdrawReviewStep({
679
679
  const targetChainName = _chunkFKJ6EJHHcjs.getChainName.call(void 0, targetChain);
680
680
  const targetChainIcon = _chunkFKJ6EJHHcjs.getChainIcon.call(void 0, targetChain);
681
681
  const amountNumber = Number(amount);
682
- const formattedSendAmount = _nullishCoalesce(_chunkCXRH5MKOcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
683
- const prices = _chunkCXRH5MKOcjs.useTokenPrices.call(void 0, [
682
+ const formattedSendAmount = _nullishCoalesce(_chunk4O2UGFFTcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
683
+ const prices = _chunk4O2UGFFTcjs.useTokenPrices.call(void 0, [
684
684
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
685
685
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
686
686
  ]);
687
- const receiveDisplay = _nullishCoalesce(_chunkCXRH5MKOcjs.formatReceiveEstimate.call(void 0, {
687
+ const receiveDisplay = _nullishCoalesce(_chunk4O2UGFFTcjs.formatReceiveEstimate.call(void 0, {
688
688
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
689
689
  sourceSymbol,
690
690
  targetSymbol,
@@ -700,8 +700,8 @@ function WithdrawReviewStep({
700
700
  await onConfirm();
701
701
  } catch (err) {
702
702
  const raw = err instanceof Error ? err.message : "Withdraw failed";
703
- const uncertain = _chunkCXRH5MKOcjs.isSubmissionUncertain.call(void 0, err);
704
- const message = uncertain ? "Withdrawal status is uncertain. Check your activity before trying again." : _chunkCXRH5MKOcjs.formatUserError.call(void 0, raw);
703
+ const uncertain = _chunk4O2UGFFTcjs.isSubmissionUncertain.call(void 0, err);
704
+ const message = uncertain ? "Withdrawal status is uncertain. Check your activity before trying again." : _chunk4O2UGFFTcjs.formatUserError.call(void 0, raw);
705
705
  if (uncertain) setSubmissionUncertain(true);
706
706
  setError(message);
707
707
  _optionalChain([onError, 'optionalCall', _20 => _20(message, "WITHDRAW_REVIEW_ERROR", raw)]);
@@ -729,7 +729,7 @@ function WithdrawReviewStep({
729
729
  sourceSymbol
730
730
  ] }),
731
731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
732
- _chunkCXRH5MKOcjs.TokenIcon,
732
+ _chunk4O2UGFFTcjs.TokenIcon,
733
733
  {
734
734
  token: { chain: sourceChain, address: sourceToken },
735
735
  symbol: sourceSymbol
@@ -741,7 +741,7 @@ function WithdrawReviewStep({
741
741
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
742
742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
743
743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
744
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.CdnIcon, { src: sourceChainIcon }) })
744
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: sourceChainIcon }) })
745
745
  ] })
746
746
  ] }),
747
747
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -753,7 +753,7 @@ function WithdrawReviewStep({
753
753
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
754
754
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
755
755
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
756
- _chunkCXRH5MKOcjs.TokenIcon,
756
+ _chunk4O2UGFFTcjs.TokenIcon,
757
757
  {
758
758
  token: { chain: targetChain, address: targetToken },
759
759
  symbol: targetSymbol
@@ -765,7 +765,7 @@ function WithdrawReviewStep({
765
765
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
766
766
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
767
767
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
768
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.CdnIcon, { src: targetChainIcon }) })
768
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.CdnIcon, { src: targetChainIcon }) })
769
769
  ] })
770
770
  ] }),
771
771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -773,10 +773,10 @@ function WithdrawReviewStep({
773
773
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
774
774
  ] })
775
775
  ] }),
776
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.Callout, { variant: "error", children: error }),
777
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.Callout, { variant: "error", children: registrationError }),
776
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: error }),
777
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.Callout, { variant: "error", children: registrationError }),
778
778
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
779
- _chunkCXRH5MKOcjs.Button,
779
+ _chunk4O2UGFFTcjs.Button,
780
780
  {
781
781
  onClick: handleConfirm,
782
782
  loading: isSubmitting,
@@ -787,7 +787,7 @@ function WithdrawReviewStep({
787
787
  }
788
788
  )
789
789
  ] }),
790
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.PoweredBy, {})
790
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.PoweredBy, {})
791
791
  ] });
792
792
  }
793
793
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -803,7 +803,7 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
803
803
 
804
804
 
805
805
  function withdrawFailureReasonForError(error) {
806
- if (_chunkCXRH5MKOcjs.isSubmissionUncertain.call(void 0, error)) return "submission_uncertain";
806
+ if (_chunk4O2UGFFTcjs.isSubmissionUncertain.call(void 0, error)) return "submission_uncertain";
807
807
  const message = (error instanceof Error ? error.message : String(_nullishCoalesce(error, () => ( "")))).toLowerCase();
808
808
  if (message.includes("changed before submission")) {
809
809
  return "registration_target_changed";
@@ -962,7 +962,7 @@ function WithdrawAnalyticsControllerProvider({
962
962
  children,
963
963
  controllerRef
964
964
  }) {
965
- const emit = _chunkCXRH5MKOcjs.useWithdrawAnalyticsEmitter.call(void 0, );
965
+ const emit = _chunk4O2UGFFTcjs.useWithdrawAnalyticsEmitter.call(void 0, );
966
966
  const controller = _react.useMemo.call(void 0,
967
967
  () => createWithdrawAnalyticsController(emit),
968
968
  [emit]
@@ -1002,7 +1002,7 @@ function WithdrawFlow({
1002
1002
  onError,
1003
1003
  debug
1004
1004
  }) {
1005
- const rpcUrls = _chunkCXRH5MKOcjs.useRpcUrls.call(void 0, );
1005
+ const rpcUrls = _chunk4O2UGFFTcjs.useRpcUrls.call(void 0, );
1006
1006
  const onStepChangeRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onStepChange);
1007
1007
  const analytics = useWithdrawAnalyticsController();
1008
1008
  const onLifecycleRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onLifecycle);
@@ -1020,13 +1020,13 @@ function WithdrawFlow({
1020
1020
  }, []);
1021
1021
  const logFlow = _react.useCallback.call(void 0,
1022
1022
  (message, data) => {
1023
- _chunkCXRH5MKOcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
1023
+ _chunk4O2UGFFTcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
1024
1024
  },
1025
1025
  [debug]
1026
1026
  );
1027
1027
  const logFlowError = _react.useCallback.call(void 0,
1028
1028
  (message, error, data) => {
1029
- _chunkCXRH5MKOcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
1029
+ _chunk4O2UGFFTcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
1030
1030
  },
1031
1031
  [debug]
1032
1032
  );
@@ -1048,7 +1048,7 @@ function WithdrawFlow({
1048
1048
  const registration = useWithdrawStore((s) => s.registration);
1049
1049
  const flowStep = useWithdrawStore((s) => s.step);
1050
1050
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
1051
- const publicClient = _chunkCXRH5MKOcjs.useReadClient.call(void 0, sourceChain, rpcUrls);
1051
+ const publicClient = _chunk4O2UGFFTcjs.useReadClient.call(void 0, sourceChain, rpcUrls);
1052
1052
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
1053
1053
  if (!recipientInput) return void 0;
1054
1054
  return ADDR_REGEX.test(recipientInput) ? recipientInput : void 0;
@@ -1089,7 +1089,7 @@ function WithdrawFlow({
1089
1089
  targetToken,
1090
1090
  recipient: recipientForRegistration
1091
1091
  });
1092
- const salt = _chunkCXRH5MKOcjs.deriveAccountSalt.call(void 0, {
1092
+ const salt = _chunk4O2UGFFTcjs.deriveAccountSalt.call(void 0, {
1093
1093
  recipient: recipientForRegistration,
1094
1094
  targetChain,
1095
1095
  targetToken
@@ -1119,7 +1119,7 @@ function WithdrawFlow({
1119
1119
  } catch (err) {
1120
1120
  if (cancelled) return;
1121
1121
  const raw = err instanceof Error ? err.message : "Registration failed";
1122
- const message = _chunkCXRH5MKOcjs.formatUserError.call(void 0, raw);
1122
+ const message = _chunk4O2UGFFTcjs.formatUserError.call(void 0, raw);
1123
1123
  logFlowError("auto-register:failed", err, {
1124
1124
  accountAddress,
1125
1125
  targetChain,
@@ -1149,13 +1149,13 @@ function WithdrawFlow({
1149
1149
  onLifecycleRef,
1150
1150
  onErrorRef
1151
1151
  ]);
1152
- const sourceDisplay = _chunkCXRH5MKOcjs.useTokenDisplay.call(void 0, sourceChain, sourceToken);
1153
- const { isLoading: catalogLoading } = _chunkCXRH5MKOcjs.useChainCatalog.call(void 0, );
1152
+ const sourceDisplay = _chunk4O2UGFFTcjs.useTokenDisplay.call(void 0, sourceChain, sourceToken);
1153
+ const { isLoading: catalogLoading } = _chunk4O2UGFFTcjs.useChainCatalog.call(void 0, );
1154
1154
  const decimalsStatus = sourceDisplay.decimals !== void 0 ? "ready" : sourceDisplay.pending || catalogLoading ? "pending" : "unresolved";
1155
1155
  const asset = _react.useMemo.call(void 0, () => {
1156
1156
  const symbol = sourceDisplay.symbol;
1157
1157
  return {
1158
- id: _chunkCXRH5MKOcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1158
+ id: _chunk4O2UGFFTcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1159
1159
  chainId: sourceChain,
1160
1160
  token: sourceToken,
1161
1161
  symbol,
@@ -1357,7 +1357,7 @@ function WithdrawFlow({
1357
1357
  targetChain,
1358
1358
  targetToken
1359
1359
  });
1360
- handleError(_chunkCXRH5MKOcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1360
+ handleError(_chunk4O2UGFFTcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1361
1361
  throw err;
1362
1362
  }
1363
1363
  },
@@ -1417,8 +1417,8 @@ function WithdrawFlow({
1417
1417
  },
1418
1418
  [analytics, logFlowError, onLifecycleRef, storeApi]
1419
1419
  );
1420
- const targetChainOptions = _chunkCXRH5MKOcjs.useDestinationChains.call(void 0, );
1421
- const targetTokensFor = _chunkCXRH5MKOcjs.useTargetTokens.call(void 0, );
1420
+ const targetChainOptions = _chunk4O2UGFFTcjs.useDestinationChains.call(void 0, );
1421
+ const targetTokensFor = _chunk4O2UGFFTcjs.useTargetTokens.call(void 0, );
1422
1422
  const targetTokenOptions = _react.useMemo.call(void 0,
1423
1423
  () => targetTokensFor(targetChain),
1424
1424
  [targetChain, targetTokensFor]
@@ -1500,7 +1500,7 @@ function WithdrawFlow({
1500
1500
  }
1501
1501
  ),
1502
1502
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1503
- _chunkCXRH5MKOcjs.ProcessingStep,
1503
+ _chunk4O2UGFFTcjs.ProcessingStep,
1504
1504
  {
1505
1505
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1506
1506
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1570,7 +1570,7 @@ function buildWithdrawAnalyticsSessionProperties({
1570
1570
  recipient: recipient !== void 0,
1571
1571
  amount: defaultAmount !== void 0
1572
1572
  },
1573
- ..._chunkCXRH5MKOcjs.analyticsTargetProperties.call(void 0, {
1573
+ ..._chunk4O2UGFFTcjs.analyticsTargetProperties.call(void 0, {
1574
1574
  targetChain: seedTargetChain,
1575
1575
  targetToken: seedTargetToken
1576
1576
  })
@@ -1611,8 +1611,8 @@ function WithdrawModal({
1611
1611
  onUiState,
1612
1612
  ...removedProps
1613
1613
  }) {
1614
- _chunkCXRH5MKOcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1615
- _chunkCXRH5MKOcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1614
+ _chunk4O2UGFFTcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1615
+ _chunk4O2UGFFTcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1616
1616
  const modalRef = _react.useRef.call(void 0, null);
1617
1617
  const onReadyRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onReady);
1618
1618
  const analyticsControllerRef = _react.useRef.call(void 0,
@@ -1631,20 +1631,20 @@ function WithdrawModal({
1631
1631
  const onUiStateRef = _chunkG264OM23cjs.useLatestRef.call(void 0, onUiState);
1632
1632
  const targetChain = _chunkFKJ6EJHHcjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1633
1633
  const sourceChain = _chunkFKJ6EJHHcjs.getChainId.call(void 0, sourceChainProp);
1634
- const rpcUrls = _chunkCXRH5MKOcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1634
+ const rpcUrls = _chunk4O2UGFFTcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1635
1635
  const service = _react.useMemo.call(void 0,
1636
- () => _chunkCXRH5MKOcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1636
+ () => _chunk4O2UGFFTcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1637
1637
  [backendUrl, debug]
1638
1638
  );
1639
1639
  const historyAnalytics = _react.useMemo.call(void 0,
1640
- () => _chunkCXRH5MKOcjs.createHistoryAnalytics.call(void 0, {
1640
+ () => _chunk4O2UGFFTcjs.createHistoryAnalytics.call(void 0, {
1641
1641
  modal: "withdraw",
1642
1642
  controllerRef: analyticsControllerRef,
1643
1643
  sessionIdRef: analyticsSessionIdRef
1644
1644
  }),
1645
1645
  []
1646
1646
  );
1647
- const history = _chunkCXRH5MKOcjs.useHistoryPanel.call(void 0, {
1647
+ const history = _chunk4O2UGFFTcjs.useHistoryPanel.call(void 0, {
1648
1648
  isOpen,
1649
1649
  recipient: historyRecipient,
1650
1650
  service,
@@ -1652,7 +1652,7 @@ function WithdrawModal({
1652
1652
  analytics: historyAnalytics
1653
1653
  });
1654
1654
  const { markStale: markHistoryStale, recoverySubmitting } = history;
1655
- const historyButtonVisible = _chunkCXRH5MKOcjs.isHistoryEntryVisible.call(void 0, {
1655
+ const historyButtonVisible = _chunk4O2UGFFTcjs.isHistoryEntryVisible.call(void 0, {
1656
1656
  screen,
1657
1657
  submitting,
1658
1658
  settled: false
@@ -1700,7 +1700,7 @@ function WithdrawModal({
1700
1700
  }, [isOpen]);
1701
1701
  _react.useEffect.call(void 0, () => {
1702
1702
  if (!isOpen || !modalRef.current) return;
1703
- return _chunkCXRH5MKOcjs.applyTheme.call(void 0, modalRef.current, theme);
1703
+ return _chunk4O2UGFFTcjs.applyTheme.call(void 0, modalRef.current, theme);
1704
1704
  }, [isOpen, theme]);
1705
1705
  _react.useEffect.call(void 0, () => {
1706
1706
  if (isOpen) {
@@ -1748,8 +1748,8 @@ function WithdrawModal({
1748
1748
  });
1749
1749
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1750
1750
  const canGoBack = backHandler !== void 0 && !submitting;
1751
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCXRH5MKOcjs.AssetMetadataProvider, { service, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1752
- _chunkCXRH5MKOcjs.Modal,
1751
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2UGFFTcjs.AssetMetadataProvider, { service, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1752
+ _chunk4O2UGFFTcjs.Modal,
1753
1753
  {
1754
1754
  isOpen,
1755
1755
  onClose: handleModalDismiss,
@@ -1758,7 +1758,7 @@ function WithdrawModal({
1758
1758
  closeOnOverlayClick,
1759
1759
  ariaLabel: "Withdraw",
1760
1760
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1761
- _chunkCXRH5MKOcjs.AnalyticsSession,
1761
+ _chunk4O2UGFFTcjs.AnalyticsSession,
1762
1762
  {
1763
1763
  modal: "withdraw",
1764
1764
  sessionProperties: analyticsSessionProperties,
@@ -1785,7 +1785,7 @@ function WithdrawModal({
1785
1785
  ) }),
1786
1786
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
1787
1787
  historyButtonVisible && historyRecipient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1788
- _chunkCXRH5MKOcjs.HistoryEntryButton,
1788
+ _chunk4O2UGFFTcjs.HistoryEntryButton,
1789
1789
  {
1790
1790
  badge: history.badge,
1791
1791
  onClick: history.openPanel
@@ -1826,7 +1826,7 @@ function WithdrawModal({
1826
1826
  }
1827
1827
  ),
1828
1828
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1829
- _chunkCXRH5MKOcjs.HistoryOverlay,
1829
+ _chunk4O2UGFFTcjs.HistoryOverlay,
1830
1830
  {
1831
1831
  controller: history,
1832
1832
  backLabel: "Withdraw",