@rhinestone/deposit-modal 0.15.0 → 0.16.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 (52) hide show
  1. package/README.md +22 -26
  2. package/dist/{DepositModalReown-R37SSHUF.cjs → DepositModalReown-IFN6YLZJ.cjs} +16 -17
  3. package/dist/{DepositModalReown-KOJ7VEY7.mjs → DepositModalReown-R7UROJPJ.mjs} +3 -4
  4. package/dist/WithdrawModal-SZEAI473.cjs +11 -0
  5. package/dist/{WithdrawModal-QVXHMH43.mjs → WithdrawModal-XKSSHVEJ.mjs} +3 -4
  6. package/dist/{chunk-DTVZUBHI.cjs → chunk-24N4KMJX.cjs} +71 -73
  7. package/dist/{chunk-CXBMIZUF.mjs → chunk-3HCCR54R.mjs} +1 -1
  8. package/dist/{chunk-5P2PVLS4.cjs → chunk-5CM3ZQ5U.cjs} +1 -1
  9. package/dist/{chunk-5VONFVQN.mjs → chunk-EA5CE2UZ.mjs} +3944 -864
  10. package/dist/{chunk-IKUYZA7A.mjs → chunk-F6ROQ6RJ.mjs} +28 -30
  11. package/dist/{chunk-3OOY67VJ.cjs → chunk-H4O22O7Y.cjs} +4930 -1850
  12. package/dist/{chunk-7UQ6OUEE.mjs → chunk-HMB2XQGD.mjs} +13 -15
  13. package/dist/{chunk-VPDCGD2D.cjs → chunk-V466XQSG.cjs} +260 -262
  14. package/dist/constants.cjs +2 -2
  15. package/dist/constants.d.cts +1 -1
  16. package/dist/constants.d.ts +1 -1
  17. package/dist/constants.mjs +1 -1
  18. package/dist/deposit.cjs +4 -5
  19. package/dist/deposit.d.cts +2 -2
  20. package/dist/deposit.d.ts +2 -2
  21. package/dist/deposit.mjs +3 -4
  22. package/dist/embed.cjs +18 -59
  23. package/dist/embed.d.cts +2 -8
  24. package/dist/embed.d.ts +2 -8
  25. package/dist/embed.mjs +9 -50
  26. package/dist/index.cjs +5 -10
  27. package/dist/index.d.cts +1 -3
  28. package/dist/index.d.ts +1 -3
  29. package/dist/index.mjs +4 -9
  30. package/dist/server.d.cts +2 -2
  31. package/dist/server.d.ts +2 -2
  32. package/dist/styles.css +15 -0
  33. package/dist/{types-CQ0NHqCy.d.ts → types-B9SbZQIG.d.ts} +15 -113
  34. package/dist/{types-CxiLX5sv.d.cts → types-SwGGf0eH.d.cts} +15 -113
  35. package/dist/withdraw.cjs +4 -5
  36. package/dist/withdraw.d.cts +31 -3
  37. package/dist/withdraw.d.ts +31 -3
  38. package/dist/withdraw.mjs +3 -4
  39. package/package.json +4 -35
  40. package/dist/ClaimModal-GFDBVCN5.cjs +0 -11
  41. package/dist/ClaimModal-VQS3AKEL.mjs +0 -11
  42. package/dist/WithdrawModal-RY2NMFLE.cjs +0 -12
  43. package/dist/chunk-6HUHVXCY.cjs +0 -704
  44. package/dist/chunk-QJ7RCCU7.mjs +0 -704
  45. package/dist/chunk-UCBUCX2W.mjs +0 -3169
  46. package/dist/chunk-X4D52IZK.cjs +0 -3169
  47. package/dist/claim.cjs +0 -9
  48. package/dist/claim.d.cts +0 -17
  49. package/dist/claim.d.ts +0 -17
  50. package/dist/claim.mjs +0 -9
  51. package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
  52. package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
@@ -10,7 +10,6 @@
10
10
 
11
11
 
12
12
 
13
- var _chunkX4D52IZKcjs = require('./chunk-X4D52IZK.cjs');
14
13
 
15
14
 
16
15
 
@@ -45,8 +44,7 @@ var _chunkX4D52IZKcjs = require('./chunk-X4D52IZK.cjs');
45
44
 
46
45
 
47
46
 
48
-
49
- var _chunk3OOY67VJcjs = require('./chunk-3OOY67VJ.cjs');
47
+ var _chunkH4O22O7Ycjs = require('./chunk-H4O22O7Y.cjs');
50
48
 
51
49
 
52
50
 
@@ -240,7 +238,7 @@ function WithdrawFormStep({
240
238
  const chainDropdownRef = _react.useRef.call(void 0, null);
241
239
  const tokenDropdownRef = _react.useRef.call(void 0, null);
242
240
  const publicClientChainId = _optionalChain([publicClient, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]);
243
- const onFrictionRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onFriction);
241
+ const onFrictionRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onFriction);
244
242
  useClickOutside(chainDropdownRef, () => setShowChainDropdown(false));
245
243
  useClickOutside(tokenDropdownRef, () => setShowTokenDropdown(false));
246
244
  const targetSymbol = _chunkOY5N3E6Lcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
@@ -268,7 +266,7 @@ function WithdrawFormStep({
268
266
  return;
269
267
  }
270
268
  try {
271
- const bal = _chunk3OOY67VJcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
269
+ const bal = _chunkH4O22O7Ycjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
272
270
  address: asset.token,
273
271
  abi: _viem.erc20Abi,
274
272
  functionName: "balanceOf",
@@ -370,7 +368,7 @@ function WithdrawFormStep({
370
368
  await onSubmit(recipient, amount);
371
369
  } catch (err) {
372
370
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
373
- setError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw));
371
+ setError(_chunkH4O22O7Ycjs.formatUserError.call(void 0, raw));
374
372
  } finally {
375
373
  setIsSubmitting(false);
376
374
  }
@@ -387,16 +385,16 @@ function WithdrawFormStep({
387
385
  if (isBalanceLoading) {
388
386
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
387
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Spinner, { className: "rs-spinner--lg" }),
388
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.Spinner, { className: "rs-spinner--lg" }),
391
389
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
392
390
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
393
391
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.PoweredBy, {})
395
393
  ] });
396
394
  }
397
395
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
396
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
398
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
401
399
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
402
400
  "label",
@@ -456,7 +454,7 @@ function WithdrawFormStep({
456
454
  ) })
457
455
  ] }),
458
456
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
459
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunk3OOY67VJcjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
457
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkH4O22O7Ycjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
460
458
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
461
459
  "Balance: ",
462
460
  formattedBalance,
@@ -487,7 +485,7 @@ function WithdrawFormStep({
487
485
  children: [
488
486
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
489
487
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
490
- _chunk3OOY67VJcjs.CdnIcon,
488
+ _chunkH4O22O7Ycjs.CdnIcon,
491
489
  {
492
490
  src: _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChain),
493
491
  alt: targetChainName,
@@ -497,7 +495,7 @@ function WithdrawFormStep({
497
495
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
498
496
  ] }),
499
497
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
500
- _chunk3OOY67VJcjs.ChevronDownIcon,
498
+ _chunkH4O22O7Ycjs.ChevronDownIcon,
501
499
  {
502
500
  className: "rs-withdraw-dropdown-arrow",
503
501
  style: {
@@ -519,7 +517,7 @@ function WithdrawFormStep({
519
517
  },
520
518
  children: [
521
519
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
522
- _chunk3OOY67VJcjs.CdnIcon,
520
+ _chunkH4O22O7Ycjs.CdnIcon,
523
521
  {
524
522
  src: _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, chain.id),
525
523
  alt: chain.name,
@@ -556,7 +554,7 @@ function WithdrawFormStep({
556
554
  children: [
557
555
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
558
556
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
559
- _chunk3OOY67VJcjs.TokenIcon,
557
+ _chunkH4O22O7Ycjs.TokenIcon,
560
558
  {
561
559
  symbol: targetSymbol,
562
560
  className: "rs-withdraw-dropdown-icon"
@@ -565,7 +563,7 @@ function WithdrawFormStep({
565
563
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
566
564
  ] }),
567
565
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
568
- _chunk3OOY67VJcjs.ChevronDownIcon,
566
+ _chunkH4O22O7Ycjs.ChevronDownIcon,
569
567
  {
570
568
  className: "rs-withdraw-dropdown-arrow",
571
569
  style: {
@@ -587,7 +585,7 @@ function WithdrawFormStep({
587
585
  },
588
586
  children: [
589
587
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
590
- _chunk3OOY67VJcjs.TokenIcon,
588
+ _chunkH4O22O7Ycjs.TokenIcon,
591
589
  {
592
590
  symbol: option.symbol,
593
591
  className: "rs-withdraw-dropdown-icon"
@@ -603,10 +601,10 @@ function WithdrawFormStep({
603
601
  )
604
602
  ] })
605
603
  ] }),
606
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
607
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: registrationError }),
604
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.Callout, { variant: "error", children: error }),
605
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.Callout, { variant: "error", children: registrationError }),
608
606
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
609
- _chunk3OOY67VJcjs.Button,
607
+ _chunkH4O22O7Ycjs.Button,
610
608
  {
611
609
  onClick: handleWithdraw,
612
610
  fullWidth: true,
@@ -621,7 +619,7 @@ function WithdrawFormStep({
621
619
  }
622
620
  )
623
621
  ] }),
624
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
622
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.PoweredBy, {})
625
623
  ] });
626
624
  }
627
625
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -662,16 +660,16 @@ function WithdrawReviewStep({
662
660
  const targetChainName = _chunkOY5N3E6Lcjs.getChainName.call(void 0, targetChain);
663
661
  const targetChainIcon = _chunkOY5N3E6Lcjs.getChainIcon.call(void 0, targetChain);
664
662
  const amountNumber = Number(amount);
665
- const formattedSendAmount = _nullishCoalesce(_chunk3OOY67VJcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
666
- const prices = _chunkX4D52IZKcjs.useTokenPrices.call(void 0, service, [
663
+ const formattedSendAmount = _nullishCoalesce(_chunkH4O22O7Ycjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
664
+ const prices = _chunkH4O22O7Ycjs.useTokenPrices.call(void 0, service, [
667
665
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
668
666
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
669
667
  ]);
670
- const receiveDisplay = _nullishCoalesce(_chunk3OOY67VJcjs.formatReceiveEstimate.call(void 0, {
668
+ const receiveDisplay = _nullishCoalesce(_chunkH4O22O7Ycjs.formatReceiveEstimate.call(void 0, {
671
669
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
672
670
  sourceSymbol,
673
671
  targetSymbol,
674
- sourceTrusted: _chunk3OOY67VJcjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
672
+ sourceTrusted: _chunkH4O22O7Ycjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
675
673
  prices
676
674
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
677
675
  "\u2014"));
@@ -683,8 +681,8 @@ function WithdrawReviewStep({
683
681
  await onConfirm();
684
682
  } catch (err) {
685
683
  const raw = err instanceof Error ? err.message : "Withdraw failed";
686
- const uncertain = _chunkX4D52IZKcjs.isSubmissionUncertain.call(void 0, err);
687
- const message = uncertain ? "Withdrawal status is uncertain. Check your activity before trying again." : _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
684
+ const uncertain = _chunkH4O22O7Ycjs.isSubmissionUncertain.call(void 0, err);
685
+ const message = uncertain ? "Withdrawal status is uncertain. Check your activity before trying again." : _chunkH4O22O7Ycjs.formatUserError.call(void 0, raw);
688
686
  if (uncertain) setSubmissionUncertain(true);
689
687
  setError(message);
690
688
  _optionalChain([onError, 'optionalCall', _19 => _19(message, "WITHDRAW_REVIEW_ERROR", raw)]);
@@ -696,9 +694,9 @@ function WithdrawReviewStep({
696
694
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
697
695
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
698
696
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
699
- _chunk3OOY67VJcjs.BodyHeader,
697
+ _chunkH4O22O7Ycjs.BodyHeader,
700
698
  {
701
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CircleArrowOutUpLeftIcon, {}),
699
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.CircleArrowOutUpLeftIcon, {}),
702
700
  title: "Review withdrawal"
703
701
  }
704
702
  ),
@@ -711,14 +709,14 @@ function WithdrawReviewStep({
711
709
  " ",
712
710
  sourceSymbol
713
711
  ] }),
714
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: sourceSymbol }) })
712
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.TokenIcon, { symbol: sourceSymbol }) })
715
713
  ] })
716
714
  ] }),
717
715
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
718
716
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
719
717
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
720
718
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
721
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: sourceChainIcon }) })
719
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.CdnIcon, { src: sourceChainIcon }) })
722
720
  ] })
723
721
  ] }),
724
722
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -729,14 +727,14 @@ function WithdrawReviewStep({
729
727
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
730
728
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
731
729
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
732
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.TokenIcon, { symbol: targetSymbol }) })
730
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.TokenIcon, { symbol: targetSymbol }) })
733
731
  ] })
734
732
  ] }),
735
733
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
736
734
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
737
735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
738
736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
739
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CdnIcon, { src: targetChainIcon }) })
737
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.CdnIcon, { src: targetChainIcon }) })
740
738
  ] })
741
739
  ] }),
742
740
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -744,10 +742,10 @@ function WithdrawReviewStep({
744
742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
745
743
  ] })
746
744
  ] }),
747
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: error }),
748
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.Callout, { variant: "error", children: registrationError }),
745
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.Callout, { variant: "error", children: error }),
746
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.Callout, { variant: "error", children: registrationError }),
749
747
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
750
- _chunk3OOY67VJcjs.Button,
748
+ _chunkH4O22O7Ycjs.Button,
751
749
  {
752
750
  onClick: handleConfirm,
753
751
  loading: isSubmitting,
@@ -758,7 +756,7 @@ function WithdrawReviewStep({
758
756
  }
759
757
  )
760
758
  ] }),
761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.PoweredBy, {})
759
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.PoweredBy, {})
762
760
  ] });
763
761
  }
764
762
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -774,7 +772,7 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
774
772
 
775
773
 
776
774
  function withdrawFailureReasonForError(error) {
777
- if (_chunkX4D52IZKcjs.isSubmissionUncertain.call(void 0, error)) return "submission_uncertain";
775
+ if (_chunkH4O22O7Ycjs.isSubmissionUncertain.call(void 0, error)) return "submission_uncertain";
778
776
  const message = (error instanceof Error ? error.message : String(_nullishCoalesce(error, () => ( "")))).toLowerCase();
779
777
  if (message.includes("changed before submission")) {
780
778
  return "registration_target_changed";
@@ -933,7 +931,7 @@ function WithdrawAnalyticsControllerProvider({
933
931
  children,
934
932
  controllerRef
935
933
  }) {
936
- const emit = _chunk3OOY67VJcjs.useWithdrawAnalyticsEmitter.call(void 0, );
934
+ const emit = _chunkH4O22O7Ycjs.useWithdrawAnalyticsEmitter.call(void 0, );
937
935
  const controller = _react.useMemo.call(void 0,
938
936
  () => createWithdrawAnalyticsController(emit),
939
937
  [emit]
@@ -973,11 +971,11 @@ function WithdrawFlow({
973
971
  onError,
974
972
  debug
975
973
  }) {
976
- const rpcUrls = _chunk3OOY67VJcjs.useRpcUrls.call(void 0, );
977
- const onStepChangeRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onStepChange);
974
+ const rpcUrls = _chunkH4O22O7Ycjs.useRpcUrls.call(void 0, );
975
+ const onStepChangeRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onStepChange);
978
976
  const analytics = useWithdrawAnalyticsController();
979
- const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
980
- const onErrorRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onError);
977
+ const onLifecycleRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onLifecycle);
978
+ const onErrorRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onError);
981
979
  const isFlowActiveRef = _react.useRef.call(void 0, true);
982
980
  const submitGenerationRef = _react.useRef.call(void 0, 0);
983
981
  const lastSubmitFailureRef = _react.useRef.call(void 0,
@@ -991,13 +989,13 @@ function WithdrawFlow({
991
989
  }, []);
992
990
  const logFlow = _react.useCallback.call(void 0,
993
991
  (message, data) => {
994
- _chunk3OOY67VJcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
992
+ _chunkH4O22O7Ycjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
995
993
  },
996
994
  [debug]
997
995
  );
998
996
  const logFlowError = _react.useCallback.call(void 0,
999
997
  (message, error, data) => {
1000
- _chunk3OOY67VJcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
998
+ _chunkH4O22O7Ycjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
1001
999
  },
1002
1000
  [debug]
1003
1001
  );
@@ -1019,12 +1017,12 @@ function WithdrawFlow({
1019
1017
  const registration = useWithdrawStore((s) => s.registration);
1020
1018
  const flowStep = useWithdrawStore((s) => s.step);
1021
1019
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
1022
- const publicClient = _chunk3OOY67VJcjs.useReadClient.call(void 0, sourceChain, rpcUrls);
1020
+ const publicClient = _chunkH4O22O7Ycjs.useReadClient.call(void 0, sourceChain, rpcUrls);
1023
1021
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
1024
1022
  if (!recipientInput) return void 0;
1025
1023
  return ADDR_REGEX.test(recipientInput) ? recipientInput : void 0;
1026
1024
  }, [recipientInput]);
1027
- const onDestinationChangeRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onDestinationChange);
1025
+ const onDestinationChangeRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onDestinationChange);
1028
1026
  const reportedDestinationRef = _react.useRef.call(void 0, void 0);
1029
1027
  _react.useEffect.call(void 0, () => {
1030
1028
  if (reportedDestinationRef.current === recipientForRegistration) return;
@@ -1060,7 +1058,7 @@ function WithdrawFlow({
1060
1058
  targetToken,
1061
1059
  recipient: recipientForRegistration
1062
1060
  });
1063
- const salt = _chunkX4D52IZKcjs.deriveAccountSalt.call(void 0, {
1061
+ const salt = _chunkH4O22O7Ycjs.deriveAccountSalt.call(void 0, {
1064
1062
  recipient: recipientForRegistration,
1065
1063
  targetChain,
1066
1064
  targetToken
@@ -1090,7 +1088,7 @@ function WithdrawFlow({
1090
1088
  } catch (err) {
1091
1089
  if (cancelled) return;
1092
1090
  const raw = err instanceof Error ? err.message : "Registration failed";
1093
- const message = _chunk3OOY67VJcjs.formatUserError.call(void 0, raw);
1091
+ const message = _chunkH4O22O7Ycjs.formatUserError.call(void 0, raw);
1094
1092
  logFlowError("auto-register:failed", err, {
1095
1093
  accountAddress,
1096
1094
  targetChain,
@@ -1124,7 +1122,7 @@ function WithdrawFlow({
1124
1122
  const symbol = _chunkOY5N3E6Lcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1125
1123
  const decimals = _chunkOY5N3E6Lcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1126
1124
  return {
1127
- id: _chunk3OOY67VJcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1125
+ id: _chunkH4O22O7Ycjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1128
1126
  chainId: sourceChain,
1129
1127
  token: sourceToken,
1130
1128
  symbol,
@@ -1322,7 +1320,7 @@ function WithdrawFlow({
1322
1320
  targetChain,
1323
1321
  targetToken
1324
1322
  });
1325
- handleError(_chunk3OOY67VJcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1323
+ handleError(_chunkH4O22O7Ycjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1326
1324
  throw err;
1327
1325
  }
1328
1326
  },
@@ -1381,8 +1379,8 @@ function WithdrawFlow({
1381
1379
  },
1382
1380
  [analytics, logFlowError, onLifecycleRef, storeApi]
1383
1381
  );
1384
- const targetChainOptions = _chunk3OOY67VJcjs.useDestinationChains.call(void 0, );
1385
- const targetTokensFor = _chunk3OOY67VJcjs.useTargetTokens.call(void 0, );
1382
+ const targetChainOptions = _chunkH4O22O7Ycjs.useDestinationChains.call(void 0, );
1383
+ const targetTokensFor = _chunkH4O22O7Ycjs.useTargetTokens.call(void 0, );
1386
1384
  const targetTokenOptions = _react.useMemo.call(void 0,
1387
1385
  () => targetTokensFor(targetChain),
1388
1386
  [targetChain, targetTokensFor]
@@ -1461,7 +1459,7 @@ function WithdrawFlow({
1461
1459
  }
1462
1460
  ),
1463
1461
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1464
- _chunkX4D52IZKcjs.ProcessingStep,
1462
+ _chunkH4O22O7Ycjs.ProcessingStep,
1465
1463
  {
1466
1464
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1467
1465
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1531,7 +1529,7 @@ function buildWithdrawAnalyticsSessionProperties({
1531
1529
  recipient: recipient !== void 0,
1532
1530
  amount: defaultAmount !== void 0
1533
1531
  },
1534
- ..._chunkX4D52IZKcjs.analyticsTargetProperties.call(void 0, {
1532
+ ..._chunkH4O22O7Ycjs.analyticsTargetProperties.call(void 0, {
1535
1533
  targetChain: seedTargetChain,
1536
1534
  targetToken: seedTargetToken
1537
1535
  })
@@ -1572,10 +1570,10 @@ function WithdrawModal({
1572
1570
  onUiState,
1573
1571
  ...removedProps
1574
1572
  }) {
1575
- _chunkX4D52IZKcjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1576
- _chunk3OOY67VJcjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1573
+ _chunkH4O22O7Ycjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
1574
+ _chunkH4O22O7Ycjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
1577
1575
  const modalRef = _react.useRef.call(void 0, null);
1578
- const onReadyRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onReady);
1576
+ const onReadyRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onReady);
1579
1577
  const analyticsControllerRef = _react.useRef.call(void 0,
1580
1578
  null
1581
1579
  );
@@ -1589,23 +1587,23 @@ function WithdrawModal({
1589
1587
  const [historyRecipient, setHistoryRecipient] = _react.useState.call(void 0,
1590
1588
  recipient
1591
1589
  );
1592
- const onUiStateRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onUiState);
1590
+ const onUiStateRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onUiState);
1593
1591
  const targetChain = _chunkOY5N3E6Lcjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
1594
1592
  const sourceChain = _chunkOY5N3E6Lcjs.getChainId.call(void 0, sourceChainProp);
1595
- const rpcUrls = _chunk3OOY67VJcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1593
+ const rpcUrls = _chunkH4O22O7Ycjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1596
1594
  const service = _react.useMemo.call(void 0,
1597
- () => _chunk3OOY67VJcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1595
+ () => _chunkH4O22O7Ycjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1598
1596
  [backendUrl, debug]
1599
1597
  );
1600
1598
  const historyAnalytics = _react.useMemo.call(void 0,
1601
- () => _chunkX4D52IZKcjs.createHistoryAnalytics.call(void 0, {
1599
+ () => _chunkH4O22O7Ycjs.createHistoryAnalytics.call(void 0, {
1602
1600
  modal: "withdraw",
1603
1601
  controllerRef: analyticsControllerRef,
1604
1602
  sessionIdRef: analyticsSessionIdRef
1605
1603
  }),
1606
1604
  []
1607
1605
  );
1608
- const history = _chunkX4D52IZKcjs.useHistoryPanel.call(void 0, {
1606
+ const history = _chunkH4O22O7Ycjs.useHistoryPanel.call(void 0, {
1609
1607
  isOpen,
1610
1608
  recipient: historyRecipient,
1611
1609
  service,
@@ -1613,13 +1611,13 @@ function WithdrawModal({
1613
1611
  analytics: historyAnalytics
1614
1612
  });
1615
1613
  const { markStale: markHistoryStale, recoverySubmitting } = history;
1616
- const historyButtonVisible = _chunkX4D52IZKcjs.isHistoryEntryVisible.call(void 0, {
1614
+ const historyButtonVisible = _chunkH4O22O7Ycjs.isHistoryEntryVisible.call(void 0, {
1617
1615
  screen,
1618
1616
  submitting,
1619
1617
  settled: false
1620
1618
  });
1621
1619
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1622
- const onErrorRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onError);
1620
+ const onErrorRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onError);
1623
1621
  _react.useEffect.call(void 0, () => {
1624
1622
  if (isOpen && typeof onSendTransaction !== "function") {
1625
1623
  _optionalChain([onErrorRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44({
@@ -1661,7 +1659,7 @@ function WithdrawModal({
1661
1659
  }, [isOpen]);
1662
1660
  _react.useEffect.call(void 0, () => {
1663
1661
  if (!isOpen || !modalRef.current) return;
1664
- return _chunk3OOY67VJcjs.applyTheme.call(void 0, modalRef.current, theme);
1662
+ return _chunkH4O22O7Ycjs.applyTheme.call(void 0, modalRef.current, theme);
1665
1663
  }, [isOpen, theme]);
1666
1664
  _react.useEffect.call(void 0, () => {
1667
1665
  if (isOpen) {
@@ -1687,7 +1685,7 @@ function WithdrawModal({
1687
1685
  submitting: submitting || recoverySubmitting
1688
1686
  })]);
1689
1687
  }, [screen, backHandler, submitting, recoverySubmitting, onUiStateRef]);
1690
- const onLifecycleRef = _chunk3OOY67VJcjs.useLatestRef.call(void 0, onLifecycle);
1688
+ const onLifecycleRef = _chunkH4O22O7Ycjs.useLatestRef.call(void 0, onLifecycle);
1691
1689
  const handleLifecycle = _react.useCallback.call(void 0,
1692
1690
  (event) => {
1693
1691
  _optionalChain([onLifecycleRef, 'access', _60 => _60.current, 'optionalCall', _61 => _61(event)]);
@@ -1709,8 +1707,8 @@ function WithdrawModal({
1709
1707
  });
1710
1708
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _62 => _62.showBackButton]), () => ( true));
1711
1709
  const canGoBack = backHandler !== void 0 && !submitting;
1712
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1713
- _chunk3OOY67VJcjs.Modal,
1710
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1711
+ _chunkH4O22O7Ycjs.Modal,
1714
1712
  {
1715
1713
  isOpen,
1716
1714
  onClose: handleModalDismiss,
@@ -1719,7 +1717,7 @@ function WithdrawModal({
1719
1717
  closeOnOverlayClick,
1720
1718
  ariaLabel: "Withdraw",
1721
1719
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1722
- _chunk3OOY67VJcjs.AnalyticsSession,
1720
+ _chunkH4O22O7Ycjs.AnalyticsSession,
1723
1721
  {
1724
1722
  modal: "withdraw",
1725
1723
  sessionProperties: analyticsSessionProperties,
@@ -1741,12 +1739,12 @@ function WithdrawModal({
1741
1739
  className: "rs-modal-header-back",
1742
1740
  "aria-label": "Go back",
1743
1741
  onClick: backHandler,
1744
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.ChevronLeftIcon, {})
1742
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.ChevronLeftIcon, {})
1745
1743
  }
1746
1744
  ) }),
1747
1745
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
1748
1746
  historyButtonVisible && historyRecipient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1749
- _chunkX4D52IZKcjs.HistoryEntryButton,
1747
+ _chunkH4O22O7Ycjs.HistoryEntryButton,
1750
1748
  {
1751
1749
  badge: history.badge,
1752
1750
  onClick: history.openPanel
@@ -1759,7 +1757,7 @@ function WithdrawModal({
1759
1757
  onClick: () => closeWithSource("header_button"),
1760
1758
  className: "rs-modal-close",
1761
1759
  "aria-label": "Close",
1762
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3OOY67VJcjs.CloseIcon, {})
1760
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH4O22O7Ycjs.CloseIcon, {})
1763
1761
  }
1764
1762
  )
1765
1763
  ] })
@@ -1787,7 +1785,7 @@ function WithdrawModal({
1787
1785
  }
1788
1786
  ),
1789
1787
  history.isPanelOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1790
- _chunkX4D52IZKcjs.HistoryOverlay,
1788
+ _chunkH4O22O7Ycjs.HistoryOverlay,
1791
1789
  {
1792
1790
  controller: history,
1793
1791
  backLabel: "Withdraw",
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.15.0";
2
+ var MODAL_VERSION = "0.16.0";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
2
- var MODAL_VERSION = "0.15.0";
2
+ var MODAL_VERSION = "0.16.0";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION