@rhinestone/deposit-modal 0.5.0 → 0.6.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.
@@ -32,7 +32,8 @@
32
32
 
33
33
 
34
34
 
35
- var _chunkPPFG3VBDcjs = require('./chunk-PPFG3VBD.cjs');
35
+
36
+ var _chunkZDYV536Qcjs = require('./chunk-ZDYV536Q.cjs');
36
37
 
37
38
 
38
39
 
@@ -263,7 +264,7 @@ function WithdrawFormStep({
263
264
  setIsSwitching(true);
264
265
  switchChain(asset.chainId).catch((err) => {
265
266
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
266
- setError(_chunkPPFG3VBDcjs.formatUserError.call(void 0, raw));
267
+ setError(_chunkZDYV536Qcjs.formatUserError.call(void 0, raw));
267
268
  }).finally(() => {
268
269
  setIsSwitching(false);
269
270
  });
@@ -283,7 +284,7 @@ function WithdrawFormStep({
283
284
  return;
284
285
  }
285
286
  try {
286
- const bal = _chunkPPFG3VBDcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
287
+ const bal = _chunkZDYV536Qcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
287
288
  address: asset.token,
288
289
  abi: _viem.erc20Abi,
289
290
  functionName: "balanceOf",
@@ -394,7 +395,7 @@ function WithdrawFormStep({
394
395
  await onSubmit(recipient, amount);
395
396
  } catch (err) {
396
397
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
397
- setError(_chunkPPFG3VBDcjs.formatUserError.call(void 0, raw));
398
+ setError(_chunkZDYV536Qcjs.formatUserError.call(void 0, raw));
398
399
  } finally {
399
400
  setIsSubmitting(false);
400
401
  }
@@ -410,16 +411,16 @@ function WithdrawFormStep({
410
411
  if (isBalanceLoading) {
411
412
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
412
413
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
413
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Spinner, { className: "rs-spinner--lg" }),
414
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.Spinner, { className: "rs-spinner--lg" }),
414
415
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
415
416
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
416
417
  ] }),
417
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
418
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.PoweredBy, {})
418
419
  ] });
419
420
  }
420
421
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
421
422
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
422
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
423
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
423
424
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
424
425
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
425
426
  "label",
@@ -465,7 +466,7 @@ function WithdrawFormStep({
465
466
  ),
466
467
  isRecipientConnected ? null : "Use connected"
467
468
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
468
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
469
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
469
470
  isRecipientConnected ? null : "Use connected"
470
471
  ] })
471
472
  }
@@ -505,7 +506,7 @@ function WithdrawFormStep({
505
506
  ) })
506
507
  ] }),
507
508
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
508
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkPPFG3VBDcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
509
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkZDYV536Qcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
509
510
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
510
511
  "Balance: ",
511
512
  formattedBalance,
@@ -546,7 +547,7 @@ function WithdrawFormStep({
546
547
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
547
548
  ] }),
548
549
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
549
- _chunkPPFG3VBDcjs.ChevronDownIcon,
550
+ _chunkZDYV536Qcjs.ChevronDownIcon,
550
551
  {
551
552
  className: "rs-withdraw-dropdown-arrow",
552
553
  style: {
@@ -615,7 +616,7 @@ function WithdrawFormStep({
615
616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
616
617
  ] }),
617
618
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
618
- _chunkPPFG3VBDcjs.ChevronDownIcon,
619
+ _chunkZDYV536Qcjs.ChevronDownIcon,
619
620
  {
620
621
  className: "rs-withdraw-dropdown-arrow",
621
622
  style: {
@@ -655,10 +656,10 @@ function WithdrawFormStep({
655
656
  ] })
656
657
  ] }),
657
658
  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 ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
658
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
659
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: registrationError }),
659
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.Callout, { variant: "error", children: error }),
660
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.Callout, { variant: "error", children: registrationError }),
660
661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
661
- _chunkPPFG3VBDcjs.Button,
662
+ _chunkZDYV536Qcjs.Button,
662
663
  {
663
664
  onClick: handleWithdraw,
664
665
  fullWidth: true,
@@ -668,7 +669,7 @@ function WithdrawFormStep({
668
669
  }
669
670
  )
670
671
  ] }),
671
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
672
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.PoweredBy, {})
672
673
  ] });
673
674
  }
674
675
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -703,9 +704,9 @@ function WithdrawReviewStep({
703
704
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceSymbol);
704
705
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
705
706
  const amountNumber = Number(amount);
706
- const formattedSendAmount = _nullishCoalesce(_chunkPPFG3VBDcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
707
- const prices = _chunkPPFG3VBDcjs.useTokenPrices.call(void 0, service, [sourceSymbol, targetSymbol]);
708
- const receiveDisplay = _nullishCoalesce(_chunkPPFG3VBDcjs.formatReceiveEstimate.call(void 0, {
707
+ const formattedSendAmount = _nullishCoalesce(_chunkZDYV536Qcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
708
+ const prices = _chunkZDYV536Qcjs.useTokenPrices.call(void 0, service, [sourceSymbol, targetSymbol]);
709
+ const receiveDisplay = _nullishCoalesce(_chunkZDYV536Qcjs.formatReceiveEstimate.call(void 0, {
709
710
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
710
711
  sourceSymbol,
711
712
  targetSymbol,
@@ -719,7 +720,7 @@ function WithdrawReviewStep({
719
720
  await onConfirm();
720
721
  } catch (err) {
721
722
  const raw = err instanceof Error ? err.message : "Withdraw failed";
722
- const message = _chunkPPFG3VBDcjs.formatUserError.call(void 0, raw);
723
+ const message = _chunkZDYV536Qcjs.formatUserError.call(void 0, raw);
723
724
  setError(message);
724
725
  _optionalChain([onError, 'optionalCall', _10 => _10(message, "WITHDRAW_REVIEW_ERROR")]);
725
726
  } finally {
@@ -730,9 +731,9 @@ function WithdrawReviewStep({
730
731
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
731
732
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
732
733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
733
- _chunkPPFG3VBDcjs.BodyHeader,
734
+ _chunkZDYV536Qcjs.BodyHeader,
734
735
  {
735
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CircleArrowOutUpLeftIcon, {}),
736
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.CircleArrowOutUpLeftIcon, {}),
736
737
  title: "Review withdrawal"
737
738
  }
738
739
  ),
@@ -778,10 +779,10 @@ function WithdrawReviewStep({
778
779
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
779
780
  ] })
780
781
  ] }),
781
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: error }),
782
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.Callout, { variant: "error", children: registrationError }),
782
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.Callout, { variant: "error", children: error }),
783
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.Callout, { variant: "error", children: registrationError }),
783
784
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
784
- _chunkPPFG3VBDcjs.Button,
785
+ _chunkZDYV536Qcjs.Button,
785
786
  {
786
787
  onClick: handleConfirm,
787
788
  loading: isSubmitting,
@@ -792,7 +793,7 @@ function WithdrawReviewStep({
792
793
  }
793
794
  )
794
795
  ] }),
795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.PoweredBy, {})
796
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.PoweredBy, {})
796
797
  ] });
797
798
  }
798
799
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -804,15 +805,15 @@ var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
804
805
  var REGISTRATION_DEBOUNCE_MS = 600;
805
806
  var WITHDRAW_INDEXING_DELAY_MS = 2e3;
806
807
  function resolveSessionOwner(eoaAddress) {
807
- const localOwner = _chunkPPFG3VBDcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
808
+ const localOwner = _chunkZDYV536Qcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
808
809
  if (localOwner) {
809
810
  return {
810
- account: _chunkPPFG3VBDcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
811
+ account: _chunkZDYV536Qcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
811
812
  address: localOwner.address
812
813
  };
813
814
  }
814
- const created = _chunkPPFG3VBDcjs.createSessionOwnerKey.call(void 0, );
815
- _chunkPPFG3VBDcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
815
+ const created = _chunkZDYV536Qcjs.createSessionOwnerKey.call(void 0, );
816
+ _chunkZDYV536Qcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
816
817
  return { account: created.account, address: created.address };
817
818
  }
818
819
  function targetsEqual(a, b) {
@@ -847,11 +848,11 @@ function WithdrawFlow({
847
848
  onError,
848
849
  debug
849
850
  }) {
850
- const rpcUrls = _chunkPPFG3VBDcjs.useRpcUrls.call(void 0, );
851
- const onStepChangeRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onStepChange);
852
- const onEventRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onEvent);
853
- const onLifecycleRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onLifecycle);
854
- const onErrorRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onError);
851
+ const rpcUrls = _chunkZDYV536Qcjs.useRpcUrls.call(void 0, );
852
+ const onStepChangeRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onStepChange);
853
+ const onEventRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onEvent);
854
+ const onLifecycleRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onLifecycle);
855
+ const onErrorRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onError);
855
856
  const isFlowActiveRef = _react.useRef.call(void 0, true);
856
857
  const submitGenerationRef = _react.useRef.call(void 0, 0);
857
858
  _react.useEffect.call(void 0, () => {
@@ -862,13 +863,13 @@ function WithdrawFlow({
862
863
  }, []);
863
864
  const logFlow = _react.useCallback.call(void 0,
864
865
  (message, data) => {
865
- _chunkPPFG3VBDcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
866
+ _chunkZDYV536Qcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
866
867
  },
867
868
  [debug]
868
869
  );
869
870
  const logFlowError = _react.useCallback.call(void 0,
870
871
  (message, error, data) => {
871
- _chunkPPFG3VBDcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
872
+ _chunkZDYV536Qcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
872
873
  },
873
874
  [debug]
874
875
  );
@@ -944,14 +945,14 @@ function WithdrawFlow({
944
945
  return {
945
946
  ownerAddress: dappAddress,
946
947
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
947
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
948
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkZDYV536Qcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
948
949
  switchChain: dappSwitchChain
949
950
  };
950
951
  }
951
952
  return {
952
953
  ownerAddress: dappWalletClient.account.address,
953
954
  walletClient: dappWalletClient,
954
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
955
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkZDYV536Qcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
955
956
  switchChain: dappSwitchChain
956
957
  };
957
958
  }
@@ -962,7 +963,7 @@ function WithdrawFlow({
962
963
  return {
963
964
  ownerAddress: dappWalletClient.account.address,
964
965
  walletClient: dappWalletClient,
965
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
966
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkZDYV536Qcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
966
967
  switchChain: dappSwitchChain
967
968
  };
968
969
  }
@@ -1045,7 +1046,7 @@ function WithdrawFlow({
1045
1046
  message: typedData.message
1046
1047
  });
1047
1048
  if (cancelled) return;
1048
- const sessionDetails = _chunkPPFG3VBDcjs.buildSessionDetails.call(void 0,
1049
+ const sessionDetails = _chunkZDYV536Qcjs.buildSessionDetails.call(void 0,
1049
1050
  setup.sessionDetailsUnsigned,
1050
1051
  signature
1051
1052
  );
@@ -1082,7 +1083,7 @@ function WithdrawFlow({
1082
1083
  } catch (err) {
1083
1084
  if (cancelled) return;
1084
1085
  const raw = err instanceof Error ? err.message : "Registration failed";
1085
- const message = _chunkPPFG3VBDcjs.formatUserError.call(void 0, raw);
1086
+ const message = _chunkZDYV536Qcjs.formatUserError.call(void 0, raw);
1086
1087
  logFlowError("auto-register:failed", err, {
1087
1088
  ownerAddress,
1088
1089
  targetChain,
@@ -1118,7 +1119,7 @@ function WithdrawFlow({
1118
1119
  const symbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1119
1120
  const decimals = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1120
1121
  return {
1121
- id: _chunkPPFG3VBDcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1122
+ id: _chunkZDYV536Qcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1122
1123
  chainId: sourceChain,
1123
1124
  token: sourceToken,
1124
1125
  symbol,
@@ -1258,7 +1259,7 @@ function WithdrawFlow({
1258
1259
  targetToken
1259
1260
  });
1260
1261
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1261
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _46 => _46.publicClient]), () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
1262
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _46 => _46.publicClient]), () => ( _chunkZDYV536Qcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
1262
1263
  let result;
1263
1264
  if (onSignTransaction) {
1264
1265
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1346,7 +1347,7 @@ function WithdrawFlow({
1346
1347
  targetChain,
1347
1348
  targetToken
1348
1349
  });
1349
- handleError(_chunkPPFG3VBDcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1350
+ handleError(_chunkZDYV536Qcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1350
1351
  throw err;
1351
1352
  }
1352
1353
  },
@@ -1486,7 +1487,7 @@ function WithdrawFlow({
1486
1487
  state: "ready"
1487
1488
  }));
1488
1489
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1489
- _chunkPPFG3VBDcjs.ConnectStep,
1490
+ _chunkZDYV536Qcjs.ConnectStep,
1490
1491
  {
1491
1492
  walletRows: withdrawRows,
1492
1493
  onConfirmWallet: (walletId) => {
@@ -1504,7 +1505,7 @@ function WithdrawFlow({
1504
1505
  if (!signerContext) return null;
1505
1506
  if (!onSignTransaction && !signerContext.walletClient) return null;
1506
1507
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _63 => _63.kind]) === "external" ? selectedWalletOption.address : void 0;
1507
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkPPFG3VBDcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
1508
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkZDYV536Qcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
1508
1509
  const depositAddress = registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : void 0;
1509
1510
  const stepView = deriveStepView(flowStep, registration);
1510
1511
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
@@ -1551,7 +1552,7 @@ function WithdrawFlow({
1551
1552
  }
1552
1553
  ),
1553
1554
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1554
- _chunkPPFG3VBDcjs.ProcessingStep,
1555
+ _chunkZDYV536Qcjs.ProcessingStep,
1555
1556
  {
1556
1557
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1557
1558
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1593,7 +1594,7 @@ function deriveStepView(step, _registration) {
1593
1594
  // src/WithdrawModal.tsx
1594
1595
 
1595
1596
  var ReownWithdrawInner = _react.lazy.call(void 0,
1596
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-LIP6FHCB.cjs"))).then((m) => ({
1597
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-QSQUV6HX.cjs"))).then((m) => ({
1597
1598
  default: m.WithdrawModalReown
1598
1599
  }))
1599
1600
  );
@@ -1622,7 +1623,7 @@ function WithdrawModalInner({
1622
1623
  closeOnOverlayClick,
1623
1624
  allowedRoutes,
1624
1625
  backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
1625
- rpcUrls,
1626
+ rpcUrls: rpcUrlsProp,
1626
1627
  signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
1627
1628
  sessionChainIds,
1628
1629
  forceRegister = false,
@@ -1641,18 +1642,19 @@ function WithdrawModalInner({
1641
1642
  debug
1642
1643
  }) {
1643
1644
  const modalRef = _react.useRef.call(void 0, null);
1644
- const onReadyRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onReady);
1645
+ const onReadyRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onReady);
1645
1646
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1646
1647
  void 0
1647
1648
  );
1648
1649
  const targetChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
1649
1650
  const sourceChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp);
1651
+ const rpcUrls = _chunkZDYV536Qcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1650
1652
  const service = _react.useMemo.call(void 0,
1651
- () => _chunkPPFG3VBDcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1653
+ () => _chunkZDYV536Qcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1652
1654
  [backendUrl, debug]
1653
1655
  );
1654
1656
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1655
- const onErrorRef = _chunkPPFG3VBDcjs.useLatestRef.call(void 0, onError);
1657
+ const onErrorRef = _chunkZDYV536Qcjs.useLatestRef.call(void 0, onError);
1656
1658
  _react.useEffect.call(void 0, () => {
1657
1659
  if (isOpen && onSignTransaction && !dappAddress) {
1658
1660
  _optionalChain([onErrorRef, 'access', _64 => _64.current, 'optionalCall', _65 => _65({
@@ -1663,7 +1665,7 @@ function WithdrawModalInner({
1663
1665
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1664
1666
  _react.useEffect.call(void 0, () => {
1665
1667
  if (isOpen && modalRef.current) {
1666
- _chunkPPFG3VBDcjs.applyTheme.call(void 0, modalRef.current, theme);
1668
+ _chunkZDYV536Qcjs.applyTheme.call(void 0, modalRef.current, theme);
1667
1669
  }
1668
1670
  }, [isOpen, theme]);
1669
1671
  _react.useEffect.call(void 0, () => {
@@ -1681,8 +1683,8 @@ function WithdrawModalInner({
1681
1683
  }, []);
1682
1684
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _68 => _68.showBackButton]), () => ( true));
1683
1685
  const canGoBack = backHandler !== void 0;
1684
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1685
- _chunkPPFG3VBDcjs.Modal,
1686
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1687
+ _chunkZDYV536Qcjs.Modal,
1686
1688
  {
1687
1689
  isOpen,
1688
1690
  onClose,
@@ -1698,7 +1700,7 @@ function WithdrawModalInner({
1698
1700
  className: "rs-modal-header-back",
1699
1701
  "aria-label": "Go back",
1700
1702
  onClick: backHandler,
1701
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.ChevronLeftIcon, {})
1703
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.ChevronLeftIcon, {})
1702
1704
  }
1703
1705
  ) }),
1704
1706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1708,7 +1710,7 @@ function WithdrawModalInner({
1708
1710
  onClick: onClose,
1709
1711
  className: "rs-modal-close",
1710
1712
  "aria-label": "Close",
1711
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPFG3VBDcjs.CloseIcon, {})
1713
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZDYV536Qcjs.CloseIcon, {})
1712
1714
  }
1713
1715
  ) })
1714
1716
  ] }),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isUnsupportedChainSwitchError,
3
3
  rpcUrlFor
4
- } from "./chunk-PS7HJ62M.mjs";
4
+ } from "./chunk-GQDVHMOT.mjs";
5
5
  import {
6
6
  SUPPORTED_CHAINS,
7
7
  getChainName