everest-npm-features 0.0.34 → 0.0.36
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-CcX9hutu.js → PlayArrow-KBDRjTbR.js} +1 -1
- package/dist/assets/documents.css +1 -1
- package/dist/{auth-BzJj8HQz.js → auth-BQ4bZOAL.js} +3 -3
- package/dist/{bank-CCdUsDB2.js → bank-Bz7oos87.js} +6 -6
- package/dist/components/RocketRamp/MinimalKyc/form.js +3 -3
- 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 +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- 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 +6 -6
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- 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 +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- 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 +2 -2
- package/dist/components/Shared/FullKyc/edd.d.ts +1 -1
- package/dist/components/Shared/FullKyc/edd.js +65 -60
- package/dist/components/Shared/FullKyc/index.js +3 -3
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
- package/dist/components/Shared/FullKyc/types.d.ts +1 -0
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +37 -33
- package/dist/components/Wallet/Account/iban.js +18 -18
- package/dist/components/Wallet/Account/index.js +3 -3
- package/dist/components/Wallet/Account/sendIban.js +7 -7
- package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/edd.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/index.js +115 -103
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +2 -2
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +12 -12
- package/dist/components/Wallet/Portfolio/index.js +4 -4
- package/dist/components/Wallet/Profile/documents.js +2 -2
- package/dist/components/Wallet/Profile/index.js +114 -104
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +25 -25
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/addBank.js +3 -3
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +4 -4
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +4 -4
- package/dist/components/Wallet/Swap/form.js +5 -5
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-B1fWUUck.js → constants-rDP6jwIs.js} +147 -143
- package/dist/{cryptoAssets-BU3EHVIY.js → cryptoAssets-BXjfidU4.js} +1 -1
- package/dist/{documents-PylmjRbk.js → documents-CF1bpppV.js} +134 -133
- package/dist/{index-DjWC9DGk.js → index-0PiVFV1G.js} +6 -6
- package/dist/{index-DUCRi3yf.js → index-B9MyZ0sJ.js} +14 -14
- package/dist/{index-BW-RJYiq.js → index-Btrmgb1g.js} +30 -29
- package/dist/{index-CQ-u6bTN.js → index-CdfFs6U2.js} +16 -16
- package/dist/{index-Dka1TfUt.js → index-JY7R8k4h.js} +4 -4
- package/dist/{index-OSl1NZiT.js → index-PitHP3ul.js} +5 -5
- package/dist/{index-BJsAyUhP.js → index-aLtOG-sf.js} +18 -18
- package/dist/{kyc-CSbzb5MW.js → kyc-ChoR-OWg.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BtLfPFH9.js → order-CTEvMHv4.js} +3 -3
- package/dist/{stake-C7IQSI0J.js → stake-nzM9DW-r.js} +1 -1
- package/dist/util/constants.d.ts +2 -1
- package/dist/util/constants.js +32 -31
- package/dist/{wallet-Bq1E67kO.js → wallet-DZ3-OqYH.js} +8 -8
- package/package.json +2 -2
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as p, Fragment as u, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useState as q, useEffect as L, createRef as W } from "react";
|
|
3
|
+
import j from "../../Wallet/Shared/Input/index.js";
|
|
4
|
+
import K from "../../Wallet/Shared/appButton.js";
|
|
5
5
|
import "../../../hoc/withThemeProvider.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as v } from "../../../react-redux-B4BZippc.js";
|
|
7
7
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import { a as
|
|
10
|
-
import { useSnackBarContext as
|
|
8
|
+
import "../../../constants-rDP6jwIs.js";
|
|
9
|
+
import { a as H } from "../../../kyc-ChoR-OWg.js";
|
|
10
|
+
import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
|
|
11
11
|
import "../../../util/conversions.js";
|
|
12
12
|
import "../../../index-CAoLi5Qq.js";
|
|
13
|
-
import { C as
|
|
13
|
+
import { C as $ } from "../../../Close-CNwiMz_O.js";
|
|
14
14
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
15
15
|
import "../transition.js";
|
|
16
|
+
import "../../../tooltip-3UvETWtS.js";
|
|
16
17
|
import "../../Wallet/Shared/pin.js";
|
|
17
18
|
import "../../../moment-h96o7c8I.js";
|
|
18
|
-
import "../../../tooltip-3UvETWtS.js";
|
|
19
19
|
import "../../../index.esm-BsMAMhYW.js";
|
|
20
20
|
import "../../../web3-u4qDZYpo.js";
|
|
21
21
|
import "../../../index-B8QKlEgj.js";
|
|
22
22
|
import "../../../index-ceeCtFuh.js";
|
|
23
|
-
import { C as
|
|
23
|
+
import { C as z, a as Y } from "../../../FileDownload-Bt3R_NBr.js";
|
|
24
24
|
import "../../../context/dialogContext.js";
|
|
25
|
-
import { B as
|
|
26
|
-
import { I as
|
|
27
|
-
import { I as
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
import { B as x } from "../../../Box-B0YSYLco.js";
|
|
26
|
+
import { I as G } from "../../../InputAdornment-DMiED3JH.js";
|
|
27
|
+
import { I as c } from "../../../IconButton-DHm-hucF.js";
|
|
28
|
+
import { C as J } from "../../../CircularProgress-xZA3lvba.js";
|
|
29
|
+
const Fe = ({
|
|
30
|
+
inputComponent: C,
|
|
31
|
+
buttonComponent: E,
|
|
32
|
+
eddData: r,
|
|
32
33
|
kycStoreData: l,
|
|
33
|
-
setEddData:
|
|
34
|
-
processKyc:
|
|
34
|
+
setEddData: a,
|
|
35
|
+
processKyc: F,
|
|
36
|
+
processLoader: _
|
|
35
37
|
}) => {
|
|
36
|
-
const T =
|
|
38
|
+
const T = C ?? j, A = E ?? K, R = {
|
|
37
39
|
BANK_STATEMENT: {
|
|
38
|
-
text:
|
|
39
|
-
file:
|
|
40
|
-
preview:
|
|
40
|
+
text: r.BANK_STATEMENT.text,
|
|
41
|
+
file: r.BANK_STATEMENT.file,
|
|
42
|
+
preview: r.BANK_STATEMENT.preview,
|
|
41
43
|
label: "Bank Statement",
|
|
42
44
|
required: !0,
|
|
43
45
|
multiFile: !1
|
|
44
46
|
},
|
|
45
47
|
PROOF_OF_INCOME: {
|
|
46
|
-
text:
|
|
47
|
-
file:
|
|
48
|
-
preview:
|
|
48
|
+
text: r.PROOF_OF_INCOME.text,
|
|
49
|
+
file: r.PROOF_OF_INCOME.file,
|
|
50
|
+
preview: r.PROOF_OF_INCOME.preview,
|
|
49
51
|
label: "Proof of Income",
|
|
50
52
|
required: !0,
|
|
51
53
|
multiFile: !1
|
|
52
54
|
},
|
|
53
55
|
SOURCE_OF_WEALTH: {
|
|
54
|
-
text:
|
|
55
|
-
file:
|
|
56
|
-
preview:
|
|
56
|
+
text: r.SOURCE_OF_WEALTH.text,
|
|
57
|
+
file: r.SOURCE_OF_WEALTH.file,
|
|
58
|
+
preview: r.SOURCE_OF_WEALTH.preview,
|
|
57
59
|
label: "Source of Wealth",
|
|
58
60
|
required: !0,
|
|
59
61
|
multiFile: !1
|
|
60
62
|
}
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
+
}, I = v(), { showAlertMessage: d } = V(), w = g(null), [o, m] = q(R);
|
|
64
|
+
L(() => {
|
|
63
65
|
if (l != null && l.uploadData.fileUrl && (l != null && l.uploadData.fileType)) {
|
|
64
66
|
const i = l == null ? void 0 : l.uploadData.fileType;
|
|
65
67
|
m((e) => {
|
|
@@ -76,11 +78,11 @@ const ge = ({
|
|
|
76
78
|
});
|
|
77
79
|
}
|
|
78
80
|
}, [l == null ? void 0 : l.uploadData.fileUrl, l == null ? void 0 : l.uploadData.fileType]);
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
),
|
|
82
|
-
for (const i of Object.keys(
|
|
83
|
-
const e =
|
|
81
|
+
const h = Object.keys(r), O = g(
|
|
82
|
+
h.reduce((i, e) => (i[e] = W(), i), {})
|
|
83
|
+
), N = () => {
|
|
84
|
+
for (const i of Object.keys(o)) {
|
|
85
|
+
const e = o[i];
|
|
84
86
|
if (e.required) {
|
|
85
87
|
const t = e.text.trim() !== "", s = e.file.length > 0;
|
|
86
88
|
if (!t)
|
|
@@ -94,61 +96,61 @@ const ge = ({
|
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
return !0;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
},
|
|
99
|
+
}, U = () => {
|
|
100
|
+
N() && (a(o), F(o));
|
|
101
|
+
}, b = (i, e) => {
|
|
100
102
|
const t = i.target.files;
|
|
101
103
|
!t || t.length === 0 || Array.from(t).map((s) => {
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
const
|
|
104
|
+
const B = URL.createObjectURL(s);
|
|
105
|
+
I(H({ file: s, type: e })), m((f) => {
|
|
106
|
+
const P = f[e].file || [], M = f[e].text ? f[e].text.split(", ") : [];
|
|
105
107
|
return {
|
|
106
108
|
...f,
|
|
107
109
|
[e]: {
|
|
108
110
|
...f[e],
|
|
109
111
|
text: [...M, s.name].join(", "),
|
|
110
|
-
preview: [...
|
|
112
|
+
preview: [...P, B]
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
115
|
});
|
|
114
116
|
});
|
|
115
117
|
};
|
|
116
|
-
return /* @__PURE__ */ p(
|
|
117
|
-
/* @__PURE__ */ n("form", { style: { height: "350px", overflowY: "scroll" }, ref:
|
|
118
|
+
return /* @__PURE__ */ p(u, { children: [
|
|
119
|
+
/* @__PURE__ */ n("form", { style: { height: "350px", overflowY: "scroll" }, ref: w, children: h.map((i) => /* @__PURE__ */ p(x, { mt: 2, children: [
|
|
118
120
|
/* @__PURE__ */ n(
|
|
119
121
|
T,
|
|
120
122
|
{
|
|
121
|
-
label:
|
|
122
|
-
value:
|
|
123
|
+
label: o[i].label,
|
|
124
|
+
value: o[i].text,
|
|
123
125
|
onChange: (e) => m((t) => ({
|
|
124
126
|
...t,
|
|
125
127
|
[i]: { ...t[i], text: e.target.value }
|
|
126
128
|
})),
|
|
127
129
|
slotProps: {
|
|
128
130
|
input: {
|
|
129
|
-
endAdornment: /* @__PURE__ */ n(
|
|
131
|
+
endAdornment: /* @__PURE__ */ n(G, { position: "end", children: o[i].file.length > 0 ? /* @__PURE__ */ p(u, { children: [
|
|
130
132
|
/* @__PURE__ */ n(
|
|
131
|
-
|
|
133
|
+
c,
|
|
132
134
|
{
|
|
133
135
|
onClick: () => m((e) => ({
|
|
134
136
|
...e,
|
|
135
137
|
[i]: { ...e[i], file: [] }
|
|
136
138
|
})),
|
|
137
139
|
edge: "end",
|
|
138
|
-
children: /* @__PURE__ */ n(
|
|
140
|
+
children: /* @__PURE__ */ n($, {})
|
|
139
141
|
}
|
|
140
142
|
),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
o[i].preview.map((e, t) => /* @__PURE__ */ n(
|
|
144
|
+
c,
|
|
143
145
|
{
|
|
144
146
|
onClick: () => window.open(e),
|
|
145
147
|
edge: "end",
|
|
146
|
-
children: /* @__PURE__ */ n(
|
|
148
|
+
children: /* @__PURE__ */ n(z, {})
|
|
147
149
|
},
|
|
148
150
|
t
|
|
149
151
|
))
|
|
150
152
|
] }) : /* @__PURE__ */ n(
|
|
151
|
-
|
|
153
|
+
c,
|
|
152
154
|
{
|
|
153
155
|
onClick: () => {
|
|
154
156
|
var e, t;
|
|
@@ -160,7 +162,7 @@ const ge = ({
|
|
|
160
162
|
) })
|
|
161
163
|
}
|
|
162
164
|
},
|
|
163
|
-
required:
|
|
165
|
+
required: o[i].required
|
|
164
166
|
}
|
|
165
167
|
),
|
|
166
168
|
/* @__PURE__ */ n(
|
|
@@ -169,16 +171,19 @@ const ge = ({
|
|
|
169
171
|
ref: O.current[i],
|
|
170
172
|
name: "regStatusFile",
|
|
171
173
|
type: "file",
|
|
172
|
-
onChange: (e) =>
|
|
174
|
+
onChange: (e) => b(e, i),
|
|
173
175
|
accept: "application/pdf, image/*",
|
|
174
|
-
multiple:
|
|
176
|
+
multiple: o[i].multiFile,
|
|
175
177
|
hidden: !0
|
|
176
178
|
}
|
|
177
179
|
)
|
|
178
180
|
] }, i)) }),
|
|
179
|
-
/* @__PURE__ */ n(
|
|
181
|
+
/* @__PURE__ */ n(x, { mt: 3.5, children: /* @__PURE__ */ n(A, { fullWidth: !0, onClick: U, children: /* @__PURE__ */ n("strong", { children: _ ? /* @__PURE__ */ p(u, { children: [
|
|
182
|
+
/* @__PURE__ */ n(J, { size: 15, color: "inherit" }),
|
|
183
|
+
" Processing..."
|
|
184
|
+
] }) : /* @__PURE__ */ n(u, { children: "Submit" }) }) }) })
|
|
180
185
|
] });
|
|
181
186
|
};
|
|
182
187
|
export {
|
|
183
|
-
|
|
188
|
+
Fe as default
|
|
184
189
|
};
|
|
@@ -3,10 +3,10 @@ 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 s, I as C, c as D, b as I, a as O, F as P } from "../../../index-
|
|
6
|
+
import { E as s, I as C, c as D, b as I, a as O, F as P } from "../../../index-Btrmgb1g.js";
|
|
7
7
|
import "./pep.js";
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import "../../../kyc-
|
|
8
|
+
import "../../../constants-rDP6jwIs.js";
|
|
9
|
+
import "../../../kyc-ChoR-OWg.js";
|
|
10
10
|
import "../../../react-redux-B4BZippc.js";
|
|
11
11
|
import "./edd.js";
|
|
12
12
|
export {
|
|
@@ -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 {
|
|
6
|
+
import { d as B, f as _ } from "../../../constants-rDP6jwIs.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";
|
|
@@ -4,21 +4,21 @@ import "../../Wallet/Shared/appButton.js";
|
|
|
4
4
|
import "../../../hoc/withThemeProvider.js";
|
|
5
5
|
import "../../Wallet/Shared/Input/index.js";
|
|
6
6
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
7
|
-
import "../../../constants-
|
|
7
|
+
import "../../../constants-rDP6jwIs.js";
|
|
8
8
|
import "../../../context/snackBarContext.js";
|
|
9
9
|
import "../../../util/conversions.js";
|
|
10
10
|
import "../../../index-CAoLi5Qq.js";
|
|
11
11
|
import "../../Wallet/Shared/step.js";
|
|
12
12
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
13
13
|
import "../transition.js";
|
|
14
|
+
import "../../../tooltip-3UvETWtS.js";
|
|
14
15
|
import "../../Wallet/Shared/pin.js";
|
|
15
16
|
import "../../../moment-h96o7c8I.js";
|
|
16
|
-
import "../../../tooltip-3UvETWtS.js";
|
|
17
17
|
import "../../../index.esm-BsMAMhYW.js";
|
|
18
18
|
import "../../../web3-u4qDZYpo.js";
|
|
19
19
|
import "../../../index-B8QKlEgj.js";
|
|
20
20
|
import "../../../index-ceeCtFuh.js";
|
|
21
|
-
import { P as z } from "../../../index-
|
|
21
|
+
import { P as z } from "../../../index-Btrmgb1g.js";
|
|
22
22
|
import "../../../context/dialogContext.js";
|
|
23
23
|
import "./countryList.js";
|
|
24
24
|
import "../../../Box-B0YSYLco.js";
|
|
@@ -5,23 +5,23 @@ import "../../Wallet/Shared/appButton.js";
|
|
|
5
5
|
import "../../../hoc/withThemeProvider.js";
|
|
6
6
|
import "../../../react-redux-B4BZippc.js";
|
|
7
7
|
import "../../Wallet/Shared/Auth/otpForm.js";
|
|
8
|
-
import "../../../constants-
|
|
9
|
-
import "../../../kyc-
|
|
8
|
+
import "../../../constants-rDP6jwIs.js";
|
|
9
|
+
import "../../../kyc-ChoR-OWg.js";
|
|
10
10
|
import "../../../context/snackBarContext.js";
|
|
11
11
|
import "../../../util/conversions.js";
|
|
12
12
|
import "../../../index-CAoLi5Qq.js";
|
|
13
13
|
import "../../Wallet/Shared/step.js";
|
|
14
14
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
15
15
|
import "../transition.js";
|
|
16
|
+
import "../../../tooltip-3UvETWtS.js";
|
|
16
17
|
import "../../Wallet/Shared/pin.js";
|
|
17
18
|
import "../../../moment-h96o7c8I.js";
|
|
18
|
-
import "../../../tooltip-3UvETWtS.js";
|
|
19
19
|
import "../../../index.esm-BsMAMhYW.js";
|
|
20
20
|
import "../../../countries-BVn1FubK.js";
|
|
21
21
|
import "../../../web3-u4qDZYpo.js";
|
|
22
22
|
import "../../../index-B8QKlEgj.js";
|
|
23
23
|
import "../../../index-ceeCtFuh.js";
|
|
24
|
-
import { U as H } from "../../../index-
|
|
24
|
+
import { U as H } from "../../../index-Btrmgb1g.js";
|
|
25
25
|
import "../../../context/dialogContext.js";
|
|
26
26
|
import "./countryList.js";
|
|
27
27
|
import "../../../Box-B0YSYLco.js";
|
|
@@ -4,8 +4,8 @@ import { h as J } from "../../../moment-h96o7c8I.js";
|
|
|
4
4
|
import { u as Q, a as M } from "../../../react-redux-B4BZippc.js";
|
|
5
5
|
import { removeExtraSpace as i } from "../../../util/functions.js";
|
|
6
6
|
import { nameRegex as U } from "../../../util/regex.js";
|
|
7
|
-
import "../../../constants-
|
|
8
|
-
import { r as V, u as X } from "../../../kyc-
|
|
7
|
+
import "../../../constants-rDP6jwIs.js";
|
|
8
|
+
import { r as V, u as X } from "../../../kyc-ChoR-OWg.js";
|
|
9
9
|
import { c as $ } from "../../../countries-BVn1FubK.js";
|
|
10
10
|
import ee from "../../Wallet/Shared/Input/index.js";
|
|
11
11
|
import { useSnackBarContext as te } from "../../../context/snackBarContext.js";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as a, jsxs as i, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { useState as L } from "react";
|
|
3
3
|
import { a as p } from "../../../react-redux-B4BZippc.js";
|
|
4
4
|
import { DIALOG_ERROR_ICON as m, DIALOG_SUCCESS_ICON as g } from "../../../util/constants.js";
|
|
5
5
|
import { C as B } from "../../../Close-CNwiMz_O.js";
|
|
6
|
-
import
|
|
6
|
+
import E from "../../Shared/transition.js";
|
|
7
7
|
import x from "../Shared/CardPayment/index.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { D as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
8
|
+
import { a as N, ae as w, c as R, K as A } from "../../../constants-rDP6jwIs.js";
|
|
9
|
+
import P from "../Shared/appButton.js";
|
|
10
|
+
import { B as U } from "../../../Box-B0YSYLco.js";
|
|
11
|
+
import { C as _ } from "../../../CircularProgress-xZA3lvba.js";
|
|
12
|
+
import { D, a as k } from "../../../DialogContent-BMwlOnbW.js";
|
|
13
|
+
import { D as b } from "../../../DialogTitle-CfS0bb2K.js";
|
|
14
|
+
import { T as O } from "../../../Typography-pAaje37G.js";
|
|
15
|
+
import { I as v } from "../../../IconButton-DHm-hucF.js";
|
|
16
|
+
const F = [
|
|
16
17
|
{
|
|
17
18
|
alpha3: "AUT",
|
|
18
19
|
alpha2: "AT",
|
|
@@ -173,17 +174,17 @@ const v = [
|
|
|
173
174
|
alpha2: "CH",
|
|
174
175
|
name: "Switzerland"
|
|
175
176
|
}
|
|
176
|
-
],
|
|
177
|
+
], ea = ({
|
|
177
178
|
openDialog: e,
|
|
178
179
|
checkoutSdkKey: h,
|
|
179
180
|
paymentRequest: s,
|
|
180
181
|
iban: c,
|
|
181
182
|
navigate: u
|
|
182
183
|
}) => {
|
|
183
|
-
const
|
|
184
|
-
return f || C ? /* @__PURE__ */ a(
|
|
185
|
-
/* @__PURE__ */ a(
|
|
186
|
-
if (!
|
|
184
|
+
const r = p((o) => o.user), l = r.profile, d = p((o) => o.order), f = l.loader, C = r.kyc.loader, t = r.kyc.status, S = l.email, [y, n] = L(!1);
|
|
185
|
+
return f || C ? /* @__PURE__ */ a(U, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(_, { color: "primary", size: 50 }) }) : /* @__PURE__ */ i(T, { children: [
|
|
186
|
+
/* @__PURE__ */ a(P, { onClick: () => {
|
|
187
|
+
if (!S) {
|
|
187
188
|
e({
|
|
188
189
|
title: "No Email",
|
|
189
190
|
message: "Please contact support to update your email address.",
|
|
@@ -197,15 +198,18 @@ const v = [
|
|
|
197
198
|
});
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
|
-
if (
|
|
201
|
+
if (t === N || t === w) {
|
|
201
202
|
e({
|
|
202
203
|
title: "Under Review",
|
|
203
204
|
message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
|
|
204
|
-
width: "550px"
|
|
205
|
+
width: "550px",
|
|
206
|
+
cancelButtonShow: !1,
|
|
207
|
+
confirmButtonText: "Dismiss",
|
|
208
|
+
height: "270px"
|
|
205
209
|
});
|
|
206
210
|
return;
|
|
207
211
|
}
|
|
208
|
-
if (
|
|
212
|
+
if (t !== R && t !== A) {
|
|
209
213
|
e({
|
|
210
214
|
title: "Verifying",
|
|
211
215
|
message: "We are gathering information, and will provision your Virtual IBAN shortly.",
|
|
@@ -217,8 +221,8 @@ const v = [
|
|
|
217
221
|
});
|
|
218
222
|
return;
|
|
219
223
|
}
|
|
220
|
-
if (!
|
|
221
|
-
(
|
|
224
|
+
if (!F.find(
|
|
225
|
+
(I) => I.alpha3 === l.residentialAddress.country
|
|
222
226
|
)) {
|
|
223
227
|
e({
|
|
224
228
|
title: "Not Allowed",
|
|
@@ -240,26 +244,26 @@ const v = [
|
|
|
240
244
|
confirmButtonText: "Make Payment",
|
|
241
245
|
cancelButtonShow: !0,
|
|
242
246
|
cancelButtonText: "Cancel",
|
|
243
|
-
onConfirm: () =>
|
|
247
|
+
onConfirm: () => n(!0)
|
|
244
248
|
});
|
|
245
249
|
return;
|
|
246
250
|
}
|
|
247
251
|
}, fullWidth: !0, children: /* @__PURE__ */ a("strong", { children: "Create Virtual IBAN" }) }),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
|
|
252
|
+
/* @__PURE__ */ i(
|
|
253
|
+
D,
|
|
250
254
|
{
|
|
251
|
-
open:
|
|
255
|
+
open: y,
|
|
252
256
|
fullWidth: !0,
|
|
253
|
-
onClose: () =>
|
|
254
|
-
TransitionComponent:
|
|
257
|
+
onClose: () => n(!1),
|
|
258
|
+
TransitionComponent: E,
|
|
255
259
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */ a(
|
|
260
|
+
/* @__PURE__ */ i(b, { className: "buy-modal-text-color", children: [
|
|
261
|
+
/* @__PURE__ */ a(O, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
|
|
258
262
|
/* @__PURE__ */ a(
|
|
259
|
-
|
|
263
|
+
v,
|
|
260
264
|
{
|
|
261
265
|
"aria-label": "close",
|
|
262
|
-
onClick: () =>
|
|
266
|
+
onClick: () => n(!1),
|
|
263
267
|
className: "menu-buttons",
|
|
264
268
|
children: /* @__PURE__ */ a(B, {})
|
|
265
269
|
}
|
|
@@ -277,7 +281,7 @@ const v = [
|
|
|
277
281
|
checkoutKey: h,
|
|
278
282
|
orderData: d,
|
|
279
283
|
initPaymentRequest: s,
|
|
280
|
-
backBtnFunc: () =>
|
|
284
|
+
backBtnFunc: () => n(!1)
|
|
281
285
|
}
|
|
282
286
|
)
|
|
283
287
|
}
|
|
@@ -288,5 +292,5 @@ const v = [
|
|
|
288
292
|
] });
|
|
289
293
|
};
|
|
290
294
|
export {
|
|
291
|
-
|
|
295
|
+
ea as default
|
|
292
296
|
};
|
|
@@ -4,9 +4,9 @@ import { I as D } from "../../../Info-BVeUSPyk.js";
|
|
|
4
4
|
import { C as v } from "../../../Close-CNwiMz_O.js";
|
|
5
5
|
import { C as T } from "../../../ContentCopy-coPwrEuz.js";
|
|
6
6
|
import { DIALOG_SUCCESS_ICON as k } from "../../../util/constants.js";
|
|
7
|
-
import {
|
|
8
|
-
import { a as z } from "../../../order-
|
|
9
|
-
import { u as W, s as P } from "../../../bank-
|
|
7
|
+
import { a0 as R } from "../../../constants-rDP6jwIs.js";
|
|
8
|
+
import { a as z } from "../../../order-CTEvMHv4.js";
|
|
9
|
+
import { u as W, s as P } from "../../../bank-Bz7oos87.js";
|
|
10
10
|
import { M as _ } from "../../../tooltip-3UvETWtS.js";
|
|
11
11
|
import q from "../Shared/noData.js";
|
|
12
12
|
import V from "../../Shared/transition.js";
|
|
@@ -19,29 +19,29 @@ import { B as s } from "../../../Box-B0YSYLco.js";
|
|
|
19
19
|
import { T as f } from "../../../Typography-pAaje37G.js";
|
|
20
20
|
import { I as y } from "../../../IconButton-DHm-hucF.js";
|
|
21
21
|
import { C as L } from "../../../CircularProgress-xZA3lvba.js";
|
|
22
|
-
import { G as
|
|
22
|
+
import { G as n } from "../../../Grid-CFe3amXO.js";
|
|
23
23
|
import { D as U, a as G } from "../../../DialogContent-BMwlOnbW.js";
|
|
24
24
|
import { D as O } from "../../../DialogTitle-CfS0bb2K.js";
|
|
25
25
|
const o = ({
|
|
26
|
-
label:
|
|
26
|
+
label: a,
|
|
27
27
|
value: i,
|
|
28
28
|
showCopyBtn: c
|
|
29
29
|
}) => {
|
|
30
30
|
const { showAlertMessage: d } = M();
|
|
31
31
|
return /* @__PURE__ */ r(u, { children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ r(
|
|
32
|
+
/* @__PURE__ */ e(n, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: a }) }),
|
|
33
|
+
/* @__PURE__ */ r(n, { size: 7, className: "fw500 text-left d-flex items-center", children: [
|
|
34
34
|
i,
|
|
35
35
|
c && /* @__PURE__ */ e(y, { onClick: () => {
|
|
36
36
|
navigator.clipboard.writeText(i), d({
|
|
37
|
-
message: `${
|
|
37
|
+
message: `${a} has been copied successfully.`,
|
|
38
38
|
type: "success"
|
|
39
39
|
});
|
|
40
40
|
}, children: /* @__PURE__ */ e(T, { fontSize: "small", color: "primary" }) })
|
|
41
41
|
] })
|
|
42
42
|
] });
|
|
43
43
|
}, ye = ({
|
|
44
|
-
dispatch:
|
|
44
|
+
dispatch: a,
|
|
45
45
|
openDialog: i,
|
|
46
46
|
baseUrl: c,
|
|
47
47
|
checkoutSdkKey: d,
|
|
@@ -52,10 +52,10 @@ const o = ({
|
|
|
52
52
|
}) => {
|
|
53
53
|
const t = l.data, N = l.loader, [S, m] = w(!1);
|
|
54
54
|
I(() => {
|
|
55
|
-
|
|
55
|
+
a(W());
|
|
56
56
|
}, []);
|
|
57
57
|
const B = () => {
|
|
58
|
-
|
|
58
|
+
a(P(R));
|
|
59
59
|
};
|
|
60
60
|
I(() => {
|
|
61
61
|
new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
|
|
@@ -75,7 +75,7 @@ const o = ({
|
|
|
75
75
|
success_url: `${c}/accounts?payment=success`,
|
|
76
76
|
fail_url: `${c}/dashboard?payment=failed`
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
a(z(b));
|
|
79
79
|
};
|
|
80
80
|
return /* @__PURE__ */ r($, { children: [
|
|
81
81
|
/* @__PURE__ */ r(s, { p: 3, children: [
|
|
@@ -90,8 +90,8 @@ const o = ({
|
|
|
90
90
|
),
|
|
91
91
|
N ? /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(u, { children: t.accountNumber ? /* @__PURE__ */ r(u, { children: [
|
|
92
92
|
/* @__PURE__ */ e(g, { type: "iban", data: t }),
|
|
93
|
-
/* @__PURE__ */ r(
|
|
94
|
-
/* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ r(n, { spacing: 2, container: !0, children: [
|
|
94
|
+
/* @__PURE__ */ e(n, { size: { md: 6 }, children: /* @__PURE__ */ e(
|
|
95
95
|
h,
|
|
96
96
|
{
|
|
97
97
|
fullWidth: !0,
|
|
@@ -100,7 +100,7 @@ const o = ({
|
|
|
100
100
|
children: "Deposit"
|
|
101
101
|
}
|
|
102
102
|
) }),
|
|
103
|
-
/* @__PURE__ */ e(
|
|
103
|
+
/* @__PURE__ */ e(n, { size: { md: 3 }, children: /* @__PURE__ */ e(
|
|
104
104
|
h,
|
|
105
105
|
{
|
|
106
106
|
fullWidth: !0,
|
|
@@ -109,7 +109,7 @@ const o = ({
|
|
|
109
109
|
children: "Send"
|
|
110
110
|
}
|
|
111
111
|
) }),
|
|
112
|
-
/* @__PURE__ */ e(
|
|
112
|
+
/* @__PURE__ */ e(n, { size: { md: 3 }, children: /* @__PURE__ */ e(
|
|
113
113
|
h,
|
|
114
114
|
{
|
|
115
115
|
fullWidth: !0,
|
|
@@ -149,7 +149,7 @@ const o = ({
|
|
|
149
149
|
) })
|
|
150
150
|
] }) })
|
|
151
151
|
] }),
|
|
152
|
-
/* @__PURE__ */ e(E, { iban: l, dispatch:
|
|
152
|
+
/* @__PURE__ */ e(E, { iban: l, dispatch: a, appKey: p }),
|
|
153
153
|
/* @__PURE__ */ r(
|
|
154
154
|
U,
|
|
155
155
|
{
|
|
@@ -173,7 +173,7 @@ const o = ({
|
|
|
173
173
|
] }),
|
|
174
174
|
/* @__PURE__ */ r(G, { dividers: !0, children: [
|
|
175
175
|
/* @__PURE__ */ e(f, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
|
|
176
|
-
/* @__PURE__ */ r(
|
|
176
|
+
/* @__PURE__ */ r(n, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
|
|
177
177
|
/* @__PURE__ */ e(
|
|
178
178
|
o,
|
|
179
179
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as ne } from "react/jsx-runtime";
|
|
2
2
|
import { useState as _, useEffect as h } from "react";
|
|
3
3
|
import { u as ae, a as b } from "../../../react-redux-B4BZippc.js";
|
|
4
|
-
import "../../../constants-
|
|
4
|
+
import "../../../constants-rDP6jwIs.js";
|
|
5
5
|
import { a as oe, c as re, d as se } from "../../../index-FwnHkXdK.js";
|
|
6
|
-
import { u as ie, a as le, b as ce, c as me, d as de, e as he } from "../../../wallet-
|
|
7
|
-
import { d as ue, e as pe } from "../../../bank-
|
|
6
|
+
import { u as ie, a as le, b as ce, c as me, d as de, e as he } from "../../../wallet-DZ3-OqYH.js";
|
|
7
|
+
import { d as ue, e as pe } from "../../../bank-Bz7oos87.js";
|
|
8
8
|
import { LINKED_WALLET_TOOLTIP as fe, CONNECTED_WALLET_TOOLTIP as ge, WALLET_ICON as _e, DELETE_ICON as be } from "../../../util/constants.js";
|
|
9
9
|
import Ne from "../../../hoc/withThemeProvider.js";
|
|
10
10
|
import { M as O } from "../../../tooltip-3UvETWtS.js";
|
|
@@ -5,8 +5,8 @@ import { I as D } from "../../../Info-BVeUSPyk.js";
|
|
|
5
5
|
import { a as _ } from "../../../react-redux-B4BZippc.js";
|
|
6
6
|
import y from "../../Shared/transition.js";
|
|
7
7
|
import { M as F } from "../../../tooltip-3UvETWtS.js";
|
|
8
|
-
import {
|
|
9
|
-
import { c as E, s as k } from "../../../bank-
|
|
8
|
+
import { aa as P, a0 as q, ab as f } from "../../../constants-rDP6jwIs.js";
|
|
9
|
+
import { c as E, s as k } from "../../../bank-Bz7oos87.js";
|
|
10
10
|
import { useSnackBarContext as U } from "../../../context/snackBarContext.js";
|
|
11
11
|
import $ from "../Shared/appButton.js";
|
|
12
12
|
import { D as w, a as G } from "../../../DialogContent-BMwlOnbW.js";
|
|
@@ -20,11 +20,11 @@ import { I as j } from "../../../InputAdornment-DMiED3JH.js";
|
|
|
20
20
|
import { B as H } from "../../../Box-B0YSYLco.js";
|
|
21
21
|
import { C as O } from "../../../CircularProgress-xZA3lvba.js";
|
|
22
22
|
const pe = ({ iban: v, dispatch: g, appKey: z }) => {
|
|
23
|
-
const { showAlertMessage: a } = U(),
|
|
23
|
+
const { showAlertMessage: a } = U(), b = _(
|
|
24
24
|
(r) => r.user.profile
|
|
25
|
-
), o = v.sendStatus, c = v.data, [m,
|
|
25
|
+
), o = v.sendStatus, c = v.data, [m, N] = u(""), [d, S] = u(""), [p, I] = u(""), [h, C] = u("");
|
|
26
26
|
B(() => {
|
|
27
|
-
o === P && (
|
|
27
|
+
o === P && (N(""), S(""), I(""), C(""));
|
|
28
28
|
}, [o]);
|
|
29
29
|
const R = () => {
|
|
30
30
|
if (!m.trim()) {
|
|
@@ -142,7 +142,7 @@ const pe = ({ iban: v, dispatch: g, appKey: z }) => {
|
|
|
142
142
|
/* @__PURE__ */ e(t, { mt: 0.5, container: !0, children: /* @__PURE__ */ e(t, { size: 12, className: "content-center", children: /* @__PURE__ */ e(l, { variant: "filled", fullWidth: !0, children: /* @__PURE__ */ e(
|
|
143
143
|
s,
|
|
144
144
|
{
|
|
145
|
-
value: `${
|
|
145
|
+
value: `${b.firstName} ${b.lastName}`,
|
|
146
146
|
type: "text",
|
|
147
147
|
disabled: !0,
|
|
148
148
|
required: !0,
|
|
@@ -162,7 +162,7 @@ const pe = ({ iban: v, dispatch: g, appKey: z }) => {
|
|
|
162
162
|
s,
|
|
163
163
|
{
|
|
164
164
|
value: m,
|
|
165
|
-
onChange: (r) =>
|
|
165
|
+
onChange: (r) => N(r.target.value),
|
|
166
166
|
type: "text",
|
|
167
167
|
required: !0,
|
|
168
168
|
fullWidth: !0
|