@rhinestone/deposit-modal 0.6.0 → 0.7.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.
- package/dist/{DepositModalReown-J3KYAOD3.cjs → DepositModalReown-CHVDFNEX.cjs} +9 -9
- package/dist/{DepositModalReown-YD7TLEAA.mjs → DepositModalReown-T4RRW5FM.mjs} +6 -6
- package/dist/{WithdrawModalReown-ZPDMX47Z.mjs → WithdrawModalReown-Q6MUMZTX.mjs} +5 -5
- package/dist/{WithdrawModalReown-QSQUV6HX.cjs → WithdrawModalReown-YZMZTN6E.cjs} +8 -8
- package/dist/{chunk-FJWLC4AM.mjs → chunk-4JLYWRQA.mjs} +1 -1
- package/dist/{chunk-YYIE5U5K.cjs → chunk-6P3WNDED.cjs} +10 -8
- package/dist/{chunk-3JVGI7FC.mjs → chunk-CLUR2J72.mjs} +4 -4
- package/dist/{chunk-WJX3TJFK.mjs → chunk-CPMHRMPH.mjs} +36 -7
- package/dist/{chunk-ABVRVW3P.cjs → chunk-HH46H6ZI.cjs} +37 -8
- package/dist/{chunk-DXGM6YET.mjs → chunk-J52W34Y7.mjs} +6 -4
- package/dist/{chunk-F7P4MV72.mjs → chunk-K6J3RDDK.mjs} +1 -1
- package/dist/{chunk-DASS33PJ.cjs → chunk-KUURQOTT.cjs} +100 -100
- package/dist/{chunk-GQDVHMOT.mjs → chunk-OYPFPEIT.mjs} +333 -54
- package/dist/{chunk-7LVI3VAL.cjs → chunk-QSMPJQTX.cjs} +698 -529
- package/dist/{chunk-UEKPBRBY.cjs → chunk-RLMXWLF4.cjs} +3 -3
- package/dist/{chunk-ZDYV536Q.cjs → chunk-UN6MEOOA.cjs} +382 -103
- package/dist/{chunk-NSAODZSS.mjs → chunk-UZENNYHS.mjs} +242 -73
- package/dist/{chunk-NRNJAQUA.cjs → chunk-XOBLFIGV.cjs} +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +6 -6
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +3 -3
- package/dist/styles.css +103 -31
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkUN6MEOOAcjs = require('./chunk-UN6MEOOA.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
|
|
56
56
|
|
|
57
57
|
// src/WithdrawModal.tsx
|
|
58
58
|
|
|
@@ -244,8 +244,8 @@ function WithdrawFormStep({
|
|
|
244
244
|
const chainMismatch = Boolean(
|
|
245
245
|
_optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
|
|
246
246
|
);
|
|
247
|
-
const targetSymbol =
|
|
248
|
-
const targetChainName =
|
|
247
|
+
const targetSymbol = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
248
|
+
const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
|
|
249
249
|
const isBusy = submitting || isSubmitting;
|
|
250
250
|
const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
|
|
251
251
|
_react.useEffect.call(void 0, () => {
|
|
@@ -264,7 +264,7 @@ function WithdrawFormStep({
|
|
|
264
264
|
setIsSwitching(true);
|
|
265
265
|
switchChain(asset.chainId).catch((err) => {
|
|
266
266
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
267
|
-
setError(
|
|
267
|
+
setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
|
|
268
268
|
}).finally(() => {
|
|
269
269
|
setIsSwitching(false);
|
|
270
270
|
});
|
|
@@ -284,7 +284,7 @@ function WithdrawFormStep({
|
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
try {
|
|
287
|
-
const bal =
|
|
287
|
+
const bal = _chunkUN6MEOOAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
288
288
|
address: asset.token,
|
|
289
289
|
abi: _viem.erc20Abi,
|
|
290
290
|
functionName: "balanceOf",
|
|
@@ -395,7 +395,7 @@ function WithdrawFormStep({
|
|
|
395
395
|
await onSubmit(recipient, amount);
|
|
396
396
|
} catch (err) {
|
|
397
397
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
398
|
-
setError(
|
|
398
|
+
setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
|
|
399
399
|
} finally {
|
|
400
400
|
setIsSubmitting(false);
|
|
401
401
|
}
|
|
@@ -411,16 +411,16 @@ function WithdrawFormStep({
|
|
|
411
411
|
if (isBalanceLoading) {
|
|
412
412
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
413
413
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
|
|
414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-spinner--lg" }),
|
|
415
415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
416
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${
|
|
416
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
417
417
|
] }),
|
|
418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
418
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
|
|
419
419
|
] });
|
|
420
420
|
}
|
|
421
421
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
422
422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
423
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
423
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
|
|
424
424
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
425
425
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
426
426
|
"label",
|
|
@@ -466,7 +466,7 @@ function WithdrawFormStep({
|
|
|
466
466
|
),
|
|
467
467
|
isRecipientConnected ? null : "Use connected"
|
|
468
468
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
469
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
|
|
470
470
|
isRecipientConnected ? null : "Use connected"
|
|
471
471
|
] })
|
|
472
472
|
}
|
|
@@ -506,7 +506,7 @@ function WithdrawFormStep({
|
|
|
506
506
|
) })
|
|
507
507
|
] }),
|
|
508
508
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
509
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkUN6MEOOAcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
510
510
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
511
511
|
"Balance: ",
|
|
512
512
|
formattedBalance,
|
|
@@ -536,10 +536,10 @@ function WithdrawFormStep({
|
|
|
536
536
|
},
|
|
537
537
|
children: [
|
|
538
538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
539
|
-
|
|
539
|
+
_chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
540
540
|
"img",
|
|
541
541
|
{
|
|
542
|
-
src:
|
|
542
|
+
src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain),
|
|
543
543
|
alt: targetChainName,
|
|
544
544
|
className: "rs-withdraw-dropdown-icon"
|
|
545
545
|
}
|
|
@@ -547,7 +547,7 @@ function WithdrawFormStep({
|
|
|
547
547
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
|
|
548
548
|
] }),
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
|
|
550
|
+
_chunkUN6MEOOAcjs.ChevronDownIcon,
|
|
551
551
|
{
|
|
552
552
|
className: "rs-withdraw-dropdown-arrow",
|
|
553
553
|
style: {
|
|
@@ -568,10 +568,10 @@ function WithdrawFormStep({
|
|
|
568
568
|
setShowChainDropdown(false);
|
|
569
569
|
},
|
|
570
570
|
children: [
|
|
571
|
-
|
|
571
|
+
_chunkHH46H6ZIcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
572
572
|
"img",
|
|
573
573
|
{
|
|
574
|
-
src:
|
|
574
|
+
src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, chain.id),
|
|
575
575
|
alt: chain.name,
|
|
576
576
|
className: "rs-withdraw-dropdown-icon"
|
|
577
577
|
}
|
|
@@ -605,10 +605,10 @@ function WithdrawFormStep({
|
|
|
605
605
|
},
|
|
606
606
|
children: [
|
|
607
607
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
608
|
-
|
|
608
|
+
_chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
609
609
|
"img",
|
|
610
610
|
{
|
|
611
|
-
src:
|
|
611
|
+
src: _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol),
|
|
612
612
|
alt: targetSymbol,
|
|
613
613
|
className: "rs-withdraw-dropdown-icon"
|
|
614
614
|
}
|
|
@@ -616,7 +616,7 @@ function WithdrawFormStep({
|
|
|
616
616
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
|
|
617
617
|
] }),
|
|
618
618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
619
|
-
|
|
619
|
+
_chunkUN6MEOOAcjs.ChevronDownIcon,
|
|
620
620
|
{
|
|
621
621
|
className: "rs-withdraw-dropdown-arrow",
|
|
622
622
|
style: {
|
|
@@ -637,10 +637,10 @@ function WithdrawFormStep({
|
|
|
637
637
|
setShowTokenDropdown(false);
|
|
638
638
|
},
|
|
639
639
|
children: [
|
|
640
|
-
|
|
640
|
+
_chunkHH46H6ZIcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
641
641
|
"img",
|
|
642
642
|
{
|
|
643
|
-
src:
|
|
643
|
+
src: _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, option.symbol),
|
|
644
644
|
alt: option.symbol,
|
|
645
645
|
className: "rs-withdraw-dropdown-icon"
|
|
646
646
|
}
|
|
@@ -655,11 +655,11 @@ function WithdrawFormStep({
|
|
|
655
655
|
)
|
|
656
656
|
] })
|
|
657
657
|
] }),
|
|
658
|
-
chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${
|
|
659
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
660
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
658
|
+
chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
659
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
|
|
660
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: registrationError }),
|
|
661
661
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
662
|
-
|
|
662
|
+
_chunkUN6MEOOAcjs.Button,
|
|
663
663
|
{
|
|
664
664
|
onClick: handleWithdraw,
|
|
665
665
|
fullWidth: true,
|
|
@@ -669,7 +669,7 @@ function WithdrawFormStep({
|
|
|
669
669
|
}
|
|
670
670
|
)
|
|
671
671
|
] }),
|
|
672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
|
|
673
673
|
] });
|
|
674
674
|
}
|
|
675
675
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -696,17 +696,17 @@ function WithdrawReviewStep({
|
|
|
696
696
|
}) {
|
|
697
697
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
698
698
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
699
|
-
const sourceChainName =
|
|
700
|
-
const sourceChainIcon =
|
|
701
|
-
const targetSymbol =
|
|
702
|
-
const targetChainName =
|
|
703
|
-
const targetChainIcon =
|
|
704
|
-
const sourceTokenIcon =
|
|
705
|
-
const targetTokenIcon =
|
|
699
|
+
const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, sourceChain);
|
|
700
|
+
const sourceChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChain);
|
|
701
|
+
const targetSymbol = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
702
|
+
const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
|
|
703
|
+
const targetChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain);
|
|
704
|
+
const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, sourceSymbol);
|
|
705
|
+
const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
|
|
706
706
|
const amountNumber = Number(amount);
|
|
707
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
708
|
-
const prices =
|
|
709
|
-
const receiveDisplay = _nullishCoalesce(
|
|
707
|
+
const formattedSendAmount = _nullishCoalesce(_chunkUN6MEOOAcjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
|
|
708
|
+
const prices = _chunkUN6MEOOAcjs.useTokenPrices.call(void 0, service, [sourceSymbol, targetSymbol]);
|
|
709
|
+
const receiveDisplay = _nullishCoalesce(_chunkUN6MEOOAcjs.formatReceiveEstimate.call(void 0, {
|
|
710
710
|
sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
|
|
711
711
|
sourceSymbol,
|
|
712
712
|
targetSymbol,
|
|
@@ -720,7 +720,7 @@ function WithdrawReviewStep({
|
|
|
720
720
|
await onConfirm();
|
|
721
721
|
} catch (err) {
|
|
722
722
|
const raw = err instanceof Error ? err.message : "Withdraw failed";
|
|
723
|
-
const message =
|
|
723
|
+
const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
|
|
724
724
|
setError(message);
|
|
725
725
|
_optionalChain([onError, 'optionalCall', _10 => _10(message, "WITHDRAW_REVIEW_ERROR")]);
|
|
726
726
|
} finally {
|
|
@@ -731,9 +731,9 @@ function WithdrawReviewStep({
|
|
|
731
731
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
732
732
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
733
733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
734
|
-
|
|
734
|
+
_chunkUN6MEOOAcjs.BodyHeader,
|
|
735
735
|
{
|
|
736
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
736
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CircleArrowOutUpLeftIcon, {}),
|
|
737
737
|
title: "Review withdrawal"
|
|
738
738
|
}
|
|
739
739
|
),
|
|
@@ -779,10 +779,10 @@ function WithdrawReviewStep({
|
|
|
779
779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
|
|
780
780
|
] })
|
|
781
781
|
] }),
|
|
782
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
783
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
782
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
|
|
783
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: registrationError }),
|
|
784
784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
785
|
-
|
|
785
|
+
_chunkUN6MEOOAcjs.Button,
|
|
786
786
|
{
|
|
787
787
|
onClick: handleConfirm,
|
|
788
788
|
loading: isSubmitting,
|
|
@@ -793,7 +793,7 @@ function WithdrawReviewStep({
|
|
|
793
793
|
}
|
|
794
794
|
)
|
|
795
795
|
] }),
|
|
796
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
796
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
|
|
797
797
|
] });
|
|
798
798
|
}
|
|
799
799
|
WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
@@ -805,15 +805,15 @@ var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
|
|
|
805
805
|
var REGISTRATION_DEBOUNCE_MS = 600;
|
|
806
806
|
var WITHDRAW_INDEXING_DELAY_MS = 2e3;
|
|
807
807
|
function resolveSessionOwner(eoaAddress) {
|
|
808
|
-
const localOwner =
|
|
808
|
+
const localOwner = _chunkUN6MEOOAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
809
809
|
if (localOwner) {
|
|
810
810
|
return {
|
|
811
|
-
account:
|
|
811
|
+
account: _chunkUN6MEOOAcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
812
812
|
address: localOwner.address
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const created =
|
|
816
|
-
|
|
815
|
+
const created = _chunkUN6MEOOAcjs.createSessionOwnerKey.call(void 0, );
|
|
816
|
+
_chunkUN6MEOOAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
817
817
|
return { account: created.account, address: created.address };
|
|
818
818
|
}
|
|
819
819
|
function targetsEqual(a, b) {
|
|
@@ -833,7 +833,7 @@ function WithdrawFlow({
|
|
|
833
833
|
amount: defaultAmount,
|
|
834
834
|
service,
|
|
835
835
|
allowedRoutes,
|
|
836
|
-
signerAddress =
|
|
836
|
+
signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
|
|
837
837
|
sessionChainIds,
|
|
838
838
|
forceRegister = false,
|
|
839
839
|
reownWallet,
|
|
@@ -848,11 +848,11 @@ function WithdrawFlow({
|
|
|
848
848
|
onError,
|
|
849
849
|
debug
|
|
850
850
|
}) {
|
|
851
|
-
const rpcUrls =
|
|
852
|
-
const onStepChangeRef =
|
|
853
|
-
const onEventRef =
|
|
854
|
-
const onLifecycleRef =
|
|
855
|
-
const onErrorRef =
|
|
851
|
+
const rpcUrls = _chunkUN6MEOOAcjs.useRpcUrls.call(void 0, );
|
|
852
|
+
const onStepChangeRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onStepChange);
|
|
853
|
+
const onEventRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onEvent);
|
|
854
|
+
const onLifecycleRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onLifecycle);
|
|
855
|
+
const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
|
|
856
856
|
const isFlowActiveRef = _react.useRef.call(void 0, true);
|
|
857
857
|
const submitGenerationRef = _react.useRef.call(void 0, 0);
|
|
858
858
|
_react.useEffect.call(void 0, () => {
|
|
@@ -863,13 +863,13 @@ function WithdrawFlow({
|
|
|
863
863
|
}, []);
|
|
864
864
|
const logFlow = _react.useCallback.call(void 0,
|
|
865
865
|
(message, data) => {
|
|
866
|
-
|
|
866
|
+
_chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
867
867
|
},
|
|
868
868
|
[debug]
|
|
869
869
|
);
|
|
870
870
|
const logFlowError = _react.useCallback.call(void 0,
|
|
871
871
|
(message, error, data) => {
|
|
872
|
-
|
|
872
|
+
_chunkUN6MEOOAcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
873
873
|
},
|
|
874
874
|
[debug]
|
|
875
875
|
);
|
|
@@ -945,14 +945,14 @@ function WithdrawFlow({
|
|
|
945
945
|
return {
|
|
946
946
|
ownerAddress: dappAddress,
|
|
947
947
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
948
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
948
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
|
|
949
949
|
switchChain: dappSwitchChain
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
return {
|
|
953
953
|
ownerAddress: dappWalletClient.account.address,
|
|
954
954
|
walletClient: dappWalletClient,
|
|
955
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
955
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
|
|
956
956
|
switchChain: dappSwitchChain
|
|
957
957
|
};
|
|
958
958
|
}
|
|
@@ -963,7 +963,7 @@ function WithdrawFlow({
|
|
|
963
963
|
return {
|
|
964
964
|
ownerAddress: dappWalletClient.account.address,
|
|
965
965
|
walletClient: dappWalletClient,
|
|
966
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
966
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, sourceChain, rpcUrls))),
|
|
967
967
|
switchChain: dappSwitchChain
|
|
968
968
|
};
|
|
969
969
|
}
|
|
@@ -1021,7 +1021,7 @@ function WithdrawFlow({
|
|
|
1021
1021
|
const setup = await service.setupAccount({
|
|
1022
1022
|
ownerAddress,
|
|
1023
1023
|
sessionOwnerAddress: sessionOwner.address,
|
|
1024
|
-
targetChain:
|
|
1024
|
+
targetChain: _chunkHH46H6ZIcjs.toEvmCaip2.call(void 0, targetChain),
|
|
1025
1025
|
targetToken,
|
|
1026
1026
|
recipient: recipientForRegistration,
|
|
1027
1027
|
signerAddress,
|
|
@@ -1046,7 +1046,7 @@ function WithdrawFlow({
|
|
|
1046
1046
|
message: typedData.message
|
|
1047
1047
|
});
|
|
1048
1048
|
if (cancelled) return;
|
|
1049
|
-
const sessionDetails =
|
|
1049
|
+
const sessionDetails = _chunkUN6MEOOAcjs.buildSessionDetails.call(void 0,
|
|
1050
1050
|
setup.sessionDetailsUnsigned,
|
|
1051
1051
|
signature
|
|
1052
1052
|
);
|
|
@@ -1060,7 +1060,7 @@ function WithdrawFlow({
|
|
|
1060
1060
|
eoaAddress: ownerAddress,
|
|
1061
1061
|
sessionOwner: sessionOwner.address,
|
|
1062
1062
|
target: {
|
|
1063
|
-
chain:
|
|
1063
|
+
chain: _chunkHH46H6ZIcjs.toEvmCaip2.call(void 0, targetChain),
|
|
1064
1064
|
token: targetToken,
|
|
1065
1065
|
recipient: recipientForRegistration
|
|
1066
1066
|
}
|
|
@@ -1083,7 +1083,7 @@ function WithdrawFlow({
|
|
|
1083
1083
|
} catch (err) {
|
|
1084
1084
|
if (cancelled) return;
|
|
1085
1085
|
const raw = err instanceof Error ? err.message : "Registration failed";
|
|
1086
|
-
const message =
|
|
1086
|
+
const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
|
|
1087
1087
|
logFlowError("auto-register:failed", err, {
|
|
1088
1088
|
ownerAddress,
|
|
1089
1089
|
targetChain,
|
|
@@ -1116,10 +1116,10 @@ function WithdrawFlow({
|
|
|
1116
1116
|
onErrorRef
|
|
1117
1117
|
]);
|
|
1118
1118
|
const asset = _react.useMemo.call(void 0, () => {
|
|
1119
|
-
const symbol =
|
|
1120
|
-
const decimals =
|
|
1119
|
+
const symbol = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1120
|
+
const decimals = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1121
1121
|
return {
|
|
1122
|
-
id:
|
|
1122
|
+
id: _chunkUN6MEOOAcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1123
1123
|
chainId: sourceChain,
|
|
1124
1124
|
token: sourceToken,
|
|
1125
1125
|
symbol,
|
|
@@ -1127,7 +1127,7 @@ function WithdrawFlow({
|
|
|
1127
1127
|
decimals
|
|
1128
1128
|
};
|
|
1129
1129
|
}, [sourceChain, sourceToken]);
|
|
1130
|
-
const isSourceNative = sourceToken.toLowerCase() ===
|
|
1130
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
1131
1131
|
const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
|
|
1132
1132
|
const reviewedTarget = reviewedRecipient ? {
|
|
1133
1133
|
chain: targetChain,
|
|
@@ -1152,8 +1152,8 @@ function WithdrawFlow({
|
|
|
1152
1152
|
}
|
|
1153
1153
|
if (lastStepOpenEventKeyRef.current === "form") return;
|
|
1154
1154
|
lastStepOpenEventKeyRef.current = "form";
|
|
1155
|
-
const tokenSymbol =
|
|
1156
|
-
const chainName =
|
|
1155
|
+
const tokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1156
|
+
const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
|
|
1157
1157
|
_optionalChain([onEventRef, 'access', _39 => _39.current, 'optionalCall', _40 => _40({
|
|
1158
1158
|
type: "withdraw_modal_select_amount_open",
|
|
1159
1159
|
pred_balance: totalBalanceUsd,
|
|
@@ -1190,8 +1190,8 @@ function WithdrawFlow({
|
|
|
1190
1190
|
);
|
|
1191
1191
|
const handleFormContinue = _react.useCallback.call(void 0,
|
|
1192
1192
|
(recipient, amountValue) => {
|
|
1193
|
-
const tokenSymbol =
|
|
1194
|
-
const chainName =
|
|
1193
|
+
const tokenSymbol = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1194
|
+
const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
|
|
1195
1195
|
_optionalChain([onEventRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44({
|
|
1196
1196
|
type: "withdraw_modal_select_amount_cta_click",
|
|
1197
1197
|
pred_balance: totalBalanceUsd,
|
|
@@ -1259,7 +1259,7 @@ function WithdrawFlow({
|
|
|
1259
1259
|
targetToken
|
|
1260
1260
|
});
|
|
1261
1261
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1262
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _46 => _46.publicClient]), () => (
|
|
1262
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _46 => _46.publicClient]), () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
|
|
1263
1263
|
let result;
|
|
1264
1264
|
if (onSignTransaction) {
|
|
1265
1265
|
const transferTarget = isSameRoute ? recipient : smartAccount;
|
|
@@ -1272,7 +1272,7 @@ function WithdrawFlow({
|
|
|
1272
1272
|
args: [transferTarget, amountUnits]
|
|
1273
1273
|
})
|
|
1274
1274
|
};
|
|
1275
|
-
const request = await
|
|
1275
|
+
const request = await _chunkRLMXWLF4cjs.buildSafeTransaction.call(void 0, {
|
|
1276
1276
|
publicClient: pc,
|
|
1277
1277
|
safeAddress,
|
|
1278
1278
|
to: transferData.to,
|
|
@@ -1288,7 +1288,7 @@ function WithdrawFlow({
|
|
|
1288
1288
|
}
|
|
1289
1289
|
const relayResult = await service.relayWithdraw({
|
|
1290
1290
|
smartAccount,
|
|
1291
|
-
chainId:
|
|
1291
|
+
chainId: _chunkHH46H6ZIcjs.toEvmCaip2.call(void 0, sourceChain),
|
|
1292
1292
|
safeAddress,
|
|
1293
1293
|
safeTransaction: request.typedData.message,
|
|
1294
1294
|
signature
|
|
@@ -1301,7 +1301,7 @@ function WithdrawFlow({
|
|
|
1301
1301
|
if (!getMatchingRegistration()) {
|
|
1302
1302
|
throw new Error("Withdrawal target changed before submission");
|
|
1303
1303
|
}
|
|
1304
|
-
result = await
|
|
1304
|
+
result = await _chunkRLMXWLF4cjs.executeSafeEthTransfer.call(void 0, {
|
|
1305
1305
|
walletClient: signerContext.walletClient,
|
|
1306
1306
|
publicClient: pc,
|
|
1307
1307
|
safeAddress,
|
|
@@ -1313,7 +1313,7 @@ function WithdrawFlow({
|
|
|
1313
1313
|
if (!getMatchingRegistration()) {
|
|
1314
1314
|
throw new Error("Withdrawal target changed before submission");
|
|
1315
1315
|
}
|
|
1316
|
-
result = await
|
|
1316
|
+
result = await _chunkRLMXWLF4cjs.executeSafeErc20Transfer.call(void 0, {
|
|
1317
1317
|
walletClient: signerContext.walletClient,
|
|
1318
1318
|
publicClient: pc,
|
|
1319
1319
|
safeAddress,
|
|
@@ -1347,7 +1347,7 @@ function WithdrawFlow({
|
|
|
1347
1347
|
targetChain,
|
|
1348
1348
|
targetToken
|
|
1349
1349
|
});
|
|
1350
|
-
handleError(
|
|
1350
|
+
handleError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1351
1351
|
throw err;
|
|
1352
1352
|
}
|
|
1353
1353
|
},
|
|
@@ -1413,9 +1413,9 @@ function WithdrawFlow({
|
|
|
1413
1413
|
[_optionalChain([allowedRoutes, 'optionalAccess', _56 => _56.sourceTokens])]
|
|
1414
1414
|
);
|
|
1415
1415
|
const targetChainOptions = _react.useMemo.call(void 0, () => {
|
|
1416
|
-
return
|
|
1416
|
+
return _chunkHH46H6ZIcjs.SOURCE_CHAINS.filter((chain) => {
|
|
1417
1417
|
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1418
|
-
const tokens =
|
|
1418
|
+
const tokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens.call(void 0, chain.id);
|
|
1419
1419
|
if (allowedTokenSet) {
|
|
1420
1420
|
return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1421
1421
|
}
|
|
@@ -1423,7 +1423,7 @@ function WithdrawFlow({
|
|
|
1423
1423
|
});
|
|
1424
1424
|
}, [allowedChainSet, allowedTokenSet]);
|
|
1425
1425
|
const targetTokenOptions = _react.useMemo.call(void 0, () => {
|
|
1426
|
-
const tokens =
|
|
1426
|
+
const tokens = _chunkHH46H6ZIcjs.getSupportedTargetTokens.call(void 0, targetChain);
|
|
1427
1427
|
if (!allowedTokenSet) return tokens;
|
|
1428
1428
|
return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1429
1429
|
}, [targetChain, allowedTokenSet]);
|
|
@@ -1437,7 +1437,7 @@ function WithdrawFlow({
|
|
|
1437
1437
|
const handleTargetChainChange = _react.useCallback.call(void 0,
|
|
1438
1438
|
(chainId) => {
|
|
1439
1439
|
setTargetChain(chainId);
|
|
1440
|
-
let options =
|
|
1440
|
+
let options = _chunkHH46H6ZIcjs.getSupportedTargetTokens.call(void 0, chainId);
|
|
1441
1441
|
if (allowedTokenSet) {
|
|
1442
1442
|
options = options.filter(
|
|
1443
1443
|
(t) => allowedTokenSet.has(t.symbol.toUpperCase())
|
|
@@ -1487,7 +1487,7 @@ function WithdrawFlow({
|
|
|
1487
1487
|
state: "ready"
|
|
1488
1488
|
}));
|
|
1489
1489
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1490
|
-
|
|
1490
|
+
_chunkUN6MEOOAcjs.ConnectStep,
|
|
1491
1491
|
{
|
|
1492
1492
|
walletRows: withdrawRows,
|
|
1493
1493
|
onConfirmWallet: (walletId) => {
|
|
@@ -1505,7 +1505,7 @@ function WithdrawFlow({
|
|
|
1505
1505
|
if (!signerContext) return null;
|
|
1506
1506
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1507
1507
|
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _63 => _63.kind]) === "external" ? selectedWalletOption.address : void 0;
|
|
1508
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1508
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, sourceChain, rpcUrls)));
|
|
1509
1509
|
const depositAddress = registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : void 0;
|
|
1510
1510
|
const stepView = deriveStepView(flowStep, registration);
|
|
1511
1511
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
@@ -1552,7 +1552,7 @@ function WithdrawFlow({
|
|
|
1552
1552
|
}
|
|
1553
1553
|
),
|
|
1554
1554
|
stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1555
|
-
|
|
1555
|
+
_chunkUN6MEOOAcjs.ProcessingStep,
|
|
1556
1556
|
{
|
|
1557
1557
|
smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
|
|
1558
1558
|
txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
|
|
@@ -1594,7 +1594,7 @@ function deriveStepView(step, _registration) {
|
|
|
1594
1594
|
// src/WithdrawModal.tsx
|
|
1595
1595
|
|
|
1596
1596
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1597
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1597
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-YZMZTN6E.cjs"))).then((m) => ({
|
|
1598
1598
|
default: m.WithdrawModalReown
|
|
1599
1599
|
}))
|
|
1600
1600
|
);
|
|
@@ -1622,9 +1622,9 @@ function WithdrawModalInner({
|
|
|
1622
1622
|
inline,
|
|
1623
1623
|
closeOnOverlayClick,
|
|
1624
1624
|
allowedRoutes,
|
|
1625
|
-
backendUrl =
|
|
1625
|
+
backendUrl = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL,
|
|
1626
1626
|
rpcUrls: rpcUrlsProp,
|
|
1627
|
-
signerAddress =
|
|
1627
|
+
signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
|
|
1628
1628
|
sessionChainIds,
|
|
1629
1629
|
forceRegister = false,
|
|
1630
1630
|
reownWallet,
|
|
@@ -1642,19 +1642,19 @@ function WithdrawModalInner({
|
|
|
1642
1642
|
debug
|
|
1643
1643
|
}) {
|
|
1644
1644
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1645
|
-
const onReadyRef =
|
|
1645
|
+
const onReadyRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onReady);
|
|
1646
1646
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1647
1647
|
void 0
|
|
1648
1648
|
);
|
|
1649
|
-
const targetChain =
|
|
1650
|
-
const sourceChain =
|
|
1651
|
-
const rpcUrls =
|
|
1649
|
+
const targetChain = _chunkHH46H6ZIcjs.getChainId.call(void 0, targetChainProp);
|
|
1650
|
+
const sourceChain = _chunkHH46H6ZIcjs.getChainId.call(void 0, sourceChainProp);
|
|
1651
|
+
const rpcUrls = _chunkUN6MEOOAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
1652
1652
|
const service = _react.useMemo.call(void 0,
|
|
1653
|
-
() =>
|
|
1653
|
+
() => _chunkUN6MEOOAcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1654
1654
|
[backendUrl, debug]
|
|
1655
1655
|
);
|
|
1656
1656
|
const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
|
|
1657
|
-
const onErrorRef =
|
|
1657
|
+
const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
|
|
1658
1658
|
_react.useEffect.call(void 0, () => {
|
|
1659
1659
|
if (isOpen && onSignTransaction && !dappAddress) {
|
|
1660
1660
|
_optionalChain([onErrorRef, 'access', _64 => _64.current, 'optionalCall', _65 => _65({
|
|
@@ -1665,7 +1665,7 @@ function WithdrawModalInner({
|
|
|
1665
1665
|
}, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
|
|
1666
1666
|
_react.useEffect.call(void 0, () => {
|
|
1667
1667
|
if (isOpen && modalRef.current) {
|
|
1668
|
-
|
|
1668
|
+
_chunkUN6MEOOAcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1669
1669
|
}
|
|
1670
1670
|
}, [isOpen, theme]);
|
|
1671
1671
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1683,8 +1683,8 @@ function WithdrawModalInner({
|
|
|
1683
1683
|
}, []);
|
|
1684
1684
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _68 => _68.showBackButton]), () => ( true));
|
|
1685
1685
|
const canGoBack = backHandler !== void 0;
|
|
1686
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1687
|
-
|
|
1686
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1687
|
+
_chunkUN6MEOOAcjs.Modal,
|
|
1688
1688
|
{
|
|
1689
1689
|
isOpen,
|
|
1690
1690
|
onClose,
|
|
@@ -1700,7 +1700,7 @@ function WithdrawModalInner({
|
|
|
1700
1700
|
className: "rs-modal-header-back",
|
|
1701
1701
|
"aria-label": "Go back",
|
|
1702
1702
|
onClick: backHandler,
|
|
1703
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1703
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronLeftIcon, {})
|
|
1704
1704
|
}
|
|
1705
1705
|
) }),
|
|
1706
1706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1710,7 +1710,7 @@ function WithdrawModalInner({
|
|
|
1710
1710
|
onClick: onClose,
|
|
1711
1711
|
className: "rs-modal-close",
|
|
1712
1712
|
"aria-label": "Close",
|
|
1713
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1713
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
|
|
1714
1714
|
}
|
|
1715
1715
|
) })
|
|
1716
1716
|
] }),
|