@rhinestone/deposit-modal 0.1.65 → 0.1.67
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-Y4M3RA73.mjs → DepositModalReown-EYIV6APK.mjs} +3 -3
- package/dist/{DepositModalReown-6ZMLUWWD.cjs → DepositModalReown-UPYZN2XA.cjs} +4 -4
- package/dist/{WithdrawModalReown-HVBMAUPM.mjs → WithdrawModalReown-6VYKKKJN.mjs} +3 -3
- package/dist/{WithdrawModalReown-WJ5SHBV4.cjs → WithdrawModalReown-WHPQDJJJ.cjs} +4 -4
- package/dist/{chunk-RKRF7ANK.mjs → chunk-5FDIQNJJ.mjs} +22 -19
- package/dist/{chunk-4CZ7W3RS.cjs → chunk-FLVSQDP4.cjs} +181 -132
- package/dist/{chunk-GAHX5RAT.mjs → chunk-IUW3SJQT.mjs} +103 -54
- package/dist/{chunk-MGV75YLV.cjs → chunk-LTLFJPHO.cjs} +106 -103
- package/dist/{chunk-R6U6BHCV.cjs → chunk-MUWVDVY4.cjs} +13 -1
- package/dist/{chunk-IYZGLNY6.mjs → chunk-NFE5ZLD3.mjs} +1171 -374
- package/dist/{chunk-CIXHTOO3.mjs → chunk-SDZKKUCJ.mjs} +13 -1
- package/dist/{chunk-OWV4KVBM.cjs → chunk-UDKZWFCM.cjs} +1251 -454
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +4 -4
- package/dist/styles.css +696 -34
- package/dist/{types-BLIqLF0c.d.ts → types-DGQzvl6v.d.ts} +12 -1
- package/dist/{types-7IoN8k-P.d.cts → types-DJ1fzNC7.d.cts} +12 -1
- 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 +5 -5
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkFLVSQDP4cjs = require('./chunk-FLVSQDP4.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -34,7 +34,7 @@ var _chunk4CZ7W3RScjs = require('./chunk-4CZ7W3RS.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
|
|
38
38
|
|
|
39
39
|
// src/WithdrawModal.tsx
|
|
40
40
|
|
|
@@ -107,8 +107,8 @@ function WithdrawFormStep({
|
|
|
107
107
|
const chainMismatch = Boolean(
|
|
108
108
|
_optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
|
|
109
109
|
);
|
|
110
|
-
const targetSymbol =
|
|
111
|
-
const targetChainName =
|
|
110
|
+
const targetSymbol = _chunkMUWVDVY4cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
111
|
+
const targetChainName = _chunkMUWVDVY4cjs.getChainName.call(void 0, targetChain);
|
|
112
112
|
const isBusy = submitting || isSubmitting;
|
|
113
113
|
const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
|
|
114
114
|
_react.useEffect.call(void 0, () => {
|
|
@@ -127,7 +127,7 @@ function WithdrawFormStep({
|
|
|
127
127
|
setIsSwitching(true);
|
|
128
128
|
switchChain(asset.chainId).catch((err) => {
|
|
129
129
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
130
|
-
setError(
|
|
130
|
+
setError(_chunkFLVSQDP4cjs.formatUserError.call(void 0, raw));
|
|
131
131
|
}).finally(() => {
|
|
132
132
|
setIsSwitching(false);
|
|
133
133
|
});
|
|
@@ -147,7 +147,7 @@ function WithdrawFormStep({
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
try {
|
|
150
|
-
const bal =
|
|
150
|
+
const bal = _chunkFLVSQDP4cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
151
151
|
address: asset.token,
|
|
152
152
|
abi: _viem.erc20Abi,
|
|
153
153
|
functionName: "balanceOf",
|
|
@@ -250,7 +250,7 @@ function WithdrawFormStep({
|
|
|
250
250
|
await onSubmit(recipient, amount);
|
|
251
251
|
} catch (err) {
|
|
252
252
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
253
|
-
setError(
|
|
253
|
+
setError(_chunkFLVSQDP4cjs.formatUserError.call(void 0, raw));
|
|
254
254
|
} finally {
|
|
255
255
|
setIsSubmitting(false);
|
|
256
256
|
}
|
|
@@ -258,11 +258,11 @@ function WithdrawFormStep({
|
|
|
258
258
|
if (isBalanceLoading) {
|
|
259
259
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
260
260
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
|
|
261
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Spinner, { className: "rs-spinner--lg" }),
|
|
262
262
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
263
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${
|
|
263
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkMUWVDVY4cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
264
264
|
] }),
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
|
|
266
266
|
] });
|
|
267
267
|
}
|
|
268
268
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
@@ -361,7 +361,7 @@ function WithdrawFormStep({
|
|
|
361
361
|
] })
|
|
362
362
|
] }),
|
|
363
363
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkFLVSQDP4cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
365
365
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
366
366
|
"Balance: ",
|
|
367
367
|
formattedBalance,
|
|
@@ -390,10 +390,10 @@ function WithdrawFormStep({
|
|
|
390
390
|
},
|
|
391
391
|
children: [
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
393
|
-
|
|
393
|
+
_chunkMUWVDVY4cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
394
|
"img",
|
|
395
395
|
{
|
|
396
|
-
src:
|
|
396
|
+
src: _chunkMUWVDVY4cjs.getTokenIcon.call(void 0, targetSymbol),
|
|
397
397
|
alt: targetSymbol,
|
|
398
398
|
className: "rs-withdraw-dropdown-icon"
|
|
399
399
|
}
|
|
@@ -434,10 +434,10 @@ function WithdrawFormStep({
|
|
|
434
434
|
setShowTokenDropdown(false);
|
|
435
435
|
},
|
|
436
436
|
children: [
|
|
437
|
-
|
|
437
|
+
_chunkMUWVDVY4cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
438
438
|
"img",
|
|
439
439
|
{
|
|
440
|
-
src:
|
|
440
|
+
src: _chunkMUWVDVY4cjs.getTokenIcon.call(void 0, option.symbol),
|
|
441
441
|
alt: option.symbol,
|
|
442
442
|
className: "rs-withdraw-dropdown-icon"
|
|
443
443
|
}
|
|
@@ -470,10 +470,10 @@ function WithdrawFormStep({
|
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
472
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
473
|
-
|
|
473
|
+
_chunkMUWVDVY4cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
474
474
|
"img",
|
|
475
475
|
{
|
|
476
|
-
src:
|
|
476
|
+
src: _chunkMUWVDVY4cjs.getChainIcon.call(void 0, targetChain),
|
|
477
477
|
alt: targetChainName,
|
|
478
478
|
className: "rs-withdraw-dropdown-icon"
|
|
479
479
|
}
|
|
@@ -514,10 +514,10 @@ function WithdrawFormStep({
|
|
|
514
514
|
setShowChainDropdown(false);
|
|
515
515
|
},
|
|
516
516
|
children: [
|
|
517
|
-
|
|
517
|
+
_chunkMUWVDVY4cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
518
518
|
"img",
|
|
519
519
|
{
|
|
520
|
-
src:
|
|
520
|
+
src: _chunkMUWVDVY4cjs.getChainIcon.call(void 0, chain.id),
|
|
521
521
|
alt: chain.name,
|
|
522
522
|
className: "rs-withdraw-dropdown-icon"
|
|
523
523
|
}
|
|
@@ -532,7 +532,7 @@ function WithdrawFormStep({
|
|
|
532
532
|
)
|
|
533
533
|
] })
|
|
534
534
|
] }),
|
|
535
|
-
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 ${
|
|
535
|
+
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 ${_chunkMUWVDVY4cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkMUWVDVY4cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
|
|
536
536
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
|
|
537
537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
538
|
"svg",
|
|
@@ -555,7 +555,7 @@ function WithdrawFormStep({
|
|
|
555
555
|
] })
|
|
556
556
|
] }),
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
-
|
|
558
|
+
_chunkFLVSQDP4cjs.Button,
|
|
559
559
|
{
|
|
560
560
|
onClick: handleWithdraw,
|
|
561
561
|
fullWidth: true,
|
|
@@ -564,7 +564,7 @@ function WithdrawFormStep({
|
|
|
564
564
|
children: isBusy ? "Preparing..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
|
|
565
565
|
}
|
|
566
566
|
) }),
|
|
567
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
|
|
568
568
|
] });
|
|
569
569
|
}
|
|
570
570
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -647,7 +647,7 @@ async function executeSafeEthTransfer(params) {
|
|
|
647
647
|
throw new Error("Wallet not connected");
|
|
648
648
|
}
|
|
649
649
|
if (chain.id !== chainId) {
|
|
650
|
-
throw new Error(`Switch to ${
|
|
650
|
+
throw new Error(`Switch to ${_chunkMUWVDVY4cjs.getChainName.call(void 0, chainId)} to sign`);
|
|
651
651
|
}
|
|
652
652
|
const isOwner = await publicClient.readContract({
|
|
653
653
|
address: safeAddress,
|
|
@@ -730,7 +730,7 @@ async function executeSafeErc20Transfer(params) {
|
|
|
730
730
|
throw new Error("Wallet not connected");
|
|
731
731
|
}
|
|
732
732
|
if (chain.id !== chainId) {
|
|
733
|
-
throw new Error(`Switch to ${
|
|
733
|
+
throw new Error(`Switch to ${_chunkMUWVDVY4cjs.getChainName.call(void 0, chainId)} to sign`);
|
|
734
734
|
}
|
|
735
735
|
const isOwner = await publicClient.readContract({
|
|
736
736
|
address: safeAddress,
|
|
@@ -870,7 +870,7 @@ function WithdrawFlow({
|
|
|
870
870
|
amount: defaultAmount,
|
|
871
871
|
service,
|
|
872
872
|
allowedRoutes,
|
|
873
|
-
signerAddress =
|
|
873
|
+
signerAddress = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS,
|
|
874
874
|
sessionChainIds,
|
|
875
875
|
forceRegister = false,
|
|
876
876
|
waitForFinalTx = true,
|
|
@@ -891,22 +891,27 @@ function WithdrawFlow({
|
|
|
891
891
|
onError,
|
|
892
892
|
debug
|
|
893
893
|
}) {
|
|
894
|
-
const onStepChangeRef =
|
|
895
|
-
const onTotalBalanceChangeRef =
|
|
896
|
-
const onEventRef =
|
|
894
|
+
const onStepChangeRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onStepChange);
|
|
895
|
+
const onTotalBalanceChangeRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onTotalBalanceChange);
|
|
896
|
+
const onEventRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onEvent);
|
|
897
|
+
const onConnectedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onConnected);
|
|
898
|
+
const onWithdrawSubmittedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onWithdrawSubmitted);
|
|
899
|
+
const onWithdrawCompleteRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onWithdrawComplete);
|
|
900
|
+
const onWithdrawFailedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onWithdrawFailed);
|
|
901
|
+
const onErrorRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onError);
|
|
897
902
|
const [step, setStep] = _react.useState.call(void 0, { type: "form" });
|
|
898
903
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
899
904
|
const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
|
|
900
905
|
const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
|
|
901
906
|
const logFlow = _react.useCallback.call(void 0,
|
|
902
907
|
(message, data) => {
|
|
903
|
-
|
|
908
|
+
_chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
904
909
|
},
|
|
905
910
|
[debug]
|
|
906
911
|
);
|
|
907
912
|
const logFlowError = _react.useCallback.call(void 0,
|
|
908
913
|
(message, error, data) => {
|
|
909
|
-
|
|
914
|
+
_chunkFLVSQDP4cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
910
915
|
},
|
|
911
916
|
[debug]
|
|
912
917
|
);
|
|
@@ -965,14 +970,14 @@ function WithdrawFlow({
|
|
|
965
970
|
return {
|
|
966
971
|
ownerAddress: dappAddress,
|
|
967
972
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
968
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
973
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, sourceChain))),
|
|
969
974
|
switchChain: dappSwitchChain
|
|
970
975
|
};
|
|
971
976
|
}
|
|
972
977
|
return {
|
|
973
978
|
ownerAddress: dappWalletClient.account.address,
|
|
974
979
|
walletClient: dappWalletClient,
|
|
975
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
980
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, sourceChain))),
|
|
976
981
|
switchChain: dappSwitchChain
|
|
977
982
|
};
|
|
978
983
|
}
|
|
@@ -983,7 +988,7 @@ function WithdrawFlow({
|
|
|
983
988
|
return {
|
|
984
989
|
ownerAddress: dappWalletClient.account.address,
|
|
985
990
|
walletClient: dappWalletClient,
|
|
986
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
991
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, sourceChain))),
|
|
987
992
|
switchChain: dappSwitchChain
|
|
988
993
|
};
|
|
989
994
|
}
|
|
@@ -1010,10 +1015,10 @@ function WithdrawFlow({
|
|
|
1010
1015
|
sourceChain
|
|
1011
1016
|
]);
|
|
1012
1017
|
const asset = _react.useMemo.call(void 0, () => {
|
|
1013
|
-
const symbol =
|
|
1014
|
-
const decimals =
|
|
1018
|
+
const symbol = _chunkMUWVDVY4cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1019
|
+
const decimals = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1015
1020
|
return {
|
|
1016
|
-
id:
|
|
1021
|
+
id: _chunkFLVSQDP4cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1017
1022
|
chainId: sourceChain,
|
|
1018
1023
|
token: sourceToken,
|
|
1019
1024
|
symbol,
|
|
@@ -1021,7 +1026,7 @@ function WithdrawFlow({
|
|
|
1021
1026
|
decimals
|
|
1022
1027
|
};
|
|
1023
1028
|
}, [sourceChain, sourceToken]);
|
|
1024
|
-
const isSourceNative = sourceToken.toLowerCase() ===
|
|
1029
|
+
const isSourceNative = sourceToken.toLowerCase() === _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
|
|
1025
1030
|
const stepIndex = step.type === "form" ? 0 : 1;
|
|
1026
1031
|
const currentBackHandler = void 0;
|
|
1027
1032
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1038,8 +1043,8 @@ function WithdrawFlow({
|
|
|
1038
1043
|
}
|
|
1039
1044
|
lastStepOpenEventKeyRef.current = "form";
|
|
1040
1045
|
if (step.type === "form") {
|
|
1041
|
-
const tokenSymbol =
|
|
1042
|
-
const chainName =
|
|
1046
|
+
const tokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1047
|
+
const chainName = _chunkMUWVDVY4cjs.getChainName.call(void 0, targetChain);
|
|
1043
1048
|
_optionalChain([onEventRef, 'access', _22 => _22.current, 'optionalCall', _23 => _23({
|
|
1044
1049
|
type: "withdraw_modal_select_amount_open",
|
|
1045
1050
|
pred_balance: totalBalanceUsd,
|
|
@@ -1072,27 +1077,27 @@ function WithdrawFlow({
|
|
|
1072
1077
|
const handleConnected = _react.useCallback.call(void 0,
|
|
1073
1078
|
(addr, smartAccount) => {
|
|
1074
1079
|
logFlow("setup:connected", { address: addr, smartAccount });
|
|
1075
|
-
_optionalChain([
|
|
1080
|
+
_optionalChain([onConnectedRef, 'access', _26 => _26.current, 'optionalCall', _27 => _27({ address: addr, smartAccount })]);
|
|
1076
1081
|
},
|
|
1077
|
-
[logFlow,
|
|
1082
|
+
[logFlow, onConnectedRef]
|
|
1078
1083
|
);
|
|
1079
1084
|
const handleError = _react.useCallback.call(void 0,
|
|
1080
1085
|
(message, code) => {
|
|
1081
1086
|
logFlowError("flow:error", message, { code });
|
|
1082
|
-
_optionalChain([
|
|
1087
|
+
_optionalChain([onErrorRef, 'access', _28 => _28.current, 'optionalCall', _29 => _29({ message, code })]);
|
|
1083
1088
|
},
|
|
1084
|
-
[logFlowError,
|
|
1089
|
+
[logFlowError, onErrorRef]
|
|
1085
1090
|
);
|
|
1086
1091
|
const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
|
|
1087
|
-
const localOwner =
|
|
1092
|
+
const localOwner = _chunkFLVSQDP4cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
1088
1093
|
if (localOwner) {
|
|
1089
1094
|
return {
|
|
1090
|
-
account:
|
|
1095
|
+
account: _chunkFLVSQDP4cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
1091
1096
|
address: localOwner.address
|
|
1092
1097
|
};
|
|
1093
1098
|
}
|
|
1094
|
-
const created =
|
|
1095
|
-
|
|
1099
|
+
const created = _chunkFLVSQDP4cjs.createSessionOwnerKey.call(void 0, );
|
|
1100
|
+
_chunkFLVSQDP4cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
1096
1101
|
return {
|
|
1097
1102
|
account: created.account,
|
|
1098
1103
|
address: created.address
|
|
@@ -1100,9 +1105,9 @@ function WithdrawFlow({
|
|
|
1100
1105
|
}, []);
|
|
1101
1106
|
const handleFormSubmit = _react.useCallback.call(void 0,
|
|
1102
1107
|
async (recipient, amountValue) => {
|
|
1103
|
-
const tokenSymbol =
|
|
1104
|
-
const chainName =
|
|
1105
|
-
_optionalChain([
|
|
1108
|
+
const tokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
|
|
1109
|
+
const chainName = _chunkMUWVDVY4cjs.getChainName.call(void 0, targetChain);
|
|
1110
|
+
_optionalChain([onEventRef, 'access', _30 => _30.current, 'optionalCall', _31 => _31({
|
|
1106
1111
|
type: "withdraw_modal_select_amount_cta_click",
|
|
1107
1112
|
pred_balance: totalBalanceUsd,
|
|
1108
1113
|
selected_token: tokenSymbol,
|
|
@@ -1110,11 +1115,11 @@ function WithdrawFlow({
|
|
|
1110
1115
|
amount: amountValue,
|
|
1111
1116
|
cta_name: "withdraw"
|
|
1112
1117
|
})]);
|
|
1113
|
-
const ownerAddress2 = _optionalChain([signerContext, 'optionalAccess',
|
|
1118
|
+
const ownerAddress2 = _optionalChain([signerContext, 'optionalAccess', _32 => _32.ownerAddress]);
|
|
1114
1119
|
if (!ownerAddress2) {
|
|
1115
1120
|
throw new Error("Wallet not connected");
|
|
1116
1121
|
}
|
|
1117
|
-
if (!onSignTransaction && !_optionalChain([signerContext, 'optionalAccess',
|
|
1122
|
+
if (!onSignTransaction && !_optionalChain([signerContext, 'optionalAccess', _33 => _33.walletClient])) {
|
|
1118
1123
|
throw new Error("Wallet not connected");
|
|
1119
1124
|
}
|
|
1120
1125
|
setIsSubmitting(true);
|
|
@@ -1132,7 +1137,7 @@ function WithdrawFlow({
|
|
|
1132
1137
|
const setup = await service.setupAccount({
|
|
1133
1138
|
ownerAddress: ownerAddress2,
|
|
1134
1139
|
sessionOwnerAddress: sessionOwner.address,
|
|
1135
|
-
targetChain:
|
|
1140
|
+
targetChain: _chunkFLVSQDP4cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1136
1141
|
targetToken,
|
|
1137
1142
|
recipient,
|
|
1138
1143
|
signerAddress,
|
|
@@ -1160,7 +1165,7 @@ function WithdrawFlow({
|
|
|
1160
1165
|
primaryType: typedData.primaryType,
|
|
1161
1166
|
message: typedData.message
|
|
1162
1167
|
});
|
|
1163
|
-
const sessionDetails =
|
|
1168
|
+
const sessionDetails = _chunkFLVSQDP4cjs.buildSessionDetails.call(void 0,
|
|
1164
1169
|
setup.sessionDetailsUnsigned,
|
|
1165
1170
|
signature
|
|
1166
1171
|
);
|
|
@@ -1174,7 +1179,7 @@ function WithdrawFlow({
|
|
|
1174
1179
|
eoaAddress: ownerAddress2,
|
|
1175
1180
|
sessionOwner: sessionOwner.address,
|
|
1176
1181
|
target: {
|
|
1177
|
-
chain:
|
|
1182
|
+
chain: _chunkFLVSQDP4cjs.toEvmCaip2.call(void 0, targetChain),
|
|
1178
1183
|
token: targetToken,
|
|
1179
1184
|
recipient
|
|
1180
1185
|
}
|
|
@@ -1183,7 +1188,7 @@ function WithdrawFlow({
|
|
|
1183
1188
|
}
|
|
1184
1189
|
handleConnected(ownerAddress2, smartAccount);
|
|
1185
1190
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1186
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess',
|
|
1191
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _34 => _34.publicClient]), () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1187
1192
|
let result;
|
|
1188
1193
|
if (onSignTransaction) {
|
|
1189
1194
|
const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
|
|
@@ -1206,7 +1211,7 @@ function WithdrawFlow({
|
|
|
1206
1211
|
const { signature } = await onSignTransaction(request);
|
|
1207
1212
|
const relayResult = await service.relayWithdraw({
|
|
1208
1213
|
smartAccount,
|
|
1209
|
-
chainId:
|
|
1214
|
+
chainId: _chunkFLVSQDP4cjs.toEvmCaip2.call(void 0, sourceChain),
|
|
1210
1215
|
safeAddress,
|
|
1211
1216
|
safeTransaction: request.typedData.message,
|
|
1212
1217
|
signature
|
|
@@ -1242,7 +1247,7 @@ function WithdrawFlow({
|
|
|
1242
1247
|
sourceChain,
|
|
1243
1248
|
sourceToken
|
|
1244
1249
|
});
|
|
1245
|
-
_optionalChain([
|
|
1250
|
+
_optionalChain([onWithdrawSubmittedRef, 'access', _35 => _35.current, 'optionalCall', _36 => _36({
|
|
1246
1251
|
txHash: result.txHash,
|
|
1247
1252
|
sourceChain,
|
|
1248
1253
|
amount: amountUnits.toString(),
|
|
@@ -1264,7 +1269,7 @@ function WithdrawFlow({
|
|
|
1264
1269
|
targetChain,
|
|
1265
1270
|
targetToken
|
|
1266
1271
|
});
|
|
1267
|
-
handleError(
|
|
1272
|
+
handleError(_chunkFLVSQDP4cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1268
1273
|
throw err;
|
|
1269
1274
|
} finally {
|
|
1270
1275
|
setIsSubmitting(false);
|
|
@@ -1284,20 +1289,20 @@ function WithdrawFlow({
|
|
|
1284
1289
|
safeAddress,
|
|
1285
1290
|
sourceToken,
|
|
1286
1291
|
sourceChain,
|
|
1287
|
-
onWithdrawSubmitted,
|
|
1288
1292
|
onSignTransaction,
|
|
1289
1293
|
isSourceNative,
|
|
1290
1294
|
handleError,
|
|
1291
1295
|
logFlow,
|
|
1292
1296
|
logFlowError,
|
|
1293
|
-
|
|
1294
|
-
totalBalanceUsd
|
|
1297
|
+
onEventRef,
|
|
1298
|
+
totalBalanceUsd,
|
|
1299
|
+
onWithdrawSubmittedRef
|
|
1295
1300
|
]
|
|
1296
1301
|
);
|
|
1297
1302
|
const handleWithdrawComplete = _react.useCallback.call(void 0,
|
|
1298
1303
|
(txHash, destinationTxHash, context) => {
|
|
1299
1304
|
logFlow("withdraw:complete", { txHash, destinationTxHash, ...context });
|
|
1300
|
-
_optionalChain([
|
|
1305
|
+
_optionalChain([onWithdrawCompleteRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
|
|
1301
1306
|
txHash,
|
|
1302
1307
|
destinationTxHash,
|
|
1303
1308
|
amount: context.amount,
|
|
@@ -1307,27 +1312,27 @@ function WithdrawFlow({
|
|
|
1307
1312
|
targetToken: context.targetToken
|
|
1308
1313
|
})]);
|
|
1309
1314
|
},
|
|
1310
|
-
[logFlow,
|
|
1315
|
+
[logFlow, onWithdrawCompleteRef]
|
|
1311
1316
|
);
|
|
1312
1317
|
const handleWithdrawFailed = _react.useCallback.call(void 0,
|
|
1313
1318
|
(txHash, error) => {
|
|
1314
1319
|
logFlowError("withdraw:failed", error, { txHash });
|
|
1315
|
-
_optionalChain([
|
|
1320
|
+
_optionalChain([onWithdrawFailedRef, 'access', _39 => _39.current, 'optionalCall', _40 => _40({ txHash, error })]);
|
|
1316
1321
|
},
|
|
1317
|
-
[logFlowError,
|
|
1322
|
+
[logFlowError, onWithdrawFailedRef]
|
|
1318
1323
|
);
|
|
1319
1324
|
const allowedChainSet = _react.useMemo.call(void 0,
|
|
1320
|
-
() => _optionalChain([allowedRoutes, 'optionalAccess',
|
|
1321
|
-
[_optionalChain([allowedRoutes, 'optionalAccess',
|
|
1325
|
+
() => _optionalChain([allowedRoutes, 'optionalAccess', _41 => _41.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
|
|
1326
|
+
[_optionalChain([allowedRoutes, 'optionalAccess', _42 => _42.sourceChains])]
|
|
1322
1327
|
);
|
|
1323
1328
|
const allowedTokenSet = _react.useMemo.call(void 0,
|
|
1324
|
-
() => _optionalChain([allowedRoutes, 'optionalAccess',
|
|
1325
|
-
[_optionalChain([allowedRoutes, 'optionalAccess',
|
|
1329
|
+
() => _optionalChain([allowedRoutes, 'optionalAccess', _43 => _43.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
|
|
1330
|
+
[_optionalChain([allowedRoutes, 'optionalAccess', _44 => _44.sourceTokens])]
|
|
1326
1331
|
);
|
|
1327
1332
|
const targetChainOptions = _react.useMemo.call(void 0, () => {
|
|
1328
|
-
return
|
|
1333
|
+
return _chunkMUWVDVY4cjs.SOURCE_CHAINS.filter((chain) => {
|
|
1329
1334
|
if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
|
|
1330
|
-
const tokens =
|
|
1335
|
+
const tokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens.call(void 0, chain.id);
|
|
1331
1336
|
if (allowedTokenSet) {
|
|
1332
1337
|
return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1333
1338
|
}
|
|
@@ -1335,7 +1340,7 @@ function WithdrawFlow({
|
|
|
1335
1340
|
});
|
|
1336
1341
|
}, [allowedChainSet, allowedTokenSet]);
|
|
1337
1342
|
const targetTokenOptions = _react.useMemo.call(void 0, () => {
|
|
1338
|
-
const tokens =
|
|
1343
|
+
const tokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens.call(void 0, targetChain);
|
|
1339
1344
|
if (!allowedTokenSet) return tokens;
|
|
1340
1345
|
return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1341
1346
|
}, [targetChain, allowedTokenSet]);
|
|
@@ -1351,7 +1356,7 @@ function WithdrawFlow({
|
|
|
1351
1356
|
const handleTargetChainChange = _react.useCallback.call(void 0,
|
|
1352
1357
|
(chainId) => {
|
|
1353
1358
|
setTargetChain(chainId);
|
|
1354
|
-
let options =
|
|
1359
|
+
let options = _chunkMUWVDVY4cjs.getSupportedTargetTokens.call(void 0, chainId);
|
|
1355
1360
|
if (allowedTokenSet) {
|
|
1356
1361
|
options = options.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
|
|
1357
1362
|
}
|
|
@@ -1391,18 +1396,18 @@ function WithdrawFlow({
|
|
|
1391
1396
|
setIsConnectSelectionConfirmed(false);
|
|
1392
1397
|
}
|
|
1393
1398
|
}, [showConnectStep, isConnectSelectionConfirmed, signerContext]);
|
|
1394
|
-
const ownerAddress = _optionalChain([signerContext, 'optionalAccess',
|
|
1399
|
+
const ownerAddress = _optionalChain([signerContext, 'optionalAccess', _45 => _45.ownerAddress]);
|
|
1395
1400
|
const selectedWalletOption = selectedWalletIdEffective ? _nullishCoalesce(walletOptions.find((option) => option.id === selectedWalletIdEffective), () => ( null)) : null;
|
|
1396
1401
|
const selectedWalletIcon = _react.useMemo.call(void 0, () => {
|
|
1397
1402
|
if (!ownerAddress) return void 0;
|
|
1398
1403
|
const selected = walletOptions.find(
|
|
1399
|
-
(o) => _optionalChain([o, 'access',
|
|
1404
|
+
(o) => _optionalChain([o, 'access', _46 => _46.address, 'optionalAccess', _47 => _47.toLowerCase, 'call', _48 => _48()]) === ownerAddress.toLowerCase()
|
|
1400
1405
|
);
|
|
1401
|
-
return _optionalChain([selected, 'optionalAccess',
|
|
1402
|
-
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess',
|
|
1406
|
+
return _optionalChain([selected, 'optionalAccess', _49 => _49.kind]) === "external" ? _nullishCoalesce(selected.icon, () => ( _optionalChain([reownWallet, 'optionalAccess', _50 => _50.icon]))) : void 0;
|
|
1407
|
+
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _51 => _51.icon])]);
|
|
1403
1408
|
if (showConnectStep) {
|
|
1404
1409
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1405
|
-
|
|
1410
|
+
_chunkFLVSQDP4cjs.ConnectStep,
|
|
1406
1411
|
{
|
|
1407
1412
|
walletOptions,
|
|
1408
1413
|
selectedWalletId: selectedWalletIdEffective,
|
|
@@ -1422,8 +1427,8 @@ function WithdrawFlow({
|
|
|
1422
1427
|
}
|
|
1423
1428
|
if (!signerContext) return null;
|
|
1424
1429
|
if (!onSignTransaction && !signerContext.walletClient) return null;
|
|
1425
|
-
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess',
|
|
1426
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1430
|
+
const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _52 => _52.kind]) === "external" ? selectedWalletOption.address : void 0;
|
|
1431
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, sourceChain)));
|
|
1427
1432
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1428
1433
|
step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1429
1434
|
WithdrawFormStep,
|
|
@@ -1449,7 +1454,7 @@ function WithdrawFlow({
|
|
|
1449
1454
|
}
|
|
1450
1455
|
),
|
|
1451
1456
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1452
|
-
|
|
1457
|
+
_chunkFLVSQDP4cjs.ProcessingStep,
|
|
1453
1458
|
{
|
|
1454
1459
|
smartAccount: step.smartAccount,
|
|
1455
1460
|
txHash: step.txHash,
|
|
@@ -1475,7 +1480,7 @@ function WithdrawFlow({
|
|
|
1475
1480
|
// src/WithdrawModal.tsx
|
|
1476
1481
|
|
|
1477
1482
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1478
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1483
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-WHPQDJJJ.cjs"))).then((m) => ({
|
|
1479
1484
|
default: m.WithdrawModalReown
|
|
1480
1485
|
}))
|
|
1481
1486
|
);
|
|
@@ -1503,8 +1508,8 @@ function WithdrawModalInner({
|
|
|
1503
1508
|
inline,
|
|
1504
1509
|
closeOnOverlayClick,
|
|
1505
1510
|
allowedRoutes,
|
|
1506
|
-
backendUrl =
|
|
1507
|
-
signerAddress =
|
|
1511
|
+
backendUrl = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL,
|
|
1512
|
+
signerAddress = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS,
|
|
1508
1513
|
sessionChainIds,
|
|
1509
1514
|
forceRegister = false,
|
|
1510
1515
|
waitForFinalTx = true,
|
|
@@ -1528,26 +1533,24 @@ function WithdrawModalInner({
|
|
|
1528
1533
|
debug
|
|
1529
1534
|
}) {
|
|
1530
1535
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1531
|
-
const onReadyRef =
|
|
1536
|
+
const onReadyRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onReady);
|
|
1532
1537
|
const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
|
|
1533
1538
|
const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
|
|
1534
1539
|
const backHandlerRef = _react.useRef.call(void 0, void 0);
|
|
1535
|
-
const targetChain =
|
|
1536
|
-
const sourceChain =
|
|
1540
|
+
const targetChain = _chunkMUWVDVY4cjs.getChainId.call(void 0, targetChainProp);
|
|
1541
|
+
const sourceChain = _chunkMUWVDVY4cjs.getChainId.call(void 0, sourceChainProp);
|
|
1537
1542
|
const service = _react.useMemo.call(void 0,
|
|
1538
|
-
() =>
|
|
1543
|
+
() => _chunkFLVSQDP4cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1539
1544
|
[backendUrl, debug]
|
|
1540
1545
|
);
|
|
1541
1546
|
_react.useEffect.call(void 0, () => {
|
|
1542
1547
|
if (isOpen && modalRef.current) {
|
|
1543
|
-
|
|
1548
|
+
_chunkFLVSQDP4cjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1544
1549
|
}
|
|
1545
1550
|
}, [isOpen, theme]);
|
|
1546
|
-
const hasCalledReady = _react.useRef.call(void 0, false);
|
|
1547
1551
|
_react.useEffect.call(void 0, () => {
|
|
1548
|
-
if (isOpen
|
|
1549
|
-
|
|
1550
|
-
_optionalChain([onReadyRef, 'access', _47 => _47.current, 'optionalCall', _48 => _48()]);
|
|
1552
|
+
if (isOpen) {
|
|
1553
|
+
_optionalChain([onReadyRef, 'access', _53 => _53.current, 'optionalCall', _54 => _54()]);
|
|
1551
1554
|
}
|
|
1552
1555
|
}, [isOpen, onReadyRef]);
|
|
1553
1556
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1566,17 +1569,17 @@ function WithdrawModalInner({
|
|
|
1566
1569
|
setTotalBalanceUsd(balance2);
|
|
1567
1570
|
}, []);
|
|
1568
1571
|
const handleBack = _react.useCallback.call(void 0, () => {
|
|
1569
|
-
_optionalChain([backHandlerRef, 'access',
|
|
1572
|
+
_optionalChain([backHandlerRef, 'access', _55 => _55.current, 'optionalCall', _56 => _56()]);
|
|
1570
1573
|
}, []);
|
|
1571
|
-
const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1572
|
-
const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1573
|
-
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
1574
|
-
const balance = _optionalChain([uiConfig, 'optionalAccess',
|
|
1575
|
-
const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess',
|
|
1576
|
-
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess',
|
|
1574
|
+
const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _57 => _57.showLogo]), () => ( false));
|
|
1575
|
+
const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _58 => _58.showStepper]), () => ( false));
|
|
1576
|
+
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _59 => _59.showBackButton]), () => ( true));
|
|
1577
|
+
const balance = _optionalChain([uiConfig, 'optionalAccess', _60 => _60.balance]);
|
|
1578
|
+
const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _61 => _61.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
|
|
1579
|
+
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _62 => _62.title]), () => ( "Withdraw"));
|
|
1577
1580
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
|
|
1578
1581
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1579
|
-
|
|
1582
|
+
_chunkFLVSQDP4cjs.Modal,
|
|
1580
1583
|
{
|
|
1581
1584
|
isOpen,
|
|
1582
1585
|
onClose,
|
|
@@ -1635,7 +1638,7 @@ function WithdrawModalInner({
|
|
|
1635
1638
|
] }),
|
|
1636
1639
|
balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
|
|
1637
1640
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
|
|
1638
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ?
|
|
1641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkFLVSQDP4cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
|
|
1639
1642
|
] })
|
|
1640
1643
|
] }),
|
|
1641
1644
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|