everest-npm-features 0.0.1 → 0.0.2
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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D98xCL5M.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-AwdxCQXF.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-D2rGgUDP.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +29 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +32 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-d3SWzaRo.js +3981 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-2UqIXbDq.js} +130 -129
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-DxLB0ZV1.js +760 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-Cry6kuj8.js +23 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-Q_O90kTv.js +17 -0
- package/dist/store.d.ts +65 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-Dzur3Cro.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-Dw896DF7.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { B as e, C as s, D as t, E, G as p } from "./constants-d3SWzaRo.js";
|
|
2
|
+
const R = () => ({
|
|
3
|
+
type: E
|
|
4
|
+
}), _ = (a) => ({
|
|
5
|
+
type: t,
|
|
6
|
+
payload: a
|
|
7
|
+
}), d = (a) => ({
|
|
8
|
+
type: p,
|
|
9
|
+
payload: a
|
|
10
|
+
}), T = (a) => ({
|
|
11
|
+
type: e,
|
|
12
|
+
payload: a
|
|
13
|
+
}), n = (a) => ({
|
|
14
|
+
type: s,
|
|
15
|
+
payload: a
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
_ as a,
|
|
19
|
+
n as b,
|
|
20
|
+
d,
|
|
21
|
+
T as p,
|
|
22
|
+
R as u
|
|
23
|
+
};
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as h } from "react";
|
|
3
|
+
import { u as X, a as z } from "../../react-redux-B4BZippc.js";
|
|
4
|
+
import "../../constants-d3SWzaRo.js";
|
|
5
|
+
import { a as Y, c as Z, d as ee } from "../../index-TElEjliR.js";
|
|
6
|
+
import { u as te, a as ne, b as ae, c as se, d as oe, e as re } from "../../wallet-Dw896DF7.js";
|
|
7
|
+
import { u as ie, d as le } from "../../bank-D2rGgUDP.js";
|
|
8
|
+
import { useSnackBar as ce } from "../../hooks/useSnackBar.js";
|
|
9
|
+
import { LINKED_WALLET_TOOLTIP as de, CONNECTED_WALLET_TOOLTIP as me, WALLET_ICON as he, DELETE_ICON as ue } from "../../util/constants.js";
|
|
10
|
+
import pe from "../../hoc/withThemeProvider.js";
|
|
11
|
+
import E from "../Shared/tooltip.js";
|
|
12
|
+
import { I as P } from "../../Info-CkE3Gsf2.js";
|
|
13
|
+
import { D as fe, C as ge } from "../../Cancel-BMPJ8ZAg.js";
|
|
14
|
+
import { C as _e } from "../../Close-mXCsZSxZ.js";
|
|
15
|
+
import Ne from "../Shared/transition.js";
|
|
16
|
+
import O from "../Shared/inputField.js";
|
|
17
|
+
import We from "../Shared/addBank.js";
|
|
18
|
+
import { useDialog as be } from "../../hooks/useDialog/index.js";
|
|
19
|
+
import xe from "../Shared/connectPlaidBank.js";
|
|
20
|
+
import Ce from "../Shared/ConnectWallet/index.js";
|
|
21
|
+
import ke from "../../providers/metaMask.js";
|
|
22
|
+
import { B as s } from "../../Box-BOgpENcC.js";
|
|
23
|
+
import { G as i } from "../../Grid2-B0mJbwjl.js";
|
|
24
|
+
import { T as l } from "../../Typography-Dx54MRM5.js";
|
|
25
|
+
import { I as f } from "../../IconButton-DAR3jsEV.js";
|
|
26
|
+
import { C as g } from "../../CircularProgress-BAEiXRSn.js";
|
|
27
|
+
import { B as w } from "../../Button-DXdgxFxa.js";
|
|
28
|
+
import { D as ve, a as ye } from "../../DialogContent-zttWtNJM.js";
|
|
29
|
+
import { D as De } from "../../DialogTitle-BqL8DXBp.js";
|
|
30
|
+
import '../../assets/index4.css';const ze = "_container_dsezq_1", we = "_heading_dsezq_27", n = {
|
|
31
|
+
container: ze,
|
|
32
|
+
"inner-container": "_inner-container_dsezq_13",
|
|
33
|
+
heading: we,
|
|
34
|
+
"account-item": "_account-item_dsezq_41",
|
|
35
|
+
"account-item-text": "_account-item-text_dsezq_69",
|
|
36
|
+
"primary-color": "_primary-color_dsezq_81",
|
|
37
|
+
"secondary-color": "_secondary-color_dsezq_89",
|
|
38
|
+
"info-icon": "_info-icon_dsezq_97",
|
|
39
|
+
"remove-icon": "_remove-icon_dsezq_107",
|
|
40
|
+
"delete-disable": "_delete-disable_dsezq_121",
|
|
41
|
+
"confirm-edit": "_confirm-edit_dsezq_137"
|
|
42
|
+
}, Ae = ({}) => {
|
|
43
|
+
const r = X(), { showAlertMessage: c, snackBar: M } = ce(), { openDialog: R, ConfirmDialog: $ } = be(), _ = z(Y), K = _.loader, A = _.message, I = _.banks, [T, q] = p(!1), [H, N] = p(!1), [W, j] = p(""), [b, F] = p(""), L = z(Z), B = L.data, { error: x, message: C, loader: k } = L, S = z(ee), u = S.data, {
|
|
44
|
+
error: v,
|
|
45
|
+
message: y,
|
|
46
|
+
loader: G
|
|
47
|
+
} = S;
|
|
48
|
+
h(() => {
|
|
49
|
+
A && q(!1);
|
|
50
|
+
}, [A]), h(() => {
|
|
51
|
+
v && c({ message: v });
|
|
52
|
+
}, [v]), h(() => {
|
|
53
|
+
y && c({ message: y, type: "success" });
|
|
54
|
+
}, [y]), h(() => {
|
|
55
|
+
x && c({ message: x });
|
|
56
|
+
}, [x]), h(() => {
|
|
57
|
+
C && c({ message: C, type: "success" });
|
|
58
|
+
}, [C]), h(() => (B.length <= 0 && r(te()), u.length <= 0 && r(ne()), r(ie()), () => {
|
|
59
|
+
r(ae("")), r(se(""));
|
|
60
|
+
}), []);
|
|
61
|
+
const J = () => {
|
|
62
|
+
if (!W)
|
|
63
|
+
return c({ message: "Please provide the wallet name" }), !1;
|
|
64
|
+
if (!b)
|
|
65
|
+
return c({
|
|
66
|
+
message: "Please provide the wallet private key"
|
|
67
|
+
}), !1;
|
|
68
|
+
k || r(
|
|
69
|
+
oe({
|
|
70
|
+
name: W,
|
|
71
|
+
privatekey: Buffer.from(b).toString("base64")
|
|
72
|
+
})
|
|
73
|
+
);
|
|
74
|
+
}, Q = (t) => {
|
|
75
|
+
R({
|
|
76
|
+
icon: ue,
|
|
77
|
+
height: "450px",
|
|
78
|
+
title: "Are you sure you want to delete?",
|
|
79
|
+
message: "This action cannot be undone.",
|
|
80
|
+
onConfirm: () => {
|
|
81
|
+
r(le(t));
|
|
82
|
+
},
|
|
83
|
+
cancelButtonShow: !0
|
|
84
|
+
});
|
|
85
|
+
}, D = ({
|
|
86
|
+
data: t,
|
|
87
|
+
type: o
|
|
88
|
+
}) => {
|
|
89
|
+
let m, d;
|
|
90
|
+
return o === "connectedWallet" || o === "linkedWallet" ? "name" in t && "address" in t && (m = t.name, d = t.address) : "accountName" in t && "accountNumber" in t && (m = t.accountName, d = t.accountNumber), /* @__PURE__ */ a(s, { className: n["account-item"], children: [
|
|
91
|
+
o === "bankAccount" && T && "id" in t && /* @__PURE__ */ e(
|
|
92
|
+
f,
|
|
93
|
+
{
|
|
94
|
+
className: n["remove-icon"],
|
|
95
|
+
onClick: () => Q(t.id),
|
|
96
|
+
children: /* @__PURE__ */ e(ge, {})
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ e(i, { container: !0, width: "100%", children: /* @__PURE__ */ e(i, { size: 10, children: /* @__PURE__ */ a(i, { container: !0, width: "100%", children: [
|
|
100
|
+
/* @__PURE__ */ e(i, { size: { xs: 2, md: 1.2 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: he, alt: "Icon", height: 28, width: 28 }) }),
|
|
101
|
+
/* @__PURE__ */ a(i, { size: { xs: 10, md: 10.8 }, children: [
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
l,
|
|
104
|
+
{
|
|
105
|
+
variant: "body1",
|
|
106
|
+
component: "p",
|
|
107
|
+
className: `${n["account-item-text"]} ${n["primary-color"]}`,
|
|
108
|
+
children: /* @__PURE__ */ e("strong", { children: m })
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ e(
|
|
112
|
+
l,
|
|
113
|
+
{
|
|
114
|
+
variant: "caption",
|
|
115
|
+
component: "p",
|
|
116
|
+
className: `${n["account-item-text"]} ${n["secondary-color"]}`,
|
|
117
|
+
children: /* @__PURE__ */ e("strong", { children: d })
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] })
|
|
121
|
+
] }) }) })
|
|
122
|
+
] });
|
|
123
|
+
}, U = (t) => {
|
|
124
|
+
const o = u.length;
|
|
125
|
+
let m = !1;
|
|
126
|
+
for (let d = 0; d < o; d++)
|
|
127
|
+
if (u[d].address.toLowerCase() === t.toLowerCase()) {
|
|
128
|
+
m = !0;
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
m ? c({
|
|
132
|
+
message: "This wallet address is already connected."
|
|
133
|
+
}) : r(re(t));
|
|
134
|
+
};
|
|
135
|
+
return /* @__PURE__ */ a(ke, { children: [
|
|
136
|
+
M,
|
|
137
|
+
/* @__PURE__ */ e($, {}),
|
|
138
|
+
/* @__PURE__ */ e(s, { className: n.container, children: /* @__PURE__ */ a(i, { spacing: 2, container: !0, width: "100%", children: [
|
|
139
|
+
/* @__PURE__ */ a(i, { size: { md: 6, xs: 12 }, children: [
|
|
140
|
+
/* @__PURE__ */ a(s, { p: 3, className: n["inner-container"], children: [
|
|
141
|
+
/* @__PURE__ */ e(
|
|
142
|
+
l,
|
|
143
|
+
{
|
|
144
|
+
className: n.heading,
|
|
145
|
+
variant: "h6",
|
|
146
|
+
component: "span",
|
|
147
|
+
children: /* @__PURE__ */ e("strong", { children: "Linked Wallets" })
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
/* @__PURE__ */ e(
|
|
151
|
+
E,
|
|
152
|
+
{
|
|
153
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: de }),
|
|
154
|
+
placement: "bottom",
|
|
155
|
+
children: /* @__PURE__ */ e(f, { className: n["info-icon"], children: /* @__PURE__ */ e(
|
|
156
|
+
P,
|
|
157
|
+
{
|
|
158
|
+
sx: {
|
|
159
|
+
fontSize: "26px",
|
|
160
|
+
color: "#D9D9D9"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
) })
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
k && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(g, { size: 50 }) }),
|
|
167
|
+
B.map((t, o) => /* @__PURE__ */ e(D, { type: "linkedWallet", data: t }, o)),
|
|
168
|
+
/* @__PURE__ */ e(
|
|
169
|
+
w,
|
|
170
|
+
{
|
|
171
|
+
sx: { mt: 4 },
|
|
172
|
+
onClick: () => N(!0),
|
|
173
|
+
className: "wallet-btn",
|
|
174
|
+
variant: "contained",
|
|
175
|
+
fullWidth: !0,
|
|
176
|
+
children: /* @__PURE__ */ e("strong", { children: "Add Wallet" })
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
] }),
|
|
180
|
+
/* @__PURE__ */ a(s, { p: 3, mt: 2, className: n["inner-container"], children: [
|
|
181
|
+
/* @__PURE__ */ e(
|
|
182
|
+
l,
|
|
183
|
+
{
|
|
184
|
+
className: n.heading,
|
|
185
|
+
variant: "h6",
|
|
186
|
+
component: "span",
|
|
187
|
+
children: /* @__PURE__ */ e("strong", { children: "Connected Wallets" })
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ e(
|
|
191
|
+
E,
|
|
192
|
+
{
|
|
193
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: me }),
|
|
194
|
+
placement: "bottom",
|
|
195
|
+
children: /* @__PURE__ */ e(f, { className: n["info-icon"], children: /* @__PURE__ */ e(
|
|
196
|
+
P,
|
|
197
|
+
{
|
|
198
|
+
sx: {
|
|
199
|
+
fontSize: "26px",
|
|
200
|
+
color: "#D9D9D9"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
) })
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
G && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(g, { size: 50 }) }),
|
|
207
|
+
u.map((t, o) => /* @__PURE__ */ e(D, { type: "connectedWallet", data: t }, o)),
|
|
208
|
+
/* @__PURE__ */ e(
|
|
209
|
+
Ce,
|
|
210
|
+
{
|
|
211
|
+
addressHandler: U,
|
|
212
|
+
btnClass: "wallet-btn"
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
] })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ e(i, { size: { md: 6, xs: 12 }, children: /* @__PURE__ */ e(s, { className: n["inner-container"], children: /* @__PURE__ */ a(s, { p: 3, children: [
|
|
218
|
+
/* @__PURE__ */ e(l, { className: n.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
|
|
219
|
+
I.length > 0 && /* @__PURE__ */ a(
|
|
220
|
+
w,
|
|
221
|
+
{
|
|
222
|
+
className: `${T ? n["delete-disable"] : n["confirm-edit"]} normal-text`,
|
|
223
|
+
sx: { mt: 3, mb: 3 },
|
|
224
|
+
variant: "contained",
|
|
225
|
+
onClick: () => q((t) => !t),
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ e(fe, {}),
|
|
228
|
+
"Delete"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
K && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(g, { size: 50 }) }),
|
|
233
|
+
I.map((t, o) => /* @__PURE__ */ e(D, { type: "bankAccount", data: t }, o)),
|
|
234
|
+
/* @__PURE__ */ a(s, { mt: 4, children: [
|
|
235
|
+
/* @__PURE__ */ e(xe, {}),
|
|
236
|
+
/* @__PURE__ */ e(
|
|
237
|
+
l,
|
|
238
|
+
{
|
|
239
|
+
className: "text-center",
|
|
240
|
+
variant: "h6",
|
|
241
|
+
mt: 2,
|
|
242
|
+
mb: 2,
|
|
243
|
+
children: /* @__PURE__ */ e("strong", { children: "OR" })
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
/* @__PURE__ */ e(We, {})
|
|
247
|
+
] })
|
|
248
|
+
] }) }) })
|
|
249
|
+
] }) }),
|
|
250
|
+
/* @__PURE__ */ a(
|
|
251
|
+
ve,
|
|
252
|
+
{
|
|
253
|
+
fullWidth: !0,
|
|
254
|
+
open: H,
|
|
255
|
+
onClose: () => N(!1),
|
|
256
|
+
TransitionComponent: Ne,
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ a(De, { className: "buy-modal-text-color", children: [
|
|
259
|
+
/* @__PURE__ */ e(l, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
|
|
260
|
+
/* @__PURE__ */ e(
|
|
261
|
+
f,
|
|
262
|
+
{
|
|
263
|
+
"aria-label": "close",
|
|
264
|
+
onClick: () => N(!1),
|
|
265
|
+
className: "menu-buttons",
|
|
266
|
+
children: /* @__PURE__ */ e(_e, {})
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
] }),
|
|
270
|
+
/* @__PURE__ */ a(ye, { dividers: !0, children: [
|
|
271
|
+
/* @__PURE__ */ e(l, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
|
|
272
|
+
/* @__PURE__ */ e(
|
|
273
|
+
O,
|
|
274
|
+
{
|
|
275
|
+
label: "Name",
|
|
276
|
+
value: W,
|
|
277
|
+
onChangeHandler: (t) => j(t)
|
|
278
|
+
}
|
|
279
|
+
),
|
|
280
|
+
/* @__PURE__ */ e(
|
|
281
|
+
O,
|
|
282
|
+
{
|
|
283
|
+
label: "Private Key",
|
|
284
|
+
value: b,
|
|
285
|
+
onChangeHandler: (t) => F(t)
|
|
286
|
+
}
|
|
287
|
+
),
|
|
288
|
+
/* @__PURE__ */ e(
|
|
289
|
+
w,
|
|
290
|
+
{
|
|
291
|
+
className: "wallet-btn",
|
|
292
|
+
sx: { mt: 4 },
|
|
293
|
+
onClick: J,
|
|
294
|
+
variant: "contained",
|
|
295
|
+
fullWidth: !0,
|
|
296
|
+
children: /* @__PURE__ */ e("strong", { children: k ? /* @__PURE__ */ a(V, { children: [
|
|
297
|
+
/* @__PURE__ */ e(g, { size: 15, color: "inherit" }),
|
|
298
|
+
" Processing..."
|
|
299
|
+
] }) : "Import Wallet" })
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
] })
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
)
|
|
306
|
+
] });
|
|
307
|
+
}, ot = pe(Ae);
|
|
308
|
+
export {
|
|
309
|
+
ot as default
|
|
310
|
+
};
|