@rhinestone/deposit-modal 0.3.0-alpha.13 → 0.3.0-alpha.14

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
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkSEOQ66FWcjs = require('./chunk-SEOQ66FW.cjs');
3
+ var _chunk3CYGTYMYcjs = require('./chunk-3CYGTYMY.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkPWV2UJP3cjs = require('./chunk-PWV2UJP3.cjs');
8
- require('./chunk-DZNXG5JK.cjs');
7
+ var _chunkJTULAFMUcjs = require('./chunk-JTULAFMU.cjs');
8
+ require('./chunk-N4XRQPVA.cjs');
9
9
  require('./chunk-7JIDIX27.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -14,7 +14,7 @@ var _react3 = require('@reown/appkit/react');
14
14
  var _react5 = require('@reown/appkit-adapter-solana/react');
15
15
  var _jsxruntime = require('react/jsx-runtime');
16
16
  function DepositModalWithReown(props) {
17
- const reown = _chunkPWV2UJP3cjs.useReownWallet.call(void 0, );
17
+ const reown = _chunkJTULAFMUcjs.useReownWallet.call(void 0, );
18
18
  const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
19
19
  const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
20
20
  enableSolana ? "solana" : "eip155"
@@ -35,7 +35,7 @@ function DepositModalWithReown(props) {
35
35
  reown.disconnect();
36
36
  }, [reown.disconnect]);
37
37
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38
- _chunkSEOQ66FWcjs.DepositModalInner,
38
+ _chunk3CYGTYMYcjs.DepositModalInner,
39
39
  {
40
40
  ...props,
41
41
  reownWallet: reownWithSolana,
@@ -46,7 +46,7 @@ function DepositModalWithReown(props) {
46
46
  }
47
47
  function DepositModalReown(props) {
48
48
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
49
- _chunkPWV2UJP3cjs.ReownWalletProvider,
49
+ _chunkJTULAFMUcjs.ReownWalletProvider,
50
50
  {
51
51
  projectId: props.reownAppId,
52
52
  theme: props.theme,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-HZBO2SIZ.mjs";
3
+ } from "./chunk-XG474KUR.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-YB3JPWJW.mjs";
8
- import "./chunk-6K4JHM2D.mjs";
7
+ } from "./chunk-JTMGFWXO.mjs";
8
+ import "./chunk-4ZN726P5.mjs";
9
9
  import "./chunk-SZIYS42B.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -46,7 +46,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
46
46
  logoPaddingStyle: "circle",
47
47
  logoPadding: 5,
48
48
  removeQrCodeBehindLogo: true,
49
- quietZone: 10,
49
+ quietZone: 0,
50
50
  bgColor,
51
51
  fgColor
52
52
  }
@@ -46,7 +46,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
46
46
  logoPaddingStyle: "circle",
47
47
  logoPadding: 5,
48
48
  removeQrCodeBehindLogo: true,
49
- quietZone: 10,
49
+ quietZone: 0,
50
50
  bgColor,
51
51
  fgColor
52
52
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-EC63ZHY4.mjs";
3
+ } from "./chunk-VD4WTEHP.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
- } from "./chunk-YB3JPWJW.mjs";
8
- import "./chunk-6K4JHM2D.mjs";
7
+ } from "./chunk-JTMGFWXO.mjs";
8
+ import "./chunk-4ZN726P5.mjs";
9
9
  import "./chunk-SZIYS42B.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6RCOF3XUcjs = require('./chunk-6RCOF3XU.cjs');
3
+ var _chunk2NUXDEEOcjs = require('./chunk-2NUXDEEO.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkPWV2UJP3cjs = require('./chunk-PWV2UJP3.cjs');
8
- require('./chunk-DZNXG5JK.cjs');
7
+ var _chunkJTULAFMUcjs = require('./chunk-JTULAFMU.cjs');
8
+ require('./chunk-N4XRQPVA.cjs');
9
9
  require('./chunk-7JIDIX27.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  var _react = require('react');
13
13
  var _jsxruntime = require('react/jsx-runtime');
14
14
  function WithdrawModalWithReown(props) {
15
- const reown = _chunkPWV2UJP3cjs.useReownWallet.call(void 0, );
15
+ const reown = _chunkJTULAFMUcjs.useReownWallet.call(void 0, );
16
16
  const handleConnect = _react.useCallback.call(void 0, () => {
17
17
  reown.openConnect();
18
18
  }, [reown.openConnect]);
@@ -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
- _chunk6RCOF3XUcjs.WithdrawModalInner,
23
+ _chunk2NUXDEEOcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -30,7 +30,7 @@ function WithdrawModalWithReown(props) {
30
30
  );
31
31
  }
32
32
  function WithdrawModalReown(props) {
33
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPWV2UJP3cjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
33
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTULAFMUcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
34
34
  }
35
35
 
36
36
 
@@ -31,7 +31,7 @@
31
31
 
32
32
 
33
33
 
34
- var _chunkDZNXG5JKcjs = require('./chunk-DZNXG5JK.cjs');
34
+ var _chunkN4XRQPVAcjs = require('./chunk-N4XRQPVA.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(_chunkDZNXG5JKcjs.formatUserError.call(void 0, raw));
258
+ setError(_chunkN4XRQPVAcjs.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 = _chunkDZNXG5JKcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
278
+ const bal = _chunkN4XRQPVAcjs.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(_chunkDZNXG5JKcjs.formatUserError.call(void 0, raw));
382
+ setError(_chunkN4XRQPVAcjs.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-screen", children: [
389
389
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.Spinner, { className: "rs-spinner--lg" }),
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.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 ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
393
393
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.PoweredBy, {})
394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
395
395
  ] });
396
396
  }
397
397
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
398
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.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,
402
402
  "label",
@@ -442,7 +442,7 @@ function WithdrawFormStep({
442
442
  ),
443
443
  isRecipientConnected ? null : "Use connected"
444
444
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
445
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
445
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
446
446
  isRecipientConnected ? null : "Use connected"
447
447
  ] })
448
448
  }
@@ -482,7 +482,7 @@ function WithdrawFormStep({
482
482
  ) })
483
483
  ] }),
484
484
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
485
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkDZNXG5JKcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
485
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkN4XRQPVAcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
486
486
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
487
487
  "Balance: ",
488
488
  formattedBalance,
@@ -523,7 +523,7 @@ function WithdrawFormStep({
523
523
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
524
524
  ] }),
525
525
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
526
- _chunkDZNXG5JKcjs.ChevronDownIcon,
526
+ _chunkN4XRQPVAcjs.ChevronDownIcon,
527
527
  {
528
528
  className: "rs-withdraw-dropdown-arrow",
529
529
  style: {
@@ -592,7 +592,7 @@ function WithdrawFormStep({
592
592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
593
593
  ] }),
594
594
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
595
- _chunkDZNXG5JKcjs.ChevronDownIcon,
595
+ _chunkN4XRQPVAcjs.ChevronDownIcon,
596
596
  {
597
597
  className: "rs-withdraw-dropdown-arrow",
598
598
  style: {
@@ -632,10 +632,10 @@ function WithdrawFormStep({
632
632
  ] })
633
633
  ] }),
634
634
  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 ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
635
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.Callout, { variant: "error", children: error }),
636
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.Callout, { variant: "error", children: registrationError }),
635
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
636
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: registrationError }),
637
637
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
638
- _chunkDZNXG5JKcjs.Button,
638
+ _chunkN4XRQPVAcjs.Button,
639
639
  {
640
640
  onClick: handleWithdraw,
641
641
  fullWidth: true,
@@ -645,7 +645,7 @@ function WithdrawFormStep({
645
645
  }
646
646
  )
647
647
  ] }),
648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.PoweredBy, {})
648
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
649
649
  ] });
650
650
  }
651
651
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -685,7 +685,7 @@ function WithdrawReviewStep({
685
685
  await onConfirm();
686
686
  } catch (err) {
687
687
  const raw = err instanceof Error ? err.message : "Withdraw failed";
688
- const message = _chunkDZNXG5JKcjs.formatUserError.call(void 0, raw);
688
+ const message = _chunkN4XRQPVAcjs.formatUserError.call(void 0, raw);
689
689
  setError(message);
690
690
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
691
691
  } finally {
@@ -696,9 +696,9 @@ function WithdrawReviewStep({
696
696
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
697
697
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
698
698
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
699
- _chunkDZNXG5JKcjs.BodyHeader,
699
+ _chunkN4XRQPVAcjs.BodyHeader,
700
700
  {
701
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.CircleArrowOutUpLeftIcon, {}),
701
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CircleArrowOutUpLeftIcon, {}),
702
702
  title: "Review withdrawal"
703
703
  }
704
704
  ),
@@ -748,10 +748,10 @@ function WithdrawReviewStep({
748
748
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
749
749
  ] })
750
750
  ] }),
751
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.Callout, { variant: "error", children: error }),
752
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.Callout, { variant: "error", children: registrationError }),
751
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
752
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: registrationError }),
753
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
754
- _chunkDZNXG5JKcjs.Button,
754
+ _chunkN4XRQPVAcjs.Button,
755
755
  {
756
756
  onClick: handleConfirm,
757
757
  loading: isSubmitting,
@@ -762,7 +762,7 @@ function WithdrawReviewStep({
762
762
  }
763
763
  )
764
764
  ] }),
765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDZNXG5JKcjs.PoweredBy, {})
765
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
766
766
  ] });
767
767
  }
768
768
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -773,15 +773,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
773
773
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
774
774
  var REGISTRATION_DEBOUNCE_MS = 600;
775
775
  function resolveSessionOwner(eoaAddress) {
776
- const localOwner = _chunkDZNXG5JKcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
776
+ const localOwner = _chunkN4XRQPVAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
777
777
  if (localOwner) {
778
778
  return {
779
- account: _chunkDZNXG5JKcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
779
+ account: _chunkN4XRQPVAcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
780
780
  address: localOwner.address
781
781
  };
782
782
  }
783
- const created = _chunkDZNXG5JKcjs.createSessionOwnerKey.call(void 0, );
784
- _chunkDZNXG5JKcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
783
+ const created = _chunkN4XRQPVAcjs.createSessionOwnerKey.call(void 0, );
784
+ _chunkN4XRQPVAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
785
785
  return { account: created.account, address: created.address };
786
786
  }
787
787
  function targetsEqual(a, b) {
@@ -816,19 +816,19 @@ function WithdrawFlow({
816
816
  onError,
817
817
  debug
818
818
  }) {
819
- const onStepChangeRef = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onStepChange);
820
- const onEventRef = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onEvent);
821
- const onLifecycleRef = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onLifecycle);
822
- const onErrorRef = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onError);
819
+ const onStepChangeRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onStepChange);
820
+ const onEventRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onEvent);
821
+ const onLifecycleRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onLifecycle);
822
+ const onErrorRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onError);
823
823
  const logFlow = _react.useCallback.call(void 0,
824
824
  (message, data) => {
825
- _chunkDZNXG5JKcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
825
+ _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
826
826
  },
827
827
  [debug]
828
828
  );
829
829
  const logFlowError = _react.useCallback.call(void 0,
830
830
  (message, error, data) => {
831
- _chunkDZNXG5JKcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
831
+ _chunkN4XRQPVAcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
832
832
  },
833
833
  [debug]
834
834
  );
@@ -903,14 +903,14 @@ function WithdrawFlow({
903
903
  return {
904
904
  ownerAddress: dappAddress,
905
905
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
906
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDZNXG5JKcjs.getPublicClient.call(void 0, sourceChain))),
906
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, sourceChain))),
907
907
  switchChain: dappSwitchChain
908
908
  };
909
909
  }
910
910
  return {
911
911
  ownerAddress: dappWalletClient.account.address,
912
912
  walletClient: dappWalletClient,
913
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDZNXG5JKcjs.getPublicClient.call(void 0, sourceChain))),
913
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, sourceChain))),
914
914
  switchChain: dappSwitchChain
915
915
  };
916
916
  }
@@ -921,7 +921,7 @@ function WithdrawFlow({
921
921
  return {
922
922
  ownerAddress: dappWalletClient.account.address,
923
923
  walletClient: dappWalletClient,
924
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDZNXG5JKcjs.getPublicClient.call(void 0, sourceChain))),
924
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, sourceChain))),
925
925
  switchChain: dappSwitchChain
926
926
  };
927
927
  }
@@ -978,7 +978,7 @@ function WithdrawFlow({
978
978
  const setup = await service.setupAccount({
979
979
  ownerAddress,
980
980
  sessionOwnerAddress: sessionOwner.address,
981
- targetChain: _chunkDZNXG5JKcjs.toEvmCaip2.call(void 0, targetChain),
981
+ targetChain: _chunkN4XRQPVAcjs.toEvmCaip2.call(void 0, targetChain),
982
982
  targetToken,
983
983
  recipient: recipientForRegistration,
984
984
  signerAddress,
@@ -1003,7 +1003,7 @@ function WithdrawFlow({
1003
1003
  message: typedData.message
1004
1004
  });
1005
1005
  if (cancelled) return;
1006
- const sessionDetails = _chunkDZNXG5JKcjs.buildSessionDetails.call(void 0,
1006
+ const sessionDetails = _chunkN4XRQPVAcjs.buildSessionDetails.call(void 0,
1007
1007
  setup.sessionDetailsUnsigned,
1008
1008
  signature
1009
1009
  );
@@ -1017,7 +1017,7 @@ function WithdrawFlow({
1017
1017
  eoaAddress: ownerAddress,
1018
1018
  sessionOwner: sessionOwner.address,
1019
1019
  target: {
1020
- chain: _chunkDZNXG5JKcjs.toEvmCaip2.call(void 0, targetChain),
1020
+ chain: _chunkN4XRQPVAcjs.toEvmCaip2.call(void 0, targetChain),
1021
1021
  token: targetToken,
1022
1022
  recipient: recipientForRegistration
1023
1023
  }
@@ -1040,7 +1040,7 @@ function WithdrawFlow({
1040
1040
  } catch (err) {
1041
1041
  if (cancelled) return;
1042
1042
  const raw = err instanceof Error ? err.message : "Registration failed";
1043
- const message = _chunkDZNXG5JKcjs.formatUserError.call(void 0, raw);
1043
+ const message = _chunkN4XRQPVAcjs.formatUserError.call(void 0, raw);
1044
1044
  logFlowError("auto-register:failed", err, {
1045
1045
  ownerAddress,
1046
1046
  targetChain,
@@ -1076,7 +1076,7 @@ function WithdrawFlow({
1076
1076
  const symbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1077
1077
  const decimals = _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1078
1078
  return {
1079
- id: _chunkDZNXG5JKcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1079
+ id: _chunkN4XRQPVAcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1080
1080
  chainId: sourceChain,
1081
1081
  token: sourceToken,
1082
1082
  symbol,
@@ -1184,7 +1184,7 @@ function WithdrawFlow({
1184
1184
  targetToken
1185
1185
  });
1186
1186
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1187
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkDZNXG5JKcjs.getPublicClient.call(void 0, sourceChain)));
1187
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, sourceChain)));
1188
1188
  let result;
1189
1189
  if (onSignTransaction) {
1190
1190
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1197,7 +1197,7 @@ function WithdrawFlow({
1197
1197
  args: [transferTarget, amountUnits]
1198
1198
  })
1199
1199
  };
1200
- const request = await _chunkDZNXG5JKcjs.buildSafeTransaction.call(void 0, {
1200
+ const request = await _chunkN4XRQPVAcjs.buildSafeTransaction.call(void 0, {
1201
1201
  publicClient: pc,
1202
1202
  safeAddress,
1203
1203
  to: transferData.to,
@@ -1208,7 +1208,7 @@ function WithdrawFlow({
1208
1208
  const { signature } = await onSignTransaction(request);
1209
1209
  const relayResult = await service.relayWithdraw({
1210
1210
  smartAccount,
1211
- chainId: _chunkDZNXG5JKcjs.toEvmCaip2.call(void 0, sourceChain),
1211
+ chainId: _chunkN4XRQPVAcjs.toEvmCaip2.call(void 0, sourceChain),
1212
1212
  safeAddress,
1213
1213
  safeTransaction: request.typedData.message,
1214
1214
  signature
@@ -1218,7 +1218,7 @@ function WithdrawFlow({
1218
1218
  }
1219
1219
  result = { txHash: relayResult.txHash };
1220
1220
  } else if (isSourceNative) {
1221
- result = await _chunkDZNXG5JKcjs.executeSafeEthTransfer.call(void 0, {
1221
+ result = await _chunkN4XRQPVAcjs.executeSafeEthTransfer.call(void 0, {
1222
1222
  walletClient: signerContext.walletClient,
1223
1223
  publicClient: pc,
1224
1224
  safeAddress,
@@ -1227,7 +1227,7 @@ function WithdrawFlow({
1227
1227
  chainId: sourceChain
1228
1228
  });
1229
1229
  } else {
1230
- result = await _chunkDZNXG5JKcjs.executeSafeErc20Transfer.call(void 0, {
1230
+ result = await _chunkN4XRQPVAcjs.executeSafeErc20Transfer.call(void 0, {
1231
1231
  walletClient: signerContext.walletClient,
1232
1232
  publicClient: pc,
1233
1233
  safeAddress,
@@ -1260,7 +1260,7 @@ function WithdrawFlow({
1260
1260
  targetChain,
1261
1261
  targetToken
1262
1262
  });
1263
- handleError(_chunkDZNXG5JKcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1263
+ handleError(_chunkN4XRQPVAcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1264
1264
  throw err;
1265
1265
  }
1266
1266
  },
@@ -1399,7 +1399,7 @@ function WithdrawFlow({
1399
1399
  state: "ready"
1400
1400
  }));
1401
1401
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1402
- _chunkDZNXG5JKcjs.ConnectStep,
1402
+ _chunkN4XRQPVAcjs.ConnectStep,
1403
1403
  {
1404
1404
  walletRows: withdrawRows,
1405
1405
  onConfirmWallet: (walletId) => {
@@ -1417,7 +1417,7 @@ function WithdrawFlow({
1417
1417
  if (!signerContext) return null;
1418
1418
  if (!onSignTransaction && !signerContext.walletClient) return null;
1419
1419
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
1420
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkDZNXG5JKcjs.getPublicClient.call(void 0, sourceChain)));
1420
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, sourceChain)));
1421
1421
  const stepView = deriveStepView(flowStep, registration);
1422
1422
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1423
1423
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1461,7 +1461,7 @@ function WithdrawFlow({
1461
1461
  }
1462
1462
  ),
1463
1463
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1464
- _chunkDZNXG5JKcjs.ProcessingStep,
1464
+ _chunkN4XRQPVAcjs.ProcessingStep,
1465
1465
  {
1466
1466
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1467
1467
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1494,7 +1494,7 @@ function deriveStepView(step, _registration) {
1494
1494
  // src/WithdrawModal.tsx
1495
1495
 
1496
1496
  var ReownWithdrawInner = _react.lazy.call(void 0,
1497
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-T3TPJIME.cjs"))).then((m) => ({
1497
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-Y3NRAKXJ.cjs"))).then((m) => ({
1498
1498
  default: m.WithdrawModalReown
1499
1499
  }))
1500
1500
  );
@@ -1541,18 +1541,18 @@ function WithdrawModalInner({
1541
1541
  debug
1542
1542
  }) {
1543
1543
  const modalRef = _react.useRef.call(void 0, null);
1544
- const onReadyRef = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onReady);
1544
+ const onReadyRef = _chunkN4XRQPVAcjs.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 = _chunk7JIDIX27cjs.getChainId.call(void 0, targetChainProp);
1549
1549
  const sourceChain = _chunk7JIDIX27cjs.getChainId.call(void 0, sourceChainProp);
1550
1550
  const service = _react.useMemo.call(void 0,
1551
- () => _chunkDZNXG5JKcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1551
+ () => _chunkN4XRQPVAcjs.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 = _chunkDZNXG5JKcjs.useLatestRef.call(void 0, onError);
1555
+ const onErrorRef = _chunkN4XRQPVAcjs.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
- _chunkDZNXG5JKcjs.applyTheme.call(void 0, modalRef.current, theme);
1566
+ _chunkN4XRQPVAcjs.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
- _chunkDZNXG5JKcjs.Modal,
1585
+ _chunkN4XRQPVAcjs.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, _chunkDZNXG5JKcjs.ChevronLeftIcon, {})
1601
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.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, _chunkDZNXG5JKcjs.CloseIcon, {})
1611
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CloseIcon, {})
1612
1612
  }
1613
1613
  ) })
1614
1614
  ] }),