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.
Files changed (109) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{PlayArrow-BVDyfxsQ.js → PlayArrow-WUr_Eyo1.js} +1 -1
  3. package/dist/assets/styles.css +1 -1
  4. package/dist/assets/styles2.css +1 -1
  5. package/dist/{auth-DTJdu6mq.js → auth-Cg-RJNB1.js} +1 -1
  6. package/dist/bank-CPJa0NOE.js +47 -0
  7. package/dist/components/RocketRamp/MinimalKyc/form.js +3 -3
  8. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  9. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  11. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  12. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  13. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  14. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  15. package/dist/components/RocketRamp/Player/Sell/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  23. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  24. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  25. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  26. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  27. package/dist/components/Shared/FullKyc/countryList.js +33 -30
  28. package/dist/components/Shared/FullKyc/edd.js +3 -3
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +68 -64
  31. package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  34. package/dist/components/Shared/Sumsub/index.js +2 -2
  35. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  36. package/dist/components/Wallet/Account/createIban.js +14 -314
  37. package/dist/components/Wallet/Account/eWallet.js +33 -35
  38. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  39. package/dist/components/Wallet/Account/iban.js +75 -54
  40. package/dist/components/Wallet/Account/ibanItem.js +3 -3
  41. package/dist/components/Wallet/Account/index.d.ts +1 -0
  42. package/dist/components/Wallet/Account/index.js +221 -184
  43. package/dist/components/Wallet/Account/sendIban.js +2 -2
  44. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  45. package/dist/components/Wallet/Buy/form.js +5 -5
  46. package/dist/components/Wallet/Buy/index.js +6 -6
  47. package/dist/components/Wallet/Deposit/index.js +2 -2
  48. package/dist/components/Wallet/EnterpriseKyc/edd.js +2 -2
  49. package/dist/components/Wallet/EnterpriseKyc/index.js +4 -4
  50. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +3 -3
  51. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +2 -2
  52. package/dist/components/Wallet/EnterpriseKyc/verify.js +2 -2
  53. package/dist/components/Wallet/History/index.js +2 -2
  54. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +96 -95
  55. package/dist/components/Wallet/Portfolio/dropdown.js +42 -27
  56. package/dist/components/Wallet/Portfolio/index.js +5 -5
  57. package/dist/components/Wallet/Profile/documents.js +121 -124
  58. package/dist/components/Wallet/Profile/index.js +4 -4
  59. package/dist/components/Wallet/Profile/storage.js +15 -15
  60. package/dist/components/Wallet/Receive/index.js +3 -3
  61. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  62. package/dist/components/Wallet/Sell/form.js +5 -5
  63. package/dist/components/Wallet/Sell/index.js +6 -6
  64. package/dist/components/Wallet/Send/index.js +36 -36
  65. package/dist/components/Wallet/Shared/Auth/otpForm.js +3 -3
  66. package/dist/components/Wallet/Shared/BankSelect/index.js +4 -4
  67. package/dist/components/Wallet/Shared/CardCorp/index.js +2 -2
  68. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  69. package/dist/components/Wallet/Shared/Container/index.js +19 -18
  70. package/dist/components/Wallet/Shared/addBank.js +4 -4
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +7 -7
  72. package/dist/components/Wallet/Shared/manualSend.js +4 -4
  73. package/dist/components/Wallet/SignIn/index.js +3 -3
  74. package/dist/components/Wallet/SignUp/index.js +3 -3
  75. package/dist/components/Wallet/Stake/gems/index.js +74 -62
  76. package/dist/components/Wallet/Stake/id/index.js +69 -65
  77. package/dist/components/Wallet/Stake/index.js +6 -6
  78. package/dist/components/Wallet/Swap/form.js +7 -7
  79. package/dist/components/Wallet/Swap/index.js +5 -5
  80. package/dist/components/Wallet/Withdraw/bankSelect.js +5 -5
  81. package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
  82. package/dist/components/Wallet/Withdraw/form.js +4 -4
  83. package/dist/components/Wallet/Withdraw/index.js +5 -5
  84. package/dist/{constants-DrmtdI1J.js → constants-BRS2liAt.js} +216 -214
  85. package/dist/createIban-DKoCQ4o3.js +573 -0
  86. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-BD0cJpXM.js} +1 -1
  87. package/dist/{index-CDwzoHu7.js → index-BUtxhHso.js} +87 -86
  88. package/dist/{index-3OQ4M69t.js → index-C2weAjLp.js} +70 -69
  89. package/dist/{index-BQNs1mvn.js → index-CREgBh59.js} +4 -3
  90. package/dist/{index-ILpK4BCB.js → index-CZhiRUiE.js} +4 -4
  91. package/dist/{index-CYX3j0V7.js → index-D7Eq-pbC.js} +65 -64
  92. package/dist/{index-C1WPCgkl.js → index-DX8IEulu.js} +5 -5
  93. package/dist/{index-CK4kLRAw.js → index-hgn4Pjw3.js} +5 -5
  94. package/dist/index-oPbOSCUk.js +545 -0
  95. package/dist/{kyc-ksV3vBP_.js → kyc-C7NviI9l.js} +1 -1
  96. package/dist/main.js +7 -7
  97. package/dist/{order-DEp_Lmar.js → order-DBuLYKfx.js} +1 -1
  98. package/dist/{otpForm-fiNqeB5H.js → otpForm-DhVp5Gvi.js} +2 -2
  99. package/dist/{stake-Ct7-_aWW.js → stake-DGXpiw_Y.js} +1 -1
  100. package/dist/styles.module-C99UuHOT.js +22 -0
  101. package/dist/styles.module-DFoezEqS.js +28 -0
  102. package/dist/util/constants.d.ts +1 -0
  103. package/dist/util/constants.js +72 -71
  104. package/dist/{wallet-CauUBXou.js → wallet-BLx0XKpK.js} +1 -1
  105. package/package.json +7 -7
  106. package/dist/bank-C4pmTe--.js +0 -37
  107. package/dist/index-BBFbUCRZ.js +0 -537
  108. package/dist/styles.module-C1sNeKjL.js +0 -22
  109. package/dist/styles.module-CHPRGltL.js +0 -28
@@ -0,0 +1,545 @@
1
+ import { jsxs as A, Fragment as le, jsx as t } from "react/jsx-runtime";
2
+ import { useState as r, useEffect as M, useRef as Ae } from "react";
3
+ import { AuthContainer as Oe } from "./components/Wallet/Shared/Container/index.js";
4
+ import { Box as ee, Typography as te, FormControl as _e, InputLabel as Pe, Select as Re, MenuItem as oe, Grid as se } from "@mui/material";
5
+ import be from "./hoc/withThemeProvider.js";
6
+ import Se from "./components/Wallet/Shared/Input/index.js";
7
+ import ve from "./components/Wallet/Shared/appButton.js";
8
+ import "./index-DlQqWbXG.js";
9
+ import "./otpForm-DhVp5Gvi.js";
10
+ import { d as B, f as Be } from "./constants-BRS2liAt.js";
11
+ import { c as Le, d as Te } from "./kyc-C7NviI9l.js";
12
+ import { useSnackBarContext as pe } from "./context/snackBarContext.js";
13
+ import xe from "./hooks/useEverestDispatch.js";
14
+ import "./util/conversions.js";
15
+ import "./index-CAoLi5Qq.js";
16
+ import Ne from "./components/Wallet/Shared/step.js";
17
+ import "./react-webcam-B3cXh1XT.js";
18
+ import "./components/Shared/transition.js";
19
+ import "./tooltip-BW0UyWw7.js";
20
+ import "./moment-h96o7c8I.js";
21
+ import "./index.esm-BsMAMhYW.js";
22
+ import { c as Ie } from "./countries-BVn1FubK.js";
23
+ import "./web3-u4qDZYpo.js";
24
+ import "./index-ceeCtFuh.js";
25
+ import "./context/dialogContext.js";
26
+ import "@mui/icons-material";
27
+ import de from "./components/Shared/FullKyc/countryList.js";
28
+ import Ke from "./components/Shared/FullKyc/pep.js";
29
+ import { p as Fe } from "./index-CREgBh59.js";
30
+ import { u as H } from "./react-redux-C7I9-1M6.js";
31
+ import ze from "./components/Shared/FullKyc/edd.js";
32
+ import Me from "./components/Shared/Sumsub/index.js";
33
+ const qe = ({
34
+ inputComponent: g,
35
+ buttonComponent: Z,
36
+ setUserInfo: q,
37
+ userInfo: l,
38
+ docData: s,
39
+ setScreen: u,
40
+ userEmail: y,
41
+ kycFlow: h
42
+ }) => {
43
+ const d = xe(), { showAlertMessage: m } = pe(), o = g ?? Se, w = Z ?? ve, [a, c] = r(l.gender || ""), [f, L] = r(!1), [E, S] = r(l.email || ""), [ne, re] = r(!1), [$, ie] = r(""), [v, C] = r(l.address || ""), [T, n] = r(l.city || ""), [I, O] = r(l.state || ""), [K, U] = r(l.zipCode || ""), [_, V] = r(
44
+ l.country || null
45
+ ), [e, W] = r(!1);
46
+ M(() => {
47
+ y && (S(y), re(!0));
48
+ }, [y]), M(() => {
49
+ var i;
50
+ if (s != null && s.issuingCountry) {
51
+ s.gender && (c(s.gender), L(!0));
52
+ const x = Ie.find(
53
+ (p) => p.alpha3 === s.issuingCountry
54
+ );
55
+ q({ ...l, country: x, nationality: x });
56
+ const N = new Date(s.birthDate), z = N.getTimezoneOffset() * 6e4, R = new Date(
57
+ N.getTime() + z
58
+ );
59
+ if (ie(R.toLocaleDateString("en-US")), (i = s.checkedAddressBean) != null && i.street) {
60
+ const p = s.checkedAddressBean;
61
+ W(!0), C(p.street), n(p.city), O(p.state), U(p.postalCode);
62
+ }
63
+ } else
64
+ P();
65
+ }, []);
66
+ const P = () => {
67
+ d(Le());
68
+ };
69
+ return /* @__PURE__ */ A(le, { children: [
70
+ h !== B && /* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 2 }) }),
71
+ /* @__PURE__ */ A(ee, { mt: 4, children: [
72
+ /* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
73
+ h !== B && /* @__PURE__ */ A(le, { children: [
74
+ /* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
75
+ /* @__PURE__ */ t(
76
+ o,
77
+ {
78
+ sx: { mt: 3 },
79
+ label: "Date of Birth",
80
+ value: $,
81
+ disabled: !0,
82
+ required: !0
83
+ }
84
+ ),
85
+ /* @__PURE__ */ A(_e, { sx: { mt: 3 }, fullWidth: !0, children: [
86
+ /* @__PURE__ */ t(Pe, { children: "Gender" }),
87
+ /* @__PURE__ */ A(
88
+ Re,
89
+ {
90
+ value: a,
91
+ label: "Gender",
92
+ onChange: (i) => c(i.target.value),
93
+ disabled: !!(f && a),
94
+ required: !0,
95
+ children: [
96
+ /* @__PURE__ */ t(oe, { value: "M", children: "Male" }, "M"),
97
+ /* @__PURE__ */ t(oe, { value: "F", children: "Female" }, "F"),
98
+ /* @__PURE__ */ t(oe, { value: "X", children: "Another" }, "X")
99
+ ]
100
+ }
101
+ )
102
+ ] }),
103
+ /* @__PURE__ */ t(
104
+ o,
105
+ {
106
+ sx: { mt: 3 },
107
+ label: "Email",
108
+ value: E,
109
+ onChange: (i) => S(i.target.value),
110
+ disabled: ne,
111
+ required: !0
112
+ }
113
+ )
114
+ ] }),
115
+ /* @__PURE__ */ t(
116
+ o,
117
+ {
118
+ sx: { mt: 3 },
119
+ label: "Home Address",
120
+ value: v,
121
+ onChange: (i) => C(i.target.value),
122
+ disabled: !!(e && v),
123
+ required: !0
124
+ }
125
+ ),
126
+ /* @__PURE__ */ A(se, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
127
+ /* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
128
+ o,
129
+ {
130
+ label: "City",
131
+ value: T,
132
+ onChange: (i) => n(i.target.value),
133
+ disabled: !!(e && T),
134
+ required: !0
135
+ }
136
+ ) }),
137
+ /* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
138
+ o,
139
+ {
140
+ label: "State/Province",
141
+ value: I,
142
+ onChange: (i) => O(i.target.value)
143
+ }
144
+ ) })
145
+ ] }),
146
+ /* @__PURE__ */ t(
147
+ o,
148
+ {
149
+ sx: { mt: 3 },
150
+ label: "Zipcode",
151
+ value: K,
152
+ onChange: (i) => U(i.target.value),
153
+ disabled: !!(e && K),
154
+ required: !0
155
+ }
156
+ ),
157
+ /* @__PURE__ */ t(
158
+ de,
159
+ {
160
+ value: _,
161
+ onChange: V,
162
+ label: "Country of residence"
163
+ }
164
+ )
165
+ ] }),
166
+ /* @__PURE__ */ t(
167
+ w,
168
+ {
169
+ sx: { mt: 3 },
170
+ variant: "contained",
171
+ onClick: () => {
172
+ if (h !== B) {
173
+ if (!$)
174
+ return m({ message: "Please provide date of birth" });
175
+ if (!a)
176
+ return m({ message: "Please provide gender" });
177
+ }
178
+ if (!v)
179
+ return m({ message: "Please provide address" });
180
+ if (!T) return m({ message: "Please provide city" });
181
+ if (!K)
182
+ return m({ message: "Please provide zip code" });
183
+ if (!_)
184
+ return m({
185
+ message: "Please select country of residency"
186
+ });
187
+ q({
188
+ ...l,
189
+ gender: a,
190
+ email: E,
191
+ address: v,
192
+ city: T,
193
+ state: I,
194
+ zipCode: K,
195
+ country: _
196
+ }), u(
197
+ h !== B ? ce : me
198
+ );
199
+ },
200
+ disabled: h !== B && !E || h !== B && !a || !v || !_,
201
+ fullWidth: !0,
202
+ children: /* @__PURE__ */ t("strong", { children: "Next" })
203
+ }
204
+ )
205
+ ] });
206
+ }, we = ({
207
+ userInfo: g,
208
+ setUserInfo: Z,
209
+ setScreen: q,
210
+ inputComponent: l,
211
+ buttonComponent: s
212
+ }) => {
213
+ const { showAlertMessage: u } = pe(), y = l ?? Se, h = s ?? ve, [d, m] = r(
214
+ g.placeOfBirth || null
215
+ ), [o, w] = r(
216
+ g.nationality || null
217
+ ), [a, c] = r(g.occupation || ""), [f, L] = r(g.employer || "");
218
+ return /* @__PURE__ */ A(le, { children: [
219
+ /* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 3 }) }),
220
+ /* @__PURE__ */ A(ee, { mt: 4, children: [
221
+ /* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
222
+ /* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
223
+ /* @__PURE__ */ t(
224
+ de,
225
+ {
226
+ value: d,
227
+ onChange: m,
228
+ label: "Place Of Birth"
229
+ }
230
+ ),
231
+ /* @__PURE__ */ t(
232
+ de,
233
+ {
234
+ value: o,
235
+ onChange: w,
236
+ label: "Country of citizenship"
237
+ }
238
+ ),
239
+ /* @__PURE__ */ t(
240
+ y,
241
+ {
242
+ sx: { mt: 3 },
243
+ label: "Occupation",
244
+ value: a,
245
+ onChange: (S) => c(S.target.value)
246
+ }
247
+ ),
248
+ /* @__PURE__ */ t(
249
+ y,
250
+ {
251
+ sx: { mt: 3 },
252
+ label: "Employer",
253
+ value: f,
254
+ onChange: (S) => L(S.target.value)
255
+ }
256
+ )
257
+ ] }),
258
+ /* @__PURE__ */ t(
259
+ h,
260
+ {
261
+ sx: { mt: 3 },
262
+ variant: "contained",
263
+ onClick: () => {
264
+ if (!d) {
265
+ u({ message: "Please select place of birth" });
266
+ return;
267
+ }
268
+ if (!o) {
269
+ u({ message: "Please provide address" });
270
+ return;
271
+ }
272
+ if (!a) {
273
+ u({ message: "Please provide city" });
274
+ return;
275
+ }
276
+ Z({
277
+ ...g,
278
+ placeOfBirth: d,
279
+ nationality: o,
280
+ occupation: a,
281
+ employer: f
282
+ }), q(me);
283
+ },
284
+ disabled: !d || !o || !a || !f,
285
+ fullWidth: !0,
286
+ children: /* @__PURE__ */ t("strong", { children: "Next" })
287
+ }
288
+ )
289
+ ] });
290
+ }, ae = "INCODE_SCREEN", D = "USER_INFO_SCREEN", ce = "PERSONAL_DETAILS_SCREEN", me = "PEP_SCREEN", Ue = "EDD_SCREEN", We = {
291
+ BANK_STATEMENT: {
292
+ text: "",
293
+ file: [],
294
+ preview: []
295
+ },
296
+ PROOF_OF_INCOME: {
297
+ text: "",
298
+ file: [],
299
+ preview: []
300
+ },
301
+ SOURCE_OF_WEALTH: {
302
+ text: "",
303
+ file: [],
304
+ preview: []
305
+ }
306
+ }, Ge = ({
307
+ configurationId: g,
308
+ incodeApiKey: Z,
309
+ incodeApiUrl: q,
310
+ incodeOnBoardingUrl: l,
311
+ withContainer: s = !1,
312
+ successHandler: u,
313
+ updateScreen: y,
314
+ isModalView: h = !1,
315
+ kycFlow: d
316
+ }) => {
317
+ const m = Ae(!0), { showAlertMessage: o } = pe(), w = xe(), a = H((e) => e.user), c = H((e) => e.user.kyc);
318
+ H((e) => e.session.uuid);
319
+ const f = a.kyc, L = f.processComplete, E = H(Fe), S = {}, [ne, re] = r(S);
320
+ r({ token: "" });
321
+ const [$, ie] = r(""), [v, C] = r(
322
+ d === B ? D : ae
323
+ );
324
+ M(() => {
325
+ if (m.current) {
326
+ m.current = !1;
327
+ return;
328
+ }
329
+ let e;
330
+ switch (v) {
331
+ case D:
332
+ e = ae;
333
+ break;
334
+ case ce:
335
+ e = D;
336
+ break;
337
+ case me:
338
+ e = ce;
339
+ break;
340
+ default:
341
+ e = ae;
342
+ }
343
+ C(e);
344
+ }, [y]), M(() => {
345
+ let e;
346
+ return u && L && (E.shouldAutoCreate && E.currency ? e = setTimeout(() => {
347
+ o({
348
+ message: "KYC verification complete. Creating your Virtual IBAN...",
349
+ type: "success"
350
+ }), u();
351
+ }, 1e3) : (o({
352
+ message: "KYC request has been received and will be processed shortly.",
353
+ type: "success"
354
+ }), u())), () => {
355
+ e && clearTimeout(e);
356
+ };
357
+ }, [u, L, E.shouldAutoCreate, E.currency]);
358
+ const T = {
359
+ gender: "",
360
+ email: "",
361
+ address: "",
362
+ city: "",
363
+ state: "",
364
+ zipCode: "",
365
+ placeOfBirth: "",
366
+ country: "",
367
+ nationality: "",
368
+ occupation: "",
369
+ employer: "",
370
+ isPoliticalExpose: !1,
371
+ politicalExpose: "",
372
+ origin: "",
373
+ frequency: "",
374
+ reason: "",
375
+ source: ""
376
+ }, [n, I] = r(T), [O, K] = r(We);
377
+ M(() => {
378
+ O.BANK_STATEMENT.file.length > 0 && U(O);
379
+ }, [O]);
380
+ const U = (e) => {
381
+ _(
382
+ n.isPoliticalExpose,
383
+ n.politicalExpose,
384
+ n.frequency,
385
+ n.reason,
386
+ n.source,
387
+ n.origin,
388
+ e,
389
+ !0
390
+ );
391
+ }, _ = (e, W, P, F, i, x, N, z = !1) => {
392
+ var R, p, G;
393
+ if (d !== Be && !z) {
394
+ C(Ue);
395
+ return;
396
+ }
397
+ if (!f.loader) {
398
+ const X = {
399
+ street: n.address,
400
+ city: n.city,
401
+ postcode: n.zipCode,
402
+ state: n.state,
403
+ country: (R = n.country) == null ? void 0 : R.alpha3
404
+ }, J = {
405
+ isExposed: e,
406
+ exposed: W,
407
+ frequency: P,
408
+ reason: F,
409
+ source: i,
410
+ originFunds: x
411
+ }, Q = {
412
+ frequency: P,
413
+ reason: F,
414
+ source: i,
415
+ originFunds: x
416
+ }, Y = {
417
+ kycFlow: d,
418
+ email: n.email,
419
+ gender: n.gender,
420
+ birthPlace: (p = n.placeOfBirth) == null ? void 0 : p.alpha3,
421
+ nationality: (G = n.nationality) == null ? void 0 : G.alpha3,
422
+ occupation: n.occupation,
423
+ employer: n.employer,
424
+ residentialAddress: X,
425
+ politicalExposure: J,
426
+ customerDueDiligence: Q,
427
+ workflow: {
428
+ token: $
429
+ }
430
+ };
431
+ if (N) {
432
+ const j = Object.entries(N).filter(([k, b]) => b.file && b.file.length > 0).map(([k, b]) => ({
433
+ file: b.file[0],
434
+ type: k
435
+ }));
436
+ j.length > 0 && (Y.eddDocuments = j);
437
+ }
438
+ w(Te(Y));
439
+ }
440
+ };
441
+ M(() => {
442
+ var P, F, i, x, N, z, R, p, G, X, J, Q, Y, j, k, b, ue, fe, he, Ee, Ce, ge, ye;
443
+ const e = c == null ? void 0 : c.sumsubDocumentData;
444
+ if (!e) return;
445
+ const W = {
446
+ name: {
447
+ fullName: `${((P = e == null ? void 0 : e.documentData) == null ? void 0 : P.firstName) ?? ""} ${((F = e == null ? void 0 : e.documentData) == null ? void 0 : F.lastName) ?? ""}`.trim(),
448
+ firstName: ((i = e == null ? void 0 : e.documentData) == null ? void 0 : i.firstName) ?? "",
449
+ givenName: ((x = e == null ? void 0 : e.documentData) == null ? void 0 : x.firstName) ?? "",
450
+ paternalLastName: ((N = e == null ? void 0 : e.documentData) == null ? void 0 : N.lastName) ?? ""
451
+ },
452
+ address: ((R = (z = e == null ? void 0 : e.documentData) == null ? void 0 : z.address) == null ? void 0 : R.street) ?? "",
453
+ checkedAddressBean: {
454
+ street: ((G = (p = e == null ? void 0 : e.documentData) == null ? void 0 : p.address) == null ? void 0 : G.street) ?? "",
455
+ city: ((J = (X = e == null ? void 0 : e.documentData) == null ? void 0 : X.address) == null ? void 0 : J.city) ?? "",
456
+ state: ((Y = (Q = e == null ? void 0 : e.documentData) == null ? void 0 : Q.address) == null ? void 0 : Y.state) ?? "",
457
+ postalCode: ((k = (j = e == null ? void 0 : e.documentData) == null ? void 0 : j.address) == null ? void 0 : k.postcode) ?? "",
458
+ zipColonyOptions: []
459
+ },
460
+ typeOfId: ((b = e == null ? void 0 : e.document) == null ? void 0 : b.docType) ?? "",
461
+ documentFrontSubtype: "",
462
+ documentBackSubtype: "",
463
+ issueFront: 0,
464
+ issueBack: 0,
465
+ birthDate: Date.parse(((ue = e == null ? void 0 : e.documentData) == null ? void 0 : ue.dateOfBirth) ?? "") || 0,
466
+ gender: ((fe = e == null ? void 0 : e.documentData) == null ? void 0 : fe.gender) ?? "",
467
+ personalNumber: ((he = e == null ? void 0 : e.documentData) == null ? void 0 : he.number) ?? "",
468
+ issuedAt: "",
469
+ expireAt: ((Ee = e == null ? void 0 : e.documentData) == null ? void 0 : Ee.dateOfExpiry) ?? "",
470
+ expirationDate: Date.parse(((Ce = e == null ? void 0 : e.documentData) == null ? void 0 : Ce.dateOfExpiry) ?? "") || 0,
471
+ issueDate: 0,
472
+ issuingCountry: ((ge = e == null ? void 0 : e.document) == null ? void 0 : ge.issuingCountry) ?? ((ye = e == null ? void 0 : e.documentData) == null ? void 0 : ye.issuingCountry) ?? "",
473
+ notExtracted: 0,
474
+ notExtractedDetails: [],
475
+ additionalAttrs: [],
476
+ ocrDataConfidence: {
477
+ birthDateConfidence: 0,
478
+ nameConfidence: 0,
479
+ givenNameConfidence: 0,
480
+ fathersSurnameConfidence: 0,
481
+ addressConfidence: 0,
482
+ issueDateConfidence: 0,
483
+ expirationDateConfidence: 0,
484
+ issuedAtConfidence: 0,
485
+ expireAtConfidence: 0,
486
+ personalNumberConfidence: 0
487
+ }
488
+ };
489
+ re(W), C(D);
490
+ }, [c == null ? void 0 : c.sumsubDocumentData]);
491
+ const V = {
492
+ INCODE_SCREEN: /* @__PURE__ */ t(Me, { onApplicantIdLoaded: ie }),
493
+ USER_INFO_SCREEN: /* @__PURE__ */ t(
494
+ qe,
495
+ {
496
+ docData: ne,
497
+ setScreen: C,
498
+ setUserInfo: I,
499
+ userInfo: n,
500
+ userEmail: a.profile.email,
501
+ kycFlow: d
502
+ }
503
+ ),
504
+ PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
505
+ we,
506
+ {
507
+ setScreen: C,
508
+ setUserInfo: I,
509
+ userInfo: n
510
+ }
511
+ ),
512
+ PEP_SCREEN: /* @__PURE__ */ t(
513
+ Ke,
514
+ {
515
+ setScreen: C,
516
+ setUserInfo: I,
517
+ userInfo: n,
518
+ processKyc: _,
519
+ processLoader: f.loader,
520
+ kycFlow: d
521
+ }
522
+ ),
523
+ EDD_SCREEN: /* @__PURE__ */ t(
524
+ ze,
525
+ {
526
+ kycStoreData: c,
527
+ eddData: O,
528
+ setEddData: K,
529
+ processKyc: U,
530
+ processLoader: f.loader
531
+ }
532
+ )
533
+ }[v];
534
+ return s ? /* @__PURE__ */ t(Oe, { addPadding: !0, children: V }) : V;
535
+ }, vt = be(Ge);
536
+ export {
537
+ Ue as E,
538
+ vt as F,
539
+ ae as I,
540
+ we as P,
541
+ qe as U,
542
+ D as a,
543
+ ce as b,
544
+ me as c
545
+ };
@@ -1,4 +1,4 @@
1
- import { a5 as s, a6 as e, a7 as t, a8 as E, a9 as _, aa as o, ab as c, ac as S } from "./constants-DrmtdI1J.js";
1
+ import { a7 as s, a8 as e, a9 as t, aa as E, ab as _, ac as o, ad as c, ae as S } from "./constants-BRS2liAt.js";
2
2
  const p = (a) => ({
3
3
  type: _,
4
4
  payload: a
package/dist/main.js CHANGED
@@ -11,13 +11,13 @@ import { default as g } from "./components/Wallet/Account/index.js";
11
11
  import { default as P } from "./components/Wallet/Stake/index.js";
12
12
  import { default as w } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
13
13
  import { default as C } from "./components/Wallet/SwapAndUniSwap/index.js";
14
- import { i as M } from "./index-CYX3j0V7.js";
15
- import { i as E } from "./index-CDwzoHu7.js";
16
- import { i as b } from "./index-C1WPCgkl.js";
17
- import { i as F } from "./index-3OQ4M69t.js";
14
+ import { i as M } from "./index-D7Eq-pbC.js";
15
+ import { i as E } from "./index-BUtxhHso.js";
16
+ import { i as b } from "./index-DX8IEulu.js";
17
+ import { i as F } from "./index-C2weAjLp.js";
18
18
  import { default as I } from "./components/Wallet/EnterpriseKyc/index.js";
19
19
  import { default as W } from "./components/Wallet/Deposit/index.js";
20
- import { F as j } from "./index-BBFbUCRZ.js";
20
+ import { F as j } from "./index-oPbOSCUk.js";
21
21
  import { useSnackBar as z } from "./hooks/useSnackBar.js";
22
22
  import { SnackBarContext as J, useSnackBarContext as L } from "./context/snackBarContext.js";
23
23
  import { useDialog as Q } from "./hooks/useDialog/index.js";
@@ -26,8 +26,8 @@ import { default as _ } from "./components/RocketRamp/Player/SignIn/index.js";
26
26
  import { default as oo } from "./components/RocketRamp/Player/SignUp/index.js";
27
27
  import { default as ao } from "./components/RocketRamp/Player/Dashboard/index.js";
28
28
  import { default as to } from "./components/RocketRamp/Transactions/index.js";
29
- import { i as po } from "./index-ILpK4BCB.js";
30
- import { i as so } from "./index-CK4kLRAw.js";
29
+ import { i as po } from "./index-CZhiRUiE.js";
30
+ import { i as so } from "./index-hgn4Pjw3.js";
31
31
  import { default as xo } from "./components/RocketRamp/MinimalKyc/index.js";
32
32
  import { default as io } from "./components/RocketRamp/Store/SignUp/index.js";
33
33
  import { default as Ro } from "./components/RocketRamp/Store/Dashboard/index.js";
@@ -1,4 +1,4 @@
1
- import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-DrmtdI1J.js";
1
+ import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-BRS2liAt.js";
2
2
  const O = (e) => ({
3
3
  type: d,
4
4
  payload: e
@@ -2,8 +2,8 @@ import { jsx as P, jsxs as re, Fragment as tn } from "react/jsx-runtime";
2
2
  import { styled as on, Box as _t, Stack as mt, Typography as bt } from "@mui/material";
3
3
  import * as d from "react";
4
4
  import $e, { useState as Dt, useEffect as nn } from "react";
5
- import "./constants-DrmtdI1J.js";
6
- import { l as rn } from "./auth-DTJdu6mq.js";
5
+ import "./constants-BRS2liAt.js";
6
+ import { l as rn } from "./auth-Cg-RJNB1.js";
7
7
  import { RESEND_EMAIL_TIMER as jt } from "./util/constants.js";
8
8
  import Bt from "./components/Wallet/Shared/appButton.js";
9
9
  import { P as e, j as sn, k as an, l as ln, n as cn, o as un, b as ne, i as dn, T as mo, a as se, g as ue, c as he, s as j, m as me, u as pe, d as ie, p as bo, r as Pe, q as Ot, e as zt, t as Wt, v as pn, w as fn, C as mn } from "./memoTheme-DnE8lj0t.js";
@@ -1,4 +1,4 @@
1
- import { S as t, N as a, P as e, Q as S } from "./constants-DrmtdI1J.js";
1
+ import { S as t, N as a, P as e, Q as S } from "./constants-BRS2liAt.js";
2
2
  const T = () => ({
3
3
  type: t
4
4
  }), o = (s) => ({
@@ -0,0 +1,22 @@
1
+ import './assets/styles2.css';const t = "_container_1dbo2_1", _ = "_active_1dbo2_43", o = {
2
+ container: t,
3
+ "inner-container": "_inner-container_1dbo2_15",
4
+ "sub-tabs": "_sub-tabs_1dbo2_29",
5
+ active: _,
6
+ "sub-tabs-item": "_sub-tabs-item_1dbo2_53",
7
+ "buy-sell-text": "_buy-sell-text_1dbo2_65",
8
+ "heading-text": "_heading-text_1dbo2_75",
9
+ "info-icon": "_info-icon_1dbo2_89",
10
+ "button-icon": "_button-icon_1dbo2_99",
11
+ "add-container": "_add-container_1dbo2_109",
12
+ "move-id": "_move-id_1dbo2_117",
13
+ "move-id-text": "_move-id-text_1dbo2_133",
14
+ "move-btn": "_move-btn_1dbo2_145",
15
+ "time-item": "_time-item_1dbo2_169",
16
+ "item-1st": "_item-1st_1dbo2_191",
17
+ "item-last": "_item-last_1dbo2_201",
18
+ "stake-modal-content": "_stake-modal-content_1dbo2_213"
19
+ };
20
+ export {
21
+ o as s
22
+ };
@@ -0,0 +1,28 @@
1
+ import './assets/styles.css';const e = "_container_1br0u_1", t = "_heading_1br0u_27", _ = "_sBtn_1br0u_73", r = "_twitterCancelBtn_1br0u_407", n = {
2
+ container: e,
3
+ "inner-container": "_inner-container_1br0u_13",
4
+ heading: t,
5
+ "profile-feat-btn": "_profile-feat-btn_1br0u_41",
6
+ "ref-btn": "_ref-btn_1br0u_57",
7
+ sBtn: _,
8
+ "doc-video-box": "_doc-video-box_1br0u_117",
9
+ "image-corner-color": "_image-corner-color_1br0u_193",
10
+ "video-box-inner-content": "_video-box-inner-content_1br0u_207",
11
+ "menu-item": "_menu-item_1br0u_217",
12
+ "remove-icon": "_remove-icon_1br0u_233",
13
+ "delete-disable": "_delete-disable_1br0u_247",
14
+ "confirm-edit": "_confirm-edit_1br0u_263",
15
+ "asset-header": "_asset-header_1br0u_279",
16
+ "asset-close-btn": "_asset-close-btn_1br0u_297",
17
+ "dialog-container": "_dialog-container_1br0u_311",
18
+ "confirm-dialog": "_confirm-dialog_1br0u_325",
19
+ "confirm-dialog-title": "_confirm-dialog-title_1br0u_333",
20
+ "tweet-text-parent": "_tweet-text-parent_1br0u_345",
21
+ "tweet-disable-text": "_tweet-disable-text_1br0u_371",
22
+ "tweet-text-area": "_tweet-text-area_1br0u_389",
23
+ twitterCancelBtn: r,
24
+ "kyc-approved": "_kyc-approved_1br0u_451"
25
+ };
26
+ export {
27
+ n as s
28
+ };
@@ -31,6 +31,7 @@ export declare const ENT_VISA_PAYMENT: string;
31
31
  export declare const ENT_VISA_PAYMENT_ACTIVE: string;
32
32
  export declare const CLOUD_ICON: string;
33
33
  export declare const STORAGE_SUCCESS: string;
34
+ export declare const BRAND_VORTEX_ID = "vortex";
34
35
  export declare const PAYMENT_PROVIDER_RAILSBANK = "railsbank";
35
36
  export declare const PAYMENT_PROVIDER_OPENPAYD = "open_payd";
36
37
  export declare const PAYMENT_PROVIDER_CHECKOUT = "checkout";