everest-npm-features 0.0.47 → 0.0.49
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/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/styles4.css +1 -0
- package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
- package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
- package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
- package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
- package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +14 -13
- package/dist/components/Shared/FullKyc/edd.js +41 -41
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +31 -30
- package/dist/components/Wallet/Account/createIban.d.ts +2 -0
- package/dist/components/Wallet/Account/createIban.js +70 -62
- package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
- package/dist/components/Wallet/Account/eWallet.js +96 -0
- package/dist/components/Wallet/Account/iban.d.ts +2 -0
- package/dist/components/Wallet/Account/iban.js +38 -32
- package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
- package/dist/components/Wallet/Account/ibanItem.js +233 -76
- package/dist/components/Wallet/Account/index.d.ts +2 -0
- package/dist/components/Wallet/Account/index.js +164 -143
- package/dist/components/Wallet/Account/sendIban.js +3 -3
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
- package/dist/components/Wallet/Buy/form.js +6 -6
- package/dist/components/Wallet/Buy/index.js +14 -13
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
- package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +25 -24
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
- package/dist/components/Wallet/Portfolio/index.js +34 -33
- package/dist/components/Wallet/Profile/documents.js +527 -28
- package/dist/components/Wallet/Profile/index.js +179 -149
- package/dist/components/Wallet/Profile/storage.d.ts +11 -0
- package/dist/components/Wallet/Profile/storage.js +267 -0
- package/dist/components/Wallet/Receive/index.js +22 -21
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Sell/form.js +6 -6
- package/dist/components/Wallet/Sell/index.js +13 -12
- package/dist/components/Wallet/Send/index.js +44 -43
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
- package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
- package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
- package/dist/components/Wallet/Shared/addBank.js +39 -38
- package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
- package/dist/components/Wallet/Shared/manualSend.js +7 -6
- package/dist/components/Wallet/Shared/pin.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +24 -23
- package/dist/components/Wallet/SignUp/index.js +22 -21
- package/dist/components/Wallet/Stake/gems/index.js +1 -1
- package/dist/components/Wallet/Stake/id/index.js +1 -1
- package/dist/components/Wallet/Stake/index.js +31 -30
- package/dist/components/Wallet/Swap/form.js +9 -8
- package/dist/components/Wallet/Swap/index.js +11 -10
- package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Withdraw/form.js +5 -5
- package/dist/components/Wallet/Withdraw/index.js +12 -11
- package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
- package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
- package/dist/hooks/useDialog/index.js +1 -1
- package/dist/hooks/useEverestDispatch.d.ts +6 -0
- package/dist/hooks/useEverestDispatch.js +5 -0
- package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
- package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
- package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
- package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
- package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
- package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
- package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
- package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
- package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
- package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
- package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
- package/dist/styles.module-CHPRGltL.js +28 -0
- package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
- package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
- package/dist/util/constants.d.ts +5 -0
- package/dist/util/constants.js +86 -81
- package/dist/util/functions.js +36 -36
- package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
- package/package.json +3 -2
- package/dist/assets/documents.css +0 -1
- package/dist/documents-RjwlADn2.js +0 -552
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, Fragment as I, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useEffect as P } from "react";
|
|
3
|
-
import { u as
|
|
4
|
-
import { C as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { PAYMENT_PROVIDER_OPENPAYD as
|
|
3
|
+
import { u as R } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { C as T } from "../../../Close-CNwiMz_O.js";
|
|
5
|
+
import a from "./inputField.js";
|
|
6
|
+
import z from "../../Shared/transition.js";
|
|
7
|
+
import { PAYMENT_PROVIDER_OPENPAYD as M } from "../../../util/constants.js";
|
|
8
8
|
import "../../../index-DlQqWbXG.js";
|
|
9
9
|
import x from "./appButton.js";
|
|
10
10
|
import "../../../hoc/withThemeProvider.js";
|
|
11
11
|
import "./Auth/otpForm.js";
|
|
12
|
-
import "../../../constants-
|
|
13
|
-
import { a as
|
|
14
|
-
import { a as
|
|
15
|
-
import { useSnackBarContext as
|
|
12
|
+
import "../../../constants-t7n9qCW3.js";
|
|
13
|
+
import { a as O, u as w } from "../../../index-BQNs1mvn.js";
|
|
14
|
+
import { a as F } from "../../../bank-Dz5km1qK.js";
|
|
15
|
+
import { useSnackBarContext as W } from "../../../context/snackBarContext.js";
|
|
16
|
+
import j from "../../../hooks/useEverestDispatch.js";
|
|
16
17
|
import "../../../util/conversions.js";
|
|
17
18
|
import "../../../index-CAoLi5Qq.js";
|
|
18
19
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
@@ -27,48 +28,48 @@ import { D as G, a as Y } from "../../../DialogContent-BMwlOnbW.js";
|
|
|
27
28
|
import { D as _ } from "../../../DialogTitle-CfS0bb2K.js";
|
|
28
29
|
import { T as f } from "../../../Typography-pAaje37G.js";
|
|
29
30
|
import { I as q } from "../../../IconButton-DHm-hucF.js";
|
|
30
|
-
import { G as
|
|
31
|
+
import { G as i } from "../../../Grid-CFe3amXO.js";
|
|
31
32
|
import { C as L } from "../../../CircularProgress-xZA3lvba.js";
|
|
32
|
-
const
|
|
33
|
-
const D =
|
|
33
|
+
const Pe = () => {
|
|
34
|
+
const D = j(), y = R(O), { loader: h, error: c, message: u } = R(w), { firstName: E, lastName: H } = y, { showAlertMessage: o } = W(), [S, s] = n(!1), [d, g] = n(""), [p, b] = n(""), [m, N] = n(""), [C, B] = n(""), [l, k] = n(""), [A, v] = n("");
|
|
34
35
|
return P(() => {
|
|
35
36
|
c && o({ message: c });
|
|
36
37
|
}, [c]), P(() => {
|
|
37
|
-
u && (g(""), b(""), N(""), B(""), k(""), v(""),
|
|
38
|
-
}, [u]), /* @__PURE__ */
|
|
38
|
+
u && (g(""), b(""), N(""), B(""), k(""), v(""), s(!1), o({ message: u, type: "success" }));
|
|
39
|
+
}, [u]), /* @__PURE__ */ t(I, { children: [
|
|
39
40
|
/* @__PURE__ */ e(
|
|
40
41
|
x,
|
|
41
42
|
{
|
|
42
|
-
onClick: () =>
|
|
43
|
+
onClick: () => s(!0),
|
|
43
44
|
fullWidth: !0,
|
|
44
45
|
children: /* @__PURE__ */ e("strong", { children: "Add Bank" })
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ t(
|
|
48
49
|
G,
|
|
49
50
|
{
|
|
50
51
|
open: S,
|
|
51
52
|
fullWidth: !0,
|
|
52
|
-
onClose: () =>
|
|
53
|
-
TransitionComponent:
|
|
53
|
+
onClose: () => s(!1),
|
|
54
|
+
TransitionComponent: z,
|
|
54
55
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ t(_, { className: "buy-modal-text-color", children: [
|
|
56
57
|
/* @__PURE__ */ e(f, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Banks" }) }),
|
|
57
58
|
/* @__PURE__ */ e(
|
|
58
59
|
q,
|
|
59
60
|
{
|
|
60
61
|
"aria-label": "close",
|
|
61
|
-
onClick: () =>
|
|
62
|
+
onClick: () => s(!1),
|
|
62
63
|
className: "menu-buttons",
|
|
63
|
-
children: /* @__PURE__ */ e(
|
|
64
|
+
children: /* @__PURE__ */ e(T, {})
|
|
64
65
|
}
|
|
65
66
|
)
|
|
66
67
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ t(Y, { className: "bank-modal-content", dividers: !0, children: [
|
|
68
69
|
/* @__PURE__ */ e(f, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Bank" }) }),
|
|
69
70
|
/* @__PURE__ */ e(f, { className: "text-center", variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: "Only Euro denominated SEPA accounts are currently supported." }) }),
|
|
70
71
|
/* @__PURE__ */ e(
|
|
71
|
-
|
|
72
|
+
a,
|
|
72
73
|
{
|
|
73
74
|
label: "Account Name",
|
|
74
75
|
value: d,
|
|
@@ -76,40 +77,40 @@ const Ie = () => {
|
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
79
|
/* @__PURE__ */ e(
|
|
79
|
-
|
|
80
|
+
a,
|
|
80
81
|
{
|
|
81
82
|
label: "Bank Name",
|
|
82
83
|
value: p,
|
|
83
84
|
onChangeHandler: (r) => b(r)
|
|
84
85
|
}
|
|
85
86
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */ e(
|
|
88
|
-
|
|
87
|
+
/* @__PURE__ */ t(i, { container: !0, spacing: 1, children: [
|
|
88
|
+
/* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
|
|
89
|
+
a,
|
|
89
90
|
{
|
|
90
91
|
label: "Account Number or IBAN",
|
|
91
92
|
value: m,
|
|
92
93
|
onChangeHandler: (r) => N(r)
|
|
93
94
|
}
|
|
94
95
|
) }),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
96
|
-
|
|
96
|
+
/* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
|
|
97
|
+
a,
|
|
97
98
|
{
|
|
98
99
|
label: "Confirm Account Number or IBAN",
|
|
99
100
|
value: C,
|
|
100
101
|
onChangeHandler: (r) => B(r)
|
|
101
102
|
}
|
|
102
103
|
) }),
|
|
103
|
-
/* @__PURE__ */ e(
|
|
104
|
-
|
|
104
|
+
/* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
|
|
105
|
+
a,
|
|
105
106
|
{
|
|
106
107
|
label: "Routing/BIC Number",
|
|
107
108
|
value: l,
|
|
108
109
|
onChangeHandler: (r) => k(r)
|
|
109
110
|
}
|
|
110
111
|
) }),
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
|
|
112
|
+
/* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
|
|
113
|
+
a,
|
|
113
114
|
{
|
|
114
115
|
label: "Confirm Routing/BIC Number",
|
|
115
116
|
value: A,
|
|
@@ -138,18 +139,18 @@ const Ie = () => {
|
|
|
138
139
|
return o({
|
|
139
140
|
message: "Routing Number and Confirm Routing Number should be same"
|
|
140
141
|
}), !1;
|
|
141
|
-
h || D(
|
|
142
|
+
h || D(F({
|
|
142
143
|
accountName: d,
|
|
143
144
|
accountNumber: m,
|
|
144
145
|
bankName: p,
|
|
145
146
|
bicCode: l,
|
|
146
147
|
ownerFirstName: E,
|
|
147
148
|
ownerLastName: H,
|
|
148
|
-
provider:
|
|
149
|
+
provider: M
|
|
149
150
|
}));
|
|
150
151
|
},
|
|
151
152
|
fullWidth: !0,
|
|
152
|
-
children: /* @__PURE__ */ e("strong", { children: h ? /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ e("strong", { children: h ? /* @__PURE__ */ t(I, { children: [
|
|
153
154
|
/* @__PURE__ */ e(L, { size: 15, color: "inherit" }),
|
|
154
155
|
" Processing..."
|
|
155
156
|
] }) : "Add Bank" })
|
|
@@ -162,5 +163,5 @@ const Ie = () => {
|
|
|
162
163
|
] });
|
|
163
164
|
};
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
+
Pe as default
|
|
166
167
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as t, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y, useEffect as c, useCallback as C } from "react";
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import "../../../constants-
|
|
6
|
-
import { u as
|
|
7
|
-
import { p as
|
|
8
|
-
import { c as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
3
|
+
import { u as r } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { u as S } from "../../../index.esm-BsMAMhYW.js";
|
|
5
|
+
import "../../../constants-t7n9qCW3.js";
|
|
6
|
+
import { u as P, a as b, b as B } from "../../../index-BQNs1mvn.js";
|
|
7
|
+
import { p as g, b as x } from "../../../bank-Dz5km1qK.js";
|
|
8
|
+
import { c as A } from "../../../countries-BVn1FubK.js";
|
|
9
|
+
import T from "./appButton.js";
|
|
10
|
+
import q from "../../../hooks/useEverestDispatch.js";
|
|
11
|
+
import { B as v } from "../../../Box-B0YSYLco.js";
|
|
12
|
+
import { C as D } from "../../../CircularProgress-xZA3lvba.js";
|
|
13
|
+
const K = ({
|
|
13
14
|
buttonType: u = "primary"
|
|
14
15
|
}) => {
|
|
15
|
-
const e =
|
|
16
|
+
const e = q(), { loader: a, plaidToken: l } = r(P), s = r(b).residentialAddress.country || "USA", [i, d] = y(""), p = r(B);
|
|
16
17
|
c(() => {
|
|
17
18
|
if (s) {
|
|
18
|
-
const n =
|
|
19
|
+
const n = A.find((o) => o.alpha3 === s);
|
|
19
20
|
n && d(n.alpha2);
|
|
20
21
|
}
|
|
21
22
|
}, [s]), c(() => {
|
|
22
|
-
i && e(
|
|
23
|
+
i && e(g({ country_code: i }));
|
|
23
24
|
}, [i]);
|
|
24
25
|
const m = {
|
|
25
26
|
onSuccess: C((n, o) => {
|
|
@@ -33,7 +34,7 @@ const J = ({
|
|
|
33
34
|
link_session_id: o.link_session_id,
|
|
34
35
|
public_token: n
|
|
35
36
|
};
|
|
36
|
-
e(
|
|
37
|
+
e(x(_));
|
|
37
38
|
}, []),
|
|
38
39
|
// @TODO: We need to move side effects into sagas
|
|
39
40
|
// onExit: (err, metadata) => {},
|
|
@@ -41,9 +42,9 @@ const J = ({
|
|
|
41
42
|
token: l
|
|
42
43
|
//required for OAuth; if not using OAuth, set to null or omit:
|
|
43
44
|
//receivedRedirectUri: window.location.href,
|
|
44
|
-
}, { open: f, ready: k } =
|
|
45
|
-
return /* @__PURE__ */ t(h, { children: a ? /* @__PURE__ */ t(
|
|
46
|
-
|
|
45
|
+
}, { open: f, ready: k } = S(m);
|
|
46
|
+
return /* @__PURE__ */ t(h, { children: a ? /* @__PURE__ */ t(v, { className: "text-center", mt: 8, children: /* @__PURE__ */ t(D, {}) }) : /* @__PURE__ */ t(
|
|
47
|
+
T,
|
|
47
48
|
{
|
|
48
49
|
variantType: u,
|
|
49
50
|
onClick: () => f(),
|
|
@@ -54,5 +55,5 @@ const J = ({
|
|
|
54
55
|
) });
|
|
55
56
|
};
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
K as default
|
|
58
59
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../../react-redux-
|
|
3
|
+
import "../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import "../../../index-CAoLi5Qq.js";
|
|
5
5
|
import "../../../ContentCopy-coPwrEuz.js";
|
|
6
6
|
import "../../../generic-token-B_ptO5yb.js";
|
|
7
7
|
import "./appButton.js";
|
|
8
8
|
import "./timer.js";
|
|
9
9
|
import "../../../util/functions.js";
|
|
10
|
-
import "../../../constants-
|
|
11
|
-
import "../../../order-
|
|
10
|
+
import "../../../constants-t7n9qCW3.js";
|
|
11
|
+
import "../../../order-jqH948WM.js";
|
|
12
12
|
import "../../../index-DlQqWbXG.js";
|
|
13
13
|
import "../../../hoc/withThemeProvider.js";
|
|
14
14
|
import "./Input/index.js";
|
|
15
15
|
import "../../../util/constants.js";
|
|
16
16
|
import "./Auth/otpForm.js";
|
|
17
17
|
import "../../../context/snackBarContext.js";
|
|
18
|
+
import "../../../hooks/useEverestDispatch.js";
|
|
18
19
|
import "../../../util/conversions.js";
|
|
19
20
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
20
21
|
import "../../Shared/transition.js";
|
|
@@ -24,8 +25,8 @@ import "../../../moment-h96o7c8I.js";
|
|
|
24
25
|
import "../../../index.esm-BsMAMhYW.js";
|
|
25
26
|
import "../../../web3-u4qDZYpo.js";
|
|
26
27
|
import "../../../index-ceeCtFuh.js";
|
|
27
|
-
import "../../../styles.module-
|
|
28
|
-
import { M as
|
|
28
|
+
import "../../../styles.module-DMd29SPQ.js";
|
|
29
|
+
import { M as K } from "../../../index-Cs7bSfT3.js";
|
|
29
30
|
import "../../../context/dialogContext.js";
|
|
30
31
|
import "../../../Box-B0YSYLco.js";
|
|
31
32
|
import "../../../Grid-CFe3amXO.js";
|
|
@@ -34,5 +35,5 @@ import "../../../Divider-BShhMFf4.js";
|
|
|
34
35
|
import "../../../IconButton-DHm-hucF.js";
|
|
35
36
|
import "../../../CircularProgress-xZA3lvba.js";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
K as default
|
|
38
39
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import l, { useState as w, useEffect as R } from "react";
|
|
3
3
|
import U from "./Keyboard/keyboard.js";
|
|
4
|
-
import { s as m } from "../../../styles.module-
|
|
4
|
+
import { s as m } from "../../../styles.module-verVx4pE.js";
|
|
5
5
|
import { B as c } from "../../../Box-B0YSYLco.js";
|
|
6
6
|
import { T as s } from "../../../Typography-pAaje37G.js";
|
|
7
7
|
import { B as C } from "../../../Button-Df4vgU24.js";
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { u as L
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "../../../constants-
|
|
8
|
-
import { a as
|
|
9
|
-
import
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as c } from "react";
|
|
3
|
+
import { u as L } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import S from "../../../hoc/withThemeProvider.js";
|
|
5
|
+
import v from "../Shared/Auth/emailForm.js";
|
|
6
|
+
import x from "../Shared/Auth/otpForm.js";
|
|
7
|
+
import "../../../constants-t7n9qCW3.js";
|
|
8
|
+
import { a as O, l as R, v as k } from "../../../auth-ClBgT--j.js";
|
|
9
|
+
import q from "../Shared/Container/index.js";
|
|
10
10
|
import { LOGIN_SCREEN as f } from "../../../util/constants.js";
|
|
11
|
-
import { useSnackBarContext as
|
|
11
|
+
import { useSnackBarContext as C } from "../../../context/snackBarContext.js";
|
|
12
|
+
import w from "../../../hooks/useEverestDispatch.js";
|
|
12
13
|
const A = ({ onLoginComplete: u, navigate: l }) => {
|
|
13
|
-
const e =
|
|
14
|
+
const e = w(), o = L((t) => t.session), p = o.loader, d = o.otpLoader, g = o.screen, r = o.uuid, s = o.token, n = o.error, { showAlertMessage: i } = C(), [m, E] = h("");
|
|
14
15
|
return c(() => () => {
|
|
15
|
-
e(
|
|
16
|
+
e(O());
|
|
16
17
|
}, []), c(() => {
|
|
17
18
|
r && s && u(r, s);
|
|
18
19
|
}, [r, s]), c(() => {
|
|
19
20
|
n && i({ message: n });
|
|
20
|
-
}, [n]), /* @__PURE__ */
|
|
21
|
-
|
|
21
|
+
}, [n]), /* @__PURE__ */ a(q, { children: g === 1 ? /* @__PURE__ */ a(
|
|
22
|
+
v,
|
|
22
23
|
{
|
|
23
24
|
showAlertMessage: i,
|
|
24
25
|
loader: p,
|
|
25
|
-
email:
|
|
26
|
-
setEmail:
|
|
26
|
+
email: m,
|
|
27
|
+
setEmail: E,
|
|
27
28
|
navigate: l,
|
|
28
29
|
from: f,
|
|
29
30
|
onEmail: (t) => {
|
|
30
|
-
e(
|
|
31
|
+
e(R(t));
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
) : /* @__PURE__ */
|
|
34
|
-
|
|
34
|
+
) : /* @__PURE__ */ a(
|
|
35
|
+
x,
|
|
35
36
|
{
|
|
36
37
|
showAlertMessage: i,
|
|
37
38
|
loader: p,
|
|
38
39
|
otpLoader: d,
|
|
39
|
-
email:
|
|
40
|
+
email: m,
|
|
40
41
|
dispatch: e,
|
|
41
42
|
from: f,
|
|
42
43
|
onValidateOtp: (t) => {
|
|
43
|
-
e(
|
|
44
|
+
e(k({ email: m, otp: t }));
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
) });
|
|
47
|
-
},
|
|
48
|
+
}, z = S(A);
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
z as default
|
|
50
51
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as r, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import * as j from "react";
|
|
3
3
|
import { useState as u, useEffect as h } from "react";
|
|
4
|
-
import { u as w
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import { a as
|
|
10
|
-
import
|
|
4
|
+
import { u as w } from "../../../react-redux-C7I9-1M6.js";
|
|
5
|
+
import B from "../../../hoc/withThemeProvider.js";
|
|
6
|
+
import M from "../Shared/Auth/emailForm.js";
|
|
7
|
+
import L from "../Shared/Auth/otpForm.js";
|
|
8
|
+
import "../../../constants-t7n9qCW3.js";
|
|
9
|
+
import { a as N, h as P, i as U } from "../../../auth-ClBgT--j.js";
|
|
10
|
+
import k from "../Shared/Container/index.js";
|
|
11
11
|
import { REGISTER_SCREEN as S } from "../../../util/constants.js";
|
|
12
|
-
import
|
|
13
|
-
import { useSnackBarContext as
|
|
14
|
-
import
|
|
12
|
+
import q from "./terms.js";
|
|
13
|
+
import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
|
|
14
|
+
import W from "../Shared/appButton.js";
|
|
15
|
+
import F from "../../../hooks/useEverestDispatch.js";
|
|
15
16
|
import { D as I, a as Y } from "../../../DialogContent-BMwlOnbW.js";
|
|
16
17
|
import { D as _ } from "../../../DialogTitle-CfS0bb2K.js";
|
|
17
18
|
import { B as z } from "../../../Box-B0YSYLco.js";
|
|
@@ -103,25 +104,25 @@ process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
|
103
104
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
104
105
|
});
|
|
105
106
|
const to = ({ onRegisterComplete: t, navigate: i }) => {
|
|
106
|
-
const e =
|
|
107
|
+
const e = F(), s = w((l) => l.session), a = s.loader, p = s.otpLoader, m = s.screen, n = s.uuid, c = s.token, d = s.error, { showAlertMessage: f } = V(), [A, x] = u(!1), [g, R] = u(""), [D, b] = u("");
|
|
107
108
|
h(() => () => {
|
|
108
|
-
e(
|
|
109
|
+
e(N());
|
|
109
110
|
}, []), h(() => {
|
|
110
111
|
n && c && t(n, c);
|
|
111
112
|
}, [n, c]), h(() => {
|
|
112
113
|
d && f({ message: d });
|
|
113
114
|
}, [d]);
|
|
114
115
|
const E = (l) => {
|
|
115
|
-
e(
|
|
116
|
+
e(P(l));
|
|
116
117
|
}, v = (l) => {
|
|
117
118
|
b(l), x(!0);
|
|
118
119
|
}, T = () => {
|
|
119
|
-
e(
|
|
120
|
+
e(U({ email: g, otp: D }));
|
|
120
121
|
}, O = () => x(!1);
|
|
121
|
-
return /* @__PURE__ */ y(
|
|
122
|
+
return /* @__PURE__ */ y(k, { children: [
|
|
122
123
|
{
|
|
123
124
|
1: /* @__PURE__ */ r(
|
|
124
|
-
|
|
125
|
+
M,
|
|
125
126
|
{
|
|
126
127
|
showAlertMessage: f,
|
|
127
128
|
loader: a,
|
|
@@ -133,7 +134,7 @@ const to = ({ onRegisterComplete: t, navigate: i }) => {
|
|
|
133
134
|
}
|
|
134
135
|
),
|
|
135
136
|
2: /* @__PURE__ */ r(
|
|
136
|
-
|
|
137
|
+
L,
|
|
137
138
|
{
|
|
138
139
|
showAlertMessage: f,
|
|
139
140
|
loader: a,
|
|
@@ -181,15 +182,15 @@ const to = ({ onRegisterComplete: t, navigate: i }) => {
|
|
|
181
182
|
paddingX: 2,
|
|
182
183
|
paddingY: 1
|
|
183
184
|
},
|
|
184
|
-
children: /* @__PURE__ */ r(
|
|
185
|
+
children: /* @__PURE__ */ r(q, {})
|
|
185
186
|
}
|
|
186
187
|
) }),
|
|
187
|
-
/* @__PURE__ */ r(C, { sx: { justifyContent: "center", paddingBottom: 2 }, children: /* @__PURE__ */ r(
|
|
188
|
+
/* @__PURE__ */ r(C, { sx: { justifyContent: "center", paddingBottom: 2 }, children: /* @__PURE__ */ r(W, { isLoading: a, onClick: T, children: "Accept & Sign Up" }) })
|
|
188
189
|
]
|
|
189
190
|
}
|
|
190
191
|
)
|
|
191
192
|
] });
|
|
192
|
-
},
|
|
193
|
+
}, bo = B(to);
|
|
193
194
|
export {
|
|
194
|
-
|
|
195
|
+
bo as default
|
|
195
196
|
};
|
|
@@ -3,7 +3,7 @@ import I from "../../Shared/noData.js";
|
|
|
3
3
|
import { M as h } from "../../../../tooltip-3UvETWtS.js";
|
|
4
4
|
import { I as p } from "../../../../Info-BVeUSPyk.js";
|
|
5
5
|
import C from "../../../../hoc/withThemeProvider.js";
|
|
6
|
-
import { s as r } from "../../../../styles.module-
|
|
6
|
+
import { s as r } from "../../../../styles.module-C1sNeKjL.js";
|
|
7
7
|
import { B as G } from "../../../../Backdrop-CioURPVG.js";
|
|
8
8
|
import { C as f } from "../../../../CircularProgress-xZA3lvba.js";
|
|
9
9
|
import { G as t } from "../../../../Grid-CFe3amXO.js";
|
|
@@ -3,7 +3,7 @@ import $ from "../../Shared/noData.js";
|
|
|
3
3
|
import { M as p } from "../../../../tooltip-3UvETWtS.js";
|
|
4
4
|
import { I as u } from "../../../../Info-BVeUSPyk.js";
|
|
5
5
|
import { STAKE_ID_MIN_DAYS as g, STAKE_ID_MID_DAYS as x, STAKE_ID_MAX_DAYS as v } from "../../../../util/constants.js";
|
|
6
|
-
import { s as r } from "../../../../styles.module-
|
|
6
|
+
import { s as r } from "../../../../styles.module-C1sNeKjL.js";
|
|
7
7
|
import { B as _ } from "../../../../Backdrop-CioURPVG.js";
|
|
8
8
|
import { C as k } from "../../../../CircularProgress-xZA3lvba.js";
|
|
9
9
|
import { G as t } from "../../../../Grid-CFe3amXO.js";
|
|
@@ -2,19 +2,20 @@ import { jsxs as o, Fragment as _e, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as r, useEffect as _ } from "react";
|
|
3
3
|
import xe from "./id/index.js";
|
|
4
4
|
import we from "./gems/index.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { ID_STAKE as i, STAKE_ID_MIN_DAYS as ee, GEM_SYNTHETIC_TOKEN_SYMBOL as
|
|
7
|
-
import "../../../constants-
|
|
8
|
-
import { a as
|
|
9
|
-
import { f as
|
|
10
|
-
import { s as
|
|
11
|
-
import { fromHuman as
|
|
5
|
+
import { u as K } from "../../../react-redux-C7I9-1M6.js";
|
|
6
|
+
import { ID_STAKE as i, STAKE_ID_MIN_DAYS as ee, GEM_SYNTHETIC_TOKEN_SYMBOL as Ae, ID_TOKEN_SYMBOL as De, EVER_CHAIN_NETWORK as be, GEMS_STAKE as T, STAKE_GEM_MAX_DAYS as Ie, STAKE_ID_ICON as Te, STAKE_GEM_ICON as Ee, STAKE_GEM_MAX_APY as ve, STAKE_ID_MIN_APY as Ne, STAKE_ID_MID_DAYS as Re, STAKE_ID_MID_APY as ye, STAKE_ID_MAX_DAYS as Me, STAKE_ID_MAX_APY as Ce } from "../../../util/constants.js";
|
|
7
|
+
import "../../../constants-t7n9qCW3.js";
|
|
8
|
+
import { a as Fe } from "../../../index-BQNs1mvn.js";
|
|
9
|
+
import { f as Pe } from "../../../wallet-DpkUmmq0.js";
|
|
10
|
+
import { s as Be, a as Ge, b as Ke } from "../../../stake-Dcq6QpaA.js";
|
|
11
|
+
import { fromHuman as Le, numberFormat as u, toHuman as E } from "../../../util/conversions.js";
|
|
12
12
|
import "../../../index-DlQqWbXG.js";
|
|
13
13
|
import "../Shared/appButton.js";
|
|
14
|
-
import
|
|
15
|
-
import { decimalNumbersWithCommaOrDot as
|
|
14
|
+
import Ye from "../../../hoc/withThemeProvider.js";
|
|
15
|
+
import { decimalNumbersWithCommaOrDot as We } from "../../../util/regex.js";
|
|
16
16
|
import "../Shared/Auth/otpForm.js";
|
|
17
17
|
import "../../../context/snackBarContext.js";
|
|
18
|
+
import Oe from "../../../hooks/useEverestDispatch.js";
|
|
18
19
|
import "../../../index-CAoLi5Qq.js";
|
|
19
20
|
import { useSnackBar as ze } from "../../../hooks/useSnackBar.js";
|
|
20
21
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
@@ -26,15 +27,15 @@ import "../../../index.esm-BsMAMhYW.js";
|
|
|
26
27
|
import "../../../web3-u4qDZYpo.js";
|
|
27
28
|
import "../../../index-ceeCtFuh.js";
|
|
28
29
|
import "../../../context/dialogContext.js";
|
|
29
|
-
import { s as x } from "../../../styles.module-
|
|
30
|
+
import { s as x } from "../../../styles.module-C1sNeKjL.js";
|
|
30
31
|
import { B as h } from "../../../Box-B0YSYLco.js";
|
|
31
32
|
import { G as f } from "../../../Grid-CFe3amXO.js";
|
|
32
33
|
import { T as c } from "../../../Typography-pAaje37G.js";
|
|
33
34
|
import { D as $e, a as He } from "../../../DialogContent-BMwlOnbW.js";
|
|
34
35
|
import { C as Xe } from "../../../CircularProgress-xZA3lvba.js";
|
|
35
36
|
import { B as te } from "../../../Button-Df4vgU24.js";
|
|
36
|
-
const je = ({ router:
|
|
37
|
-
const D =
|
|
37
|
+
const je = ({ router: v }) => {
|
|
38
|
+
const D = Oe(), { showAlertMessage: m, snackBar: ae } = ze(), N = K(Fe).everWalletAddress, L = K((t) => t.user.wallets);
|
|
38
39
|
L.loader;
|
|
39
40
|
const R = L.data, se = K((t) => t.stake), {
|
|
40
41
|
loader: Y,
|
|
@@ -52,34 +53,34 @@ const je = ({ router: N }) => {
|
|
|
52
53
|
totalReward: 0
|
|
53
54
|
}), [de, b] = r(!1), [me, j] = r(""), [fe, q] = r(""), [pe, V] = r(
|
|
54
55
|
void 0
|
|
55
|
-
), ke = a === i ? 18 : 6, ue =
|
|
56
|
+
), ke = a === i ? 18 : 6, ue = Le(p.toString(), ke);
|
|
56
57
|
let I = ve;
|
|
57
|
-
a === i && (I =
|
|
58
|
+
a === i && (I = Ne, k === Re ? I = ye : k === Me && (I = Ce)), _(() => {
|
|
58
59
|
M && (Se(), m({ message: M }));
|
|
59
60
|
}, [M]), _(() => {
|
|
60
61
|
W && (b(!1), m({
|
|
61
62
|
message: "Token has been successfully staked.",
|
|
62
63
|
type: "success"
|
|
63
|
-
}),
|
|
64
|
+
}), v.push("/wallet"));
|
|
64
65
|
}, [W]), _(() => {
|
|
65
|
-
let t =
|
|
66
|
+
let t = Ie;
|
|
66
67
|
a === i && (t = ee), X(t), C("");
|
|
67
|
-
}, [a]), _(() => (D(
|
|
68
|
-
D(
|
|
68
|
+
}, [a]), _(() => (D(Be()), D(Pe()), () => {
|
|
69
|
+
D(Ge());
|
|
69
70
|
}), []), _(() => {
|
|
70
|
-
if (
|
|
71
|
+
if (N && R.length > 0) {
|
|
71
72
|
const t = R.find(
|
|
72
|
-
(s) => s.address ===
|
|
73
|
+
(s) => s.address === N
|
|
73
74
|
);
|
|
74
75
|
if (t) {
|
|
75
76
|
const s = t.tokens, l = s.length;
|
|
76
77
|
for (let d = 0; d < l; d++) {
|
|
77
78
|
const n = s[d];
|
|
78
|
-
if (n.symbol ===
|
|
79
|
+
if (n.symbol === Ae) {
|
|
79
80
|
const S = n.fmt_balance.replaceAll(",", "");
|
|
80
81
|
ne(parseFloat(u(S)));
|
|
81
82
|
}
|
|
82
|
-
if (n.symbol ===
|
|
83
|
+
if (n.symbol === De && n.network.toLowerCase() === be.toLowerCase()) {
|
|
83
84
|
const S = n.fmt_balance.replaceAll(",", "");
|
|
84
85
|
le(parseFloat(u(S)));
|
|
85
86
|
}
|
|
@@ -87,7 +88,7 @@ const je = ({ router: N }) => {
|
|
|
87
88
|
re(!1);
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
}, [
|
|
91
|
+
}, [N, R]), _(() => {
|
|
91
92
|
const t = y.length;
|
|
92
93
|
if (t > 0) {
|
|
93
94
|
const s = [], l = [];
|
|
@@ -123,7 +124,7 @@ const je = ({ router: N }) => {
|
|
|
123
124
|
}, [y]);
|
|
124
125
|
const he = () => {
|
|
125
126
|
D(
|
|
126
|
-
|
|
127
|
+
Ke({
|
|
127
128
|
amount: ue,
|
|
128
129
|
type: a,
|
|
129
130
|
period: k.toString()
|
|
@@ -142,7 +143,7 @@ const je = ({ router: N }) => {
|
|
|
142
143
|
}), !1;
|
|
143
144
|
if (!p)
|
|
144
145
|
return m({ message: "Please provide the amount to stake" }), !1;
|
|
145
|
-
if (!
|
|
146
|
+
if (!We.test(p))
|
|
146
147
|
return m({
|
|
147
148
|
message: "Please provide the valid amount"
|
|
148
149
|
}), !1;
|
|
@@ -181,7 +182,7 @@ const je = ({ router: N }) => {
|
|
|
181
182
|
/* @__PURE__ */ e(
|
|
182
183
|
"img",
|
|
183
184
|
{
|
|
184
|
-
src: a === i ?
|
|
185
|
+
src: a === i ? Te : Ee,
|
|
185
186
|
alt: "id",
|
|
186
187
|
width: 32
|
|
187
188
|
}
|
|
@@ -243,7 +244,7 @@ const je = ({ router: N }) => {
|
|
|
243
244
|
a === i ? /* @__PURE__ */ e(
|
|
244
245
|
xe,
|
|
245
246
|
{
|
|
246
|
-
history:
|
|
247
|
+
history: v,
|
|
247
248
|
loader: Y,
|
|
248
249
|
stakeData: F.data,
|
|
249
250
|
totalStake: F.totalStake,
|
|
@@ -260,7 +261,7 @@ const je = ({ router: N }) => {
|
|
|
260
261
|
) : /* @__PURE__ */ e(
|
|
261
262
|
we,
|
|
262
263
|
{
|
|
263
|
-
history:
|
|
264
|
+
history: v,
|
|
264
265
|
loader: Y,
|
|
265
266
|
stakeData: P.data,
|
|
266
267
|
totalStake: P.totalStake,
|
|
@@ -340,7 +341,7 @@ const je = ({ router: N }) => {
|
|
|
340
341
|
}
|
|
341
342
|
)
|
|
342
343
|
] });
|
|
343
|
-
},
|
|
344
|
+
}, yt = Ye(je);
|
|
344
345
|
export {
|
|
345
|
-
|
|
346
|
+
yt as default
|
|
346
347
|
};
|