everest-npm-features 0.0.58 → 0.0.59
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-BRz9FV4L.js → PlayArrow-BlkZJiHn.js} +1 -1
- package/dist/{auth-CD7qxhDF.js → auth-WhDJHZtr.js} +1 -1
- package/dist/{bank-C2LtDonX.js → bank-BaOrdTcI.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +5 -4
- 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 +11 -10
- 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.js +5 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- 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 +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.d.ts +5 -0
- package/dist/components/Shared/Sumsub/index.js +83 -0
- package/dist/components/Wallet/Account/createIban.js +4 -3
- package/dist/components/Wallet/Account/ibanItem.js +5 -4
- package/dist/components/Wallet/Account/index.js +6 -5
- package/dist/components/Wallet/Account/sendIban.js +11 -11
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -5
- 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 +4 -3
- package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +13 -12
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/verify.js +4 -3
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +12 -11
- package/dist/components/Wallet/Portfolio/index.js +7 -6
- package/dist/components/Wallet/Profile/documents.js +15 -15
- package/dist/components/Wallet/Profile/index.js +4 -3
- package/dist/components/Wallet/Profile/storage.js +12 -12
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -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 +14 -13
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
- package/dist/components/Wallet/Shared/CardCorp/index.js +4 -3
- package/dist/components/Wallet/Shared/addBank.js +5 -4
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +5 -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 +6 -5
- package/dist/components/Wallet/Swap/form.js +7 -6
- 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-Styrbvke.js → constants-DREDnCMu.js} +482 -481
- package/dist/{cryptoAssets-CFtzXGbk.js → cryptoAssets-DbyDgq4J.js} +1 -1
- package/dist/{index-DAla2tRU.js → index-BXutc9ik.js} +8 -7
- package/dist/index-CWoxdH_Z.js +543 -0
- package/dist/{index-Du_jGnyO.js → index-CuPCW3XC.js} +29 -29
- package/dist/{index-DM6mBQ7L.js → index-DJ7xuxBy.js} +9 -8
- package/dist/{index-AVcxYfIV.js → index-DV1dVcrY.js} +31 -30
- package/dist/{index-Da-BlrMH.js → index-DYP5Ex_T.js} +9 -8
- package/dist/{index-CKjKCXeQ.js → index-PoMNqntN.js} +4 -4
- package/dist/index.esm-I_Bp2YLf.js +224 -0
- package/dist/kyc-D4s_B9Cf.js +33 -0
- package/dist/main.js +7 -7
- package/dist/{order-uVUTqaQ2.js → order-DGBbo_Ox.js} +1 -1
- package/dist/{stake-Dgx86wzO.js → stake-CdMc5H7D.js} +1 -1
- package/dist/util/constants.d.ts +4 -0
- package/dist/util/constants.js +104 -101
- package/dist/{wallet-BkdExH6h.js → wallet-DvfdQOju.js} +1 -1
- package/package.json +4 -2
- package/dist/index-g4Gy1BHB.js +0 -503
- package/dist/kyc-Ee4qAZby.js +0 -26
package/dist/index-g4Gy1BHB.js
DELETED
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { jsxs as S, Fragment as ee, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as r, useEffect as q, useRef as Ce } from "react";
|
|
3
|
-
import { AuthContainer as ye } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
-
import Se from "./components/Shared/Incode/index.js";
|
|
5
|
-
import be from "./hoc/withThemeProvider.js";
|
|
6
|
-
import ue from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
-
import pe from "./components/Wallet/Shared/appButton.js";
|
|
8
|
-
import "./index-DlQqWbXG.js";
|
|
9
|
-
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
10
|
-
import { d as N, f as ve } from "./constants-Styrbvke.js";
|
|
11
|
-
import { b as xe, c as De } from "./kyc-Ee4qAZby.js";
|
|
12
|
-
import { useSnackBarContext as se } from "./context/snackBarContext.js";
|
|
13
|
-
import me from "./hooks/useEverestDispatch.js";
|
|
14
|
-
import "./util/conversions.js";
|
|
15
|
-
import "./index-CAoLi5Qq.js";
|
|
16
|
-
import fe from "./components/Wallet/Shared/step.js";
|
|
17
|
-
import "./react-webcam-B3cXh1XT.js";
|
|
18
|
-
import "./components/Shared/transition.js";
|
|
19
|
-
import "./tooltip-3UvETWtS.js";
|
|
20
|
-
import "./components/Wallet/Shared/pin.js";
|
|
21
|
-
import "./moment-h96o7c8I.js";
|
|
22
|
-
import "./index.esm-BsMAMhYW.js";
|
|
23
|
-
import { c as _e } from "./countries-BVn1FubK.js";
|
|
24
|
-
import "./web3-u4qDZYpo.js";
|
|
25
|
-
import "./index-ceeCtFuh.js";
|
|
26
|
-
import { useDialogContext as Ne } from "./context/dialogContext.js";
|
|
27
|
-
import te from "./components/Shared/FullKyc/countryList.js";
|
|
28
|
-
import { B as G } from "./Box-B0YSYLco.js";
|
|
29
|
-
import { T as w } from "./Typography-pAaje37G.js";
|
|
30
|
-
import Pe from "./components/Shared/FullKyc/pep.js";
|
|
31
|
-
import { u as $ } from "./react-redux-C7I9-1M6.js";
|
|
32
|
-
import Oe from "./components/Shared/FullKyc/edd.js";
|
|
33
|
-
import { F as Re } from "./FormControl-RtZDQMdA.js";
|
|
34
|
-
import { I as Ae } from "./TextField-DPpRUQe3.js";
|
|
35
|
-
import { S as Be } from "./Select-CB5yWmyn.js";
|
|
36
|
-
import { M as J } from "./MenuItem-DUdYOJr4.js";
|
|
37
|
-
import { G as Q } from "./Grid-CFe3amXO.js";
|
|
38
|
-
const Le = ({
|
|
39
|
-
inputComponent: p,
|
|
40
|
-
buttonComponent: L,
|
|
41
|
-
setUserInfo: P,
|
|
42
|
-
userInfo: i,
|
|
43
|
-
docData: n,
|
|
44
|
-
setScreen: m,
|
|
45
|
-
userEmail: E,
|
|
46
|
-
kycFlow: u
|
|
47
|
-
}) => {
|
|
48
|
-
const c = me();
|
|
49
|
-
Ne();
|
|
50
|
-
const { showAlertMessage: d } = se(), a = p ?? ue, T = L ?? pe, [l, O] = r(i.gender || ""), [b, g] = r(!1), [v, C] = r(i.email || ""), [k, j] = r(!1), [z, Y] = r(""), [y, f] = r(i.address || ""), [R, t] = r(i.city || ""), [x, D] = r(i.state || ""), [A, K] = r(i.zipCode || ""), [_, ie] = r(
|
|
51
|
-
i.country || null
|
|
52
|
-
), [B, s] = r(!1);
|
|
53
|
-
q(() => {
|
|
54
|
-
E && (C(E), j(!0));
|
|
55
|
-
}, [E]), q(() => {
|
|
56
|
-
var o;
|
|
57
|
-
if (n != null && n.issuingCountry) {
|
|
58
|
-
n.gender && (O(n.gender), g(!0));
|
|
59
|
-
const F = _e.find(
|
|
60
|
-
(h) => h.alpha3 === n.issuingCountry
|
|
61
|
-
);
|
|
62
|
-
P({ ...i, country: F, nationality: F });
|
|
63
|
-
const M = new Date(n.birthDate), I = M.getTimezoneOffset() * 6e4, H = new Date(
|
|
64
|
-
M.getTime() + I
|
|
65
|
-
);
|
|
66
|
-
if (Y(H.toLocaleDateString("en-US")), (o = n.checkedAddressBean) != null && o.street) {
|
|
67
|
-
const h = n.checkedAddressBean;
|
|
68
|
-
s(!0), f(h.street), t(h.city), D(h.state), K(h.postalCode);
|
|
69
|
-
}
|
|
70
|
-
} else
|
|
71
|
-
Z();
|
|
72
|
-
}, []);
|
|
73
|
-
const Z = () => {
|
|
74
|
-
c(xe());
|
|
75
|
-
};
|
|
76
|
-
return /* @__PURE__ */ S(ee, { children: [
|
|
77
|
-
u !== N && /* @__PURE__ */ e(G, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(fe, { totalSteps: 4, currentStep: 2 }) }),
|
|
78
|
-
/* @__PURE__ */ S(G, { pl: 2, mt: 4, children: [
|
|
79
|
-
/* @__PURE__ */ e(w, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
80
|
-
u !== N && /* @__PURE__ */ S(ee, { children: [
|
|
81
|
-
/* @__PURE__ */ e(w, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
82
|
-
/* @__PURE__ */ e(
|
|
83
|
-
a,
|
|
84
|
-
{
|
|
85
|
-
sx: { mt: 3 },
|
|
86
|
-
label: "Date of Birth",
|
|
87
|
-
value: z,
|
|
88
|
-
disabled: !0,
|
|
89
|
-
required: !0
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
/* @__PURE__ */ S(Re, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
93
|
-
/* @__PURE__ */ e(Ae, { children: "Gender" }),
|
|
94
|
-
/* @__PURE__ */ S(
|
|
95
|
-
Be,
|
|
96
|
-
{
|
|
97
|
-
value: l,
|
|
98
|
-
label: "Gender",
|
|
99
|
-
onChange: (o) => O(o.target.value),
|
|
100
|
-
disabled: !!(b && l),
|
|
101
|
-
required: !0,
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ e(J, { value: "M", children: "Male" }, "M"),
|
|
104
|
-
/* @__PURE__ */ e(J, { value: "F", children: "Female" }, "F"),
|
|
105
|
-
/* @__PURE__ */ e(J, { value: "X", children: "Another" }, "X")
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
a,
|
|
112
|
-
{
|
|
113
|
-
sx: { mt: 3 },
|
|
114
|
-
label: "Email",
|
|
115
|
-
value: v,
|
|
116
|
-
onChange: (o) => C(o.target.value),
|
|
117
|
-
disabled: k,
|
|
118
|
-
required: !0
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
-
a,
|
|
124
|
-
{
|
|
125
|
-
sx: { mt: 3 },
|
|
126
|
-
label: "Home Address",
|
|
127
|
-
value: y,
|
|
128
|
-
onChange: (o) => f(o.target.value),
|
|
129
|
-
disabled: !!(B && y),
|
|
130
|
-
required: !0
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
/* @__PURE__ */ S(Q, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
134
|
-
/* @__PURE__ */ e(Q, { size: 6, children: /* @__PURE__ */ e(
|
|
135
|
-
a,
|
|
136
|
-
{
|
|
137
|
-
label: "City",
|
|
138
|
-
value: R,
|
|
139
|
-
onChange: (o) => t(o.target.value),
|
|
140
|
-
disabled: !!(B && R),
|
|
141
|
-
required: !0
|
|
142
|
-
}
|
|
143
|
-
) }),
|
|
144
|
-
/* @__PURE__ */ e(Q, { size: 6, children: /* @__PURE__ */ e(
|
|
145
|
-
a,
|
|
146
|
-
{
|
|
147
|
-
label: "State/Province",
|
|
148
|
-
value: x,
|
|
149
|
-
onChange: (o) => D(o.target.value),
|
|
150
|
-
required: !0
|
|
151
|
-
}
|
|
152
|
-
) })
|
|
153
|
-
] }),
|
|
154
|
-
/* @__PURE__ */ e(
|
|
155
|
-
a,
|
|
156
|
-
{
|
|
157
|
-
sx: { mt: 3 },
|
|
158
|
-
label: "Zipcode",
|
|
159
|
-
value: A,
|
|
160
|
-
onChange: (o) => K(o.target.value),
|
|
161
|
-
disabled: !!(B && A),
|
|
162
|
-
required: !0
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ e(
|
|
166
|
-
te,
|
|
167
|
-
{
|
|
168
|
-
value: _,
|
|
169
|
-
onChange: ie,
|
|
170
|
-
label: "Country of residence"
|
|
171
|
-
}
|
|
172
|
-
)
|
|
173
|
-
] }),
|
|
174
|
-
/* @__PURE__ */ e(
|
|
175
|
-
T,
|
|
176
|
-
{
|
|
177
|
-
sx: { mt: 3 },
|
|
178
|
-
variant: "contained",
|
|
179
|
-
onClick: () => {
|
|
180
|
-
if (u !== N) {
|
|
181
|
-
if (!z)
|
|
182
|
-
return d({ message: "Please provide date of birth" });
|
|
183
|
-
if (!l)
|
|
184
|
-
return d({ message: "Please provide gender" });
|
|
185
|
-
}
|
|
186
|
-
if (!y)
|
|
187
|
-
return d({ message: "Please provide address" });
|
|
188
|
-
if (!R) return d({ message: "Please provide city" });
|
|
189
|
-
if (!x) return d({ message: "Please provide state" });
|
|
190
|
-
if (!A)
|
|
191
|
-
return d({ message: "Please provide zip code" });
|
|
192
|
-
if (!_)
|
|
193
|
-
return d({
|
|
194
|
-
message: "Please select country of residency"
|
|
195
|
-
});
|
|
196
|
-
P({
|
|
197
|
-
...i,
|
|
198
|
-
gender: l,
|
|
199
|
-
email: v,
|
|
200
|
-
address: y,
|
|
201
|
-
city: R,
|
|
202
|
-
state: x,
|
|
203
|
-
zipCode: A,
|
|
204
|
-
country: _
|
|
205
|
-
}), m(
|
|
206
|
-
u !== N ? re : oe
|
|
207
|
-
);
|
|
208
|
-
},
|
|
209
|
-
disabled: u !== N && !v || u !== N && !l || !y || !_,
|
|
210
|
-
fullWidth: !0,
|
|
211
|
-
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
212
|
-
}
|
|
213
|
-
)
|
|
214
|
-
] });
|
|
215
|
-
}, Te = ({
|
|
216
|
-
userInfo: p,
|
|
217
|
-
setUserInfo: L,
|
|
218
|
-
setScreen: P,
|
|
219
|
-
inputComponent: i,
|
|
220
|
-
buttonComponent: n
|
|
221
|
-
}) => {
|
|
222
|
-
const { showAlertMessage: m } = se(), E = i ?? ue, u = n ?? pe, [c, d] = r(
|
|
223
|
-
p.placeOfBirth || null
|
|
224
|
-
), [a, T] = r(
|
|
225
|
-
p.nationality || null
|
|
226
|
-
), [l, O] = r(p.occupation || ""), [b, g] = r(p.employer || "");
|
|
227
|
-
return /* @__PURE__ */ S(ee, { children: [
|
|
228
|
-
/* @__PURE__ */ e(G, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(fe, { totalSteps: 4, currentStep: 3 }) }),
|
|
229
|
-
/* @__PURE__ */ S(G, { pl: 2, mt: 4, children: [
|
|
230
|
-
/* @__PURE__ */ e(w, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
231
|
-
/* @__PURE__ */ e(w, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
232
|
-
/* @__PURE__ */ e(
|
|
233
|
-
te,
|
|
234
|
-
{
|
|
235
|
-
value: c,
|
|
236
|
-
onChange: d,
|
|
237
|
-
label: "Place Of Birth"
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ e(
|
|
241
|
-
te,
|
|
242
|
-
{
|
|
243
|
-
value: a,
|
|
244
|
-
onChange: T,
|
|
245
|
-
label: "Country of citizenship"
|
|
246
|
-
}
|
|
247
|
-
),
|
|
248
|
-
/* @__PURE__ */ e(
|
|
249
|
-
E,
|
|
250
|
-
{
|
|
251
|
-
sx: { mt: 3 },
|
|
252
|
-
label: "Occupation",
|
|
253
|
-
value: l,
|
|
254
|
-
onChange: (C) => O(C.target.value)
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
/* @__PURE__ */ e(
|
|
258
|
-
E,
|
|
259
|
-
{
|
|
260
|
-
sx: { mt: 3 },
|
|
261
|
-
label: "Employer",
|
|
262
|
-
value: b,
|
|
263
|
-
onChange: (C) => g(C.target.value)
|
|
264
|
-
}
|
|
265
|
-
)
|
|
266
|
-
] }),
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
u,
|
|
269
|
-
{
|
|
270
|
-
sx: { mt: 3 },
|
|
271
|
-
variant: "contained",
|
|
272
|
-
onClick: () => {
|
|
273
|
-
if (!c) {
|
|
274
|
-
m({ message: "Please select place of birth" });
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
if (!a) {
|
|
278
|
-
m({ message: "Please provide address" });
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
if (!l) {
|
|
282
|
-
m({ message: "Please provide city" });
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
L({
|
|
286
|
-
...p,
|
|
287
|
-
placeOfBirth: c,
|
|
288
|
-
nationality: a,
|
|
289
|
-
occupation: l,
|
|
290
|
-
employer: b
|
|
291
|
-
}), P(oe);
|
|
292
|
-
},
|
|
293
|
-
disabled: !c || !a || !l || !b,
|
|
294
|
-
fullWidth: !0,
|
|
295
|
-
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
296
|
-
}
|
|
297
|
-
)
|
|
298
|
-
] });
|
|
299
|
-
}, V = "INCODE_SCREEN", W = "USER_INFO_SCREEN", re = "PERSONAL_DETAILS_SCREEN", oe = "PEP_SCREEN", Ke = "EDD_SCREEN", Fe = {
|
|
300
|
-
BANK_STATEMENT: {
|
|
301
|
-
text: "",
|
|
302
|
-
file: [],
|
|
303
|
-
preview: []
|
|
304
|
-
},
|
|
305
|
-
PROOF_OF_INCOME: {
|
|
306
|
-
text: "",
|
|
307
|
-
file: [],
|
|
308
|
-
preview: []
|
|
309
|
-
},
|
|
310
|
-
SOURCE_OF_WEALTH: {
|
|
311
|
-
text: "",
|
|
312
|
-
file: [],
|
|
313
|
-
preview: []
|
|
314
|
-
}
|
|
315
|
-
}, Me = ({
|
|
316
|
-
configurationId: p,
|
|
317
|
-
incodeApiKey: L,
|
|
318
|
-
incodeApiUrl: P,
|
|
319
|
-
incodeOnBoardingUrl: i,
|
|
320
|
-
withContainer: n = !1,
|
|
321
|
-
successHandler: m,
|
|
322
|
-
updateScreen: E,
|
|
323
|
-
isModalView: u = !1,
|
|
324
|
-
kycFlow: c
|
|
325
|
-
}) => {
|
|
326
|
-
const d = Ce(!0), { showAlertMessage: a } = se(), T = me(), l = $((s) => s.user), O = $((s) => s.user.kyc), b = $((s) => s.session.uuid), g = l.kyc, v = g.processComplete, C = {}, [k, j] = r(C), [z, Y] = r({ token: "" }), [y, f] = r(
|
|
327
|
-
c === N ? W : V
|
|
328
|
-
);
|
|
329
|
-
q(() => {
|
|
330
|
-
if (d.current) {
|
|
331
|
-
d.current = !1;
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
let s;
|
|
335
|
-
switch (y) {
|
|
336
|
-
case W:
|
|
337
|
-
s = V;
|
|
338
|
-
break;
|
|
339
|
-
case re:
|
|
340
|
-
s = W;
|
|
341
|
-
break;
|
|
342
|
-
case oe:
|
|
343
|
-
s = re;
|
|
344
|
-
break;
|
|
345
|
-
default:
|
|
346
|
-
s = V;
|
|
347
|
-
}
|
|
348
|
-
f(s);
|
|
349
|
-
}, [E]), q(() => {
|
|
350
|
-
m && v && (a({ message: "KYC has been done successfully.", type: "success" }), m());
|
|
351
|
-
}, [m, v]);
|
|
352
|
-
const R = {
|
|
353
|
-
gender: "",
|
|
354
|
-
email: "",
|
|
355
|
-
address: "",
|
|
356
|
-
city: "",
|
|
357
|
-
state: "",
|
|
358
|
-
zipCode: "",
|
|
359
|
-
placeOfBirth: "",
|
|
360
|
-
country: "",
|
|
361
|
-
nationality: "",
|
|
362
|
-
occupation: "",
|
|
363
|
-
employer: "",
|
|
364
|
-
isPoliticalExpose: !1,
|
|
365
|
-
politicalExpose: "",
|
|
366
|
-
origin: "",
|
|
367
|
-
frequency: "",
|
|
368
|
-
reason: "",
|
|
369
|
-
source: ""
|
|
370
|
-
}, [t, x] = r(R), [D, A] = r(Fe);
|
|
371
|
-
q(() => {
|
|
372
|
-
D.BANK_STATEMENT.file.length > 0 && K(D);
|
|
373
|
-
}, [D]);
|
|
374
|
-
const K = (s) => {
|
|
375
|
-
_(
|
|
376
|
-
t.isPoliticalExpose,
|
|
377
|
-
t.politicalExpose,
|
|
378
|
-
t.frequency,
|
|
379
|
-
t.reason,
|
|
380
|
-
t.source,
|
|
381
|
-
t.origin,
|
|
382
|
-
s,
|
|
383
|
-
!0
|
|
384
|
-
);
|
|
385
|
-
}, _ = (s, Z, X, o, F, M, I, H = !1) => {
|
|
386
|
-
var h, ne, ae;
|
|
387
|
-
if (c !== ve && !H) {
|
|
388
|
-
f(Ke);
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
if (!g.loader) {
|
|
392
|
-
const he = {
|
|
393
|
-
street: t.address,
|
|
394
|
-
city: t.city,
|
|
395
|
-
postcode: t.zipCode,
|
|
396
|
-
state: t.state,
|
|
397
|
-
country: (h = t.country) == null ? void 0 : h.alpha3
|
|
398
|
-
}, Ee = {
|
|
399
|
-
isExposed: s,
|
|
400
|
-
exposed: Z,
|
|
401
|
-
frequency: X,
|
|
402
|
-
reason: o,
|
|
403
|
-
source: F,
|
|
404
|
-
originFunds: M
|
|
405
|
-
}, ge = {
|
|
406
|
-
frequency: X,
|
|
407
|
-
reason: o,
|
|
408
|
-
source: F,
|
|
409
|
-
originFunds: M
|
|
410
|
-
}, le = {
|
|
411
|
-
kycFlow: c,
|
|
412
|
-
email: t.email,
|
|
413
|
-
gender: t.gender,
|
|
414
|
-
birthPlace: (ne = t.placeOfBirth) == null ? void 0 : ne.alpha3,
|
|
415
|
-
nationality: (ae = t.nationality) == null ? void 0 : ae.alpha3,
|
|
416
|
-
occupation: t.occupation,
|
|
417
|
-
employer: t.employer,
|
|
418
|
-
residentialAddress: he,
|
|
419
|
-
politicalExposure: Ee,
|
|
420
|
-
customerDueDiligence: ge,
|
|
421
|
-
workflow: {
|
|
422
|
-
token: z.token
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
if (I) {
|
|
426
|
-
const ce = Object.entries(I).filter(([de, U]) => U.file && U.file.length > 0).map(([de, U]) => ({
|
|
427
|
-
file: U.file[0],
|
|
428
|
-
type: de
|
|
429
|
-
}));
|
|
430
|
-
ce.length > 0 && (le.eddDocuments = ce);
|
|
431
|
-
}
|
|
432
|
-
T(De(le));
|
|
433
|
-
}
|
|
434
|
-
}, B = {
|
|
435
|
-
INCODE_SCREEN: /* @__PURE__ */ e(
|
|
436
|
-
Se,
|
|
437
|
-
{
|
|
438
|
-
uuid: b,
|
|
439
|
-
successHandler: () => {
|
|
440
|
-
f(W);
|
|
441
|
-
},
|
|
442
|
-
configurationId: p,
|
|
443
|
-
apiKey: L,
|
|
444
|
-
apiUrl: P,
|
|
445
|
-
onBoardingUrl: i,
|
|
446
|
-
setDocumentsData: j,
|
|
447
|
-
setIncodeSessionData: Y,
|
|
448
|
-
isModalView: u
|
|
449
|
-
}
|
|
450
|
-
),
|
|
451
|
-
USER_INFO_SCREEN: /* @__PURE__ */ e(
|
|
452
|
-
Le,
|
|
453
|
-
{
|
|
454
|
-
docData: k,
|
|
455
|
-
setScreen: f,
|
|
456
|
-
setUserInfo: x,
|
|
457
|
-
userInfo: t,
|
|
458
|
-
userEmail: l.profile.email,
|
|
459
|
-
kycFlow: c
|
|
460
|
-
}
|
|
461
|
-
),
|
|
462
|
-
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ e(
|
|
463
|
-
Te,
|
|
464
|
-
{
|
|
465
|
-
setScreen: f,
|
|
466
|
-
setUserInfo: x,
|
|
467
|
-
userInfo: t
|
|
468
|
-
}
|
|
469
|
-
),
|
|
470
|
-
PEP_SCREEN: /* @__PURE__ */ e(
|
|
471
|
-
Pe,
|
|
472
|
-
{
|
|
473
|
-
setScreen: f,
|
|
474
|
-
setUserInfo: x,
|
|
475
|
-
userInfo: t,
|
|
476
|
-
processKyc: _,
|
|
477
|
-
processLoader: g.loader,
|
|
478
|
-
kycFlow: c
|
|
479
|
-
}
|
|
480
|
-
),
|
|
481
|
-
EDD_SCREEN: /* @__PURE__ */ e(
|
|
482
|
-
Oe,
|
|
483
|
-
{
|
|
484
|
-
kycStoreData: O,
|
|
485
|
-
eddData: D,
|
|
486
|
-
setEddData: A,
|
|
487
|
-
processKyc: K,
|
|
488
|
-
processLoader: g.loader
|
|
489
|
-
}
|
|
490
|
-
)
|
|
491
|
-
}[y];
|
|
492
|
-
return n ? /* @__PURE__ */ e(ye, { addPadding: !1, children: B }) : B;
|
|
493
|
-
}, St = be(Me);
|
|
494
|
-
export {
|
|
495
|
-
Ke as E,
|
|
496
|
-
St as F,
|
|
497
|
-
V as I,
|
|
498
|
-
Te as P,
|
|
499
|
-
Le as U,
|
|
500
|
-
W as a,
|
|
501
|
-
re as b,
|
|
502
|
-
oe as c
|
|
503
|
-
};
|
package/dist/kyc-Ee4qAZby.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { a5 as s, a6 as t, a7 as e, a8 as o, a9 as y, aa as E } from "./constants-Styrbvke.js";
|
|
2
|
-
const p = (a) => ({
|
|
3
|
-
type: e,
|
|
4
|
-
payload: a
|
|
5
|
-
}), c = () => ({
|
|
6
|
-
type: s
|
|
7
|
-
}), R = () => ({
|
|
8
|
-
type: t
|
|
9
|
-
}), U = (a) => ({
|
|
10
|
-
type: o,
|
|
11
|
-
payload: a
|
|
12
|
-
}), T = (a) => ({
|
|
13
|
-
type: y,
|
|
14
|
-
payload: a
|
|
15
|
-
}), l = (a) => ({
|
|
16
|
-
type: E,
|
|
17
|
-
payload: a
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
U as a,
|
|
21
|
-
R as b,
|
|
22
|
-
l as c,
|
|
23
|
-
T as k,
|
|
24
|
-
c as r,
|
|
25
|
-
p as u
|
|
26
|
-
};
|