@rhinestone/deposit-modal 0.3.0-alpha.6 → 0.3.0-alpha.8

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 (38) hide show
  1. package/dist/{DepositModalReown-SBSP5ZW2.cjs → DepositModalReown-LWGABUOF.cjs} +12 -9
  2. package/dist/{DepositModalReown-3N7YYGB4.mjs → DepositModalReown-TYHATVOM.mjs} +9 -6
  3. package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FCWED55P.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-H7HA3JP3.mjs} +4 -4
  5. package/dist/{chunk-CTYKQ4B4.mjs → chunk-5ZS4ZJPW.mjs} +272 -145
  6. package/dist/chunk-7JIDIX27.cjs +554 -0
  7. package/dist/{chunk-QI6Q7V6O.mjs → chunk-DW276H63.mjs} +26 -34
  8. package/dist/{chunk-5YXAQB6A.mjs → chunk-E46WOBZQ.mjs} +56 -16
  9. package/dist/{chunk-UVIIWUWP.cjs → chunk-GBFOGYMH.cjs} +1193 -862
  10. package/dist/{chunk-EJH36TH2.mjs → chunk-H7QMSMM5.mjs} +1247 -916
  11. package/dist/{chunk-YQFH2WSW.cjs → chunk-PKD7W5JG.cjs} +54 -14
  12. package/dist/chunk-SZIYS42B.mjs +554 -0
  13. package/dist/{chunk-BB6UVRAV.cjs → chunk-U3OLJZBT.cjs} +110 -118
  14. package/dist/{chunk-DX2D2TRZ.cjs → chunk-UELVNPGE.cjs} +312 -185
  15. package/dist/constants-DqVn968d.d.cts +52 -0
  16. package/dist/constants-DqVn968d.d.ts +52 -0
  17. package/dist/constants.cjs +8 -2
  18. package/dist/constants.d.cts +17 -48
  19. package/dist/constants.d.ts +17 -48
  20. package/dist/constants.mjs +7 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +6 -6
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +5 -5
  29. package/dist/styles.css +180 -34
  30. package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
  31. package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
  32. package/dist/withdraw.cjs +4 -4
  33. package/dist/withdraw.d.cts +2 -2
  34. package/dist/withdraw.d.ts +2 -2
  35. package/dist/withdraw.mjs +3 -3
  36. package/package.json +5 -5
  37. package/dist/chunk-IVTXEYB2.cjs +0 -507
  38. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -31,7 +31,7 @@
31
31
 
32
32
 
33
33
 
34
- var _chunkDX2D2TRZcjs = require('./chunk-DX2D2TRZ.cjs');
34
+ var _chunkUELVNPGEcjs = require('./chunk-UELVNPGE.cjs');
35
35
 
36
36
 
37
37
 
@@ -44,7 +44,7 @@ var _chunkDX2D2TRZcjs = require('./chunk-DX2D2TRZ.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
47
+ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
48
48
 
49
49
  // src/WithdrawModal.tsx
50
50
 
@@ -235,8 +235,8 @@ function WithdrawFormStep({
235
235
  const chainMismatch = Boolean(
236
236
  _optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
237
237
  );
238
- const targetSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
239
- const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
238
+ const targetSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
239
+ const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
240
240
  const isBusy = submitting || isSubmitting;
241
241
  const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
242
242
  _react.useEffect.call(void 0, () => {
@@ -255,7 +255,7 @@ function WithdrawFormStep({
255
255
  setIsSwitching(true);
256
256
  switchChain(asset.chainId).catch((err) => {
257
257
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
258
- setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
258
+ setError(_chunkUELVNPGEcjs.formatUserError.call(void 0, raw));
259
259
  }).finally(() => {
260
260
  setIsSwitching(false);
261
261
  });
@@ -275,7 +275,7 @@ function WithdrawFormStep({
275
275
  return;
276
276
  }
277
277
  try {
278
- const bal = _chunkDX2D2TRZcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
278
+ const bal = _chunkUELVNPGEcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
279
279
  address: asset.token,
280
280
  abi: _viem.erc20Abi,
281
281
  functionName: "balanceOf",
@@ -379,24 +379,24 @@ function WithdrawFormStep({
379
379
  await onSubmit(recipient, amount);
380
380
  } catch (err) {
381
381
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
382
- setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
382
+ setError(_chunkUELVNPGEcjs.formatUserError.call(void 0, raw));
383
383
  } finally {
384
384
  setIsSubmitting(false);
385
385
  }
386
386
  }, [recipient, amount, balance, asset.decimals, onSubmit]);
387
387
  if (isBalanceLoading) {
388
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
389
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, { className: "rs-spinner--lg" }),
388
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.Spinner, { className: "rs-spinner--lg" }),
391
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
393
393
  ] }),
394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.PoweredBy, {})
395
395
  ] });
396
396
  }
397
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
398
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-form", children: [
399
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
397
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
400
400
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
401
401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Recipient address" }),
402
402
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-input-row", children: [
@@ -434,7 +434,7 @@ function WithdrawFormStep({
434
434
  ),
435
435
  isRecipientConnected ? null : "Use connected"
436
436
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
437
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
438
438
  isRecipientConnected ? null : "Use connected"
439
439
  ] })
440
440
  }
@@ -473,7 +473,7 @@ function WithdrawFormStep({
473
473
  ) })
474
474
  ] }),
475
475
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
476
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkDX2D2TRZcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
476
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkUELVNPGEcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
477
477
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
478
478
  "Balance: ",
479
479
  formattedBalance,
@@ -502,10 +502,10 @@ function WithdrawFormStep({
502
502
  },
503
503
  children: [
504
504
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
505
- _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
505
+ _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
506
506
  "img",
507
507
  {
508
- src: _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain),
508
+ src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain),
509
509
  alt: targetChainName,
510
510
  className: "rs-withdraw-dropdown-icon"
511
511
  }
@@ -513,7 +513,7 @@ function WithdrawFormStep({
513
513
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
514
514
  ] }),
515
515
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
516
- _chunkDX2D2TRZcjs.ChevronDownIcon,
516
+ _chunkUELVNPGEcjs.ChevronDownIcon,
517
517
  {
518
518
  className: "rs-withdraw-dropdown-arrow",
519
519
  style: {
@@ -534,10 +534,10 @@ function WithdrawFormStep({
534
534
  setShowChainDropdown(false);
535
535
  },
536
536
  children: [
537
- _chunkIVTXEYB2cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
537
+ _chunk7JIDIX27cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
538
538
  "img",
539
539
  {
540
- src: _chunkIVTXEYB2cjs.getChainIcon.call(void 0, chain.id),
540
+ src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, chain.id),
541
541
  alt: chain.name,
542
542
  className: "rs-withdraw-dropdown-icon"
543
543
  }
@@ -570,10 +570,10 @@ function WithdrawFormStep({
570
570
  },
571
571
  children: [
572
572
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
573
- _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
573
+ _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
574
574
  "img",
575
575
  {
576
- src: _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol),
576
+ src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol),
577
577
  alt: targetSymbol,
578
578
  className: "rs-withdraw-dropdown-icon"
579
579
  }
@@ -581,7 +581,7 @@ function WithdrawFormStep({
581
581
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
582
582
  ] }),
583
583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
584
- _chunkDX2D2TRZcjs.ChevronDownIcon,
584
+ _chunkUELVNPGEcjs.ChevronDownIcon,
585
585
  {
586
586
  className: "rs-withdraw-dropdown-arrow",
587
587
  style: {
@@ -602,10 +602,10 @@ function WithdrawFormStep({
602
602
  setShowTokenDropdown(false);
603
603
  },
604
604
  children: [
605
- _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
605
+ _chunk7JIDIX27cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
606
606
  "img",
607
607
  {
608
- src: _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, option.symbol),
608
+ src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, option.symbol),
609
609
  alt: option.symbol,
610
610
  className: "rs-withdraw-dropdown-icon"
611
611
  }
@@ -620,27 +620,21 @@ function WithdrawFormStep({
620
620
  )
621
621
  ] })
622
622
  ] }),
623
- chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
624
- error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
625
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, {}),
626
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
627
- ] }),
628
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, {}),
630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
631
- ] })
623
+ chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
624
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.Callout, { variant: "error", children: error }),
625
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.Callout, { variant: "error", children: registrationError }),
626
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
627
+ _chunkUELVNPGEcjs.Button,
628
+ {
629
+ onClick: handleWithdraw,
630
+ fullWidth: true,
631
+ loading: isBusy,
632
+ disabled: !recipient || !amount || chainMismatch || isBusy || Boolean(registrationError),
633
+ children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
634
+ }
635
+ )
632
636
  ] }),
633
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
634
- _chunkDX2D2TRZcjs.Button,
635
- {
636
- onClick: handleWithdraw,
637
- fullWidth: true,
638
- loading: isBusy,
639
- disabled: !recipient || !amount || chainMismatch || isBusy || Boolean(registrationError),
640
- children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
641
- }
642
- ) }),
643
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.PoweredBy, {})
644
638
  ] });
645
639
  }
646
640
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -666,13 +660,13 @@ function WithdrawReviewStep({
666
660
  }) {
667
661
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
668
662
  const [error, setError] = _react.useState.call(void 0, null);
669
- const sourceChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, sourceChain);
670
- const sourceChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, sourceChain);
671
- const targetSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
672
- const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
673
- const targetChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain);
674
- const sourceTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, sourceSymbol);
675
- const targetTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol);
663
+ const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, sourceChain);
664
+ const sourceChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChain);
665
+ const targetSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
666
+ const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
667
+ const targetChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain);
668
+ const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceSymbol);
669
+ const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
676
670
  const handleConfirm = async () => {
677
671
  setError(null);
678
672
  setIsSubmitting(true);
@@ -680,7 +674,7 @@ function WithdrawReviewStep({
680
674
  await onConfirm();
681
675
  } catch (err) {
682
676
  const raw = err instanceof Error ? err.message : "Withdraw failed";
683
- const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
677
+ const message = _chunkUELVNPGEcjs.formatUserError.call(void 0, raw);
684
678
  setError(message);
685
679
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
686
680
  } finally {
@@ -691,9 +685,9 @@ function WithdrawReviewStep({
691
685
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
692
686
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
693
687
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
694
- _chunkDX2D2TRZcjs.BodyHeader,
688
+ _chunkUELVNPGEcjs.BodyHeader,
695
689
  {
696
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CircleArrowOutUpLeftIcon, {}),
690
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.CircleArrowOutUpLeftIcon, {}),
697
691
  title: "Review withdrawal"
698
692
  }
699
693
  ),
@@ -743,16 +737,10 @@ function WithdrawReviewStep({
743
737
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
744
738
  ] })
745
739
  ] }),
746
- error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
747
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
748
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
749
- ] }),
750
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
751
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
752
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
753
- ] }),
740
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.Callout, { variant: "error", children: error }),
741
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.Callout, { variant: "error", children: registrationError }),
754
742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
755
- _chunkDX2D2TRZcjs.Button,
743
+ _chunkUELVNPGEcjs.Button,
756
744
  {
757
745
  onClick: handleConfirm,
758
746
  loading: isSubmitting,
@@ -763,7 +751,7 @@ function WithdrawReviewStep({
763
751
  }
764
752
  )
765
753
  ] }),
766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
754
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.PoweredBy, {})
767
755
  ] });
768
756
  }
769
757
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -774,15 +762,15 @@ WithdrawReviewStep.displayName = "WithdrawReviewStep";
774
762
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
775
763
  var REGISTRATION_DEBOUNCE_MS = 600;
776
764
  function resolveSessionOwner(eoaAddress) {
777
- const localOwner = _chunkDX2D2TRZcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
765
+ const localOwner = _chunkUELVNPGEcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
778
766
  if (localOwner) {
779
767
  return {
780
- account: _chunkDX2D2TRZcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
768
+ account: _chunkUELVNPGEcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
781
769
  address: localOwner.address
782
770
  };
783
771
  }
784
- const created = _chunkDX2D2TRZcjs.createSessionOwnerKey.call(void 0, );
785
- _chunkDX2D2TRZcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
772
+ const created = _chunkUELVNPGEcjs.createSessionOwnerKey.call(void 0, );
773
+ _chunkUELVNPGEcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
786
774
  return { account: created.account, address: created.address };
787
775
  }
788
776
  function targetsEqual(a, b) {
@@ -802,7 +790,7 @@ function WithdrawFlow({
802
790
  amount: defaultAmount,
803
791
  service,
804
792
  allowedRoutes,
805
- signerAddress = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS,
793
+ signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
806
794
  sessionChainIds,
807
795
  forceRegister = false,
808
796
  waitForFinalTx = true,
@@ -818,19 +806,19 @@ function WithdrawFlow({
818
806
  onError,
819
807
  debug
820
808
  }) {
821
- const onStepChangeRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onStepChange);
822
- const onEventRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onEvent);
823
- const onLifecycleRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onLifecycle);
824
- const onErrorRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onError);
809
+ const onStepChangeRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onStepChange);
810
+ const onEventRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onEvent);
811
+ const onLifecycleRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onLifecycle);
812
+ const onErrorRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onError);
825
813
  const logFlow = _react.useCallback.call(void 0,
826
814
  (message, data) => {
827
- _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
815
+ _chunkUELVNPGEcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
828
816
  },
829
817
  [debug]
830
818
  );
831
819
  const logFlowError = _react.useCallback.call(void 0,
832
820
  (message, error, data) => {
833
- _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
821
+ _chunkUELVNPGEcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
834
822
  },
835
823
  [debug]
836
824
  );
@@ -905,14 +893,14 @@ function WithdrawFlow({
905
893
  return {
906
894
  ownerAddress: dappAddress,
907
895
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
908
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
896
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUELVNPGEcjs.getPublicClient.call(void 0, sourceChain))),
909
897
  switchChain: dappSwitchChain
910
898
  };
911
899
  }
912
900
  return {
913
901
  ownerAddress: dappWalletClient.account.address,
914
902
  walletClient: dappWalletClient,
915
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
903
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUELVNPGEcjs.getPublicClient.call(void 0, sourceChain))),
916
904
  switchChain: dappSwitchChain
917
905
  };
918
906
  }
@@ -923,7 +911,7 @@ function WithdrawFlow({
923
911
  return {
924
912
  ownerAddress: dappWalletClient.account.address,
925
913
  walletClient: dappWalletClient,
926
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain))),
914
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUELVNPGEcjs.getPublicClient.call(void 0, sourceChain))),
927
915
  switchChain: dappSwitchChain
928
916
  };
929
917
  }
@@ -980,7 +968,7 @@ function WithdrawFlow({
980
968
  const setup = await service.setupAccount({
981
969
  ownerAddress,
982
970
  sessionOwnerAddress: sessionOwner.address,
983
- targetChain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, targetChain),
971
+ targetChain: _chunkUELVNPGEcjs.toEvmCaip2.call(void 0, targetChain),
984
972
  targetToken,
985
973
  recipient: recipientForRegistration,
986
974
  signerAddress,
@@ -1005,7 +993,7 @@ function WithdrawFlow({
1005
993
  message: typedData.message
1006
994
  });
1007
995
  if (cancelled) return;
1008
- const sessionDetails = _chunkDX2D2TRZcjs.buildSessionDetails.call(void 0,
996
+ const sessionDetails = _chunkUELVNPGEcjs.buildSessionDetails.call(void 0,
1009
997
  setup.sessionDetailsUnsigned,
1010
998
  signature
1011
999
  );
@@ -1019,7 +1007,7 @@ function WithdrawFlow({
1019
1007
  eoaAddress: ownerAddress,
1020
1008
  sessionOwner: sessionOwner.address,
1021
1009
  target: {
1022
- chain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, targetChain),
1010
+ chain: _chunkUELVNPGEcjs.toEvmCaip2.call(void 0, targetChain),
1023
1011
  token: targetToken,
1024
1012
  recipient: recipientForRegistration
1025
1013
  }
@@ -1042,7 +1030,7 @@ function WithdrawFlow({
1042
1030
  } catch (err) {
1043
1031
  if (cancelled) return;
1044
1032
  const raw = err instanceof Error ? err.message : "Registration failed";
1045
- const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
1033
+ const message = _chunkUELVNPGEcjs.formatUserError.call(void 0, raw);
1046
1034
  logFlowError("auto-register:failed", err, {
1047
1035
  ownerAddress,
1048
1036
  targetChain,
@@ -1075,10 +1063,10 @@ function WithdrawFlow({
1075
1063
  onErrorRef
1076
1064
  ]);
1077
1065
  const asset = _react.useMemo.call(void 0, () => {
1078
- const symbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1079
- const decimals = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1066
+ const symbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1067
+ const decimals = _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1080
1068
  return {
1081
- id: _chunkDX2D2TRZcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1069
+ id: _chunkUELVNPGEcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1082
1070
  chainId: sourceChain,
1083
1071
  token: sourceToken,
1084
1072
  symbol,
@@ -1086,7 +1074,7 @@ function WithdrawFlow({
1086
1074
  decimals
1087
1075
  };
1088
1076
  }, [sourceChain, sourceToken]);
1089
- const isSourceNative = sourceToken.toLowerCase() === _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1077
+ const isSourceNative = sourceToken.toLowerCase() === _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1090
1078
  const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
1091
1079
  const reviewBackHandler = _react.useCallback.call(void 0, () => {
1092
1080
  storeApi.dispatch({ type: "review/back" });
@@ -1104,8 +1092,8 @@ function WithdrawFlow({
1104
1092
  }
1105
1093
  if (lastStepOpenEventKeyRef.current === "form") return;
1106
1094
  lastStepOpenEventKeyRef.current = "form";
1107
- const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1108
- const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
1095
+ const tokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1096
+ const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
1109
1097
  _optionalChain([onEventRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
1110
1098
  type: "withdraw_modal_select_amount_open",
1111
1099
  pred_balance: totalBalanceUsd,
@@ -1142,8 +1130,8 @@ function WithdrawFlow({
1142
1130
  );
1143
1131
  const handleFormContinue = _react.useCallback.call(void 0,
1144
1132
  (recipient, amountValue) => {
1145
- const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1146
- const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
1133
+ const tokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1134
+ const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
1147
1135
  _optionalChain([onEventRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42({
1148
1136
  type: "withdraw_modal_select_amount_cta_click",
1149
1137
  pred_balance: totalBalanceUsd,
@@ -1186,7 +1174,7 @@ function WithdrawFlow({
1186
1174
  targetToken
1187
1175
  });
1188
1176
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1189
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain)));
1177
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkUELVNPGEcjs.getPublicClient.call(void 0, sourceChain)));
1190
1178
  let result;
1191
1179
  if (onSignTransaction) {
1192
1180
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1199,7 +1187,7 @@ function WithdrawFlow({
1199
1187
  args: [transferTarget, amountUnits]
1200
1188
  })
1201
1189
  };
1202
- const request = await _chunkDX2D2TRZcjs.buildSafeTransaction.call(void 0, {
1190
+ const request = await _chunkUELVNPGEcjs.buildSafeTransaction.call(void 0, {
1203
1191
  publicClient: pc,
1204
1192
  safeAddress,
1205
1193
  to: transferData.to,
@@ -1210,7 +1198,7 @@ function WithdrawFlow({
1210
1198
  const { signature } = await onSignTransaction(request);
1211
1199
  const relayResult = await service.relayWithdraw({
1212
1200
  smartAccount,
1213
- chainId: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, sourceChain),
1201
+ chainId: _chunkUELVNPGEcjs.toEvmCaip2.call(void 0, sourceChain),
1214
1202
  safeAddress,
1215
1203
  safeTransaction: request.typedData.message,
1216
1204
  signature
@@ -1220,7 +1208,7 @@ function WithdrawFlow({
1220
1208
  }
1221
1209
  result = { txHash: relayResult.txHash };
1222
1210
  } else if (isSourceNative) {
1223
- result = await _chunkDX2D2TRZcjs.executeSafeEthTransfer.call(void 0, {
1211
+ result = await _chunkUELVNPGEcjs.executeSafeEthTransfer.call(void 0, {
1224
1212
  walletClient: signerContext.walletClient,
1225
1213
  publicClient: pc,
1226
1214
  safeAddress,
@@ -1229,7 +1217,7 @@ function WithdrawFlow({
1229
1217
  chainId: sourceChain
1230
1218
  });
1231
1219
  } else {
1232
- result = await _chunkDX2D2TRZcjs.executeSafeErc20Transfer.call(void 0, {
1220
+ result = await _chunkUELVNPGEcjs.executeSafeErc20Transfer.call(void 0, {
1233
1221
  walletClient: signerContext.walletClient,
1234
1222
  publicClient: pc,
1235
1223
  safeAddress,
@@ -1262,7 +1250,7 @@ function WithdrawFlow({
1262
1250
  targetChain,
1263
1251
  targetToken
1264
1252
  });
1265
- handleError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1253
+ handleError(_chunkUELVNPGEcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1266
1254
  throw err;
1267
1255
  }
1268
1256
  },
@@ -1293,6 +1281,10 @@ function WithdrawFlow({
1293
1281
  txHash,
1294
1282
  destinationTxHash,
1295
1283
  amount: context.amount,
1284
+ // Withdraw targets are always EVM — WithdrawModalProps.targetChain is
1285
+ // Chain | number (never "solana"). The context union is wide only
1286
+ // because ProcessingStep is shared with the deposit flow, so narrow
1287
+ // back here.
1296
1288
  sourceChain: context.sourceChain,
1297
1289
  sourceToken: context.sourceToken,
1298
1290
  targetChain: context.targetChain,
@@ -1323,9 +1315,9 @@ function WithdrawFlow({
1323
1315
  [_optionalChain([allowedRoutes, 'optionalAccess', _54 => _54.sourceTokens])]
1324
1316
  );
1325
1317
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1326
- return _chunkIVTXEYB2cjs.SOURCE_CHAINS.filter((chain) => {
1318
+ return _chunk7JIDIX27cjs.SOURCE_CHAINS.filter((chain) => {
1327
1319
  if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1328
- const tokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, chain.id);
1320
+ const tokens = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, chain.id);
1329
1321
  if (allowedTokenSet) {
1330
1322
  return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1331
1323
  }
@@ -1333,7 +1325,7 @@ function WithdrawFlow({
1333
1325
  });
1334
1326
  }, [allowedChainSet, allowedTokenSet]);
1335
1327
  const targetTokenOptions = _react.useMemo.call(void 0, () => {
1336
- const tokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, targetChain);
1328
+ const tokens = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, targetChain);
1337
1329
  if (!allowedTokenSet) return tokens;
1338
1330
  return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1339
1331
  }, [targetChain, allowedTokenSet]);
@@ -1347,7 +1339,7 @@ function WithdrawFlow({
1347
1339
  const handleTargetChainChange = _react.useCallback.call(void 0,
1348
1340
  (chainId) => {
1349
1341
  setTargetChain(chainId);
1350
- let options = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, chainId);
1342
+ let options = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, chainId);
1351
1343
  if (allowedTokenSet) {
1352
1344
  options = options.filter(
1353
1345
  (t) => allowedTokenSet.has(t.symbol.toUpperCase())
@@ -1397,7 +1389,7 @@ function WithdrawFlow({
1397
1389
  state: "ready"
1398
1390
  }));
1399
1391
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1400
- _chunkDX2D2TRZcjs.ConnectStep,
1392
+ _chunkUELVNPGEcjs.ConnectStep,
1401
1393
  {
1402
1394
  walletRows: withdrawRows,
1403
1395
  onConfirmWallet: (walletId) => {
@@ -1415,7 +1407,7 @@ function WithdrawFlow({
1415
1407
  if (!signerContext) return null;
1416
1408
  if (!onSignTransaction && !signerContext.walletClient) return null;
1417
1409
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
1418
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, sourceChain)));
1410
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkUELVNPGEcjs.getPublicClient.call(void 0, sourceChain)));
1419
1411
  const stepView = deriveStepView(flowStep, registration);
1420
1412
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1421
1413
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1459,7 +1451,7 @@ function WithdrawFlow({
1459
1451
  }
1460
1452
  ),
1461
1453
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1462
- _chunkDX2D2TRZcjs.ProcessingStep,
1454
+ _chunkUELVNPGEcjs.ProcessingStep,
1463
1455
  {
1464
1456
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1465
1457
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1493,7 +1485,7 @@ function deriveStepView(step, _registration) {
1493
1485
  // src/WithdrawModal.tsx
1494
1486
 
1495
1487
  var ReownWithdrawInner = _react.lazy.call(void 0,
1496
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-4B6IMTBB.cjs"))).then((m) => ({
1488
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-FCWED55P.cjs"))).then((m) => ({
1497
1489
  default: m.WithdrawModalReown
1498
1490
  }))
1499
1491
  );
@@ -1521,8 +1513,8 @@ function WithdrawModalInner({
1521
1513
  inline,
1522
1514
  closeOnOverlayClick,
1523
1515
  allowedRoutes,
1524
- backendUrl = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL,
1525
- signerAddress = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS,
1516
+ backendUrl = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL,
1517
+ signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
1526
1518
  sessionChainIds,
1527
1519
  forceRegister = false,
1528
1520
  waitForFinalTx = true,
@@ -1541,18 +1533,18 @@ function WithdrawModalInner({
1541
1533
  debug
1542
1534
  }) {
1543
1535
  const modalRef = _react.useRef.call(void 0, null);
1544
- const onReadyRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onReady);
1536
+ const onReadyRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onReady);
1545
1537
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1546
1538
  void 0
1547
1539
  );
1548
- const targetChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, targetChainProp);
1549
- const sourceChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, sourceChainProp);
1540
+ const targetChain = _chunk7JIDIX27cjs.getChainId.call(void 0, targetChainProp);
1541
+ const sourceChain = _chunk7JIDIX27cjs.getChainId.call(void 0, sourceChainProp);
1550
1542
  const service = _react.useMemo.call(void 0,
1551
- () => _chunkDX2D2TRZcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1543
+ () => _chunkUELVNPGEcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1552
1544
  [backendUrl, debug]
1553
1545
  );
1554
1546
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1555
- const onErrorRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onError);
1547
+ const onErrorRef = _chunkUELVNPGEcjs.useLatestRef.call(void 0, onError);
1556
1548
  _react.useEffect.call(void 0, () => {
1557
1549
  if (isOpen && onSignTransaction && !dappAddress) {
1558
1550
  _optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
@@ -1563,7 +1555,7 @@ function WithdrawModalInner({
1563
1555
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1564
1556
  _react.useEffect.call(void 0, () => {
1565
1557
  if (isOpen && modalRef.current) {
1566
- _chunkDX2D2TRZcjs.applyTheme.call(void 0, modalRef.current, theme);
1558
+ _chunkUELVNPGEcjs.applyTheme.call(void 0, modalRef.current, theme);
1567
1559
  }
1568
1560
  }, [isOpen, theme]);
1569
1561
  _react.useEffect.call(void 0, () => {
@@ -1582,7 +1574,7 @@ function WithdrawModalInner({
1582
1574
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1583
1575
  const canGoBack = backHandler !== void 0;
1584
1576
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1585
- _chunkDX2D2TRZcjs.Modal,
1577
+ _chunkUELVNPGEcjs.Modal,
1586
1578
  {
1587
1579
  isOpen,
1588
1580
  onClose,
@@ -1598,7 +1590,7 @@ function WithdrawModalInner({
1598
1590
  className: "rs-modal-header-back",
1599
1591
  "aria-label": "Go back",
1600
1592
  onClick: backHandler,
1601
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronLeftIcon, {})
1593
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.ChevronLeftIcon, {})
1602
1594
  }
1603
1595
  ) }),
1604
1596
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1608,7 +1600,7 @@ function WithdrawModalInner({
1608
1600
  onClick: onClose,
1609
1601
  className: "rs-modal-close",
1610
1602
  "aria-label": "Close",
1611
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CloseIcon, {})
1603
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUELVNPGEcjs.CloseIcon, {})
1612
1604
  }
1613
1605
  ) })
1614
1606
  ] }),