@rhinestone/deposit-modal 0.3.0 → 0.3.1

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 (40) hide show
  1. package/dist/{DepositModalReown-6SUEC5IU.mjs → DepositModalReown-G7UX4IBZ.mjs} +5 -3
  2. package/dist/{DepositModalReown-DNW4GH6L.cjs → DepositModalReown-MECHBE6P.cjs} +8 -6
  3. package/dist/{WithdrawModalReown-7UAGSOSU.mjs → WithdrawModalReown-CUJAFUQM.mjs} +4 -3
  4. package/dist/{WithdrawModalReown-OUWBSKSM.cjs → WithdrawModalReown-WJ6VBZKK.cjs} +7 -6
  5. package/dist/{caip-CrQ2KKU-.d.cts → caip-CsslyHGL.d.cts} +1 -1
  6. package/dist/{caip-CrQ2KKU-.d.ts → caip-CsslyHGL.d.ts} +1 -1
  7. package/dist/{chunk-KAWJABTW.mjs → chunk-3C35DVPE.mjs} +2 -291
  8. package/dist/chunk-AJHFNHG3.cjs +295 -0
  9. package/dist/chunk-BAEB5AFZ.mjs +212 -0
  10. package/dist/{chunk-TKQYTBU6.mjs → chunk-DZQD3DAV.mjs} +7 -5
  11. package/dist/{chunk-2SMS542Q.cjs → chunk-LEL6GMEQ.cjs} +56 -54
  12. package/dist/{chunk-RABZINV3.cjs → chunk-MQIJZNTP.cjs} +3 -292
  13. package/dist/{chunk-KJ2RR2D4.mjs → chunk-QYSCCX4K.mjs} +534 -413
  14. package/dist/chunk-R5CPOBCF.cjs +212 -0
  15. package/dist/{chunk-GPSBM66J.mjs → chunk-R5WDHHVM.mjs} +1 -1
  16. package/dist/{chunk-VVJAIMKB.cjs → chunk-SPUZLWQS.cjs} +783 -662
  17. package/dist/chunk-TQ2AYMWS.mjs +295 -0
  18. package/dist/{chunk-33H6O5UU.cjs → chunk-ULEAK63T.cjs} +2 -2
  19. package/dist/constants.d.cts +1 -1
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/deposit.cjs +5 -3
  22. package/dist/deposit.d.cts +4 -4
  23. package/dist/deposit.d.ts +4 -4
  24. package/dist/deposit.mjs +4 -2
  25. package/dist/index.cjs +6 -4
  26. package/dist/index.d.cts +4 -3
  27. package/dist/index.d.ts +4 -3
  28. package/dist/index.mjs +5 -3
  29. package/dist/polymarket.cjs +64 -0
  30. package/dist/polymarket.d.cts +57 -0
  31. package/dist/polymarket.d.ts +57 -0
  32. package/dist/polymarket.mjs +64 -0
  33. package/dist/styles.css +34 -0
  34. package/dist/{types-BMcGO5k_.d.cts → types-RzfAD14B.d.cts} +9 -0
  35. package/dist/{types-BMcGO5k_.d.ts → types-RzfAD14B.d.ts} +9 -0
  36. package/dist/withdraw.cjs +4 -3
  37. package/dist/withdraw.d.cts +4 -4
  38. package/dist/withdraw.d.ts +4 -4
  39. package/dist/withdraw.mjs +3 -2
  40. package/package.json +15 -2
@@ -27,10 +27,12 @@
27
27
 
28
28
 
29
29
 
30
+ var _chunkMQIJZNTPcjs = require('./chunk-MQIJZNTP.cjs');
30
31
 
31
32
 
32
33
 
33
- var _chunkRABZINV3cjs = require('./chunk-RABZINV3.cjs');
34
+
35
+ var _chunkAJHFNHG3cjs = require('./chunk-AJHFNHG3.cjs');
34
36
 
35
37
 
36
38
 
@@ -255,7 +257,7 @@ function WithdrawFormStep({
255
257
  setIsSwitching(true);
256
258
  switchChain(asset.chainId).catch((err) => {
257
259
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
258
- setError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw));
260
+ setError(_chunkMQIJZNTPcjs.formatUserError.call(void 0, raw));
259
261
  }).finally(() => {
260
262
  setIsSwitching(false);
261
263
  });
@@ -275,7 +277,7 @@ function WithdrawFormStep({
275
277
  return;
276
278
  }
277
279
  try {
278
- const bal = _chunkRABZINV3cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
280
+ const bal = _chunkMQIJZNTPcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
279
281
  address: asset.token,
280
282
  abi: _viem.erc20Abi,
281
283
  functionName: "balanceOf",
@@ -379,7 +381,7 @@ function WithdrawFormStep({
379
381
  await onSubmit(recipient, amount);
380
382
  } catch (err) {
381
383
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
382
- setError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw));
384
+ setError(_chunkMQIJZNTPcjs.formatUserError.call(void 0, raw));
383
385
  } finally {
384
386
  setIsSubmitting(false);
385
387
  }
@@ -387,16 +389,16 @@ function WithdrawFormStep({
387
389
  if (isBalanceLoading) {
388
390
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
391
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.Spinner, { className: "rs-spinner--lg" }),
392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, { className: "rs-spinner--lg" }),
391
393
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
392
394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
393
395
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
396
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
395
397
  ] });
396
398
  }
397
399
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
400
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
401
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
402
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
401
403
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
402
404
  "label",
@@ -442,7 +444,7 @@ function WithdrawFormStep({
442
444
  ),
443
445
  isRecipientConnected ? null : "Use connected"
444
446
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
445
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
447
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
446
448
  isRecipientConnected ? null : "Use connected"
447
449
  ] })
448
450
  }
@@ -482,7 +484,7 @@ function WithdrawFormStep({
482
484
  ) })
483
485
  ] }),
484
486
  /* @__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 ? _chunkRABZINV3cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
487
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkMQIJZNTPcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
486
488
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
487
489
  "Balance: ",
488
490
  formattedBalance,
@@ -523,7 +525,7 @@ function WithdrawFormStep({
523
525
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
524
526
  ] }),
525
527
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
526
- _chunkRABZINV3cjs.ChevronDownIcon,
528
+ _chunkMQIJZNTPcjs.ChevronDownIcon,
527
529
  {
528
530
  className: "rs-withdraw-dropdown-arrow",
529
531
  style: {
@@ -592,7 +594,7 @@ function WithdrawFormStep({
592
594
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
593
595
  ] }),
594
596
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
595
- _chunkRABZINV3cjs.ChevronDownIcon,
597
+ _chunkMQIJZNTPcjs.ChevronDownIcon,
596
598
  {
597
599
  className: "rs-withdraw-dropdown-arrow",
598
600
  style: {
@@ -632,10 +634,10 @@ function WithdrawFormStep({
632
634
  ] })
633
635
  ] }),
634
636
  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 ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
635
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.Callout, { variant: "error", children: error }),
636
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.Callout, { variant: "error", children: registrationError }),
637
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
638
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: registrationError }),
637
639
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
638
- _chunkRABZINV3cjs.Button,
640
+ _chunkMQIJZNTPcjs.Button,
639
641
  {
640
642
  onClick: handleWithdraw,
641
643
  fullWidth: true,
@@ -645,7 +647,7 @@ function WithdrawFormStep({
645
647
  }
646
648
  )
647
649
  ] }),
648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
650
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
649
651
  ] });
650
652
  }
651
653
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -685,7 +687,7 @@ function WithdrawReviewStep({
685
687
  await onConfirm();
686
688
  } catch (err) {
687
689
  const raw = err instanceof Error ? err.message : "Withdraw failed";
688
- const message = _chunkRABZINV3cjs.formatUserError.call(void 0, raw);
690
+ const message = _chunkMQIJZNTPcjs.formatUserError.call(void 0, raw);
689
691
  setError(message);
690
692
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
691
693
  } finally {
@@ -696,9 +698,9 @@ function WithdrawReviewStep({
696
698
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
697
699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
698
700
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
699
- _chunkRABZINV3cjs.BodyHeader,
701
+ _chunkMQIJZNTPcjs.BodyHeader,
700
702
  {
701
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.CircleArrowOutUpLeftIcon, {}),
703
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CircleArrowOutUpLeftIcon, {}),
702
704
  title: "Review withdrawal"
703
705
  }
704
706
  ),
@@ -748,10 +750,10 @@ function WithdrawReviewStep({
748
750
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
749
751
  ] })
750
752
  ] }),
751
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.Callout, { variant: "error", children: error }),
752
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.Callout, { variant: "error", children: registrationError }),
753
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
754
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: registrationError }),
753
755
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
754
- _chunkRABZINV3cjs.Button,
756
+ _chunkMQIJZNTPcjs.Button,
755
757
  {
756
758
  onClick: handleConfirm,
757
759
  loading: isSubmitting,
@@ -762,7 +764,7 @@ function WithdrawReviewStep({
762
764
  }
763
765
  )
764
766
  ] }),
765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
767
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
766
768
  ] });
767
769
  }
768
770
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -773,15 +775,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
773
775
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
774
776
  var REGISTRATION_DEBOUNCE_MS = 600;
775
777
  function resolveSessionOwner(eoaAddress) {
776
- const localOwner = _chunkRABZINV3cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
778
+ const localOwner = _chunkMQIJZNTPcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
777
779
  if (localOwner) {
778
780
  return {
779
- account: _chunkRABZINV3cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
781
+ account: _chunkMQIJZNTPcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
780
782
  address: localOwner.address
781
783
  };
782
784
  }
783
- const created = _chunkRABZINV3cjs.createSessionOwnerKey.call(void 0, );
784
- _chunkRABZINV3cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
785
+ const created = _chunkMQIJZNTPcjs.createSessionOwnerKey.call(void 0, );
786
+ _chunkMQIJZNTPcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
785
787
  return { account: created.account, address: created.address };
786
788
  }
787
789
  function targetsEqual(a, b) {
@@ -816,19 +818,19 @@ function WithdrawFlow({
816
818
  onError,
817
819
  debug
818
820
  }) {
819
- const onStepChangeRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onStepChange);
820
- const onEventRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onEvent);
821
- const onLifecycleRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onLifecycle);
822
- const onErrorRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onError);
821
+ const onStepChangeRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onStepChange);
822
+ const onEventRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onEvent);
823
+ const onLifecycleRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onLifecycle);
824
+ const onErrorRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onError);
823
825
  const logFlow = _react.useCallback.call(void 0,
824
826
  (message, data) => {
825
- _chunkRABZINV3cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
827
+ _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
826
828
  },
827
829
  [debug]
828
830
  );
829
831
  const logFlowError = _react.useCallback.call(void 0,
830
832
  (message, error, data) => {
831
- _chunkRABZINV3cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
833
+ _chunkMQIJZNTPcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
832
834
  },
833
835
  [debug]
834
836
  );
@@ -903,14 +905,14 @@ function WithdrawFlow({
903
905
  return {
904
906
  ownerAddress: dappAddress,
905
907
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
906
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
908
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, sourceChain))),
907
909
  switchChain: dappSwitchChain
908
910
  };
909
911
  }
910
912
  return {
911
913
  ownerAddress: dappWalletClient.account.address,
912
914
  walletClient: dappWalletClient,
913
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
915
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, sourceChain))),
914
916
  switchChain: dappSwitchChain
915
917
  };
916
918
  }
@@ -921,7 +923,7 @@ function WithdrawFlow({
921
923
  return {
922
924
  ownerAddress: dappWalletClient.account.address,
923
925
  walletClient: dappWalletClient,
924
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
926
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, sourceChain))),
925
927
  switchChain: dappSwitchChain
926
928
  };
927
929
  }
@@ -1003,7 +1005,7 @@ function WithdrawFlow({
1003
1005
  message: typedData.message
1004
1006
  });
1005
1007
  if (cancelled) return;
1006
- const sessionDetails = _chunkRABZINV3cjs.buildSessionDetails.call(void 0,
1008
+ const sessionDetails = _chunkMQIJZNTPcjs.buildSessionDetails.call(void 0,
1007
1009
  setup.sessionDetailsUnsigned,
1008
1010
  signature
1009
1011
  );
@@ -1040,7 +1042,7 @@ function WithdrawFlow({
1040
1042
  } catch (err) {
1041
1043
  if (cancelled) return;
1042
1044
  const raw = err instanceof Error ? err.message : "Registration failed";
1043
- const message = _chunkRABZINV3cjs.formatUserError.call(void 0, raw);
1045
+ const message = _chunkMQIJZNTPcjs.formatUserError.call(void 0, raw);
1044
1046
  logFlowError("auto-register:failed", err, {
1045
1047
  ownerAddress,
1046
1048
  targetChain,
@@ -1076,7 +1078,7 @@ function WithdrawFlow({
1076
1078
  const symbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1077
1079
  const decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1078
1080
  return {
1079
- id: _chunkRABZINV3cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1081
+ id: _chunkMQIJZNTPcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1080
1082
  chainId: sourceChain,
1081
1083
  token: sourceToken,
1082
1084
  symbol,
@@ -1184,7 +1186,7 @@ function WithdrawFlow({
1184
1186
  targetToken
1185
1187
  });
1186
1188
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1187
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain)));
1189
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, sourceChain)));
1188
1190
  let result;
1189
1191
  if (onSignTransaction) {
1190
1192
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1197,7 +1199,7 @@ function WithdrawFlow({
1197
1199
  args: [transferTarget, amountUnits]
1198
1200
  })
1199
1201
  };
1200
- const request = await _chunkRABZINV3cjs.buildSafeTransaction.call(void 0, {
1202
+ const request = await _chunkAJHFNHG3cjs.buildSafeTransaction.call(void 0, {
1201
1203
  publicClient: pc,
1202
1204
  safeAddress,
1203
1205
  to: transferData.to,
@@ -1218,7 +1220,7 @@ function WithdrawFlow({
1218
1220
  }
1219
1221
  result = { txHash: relayResult.txHash };
1220
1222
  } else if (isSourceNative) {
1221
- result = await _chunkRABZINV3cjs.executeSafeEthTransfer.call(void 0, {
1223
+ result = await _chunkAJHFNHG3cjs.executeSafeEthTransfer.call(void 0, {
1222
1224
  walletClient: signerContext.walletClient,
1223
1225
  publicClient: pc,
1224
1226
  safeAddress,
@@ -1227,7 +1229,7 @@ function WithdrawFlow({
1227
1229
  chainId: sourceChain
1228
1230
  });
1229
1231
  } else {
1230
- result = await _chunkRABZINV3cjs.executeSafeErc20Transfer.call(void 0, {
1232
+ result = await _chunkAJHFNHG3cjs.executeSafeErc20Transfer.call(void 0, {
1231
1233
  walletClient: signerContext.walletClient,
1232
1234
  publicClient: pc,
1233
1235
  safeAddress,
@@ -1260,7 +1262,7 @@ function WithdrawFlow({
1260
1262
  targetChain,
1261
1263
  targetToken
1262
1264
  });
1263
- handleError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1265
+ handleError(_chunkMQIJZNTPcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1264
1266
  throw err;
1265
1267
  }
1266
1268
  },
@@ -1399,7 +1401,7 @@ function WithdrawFlow({
1399
1401
  state: "ready"
1400
1402
  }));
1401
1403
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1402
- _chunkRABZINV3cjs.ConnectStep,
1404
+ _chunkMQIJZNTPcjs.ConnectStep,
1403
1405
  {
1404
1406
  walletRows: withdrawRows,
1405
1407
  onConfirmWallet: (walletId) => {
@@ -1417,7 +1419,7 @@ function WithdrawFlow({
1417
1419
  if (!signerContext) return null;
1418
1420
  if (!onSignTransaction && !signerContext.walletClient) return null;
1419
1421
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
1420
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain)));
1422
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, sourceChain)));
1421
1423
  const stepView = deriveStepView(flowStep, registration);
1422
1424
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1423
1425
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1461,7 +1463,7 @@ function WithdrawFlow({
1461
1463
  }
1462
1464
  ),
1463
1465
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1464
- _chunkRABZINV3cjs.ProcessingStep,
1466
+ _chunkMQIJZNTPcjs.ProcessingStep,
1465
1467
  {
1466
1468
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1467
1469
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1494,7 +1496,7 @@ function deriveStepView(step, _registration) {
1494
1496
  // src/WithdrawModal.tsx
1495
1497
 
1496
1498
  var ReownWithdrawInner = _react.lazy.call(void 0,
1497
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-OUWBSKSM.cjs"))).then((m) => ({
1499
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-WJ6VBZKK.cjs"))).then((m) => ({
1498
1500
  default: m.WithdrawModalReown
1499
1501
  }))
1500
1502
  );
@@ -1541,18 +1543,18 @@ function WithdrawModalInner({
1541
1543
  debug
1542
1544
  }) {
1543
1545
  const modalRef = _react.useRef.call(void 0, null);
1544
- const onReadyRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onReady);
1546
+ const onReadyRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onReady);
1545
1547
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1546
1548
  void 0
1547
1549
  );
1548
1550
  const targetChain = _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
1549
1551
  const sourceChain = _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp);
1550
1552
  const service = _react.useMemo.call(void 0,
1551
- () => _chunkRABZINV3cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1553
+ () => _chunkMQIJZNTPcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1552
1554
  [backendUrl, debug]
1553
1555
  );
1554
1556
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1555
- const onErrorRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onError);
1557
+ const onErrorRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onError);
1556
1558
  _react.useEffect.call(void 0, () => {
1557
1559
  if (isOpen && onSignTransaction && !dappAddress) {
1558
1560
  _optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
@@ -1563,7 +1565,7 @@ function WithdrawModalInner({
1563
1565
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1564
1566
  _react.useEffect.call(void 0, () => {
1565
1567
  if (isOpen && modalRef.current) {
1566
- _chunkRABZINV3cjs.applyTheme.call(void 0, modalRef.current, theme);
1568
+ _chunkMQIJZNTPcjs.applyTheme.call(void 0, modalRef.current, theme);
1567
1569
  }
1568
1570
  }, [isOpen, theme]);
1569
1571
  _react.useEffect.call(void 0, () => {
@@ -1582,7 +1584,7 @@ function WithdrawModalInner({
1582
1584
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1583
1585
  const canGoBack = backHandler !== void 0;
1584
1586
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1585
- _chunkRABZINV3cjs.Modal,
1587
+ _chunkMQIJZNTPcjs.Modal,
1586
1588
  {
1587
1589
  isOpen,
1588
1590
  onClose,
@@ -1598,7 +1600,7 @@ function WithdrawModalInner({
1598
1600
  className: "rs-modal-header-back",
1599
1601
  "aria-label": "Go back",
1600
1602
  onClick: backHandler,
1601
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.ChevronLeftIcon, {})
1603
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronLeftIcon, {})
1602
1604
  }
1603
1605
  ) }),
1604
1606
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1608,7 +1610,7 @@ function WithdrawModalInner({
1608
1610
  onClick: onClose,
1609
1611
  className: "rs-modal-close",
1610
1612
  "aria-label": "Close",
1611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.CloseIcon, {})
1613
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CloseIcon, {})
1612
1614
  }
1613
1615
  ) })
1614
1616
  ] }),