everest-npm-features 0.0.62 → 0.0.64
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{PlayArrow-BVDyfxsQ.js → PlayArrow-WUr_Eyo1.js} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/{auth-DTJdu6mq.js → auth-Cg-RJNB1.js} +1 -1
- package/dist/bank-CPJa0NOE.js +47 -0
- 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/countryList.js +33 -30
- package/dist/components/Shared/FullKyc/edd.js +3 -3
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +68 -64
- package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +14 -314
- package/dist/components/Wallet/Account/eWallet.js +33 -35
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +75 -54
- package/dist/components/Wallet/Account/ibanItem.js +3 -3
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +221 -184
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
- package/dist/components/Wallet/Buy/form.js +5 -5
- 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 +4 -4
- 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 +96 -95
- package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
- package/dist/components/Wallet/Portfolio/index.js +5 -5
- package/dist/components/Wallet/Profile/documents.js +121 -124
- package/dist/components/Wallet/Profile/index.js +4 -4
- package/dist/components/Wallet/Profile/storage.js +15 -15
- package/dist/components/Wallet/Receive/index.js +3 -3
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Sell/form.js +5 -5
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +36 -36
- package/dist/components/Wallet/Shared/Auth/otpForm.js +3 -3
- package/dist/components/Wallet/Shared/BankSelect/index.js +4 -4
- package/dist/components/Wallet/Shared/CardCorp/index.js +2 -2
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +19 -18
- package/dist/components/Wallet/Shared/addBank.js +4 -4
- package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
- package/dist/components/Wallet/Shared/manualSend.js +4 -4
- package/dist/components/Wallet/SignIn/index.js +3 -3
- package/dist/components/Wallet/SignUp/index.js +3 -3
- package/dist/components/Wallet/Stake/gems/index.js +74 -62
- package/dist/components/Wallet/Stake/id/index.js +69 -65
- package/dist/components/Wallet/Stake/index.js +6 -6
- package/dist/components/Wallet/Swap/form.js +7 -7
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +5 -5
- 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 +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-BRS2liAt.js} +216 -214
- package/dist/createIban-DKoCQ4o3.js +573 -0
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-BD0cJpXM.js} +1 -1
- package/dist/{index-CDwzoHu7.js → index-BUtxhHso.js} +87 -86
- package/dist/{index-3OQ4M69t.js → index-C2weAjLp.js} +70 -69
- package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
- package/dist/{index-ILpK4BCB.js → index-CZhiRUiE.js} +4 -4
- package/dist/{index-CYX3j0V7.js → index-D7Eq-pbC.js} +65 -64
- package/dist/{index-C1WPCgkl.js → index-DX8IEulu.js} +5 -5
- package/dist/{index-CK4kLRAw.js → index-hgn4Pjw3.js} +5 -5
- package/dist/index-oPbOSCUk.js +545 -0
- package/dist/{kyc-ksV3vBP_.js → kyc-C7NviI9l.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-DEp_Lmar.js → order-DBuLYKfx.js} +1 -1
- package/dist/{otpForm-fiNqeB5H.js → otpForm-DhVp5Gvi.js} +2 -2
- package/dist/{stake-Ct7-_aWW.js → stake-DGXpiw_Y.js} +1 -1
- package/dist/styles.module-C99UuHOT.js +22 -0
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BLx0XKpK.js} +1 -1
- package/package.json +7 -7
- package/dist/bank-C4pmTe--.js +0 -37
- package/dist/index-BBFbUCRZ.js +0 -537
- package/dist/styles.module-C1sNeKjL.js +0 -22
- package/dist/styles.module-CHPRGltL.js +0 -28
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as f, useEffect as
|
|
3
|
-
import { Backdrop as oe, CircularProgress as
|
|
1
|
+
import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useEffect as F, useRef as Y } from "react";
|
|
3
|
+
import { Backdrop as oe, CircularProgress as W, Typography as l, Button as re, Box as c, Dialog as B, DialogTitle as $, IconButton as k, Divider as H, DialogContent as j, Grid as u } from "@mui/material";
|
|
4
4
|
import { C as z } from "../../../Close-DSxLLo08.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { C as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { W as
|
|
10
|
-
import {
|
|
5
|
+
import { D as ie } from "../../../Delete-Bj8zmXnh.js";
|
|
6
|
+
import { C as ce } from "../../../Cancel-pHQsCjtK.js";
|
|
7
|
+
import le from "../Shared/inputField.js";
|
|
8
|
+
import L from "../Shared/step.js";
|
|
9
|
+
import { W as ae } from "../../../react-webcam-B3cXh1XT.js";
|
|
10
|
+
import { A as se } from "../../../ArrowBack-DEJjwfp0.js";
|
|
11
11
|
import de from "../../Shared/transition.js";
|
|
12
12
|
import { getDocName as me } from "../../../util/functions.js";
|
|
13
13
|
import { u as ue } from "../../../react-redux-C7I9-1M6.js";
|
|
14
|
-
import {
|
|
15
|
-
import { e as Ce } from "../../../index-
|
|
16
|
-
import { s as
|
|
14
|
+
import { aj as he, ak as pe, al as fe, am as ge, an as xe, ao as De } from "../../../constants-BRS2liAt.js";
|
|
15
|
+
import { e as Ce } from "../../../index-CREgBh59.js";
|
|
16
|
+
import { s as i } from "../../../styles.module-DFoezEqS.js";
|
|
17
17
|
import { RIGHT_ARROW as V, DELETE_ICON as be } from "../../../util/constants.js";
|
|
18
|
-
import { useDialog as
|
|
18
|
+
import { useDialog as Ne } from "../../../hooks/useDialog/index.js";
|
|
19
19
|
import g from "../Shared/appButton.js";
|
|
20
|
-
import
|
|
21
|
-
const
|
|
20
|
+
import ve from "../../../hooks/useEverestDispatch.js";
|
|
21
|
+
const ye = () => ({
|
|
22
22
|
type: pe
|
|
23
23
|
}), Ee = (o) => ({
|
|
24
24
|
type: ge,
|
|
@@ -28,24 +28,22 @@ const Ne = () => ({
|
|
|
28
28
|
payload: o
|
|
29
29
|
}), J = () => ({
|
|
30
30
|
type: he
|
|
31
|
-
}),
|
|
31
|
+
}), Te = (o) => ({
|
|
32
32
|
type: De,
|
|
33
33
|
payload: o
|
|
34
|
-
}),
|
|
34
|
+
}), ke = (o) => ({
|
|
35
35
|
type: fe,
|
|
36
36
|
payload: o
|
|
37
|
-
}),
|
|
38
|
-
d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
|
|
39
|
-
}), "ArrowBack"), Re = ({
|
|
37
|
+
}), Ie = ({
|
|
40
38
|
showAlertMessage: o,
|
|
41
39
|
documentName: m,
|
|
42
40
|
setDocumentName: x,
|
|
43
41
|
setDocumentScreen: h
|
|
44
|
-
}) => /* @__PURE__ */ t(
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e(
|
|
42
|
+
}) => /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
43
|
+
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 1 }),
|
|
44
|
+
/* @__PURE__ */ e(l, { className: "secondary-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Name your document" }) }),
|
|
47
45
|
/* @__PURE__ */ e(
|
|
48
|
-
|
|
46
|
+
le,
|
|
49
47
|
{
|
|
50
48
|
label: "Document Name",
|
|
51
49
|
value: m,
|
|
@@ -66,18 +64,18 @@ const Ne = () => ({
|
|
|
66
64
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
67
65
|
}
|
|
68
66
|
)
|
|
69
|
-
] }),
|
|
67
|
+
] }), Re = ({
|
|
70
68
|
showAlertMessage: o,
|
|
71
69
|
uploadLoader: m,
|
|
72
70
|
uploadDocument: x,
|
|
73
71
|
documentFile: h,
|
|
74
|
-
setDocumentFile:
|
|
72
|
+
setDocumentFile: a,
|
|
75
73
|
setDocumentScreen: r
|
|
76
74
|
}) => {
|
|
77
75
|
const s = Y(null), [D, p] = f("Choose File");
|
|
78
|
-
return /* @__PURE__ */ t(
|
|
79
|
-
/* @__PURE__ */ e(
|
|
80
|
-
/* @__PURE__ */ e(
|
|
76
|
+
return /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
77
|
+
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
|
|
78
|
+
/* @__PURE__ */ e(l, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
|
|
81
79
|
/* @__PURE__ */ t(u, { mt: 2, container: !0, spacing: 2, children: [
|
|
82
80
|
/* @__PURE__ */ e(u, { size: 6, children: /* @__PURE__ */ e(
|
|
83
81
|
g,
|
|
@@ -109,12 +107,12 @@ const Ne = () => ({
|
|
|
109
107
|
else if (d.target.files && d.target.files[0]) {
|
|
110
108
|
p(d.target.files[0].name);
|
|
111
109
|
let b = new FileReader();
|
|
112
|
-
b.onload = (
|
|
110
|
+
b.onload = (I) => {
|
|
113
111
|
var E;
|
|
114
|
-
const
|
|
115
|
-
if (typeof
|
|
116
|
-
const
|
|
117
|
-
|
|
112
|
+
const y = (E = I.target) == null ? void 0 : E.result;
|
|
113
|
+
if (typeof y == "string") {
|
|
114
|
+
const P = y.split(/[,]/);
|
|
115
|
+
a(P[1]);
|
|
118
116
|
}
|
|
119
117
|
}, b.readAsDataURL(d.target.files[0]);
|
|
120
118
|
}
|
|
@@ -124,9 +122,9 @@ const Ne = () => ({
|
|
|
124
122
|
hidden: !0
|
|
125
123
|
}
|
|
126
124
|
),
|
|
127
|
-
m ? /* @__PURE__ */ t(
|
|
128
|
-
/* @__PURE__ */ e(
|
|
129
|
-
/* @__PURE__ */ t(
|
|
125
|
+
m ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
|
|
126
|
+
/* @__PURE__ */ e(W, { size: 30, color: "inherit" }),
|
|
127
|
+
/* @__PURE__ */ t(l, { variant: "h5", sx: { fontWeight: "bold" }, children: [
|
|
130
128
|
"Processing...",
|
|
131
129
|
/* @__PURE__ */ e("br", {}),
|
|
132
130
|
"one moment please"
|
|
@@ -151,7 +149,7 @@ const Ne = () => ({
|
|
|
151
149
|
documentFile: m,
|
|
152
150
|
setDocumentFile: x,
|
|
153
151
|
uploadDocument: h,
|
|
154
|
-
uploadLoader:
|
|
152
|
+
uploadLoader: a
|
|
155
153
|
}) => {
|
|
156
154
|
const r = Y(null), s = {
|
|
157
155
|
audio: !1,
|
|
@@ -173,26 +171,26 @@ const Ne = () => ({
|
|
|
173
171
|
const d = r.current.getScreenshot(), b = d.split(/[,]/);
|
|
174
172
|
x(b[1]), p(d);
|
|
175
173
|
}
|
|
176
|
-
},
|
|
174
|
+
}, v = () => {
|
|
177
175
|
if (!D)
|
|
178
176
|
return o({
|
|
179
177
|
message: "Please take the photo of the document"
|
|
180
178
|
}), !1;
|
|
181
179
|
h();
|
|
182
180
|
};
|
|
183
|
-
return /* @__PURE__ */ t(
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
D ? /* @__PURE__ */ t(
|
|
181
|
+
return /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
182
|
+
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
|
|
183
|
+
D ? /* @__PURE__ */ t(N, { children: [
|
|
186
184
|
/* @__PURE__ */ t(
|
|
187
|
-
|
|
185
|
+
c,
|
|
188
186
|
{
|
|
189
|
-
className: `${
|
|
187
|
+
className: `${i["doc-video-box"]} ${i["image-corner-color"]}`,
|
|
190
188
|
children: [
|
|
191
189
|
/* @__PURE__ */ e("span", {}),
|
|
192
190
|
/* @__PURE__ */ e(
|
|
193
191
|
"img",
|
|
194
192
|
{
|
|
195
|
-
className:
|
|
193
|
+
className: i["video-box-inner-content"],
|
|
196
194
|
src: D,
|
|
197
195
|
alt: "doc"
|
|
198
196
|
}
|
|
@@ -200,18 +198,18 @@ const Ne = () => ({
|
|
|
200
198
|
]
|
|
201
199
|
}
|
|
202
200
|
),
|
|
203
|
-
|
|
204
|
-
/* @__PURE__ */ e(
|
|
205
|
-
/* @__PURE__ */ t(
|
|
201
|
+
a ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
|
|
202
|
+
/* @__PURE__ */ e(W, { size: 30, color: "inherit" }),
|
|
203
|
+
/* @__PURE__ */ t(l, { variant: "h5", sx: { fontWeight: "bold" }, children: [
|
|
206
204
|
"Processing...",
|
|
207
205
|
/* @__PURE__ */ e("br", {}),
|
|
208
206
|
"one moment please"
|
|
209
207
|
] })
|
|
210
|
-
] }) : /* @__PURE__ */ t(
|
|
208
|
+
] }) : /* @__PURE__ */ t(N, { children: [
|
|
211
209
|
/* @__PURE__ */ e(
|
|
212
210
|
g,
|
|
213
211
|
{
|
|
214
|
-
onClick:
|
|
212
|
+
onClick: v,
|
|
215
213
|
sx: { mt: 6 },
|
|
216
214
|
disabled: !m,
|
|
217
215
|
fullWidth: !0,
|
|
@@ -229,13 +227,13 @@ const Ne = () => ({
|
|
|
229
227
|
}
|
|
230
228
|
)
|
|
231
229
|
] })
|
|
232
|
-
] }) : /* @__PURE__ */ t(
|
|
233
|
-
/* @__PURE__ */ t(
|
|
230
|
+
] }) : /* @__PURE__ */ t(N, { children: [
|
|
231
|
+
/* @__PURE__ */ t(c, { className: i["doc-video-box"], children: [
|
|
234
232
|
/* @__PURE__ */ e("span", {}),
|
|
235
233
|
/* @__PURE__ */ e(
|
|
236
|
-
|
|
234
|
+
ae,
|
|
237
235
|
{
|
|
238
|
-
className:
|
|
236
|
+
className: i["video-box-inner-content"],
|
|
239
237
|
audio: !1,
|
|
240
238
|
ref: r,
|
|
241
239
|
screenshotFormat: "image/jpeg",
|
|
@@ -249,11 +247,11 @@ const Ne = () => ({
|
|
|
249
247
|
/* @__PURE__ */ e(g, { onClick: C, sx: { mt: 8 }, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Take Photo" }) })
|
|
250
248
|
] })
|
|
251
249
|
] });
|
|
252
|
-
},
|
|
253
|
-
const { openDialog: x, ConfirmDialog: h } =
|
|
254
|
-
|
|
250
|
+
}, Ke = ({ showAlertMessage: o, identityDocs: m }) => {
|
|
251
|
+
const { openDialog: x, ConfirmDialog: h } = Ne(), a = ve(), r = ue(Ce), s = r.data, D = r.loader, p = r.message, C = r.error, v = r.preview.front, d = r.preview.back, b = r.preview.loader, I = r.uploadLoader, [y, E] = f(!1), [P, O] = f(!1), [w, S] = f(1), [K, Q] = f(!1), [U, q] = f(""), [R, _] = f("");
|
|
252
|
+
F(() => {
|
|
255
253
|
C && o({ message: C });
|
|
256
|
-
}, [C]),
|
|
254
|
+
}, [C]), F(() => {
|
|
257
255
|
p && (o({ message: p, type: "success" }), E(!1), A());
|
|
258
256
|
}, [p]);
|
|
259
257
|
const G = () => {
|
|
@@ -261,22 +259,22 @@ const Ne = () => ({
|
|
|
261
259
|
return o({ message: "Please provide the document name" }), !1;
|
|
262
260
|
if (!R)
|
|
263
261
|
return o({ message: "Please provide the document" }), !1;
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
a(
|
|
263
|
+
ke({
|
|
266
264
|
filename: U.trim(),
|
|
267
265
|
content: R
|
|
268
266
|
})
|
|
269
267
|
);
|
|
270
268
|
}, X = () => {
|
|
271
|
-
|
|
269
|
+
a(ye());
|
|
272
270
|
};
|
|
273
|
-
|
|
271
|
+
F(() => {
|
|
274
272
|
X();
|
|
275
273
|
}, []);
|
|
276
274
|
const Z = (n) => {
|
|
277
|
-
|
|
275
|
+
a(Ee(n));
|
|
278
276
|
}, ee = (n) => {
|
|
279
|
-
|
|
277
|
+
a(Se(n));
|
|
280
278
|
}, te = (n) => {
|
|
281
279
|
x({
|
|
282
280
|
icon: be,
|
|
@@ -289,24 +287,24 @@ const Ne = () => ({
|
|
|
289
287
|
cancelButtonShow: !0
|
|
290
288
|
});
|
|
291
289
|
}, ne = (n) => {
|
|
292
|
-
|
|
293
|
-
},
|
|
294
|
-
|
|
290
|
+
a(Te(n));
|
|
291
|
+
}, M = ({ data: n, type: T }) => T === "identity" ? /* @__PURE__ */ e(
|
|
292
|
+
c,
|
|
295
293
|
{
|
|
296
|
-
className:
|
|
294
|
+
className: i["menu-item"],
|
|
297
295
|
onClick: () => n.documentId && Z(n.documentId),
|
|
298
296
|
children: /* @__PURE__ */ t(u, { container: !0, sx: { width: "100%" }, children: [
|
|
299
|
-
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(
|
|
300
|
-
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(
|
|
297
|
+
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(l, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.documentType && me(n.documentType) }) }) }) }),
|
|
298
|
+
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(l, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
|
|
301
299
|
] })
|
|
302
300
|
}
|
|
303
|
-
) : /* @__PURE__ */ t(
|
|
304
|
-
|
|
305
|
-
|
|
301
|
+
) : /* @__PURE__ */ t(c, { sx: { position: "relative" }, className: i["menu-item"], children: [
|
|
302
|
+
y && /* @__PURE__ */ e(
|
|
303
|
+
k,
|
|
306
304
|
{
|
|
307
|
-
className:
|
|
305
|
+
className: i["remove-icon"],
|
|
308
306
|
onClick: () => te(n.filename),
|
|
309
|
-
children: /* @__PURE__ */ e(
|
|
307
|
+
children: /* @__PURE__ */ e(ce, {})
|
|
310
308
|
}
|
|
311
309
|
),
|
|
312
310
|
/* @__PURE__ */ t(
|
|
@@ -316,15 +314,15 @@ const Ne = () => ({
|
|
|
316
314
|
container: !0,
|
|
317
315
|
sx: { width: "100%" },
|
|
318
316
|
children: [
|
|
319
|
-
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(
|
|
320
|
-
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(
|
|
317
|
+
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(l, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
|
|
318
|
+
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(l, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
|
|
321
319
|
]
|
|
322
320
|
}
|
|
323
321
|
)
|
|
324
322
|
] }), A = () => {
|
|
325
323
|
q(""), _(""), S(1), Q(!1);
|
|
326
324
|
};
|
|
327
|
-
return /* @__PURE__ */ t(
|
|
325
|
+
return /* @__PURE__ */ t(N, { children: [
|
|
328
326
|
/* @__PURE__ */ e(h, {}),
|
|
329
327
|
/* @__PURE__ */ e(
|
|
330
328
|
oe,
|
|
@@ -334,27 +332,27 @@ const Ne = () => ({
|
|
|
334
332
|
zIndex: (n) => n.zIndex.drawer + 1e3
|
|
335
333
|
},
|
|
336
334
|
open: b,
|
|
337
|
-
children: /* @__PURE__ */ e(
|
|
335
|
+
children: /* @__PURE__ */ e(W, { color: "inherit" })
|
|
338
336
|
}
|
|
339
337
|
),
|
|
340
|
-
/* @__PURE__ */ e(
|
|
338
|
+
/* @__PURE__ */ e(l, { className: i.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
|
|
341
339
|
s.length > 0 && /* @__PURE__ */ t(
|
|
342
340
|
re,
|
|
343
341
|
{
|
|
344
|
-
className: `${
|
|
342
|
+
className: `${y ? i["delete-disable"] : i["confirm-edit"]} normal-text`,
|
|
345
343
|
sx: { mt: 3, mb: 3 },
|
|
346
344
|
variant: "contained",
|
|
347
345
|
onClick: () => E((n) => !n),
|
|
348
346
|
children: [
|
|
349
|
-
/* @__PURE__ */ e(
|
|
347
|
+
/* @__PURE__ */ e(ie, {}),
|
|
350
348
|
"Delete"
|
|
351
349
|
]
|
|
352
350
|
}
|
|
353
351
|
),
|
|
354
|
-
D ? /* @__PURE__ */ e(
|
|
355
|
-
m && m.map((n,
|
|
356
|
-
s && s.map((n,
|
|
357
|
-
!m && s.length === 0 && /* @__PURE__ */ e(
|
|
352
|
+
D ? /* @__PURE__ */ e(c, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(W, {}) }) : /* @__PURE__ */ t(N, { children: [
|
|
353
|
+
m && m.map((n, T) => /* @__PURE__ */ e(M, { data: n, type: "identity" }, T)),
|
|
354
|
+
s && s.map((n, T) => /* @__PURE__ */ e(M, { data: n, type: "normal" }, T)),
|
|
355
|
+
!m && s.length === 0 && /* @__PURE__ */ e(l, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
|
|
358
356
|
] }),
|
|
359
357
|
/* @__PURE__ */ e(
|
|
360
358
|
g,
|
|
@@ -362,18 +360,18 @@ const Ne = () => ({
|
|
|
362
360
|
sx: { mt: 4 },
|
|
363
361
|
onClick: () => Q(!0),
|
|
364
362
|
fullWidth: !0,
|
|
365
|
-
children: /* @__PURE__ */ e("strong", { children: "Add
|
|
363
|
+
children: /* @__PURE__ */ e("strong", { children: "Add New Document" })
|
|
366
364
|
}
|
|
367
365
|
),
|
|
368
366
|
/* @__PURE__ */ t(
|
|
369
|
-
|
|
367
|
+
B,
|
|
370
368
|
{
|
|
371
|
-
open:
|
|
369
|
+
open: P,
|
|
372
370
|
fullWidth: !0,
|
|
373
371
|
onClose: () => O(!1),
|
|
374
372
|
children: [
|
|
375
|
-
/* @__PURE__ */ e(
|
|
376
|
-
|
|
373
|
+
/* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
|
|
374
|
+
k,
|
|
377
375
|
{
|
|
378
376
|
"aria-label": "close",
|
|
379
377
|
onClick: () => O(!1),
|
|
@@ -386,23 +384,23 @@ const Ne = () => ({
|
|
|
386
384
|
children: /* @__PURE__ */ e(z, {})
|
|
387
385
|
}
|
|
388
386
|
) }),
|
|
389
|
-
/* @__PURE__ */ e(
|
|
390
|
-
/* @__PURE__ */ e(
|
|
387
|
+
/* @__PURE__ */ e(H, { sx: { mt: 2 } }),
|
|
388
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(c, { children: "Add Document Modal" }) })
|
|
391
389
|
]
|
|
392
390
|
}
|
|
393
391
|
),
|
|
394
392
|
/* @__PURE__ */ t(
|
|
395
|
-
|
|
393
|
+
B,
|
|
396
394
|
{
|
|
397
|
-
open: !!
|
|
395
|
+
open: !!v,
|
|
398
396
|
fullWidth: !0,
|
|
399
|
-
onClose: () =>
|
|
397
|
+
onClose: () => a(J()),
|
|
400
398
|
children: [
|
|
401
|
-
/* @__PURE__ */ e(
|
|
402
|
-
|
|
399
|
+
/* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
|
|
400
|
+
k,
|
|
403
401
|
{
|
|
404
402
|
"aria-label": "close",
|
|
405
|
-
onClick: () =>
|
|
403
|
+
onClick: () => a(J()),
|
|
406
404
|
sx: {
|
|
407
405
|
position: "absolute",
|
|
408
406
|
right: 8,
|
|
@@ -412,23 +410,23 @@ const Ne = () => ({
|
|
|
412
410
|
children: /* @__PURE__ */ e(z, {})
|
|
413
411
|
}
|
|
414
412
|
) }),
|
|
415
|
-
/* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */ e(
|
|
417
|
-
/* @__PURE__ */ e(
|
|
413
|
+
/* @__PURE__ */ e(H, { sx: { mt: 2 } }),
|
|
414
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ t(c, { children: [
|
|
415
|
+
/* @__PURE__ */ e(l, { variant: "h5", mb: 3, children: "Front Image" }),
|
|
418
416
|
/* @__PURE__ */ e(
|
|
419
417
|
"img",
|
|
420
418
|
{
|
|
421
|
-
className:
|
|
422
|
-
src: "data:image/jpeg;base64," +
|
|
419
|
+
className: i["video-box-inner-content"],
|
|
420
|
+
src: "data:image/jpeg;base64," + v,
|
|
423
421
|
alt: "Front"
|
|
424
422
|
}
|
|
425
423
|
),
|
|
426
|
-
d && /* @__PURE__ */ t(
|
|
427
|
-
/* @__PURE__ */ e(
|
|
424
|
+
d && /* @__PURE__ */ t(N, { children: [
|
|
425
|
+
/* @__PURE__ */ e(l, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
|
|
428
426
|
/* @__PURE__ */ e(
|
|
429
427
|
"img",
|
|
430
428
|
{
|
|
431
|
-
className:
|
|
429
|
+
className: i["video-box-inner-content"],
|
|
432
430
|
src: "data:image/jpeg;base64," + d,
|
|
433
431
|
alt: "Back"
|
|
434
432
|
}
|
|
@@ -439,47 +437,46 @@ const Ne = () => ({
|
|
|
439
437
|
}
|
|
440
438
|
),
|
|
441
439
|
/* @__PURE__ */ t(
|
|
442
|
-
|
|
440
|
+
B,
|
|
443
441
|
{
|
|
444
442
|
fullWidth: !0,
|
|
445
443
|
open: K,
|
|
446
444
|
onClose: A,
|
|
447
445
|
TransitionComponent: de,
|
|
448
446
|
children: [
|
|
449
|
-
/* @__PURE__ */ t(
|
|
447
|
+
/* @__PURE__ */ t(c, { className: i["asset-header"], children: [
|
|
450
448
|
/* @__PURE__ */ e(
|
|
451
|
-
|
|
449
|
+
k,
|
|
452
450
|
{
|
|
453
451
|
"aria-label": "close",
|
|
454
452
|
onClick: () => S(
|
|
455
|
-
|
|
453
|
+
w - 1 <= 0 ? 1 : w - 1
|
|
456
454
|
),
|
|
457
|
-
sx: {
|
|
458
|
-
children: /* @__PURE__ */ e(
|
|
455
|
+
sx: { ml: "20px" },
|
|
456
|
+
children: /* @__PURE__ */ e(se, {})
|
|
459
457
|
}
|
|
460
458
|
),
|
|
461
459
|
/* @__PURE__ */ e(
|
|
462
|
-
|
|
460
|
+
l,
|
|
463
461
|
{
|
|
464
|
-
className: "secondary-text-color",
|
|
465
462
|
variant: "subtitle1",
|
|
466
463
|
component: "p",
|
|
467
464
|
children: /* @__PURE__ */ e("strong", { children: "Add new document" })
|
|
468
465
|
}
|
|
469
466
|
),
|
|
470
467
|
/* @__PURE__ */ e(
|
|
471
|
-
|
|
468
|
+
k,
|
|
472
469
|
{
|
|
473
470
|
"aria-label": "close",
|
|
474
471
|
onClick: A,
|
|
475
|
-
className:
|
|
472
|
+
className: i["asset-close-btn"],
|
|
476
473
|
children: /* @__PURE__ */ e(z, {})
|
|
477
474
|
}
|
|
478
475
|
)
|
|
479
476
|
] }),
|
|
480
|
-
/* @__PURE__ */ e(
|
|
477
|
+
/* @__PURE__ */ e(j, { sx: { padding: "20px 45px" }, dividers: !0, children: {
|
|
481
478
|
1: /* @__PURE__ */ e(
|
|
482
|
-
|
|
479
|
+
Ie,
|
|
483
480
|
{
|
|
484
481
|
showAlertMessage: o,
|
|
485
482
|
documentName: U,
|
|
@@ -488,14 +485,14 @@ const Ne = () => ({
|
|
|
488
485
|
}
|
|
489
486
|
),
|
|
490
487
|
2: /* @__PURE__ */ e(
|
|
491
|
-
|
|
488
|
+
Re,
|
|
492
489
|
{
|
|
493
490
|
showAlertMessage: o,
|
|
494
491
|
setDocumentScreen: S,
|
|
495
492
|
documentFile: R,
|
|
496
493
|
setDocumentFile: _,
|
|
497
494
|
uploadDocument: G,
|
|
498
|
-
uploadLoader:
|
|
495
|
+
uploadLoader: I
|
|
499
496
|
}
|
|
500
497
|
),
|
|
501
498
|
3: /* @__PURE__ */ e(
|
|
@@ -506,15 +503,15 @@ const Ne = () => ({
|
|
|
506
503
|
documentFile: R,
|
|
507
504
|
setDocumentFile: _,
|
|
508
505
|
uploadDocument: G,
|
|
509
|
-
uploadLoader:
|
|
506
|
+
uploadLoader: I
|
|
510
507
|
}
|
|
511
508
|
)
|
|
512
|
-
}[
|
|
509
|
+
}[w] })
|
|
513
510
|
]
|
|
514
511
|
}
|
|
515
512
|
)
|
|
516
513
|
] });
|
|
517
514
|
};
|
|
518
515
|
export {
|
|
519
|
-
|
|
516
|
+
Ke as default
|
|
520
517
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as U, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as Z, useEffect as _ } from "react";
|
|
3
3
|
import { u as R } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as $ } from "../../../index-
|
|
4
|
+
import { ar as W, as as q, at as Q, au as X, c as b, K as j } from "../../../constants-BRS2liAt.js";
|
|
5
|
+
import { a as $ } from "../../../index-CREgBh59.js";
|
|
6
6
|
import { Grid as t, Box as h, Typography as n, Button as p, Avatar as J, Divider as e2, Dialog as t2, DialogContent as r2 } from "@mui/material";
|
|
7
|
-
import { s as o } from "../../../styles.module-
|
|
7
|
+
import { s as o } from "../../../styles.module-DFoezEqS.js";
|
|
8
8
|
import l from "../Shared/inputField.js";
|
|
9
9
|
import i2 from "./documents.js";
|
|
10
10
|
import { SYNTHETIC_EURE as a2, KYC_APROVED_TOOLTIP as o2, KYC_ELITE_TOOLTIP as l2, WIDGET_URL as s2 } from "../../../util/constants.js";
|
|
@@ -12,7 +12,7 @@ import n2 from "../../../hoc/withThemeProvider.js";
|
|
|
12
12
|
import "../../../index-DlQqWbXG.js";
|
|
13
13
|
import { AuthInnerContainer as L } from "../Shared/Container/index.js";
|
|
14
14
|
import "../Shared/appButton.js";
|
|
15
|
-
import "../../../otpForm-
|
|
15
|
+
import "../../../otpForm-DhVp5Gvi.js";
|
|
16
16
|
import { useSnackBarContext as c2 } from "../../../context/snackBarContext.js";
|
|
17
17
|
import d2 from "../../../hooks/useEverestDispatch.js";
|
|
18
18
|
import "../../../util/conversions.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as T } from "react/jsx-runtime";
|
|
2
2
|
import x, { useState as b, useEffect as h } from "react";
|
|
3
|
-
import { Box as s, Typography as i, FormControl as O, RadioGroup as N, Backdrop as w, CircularProgress as W, Grid as C, Dialog as
|
|
3
|
+
import { Box as s, Typography as i, FormControl as O, RadioGroup as N, Backdrop as w, CircularProgress as W, Grid as C, Dialog as D, IconButton as v, DialogContent as z } from "@mui/material";
|
|
4
4
|
import { C as L } from "../../../Close-DSxLLo08.js";
|
|
5
5
|
import { c as P } from "../../../createSvgIcon-B28GrUxG.js";
|
|
6
6
|
import M from "../../Shared/transition.js";
|
|
7
|
-
import { s as E } from "../../../styles.module-
|
|
7
|
+
import { s as E } from "../../../styles.module-DFoezEqS.js";
|
|
8
8
|
import f from "../Shared/appButton.js";
|
|
9
9
|
import j from "../Shared/noData.js";
|
|
10
10
|
import q from "../Shared/radioButton.js";
|
|
11
|
-
import {
|
|
11
|
+
import { aB as F, aC as H, aD as Q, aE as Y, aF as J } from "../../../constants-BRS2liAt.js";
|
|
12
12
|
import { STORAGE_SUCCESS as K, CLOUD_ICON as V } from "../../../util/constants.js";
|
|
13
13
|
import X from "../../../hooks/useEverestDispatch.js";
|
|
14
14
|
const Z = () => ({
|
|
15
|
-
type:
|
|
15
|
+
type: F
|
|
16
16
|
}), $ = (c) => ({
|
|
17
|
-
type:
|
|
17
|
+
type: Q,
|
|
18
18
|
payload: c
|
|
19
19
|
}), ee = () => ({
|
|
20
|
-
type:
|
|
20
|
+
type: H
|
|
21
21
|
}), re = P(/* @__PURE__ */ e("path", {
|
|
22
22
|
d: "M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"
|
|
23
23
|
}), "ArrowBackIos"), ue = ({
|
|
@@ -25,9 +25,9 @@ const Z = () => ({
|
|
|
25
25
|
eureBalance: R,
|
|
26
26
|
storagePlans: l,
|
|
27
27
|
purchaseStatus: d,
|
|
28
|
-
userStorage:
|
|
28
|
+
userStorage: _
|
|
29
29
|
}) => {
|
|
30
|
-
const p = X(), A = !1, [a, m] = b(1), [U,
|
|
30
|
+
const p = X(), A = !1, [a, m] = b(1), [U, y] = b(!1), [n, u] = b(0);
|
|
31
31
|
h(() => {
|
|
32
32
|
p(Z()), p(ee());
|
|
33
33
|
}, []), h(() => {
|
|
@@ -49,7 +49,7 @@ const Z = () => ({
|
|
|
49
49
|
}), !1;
|
|
50
50
|
if (o && (o == null ? void 0 : o.price) / 100 > R)
|
|
51
51
|
return c({
|
|
52
|
-
message: "
|
|
52
|
+
message: "You have insufficient funds to redeem this plan"
|
|
53
53
|
}), !1;
|
|
54
54
|
m(2);
|
|
55
55
|
};
|
|
@@ -136,7 +136,7 @@ const Z = () => ({
|
|
|
136
136
|
}, []);
|
|
137
137
|
const g = () => {
|
|
138
138
|
var r;
|
|
139
|
-
|
|
139
|
+
y(!1), u((r = l[0]) == null ? void 0 : r.id), m(1);
|
|
140
140
|
};
|
|
141
141
|
return /* @__PURE__ */ t(T, { children: [
|
|
142
142
|
/* @__PURE__ */ e(
|
|
@@ -151,7 +151,7 @@ const Z = () => ({
|
|
|
151
151
|
}
|
|
152
152
|
),
|
|
153
153
|
/* @__PURE__ */ e(i, { className: E.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Storage" }) }),
|
|
154
|
-
/* @__PURE__ */ e(s, { mt: 2, children:
|
|
154
|
+
/* @__PURE__ */ e(s, { mt: 2, children: _.total_storage ? /* @__PURE__ */ e(
|
|
155
155
|
s,
|
|
156
156
|
{
|
|
157
157
|
sx: {
|
|
@@ -184,7 +184,7 @@ const Z = () => ({
|
|
|
184
184
|
fontWeight: "bold"
|
|
185
185
|
},
|
|
186
186
|
children: [
|
|
187
|
-
|
|
187
|
+
_.total_storage,
|
|
188
188
|
"GB"
|
|
189
189
|
]
|
|
190
190
|
}
|
|
@@ -206,9 +206,9 @@ const Z = () => ({
|
|
|
206
206
|
] })
|
|
207
207
|
}
|
|
208
208
|
) : /* @__PURE__ */ e(j, { text: "Buy Storage with EUR.e" }) }),
|
|
209
|
-
/* @__PURE__ */ e(f, { sx: { mt: 4 }, onClick: () =>
|
|
209
|
+
/* @__PURE__ */ e(f, { sx: { mt: 4 }, onClick: () => y(!0), fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Add Storage" }) }),
|
|
210
210
|
/* @__PURE__ */ t(
|
|
211
|
-
|
|
211
|
+
D,
|
|
212
212
|
{
|
|
213
213
|
maxWidth: a === 3 ? "sm" : "md",
|
|
214
214
|
fullWidth: !0,
|
|
@@ -238,7 +238,7 @@ const Z = () => ({
|
|
|
238
238
|
)
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ e(
|
|
241
|
-
|
|
241
|
+
z,
|
|
242
242
|
{
|
|
243
243
|
sx: { padding: a === 3 ? "80px" : "100px" },
|
|
244
244
|
dividers: !0,
|