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,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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { DIALOG_ERROR_ICON as c, DIALOG_SUCCESS_ICON as
|
|
5
|
-
import { C as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { a as
|
|
1
|
+
import { jsx as a, jsxs as o, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as V } from "react";
|
|
3
|
+
import { u as y } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { FEATURE_EWALLET as g, DIALOG_ERROR_ICON as c, DIALOG_SUCCESS_ICON as k } from "../../../util/constants.js";
|
|
5
|
+
import { C as D } from "../../../Close-CNwiMz_O.js";
|
|
6
|
+
import M from "../../Shared/transition.js";
|
|
7
|
+
import O from "../Shared/CardPayment/index.js";
|
|
8
|
+
import { a as F, af as G, c as K, K as Y } from "../../../constants-t7n9qCW3.js";
|
|
9
9
|
import "../../../index-DlQqWbXG.js";
|
|
10
10
|
import "../Shared/appButton.js";
|
|
11
11
|
import "../../../hoc/withThemeProvider.js";
|
|
12
12
|
import "../Shared/Auth/otpForm.js";
|
|
13
|
-
import { useSnackBarContext as
|
|
13
|
+
import { useSnackBarContext as b } from "../../../context/snackBarContext.js";
|
|
14
14
|
import "../../../util/conversions.js";
|
|
15
15
|
import "../../../index-CAoLi5Qq.js";
|
|
16
16
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
@@ -21,15 +21,15 @@ import "../../../index.esm-BsMAMhYW.js";
|
|
|
21
21
|
import "../../../web3-u4qDZYpo.js";
|
|
22
22
|
import "../../../context/dialogContext.js";
|
|
23
23
|
import "../../../index-ceeCtFuh.js";
|
|
24
|
-
import { B
|
|
25
|
-
import { C as
|
|
24
|
+
import { B } from "../../../Box-B0YSYLco.js";
|
|
25
|
+
import { C as W } from "../../../CircularProgress-xZA3lvba.js";
|
|
26
26
|
import { T as h } from "../../../Typography-pAaje37G.js";
|
|
27
|
-
import { D as
|
|
28
|
-
import { D as
|
|
29
|
-
import { I as
|
|
30
|
-
import { S as
|
|
27
|
+
import { D as H, a as z } from "../../../DialogContent-BMwlOnbW.js";
|
|
28
|
+
import { D as $ } from "../../../DialogTitle-CfS0bb2K.js";
|
|
29
|
+
import { I as j } from "../../../IconButton-DHm-hucF.js";
|
|
30
|
+
import { S as Z } from "../../../Select-CB5yWmyn.js";
|
|
31
31
|
import { M as u } from "../../../MenuItem-DUdYOJr4.js";
|
|
32
|
-
const
|
|
32
|
+
const q = [
|
|
33
33
|
{
|
|
34
34
|
alpha3: "AUT",
|
|
35
35
|
alpha2: "AT",
|
|
@@ -195,17 +195,18 @@ const Z = [
|
|
|
195
195
|
alpha2: "GB",
|
|
196
196
|
name: "United Kingdom"
|
|
197
197
|
}
|
|
198
|
-
],
|
|
198
|
+
], Aa = ({
|
|
199
199
|
openDialog: t,
|
|
200
|
-
checkoutSdkKey:
|
|
201
|
-
paymentRequest:
|
|
202
|
-
iban:
|
|
203
|
-
navigate:
|
|
200
|
+
checkoutSdkKey: E,
|
|
201
|
+
paymentRequest: T,
|
|
202
|
+
iban: d,
|
|
203
|
+
navigate: I,
|
|
204
204
|
currency: r,
|
|
205
|
-
setIbanCurrency:
|
|
205
|
+
setIbanCurrency: f,
|
|
206
|
+
from: C
|
|
206
207
|
}) => {
|
|
207
|
-
const { showAlertMessage:
|
|
208
|
-
if (!
|
|
208
|
+
const { showAlertMessage: S } = b(), s = y((e) => e.user), i = s.profile, x = y((e) => e.order), L = i.loader, N = s.kyc.loader, p = s.kyc.status, w = i.email, [A, m] = _(!1), n = V(!1), R = () => {
|
|
209
|
+
if (!w) {
|
|
209
210
|
t({
|
|
210
211
|
title: "No Email",
|
|
211
212
|
message: "Please contact support to update your email address.",
|
|
@@ -219,7 +220,7 @@ const Z = [
|
|
|
219
220
|
});
|
|
220
221
|
return;
|
|
221
222
|
}
|
|
222
|
-
if (p ===
|
|
223
|
+
if (p === F || p === G) {
|
|
223
224
|
t({
|
|
224
225
|
title: "Under Review",
|
|
225
226
|
message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
|
|
@@ -230,7 +231,7 @@ const Z = [
|
|
|
230
231
|
});
|
|
231
232
|
return;
|
|
232
233
|
}
|
|
233
|
-
if (p !==
|
|
234
|
+
if (p !== K && p !== Y) {
|
|
234
235
|
t({
|
|
235
236
|
title: "Verifying",
|
|
236
237
|
message: "We are gathering information, and will provision your Virtual IBAN shortly.",
|
|
@@ -238,12 +239,12 @@ const Z = [
|
|
|
238
239
|
height: "400px",
|
|
239
240
|
confirmButtonText: "Continue",
|
|
240
241
|
cancelButtonText: "Cancel",
|
|
241
|
-
onConfirm: () =>
|
|
242
|
+
onConfirm: () => I("/kyc")
|
|
242
243
|
});
|
|
243
244
|
return;
|
|
244
245
|
}
|
|
245
|
-
if (!
|
|
246
|
-
(
|
|
246
|
+
if (!q.find(
|
|
247
|
+
(l) => l.alpha3 === i.residentialAddress.country
|
|
247
248
|
)) {
|
|
248
249
|
t({
|
|
249
250
|
title: "Not Allowed",
|
|
@@ -270,14 +271,14 @@ const Z = [
|
|
|
270
271
|
}
|
|
271
272
|
t({
|
|
272
273
|
title: "Payment",
|
|
273
|
-
message: /* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */ a(h, { children: "You will be charged $
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
|
|
274
|
+
message: /* @__PURE__ */ o(B, { children: [
|
|
275
|
+
/* @__PURE__ */ a(h, { children: C === g ? "You will be charged $2 per annum for creating an E-Wallet. Please select the currency for the E-Wallet and proceed." : "You will be charged $12 per annum for creating a Virtual IBAN. Please select the currency for the Virtual IBAN and proceed." }),
|
|
276
|
+
/* @__PURE__ */ o(
|
|
277
|
+
Z,
|
|
277
278
|
{
|
|
278
279
|
defaultValue: "",
|
|
279
|
-
onChange: (
|
|
280
|
-
r.current =
|
|
280
|
+
onChange: (l) => {
|
|
281
|
+
r.current = l.target.value, f(l.target.value);
|
|
281
282
|
},
|
|
282
283
|
style: { marginTop: "10px" },
|
|
283
284
|
displayEmpty: !0,
|
|
@@ -290,75 +291,82 @@ const Z = [
|
|
|
290
291
|
}
|
|
291
292
|
)
|
|
292
293
|
] }),
|
|
293
|
-
icon:
|
|
294
|
+
icon: k,
|
|
294
295
|
width: "575px",
|
|
295
296
|
confirmButtonText: "Make Payment",
|
|
296
297
|
cancelButtonShow: !0,
|
|
297
298
|
cancelButtonText: "Cancel",
|
|
298
|
-
closeModalConfirm:
|
|
299
|
-
onConfirm:
|
|
299
|
+
closeModalConfirm: P,
|
|
300
|
+
onConfirm: U,
|
|
300
301
|
onCancel: () => {
|
|
301
|
-
r.current = "",
|
|
302
|
+
r.current = "", f(""), n.current = !1;
|
|
302
303
|
},
|
|
303
304
|
onClose: () => {
|
|
304
305
|
r.current = "", n.current = !1;
|
|
305
306
|
}
|
|
306
307
|
});
|
|
307
|
-
},
|
|
308
|
+
}, P = () => !n.current, U = () => {
|
|
308
309
|
if (n.current = !1, !r.current)
|
|
309
|
-
return n.current = !0,
|
|
310
|
+
return n.current = !0, S({
|
|
310
311
|
message: "Please select currency for Virtual IBAN."
|
|
311
312
|
}), !1;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
if (d.data.length > 0) {
|
|
314
|
+
const e = d.data.find(
|
|
315
|
+
(l) => l.currency === r.current
|
|
316
|
+
);
|
|
317
|
+
if (e != null && e.id)
|
|
318
|
+
return n.current = !0, S({
|
|
319
|
+
message: `You already have the ${r.current} Virtual IBAN.`
|
|
320
|
+
}), !1;
|
|
321
|
+
}
|
|
317
322
|
m(!0);
|
|
318
323
|
};
|
|
319
|
-
return
|
|
324
|
+
return L || N ? /* @__PURE__ */ a(B, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(W, { color: "primary", size: 50 }) }) : /* @__PURE__ */ o(v, { children: [
|
|
320
325
|
/* @__PURE__ */ a(
|
|
321
326
|
h,
|
|
322
327
|
{
|
|
323
|
-
onClick:
|
|
328
|
+
onClick: R,
|
|
324
329
|
component: "span",
|
|
325
330
|
color: "primary",
|
|
326
331
|
sx: { cursor: "pointer" },
|
|
327
|
-
children: /* @__PURE__ */
|
|
332
|
+
children: /* @__PURE__ */ o("span", { className: "text-underline", children: [
|
|
333
|
+
"+ Add ",
|
|
334
|
+
C === g ? "E-Wallet" : "Virtual IBAN"
|
|
335
|
+
] })
|
|
328
336
|
}
|
|
329
337
|
),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
|
|
338
|
+
/* @__PURE__ */ o(
|
|
339
|
+
H,
|
|
332
340
|
{
|
|
333
|
-
open:
|
|
341
|
+
open: A,
|
|
334
342
|
fullWidth: !0,
|
|
335
343
|
onClose: () => m(!1),
|
|
336
|
-
TransitionComponent:
|
|
344
|
+
TransitionComponent: M,
|
|
337
345
|
children: [
|
|
338
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ o($, { className: "buy-modal-text-color", children: [
|
|
339
347
|
/* @__PURE__ */ a(h, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
|
|
340
348
|
/* @__PURE__ */ a(
|
|
341
|
-
|
|
349
|
+
j,
|
|
342
350
|
{
|
|
343
351
|
"aria-label": "close",
|
|
344
352
|
onClick: () => m(!1),
|
|
345
353
|
className: "menu-buttons",
|
|
346
|
-
children: /* @__PURE__ */ a(
|
|
354
|
+
children: /* @__PURE__ */ a(D, {})
|
|
347
355
|
}
|
|
348
356
|
)
|
|
349
357
|
] }),
|
|
350
358
|
/* @__PURE__ */ a(
|
|
351
|
-
|
|
359
|
+
z,
|
|
352
360
|
{
|
|
353
361
|
className: "bank-modal-content",
|
|
354
362
|
sx: { padding: "50px" },
|
|
355
363
|
dividers: !0,
|
|
356
364
|
children: /* @__PURE__ */ a(
|
|
357
|
-
|
|
365
|
+
O,
|
|
358
366
|
{
|
|
359
|
-
checkoutKey:
|
|
360
|
-
orderData:
|
|
361
|
-
initPaymentRequest:
|
|
367
|
+
checkoutKey: E,
|
|
368
|
+
orderData: x,
|
|
369
|
+
initPaymentRequest: T,
|
|
362
370
|
backBtnFunc: () => m(!1)
|
|
363
371
|
}
|
|
364
372
|
)
|
|
@@ -370,5 +378,5 @@ const Z = [
|
|
|
370
378
|
] });
|
|
371
379
|
};
|
|
372
380
|
export {
|
|
373
|
-
|
|
381
|
+
Aa as default
|
|
374
382
|
};
|