@rhinestone/deposit-modal 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{DepositModalReown-DNW4GH6L.cjs → DepositModalReown-KFTMS2WX.cjs} +9 -7
  2. package/dist/{DepositModalReown-6SUEC5IU.mjs → DepositModalReown-PC7EX5VK.mjs} +6 -4
  3. package/dist/{WithdrawModalReown-7UAGSOSU.mjs → WithdrawModalReown-BE23LUMT.mjs} +5 -4
  4. package/dist/{WithdrawModalReown-OUWBSKSM.cjs → WithdrawModalReown-Z2YF2FSJ.cjs} +8 -7
  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-33H6O5UU.cjs → chunk-3MXWIYAT.cjs} +16 -6
  8. package/dist/{chunk-KJ2RR2D4.mjs → chunk-3PVDRSJ7.mjs} +930 -682
  9. package/dist/{chunk-VVJAIMKB.cjs → chunk-7MP2UWIQ.cjs} +1091 -843
  10. package/dist/{chunk-MILJQWPT.cjs → chunk-ABVRVW3P.cjs} +133 -8
  11. package/dist/{chunk-2SMS542Q.cjs → chunk-AE5LHTPM.cjs} +122 -100
  12. package/dist/chunk-F7P4MV72.mjs +295 -0
  13. package/dist/chunk-FJWLC4AM.mjs +212 -0
  14. package/dist/{chunk-KAWJABTW.mjs → chunk-GKC22JC4.mjs} +901 -717
  15. package/dist/chunk-NRNJAQUA.cjs +212 -0
  16. package/dist/{chunk-RABZINV3.cjs → chunk-OQVLEVNR.cjs} +758 -574
  17. package/dist/chunk-UEKPBRBY.cjs +295 -0
  18. package/dist/{chunk-GPSBM66J.mjs → chunk-UFKFSGT3.mjs} +14 -4
  19. package/dist/{chunk-TKQYTBU6.mjs → chunk-WCIGOV34.mjs} +36 -14
  20. package/dist/{chunk-6YRDD462.mjs → chunk-WJX3TJFK.mjs} +135 -10
  21. package/dist/constants.cjs +2 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +1 -1
  25. package/dist/deposit.cjs +6 -4
  26. package/dist/deposit.d.cts +4 -4
  27. package/dist/deposit.d.ts +4 -4
  28. package/dist/deposit.mjs +5 -3
  29. package/dist/index.cjs +7 -5
  30. package/dist/index.d.cts +4 -3
  31. package/dist/index.d.ts +4 -3
  32. package/dist/index.mjs +6 -4
  33. package/dist/polymarket.cjs +64 -0
  34. package/dist/polymarket.d.cts +57 -0
  35. package/dist/polymarket.d.ts +57 -0
  36. package/dist/polymarket.mjs +64 -0
  37. package/dist/styles.css +252 -9
  38. package/dist/{types-BMcGO5k_.d.cts → types-CFRuisqK.d.cts} +10 -1
  39. package/dist/{types-BMcGO5k_.d.ts → types-CFRuisqK.d.ts} +10 -1
  40. package/dist/withdraw.cjs +5 -4
  41. package/dist/withdraw.d.cts +4 -4
  42. package/dist/withdraw.d.ts +4 -4
  43. package/dist/withdraw.mjs +4 -3
  44. package/package.json +15 -2
@@ -30,11 +30,12 @@
30
30
 
31
31
 
32
32
 
33
- var _chunkRABZINV3cjs = require('./chunk-RABZINV3.cjs');
33
+ var _chunkOQVLEVNRcjs = require('./chunk-OQVLEVNR.cjs');
34
34
 
35
35
 
36
36
 
37
37
 
38
+ var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
38
39
 
39
40
 
40
41
 
@@ -44,7 +45,11 @@ var _chunkRABZINV3cjs = require('./chunk-RABZINV3.cjs');
44
45
 
45
46
 
46
47
 
47
- var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
48
+
49
+
50
+
51
+
52
+ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
48
53
 
49
54
  // src/WithdrawModal.tsx
50
55
 
@@ -235,8 +240,8 @@ function WithdrawFormStep({
235
240
  const chainMismatch = Boolean(
236
241
  _optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
237
242
  );
238
- const targetSymbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
239
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
243
+ const targetSymbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
244
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
240
245
  const isBusy = submitting || isSubmitting;
241
246
  const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
242
247
  _react.useEffect.call(void 0, () => {
@@ -255,7 +260,7 @@ function WithdrawFormStep({
255
260
  setIsSwitching(true);
256
261
  switchChain(asset.chainId).catch((err) => {
257
262
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
258
- setError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw));
263
+ setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
259
264
  }).finally(() => {
260
265
  setIsSwitching(false);
261
266
  });
@@ -275,7 +280,7 @@ function WithdrawFormStep({
275
280
  return;
276
281
  }
277
282
  try {
278
- const bal = _chunkRABZINV3cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
283
+ const bal = _chunkOQVLEVNRcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
279
284
  address: asset.token,
280
285
  abi: _viem.erc20Abi,
281
286
  functionName: "balanceOf",
@@ -379,7 +384,7 @@ function WithdrawFormStep({
379
384
  await onSubmit(recipient, amount);
380
385
  } catch (err) {
381
386
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
382
- setError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw));
387
+ setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
383
388
  } finally {
384
389
  setIsSubmitting(false);
385
390
  }
@@ -387,16 +392,16 @@ function WithdrawFormStep({
387
392
  if (isBalanceLoading) {
388
393
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
394
  /* @__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" }),
395
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-spinner--lg" }),
391
396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
392
- /* @__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." })
397
+ /* @__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." })
393
398
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
395
400
  ] });
396
401
  }
397
402
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
403
  /* @__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" }),
404
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
405
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
401
406
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
402
407
  "label",
@@ -442,7 +447,7 @@ function WithdrawFormStep({
442
447
  ),
443
448
  isRecipientConnected ? null : "Use connected"
444
449
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
445
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
450
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
446
451
  isRecipientConnected ? null : "Use connected"
447
452
  ] })
448
453
  }
@@ -482,7 +487,7 @@ function WithdrawFormStep({
482
487
  ) })
483
488
  ] }),
484
489
  /* @__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" }),
490
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkOQVLEVNRcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
486
491
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
487
492
  "Balance: ",
488
493
  formattedBalance,
@@ -512,10 +517,10 @@ function WithdrawFormStep({
512
517
  },
513
518
  children: [
514
519
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
515
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
520
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
516
521
  "img",
517
522
  {
518
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain),
523
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain),
519
524
  alt: targetChainName,
520
525
  className: "rs-withdraw-dropdown-icon"
521
526
  }
@@ -523,7 +528,7 @@ function WithdrawFormStep({
523
528
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
524
529
  ] }),
525
530
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
526
- _chunkRABZINV3cjs.ChevronDownIcon,
531
+ _chunkOQVLEVNRcjs.ChevronDownIcon,
527
532
  {
528
533
  className: "rs-withdraw-dropdown-arrow",
529
534
  style: {
@@ -544,10 +549,10 @@ function WithdrawFormStep({
544
549
  setShowChainDropdown(false);
545
550
  },
546
551
  children: [
547
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
552
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
548
553
  "img",
549
554
  {
550
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, chain.id),
555
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chain.id),
551
556
  alt: chain.name,
552
557
  className: "rs-withdraw-dropdown-icon"
553
558
  }
@@ -581,10 +586,10 @@ function WithdrawFormStep({
581
586
  },
582
587
  children: [
583
588
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
584
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
589
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
585
590
  "img",
586
591
  {
587
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol),
592
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol),
588
593
  alt: targetSymbol,
589
594
  className: "rs-withdraw-dropdown-icon"
590
595
  }
@@ -592,7 +597,7 @@ function WithdrawFormStep({
592
597
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
593
598
  ] }),
594
599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
595
- _chunkRABZINV3cjs.ChevronDownIcon,
600
+ _chunkOQVLEVNRcjs.ChevronDownIcon,
596
601
  {
597
602
  className: "rs-withdraw-dropdown-arrow",
598
603
  style: {
@@ -613,10 +618,10 @@ function WithdrawFormStep({
613
618
  setShowTokenDropdown(false);
614
619
  },
615
620
  children: [
616
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
621
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
617
622
  "img",
618
623
  {
619
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, option.symbol),
624
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, option.symbol),
620
625
  alt: option.symbol,
621
626
  className: "rs-withdraw-dropdown-icon"
622
627
  }
@@ -631,11 +636,11 @@ function WithdrawFormStep({
631
636
  )
632
637
  ] })
633
638
  ] }),
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 ${_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 }),
639
+ 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.` }) }),
640
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
641
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: registrationError }),
637
642
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
638
- _chunkRABZINV3cjs.Button,
643
+ _chunkOQVLEVNRcjs.Button,
639
644
  {
640
645
  onClick: handleWithdraw,
641
646
  fullWidth: true,
@@ -645,7 +650,7 @@ function WithdrawFormStep({
645
650
  }
646
651
  )
647
652
  ] }),
648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
653
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
649
654
  ] });
650
655
  }
651
656
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -666,18 +671,29 @@ function WithdrawReviewStep({
666
671
  estimatedTime = "< 1 min",
667
672
  registrationPending = false,
668
673
  registrationError = null,
674
+ service,
669
675
  onConfirm,
670
676
  onError
671
677
  }) {
672
678
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
673
679
  const [error, setError] = _react.useState.call(void 0, null);
674
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChain);
675
- const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChain);
676
- const targetSymbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
677
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
678
- const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
679
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceSymbol);
680
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
680
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChain);
681
+ const sourceChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChain);
682
+ const targetSymbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
683
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
684
+ const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
685
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceSymbol);
686
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
687
+ const amountNumber = Number(amount);
688
+ const formattedSendAmount = _nullishCoalesce(_chunkOQVLEVNRcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
689
+ const prices = _chunkOQVLEVNRcjs.useTokenPrices.call(void 0, service, [sourceSymbol, targetSymbol]);
690
+ const receiveDisplay = _nullishCoalesce(_chunkOQVLEVNRcjs.formatReceiveEstimate.call(void 0, {
691
+ sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
692
+ sourceSymbol,
693
+ targetSymbol,
694
+ prices
695
+ }), () => ( // No price for the target token — an honest dash beats a wrong number.
696
+ "\u2014"));
681
697
  const handleConfirm = async () => {
682
698
  setError(null);
683
699
  setIsSubmitting(true);
@@ -685,7 +701,7 @@ function WithdrawReviewStep({
685
701
  await onConfirm();
686
702
  } catch (err) {
687
703
  const raw = err instanceof Error ? err.message : "Withdraw failed";
688
- const message = _chunkRABZINV3cjs.formatUserError.call(void 0, raw);
704
+ const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
689
705
  setError(message);
690
706
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
691
707
  } finally {
@@ -696,9 +712,9 @@ function WithdrawReviewStep({
696
712
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
697
713
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
698
714
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
699
- _chunkRABZINV3cjs.BodyHeader,
715
+ _chunkOQVLEVNRcjs.BodyHeader,
700
716
  {
701
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.CircleArrowOutUpLeftIcon, {}),
717
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CircleArrowOutUpLeftIcon, {}),
702
718
  title: "Review withdrawal"
703
719
  }
704
720
  ),
@@ -707,7 +723,7 @@ function WithdrawReviewStep({
707
723
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You send" }),
708
724
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
709
725
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
710
- amount,
726
+ formattedSendAmount,
711
727
  " ",
712
728
  sourceSymbol
713
729
  ] }),
@@ -728,11 +744,7 @@ function WithdrawReviewStep({
728
744
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
729
745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
730
746
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
731
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
732
- amount,
733
- " ",
734
- targetSymbol
735
- ] }),
747
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
736
748
  targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
737
749
  ] })
738
750
  ] }),
@@ -748,10 +760,10 @@ function WithdrawReviewStep({
748
760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
749
761
  ] })
750
762
  ] }),
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 }),
763
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
764
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: registrationError }),
753
765
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
754
- _chunkRABZINV3cjs.Button,
766
+ _chunkOQVLEVNRcjs.Button,
755
767
  {
756
768
  onClick: handleConfirm,
757
769
  loading: isSubmitting,
@@ -762,7 +774,7 @@ function WithdrawReviewStep({
762
774
  }
763
775
  )
764
776
  ] }),
765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.PoweredBy, {})
777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
766
778
  ] });
767
779
  }
768
780
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -773,15 +785,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
773
785
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
774
786
  var REGISTRATION_DEBOUNCE_MS = 600;
775
787
  function resolveSessionOwner(eoaAddress) {
776
- const localOwner = _chunkRABZINV3cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
788
+ const localOwner = _chunkOQVLEVNRcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
777
789
  if (localOwner) {
778
790
  return {
779
- account: _chunkRABZINV3cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
791
+ account: _chunkOQVLEVNRcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
780
792
  address: localOwner.address
781
793
  };
782
794
  }
783
- const created = _chunkRABZINV3cjs.createSessionOwnerKey.call(void 0, );
784
- _chunkRABZINV3cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
795
+ const created = _chunkOQVLEVNRcjs.createSessionOwnerKey.call(void 0, );
796
+ _chunkOQVLEVNRcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
785
797
  return { account: created.account, address: created.address };
786
798
  }
787
799
  function targetsEqual(a, b) {
@@ -801,7 +813,7 @@ function WithdrawFlow({
801
813
  amount: defaultAmount,
802
814
  service,
803
815
  allowedRoutes,
804
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
816
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
805
817
  sessionChainIds,
806
818
  forceRegister = false,
807
819
  reownWallet,
@@ -816,19 +828,19 @@ function WithdrawFlow({
816
828
  onError,
817
829
  debug
818
830
  }) {
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);
831
+ const onStepChangeRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onStepChange);
832
+ const onEventRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onEvent);
833
+ const onLifecycleRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onLifecycle);
834
+ const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
823
835
  const logFlow = _react.useCallback.call(void 0,
824
836
  (message, data) => {
825
- _chunkRABZINV3cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
837
+ _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
826
838
  },
827
839
  [debug]
828
840
  );
829
841
  const logFlowError = _react.useCallback.call(void 0,
830
842
  (message, error, data) => {
831
- _chunkRABZINV3cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
843
+ _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
832
844
  },
833
845
  [debug]
834
846
  );
@@ -903,14 +915,14 @@ function WithdrawFlow({
903
915
  return {
904
916
  ownerAddress: dappAddress,
905
917
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
906
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
918
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, sourceChain))),
907
919
  switchChain: dappSwitchChain
908
920
  };
909
921
  }
910
922
  return {
911
923
  ownerAddress: dappWalletClient.account.address,
912
924
  walletClient: dappWalletClient,
913
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
925
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, sourceChain))),
914
926
  switchChain: dappSwitchChain
915
927
  };
916
928
  }
@@ -921,7 +933,7 @@ function WithdrawFlow({
921
933
  return {
922
934
  ownerAddress: dappWalletClient.account.address,
923
935
  walletClient: dappWalletClient,
924
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkRABZINV3cjs.getPublicClient.call(void 0, sourceChain))),
936
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, sourceChain))),
925
937
  switchChain: dappSwitchChain
926
938
  };
927
939
  }
@@ -978,7 +990,7 @@ function WithdrawFlow({
978
990
  const setup = await service.setupAccount({
979
991
  ownerAddress,
980
992
  sessionOwnerAddress: sessionOwner.address,
981
- targetChain: _chunkMILJQWPTcjs.toEvmCaip2.call(void 0, targetChain),
993
+ targetChain: _chunkABVRVW3Pcjs.toEvmCaip2.call(void 0, targetChain),
982
994
  targetToken,
983
995
  recipient: recipientForRegistration,
984
996
  signerAddress,
@@ -1003,7 +1015,7 @@ function WithdrawFlow({
1003
1015
  message: typedData.message
1004
1016
  });
1005
1017
  if (cancelled) return;
1006
- const sessionDetails = _chunkRABZINV3cjs.buildSessionDetails.call(void 0,
1018
+ const sessionDetails = _chunkOQVLEVNRcjs.buildSessionDetails.call(void 0,
1007
1019
  setup.sessionDetailsUnsigned,
1008
1020
  signature
1009
1021
  );
@@ -1017,7 +1029,7 @@ function WithdrawFlow({
1017
1029
  eoaAddress: ownerAddress,
1018
1030
  sessionOwner: sessionOwner.address,
1019
1031
  target: {
1020
- chain: _chunkMILJQWPTcjs.toEvmCaip2.call(void 0, targetChain),
1032
+ chain: _chunkABVRVW3Pcjs.toEvmCaip2.call(void 0, targetChain),
1021
1033
  token: targetToken,
1022
1034
  recipient: recipientForRegistration
1023
1035
  }
@@ -1040,7 +1052,7 @@ function WithdrawFlow({
1040
1052
  } catch (err) {
1041
1053
  if (cancelled) return;
1042
1054
  const raw = err instanceof Error ? err.message : "Registration failed";
1043
- const message = _chunkRABZINV3cjs.formatUserError.call(void 0, raw);
1055
+ const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
1044
1056
  logFlowError("auto-register:failed", err, {
1045
1057
  ownerAddress,
1046
1058
  targetChain,
@@ -1073,10 +1085,10 @@ function WithdrawFlow({
1073
1085
  onErrorRef
1074
1086
  ]);
1075
1087
  const asset = _react.useMemo.call(void 0, () => {
1076
- const symbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1077
- const decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1088
+ const symbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1089
+ const decimals = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1078
1090
  return {
1079
- id: _chunkRABZINV3cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1091
+ id: _chunkOQVLEVNRcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1080
1092
  chainId: sourceChain,
1081
1093
  token: sourceToken,
1082
1094
  symbol,
@@ -1084,7 +1096,7 @@ function WithdrawFlow({
1084
1096
  decimals
1085
1097
  };
1086
1098
  }, [sourceChain, sourceToken]);
1087
- const isSourceNative = sourceToken.toLowerCase() === _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1099
+ const isSourceNative = sourceToken.toLowerCase() === _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1088
1100
  const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
1089
1101
  const reviewBackHandler = _react.useCallback.call(void 0, () => {
1090
1102
  storeApi.dispatch({ type: "review/back" });
@@ -1102,8 +1114,8 @@ function WithdrawFlow({
1102
1114
  }
1103
1115
  if (lastStepOpenEventKeyRef.current === "form") return;
1104
1116
  lastStepOpenEventKeyRef.current = "form";
1105
- const tokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1106
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
1117
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1118
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
1107
1119
  _optionalChain([onEventRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
1108
1120
  type: "withdraw_modal_select_amount_open",
1109
1121
  pred_balance: totalBalanceUsd,
@@ -1140,8 +1152,8 @@ function WithdrawFlow({
1140
1152
  );
1141
1153
  const handleFormContinue = _react.useCallback.call(void 0,
1142
1154
  (recipient, amountValue) => {
1143
- const tokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1144
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
1155
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1156
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
1145
1157
  _optionalChain([onEventRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42({
1146
1158
  type: "withdraw_modal_select_amount_cta_click",
1147
1159
  pred_balance: totalBalanceUsd,
@@ -1184,7 +1196,7 @@ function WithdrawFlow({
1184
1196
  targetToken
1185
1197
  });
1186
1198
  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)));
1199
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, sourceChain)));
1188
1200
  let result;
1189
1201
  if (onSignTransaction) {
1190
1202
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1197,7 +1209,7 @@ function WithdrawFlow({
1197
1209
  args: [transferTarget, amountUnits]
1198
1210
  })
1199
1211
  };
1200
- const request = await _chunkRABZINV3cjs.buildSafeTransaction.call(void 0, {
1212
+ const request = await _chunkUEKPBRBYcjs.buildSafeTransaction.call(void 0, {
1201
1213
  publicClient: pc,
1202
1214
  safeAddress,
1203
1215
  to: transferData.to,
@@ -1208,7 +1220,7 @@ function WithdrawFlow({
1208
1220
  const { signature } = await onSignTransaction(request);
1209
1221
  const relayResult = await service.relayWithdraw({
1210
1222
  smartAccount,
1211
- chainId: _chunkMILJQWPTcjs.toEvmCaip2.call(void 0, sourceChain),
1223
+ chainId: _chunkABVRVW3Pcjs.toEvmCaip2.call(void 0, sourceChain),
1212
1224
  safeAddress,
1213
1225
  safeTransaction: request.typedData.message,
1214
1226
  signature
@@ -1218,7 +1230,7 @@ function WithdrawFlow({
1218
1230
  }
1219
1231
  result = { txHash: relayResult.txHash };
1220
1232
  } else if (isSourceNative) {
1221
- result = await _chunkRABZINV3cjs.executeSafeEthTransfer.call(void 0, {
1233
+ result = await _chunkUEKPBRBYcjs.executeSafeEthTransfer.call(void 0, {
1222
1234
  walletClient: signerContext.walletClient,
1223
1235
  publicClient: pc,
1224
1236
  safeAddress,
@@ -1227,7 +1239,7 @@ function WithdrawFlow({
1227
1239
  chainId: sourceChain
1228
1240
  });
1229
1241
  } else {
1230
- result = await _chunkRABZINV3cjs.executeSafeErc20Transfer.call(void 0, {
1242
+ result = await _chunkUEKPBRBYcjs.executeSafeErc20Transfer.call(void 0, {
1231
1243
  walletClient: signerContext.walletClient,
1232
1244
  publicClient: pc,
1233
1245
  safeAddress,
@@ -1260,7 +1272,7 @@ function WithdrawFlow({
1260
1272
  targetChain,
1261
1273
  targetToken
1262
1274
  });
1263
- handleError(_chunkRABZINV3cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1275
+ handleError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1264
1276
  throw err;
1265
1277
  }
1266
1278
  },
@@ -1325,9 +1337,9 @@ function WithdrawFlow({
1325
1337
  [_optionalChain([allowedRoutes, 'optionalAccess', _54 => _54.sourceTokens])]
1326
1338
  );
1327
1339
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1328
- return _chunkMILJQWPTcjs.SOURCE_CHAINS.filter((chain) => {
1340
+ return _chunkABVRVW3Pcjs.SOURCE_CHAINS.filter((chain) => {
1329
1341
  if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1330
- const tokens = _chunkMILJQWPTcjs.getSupportedTargetTokens.call(void 0, chain.id);
1342
+ const tokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens.call(void 0, chain.id);
1331
1343
  if (allowedTokenSet) {
1332
1344
  return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1333
1345
  }
@@ -1335,7 +1347,7 @@ function WithdrawFlow({
1335
1347
  });
1336
1348
  }, [allowedChainSet, allowedTokenSet]);
1337
1349
  const targetTokenOptions = _react.useMemo.call(void 0, () => {
1338
- const tokens = _chunkMILJQWPTcjs.getSupportedTargetTokens.call(void 0, targetChain);
1350
+ const tokens = _chunkABVRVW3Pcjs.getSupportedTargetTokens.call(void 0, targetChain);
1339
1351
  if (!allowedTokenSet) return tokens;
1340
1352
  return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1341
1353
  }, [targetChain, allowedTokenSet]);
@@ -1349,7 +1361,7 @@ function WithdrawFlow({
1349
1361
  const handleTargetChainChange = _react.useCallback.call(void 0,
1350
1362
  (chainId) => {
1351
1363
  setTargetChain(chainId);
1352
- let options = _chunkMILJQWPTcjs.getSupportedTargetTokens.call(void 0, chainId);
1364
+ let options = _chunkABVRVW3Pcjs.getSupportedTargetTokens.call(void 0, chainId);
1353
1365
  if (allowedTokenSet) {
1354
1366
  options = options.filter(
1355
1367
  (t) => allowedTokenSet.has(t.symbol.toUpperCase())
@@ -1399,7 +1411,7 @@ function WithdrawFlow({
1399
1411
  state: "ready"
1400
1412
  }));
1401
1413
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1402
- _chunkRABZINV3cjs.ConnectStep,
1414
+ _chunkOQVLEVNRcjs.ConnectStep,
1403
1415
  {
1404
1416
  walletRows: withdrawRows,
1405
1417
  onConfirmWallet: (walletId) => {
@@ -1417,7 +1429,7 @@ function WithdrawFlow({
1417
1429
  if (!signerContext) return null;
1418
1430
  if (!onSignTransaction && !signerContext.walletClient) return null;
1419
1431
  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)));
1432
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, sourceChain)));
1421
1433
  const stepView = deriveStepView(flowStep, registration);
1422
1434
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1423
1435
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1454,6 +1466,7 @@ function WithdrawFlow({
1454
1466
  targetToken,
1455
1467
  amount: _nullishCoalesce(storeApi.getState().amount, () => ( "0")),
1456
1468
  recipient: _nullishCoalesce(_nullishCoalesce(storeApi.getState().recipient, () => ( recipientForRegistration)), () => ( "0x0")),
1469
+ service,
1457
1470
  registrationPending: registration.kind === "pending" || registration.kind === "stale",
1458
1471
  registrationError: registration.kind === "failed" ? registration.error : null,
1459
1472
  onConfirm: handleReviewConfirm,
@@ -1461,7 +1474,7 @@ function WithdrawFlow({
1461
1474
  }
1462
1475
  ),
1463
1476
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1464
- _chunkRABZINV3cjs.ProcessingStep,
1477
+ _chunkOQVLEVNRcjs.ProcessingStep,
1465
1478
  {
1466
1479
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1467
1480
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1469,7 +1482,9 @@ function WithdrawFlow({
1469
1482
  sourceToken,
1470
1483
  targetChain,
1471
1484
  targetToken,
1472
- amount: _nullishCoalesce(storeApi.getState().amount, () => ( "0")),
1485
+ amount: toBaseUnits(_nullishCoalesce(storeApi.getState().amount, () => ( "0")), asset.decimals),
1486
+ sourceSymbol: asset.symbol,
1487
+ sourceDecimals: asset.decimals,
1473
1488
  directTransfer: isSameRoute,
1474
1489
  service,
1475
1490
  flowLabel: "withdraw",
@@ -1483,6 +1498,13 @@ function WithdrawFlow({
1483
1498
  )
1484
1499
  ] });
1485
1500
  }
1501
+ function toBaseUnits(amount, decimals) {
1502
+ try {
1503
+ return _viem.parseUnits.call(void 0, amount, decimals).toString();
1504
+ } catch (e6) {
1505
+ return "0";
1506
+ }
1507
+ }
1486
1508
  function deriveStepView(step, _registration) {
1487
1509
  if (step === "review") return "review";
1488
1510
  if (step === "processing" || step === "complete" || step === "failed") {
@@ -1494,7 +1516,7 @@ function deriveStepView(step, _registration) {
1494
1516
  // src/WithdrawModal.tsx
1495
1517
 
1496
1518
  var ReownWithdrawInner = _react.lazy.call(void 0,
1497
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-OUWBSKSM.cjs"))).then((m) => ({
1519
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-Z2YF2FSJ.cjs"))).then((m) => ({
1498
1520
  default: m.WithdrawModalReown
1499
1521
  }))
1500
1522
  );
@@ -1522,8 +1544,8 @@ function WithdrawModalInner({
1522
1544
  inline,
1523
1545
  closeOnOverlayClick,
1524
1546
  allowedRoutes,
1525
- backendUrl = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL,
1526
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
1547
+ backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
1548
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
1527
1549
  sessionChainIds,
1528
1550
  forceRegister = false,
1529
1551
  reownWallet,
@@ -1541,18 +1563,18 @@ function WithdrawModalInner({
1541
1563
  debug
1542
1564
  }) {
1543
1565
  const modalRef = _react.useRef.call(void 0, null);
1544
- const onReadyRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onReady);
1566
+ const onReadyRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onReady);
1545
1567
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1546
1568
  void 0
1547
1569
  );
1548
- const targetChain = _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
1549
- const sourceChain = _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp);
1570
+ const targetChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
1571
+ const sourceChain = _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp);
1550
1572
  const service = _react.useMemo.call(void 0,
1551
- () => _chunkRABZINV3cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1573
+ () => _chunkOQVLEVNRcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1552
1574
  [backendUrl, debug]
1553
1575
  );
1554
1576
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1555
- const onErrorRef = _chunkRABZINV3cjs.useLatestRef.call(void 0, onError);
1577
+ const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
1556
1578
  _react.useEffect.call(void 0, () => {
1557
1579
  if (isOpen && onSignTransaction && !dappAddress) {
1558
1580
  _optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
@@ -1563,7 +1585,7 @@ function WithdrawModalInner({
1563
1585
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1564
1586
  _react.useEffect.call(void 0, () => {
1565
1587
  if (isOpen && modalRef.current) {
1566
- _chunkRABZINV3cjs.applyTheme.call(void 0, modalRef.current, theme);
1588
+ _chunkOQVLEVNRcjs.applyTheme.call(void 0, modalRef.current, theme);
1567
1589
  }
1568
1590
  }, [isOpen, theme]);
1569
1591
  _react.useEffect.call(void 0, () => {
@@ -1582,7 +1604,7 @@ function WithdrawModalInner({
1582
1604
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1583
1605
  const canGoBack = backHandler !== void 0;
1584
1606
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1585
- _chunkRABZINV3cjs.Modal,
1607
+ _chunkOQVLEVNRcjs.Modal,
1586
1608
  {
1587
1609
  isOpen,
1588
1610
  onClose,
@@ -1598,7 +1620,7 @@ function WithdrawModalInner({
1598
1620
  className: "rs-modal-header-back",
1599
1621
  "aria-label": "Go back",
1600
1622
  onClick: backHandler,
1601
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.ChevronLeftIcon, {})
1623
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronLeftIcon, {})
1602
1624
  }
1603
1625
  ) }),
1604
1626
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1608,7 +1630,7 @@ function WithdrawModalInner({
1608
1630
  onClick: onClose,
1609
1631
  className: "rs-modal-close",
1610
1632
  "aria-label": "Close",
1611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRABZINV3cjs.CloseIcon, {})
1633
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
1612
1634
  }
1613
1635
  ) })
1614
1636
  ] }),