everest-npm-features 0.0.63 → 0.0.65
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-71FP5PzJ.js → PlayArrow-DbQI55la.js} +5 -5
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/{auth-BBeOw4mt.js → auth-D_DKdP4p.js} +1 -1
- package/dist/bank-DIuQN1YY.js +47 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +5 -5
- 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 +7 -7
- 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 +5 -5
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +77 -73
- package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
- package/dist/components/Shared/FullKyc/types.d.ts +4 -4
- package/dist/components/Shared/FullKyc/userInfo.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.d.ts +1 -1
- package/dist/components/Shared/Sumsub/index.js +36 -34
- package/dist/components/Wallet/Account/createIban.js +16 -541
- package/dist/components/Wallet/Account/eWallet.js +7 -7
- package/dist/components/Wallet/Account/iban.js +77 -56
- package/dist/components/Wallet/Account/ibanItem.js +21 -6
- package/dist/components/Wallet/Account/index.js +217 -182
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- 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 +3 -3
- package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -4
- package/dist/components/Wallet/EnterpriseKyc/index.d.ts +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +111 -109
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +16 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +3 -3
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +5 -5
- package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
- package/dist/components/Wallet/Portfolio/index.js +7 -7
- package/dist/components/Wallet/Profile/documents.js +76 -69
- package/dist/components/Wallet/Profile/index.js +71 -50
- package/dist/components/Wallet/Profile/storage.js +32 -25
- package/dist/components/Wallet/Receive/index.js +3 -3
- package/dist/components/Wallet/Sell/confirmTransaction.js +6 -6
- 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 +37 -37
- 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 +3 -3
- package/dist/components/Wallet/Shared/addBank.js +5 -5
- package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
- package/dist/components/Wallet/Shared/manualSend.js +5 -5
- 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 +34 -31
- package/dist/components/Wallet/Stake/id/index.js +24 -16
- package/dist/components/Wallet/Stake/index.js +7 -7
- package/dist/components/Wallet/Swap/form.js +8 -8
- 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-DX0YBtP2.js → constants-B-_x7F8X.js} +221 -219
- package/dist/createIban-CbxsxTxl.js +580 -0
- package/dist/{cryptoAssets-B8rAI7pp.js → cryptoAssets-Cmdg7BR-.js} +1 -1
- package/dist/hooks/useDialog/index.js +11 -9
- package/dist/{index-DkiQ8pRO.js → index-9VVh1IhH.js} +52 -52
- package/dist/{index-JY6-UKlX.js → index-BeEuJLqT.js} +88 -87
- package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
- package/dist/{index-_fiTunwZ.js → index-C_Vf8Evc.js} +4 -4
- package/dist/{index-bK14vCZw.js → index-Cx8dey5q.js} +6 -6
- package/dist/{index-B4XvACQN.js → index-DXw2h9nQ.js} +71 -70
- package/dist/index-DtTDOPWZ.js +562 -0
- package/dist/{index-DuWW5roi.js → index-DuOJBwgp.js} +66 -65
- package/dist/{kyc-BNMPoeHt.js → kyc-BXoUxN4z.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BXeCIvqC.js → order-DAiOqPsI.js} +1 -1
- package/dist/{otpForm-DeeegaX2.js → otpForm-WjQmPs8D.js} +2 -2
- package/dist/{stake-BO2TYVJ7.js → stake-CzXNB3em.js} +1 -1
- package/dist/styles.module-4N8hJhXS.js +22 -0
- package/dist/styles.module-DYytghn2.js +28 -0
- package/dist/util/constants.d.ts +2 -2
- package/dist/util/constants.js +1 -1
- package/dist/{wallet-BPXOp8UG.js → wallet-Cw-0XynY.js} +1 -1
- package/package.json +7 -7
- package/dist/bank-HVb0GFsa.js +0 -37
- package/dist/index-CTPMPwYK.js +0 -533
- package/dist/styles.module-C1sNeKjL.js +0 -22
- package/dist/styles.module-DFoezEqS.js +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Box as p, Button as
|
|
2
|
+
import y from "react";
|
|
3
|
+
import { Box as p, Button as C, Avatar as h, Typography as g, Menu as I, MenuItem as k } from "@mui/material";
|
|
4
4
|
import { c as v } from "../../../createSvgIcon-B28GrUxG.js";
|
|
5
5
|
const M = v(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
@@ -12,14 +12,14 @@ function B({
|
|
|
12
12
|
setValue: f,
|
|
13
13
|
allText: l
|
|
14
14
|
}) {
|
|
15
|
-
const [c,
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
}, e = a.find((n) => n.label === r),
|
|
15
|
+
const [c, s] = y.useState(null), x = !!c, m = (n) => {
|
|
16
|
+
s(n.currentTarget);
|
|
17
|
+
}, i = (n) => {
|
|
18
|
+
s(null), typeof n == "string" && f(n);
|
|
19
|
+
}, e = a.find((n) => n.label === r), d = u || (e == null ? void 0 : e.img);
|
|
20
20
|
return /* @__PURE__ */ t(p, { display: "flex", alignItems: "center", justifyContent: "center", gap: 1, children: [
|
|
21
21
|
/* @__PURE__ */ t(
|
|
22
|
-
|
|
22
|
+
C,
|
|
23
23
|
{
|
|
24
24
|
onClick: m,
|
|
25
25
|
sx: {
|
|
@@ -33,10 +33,10 @@ function B({
|
|
|
33
33
|
},
|
|
34
34
|
endIcon: /* @__PURE__ */ o(M, {}),
|
|
35
35
|
children: [
|
|
36
|
-
|
|
36
|
+
d && /* @__PURE__ */ o(
|
|
37
37
|
h,
|
|
38
38
|
{
|
|
39
|
-
src:
|
|
39
|
+
src: d,
|
|
40
40
|
alt: "dd-icon",
|
|
41
41
|
sx: { width: 24, height: 24, marginRight: 1 }
|
|
42
42
|
}
|
|
@@ -45,25 +45,40 @@ function B({
|
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
/* @__PURE__ */ o(
|
|
49
|
-
|
|
48
|
+
/* @__PURE__ */ o(
|
|
49
|
+
I,
|
|
50
50
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
alt: n.label,
|
|
59
|
-
sx: { width: 20, height: 20 }
|
|
51
|
+
anchorEl: c,
|
|
52
|
+
open: x,
|
|
53
|
+
onClose: () => i(null),
|
|
54
|
+
slotProps: {
|
|
55
|
+
paper: {
|
|
56
|
+
sx: {
|
|
57
|
+
borderRadius: "8px"
|
|
60
58
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
children: a.map((n, b) => /* @__PURE__ */ o(
|
|
62
|
+
k,
|
|
63
|
+
{
|
|
64
|
+
onClick: () => i(n.value),
|
|
65
|
+
value: n.value,
|
|
66
|
+
children: /* @__PURE__ */ t(p, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
67
|
+
n.img && /* @__PURE__ */ o(
|
|
68
|
+
h,
|
|
69
|
+
{
|
|
70
|
+
src: n.img,
|
|
71
|
+
alt: n.label,
|
|
72
|
+
sx: { width: 20, height: 20 }
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ o(g, { variant: "body2", children: n.label })
|
|
76
|
+
] })
|
|
77
|
+
},
|
|
78
|
+
b
|
|
79
|
+
))
|
|
80
|
+
}
|
|
81
|
+
)
|
|
67
82
|
] });
|
|
68
83
|
}
|
|
69
84
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as B, Fragment as HA, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { US_DOLLAR_ISO3 as h, EVER_CHAIN_NETWORK as k, EURO_ISO3 as NA, DIALOG_SUCCESS_ICON as hA, BACK_BTN_ICON as IA, DIALOG_ERROR_ICON as mA } from "../../../util/constants.js";
|
|
3
3
|
import { useTheme as WA, Box as o, Grid as t, Typography as P, CircularProgress as K } from "@mui/material";
|
|
4
|
-
import "../../../constants-
|
|
5
|
-
import { i as dA } from "../../../wallet-
|
|
6
|
-
import { k as xA } from "../../../order-
|
|
7
|
-
import { c as CA } from "../../../stake-
|
|
4
|
+
import "../../../constants-B-_x7F8X.js";
|
|
5
|
+
import { i as dA } from "../../../wallet-Cw-0XynY.js";
|
|
6
|
+
import { k as xA } from "../../../order-DAiOqPsI.js";
|
|
7
|
+
import { c as CA } from "../../../stake-CzXNB3em.js";
|
|
8
8
|
import { useState as r, useEffect as M, createRef as F } from "react";
|
|
9
9
|
import { u as I } from "../../../react-redux-C7I9-1M6.js";
|
|
10
10
|
import { s as m, T as J } from "../../../tokenRow-BiNtHOKV.js";
|
|
@@ -14,19 +14,19 @@ import pA from "../../../hoc/withThemeProvider.js";
|
|
|
14
14
|
import "../../../index-DlQqWbXG.js";
|
|
15
15
|
import { AuthInnerContainer as ZA, AuthContainer as LA } from "../Shared/Container/index.js";
|
|
16
16
|
import $ from "../Shared/appButton.js";
|
|
17
|
-
import "../../../otpForm-
|
|
17
|
+
import "../../../otpForm-WjQmPs8D.js";
|
|
18
18
|
import { useSnackBarContext as yA } from "../../../context/snackBarContext.js";
|
|
19
19
|
import TA from "../../../hooks/useEverestDispatch.js";
|
|
20
20
|
import "../../../index-CAoLi5Qq.js";
|
|
21
21
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
22
22
|
import "../../Shared/transition.js";
|
|
23
23
|
import "../../../tooltip-BW0UyWw7.js";
|
|
24
|
-
import "../../../util/conversions.js";
|
|
25
24
|
import "../../../moment-h96o7c8I.js";
|
|
25
|
+
import "../../../index.esm-I_Bp2YLf.js";
|
|
26
|
+
import "../../../util/conversions.js";
|
|
26
27
|
import "../../../index.esm-BsMAMhYW.js";
|
|
27
28
|
import "../../../web3-u4qDZYpo.js";
|
|
28
29
|
import "../../../index-ceeCtFuh.js";
|
|
29
|
-
import "../../../index.esm-I_Bp2YLf.js";
|
|
30
30
|
import { useDialogContext as UA } from "../../../context/dialogContext.js";
|
|
31
31
|
import "@mui/icons-material";
|
|
32
32
|
import u from "./dropdown.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as
|
|
1
|
+
import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as F, useRef as Y } from "react";
|
|
3
|
-
import { Backdrop as oe, CircularProgress as
|
|
3
|
+
import { Backdrop as oe, CircularProgress as P, Typography as a, 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
5
|
import { D as ie } from "../../../Delete-Bj8zmXnh.js";
|
|
6
6
|
import { C as ce } from "../../../Cancel-pHQsCjtK.js";
|
|
7
|
-
import
|
|
7
|
+
import ae from "../Shared/inputField.js";
|
|
8
8
|
import L from "../Shared/step.js";
|
|
9
|
-
import { W as
|
|
9
|
+
import { W as le } from "../../../react-webcam-B3cXh1XT.js";
|
|
10
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
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import { e as Ce } from "../../../index-
|
|
16
|
-
import { s as i } from "../../../styles.module-
|
|
13
|
+
import { u as ue } from "../../../react-redux-C7I9-1M6.js";
|
|
14
|
+
import { aj as he, ak as pe, al as fe, am as ge, an as xe, ao as De } from "../../../constants-B-_x7F8X.js";
|
|
15
|
+
import { e as Ce } from "../../../index-CREgBh59.js";
|
|
16
|
+
import { s as i } from "../../../styles.module-DYytghn2.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
|
|
20
|
+
import ve from "../../../hooks/useEverestDispatch.js";
|
|
21
21
|
const ye = () => ({
|
|
22
22
|
type: pe
|
|
23
23
|
}), Ee = (o) => ({
|
|
@@ -27,7 +27,7 @@ const ye = () => ({
|
|
|
27
27
|
type: xe,
|
|
28
28
|
payload: o
|
|
29
29
|
}), J = () => ({
|
|
30
|
-
type:
|
|
30
|
+
type: he
|
|
31
31
|
}), Te = (o) => ({
|
|
32
32
|
type: De,
|
|
33
33
|
payload: o
|
|
@@ -38,12 +38,12 @@ const ye = () => ({
|
|
|
38
38
|
showAlertMessage: o,
|
|
39
39
|
documentName: m,
|
|
40
40
|
setDocumentName: x,
|
|
41
|
-
setDocumentScreen:
|
|
41
|
+
setDocumentScreen: h
|
|
42
42
|
}) => /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
43
43
|
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 1 }),
|
|
44
|
-
/* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(a, { className: "secondary-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Name your document" }) }),
|
|
45
45
|
/* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
ae,
|
|
47
47
|
{
|
|
48
48
|
label: "Document Name",
|
|
49
49
|
value: m,
|
|
@@ -57,7 +57,7 @@ const ye = () => ({
|
|
|
57
57
|
onClick: () => {
|
|
58
58
|
if (!m)
|
|
59
59
|
return o({ message: "Please provide the document name" }), !1;
|
|
60
|
-
|
|
60
|
+
h(2);
|
|
61
61
|
},
|
|
62
62
|
disabled: !m,
|
|
63
63
|
fullWidth: !0,
|
|
@@ -68,16 +68,16 @@ const ye = () => ({
|
|
|
68
68
|
showAlertMessage: o,
|
|
69
69
|
uploadLoader: m,
|
|
70
70
|
uploadDocument: x,
|
|
71
|
-
documentFile:
|
|
72
|
-
setDocumentFile:
|
|
71
|
+
documentFile: h,
|
|
72
|
+
setDocumentFile: l,
|
|
73
73
|
setDocumentScreen: r
|
|
74
74
|
}) => {
|
|
75
75
|
const s = Y(null), [D, p] = f("Choose File");
|
|
76
76
|
return /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
77
77
|
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
/* @__PURE__ */ t(
|
|
80
|
-
/* @__PURE__ */ e(
|
|
78
|
+
/* @__PURE__ */ e(a, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
|
|
79
|
+
/* @__PURE__ */ t(u, { mt: 2, container: !0, spacing: 2, children: [
|
|
80
|
+
/* @__PURE__ */ e(u, { size: 6, children: /* @__PURE__ */ e(
|
|
81
81
|
g,
|
|
82
82
|
{
|
|
83
83
|
variantType: "secondary",
|
|
@@ -86,7 +86,7 @@ const ye = () => ({
|
|
|
86
86
|
children: "Use Camera"
|
|
87
87
|
}
|
|
88
88
|
) }),
|
|
89
|
-
/* @__PURE__ */ e(
|
|
89
|
+
/* @__PURE__ */ e(u, { size: 6, children: /* @__PURE__ */ e(
|
|
90
90
|
g,
|
|
91
91
|
{
|
|
92
92
|
variantType: "secondary",
|
|
@@ -111,8 +111,8 @@ const ye = () => ({
|
|
|
111
111
|
var E;
|
|
112
112
|
const y = (E = I.target) == null ? void 0 : E.result;
|
|
113
113
|
if (typeof y == "string") {
|
|
114
|
-
const
|
|
115
|
-
|
|
114
|
+
const W = y.split(/[,]/);
|
|
115
|
+
l(W[1]);
|
|
116
116
|
}
|
|
117
117
|
}, b.readAsDataURL(d.target.files[0]);
|
|
118
118
|
}
|
|
@@ -123,8 +123,8 @@ const ye = () => ({
|
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
125
|
m ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
-
/* @__PURE__ */ t(
|
|
126
|
+
/* @__PURE__ */ e(P, { size: 30, color: "inherit" }),
|
|
127
|
+
/* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
|
|
128
128
|
"Processing...",
|
|
129
129
|
/* @__PURE__ */ e("br", {}),
|
|
130
130
|
"one moment please"
|
|
@@ -134,22 +134,22 @@ const ye = () => ({
|
|
|
134
134
|
{
|
|
135
135
|
sx: { mt: 4, mb: 4 },
|
|
136
136
|
onClick: () => {
|
|
137
|
-
if (!
|
|
137
|
+
if (!h)
|
|
138
138
|
return o({ message: "Please provide the document" }), !1;
|
|
139
139
|
x();
|
|
140
140
|
},
|
|
141
|
-
disabled: !
|
|
141
|
+
disabled: !h,
|
|
142
142
|
fullWidth: !0,
|
|
143
143
|
children: /* @__PURE__ */ e("strong", { children: "Submit" })
|
|
144
144
|
}
|
|
145
145
|
)
|
|
146
146
|
] });
|
|
147
|
-
},
|
|
147
|
+
}, Pe = ({
|
|
148
148
|
showAlertMessage: o,
|
|
149
149
|
documentFile: m,
|
|
150
150
|
setDocumentFile: x,
|
|
151
|
-
uploadDocument:
|
|
152
|
-
uploadLoader:
|
|
151
|
+
uploadDocument: h,
|
|
152
|
+
uploadLoader: l
|
|
153
153
|
}) => {
|
|
154
154
|
const r = Y(null), s = {
|
|
155
155
|
audio: !1,
|
|
@@ -171,16 +171,16 @@ const ye = () => ({
|
|
|
171
171
|
const d = r.current.getScreenshot(), b = d.split(/[,]/);
|
|
172
172
|
x(b[1]), p(d);
|
|
173
173
|
}
|
|
174
|
-
},
|
|
174
|
+
}, v = () => {
|
|
175
175
|
if (!D)
|
|
176
176
|
return o({
|
|
177
177
|
message: "Please take the photo of the document"
|
|
178
178
|
}), !1;
|
|
179
|
-
|
|
179
|
+
h();
|
|
180
180
|
};
|
|
181
181
|
return /* @__PURE__ */ t(c, { className: "text-center", children: [
|
|
182
182
|
/* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
|
|
183
|
-
D ? /* @__PURE__ */ t(
|
|
183
|
+
D ? /* @__PURE__ */ t(N, { children: [
|
|
184
184
|
/* @__PURE__ */ t(
|
|
185
185
|
c,
|
|
186
186
|
{
|
|
@@ -198,18 +198,18 @@ const ye = () => ({
|
|
|
198
198
|
]
|
|
199
199
|
}
|
|
200
200
|
),
|
|
201
|
-
|
|
202
|
-
/* @__PURE__ */ e(
|
|
203
|
-
/* @__PURE__ */ t(
|
|
201
|
+
l ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
|
|
202
|
+
/* @__PURE__ */ e(P, { size: 30, color: "inherit" }),
|
|
203
|
+
/* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
|
|
204
204
|
"Processing...",
|
|
205
205
|
/* @__PURE__ */ e("br", {}),
|
|
206
206
|
"one moment please"
|
|
207
207
|
] })
|
|
208
|
-
] }) : /* @__PURE__ */ t(
|
|
208
|
+
] }) : /* @__PURE__ */ t(N, { children: [
|
|
209
209
|
/* @__PURE__ */ e(
|
|
210
210
|
g,
|
|
211
211
|
{
|
|
212
|
-
onClick:
|
|
212
|
+
onClick: v,
|
|
213
213
|
sx: { mt: 6 },
|
|
214
214
|
disabled: !m,
|
|
215
215
|
fullWidth: !0,
|
|
@@ -227,11 +227,11 @@ const ye = () => ({
|
|
|
227
227
|
}
|
|
228
228
|
)
|
|
229
229
|
] })
|
|
230
|
-
] }) : /* @__PURE__ */ t(
|
|
230
|
+
] }) : /* @__PURE__ */ t(N, { children: [
|
|
231
231
|
/* @__PURE__ */ t(c, { className: i["doc-video-box"], children: [
|
|
232
232
|
/* @__PURE__ */ e("span", {}),
|
|
233
233
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
234
|
+
le,
|
|
235
235
|
{
|
|
236
236
|
className: i["video-box-inner-content"],
|
|
237
237
|
audio: !1,
|
|
@@ -248,7 +248,7 @@ const ye = () => ({
|
|
|
248
248
|
] })
|
|
249
249
|
] });
|
|
250
250
|
}, Ke = ({ showAlertMessage: o, identityDocs: m }) => {
|
|
251
|
-
const { openDialog: x, ConfirmDialog:
|
|
251
|
+
const { openDialog: x, ConfirmDialog: h } = Ne(), l = 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), [W, O] = f(!1), [w, S] = f(1), [K, Q] = f(!1), [U, q] = f(""), [R, _] = f("");
|
|
252
252
|
F(() => {
|
|
253
253
|
C && o({ message: C });
|
|
254
254
|
}, [C]), F(() => {
|
|
@@ -259,22 +259,22 @@ const ye = () => ({
|
|
|
259
259
|
return o({ message: "Please provide the document name" }), !1;
|
|
260
260
|
if (!R)
|
|
261
261
|
return o({ message: "Please provide the document" }), !1;
|
|
262
|
-
|
|
262
|
+
l(
|
|
263
263
|
ke({
|
|
264
264
|
filename: U.trim(),
|
|
265
265
|
content: R
|
|
266
266
|
})
|
|
267
267
|
);
|
|
268
268
|
}, X = () => {
|
|
269
|
-
|
|
269
|
+
l(ye());
|
|
270
270
|
};
|
|
271
271
|
F(() => {
|
|
272
272
|
X();
|
|
273
273
|
}, []);
|
|
274
274
|
const Z = (n) => {
|
|
275
|
-
|
|
275
|
+
l(Ee(n));
|
|
276
276
|
}, ee = (n) => {
|
|
277
|
-
|
|
277
|
+
l(Se(n));
|
|
278
278
|
}, te = (n) => {
|
|
279
279
|
x({
|
|
280
280
|
icon: be,
|
|
@@ -287,15 +287,15 @@ const ye = () => ({
|
|
|
287
287
|
cancelButtonShow: !0
|
|
288
288
|
});
|
|
289
289
|
}, ne = (n) => {
|
|
290
|
-
|
|
290
|
+
l(Te(n));
|
|
291
291
|
}, M = ({ data: n, type: T }) => T === "identity" ? /* @__PURE__ */ e(
|
|
292
292
|
c,
|
|
293
293
|
{
|
|
294
294
|
className: i["menu-item"],
|
|
295
295
|
onClick: () => n.documentId && Z(n.documentId),
|
|
296
|
-
children: /* @__PURE__ */ t(
|
|
297
|
-
/* @__PURE__ */ e(
|
|
298
|
-
/* @__PURE__ */ e(
|
|
296
|
+
children: /* @__PURE__ */ t(u, { container: !0, sx: { width: "100%" }, children: [
|
|
297
|
+
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.documentType && me(n.documentType) }) }) }) }),
|
|
298
|
+
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
|
|
299
299
|
] })
|
|
300
300
|
}
|
|
301
301
|
) : /* @__PURE__ */ t(c, { sx: { position: "relative" }, className: i["menu-item"], children: [
|
|
@@ -308,22 +308,22 @@ const ye = () => ({
|
|
|
308
308
|
}
|
|
309
309
|
),
|
|
310
310
|
/* @__PURE__ */ t(
|
|
311
|
-
|
|
311
|
+
u,
|
|
312
312
|
{
|
|
313
313
|
onClick: () => ee(n.filename),
|
|
314
314
|
container: !0,
|
|
315
315
|
sx: { width: "100%" },
|
|
316
316
|
children: [
|
|
317
|
-
/* @__PURE__ */ e(
|
|
318
|
-
/* @__PURE__ */ e(
|
|
317
|
+
/* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
|
|
318
|
+
/* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
|
|
319
319
|
]
|
|
320
320
|
}
|
|
321
321
|
)
|
|
322
322
|
] }), A = () => {
|
|
323
323
|
q(""), _(""), S(1), Q(!1);
|
|
324
324
|
};
|
|
325
|
-
return /* @__PURE__ */ t(
|
|
326
|
-
/* @__PURE__ */ e(
|
|
325
|
+
return /* @__PURE__ */ t(N, { children: [
|
|
326
|
+
/* @__PURE__ */ e(h, {}),
|
|
327
327
|
/* @__PURE__ */ e(
|
|
328
328
|
oe,
|
|
329
329
|
{
|
|
@@ -332,10 +332,10 @@ const ye = () => ({
|
|
|
332
332
|
zIndex: (n) => n.zIndex.drawer + 1e3
|
|
333
333
|
},
|
|
334
334
|
open: b,
|
|
335
|
-
children: /* @__PURE__ */ e(
|
|
335
|
+
children: /* @__PURE__ */ e(P, { color: "inherit" })
|
|
336
336
|
}
|
|
337
337
|
),
|
|
338
|
-
/* @__PURE__ */ e(
|
|
338
|
+
/* @__PURE__ */ e(a, { className: i.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
|
|
339
339
|
s.length > 0 && /* @__PURE__ */ t(
|
|
340
340
|
re,
|
|
341
341
|
{
|
|
@@ -349,10 +349,10 @@ const ye = () => ({
|
|
|
349
349
|
]
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
D ? /* @__PURE__ */ e(c, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(
|
|
352
|
+
D ? /* @__PURE__ */ e(c, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(P, {}) }) : /* @__PURE__ */ t(N, { children: [
|
|
353
353
|
m && m.map((n, T) => /* @__PURE__ */ e(M, { data: n, type: "identity" }, T)),
|
|
354
354
|
s && s.map((n, T) => /* @__PURE__ */ e(M, { data: n, type: "normal" }, T)),
|
|
355
|
-
!m && s.length === 0 && /* @__PURE__ */ e(
|
|
355
|
+
!m && s.length === 0 && /* @__PURE__ */ e(a, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
|
|
356
356
|
] }),
|
|
357
357
|
/* @__PURE__ */ e(
|
|
358
358
|
g,
|
|
@@ -360,13 +360,13 @@ const ye = () => ({
|
|
|
360
360
|
sx: { mt: 4 },
|
|
361
361
|
onClick: () => Q(!0),
|
|
362
362
|
fullWidth: !0,
|
|
363
|
-
children: /* @__PURE__ */ e("strong", { children: "Add
|
|
363
|
+
children: /* @__PURE__ */ e("strong", { children: "Add New Document" })
|
|
364
364
|
}
|
|
365
365
|
),
|
|
366
366
|
/* @__PURE__ */ t(
|
|
367
367
|
B,
|
|
368
368
|
{
|
|
369
|
-
open:
|
|
369
|
+
open: W,
|
|
370
370
|
fullWidth: !0,
|
|
371
371
|
onClose: () => O(!1),
|
|
372
372
|
children: [
|
|
@@ -392,15 +392,15 @@ const ye = () => ({
|
|
|
392
392
|
/* @__PURE__ */ t(
|
|
393
393
|
B,
|
|
394
394
|
{
|
|
395
|
-
open: !!
|
|
395
|
+
open: !!v,
|
|
396
396
|
fullWidth: !0,
|
|
397
|
-
onClose: () =>
|
|
397
|
+
onClose: () => l(J()),
|
|
398
398
|
children: [
|
|
399
399
|
/* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
|
|
400
400
|
k,
|
|
401
401
|
{
|
|
402
402
|
"aria-label": "close",
|
|
403
|
-
onClick: () =>
|
|
403
|
+
onClick: () => l(J()),
|
|
404
404
|
sx: {
|
|
405
405
|
position: "absolute",
|
|
406
406
|
right: 8,
|
|
@@ -412,17 +412,17 @@ const ye = () => ({
|
|
|
412
412
|
) }),
|
|
413
413
|
/* @__PURE__ */ e(H, { sx: { mt: 2 } }),
|
|
414
414
|
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ t(c, { children: [
|
|
415
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ e(a, { variant: "h5", mb: 3, children: "Front Image" }),
|
|
416
416
|
/* @__PURE__ */ e(
|
|
417
417
|
"img",
|
|
418
418
|
{
|
|
419
419
|
className: i["video-box-inner-content"],
|
|
420
|
-
src: "data:image/jpeg;base64," +
|
|
420
|
+
src: "data:image/jpeg;base64," + v,
|
|
421
421
|
alt: "Front"
|
|
422
422
|
}
|
|
423
423
|
),
|
|
424
|
-
d && /* @__PURE__ */ t(
|
|
425
|
-
/* @__PURE__ */ e(
|
|
424
|
+
d && /* @__PURE__ */ t(N, { children: [
|
|
425
|
+
/* @__PURE__ */ e(a, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
|
|
426
426
|
/* @__PURE__ */ e(
|
|
427
427
|
"img",
|
|
428
428
|
{
|
|
@@ -442,6 +442,13 @@ const ye = () => ({
|
|
|
442
442
|
fullWidth: !0,
|
|
443
443
|
open: K,
|
|
444
444
|
onClose: A,
|
|
445
|
+
slotProps: {
|
|
446
|
+
paper: {
|
|
447
|
+
sx: {
|
|
448
|
+
borderRadius: "14px"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
445
452
|
TransitionComponent: de,
|
|
446
453
|
children: [
|
|
447
454
|
/* @__PURE__ */ t(c, { className: i["asset-header"], children: [
|
|
@@ -457,7 +464,7 @@ const ye = () => ({
|
|
|
457
464
|
}
|
|
458
465
|
),
|
|
459
466
|
/* @__PURE__ */ e(
|
|
460
|
-
|
|
467
|
+
a,
|
|
461
468
|
{
|
|
462
469
|
variant: "subtitle1",
|
|
463
470
|
component: "p",
|
|
@@ -496,7 +503,7 @@ const ye = () => ({
|
|
|
496
503
|
}
|
|
497
504
|
),
|
|
498
505
|
3: /* @__PURE__ */ e(
|
|
499
|
-
|
|
506
|
+
Pe,
|
|
500
507
|
{
|
|
501
508
|
showAlertMessage: o,
|
|
502
509
|
setDocumentScreen: S,
|