@rhinestone/deposit-modal 0.3.0-alpha.4 → 0.3.0-alpha.5

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.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-BNY4AL7P.mjs";
3
+ } from "./chunk-ZUWAIMMH.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-TFXIQ7YH.mjs";
8
+ import "./chunk-CTYKQ4B4.mjs";
9
9
  import "./chunk-VA3ANS7D.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkNSI4BCBVcjs = require('./chunk-NSI4BCBV.cjs');
3
+ var _chunkTTD2FEA2cjs = require('./chunk-TTD2FEA2.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-V6NJIPSS.cjs');
8
+ require('./chunk-DX2D2TRZ.cjs');
9
9
  require('./chunk-IVTXEYB2.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -32,7 +32,7 @@ function DepositModalWithReown(props) {
32
32
  reown.disconnect();
33
33
  }, [reown.disconnect]);
34
34
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35
- _chunkNSI4BCBVcjs.DepositModalInner,
35
+ _chunkTTD2FEA2cjs.DepositModalInner,
36
36
  {
37
37
  ...props,
38
38
  reownWallet: reownWithSolana,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUEYFJM5Ycjs = require('./chunk-UEYFJM5Y.cjs');
3
+ var _chunkBB6UVRAVcjs = require('./chunk-BB6UVRAV.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
8
- require('./chunk-V6NJIPSS.cjs');
8
+ require('./chunk-DX2D2TRZ.cjs');
9
9
  require('./chunk-IVTXEYB2.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunkUEYFJM5Ycjs.WithdrawModalInner,
23
+ _chunkBB6UVRAVcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-GE3TMZEL.mjs";
3
+ } from "./chunk-QI6Q7V6O.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-5YXAQB6A.mjs";
8
- import "./chunk-TFXIQ7YH.mjs";
8
+ import "./chunk-CTYKQ4B4.mjs";
9
9
  import "./chunk-VA3ANS7D.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -31,7 +31,7 @@
31
31
 
32
32
 
33
33
 
34
- var _chunkV6NJIPSScjs = require('./chunk-V6NJIPSS.cjs');
34
+ var _chunkDX2D2TRZcjs = require('./chunk-DX2D2TRZ.cjs');
35
35
 
36
36
 
37
37
 
@@ -255,7 +255,7 @@ function WithdrawFormStep({
255
255
  setIsSwitching(true);
256
256
  switchChain(asset.chainId).catch((err) => {
257
257
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
258
- setError(_chunkV6NJIPSScjs.formatUserError.call(void 0, raw));
258
+ setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
259
259
  }).finally(() => {
260
260
  setIsSwitching(false);
261
261
  });
@@ -275,7 +275,7 @@ function WithdrawFormStep({
275
275
  return;
276
276
  }
277
277
  try {
278
- const bal = _chunkV6NJIPSScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
278
+ const bal = _chunkDX2D2TRZcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : 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(_chunkV6NJIPSScjs.formatUserError.call(void 0, raw));
382
+ setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
383
383
  } finally {
384
384
  setIsSubmitting(false);
385
385
  }
@@ -387,16 +387,16 @@ function WithdrawFormStep({
387
387
  if (isBalanceLoading) {
388
388
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
389
389
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, { className: "rs-spinner--lg" }),
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, { className: "rs-spinner--lg" }),
391
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
392
392
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
393
393
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
395
395
  ] });
396
396
  }
397
397
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
398
398
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-form", children: [
399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
400
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
401
401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Recipient address" }),
402
402
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-input-row", children: [
@@ -434,7 +434,7 @@ function WithdrawFormStep({
434
434
  ),
435
435
  isRecipientConnected ? null : "Use connected"
436
436
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
437
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
438
438
  isRecipientConnected ? null : "Use connected"
439
439
  ] })
440
440
  }
@@ -473,7 +473,7 @@ function WithdrawFormStep({
473
473
  ) })
474
474
  ] }),
475
475
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
476
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkV6NJIPSScjs.currencyFormatter.format(amountUsd) : "$0.00" }),
476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkDX2D2TRZcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
477
477
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
478
478
  "Balance: ",
479
479
  formattedBalance,
@@ -513,7 +513,7 @@ function WithdrawFormStep({
513
513
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
514
514
  ] }),
515
515
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
516
- _chunkV6NJIPSScjs.ChevronDownIcon,
516
+ _chunkDX2D2TRZcjs.ChevronDownIcon,
517
517
  {
518
518
  className: "rs-withdraw-dropdown-arrow",
519
519
  style: {
@@ -581,7 +581,7 @@ function WithdrawFormStep({
581
581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
582
582
  ] }),
583
583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
584
- _chunkV6NJIPSScjs.ChevronDownIcon,
584
+ _chunkDX2D2TRZcjs.ChevronDownIcon,
585
585
  {
586
586
  className: "rs-withdraw-dropdown-arrow",
587
587
  style: {
@@ -622,16 +622,16 @@ function WithdrawFormStep({
622
622
  ] }),
623
623
  chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
624
624
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
625
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, {}),
625
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, {}),
626
626
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
627
627
  ] }),
628
628
  !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, {}),
629
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, {}),
630
630
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
631
631
  ] })
632
632
  ] }),
633
633
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
634
- _chunkV6NJIPSScjs.Button,
634
+ _chunkDX2D2TRZcjs.Button,
635
635
  {
636
636
  onClick: handleWithdraw,
637
637
  fullWidth: true,
@@ -640,7 +640,7 @@ function WithdrawFormStep({
640
640
  children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
641
641
  }
642
642
  ) }),
643
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
643
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
644
644
  ] });
645
645
  }
646
646
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -680,7 +680,7 @@ function WithdrawReviewStep({
680
680
  await onConfirm();
681
681
  } catch (err) {
682
682
  const raw = err instanceof Error ? err.message : "Withdraw failed";
683
- const message = _chunkV6NJIPSScjs.formatUserError.call(void 0, raw);
683
+ const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
684
684
  setError(message);
685
685
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
686
686
  } finally {
@@ -691,68 +691,68 @@ function WithdrawReviewStep({
691
691
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
692
692
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
693
693
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
694
- _chunkV6NJIPSScjs.BodyHeader,
694
+ _chunkDX2D2TRZcjs.BodyHeader,
695
695
  {
696
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CircleArrowOutUpLeftIcon, {}),
696
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CircleArrowOutUpLeftIcon, {}),
697
697
  title: "Review withdrawal"
698
698
  }
699
699
  ),
700
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-details", children: [
701
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
700
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
701
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
702
702
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You send" }),
703
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
703
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
704
704
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
705
705
  amount,
706
706
  " ",
707
707
  sourceSymbol
708
708
  ] }),
709
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
709
+ sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
710
710
  ] })
711
711
  ] }),
712
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
712
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
713
713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
714
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
714
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
715
715
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
716
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
716
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
717
717
  ] })
718
718
  ] }),
719
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
719
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
720
720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Recipient" }),
721
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenAddress(recipient) }) })
721
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenAddress(recipient) }) })
722
722
  ] }),
723
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
723
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
724
724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
725
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
725
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
726
726
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
727
727
  amount,
728
728
  " ",
729
729
  targetSymbol
730
730
  ] }),
731
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
731
+ targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
732
732
  ] })
733
733
  ] }),
734
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
734
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
735
735
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
736
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
736
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
737
737
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
738
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
738
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
739
739
  ] })
740
740
  ] }),
741
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
741
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
742
742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Estimated time" }),
743
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: estimatedTime })
743
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
744
744
  ] })
745
745
  ] }),
746
746
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
747
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
747
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
748
748
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
749
749
  ] }),
750
750
  !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
751
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
751
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
752
752
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
753
753
  ] }),
754
754
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
755
- _chunkV6NJIPSScjs.Button,
755
+ _chunkDX2D2TRZcjs.Button,
756
756
  {
757
757
  onClick: handleConfirm,
758
758
  loading: isSubmitting,
@@ -763,7 +763,7 @@ function WithdrawReviewStep({
763
763
  }
764
764
  )
765
765
  ] }),
766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
767
767
  ] });
768
768
  }
769
769
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -774,15 +774,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
774
774
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
775
775
  var REGISTRATION_DEBOUNCE_MS = 600;
776
776
  function resolveSessionOwner(eoaAddress) {
777
- const localOwner = _chunkV6NJIPSScjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
777
+ const localOwner = _chunkDX2D2TRZcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
778
778
  if (localOwner) {
779
779
  return {
780
- account: _chunkV6NJIPSScjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
780
+ account: _chunkDX2D2TRZcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
781
781
  address: localOwner.address
782
782
  };
783
783
  }
784
- const created = _chunkV6NJIPSScjs.createSessionOwnerKey.call(void 0, );
785
- _chunkV6NJIPSScjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
784
+ const created = _chunkDX2D2TRZcjs.createSessionOwnerKey.call(void 0, );
785
+ _chunkDX2D2TRZcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
786
786
  return { account: created.account, address: created.address };
787
787
  }
788
788
  function targetsEqual(a, b) {
@@ -818,19 +818,19 @@ function WithdrawFlow({
818
818
  onError,
819
819
  debug
820
820
  }) {
821
- const onStepChangeRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onStepChange);
822
- const onEventRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onEvent);
823
- const onLifecycleRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onLifecycle);
824
- const onErrorRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onError);
821
+ const onStepChangeRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onStepChange);
822
+ const onEventRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onEvent);
823
+ const onLifecycleRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onLifecycle);
824
+ const onErrorRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onError);
825
825
  const logFlow = _react.useCallback.call(void 0,
826
826
  (message, data) => {
827
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
827
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
828
828
  },
829
829
  [debug]
830
830
  );
831
831
  const logFlowError = _react.useCallback.call(void 0,
832
832
  (message, error, data) => {
833
- _chunkV6NJIPSScjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
833
+ _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
834
834
  },
835
835
  [debug]
836
836
  );
@@ -905,14 +905,14 @@ function WithdrawFlow({
905
905
  return {
906
906
  ownerAddress: dappAddress,
907
907
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
908
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, sourceChain))),
908
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
909
909
  switchChain: dappSwitchChain
910
910
  };
911
911
  }
912
912
  return {
913
913
  ownerAddress: dappWalletClient.account.address,
914
914
  walletClient: dappWalletClient,
915
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, sourceChain))),
915
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
916
916
  switchChain: dappSwitchChain
917
917
  };
918
918
  }
@@ -923,7 +923,7 @@ function WithdrawFlow({
923
923
  return {
924
924
  ownerAddress: dappWalletClient.account.address,
925
925
  walletClient: dappWalletClient,
926
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, sourceChain))),
926
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
927
927
  switchChain: dappSwitchChain
928
928
  };
929
929
  }
@@ -980,7 +980,7 @@ function WithdrawFlow({
980
980
  const setup = await service.setupAccount({
981
981
  ownerAddress,
982
982
  sessionOwnerAddress: sessionOwner.address,
983
- targetChain: _chunkV6NJIPSScjs.toEvmCaip2.call(void 0, targetChain),
983
+ targetChain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, targetChain),
984
984
  targetToken,
985
985
  recipient: recipientForRegistration,
986
986
  signerAddress,
@@ -1005,7 +1005,7 @@ function WithdrawFlow({
1005
1005
  message: typedData.message
1006
1006
  });
1007
1007
  if (cancelled) return;
1008
- const sessionDetails = _chunkV6NJIPSScjs.buildSessionDetails.call(void 0,
1008
+ const sessionDetails = _chunkDX2D2TRZcjs.buildSessionDetails.call(void 0,
1009
1009
  setup.sessionDetailsUnsigned,
1010
1010
  signature
1011
1011
  );
@@ -1019,7 +1019,7 @@ function WithdrawFlow({
1019
1019
  eoaAddress: ownerAddress,
1020
1020
  sessionOwner: sessionOwner.address,
1021
1021
  target: {
1022
- chain: _chunkV6NJIPSScjs.toEvmCaip2.call(void 0, targetChain),
1022
+ chain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, targetChain),
1023
1023
  token: targetToken,
1024
1024
  recipient: recipientForRegistration
1025
1025
  }
@@ -1042,7 +1042,7 @@ function WithdrawFlow({
1042
1042
  } catch (err) {
1043
1043
  if (cancelled) return;
1044
1044
  const raw = err instanceof Error ? err.message : "Registration failed";
1045
- const message = _chunkV6NJIPSScjs.formatUserError.call(void 0, raw);
1045
+ const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
1046
1046
  logFlowError("auto-register:failed", err, {
1047
1047
  ownerAddress,
1048
1048
  targetChain,
@@ -1078,7 +1078,7 @@ function WithdrawFlow({
1078
1078
  const symbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1079
1079
  const decimals = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1080
1080
  return {
1081
- id: _chunkV6NJIPSScjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1081
+ id: _chunkDX2D2TRZcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1082
1082
  chainId: sourceChain,
1083
1083
  token: sourceToken,
1084
1084
  symbol,
@@ -1186,7 +1186,7 @@ function WithdrawFlow({
1186
1186
  targetToken
1187
1187
  });
1188
1188
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1189
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, sourceChain)));
1189
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain)));
1190
1190
  let result;
1191
1191
  if (onSignTransaction) {
1192
1192
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1199,7 +1199,7 @@ function WithdrawFlow({
1199
1199
  args: [transferTarget, amountUnits]
1200
1200
  })
1201
1201
  };
1202
- const request = await _chunkV6NJIPSScjs.buildSafeTransaction.call(void 0, {
1202
+ const request = await _chunkDX2D2TRZcjs.buildSafeTransaction.call(void 0, {
1203
1203
  publicClient: pc,
1204
1204
  safeAddress,
1205
1205
  to: transferData.to,
@@ -1210,7 +1210,7 @@ function WithdrawFlow({
1210
1210
  const { signature } = await onSignTransaction(request);
1211
1211
  const relayResult = await service.relayWithdraw({
1212
1212
  smartAccount,
1213
- chainId: _chunkV6NJIPSScjs.toEvmCaip2.call(void 0, sourceChain),
1213
+ chainId: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, sourceChain),
1214
1214
  safeAddress,
1215
1215
  safeTransaction: request.typedData.message,
1216
1216
  signature
@@ -1220,7 +1220,7 @@ function WithdrawFlow({
1220
1220
  }
1221
1221
  result = { txHash: relayResult.txHash };
1222
1222
  } else if (isSourceNative) {
1223
- result = await _chunkV6NJIPSScjs.executeSafeEthTransfer.call(void 0, {
1223
+ result = await _chunkDX2D2TRZcjs.executeSafeEthTransfer.call(void 0, {
1224
1224
  walletClient: signerContext.walletClient,
1225
1225
  publicClient: pc,
1226
1226
  safeAddress,
@@ -1229,7 +1229,7 @@ function WithdrawFlow({
1229
1229
  chainId: sourceChain
1230
1230
  });
1231
1231
  } else {
1232
- result = await _chunkV6NJIPSScjs.executeSafeErc20Transfer.call(void 0, {
1232
+ result = await _chunkDX2D2TRZcjs.executeSafeErc20Transfer.call(void 0, {
1233
1233
  walletClient: signerContext.walletClient,
1234
1234
  publicClient: pc,
1235
1235
  safeAddress,
@@ -1262,7 +1262,7 @@ function WithdrawFlow({
1262
1262
  targetChain,
1263
1263
  targetToken
1264
1264
  });
1265
- handleError(_chunkV6NJIPSScjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1265
+ handleError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1266
1266
  throw err;
1267
1267
  }
1268
1268
  },
@@ -1397,7 +1397,7 @@ function WithdrawFlow({
1397
1397
  state: "ready"
1398
1398
  }));
1399
1399
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1400
- _chunkV6NJIPSScjs.ConnectStep,
1400
+ _chunkDX2D2TRZcjs.ConnectStep,
1401
1401
  {
1402
1402
  walletRows: withdrawRows,
1403
1403
  onConfirmWallet: (walletId) => {
@@ -1415,7 +1415,7 @@ function WithdrawFlow({
1415
1415
  if (!signerContext) return null;
1416
1416
  if (!onSignTransaction && !signerContext.walletClient) return null;
1417
1417
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
1418
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, sourceChain)));
1418
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain)));
1419
1419
  const stepView = deriveStepView(flowStep, registration);
1420
1420
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1421
1421
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1459,7 +1459,7 @@ function WithdrawFlow({
1459
1459
  }
1460
1460
  ),
1461
1461
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1462
- _chunkV6NJIPSScjs.ProcessingStep,
1462
+ _chunkDX2D2TRZcjs.ProcessingStep,
1463
1463
  {
1464
1464
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1465
1465
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1493,7 +1493,7 @@ function deriveStepView(step, _registration) {
1493
1493
  // src/WithdrawModal.tsx
1494
1494
 
1495
1495
  var ReownWithdrawInner = _react.lazy.call(void 0,
1496
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-KGFCNAJP.cjs"))).then((m) => ({
1496
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-4B6IMTBB.cjs"))).then((m) => ({
1497
1497
  default: m.WithdrawModalReown
1498
1498
  }))
1499
1499
  );
@@ -1541,18 +1541,18 @@ function WithdrawModalInner({
1541
1541
  debug
1542
1542
  }) {
1543
1543
  const modalRef = _react.useRef.call(void 0, null);
1544
- const onReadyRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onReady);
1544
+ const onReadyRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onReady);
1545
1545
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1546
1546
  void 0
1547
1547
  );
1548
1548
  const targetChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, targetChainProp);
1549
1549
  const sourceChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, sourceChainProp);
1550
1550
  const service = _react.useMemo.call(void 0,
1551
- () => _chunkV6NJIPSScjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1551
+ () => _chunkDX2D2TRZcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1552
1552
  [backendUrl, debug]
1553
1553
  );
1554
1554
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1555
- const onErrorRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onError);
1555
+ const onErrorRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onError);
1556
1556
  _react.useEffect.call(void 0, () => {
1557
1557
  if (isOpen && onSignTransaction && !dappAddress) {
1558
1558
  _optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
@@ -1563,7 +1563,7 @@ function WithdrawModalInner({
1563
1563
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1564
1564
  _react.useEffect.call(void 0, () => {
1565
1565
  if (isOpen && modalRef.current) {
1566
- _chunkV6NJIPSScjs.applyTheme.call(void 0, modalRef.current, theme);
1566
+ _chunkDX2D2TRZcjs.applyTheme.call(void 0, modalRef.current, theme);
1567
1567
  }
1568
1568
  }, [isOpen, theme]);
1569
1569
  _react.useEffect.call(void 0, () => {
@@ -1582,7 +1582,7 @@ function WithdrawModalInner({
1582
1582
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1583
1583
  const canGoBack = backHandler !== void 0;
1584
1584
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1585
- _chunkV6NJIPSScjs.Modal,
1585
+ _chunkDX2D2TRZcjs.Modal,
1586
1586
  {
1587
1587
  isOpen,
1588
1588
  onClose,
@@ -1598,7 +1598,7 @@ function WithdrawModalInner({
1598
1598
  className: "rs-modal-header-back",
1599
1599
  "aria-label": "Go back",
1600
1600
  onClick: backHandler,
1601
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ChevronLeftIcon, {})
1601
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronLeftIcon, {})
1602
1602
  }
1603
1603
  ) }),
1604
1604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1608,7 +1608,7 @@ function WithdrawModalInner({
1608
1608
  onClick: onClose,
1609
1609
  className: "rs-modal-close",
1610
1610
  "aria-label": "Close",
1611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CloseIcon, {})
1611
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CloseIcon, {})
1612
1612
  }
1613
1613
  ) })
1614
1614
  ] }),