everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -1,103 +1,94 @@
|
|
|
1
1
|
import { jsxs as s, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as S } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Backdrop as ke, CircularProgress as V, Box as b, Typography as w, FormControl as A, Select as I, MenuItem as T, TextField as j, Grid as o, Dialog as xe, IconButton as we, DialogContent as Te } from "@mui/material";
|
|
4
|
+
import { C as ve } from "../../../Close-DSxLLo08.js";
|
|
5
|
+
import { aE as ye, aF as Se, aG as Ae, aH as Ee, aI as be, aJ as Ne } from "../../../constants-DX0YBtP2.js";
|
|
6
|
+
import { f as We } from "../../../wallet-BPXOp8UG.js";
|
|
7
|
+
import { ETHEREUM_NETWORK as Ce, EVER_CHAIN_NETWORK as Ie, ID_TOKEN_SYMBOL as _e, SYNTHETIC_EUR as Y } from "../../../util/constants.js";
|
|
7
8
|
import "../../../index-DlQqWbXG.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import { tokenBalanceDisplay as
|
|
12
|
-
import "
|
|
13
|
-
import { useSnackBarContext as
|
|
14
|
-
import
|
|
15
|
-
import { getGweiFromWei as
|
|
9
|
+
import _ from "../Shared/appButton.js";
|
|
10
|
+
import Le from "../../../hoc/withThemeProvider.js";
|
|
11
|
+
import { u as L } from "../../../react-redux-C7I9-1M6.js";
|
|
12
|
+
import { tokenBalanceDisplay as ze, getNetworkScanBaseUrl as J, displayWalletAddress as X } from "../../../util/functions.js";
|
|
13
|
+
import "../../../otpForm-DeeegaX2.js";
|
|
14
|
+
import { useSnackBarContext as Re } from "../../../context/snackBarContext.js";
|
|
15
|
+
import Pe from "../../../hooks/useEverestDispatch.js";
|
|
16
|
+
import { getGweiFromWei as Ge, getUnFormattedValueFromWei as Fe, fromHuman as z } from "../../../util/conversions.js";
|
|
16
17
|
import "../../../index-CAoLi5Qq.js";
|
|
17
18
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
18
19
|
import "../../Shared/transition.js";
|
|
19
|
-
import "../../../tooltip-
|
|
20
|
+
import "../../../tooltip-BW0UyWw7.js";
|
|
20
21
|
import "../../../moment-h96o7c8I.js";
|
|
21
22
|
import "../../../index.esm-BsMAMhYW.js";
|
|
22
23
|
import "../../../web3-u4qDZYpo.js";
|
|
23
24
|
import "../../../index-ceeCtFuh.js";
|
|
24
25
|
import "../../../index.esm-I_Bp2YLf.js";
|
|
25
26
|
import "../../../context/dialogContext.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
import { S as z } from "../../../Select-CB5yWmyn.js";
|
|
32
|
-
import { M as T } from "../../../MenuItem-DUdYOJr4.js";
|
|
33
|
-
import { T as X } from "../../../TextField-DPpRUQe3.js";
|
|
34
|
-
import { G as n } from "../../../Grid-CFe3amXO.js";
|
|
35
|
-
import { D as Pe, a as Ge } from "../../../DialogContent-BMwlOnbW.js";
|
|
36
|
-
import { I as Be } from "../../../IconButton-DHm-hucF.js";
|
|
37
|
-
import '../../../assets/index7.css';const Fe = () => ({
|
|
38
|
-
type: xe
|
|
39
|
-
}), Me = (g) => ({
|
|
40
|
-
type: ve,
|
|
27
|
+
import "@mui/icons-material";
|
|
28
|
+
import '../../../assets/index7.css';const Me = () => ({
|
|
29
|
+
type: ye
|
|
30
|
+
}), Ue = (g) => ({
|
|
31
|
+
type: Ee,
|
|
41
32
|
payload: g
|
|
42
33
|
}), R = () => ({
|
|
43
|
-
type:
|
|
44
|
-
}),
|
|
45
|
-
type:
|
|
34
|
+
type: Se
|
|
35
|
+
}), Be = (g) => ({
|
|
36
|
+
type: be,
|
|
46
37
|
payload: g
|
|
47
38
|
}), Oe = (g) => ({
|
|
48
|
-
type:
|
|
39
|
+
type: Ne,
|
|
49
40
|
payload: g
|
|
50
41
|
}), Z = () => ({
|
|
51
|
-
type:
|
|
42
|
+
type: Ae
|
|
52
43
|
}), qe = "_container_uzn46_1", ee = {
|
|
53
44
|
container: qe,
|
|
54
45
|
"inner-container": "_inner-container_uzn46_13"
|
|
55
|
-
},
|
|
56
|
-
var
|
|
57
|
-
const { showAlertMessage: i } =
|
|
46
|
+
}, He = ({ navigate: g }) => {
|
|
47
|
+
var K, D;
|
|
48
|
+
const { showAlertMessage: i } = Re(), d = Pe(), P = L((t) => t.app.network), te = P.loader, G = P.list, r = L((t) => t.send), a = r == null ? void 0 : r.gasFee, E = r == null ? void 0 : r.txId, F = r == null ? void 0 : r.loader, N = r == null ? void 0 : r.error, M = L((t) => t.user.wallets), U = M.loader, W = M.data, ne = te || U, [h, B] = m(""), [u, O] = m(""), [f, re] = m({}), [p, oe] = m(Ce), [q, H] = m(0), [se, ae] = m([]), [x, ie] = m(""), [c, le] = m(""), [de, C] = m(!1), l = G.find(
|
|
58
49
|
(t) => t.name.toLowerCase() === p.toLowerCase()
|
|
59
50
|
);
|
|
60
|
-
S(() => (d(
|
|
51
|
+
S(() => (d(Me()), d(We()), () => {
|
|
61
52
|
d(R()), d(Z());
|
|
62
53
|
}), []), S(() => {
|
|
63
54
|
N && i({ message: N });
|
|
64
55
|
}, [N]), S(() => {
|
|
65
|
-
|
|
66
|
-
}, [a,
|
|
67
|
-
const t =
|
|
68
|
-
(
|
|
56
|
+
r != null && r.showFeePopUp && (a == null ? void 0 : a.gasLimit) > 0 && C(!0);
|
|
57
|
+
}, [a, r == null ? void 0 : r.showFeePopUp]), S(() => {
|
|
58
|
+
const t = W.find(
|
|
59
|
+
(n) => n.address === c
|
|
69
60
|
);
|
|
70
61
|
if (t) {
|
|
71
|
-
const
|
|
72
|
-
for (let y = 0; y <
|
|
73
|
-
const Q =
|
|
62
|
+
const n = t.tokens, v = [_e], k = [], ge = p.toLowerCase();
|
|
63
|
+
for (let y = 0; y < n.length; y++) {
|
|
64
|
+
const Q = n[y].network.toLowerCase();
|
|
74
65
|
if (Q === ge) {
|
|
75
|
-
if (Q ===
|
|
66
|
+
if (Q === Ie.toLowerCase() && !v.includes(n[y].symbol))
|
|
76
67
|
continue;
|
|
77
|
-
k.push(
|
|
68
|
+
k.push(n[y]);
|
|
78
69
|
}
|
|
79
70
|
}
|
|
80
71
|
ae(k);
|
|
81
72
|
}
|
|
82
73
|
}, [p, c]), S(() => {
|
|
83
74
|
if (u) {
|
|
84
|
-
const t =
|
|
85
|
-
(
|
|
75
|
+
const t = W.find(
|
|
76
|
+
(n) => n.address === c
|
|
86
77
|
);
|
|
87
78
|
if (t) {
|
|
88
79
|
const v = t.tokens.find(
|
|
89
80
|
(k) => k.symbol === u && l && k.network.toLowerCase() === l.name.toLowerCase()
|
|
90
81
|
);
|
|
91
82
|
if (v) {
|
|
92
|
-
const k =
|
|
93
|
-
|
|
83
|
+
const k = ze(v);
|
|
84
|
+
H(parseFloat(k)), re(v);
|
|
94
85
|
}
|
|
95
86
|
}
|
|
96
87
|
} else
|
|
97
|
-
|
|
88
|
+
H(0);
|
|
98
89
|
}, [u]);
|
|
99
90
|
const ce = (t) => {
|
|
100
|
-
t ? /^([0-9.,]+)$/.test(t) &&
|
|
91
|
+
t ? /^([0-9.,]+)$/.test(t) && B(t) : B("");
|
|
101
92
|
}, me = () => {
|
|
102
93
|
if (!p)
|
|
103
94
|
return i({
|
|
@@ -129,15 +120,15 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
129
120
|
return;
|
|
130
121
|
}
|
|
131
122
|
let t;
|
|
132
|
-
f.symbol ===
|
|
133
|
-
const
|
|
123
|
+
f.symbol === Y ? t = parseFloat(h) * 100 : t = z(h, f.decimals);
|
|
124
|
+
const n = {
|
|
134
125
|
fromAddress: c,
|
|
135
126
|
toAddress: x,
|
|
136
127
|
tokenAddress: f.address,
|
|
137
128
|
amount: t,
|
|
138
129
|
chainId: l.chainId
|
|
139
130
|
};
|
|
140
|
-
d(
|
|
131
|
+
d(Ue(n));
|
|
141
132
|
}, ue = () => {
|
|
142
133
|
if (d(R()), !l) {
|
|
143
134
|
i({ message: "Network not selected" });
|
|
@@ -153,7 +144,7 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
153
144
|
i({ message: "Network not selected" });
|
|
154
145
|
return;
|
|
155
146
|
}
|
|
156
|
-
const t =
|
|
147
|
+
const t = z(h, f.decimals), n = {
|
|
157
148
|
pin: "",
|
|
158
149
|
payload: {
|
|
159
150
|
fromAddress: c,
|
|
@@ -163,7 +154,7 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
163
154
|
gas: a
|
|
164
155
|
}
|
|
165
156
|
};
|
|
166
|
-
d(
|
|
157
|
+
d(Be(n));
|
|
167
158
|
}, pe = () => {
|
|
168
159
|
if (!a) {
|
|
169
160
|
i({ message: "Gas fee data is not available" });
|
|
@@ -174,8 +165,8 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
174
165
|
return;
|
|
175
166
|
}
|
|
176
167
|
let t;
|
|
177
|
-
f.symbol ===
|
|
178
|
-
const
|
|
168
|
+
f.symbol === Y ? t = (parseFloat(h) * 100).toString() : t = z(h, f.decimals);
|
|
169
|
+
const n = {
|
|
179
170
|
pin: "",
|
|
180
171
|
payload: {
|
|
181
172
|
fromAddress: c,
|
|
@@ -186,24 +177,24 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
186
177
|
gas: a
|
|
187
178
|
}
|
|
188
179
|
};
|
|
189
|
-
d(Oe(
|
|
180
|
+
d(Oe(n));
|
|
190
181
|
};
|
|
191
182
|
return /* @__PURE__ */ s($, { children: [
|
|
192
183
|
/* @__PURE__ */ e(
|
|
193
|
-
|
|
184
|
+
ke,
|
|
194
185
|
{
|
|
195
186
|
sx: {
|
|
196
187
|
color: "#fff",
|
|
197
188
|
zIndex: (t) => t.zIndex.drawer + 1e3
|
|
198
189
|
},
|
|
199
|
-
open:
|
|
200
|
-
children: /* @__PURE__ */ e(
|
|
190
|
+
open: ne,
|
|
191
|
+
children: /* @__PURE__ */ e(V, { color: "inherit" })
|
|
201
192
|
}
|
|
202
193
|
),
|
|
203
194
|
/* @__PURE__ */ e(b, { className: ee.container, children: /* @__PURE__ */ s(b, { className: ee["inner-container"], children: [
|
|
204
195
|
/* @__PURE__ */ e(w, { variant: "body2", children: /* @__PURE__ */ e("b", { children: "Select Chain" }) }),
|
|
205
196
|
/* @__PURE__ */ e(A, { sx: { mt: 1.5 }, fullWidth: !0, children: /* @__PURE__ */ s(
|
|
206
|
-
|
|
197
|
+
I,
|
|
207
198
|
{
|
|
208
199
|
sx: {
|
|
209
200
|
fontWeight: "bold",
|
|
@@ -215,16 +206,16 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
215
206
|
variant: "filled",
|
|
216
207
|
value: p,
|
|
217
208
|
displayEmpty: !0,
|
|
218
|
-
onChange: (t) =>
|
|
209
|
+
onChange: (t) => oe(t.target.value),
|
|
219
210
|
children: [
|
|
220
211
|
/* @__PURE__ */ e(T, { value: "", children: "Please select" }),
|
|
221
|
-
G.map((t,
|
|
212
|
+
G.map((t, n) => /* @__PURE__ */ e(T, { value: t.name, children: t.name }, n))
|
|
222
213
|
]
|
|
223
214
|
}
|
|
224
215
|
) }),
|
|
225
216
|
/* @__PURE__ */ e(w, { mt: 4, variant: "body2", children: /* @__PURE__ */ e("b", { children: "Sending From" }) }),
|
|
226
217
|
/* @__PURE__ */ e(A, { sx: { mt: 1.5 }, fullWidth: !0, children: /* @__PURE__ */ s(
|
|
227
|
-
|
|
218
|
+
I,
|
|
228
219
|
{
|
|
229
220
|
sx: {
|
|
230
221
|
fontWeight: "bold",
|
|
@@ -241,18 +232,18 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
241
232
|
},
|
|
242
233
|
children: [
|
|
243
234
|
/* @__PURE__ */ e(T, { value: "", children: "Please select" }),
|
|
244
|
-
|
|
235
|
+
W.map((t, n) => /* @__PURE__ */ s(T, { value: t.address, children: [
|
|
245
236
|
t.name,
|
|
246
237
|
" (",
|
|
247
238
|
t.address,
|
|
248
239
|
")"
|
|
249
|
-
] },
|
|
240
|
+
] }, n))
|
|
250
241
|
]
|
|
251
242
|
}
|
|
252
243
|
) }),
|
|
253
244
|
/* @__PURE__ */ e(w, { mt: 4, variant: "body2", children: /* @__PURE__ */ e("b", { children: "Sending To" }) }),
|
|
254
245
|
/* @__PURE__ */ e(A, { sx: { mt: 1.5 }, fullWidth: !0, children: /* @__PURE__ */ e(
|
|
255
|
-
|
|
246
|
+
j,
|
|
256
247
|
{
|
|
257
248
|
variant: "filled",
|
|
258
249
|
placeholder: "Recipient’s Wallet Address",
|
|
@@ -266,9 +257,9 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
266
257
|
"Balance: ",
|
|
267
258
|
q
|
|
268
259
|
] }) }),
|
|
269
|
-
/* @__PURE__ */ s(
|
|
270
|
-
/* @__PURE__ */ e(
|
|
271
|
-
|
|
260
|
+
/* @__PURE__ */ s(o, { mt: 1.5, spacing: 2, container: !0, children: [
|
|
261
|
+
/* @__PURE__ */ e(o, { className: "flex-center", size: 6, children: U ? /* @__PURE__ */ e(V, { size: 30, color: "inherit" }) : /* @__PURE__ */ e(A, { fullWidth: !0, children: /* @__PURE__ */ s(
|
|
262
|
+
I,
|
|
272
263
|
{
|
|
273
264
|
sx: {
|
|
274
265
|
fontWeight: "bold",
|
|
@@ -283,12 +274,12 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
283
274
|
onChange: (t) => O(t.target.value),
|
|
284
275
|
children: [
|
|
285
276
|
/* @__PURE__ */ e(T, { value: "", children: "Select Token" }),
|
|
286
|
-
se.map((t,
|
|
277
|
+
se.map((t, n) => /* @__PURE__ */ e(T, { value: t.symbol, children: t.symbol }, n))
|
|
287
278
|
]
|
|
288
279
|
}
|
|
289
280
|
) }) }),
|
|
290
|
-
/* @__PURE__ */ e(
|
|
291
|
-
|
|
281
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e(A, { fullWidth: !0, children: /* @__PURE__ */ e(
|
|
282
|
+
j,
|
|
292
283
|
{
|
|
293
284
|
variant: "filled",
|
|
294
285
|
placeholder: "Amount",
|
|
@@ -300,18 +291,18 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
300
291
|
) }) })
|
|
301
292
|
] }),
|
|
302
293
|
/* @__PURE__ */ e(
|
|
303
|
-
|
|
294
|
+
_,
|
|
304
295
|
{
|
|
305
296
|
sx: { mt: 4 },
|
|
306
297
|
onClick: he,
|
|
307
|
-
isLoading:
|
|
298
|
+
isLoading: F,
|
|
308
299
|
fullWidth: !0,
|
|
309
300
|
children: /* @__PURE__ */ e("strong", { children: "Send" })
|
|
310
301
|
}
|
|
311
302
|
)
|
|
312
303
|
] }) }),
|
|
313
304
|
/* @__PURE__ */ s(
|
|
314
|
-
|
|
305
|
+
xe,
|
|
315
306
|
{
|
|
316
307
|
open: de,
|
|
317
308
|
fullWidth: !0,
|
|
@@ -324,11 +315,11 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
324
315
|
},
|
|
325
316
|
children: [
|
|
326
317
|
!E && /* @__PURE__ */ e(
|
|
327
|
-
|
|
318
|
+
we,
|
|
328
319
|
{
|
|
329
320
|
"aria-label": "close",
|
|
330
321
|
onClick: () => {
|
|
331
|
-
|
|
322
|
+
C(!1), d(R());
|
|
332
323
|
},
|
|
333
324
|
sx: {
|
|
334
325
|
position: "absolute",
|
|
@@ -336,10 +327,10 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
336
327
|
top: 8,
|
|
337
328
|
zIndex: 1
|
|
338
329
|
},
|
|
339
|
-
children: /* @__PURE__ */ e(
|
|
330
|
+
children: /* @__PURE__ */ e(ve, {})
|
|
340
331
|
}
|
|
341
332
|
),
|
|
342
|
-
/* @__PURE__ */ s(
|
|
333
|
+
/* @__PURE__ */ s(Te, { sx: { py: 6 }, children: [
|
|
343
334
|
/* @__PURE__ */ e(w, { className: "text-center", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Sending Confirmation" }) }),
|
|
344
335
|
E ? /* @__PURE__ */ s($, { children: [
|
|
345
336
|
/* @__PURE__ */ e(
|
|
@@ -355,55 +346,55 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
355
346
|
"a",
|
|
356
347
|
{
|
|
357
348
|
style: { wordBreak: "break-all" },
|
|
358
|
-
href: `${
|
|
349
|
+
href: `${J(p)}tx/${E}`,
|
|
359
350
|
rel: "noopener noreferrer",
|
|
360
351
|
target: "_blank",
|
|
361
352
|
children: [
|
|
362
|
-
|
|
353
|
+
J(p),
|
|
363
354
|
"tx/",
|
|
364
355
|
E
|
|
365
356
|
]
|
|
366
357
|
}
|
|
367
358
|
) }),
|
|
368
359
|
/* @__PURE__ */ e(b, { sx: { px: { xs: 0, md: 12 } }, children: /* @__PURE__ */ e(
|
|
369
|
-
|
|
360
|
+
_,
|
|
370
361
|
{
|
|
371
362
|
sx: { mt: 2 },
|
|
372
363
|
onClick: () => {
|
|
373
|
-
|
|
364
|
+
C(!1), d(Z()), g("/dashboard");
|
|
374
365
|
},
|
|
375
366
|
fullWidth: !0,
|
|
376
367
|
children: /* @__PURE__ */ e("strong", { children: "Go Back" })
|
|
377
368
|
}
|
|
378
369
|
) })
|
|
379
|
-
] }) : /* @__PURE__ */ s(
|
|
380
|
-
/* @__PURE__ */ e(
|
|
381
|
-
/* @__PURE__ */ e(
|
|
382
|
-
/* @__PURE__ */ e(
|
|
383
|
-
/* @__PURE__ */ e(
|
|
384
|
-
/* @__PURE__ */ e(
|
|
385
|
-
/* @__PURE__ */ e(
|
|
386
|
-
/* @__PURE__ */ e(
|
|
387
|
-
/* @__PURE__ */ e(
|
|
388
|
-
/* @__PURE__ */ e(
|
|
389
|
-
/* @__PURE__ */ s(
|
|
390
|
-
|
|
370
|
+
] }) : /* @__PURE__ */ s(o, { mt: 4, container: !0, spacing: 2, sx: { padding: "0% 15%" }, children: [
|
|
371
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Token Name" }) }),
|
|
372
|
+
/* @__PURE__ */ e(o, { className: "fw500 text-right", size: 6, children: u }),
|
|
373
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Amount" }) }),
|
|
374
|
+
/* @__PURE__ */ e(o, { className: "fw500 text-right", size: 6, children: h }),
|
|
375
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Wallet Address" }) }),
|
|
376
|
+
/* @__PURE__ */ e(o, { className: "fw500 text-right", size: 6, children: X(c) }),
|
|
377
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Receiver's Wallet Address" }) }),
|
|
378
|
+
/* @__PURE__ */ e(o, { className: "fw500 text-right", size: 6, children: X(x) }),
|
|
379
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Gas Limit" }) }),
|
|
380
|
+
/* @__PURE__ */ s(o, { className: "fw500 text-right", size: 6, children: [
|
|
381
|
+
Ge(((K = a == null ? void 0 : a.gasLimit) == null ? void 0 : K.toString()) || "0"),
|
|
391
382
|
" Gwei"
|
|
392
383
|
] }),
|
|
393
|
-
/* @__PURE__ */ e(
|
|
394
|
-
/* @__PURE__ */ s(
|
|
395
|
-
|
|
396
|
-
((
|
|
384
|
+
/* @__PURE__ */ e(o, { size: 6, children: /* @__PURE__ */ e("strong", { children: "Max Transaction Fee" }) }),
|
|
385
|
+
/* @__PURE__ */ s(o, { className: "fw500 text-right", size: 6, children: [
|
|
386
|
+
Fe(
|
|
387
|
+
((D = a == null ? void 0 : a.totalMaxEthSpent) == null ? void 0 : D.toString()) || "0"
|
|
397
388
|
),
|
|
398
389
|
" ",
|
|
399
390
|
(l == null ? void 0 : l.symbol) || ""
|
|
400
391
|
] }),
|
|
401
392
|
/* @__PURE__ */ e(
|
|
402
|
-
|
|
393
|
+
_,
|
|
403
394
|
{
|
|
404
395
|
sx: { mt: 4 },
|
|
405
396
|
onClick: ue,
|
|
406
|
-
isLoading:
|
|
397
|
+
isLoading: F,
|
|
407
398
|
fullWidth: !0,
|
|
408
399
|
children: /* @__PURE__ */ e("strong", { children: "Send" })
|
|
409
400
|
}
|
|
@@ -414,7 +405,7 @@ import '../../../assets/index7.css';const Fe = () => ({
|
|
|
414
405
|
}
|
|
415
406
|
)
|
|
416
407
|
] });
|
|
417
|
-
},
|
|
408
|
+
}, kt = Le(He);
|
|
418
409
|
export {
|
|
419
|
-
|
|
410
|
+
kt as default
|
|
420
411
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as I, useEffect as b } from "react";
|
|
3
|
+
import { Box as a, Stack as m, Typography as f } from "@mui/material";
|
|
3
4
|
import w from "../Input/index.js";
|
|
4
|
-
import { isValidEmail as
|
|
5
|
-
import
|
|
5
|
+
import { isValidEmail as p } from "../../../../util/functions.js";
|
|
6
|
+
import g from "../appButton.js";
|
|
6
7
|
import { LOGIN_SCREEN as C } from "../../../../util/constants.js";
|
|
7
|
-
|
|
8
|
-
import { S as p } from "../../../../Stack-k55YTxET.js";
|
|
9
|
-
import { T as g } from "../../../../Typography-pAaje37G.js";
|
|
10
|
-
const W = ({
|
|
8
|
+
const B = ({
|
|
11
9
|
showAlertMessage: o,
|
|
12
10
|
loader: h,
|
|
13
11
|
email: t,
|
|
@@ -18,12 +16,12 @@ const W = ({
|
|
|
18
16
|
}) => {
|
|
19
17
|
const [S, s] = I(!1);
|
|
20
18
|
b(() => {
|
|
21
|
-
s(t ? !
|
|
19
|
+
s(t ? !p(t) : !1);
|
|
22
20
|
}, [t]);
|
|
23
21
|
const E = (i) => {
|
|
24
22
|
if (i.preventDefault(), !t)
|
|
25
23
|
return o({ message: "Please provide email address." }), !1;
|
|
26
|
-
if (!
|
|
24
|
+
if (!p(t))
|
|
27
25
|
return o({ message: "Please provide valid email address." }), !1;
|
|
28
26
|
v(t);
|
|
29
27
|
};
|
|
@@ -41,8 +39,8 @@ const W = ({
|
|
|
41
39
|
width: "100%"
|
|
42
40
|
},
|
|
43
41
|
children: [
|
|
44
|
-
/* @__PURE__ */ e(
|
|
45
|
-
|
|
42
|
+
/* @__PURE__ */ e(m, { direction: "column", spacing: 1.5, children: /* @__PURE__ */ e(
|
|
43
|
+
f,
|
|
46
44
|
{
|
|
47
45
|
variant: "h4",
|
|
48
46
|
sx: {
|
|
@@ -63,9 +61,9 @@ const W = ({
|
|
|
63
61
|
sx: { width: "80%" }
|
|
64
62
|
}
|
|
65
63
|
),
|
|
66
|
-
/* @__PURE__ */ e(a, { mt: 4, sx: { width: "100%" }, children: /* @__PURE__ */ r(
|
|
64
|
+
/* @__PURE__ */ e(a, { mt: 4, sx: { width: "100%" }, children: /* @__PURE__ */ r(m, { direction: "column", alignItems: "center", spacing: 1.5, children: [
|
|
67
65
|
/* @__PURE__ */ e(
|
|
68
|
-
|
|
66
|
+
g,
|
|
69
67
|
{
|
|
70
68
|
type: "submit",
|
|
71
69
|
variant: "contained",
|
|
@@ -74,9 +72,9 @@ const W = ({
|
|
|
74
72
|
children: /* @__PURE__ */ e("strong", { children: n })
|
|
75
73
|
}
|
|
76
74
|
),
|
|
77
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e(f, { variant: "xs", align: "center", children: l }),
|
|
78
76
|
/* @__PURE__ */ e(
|
|
79
|
-
|
|
77
|
+
g,
|
|
80
78
|
{
|
|
81
79
|
onClick: () => x(c),
|
|
82
80
|
variant: "contained",
|
|
@@ -92,5 +90,5 @@ const W = ({
|
|
|
92
90
|
);
|
|
93
91
|
};
|
|
94
92
|
export {
|
|
95
|
-
|
|
93
|
+
B as default
|
|
96
94
|
};
|