@rhinestone/deposit-modal 0.3.0-alpha.6 → 0.3.0-alpha.7
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-3N7YYGB4.mjs → DepositModalReown-42D5V5II.mjs} +8 -5
- package/dist/{DepositModalReown-SBSP5ZW2.cjs → DepositModalReown-ABLVMYFL.cjs} +9 -6
- package/dist/{WithdrawModalReown-BB3MZAIO.mjs → WithdrawModalReown-EVHN5NOF.mjs} +3 -3
- package/dist/{WithdrawModalReown-4B6IMTBB.cjs → WithdrawModalReown-FJP3XTQ5.cjs} +4 -4
- package/dist/{chunk-QI6Q7V6O.mjs → chunk-3FHYC3K7.mjs} +26 -34
- package/dist/{chunk-EJH36TH2.mjs → chunk-44IFH7DZ.mjs} +1247 -916
- package/dist/{chunk-CTYKQ4B4.mjs → chunk-7VKAUBZ7.mjs} +201 -81
- package/dist/{chunk-BB6UVRAV.cjs → chunk-CPXERFGC.cjs} +110 -118
- package/dist/{chunk-DX2D2TRZ.cjs → chunk-ENMIKNXS.cjs} +241 -121
- package/dist/{chunk-UVIIWUWP.cjs → chunk-LEVCOJD6.cjs} +1193 -862
- package/dist/chunk-MHKHSCIA.cjs +554 -0
- package/dist/chunk-UCZXBHLH.mjs +554 -0
- package/dist/constants-DqVn968d.d.cts +52 -0
- package/dist/constants-DqVn968d.d.ts +52 -0
- package/dist/constants.cjs +8 -2
- package/dist/constants.d.cts +17 -48
- package/dist/constants.d.ts +17 -48
- package/dist/constants.mjs +7 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/styles.css +180 -34
- package/dist/{types-xSHZSlrT.d.cts → types-D8Q4TMk7.d.cts} +17 -5
- package/dist/{types-xSHZSlrT.d.ts → types-D8Q4TMk7.d.ts} +17 -5
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-IVTXEYB2.cjs +0 -507
- package/dist/chunk-VA3ANS7D.mjs +0 -507
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkENMIKNXScjs = require('./chunk-ENMIKNXS.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
|
|
47
|
+
var _chunkMHKHSCIAcjs = require('./chunk-MHKHSCIA.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 =
|
|
239
|
-
const targetChainName =
|
|
238
|
+
const targetSymbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
239
|
+
const targetChainName = _chunkMHKHSCIAcjs.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(
|
|
258
|
+
setError(_chunkENMIKNXScjs.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 =
|
|
278
|
+
const bal = _chunkENMIKNXScjs.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(
|
|
382
|
+
setError(_chunkENMIKNXScjs.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-
|
|
389
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-
|
|
390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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, _chunkENMIKNXScjs.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 ${
|
|
392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkMHKHSCIAcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
393
393
|
] }),
|
|
394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.PoweredBy, {})
|
|
395
395
|
] });
|
|
396
396
|
}
|
|
397
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-
|
|
398
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-
|
|
399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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, _chunkENMIKNXScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.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,
|
|
437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.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 ?
|
|
476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkENMIKNXScjs.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
|
-
|
|
505
|
+
_chunkMHKHSCIAcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
506
|
"img",
|
|
507
507
|
{
|
|
508
|
-
src:
|
|
508
|
+
src: _chunkMHKHSCIAcjs.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
|
-
|
|
516
|
+
_chunkENMIKNXScjs.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
|
-
|
|
537
|
+
_chunkMHKHSCIAcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
538
|
"img",
|
|
539
539
|
{
|
|
540
|
-
src:
|
|
540
|
+
src: _chunkMHKHSCIAcjs.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
|
-
|
|
573
|
+
_chunkMHKHSCIAcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
574
574
|
"img",
|
|
575
575
|
{
|
|
576
|
-
src:
|
|
576
|
+
src: _chunkMHKHSCIAcjs.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
|
-
|
|
584
|
+
_chunkENMIKNXScjs.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
|
-
|
|
605
|
+
_chunkMHKHSCIAcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
606
606
|
"img",
|
|
607
607
|
{
|
|
608
|
-
src:
|
|
608
|
+
src: _chunkMHKHSCIAcjs.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 ${
|
|
624
|
-
error && /* @__PURE__ */ _jsxruntime.
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
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 ${_chunkMHKHSCIAcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkMHKHSCIAcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
624
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.Callout, { variant: "error", children: error }),
|
|
625
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.Callout, { variant: "error", children: registrationError }),
|
|
626
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
627
|
+
_chunkENMIKNXScjs.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,
|
|
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, _chunkENMIKNXScjs.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 =
|
|
670
|
-
const sourceChainIcon =
|
|
671
|
-
const targetSymbol =
|
|
672
|
-
const targetChainName =
|
|
673
|
-
const targetChainIcon =
|
|
674
|
-
const sourceTokenIcon =
|
|
675
|
-
const targetTokenIcon =
|
|
663
|
+
const sourceChainName = _chunkMHKHSCIAcjs.getChainName.call(void 0, sourceChain);
|
|
664
|
+
const sourceChainIcon = _chunkMHKHSCIAcjs.getChainIcon.call(void 0, sourceChain);
|
|
665
|
+
const targetSymbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
666
|
+
const targetChainName = _chunkMHKHSCIAcjs.getChainName.call(void 0, targetChain);
|
|
667
|
+
const targetChainIcon = _chunkMHKHSCIAcjs.getChainIcon.call(void 0, targetChain);
|
|
668
|
+
const sourceTokenIcon = _chunkMHKHSCIAcjs.getTokenIcon.call(void 0, sourceSymbol);
|
|
669
|
+
const targetTokenIcon = _chunkMHKHSCIAcjs.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 =
|
|
677
|
+
const message = _chunkENMIKNXScjs.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
|
-
|
|
688
|
+
_chunkENMIKNXScjs.BodyHeader,
|
|
695
689
|
{
|
|
696
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
690
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.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.
|
|
747
|
-
|
|
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, _chunkENMIKNXScjs.Callout, { variant: "error", children: error }),
|
|
741
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.Callout, { variant: "error", children: registrationError }),
|
|
754
742
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
755
|
-
|
|
743
|
+
_chunkENMIKNXScjs.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,
|
|
754
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.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 =
|
|
765
|
+
const localOwner = _chunkENMIKNXScjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
778
766
|
if (localOwner) {
|
|
779
767
|
return {
|
|
780
|
-
account:
|
|
768
|
+
account: _chunkENMIKNXScjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
781
769
|
address: localOwner.address
|
|
782
770
|
};
|
|
783
771
|
}
|
|
784
|
-
const created =
|
|
785
|
-
|
|
772
|
+
const created = _chunkENMIKNXScjs.createSessionOwnerKey.call(void 0, );
|
|
773
|
+
_chunkENMIKNXScjs.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 =
|
|
793
|
+
signerAddress = _chunkMHKHSCIAcjs.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 =
|
|
822
|
-
const onEventRef =
|
|
823
|
-
const onLifecycleRef =
|
|
824
|
-
const onErrorRef =
|
|
809
|
+
const onStepChangeRef = _chunkENMIKNXScjs.useLatestRef.call(void 0, onStepChange);
|
|
810
|
+
const onEventRef = _chunkENMIKNXScjs.useLatestRef.call(void 0, onEvent);
|
|
811
|
+
const onLifecycleRef = _chunkENMIKNXScjs.useLatestRef.call(void 0, onLifecycle);
|
|
812
|
+
const onErrorRef = _chunkENMIKNXScjs.useLatestRef.call(void 0, onError);
|
|
825
813
|
const logFlow = _react.useCallback.call(void 0,
|
|
826
814
|
(message, data) => {
|
|
827
|
-
|
|
815
|
+
_chunkENMIKNXScjs.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
|
-
|
|
821
|
+
_chunkENMIKNXScjs.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, () => (
|
|
896
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkENMIKNXScjs.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, () => (
|
|
903
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkENMIKNXScjs.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, () => (
|
|
914
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkENMIKNXScjs.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:
|
|
971
|
+
targetChain: _chunkENMIKNXScjs.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 =
|
|
996
|
+
const sessionDetails = _chunkENMIKNXScjs.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:
|
|
1010
|
+
chain: _chunkENMIKNXScjs.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 =
|
|
1033
|
+
const message = _chunkENMIKNXScjs.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 =
|
|
1079
|
-
const decimals =
|
|
1066
|
+
const symbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1067
|
+
const decimals = _chunkMHKHSCIAcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1080
1068
|
return {
|
|
1081
|
-
id:
|
|
1069
|
+
id: _chunkENMIKNXScjs.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() ===
|
|
1077
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkMHKHSCIAcjs.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 =
|
|
1108
|
-
const chainName =
|
|
1095
|
+
const tokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1096
|
+
const chainName = _chunkMHKHSCIAcjs.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 =
|
|
1146
|
-
const chainName =
|
|
1133
|
+
const tokenSymbol = _chunkMHKHSCIAcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1134
|
+
const chainName = _chunkMHKHSCIAcjs.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]), () => (
|
|
1177
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkENMIKNXScjs.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
|
|
1190
|
+
const request = await _chunkENMIKNXScjs.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:
|
|
1201
|
+
chainId: _chunkENMIKNXScjs.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
|
|
1211
|
+
result = await _chunkENMIKNXScjs.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
|
|
1220
|
+
result = await _chunkENMIKNXScjs.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(
|
|
1253
|
+
handleError(_chunkENMIKNXScjs.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
|
|
1318
|
+
return _chunkMHKHSCIAcjs.SOURCE_CHAINS.filter((chain) => {
|
|
1327
1319
|
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1328
|
-
const tokens =
|
|
1320
|
+
const tokens = _chunkMHKHSCIAcjs.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 =
|
|
1328
|
+
const tokens = _chunkMHKHSCIAcjs.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 =
|
|
1342
|
+
let options = _chunkMHKHSCIAcjs.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
|
-
|
|
1392
|
+
_chunkENMIKNXScjs.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, () => (
|
|
1410
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkENMIKNXScjs.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
|
-
|
|
1454
|
+
_chunkENMIKNXScjs.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-
|
|
1488
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-FJP3XTQ5.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 =
|
|
1525
|
-
signerAddress =
|
|
1516
|
+
backendUrl = _chunkMHKHSCIAcjs.DEFAULT_BACKEND_URL,
|
|
1517
|
+
signerAddress = _chunkMHKHSCIAcjs.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 =
|
|
1536
|
+
const onReadyRef = _chunkENMIKNXScjs.useLatestRef.call(void 0, onReady);
|
|
1545
1537
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1546
1538
|
void 0
|
|
1547
1539
|
);
|
|
1548
|
-
const targetChain =
|
|
1549
|
-
const sourceChain =
|
|
1540
|
+
const targetChain = _chunkMHKHSCIAcjs.getChainId.call(void 0, targetChainProp);
|
|
1541
|
+
const sourceChain = _chunkMHKHSCIAcjs.getChainId.call(void 0, sourceChainProp);
|
|
1550
1542
|
const service = _react.useMemo.call(void 0,
|
|
1551
|
-
() =>
|
|
1543
|
+
() => _chunkENMIKNXScjs.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 =
|
|
1547
|
+
const onErrorRef = _chunkENMIKNXScjs.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
|
-
|
|
1558
|
+
_chunkENMIKNXScjs.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
|
-
|
|
1577
|
+
_chunkENMIKNXScjs.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,
|
|
1593
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.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,
|
|
1603
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkENMIKNXScjs.CloseIcon, {})
|
|
1612
1604
|
}
|
|
1613
1605
|
) })
|
|
1614
1606
|
] }),
|