everest-npm-features 0.0.48 → 0.0.50
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-Cnrxi5yr.js → PlayArrow-C3uVNo4F.js} +1 -1
- package/dist/{auth-C45E0xvK.js → auth-ClBgT--j.js} +1 -1
- package/dist/{bank-DIdz4BaB.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 +96 -88
- package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
- package/dist/components/Wallet/Account/eWallet.js +118 -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 +5 -5
- package/dist/components/Wallet/Buy/form.js +5 -5
- 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 +22 -21
- package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
- package/dist/components/Wallet/Profile/documents.js +34 -33
- package/dist/components/Wallet/Profile/index.js +20 -19
- package/dist/components/Wallet/Profile/storage.js +26 -26
- package/dist/components/Wallet/Receive/index.js +22 -21
- package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Sell/form.js +5 -5
- package/dist/components/Wallet/Sell/index.js +13 -12
- package/dist/components/Wallet/Send/index.js +19 -18
- 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 +6 -5
- package/dist/components/Wallet/SignIn/index.js +24 -23
- package/dist/components/Wallet/SignUp/index.js +22 -21
- package/dist/components/Wallet/Stake/index.js +30 -29
- package/dist/components/Wallet/Swap/form.js +8 -7
- 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 +4 -4
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +12 -11
- package/dist/{constants-BSdmHYnc.js → constants-t7n9qCW3.js} +245 -244
- package/dist/{cryptoAssets-BdNVnpA_.js → cryptoAssets-shEFU26O.js} +1 -1
- package/dist/hooks/useEverestDispatch.d.ts +6 -0
- package/dist/hooks/useEverestDispatch.js +5 -0
- package/dist/{index-Be3ndI6s.js → index-B6MSTmAM.js} +104 -103
- package/dist/{index-HZ9RrpTC.js → index-C2EjFXaz.js} +87 -86
- package/dist/{index-BXF4OI74.js → index-Cs7bSfT3.js} +17 -16
- package/dist/{index-D3OzGVxQ.js → index-DFRU-R-5.js} +38 -37
- package/dist/{index-CRyby3Qm.js → index-Da0r8FX2.js} +11 -10
- package/dist/{index-BlfzmV5M.js → index-RDV0mQbt.js} +36 -35
- package/dist/{index-Cvp4wWrB.js → index-j0zehpzg.js} +40 -39
- package/dist/{kyc-BQsiHtP6.js → kyc-D9xahfH9.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BKKCskeq.js → order-jqH948WM.js} +29 -25
- package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
- package/dist/{stake-WjG22nIX.js → stake-Dcq6QpaA.js} +3 -3
- package/dist/{tokenRow-D32W5WH3.js → tokenRow-B-tustzZ.js} +8 -6
- package/dist/util/constants.d.ts +2 -0
- package/dist/util/constants.js +21 -19
- package/dist/{wallet-BXA-R-Ks.js → wallet-DpkUmmq0.js} +1 -1
- package/package.json +3 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as u, jsx as
|
|
1
|
+
import { jsxs as p, Fragment as u, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as g, useState as q, useEffect as L, createRef as W } from "react";
|
|
3
3
|
import j from "../../Wallet/Shared/Input/index.js";
|
|
4
|
-
import
|
|
4
|
+
import v from "../../Wallet/Shared/appButton.js";
|
|
5
5
|
import "../../../index-DlQqWbXG.js";
|
|
6
6
|
import "../../../hoc/withThemeProvider.js";
|
|
7
|
-
import { u as v } from "../../../react-redux-B4BZippc.js";
|
|
8
7
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
9
|
-
import "../../../constants-
|
|
10
|
-
import { a as
|
|
11
|
-
import { useSnackBarContext as
|
|
8
|
+
import "../../../constants-t7n9qCW3.js";
|
|
9
|
+
import { a as K } from "../../../kyc-D9xahfH9.js";
|
|
10
|
+
import { useSnackBarContext as H } from "../../../context/snackBarContext.js";
|
|
11
|
+
import V from "../../../hooks/useEverestDispatch.js";
|
|
12
12
|
import "../../../util/conversions.js";
|
|
13
13
|
import "../../../index-CAoLi5Qq.js";
|
|
14
14
|
import { C as $ } from "../../../Close-CNwiMz_O.js";
|
|
@@ -26,41 +26,41 @@ import { B as x } from "../../../Box-B0YSYLco.js";
|
|
|
26
26
|
import { I as G } from "../../../InputAdornment-DMiED3JH.js";
|
|
27
27
|
import { I as c } from "../../../IconButton-DHm-hucF.js";
|
|
28
28
|
import { C as J } from "../../../CircularProgress-xZA3lvba.js";
|
|
29
|
-
const
|
|
30
|
-
inputComponent:
|
|
31
|
-
buttonComponent:
|
|
32
|
-
eddData:
|
|
29
|
+
const _e = ({
|
|
30
|
+
inputComponent: E,
|
|
31
|
+
buttonComponent: C,
|
|
32
|
+
eddData: n,
|
|
33
33
|
kycStoreData: l,
|
|
34
|
-
setEddData:
|
|
35
|
-
processKyc:
|
|
36
|
-
processLoader:
|
|
34
|
+
setEddData: F,
|
|
35
|
+
processKyc: _,
|
|
36
|
+
processLoader: a
|
|
37
37
|
}) => {
|
|
38
|
-
const T =
|
|
38
|
+
const T = E ?? j, A = C ?? v, R = {
|
|
39
39
|
BANK_STATEMENT: {
|
|
40
|
-
text:
|
|
41
|
-
file:
|
|
42
|
-
preview:
|
|
40
|
+
text: n.BANK_STATEMENT.text,
|
|
41
|
+
file: n.BANK_STATEMENT.file,
|
|
42
|
+
preview: n.BANK_STATEMENT.preview,
|
|
43
43
|
label: "Bank Statement",
|
|
44
44
|
required: !0,
|
|
45
45
|
multiFile: !1
|
|
46
46
|
},
|
|
47
47
|
PROOF_OF_INCOME: {
|
|
48
|
-
text:
|
|
49
|
-
file:
|
|
50
|
-
preview:
|
|
48
|
+
text: n.PROOF_OF_INCOME.text,
|
|
49
|
+
file: n.PROOF_OF_INCOME.file,
|
|
50
|
+
preview: n.PROOF_OF_INCOME.preview,
|
|
51
51
|
label: "Proof of Income",
|
|
52
52
|
required: !0,
|
|
53
53
|
multiFile: !1
|
|
54
54
|
},
|
|
55
55
|
SOURCE_OF_WEALTH: {
|
|
56
|
-
text:
|
|
57
|
-
file:
|
|
58
|
-
preview:
|
|
56
|
+
text: n.SOURCE_OF_WEALTH.text,
|
|
57
|
+
file: n.SOURCE_OF_WEALTH.file,
|
|
58
|
+
preview: n.SOURCE_OF_WEALTH.preview,
|
|
59
59
|
label: "Source of Wealth",
|
|
60
60
|
required: !0,
|
|
61
61
|
multiFile: !1
|
|
62
62
|
}
|
|
63
|
-
}, I =
|
|
63
|
+
}, I = V(), { showAlertMessage: d } = H(), w = g(null), [o, m] = q(R);
|
|
64
64
|
L(() => {
|
|
65
65
|
if (l != null && l.uploadData.fileUrl && (l != null && l.uploadData.fileType)) {
|
|
66
66
|
const i = l == null ? void 0 : l.uploadData.fileType;
|
|
@@ -78,7 +78,7 @@ const Fe = ({
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}, [l == null ? void 0 : l.uploadData.fileUrl, l == null ? void 0 : l.uploadData.fileType]);
|
|
81
|
-
const h = Object.keys(
|
|
81
|
+
const h = Object.keys(n), O = g(
|
|
82
82
|
h.reduce((i, e) => (i[e] = W(), i), {})
|
|
83
83
|
), N = () => {
|
|
84
84
|
for (const i of Object.keys(o)) {
|
|
@@ -97,12 +97,12 @@ const Fe = ({
|
|
|
97
97
|
}
|
|
98
98
|
return !0;
|
|
99
99
|
}, U = () => {
|
|
100
|
-
N() && (
|
|
100
|
+
N() && (F(o), _(o));
|
|
101
101
|
}, b = (i, e) => {
|
|
102
102
|
const t = i.target.files;
|
|
103
103
|
!t || t.length === 0 || Array.from(t).map((s) => {
|
|
104
104
|
const B = URL.createObjectURL(s);
|
|
105
|
-
I(
|
|
105
|
+
I(K({ file: s, type: e })), m((f) => {
|
|
106
106
|
const P = f[e].file || [], M = f[e].text ? f[e].text.split(", ") : [];
|
|
107
107
|
return {
|
|
108
108
|
...f,
|
|
@@ -116,8 +116,8 @@ const Fe = ({
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
return /* @__PURE__ */ p(u, { children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ r("form", { style: { height: "350px", overflowY: "scroll" }, ref: w, children: h.map((i) => /* @__PURE__ */ p(x, { mt: 2, children: [
|
|
120
|
+
/* @__PURE__ */ r(
|
|
121
121
|
T,
|
|
122
122
|
{
|
|
123
123
|
label: o[i].label,
|
|
@@ -128,8 +128,8 @@ const Fe = ({
|
|
|
128
128
|
})),
|
|
129
129
|
slotProps: {
|
|
130
130
|
input: {
|
|
131
|
-
endAdornment: /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
131
|
+
endAdornment: /* @__PURE__ */ r(G, { position: "end", children: o[i].file.length > 0 ? /* @__PURE__ */ p(u, { children: [
|
|
132
|
+
/* @__PURE__ */ r(
|
|
133
133
|
c,
|
|
134
134
|
{
|
|
135
135
|
onClick: () => m((e) => ({
|
|
@@ -137,19 +137,19 @@ const Fe = ({
|
|
|
137
137
|
[i]: { ...e[i], file: [] }
|
|
138
138
|
})),
|
|
139
139
|
edge: "end",
|
|
140
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ r($, {})
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
|
-
o[i].preview.map((e, t) => /* @__PURE__ */
|
|
143
|
+
o[i].preview.map((e, t) => /* @__PURE__ */ r(
|
|
144
144
|
c,
|
|
145
145
|
{
|
|
146
146
|
onClick: () => window.open(e),
|
|
147
147
|
edge: "end",
|
|
148
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ r(z, {})
|
|
149
149
|
},
|
|
150
150
|
t
|
|
151
151
|
))
|
|
152
|
-
] }) : /* @__PURE__ */
|
|
152
|
+
] }) : /* @__PURE__ */ r(
|
|
153
153
|
c,
|
|
154
154
|
{
|
|
155
155
|
onClick: () => {
|
|
@@ -157,7 +157,7 @@ const Fe = ({
|
|
|
157
157
|
return (t = (e = O.current[i]) == null ? void 0 : e.current) == null ? void 0 : t.click();
|
|
158
158
|
},
|
|
159
159
|
edge: "end",
|
|
160
|
-
children: /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ r(Y, {})
|
|
161
161
|
}
|
|
162
162
|
) })
|
|
163
163
|
}
|
|
@@ -165,7 +165,7 @@ const Fe = ({
|
|
|
165
165
|
required: o[i].required
|
|
166
166
|
}
|
|
167
167
|
),
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ r(
|
|
169
169
|
"input",
|
|
170
170
|
{
|
|
171
171
|
ref: O.current[i],
|
|
@@ -178,12 +178,12 @@ const Fe = ({
|
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
] }, i)) }),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ r(x, { mt: 3.5, children: /* @__PURE__ */ r(A, { fullWidth: !0, onClick: U, children: /* @__PURE__ */ r("strong", { children: a ? /* @__PURE__ */ p(u, { children: [
|
|
182
|
+
/* @__PURE__ */ r(J, { size: 15, color: "inherit" }),
|
|
183
183
|
" Processing..."
|
|
184
|
-
] }) : /* @__PURE__ */
|
|
184
|
+
] }) : /* @__PURE__ */ r(u, { children: "Submit" }) }) }) })
|
|
185
185
|
] });
|
|
186
186
|
};
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
_e as default
|
|
189
189
|
};
|
|
@@ -3,17 +3,18 @@ import "react";
|
|
|
3
3
|
import "../../Wallet/Shared/Container/index.js";
|
|
4
4
|
import "../Incode/index.js";
|
|
5
5
|
import "../../../hoc/withThemeProvider.js";
|
|
6
|
-
import { E as
|
|
6
|
+
import { E as C, I as D, c as I, b as O, a as P, F as e } from "../../../index-Da0r8FX2.js";
|
|
7
7
|
import "./pep.js";
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import "../../../kyc-
|
|
10
|
-
import "../../../react-redux-
|
|
8
|
+
import "../../../constants-t7n9qCW3.js";
|
|
9
|
+
import "../../../kyc-D9xahfH9.js";
|
|
10
|
+
import "../../../react-redux-C7I9-1M6.js";
|
|
11
11
|
import "./edd.js";
|
|
12
|
+
import "../../../hooks/useEverestDispatch.js";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
C as EDD_SCREEN,
|
|
15
|
+
D as INCODE_SCREEN,
|
|
16
|
+
I as PEP_SCREEN,
|
|
17
|
+
O as PERSONAL_DETAILS_SCREEN,
|
|
18
|
+
P as USER_INFO_SCREEN,
|
|
19
|
+
e as default
|
|
19
20
|
};
|
|
@@ -3,7 +3,7 @@ import { useState as n } from "react";
|
|
|
3
3
|
import M from "../../Wallet/Shared/step.js";
|
|
4
4
|
import { c as A } from "../../../countries-BVn1FubK.js";
|
|
5
5
|
import F from "../../Wallet/Shared/appButton.js";
|
|
6
|
-
import { d as B, f as _ } from "../../../constants-
|
|
6
|
+
import { d as B, f as _ } from "../../../constants-t7n9qCW3.js";
|
|
7
7
|
import { B as c } from "../../../Box-B0YSYLco.js";
|
|
8
8
|
import { T as i } from "../../../Typography-pAaje37G.js";
|
|
9
9
|
import { G as g } from "../../../Grid-CFe3amXO.js";
|
|
@@ -5,7 +5,7 @@ import "../../Wallet/Shared/appButton.js";
|
|
|
5
5
|
import "../../../hoc/withThemeProvider.js";
|
|
6
6
|
import "../../Wallet/Shared/Input/index.js";
|
|
7
7
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
8
|
-
import "../../../constants-
|
|
8
|
+
import "../../../constants-t7n9qCW3.js";
|
|
9
9
|
import "../../../context/snackBarContext.js";
|
|
10
10
|
import "../../../util/conversions.js";
|
|
11
11
|
import "../../../index-CAoLi5Qq.js";
|
|
@@ -18,7 +18,7 @@ import "../../../moment-h96o7c8I.js";
|
|
|
18
18
|
import "../../../index.esm-BsMAMhYW.js";
|
|
19
19
|
import "../../../web3-u4qDZYpo.js";
|
|
20
20
|
import "../../../index-ceeCtFuh.js";
|
|
21
|
-
import { P as z } from "../../../index-
|
|
21
|
+
import { P as z } from "../../../index-Da0r8FX2.js";
|
|
22
22
|
import "../../../context/dialogContext.js";
|
|
23
23
|
import "./countryList.js";
|
|
24
24
|
import "../../../Box-B0YSYLco.js";
|
|
@@ -4,11 +4,11 @@ import "../../Wallet/Shared/Input/index.js";
|
|
|
4
4
|
import "../../Wallet/Shared/appButton.js";
|
|
5
5
|
import "../../../index-DlQqWbXG.js";
|
|
6
6
|
import "../../../hoc/withThemeProvider.js";
|
|
7
|
-
import "../../../react-redux-B4BZippc.js";
|
|
8
7
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
9
|
-
import "../../../constants-
|
|
10
|
-
import "../../../kyc-
|
|
8
|
+
import "../../../constants-t7n9qCW3.js";
|
|
9
|
+
import "../../../kyc-D9xahfH9.js";
|
|
11
10
|
import "../../../context/snackBarContext.js";
|
|
11
|
+
import "../../../hooks/useEverestDispatch.js";
|
|
12
12
|
import "../../../util/conversions.js";
|
|
13
13
|
import "../../../index-CAoLi5Qq.js";
|
|
14
14
|
import "../../Wallet/Shared/step.js";
|
|
@@ -21,7 +21,7 @@ import "../../../index.esm-BsMAMhYW.js";
|
|
|
21
21
|
import "../../../countries-BVn1FubK.js";
|
|
22
22
|
import "../../../web3-u4qDZYpo.js";
|
|
23
23
|
import "../../../index-ceeCtFuh.js";
|
|
24
|
-
import { U as H } from "../../../index-
|
|
24
|
+
import { U as H } from "../../../index-Da0r8FX2.js";
|
|
25
25
|
import "../../../context/dialogContext.js";
|
|
26
26
|
import "./countryList.js";
|
|
27
27
|
import "../../../Box-B0YSYLco.js";
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as s, useEffect as
|
|
1
|
+
import { jsxs as m, Fragment as k, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s, useEffect as d } from "react";
|
|
3
3
|
import { h as J } from "../../../moment-h96o7c8I.js";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as M } from "../../../react-redux-C7I9-1M6.js";
|
|
5
5
|
import { removeExtraSpace as i } from "../../../util/functions.js";
|
|
6
|
-
import { nameRegex as
|
|
7
|
-
import "../../../constants-
|
|
8
|
-
import { r as
|
|
9
|
-
import { c as
|
|
10
|
-
import
|
|
11
|
-
import { useSnackBarContext as
|
|
12
|
-
import
|
|
6
|
+
import { nameRegex as Q } from "../../../util/regex.js";
|
|
7
|
+
import "../../../constants-t7n9qCW3.js";
|
|
8
|
+
import { r as U, u as V } from "../../../kyc-D9xahfH9.js";
|
|
9
|
+
import { c as X } from "../../../countries-BVn1FubK.js";
|
|
10
|
+
import $ from "../../Wallet/Shared/Input/index.js";
|
|
11
|
+
import { useSnackBarContext as ee } from "../../../context/snackBarContext.js";
|
|
12
|
+
import te from "../../Wallet/Shared/appButton.js";
|
|
13
|
+
import re from "../../../hooks/useEverestDispatch.js";
|
|
13
14
|
import { T as I } from "../../../Typography-pAaje37G.js";
|
|
14
15
|
import { B as a } from "../../../Box-B0YSYLco.js";
|
|
15
16
|
import { F as ae } from "../../../FormControl-RtZDQMdA.js";
|
|
16
17
|
import { S as se } from "../../../Select-CB5yWmyn.js";
|
|
17
18
|
import { M as z } from "../../../MenuItem-DUdYOJr4.js";
|
|
18
19
|
import { C as oe } from "../../../CircularProgress-xZA3lvba.js";
|
|
19
|
-
const
|
|
20
|
-
onComplete:
|
|
21
|
-
inputComponent:
|
|
22
|
-
buttonComponent:
|
|
20
|
+
const Ae = ({
|
|
21
|
+
onComplete: E,
|
|
22
|
+
inputComponent: F,
|
|
23
|
+
buttonComponent: K
|
|
23
24
|
}) => {
|
|
24
|
-
const o =
|
|
25
|
+
const o = F ?? $, Y = K ?? te, p = re(), c = M(
|
|
25
26
|
(e) => e.user.profile
|
|
26
|
-
), n = M((e) => e.user.kyc), g = n.loader, f = n.error, { showAlertMessage: r } =
|
|
27
|
-
|
|
28
|
-
p(
|
|
29
|
-
}, []),
|
|
27
|
+
), n = M((e) => e.user.kyc), g = n.loader, f = n.error, { showAlertMessage: r } = ee(), [v, y] = s(""), [C, b] = s(""), [u, L] = s(""), [W, R] = s(""), [P, j] = s(""), [S, T] = s(""), [N, Z] = s(""), [q, w] = s(""), [h, O] = s("");
|
|
28
|
+
d(() => () => {
|
|
29
|
+
p(U());
|
|
30
|
+
}, []), d(() => {
|
|
30
31
|
f && r({ message: f });
|
|
31
|
-
}, [f]),
|
|
32
|
+
}, [f]), d(() => {
|
|
32
33
|
n.minimal && (r({
|
|
33
34
|
message: "Minimal KYC has been done successfully.",
|
|
34
35
|
type: "success"
|
|
35
|
-
}),
|
|
36
|
-
}, [n]),
|
|
36
|
+
}), E());
|
|
37
|
+
}, [n]), d(() => {
|
|
37
38
|
y(c.firstName), b(c.lastName);
|
|
38
39
|
}, [c]);
|
|
39
40
|
const G = () => {
|
|
@@ -76,7 +77,7 @@ const xe = ({
|
|
|
76
77
|
r({ message: "Please provide country" });
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
|
-
g || p(
|
|
80
|
+
g || p(V({
|
|
80
81
|
personal_information: {
|
|
81
82
|
first_name: e,
|
|
82
83
|
last_name: l,
|
|
@@ -92,9 +93,9 @@ const xe = ({
|
|
|
92
93
|
}
|
|
93
94
|
}));
|
|
94
95
|
}, x = (e, l) => {
|
|
95
|
-
e ?
|
|
96
|
+
e ? Q.test(e) && l(e) : l("");
|
|
96
97
|
};
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ m(k, { children: [
|
|
98
99
|
/* @__PURE__ */ t(I, { color: "primary", variant: "lg", fontWeight: 600, children: /* @__PURE__ */ t("b", { children: "Personal Details" }) }),
|
|
99
100
|
/* @__PURE__ */ t(a, { mt: 2, children: /* @__PURE__ */ t(
|
|
100
101
|
o,
|
|
@@ -195,7 +196,7 @@ const xe = ({
|
|
|
195
196
|
required: !0
|
|
196
197
|
}
|
|
197
198
|
) }),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ m(a, { mt: 2, children: [
|
|
199
200
|
/* @__PURE__ */ t(
|
|
200
201
|
"label",
|
|
201
202
|
{
|
|
@@ -208,7 +209,7 @@ const xe = ({
|
|
|
208
209
|
children: "Country *"
|
|
209
210
|
}
|
|
210
211
|
),
|
|
211
|
-
/* @__PURE__ */ t(ae, { fullWidth: !0, children: /* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ t(ae, { fullWidth: !0, children: /* @__PURE__ */ m(
|
|
212
213
|
se,
|
|
213
214
|
{
|
|
214
215
|
value: h,
|
|
@@ -216,17 +217,17 @@ const xe = ({
|
|
|
216
217
|
onChange: (e) => O(e.target.value),
|
|
217
218
|
children: [
|
|
218
219
|
/* @__PURE__ */ t(z, { value: "", children: "Select Country" }),
|
|
219
|
-
|
|
220
|
+
X.map((e) => /* @__PURE__ */ t(z, { value: e.alpha3, children: e.name }, e.alpha3))
|
|
220
221
|
]
|
|
221
222
|
}
|
|
222
223
|
) })
|
|
223
224
|
] }),
|
|
224
|
-
/* @__PURE__ */ t(a, { mt: 4, children: /* @__PURE__ */ t(
|
|
225
|
+
/* @__PURE__ */ t(a, { mt: 4, children: /* @__PURE__ */ t(Y, { onClick: G, fullWidth: !0, children: /* @__PURE__ */ t("strong", { children: g ? /* @__PURE__ */ m(k, { children: [
|
|
225
226
|
/* @__PURE__ */ t(oe, { size: 15, color: "inherit" }),
|
|
226
227
|
" Processing..."
|
|
227
228
|
] }) : "Submit" }) }) })
|
|
228
229
|
] });
|
|
229
230
|
};
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
Ae as default
|
|
232
233
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DialogOptions } from '../../../hooks/useDialog/types';
|
|
3
|
+
import { FEATURE_EWALLET, FEATURE_VIRTUAL_IBAN } from '../../../util/constants';
|
|
3
4
|
import { BankState } from 'everest-npm-api';
|
|
4
5
|
interface CreateIbanProps {
|
|
5
6
|
openDialog: (options: DialogOptions) => void;
|
|
@@ -9,6 +10,7 @@ interface CreateIbanProps {
|
|
|
9
10
|
navigate: (path: string) => void;
|
|
10
11
|
currency: React.MutableRefObject<string>;
|
|
11
12
|
setIbanCurrency: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
from: typeof FEATURE_EWALLET | typeof FEATURE_VIRTUAL_IBAN;
|
|
12
14
|
}
|
|
13
15
|
declare const CreateIban: React.FC<CreateIbanProps>;
|
|
14
16
|
export default CreateIban;
|