everest-npm-features 0.0.59 → 0.0.60

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.
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../Wallet/Shared/Container/index.js";
4
4
  import "../../../hoc/withThemeProvider.js";
5
- import { E as x, I as T, c as U, b as g, a as h, F as j } from "../../../index-CWoxdH_Z.js";
5
+ import { E as x, I as T, c as U, b as g, a as h, F as j } from "../../../index-B3HnUBnB.js";
6
6
  import "./pep.js";
7
7
  import "../../../constants-DREDnCMu.js";
8
8
  import "../../../kyc-D4s_B9Cf.js";
@@ -18,7 +18,7 @@ import "../../../moment-h96o7c8I.js";
18
18
  import "../../../index.esm-BsMAMhYW.js";
19
19
  import "../../../web3-u4qDZYpo.js";
20
20
  import "../../../index-ceeCtFuh.js";
21
- import { P as z } from "../../../index-CWoxdH_Z.js";
21
+ import { P as z } from "../../../index-B3HnUBnB.js";
22
22
  import "../../../context/dialogContext.js";
23
23
  import "./countryList.js";
24
24
  import "../../../Box-B0YSYLco.js";
@@ -21,7 +21,7 @@ import "../../../index.esm-BsMAMhYW.js";
21
21
  import "../../../countries-BVn1FubK.js";
22
22
  import "../../../web3-u4qDZYpo.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
- import { U as H } from "../../../index-CWoxdH_Z.js";
24
+ import { U as H } from "../../../index-B3HnUBnB.js";
25
25
  import "../../../context/dialogContext.js";
26
26
  import "./countryList.js";
27
27
  import "../../../Box-B0YSYLco.js";
@@ -31,7 +31,7 @@ import "../../../moment-h96o7c8I.js";
31
31
  import "../../../index.esm-BsMAMhYW.js";
32
32
  import "../../../web3-u4qDZYpo.js";
33
33
  import "../../../index-ceeCtFuh.js";
34
- import { F as K } from "../../../index-CWoxdH_Z.js";
34
+ import { F as K } from "../../../index-B3HnUBnB.js";
35
35
  import "../../../context/dialogContext.js";
36
36
  import { u as De } from "../../../useTheme-BQJ5lp0i.js";
37
37
  import { D as de, a as Oe } from "../../../DialogContent-BMwlOnbW.js";
@@ -22,11 +22,11 @@ import "./index.esm-BsMAMhYW.js";
22
22
  import { c as Be } from "./countries-BVn1FubK.js";
23
23
  import "./web3-u4qDZYpo.js";
24
24
  import "./index-ceeCtFuh.js";
25
- import { useDialogContext as Le } from "./context/dialogContext.js";
25
+ import { useDialogContext as be } from "./context/dialogContext.js";
26
26
  import le from "./components/Shared/FullKyc/countryList.js";
27
27
  import { B as D } from "./Box-B0YSYLco.js";
28
28
  import { T as ee } from "./Typography-pAaje37G.js";
29
- import be from "./components/Shared/FullKyc/pep.js";
29
+ import Le from "./components/Shared/FullKyc/pep.js";
30
30
  import { u as ne } from "./react-redux-C7I9-1M6.js";
31
31
  import Te from "./components/Shared/FullKyc/edd.js";
32
32
  import Fe from "./components/Shared/Sumsub/index.js";
@@ -37,7 +37,7 @@ import { M as ie } from "./MenuItem-DUdYOJr4.js";
37
37
  import { G as oe } from "./Grid-CFe3amXO.js";
38
38
  const ze = ({
39
39
  inputComponent: g,
40
- buttonComponent: j,
40
+ buttonComponent: k,
41
41
  setUserInfo: q,
42
42
  userInfo: l,
43
43
  docData: o,
@@ -46,8 +46,8 @@ const ze = ({
46
46
  kycFlow: E
47
47
  }) => {
48
48
  const d = xe();
49
- Le();
50
- const { showAlertMessage: c } = ce(), s = g ?? ye, U = j ?? Se, [a, f] = n(l.gender || ""), [u, F] = n(!1), [I, y] = n(l.email || ""), [te, re] = n(!1), [Y, Z] = n(""), [p, $] = n(l.address || ""), [r, K] = n(l.city || ""), [S, X] = n(l.state || ""), [N, W] = n(l.zipCode || ""), [O, e] = n(
49
+ be();
50
+ const { showAlertMessage: c } = ce(), s = g ?? ye, U = k ?? Se, [a, p] = n(l.gender || ""), [u, F] = n(!1), [I, y] = n(l.email || ""), [te, re] = n(!1), [Y, Z] = n(""), [m, $] = n(l.address || ""), [r, K] = n(l.city || ""), [S, X] = n(l.state || ""), [N, W] = n(l.zipCode || ""), [O, e] = n(
51
51
  l.country || null
52
52
  ), [A, _] = n(!1);
53
53
  z(() => {
@@ -55,17 +55,17 @@ const ze = ({
55
55
  }, [C]), z(() => {
56
56
  var i;
57
57
  if (o != null && o.issuingCountry) {
58
- o.gender && (f(o.gender), F(!0));
58
+ o.gender && (p(o.gender), F(!0));
59
59
  const x = Be.find(
60
- (m) => m.alpha3 === o.issuingCountry
60
+ (f) => f.alpha3 === o.issuingCountry
61
61
  );
62
62
  q({ ...l, country: x, nationality: x });
63
- const R = new Date(o.birthDate), B = R.getTimezoneOffset() * 6e4, L = new Date(
63
+ const R = new Date(o.birthDate), B = R.getTimezoneOffset() * 6e4, b = new Date(
64
64
  R.getTime() + B
65
65
  );
66
- if (Z(L.toLocaleDateString("en-US")), (i = o.checkedAddressBean) != null && i.street) {
67
- const m = o.checkedAddressBean;
68
- _(!0), $(m.street), K(m.city), X(m.state), W(m.postalCode);
66
+ if (Z(b.toLocaleDateString("en-US")), (i = o.checkedAddressBean) != null && i.street) {
67
+ const f = o.checkedAddressBean;
68
+ _(!0), $(f.street), K(f.city), X(f.state), W(f.postalCode);
69
69
  }
70
70
  } else
71
71
  P();
@@ -96,7 +96,7 @@ const ze = ({
96
96
  {
97
97
  value: a,
98
98
  label: "Gender",
99
- onChange: (i) => f(i.target.value),
99
+ onChange: (i) => p(i.target.value),
100
100
  disabled: !!(u && a),
101
101
  required: !0,
102
102
  children: [
@@ -124,9 +124,9 @@ const ze = ({
124
124
  {
125
125
  sx: { mt: 3 },
126
126
  label: "Home Address",
127
- value: p,
127
+ value: m,
128
128
  onChange: (i) => $(i.target.value),
129
- disabled: !!(A && p),
129
+ disabled: !!(A && m),
130
130
  required: !0
131
131
  }
132
132
  ),
@@ -183,7 +183,7 @@ const ze = ({
183
183
  if (!a)
184
184
  return c({ message: "Please provide gender" });
185
185
  }
186
- if (!p)
186
+ if (!m)
187
187
  return c({ message: "Please provide address" });
188
188
  if (!r) return c({ message: "Please provide city" });
189
189
  if (!S) return c({ message: "Please provide state" });
@@ -197,7 +197,7 @@ const ze = ({
197
197
  ...l,
198
198
  gender: a,
199
199
  email: I,
200
- address: p,
200
+ address: m,
201
201
  city: r,
202
202
  state: S,
203
203
  zipCode: N,
@@ -206,7 +206,7 @@ const ze = ({
206
206
  E !== T ? de : pe
207
207
  );
208
208
  },
209
- disabled: E !== T && !I || E !== T && !a || !p || !O,
209
+ disabled: E !== T && !I || E !== T && !a || !m || !O,
210
210
  fullWidth: !0,
211
211
  children: /* @__PURE__ */ t("strong", { children: "Next" })
212
212
  }
@@ -214,7 +214,7 @@ const ze = ({
214
214
  ] });
215
215
  }, qe = ({
216
216
  userInfo: g,
217
- setUserInfo: j,
217
+ setUserInfo: k,
218
218
  setScreen: q,
219
219
  inputComponent: l,
220
220
  buttonComponent: o
@@ -223,7 +223,7 @@ const ze = ({
223
223
  g.placeOfBirth || null
224
224
  ), [s, U] = n(
225
225
  g.nationality || null
226
- ), [a, f] = n(g.occupation || ""), [u, F] = n(g.employer || "");
226
+ ), [a, p] = n(g.occupation || ""), [u, F] = n(g.employer || "");
227
227
  return /* @__PURE__ */ v(ae, { children: [
228
228
  /* @__PURE__ */ t(D, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(ve, { totalSteps: 4, currentStep: 3 }) }),
229
229
  /* @__PURE__ */ v(D, { pl: 2, mt: 4, children: [
@@ -251,7 +251,7 @@ const ze = ({
251
251
  sx: { mt: 3 },
252
252
  label: "Occupation",
253
253
  value: a,
254
- onChange: (y) => f(y.target.value)
254
+ onChange: (y) => p(y.target.value)
255
255
  }
256
256
  ),
257
257
  /* @__PURE__ */ t(
@@ -282,7 +282,7 @@ const ze = ({
282
282
  h({ message: "Please provide city" });
283
283
  return;
284
284
  }
285
- j({
285
+ k({
286
286
  ...g,
287
287
  placeOfBirth: d,
288
288
  nationality: s,
@@ -314,7 +314,7 @@ const ze = ({
314
314
  }
315
315
  }, we = ({
316
316
  configurationId: g,
317
- incodeApiKey: j,
317
+ incodeApiKey: k,
318
318
  incodeApiUrl: q,
319
319
  incodeOnBoardingUrl: l,
320
320
  withContainer: o = !1,
@@ -323,11 +323,11 @@ const ze = ({
323
323
  isModalView: E = !1,
324
324
  kycFlow: d
325
325
  }) => {
326
- const c = Ne(!0), { showAlertMessage: s } = ce(), U = xe(), a = ne((e) => e.user), f = ne((e) => e.user.kyc);
326
+ const c = Ne(!0), { showAlertMessage: s } = ce(), U = xe(), a = ne((e) => e.user), p = ne((e) => e.user.kyc);
327
327
  ne((e) => e.session.uuid);
328
328
  const u = a.kyc, F = u.processComplete, I = {}, [y, te] = n(I);
329
329
  n({ token: "" });
330
- const [re, Y] = n(""), [Z, p] = n(
330
+ const [re, Y] = n(""), [Z, m] = n(
331
331
  d === T ? Q : se
332
332
  );
333
333
  z(() => {
@@ -349,7 +349,7 @@ const ze = ({
349
349
  default:
350
350
  e = se;
351
351
  }
352
- p(e);
352
+ m(e);
353
353
  }, [C]), z(() => {
354
354
  h && F && (s({ message: "KYC has been done successfully.", type: "success" }), h());
355
355
  }, [h, F]);
@@ -387,9 +387,9 @@ const ze = ({
387
387
  !0
388
388
  );
389
389
  }, W = (e, A, _, P, M, i, x, R = !1) => {
390
- var B, L, m;
390
+ var B, b, f;
391
391
  if (d !== _e && !R) {
392
- p(Ue);
392
+ m(Ue);
393
393
  return;
394
394
  }
395
395
  if (!u.loader) {
@@ -415,8 +415,8 @@ const ze = ({
415
415
  kycFlow: d,
416
416
  email: r.email,
417
417
  gender: r.gender,
418
- birthPlace: (L = r.placeOfBirth) == null ? void 0 : L.alpha3,
419
- nationality: (m = r.nationality) == null ? void 0 : m.alpha3,
418
+ birthPlace: (b = r.placeOfBirth) == null ? void 0 : b.alpha3,
419
+ nationality: (f = r.nationality) == null ? void 0 : f.alpha3,
420
420
  occupation: r.occupation,
421
421
  employer: r.employer,
422
422
  residentialAddress: V,
@@ -427,9 +427,9 @@ const ze = ({
427
427
  }
428
428
  };
429
429
  if (x) {
430
- const G = Object.entries(x).filter(([k, b]) => b.file && b.file.length > 0).map(([k, b]) => ({
431
- file: b.file[0],
432
- type: k
430
+ const G = Object.entries(x).filter(([j, L]) => L.file && L.file.length > 0).map(([j, L]) => ({
431
+ file: L.file[0],
432
+ type: j
433
433
  }));
434
434
  G.length > 0 && (w.eddDocuments = G);
435
435
  }
@@ -437,8 +437,8 @@ const ze = ({
437
437
  }
438
438
  };
439
439
  z(() => {
440
- var _, P, M, i, x, R, B, L, m, V, H, J, w, G, k, b, me, fe, ue, he, Ee, ge, Ce;
441
- const e = f == null ? void 0 : f.sumsubDocumentData;
440
+ var _, P, M, i, x, R, B, b, f, V, H, J, w, G, j, L, me, fe, ue, he, Ee, ge, Ce;
441
+ const e = p == null ? void 0 : p.sumsubDocumentData;
442
442
  if (!e) return;
443
443
  const A = {
444
444
  name: {
@@ -449,13 +449,13 @@ const ze = ({
449
449
  },
450
450
  address: ((B = (R = e == null ? void 0 : e.documentData) == null ? void 0 : R.address) == null ? void 0 : B.street) ?? "",
451
451
  checkedAddressBean: {
452
- street: ((m = (L = e == null ? void 0 : e.documentData) == null ? void 0 : L.address) == null ? void 0 : m.street) ?? "",
452
+ street: ((f = (b = e == null ? void 0 : e.documentData) == null ? void 0 : b.address) == null ? void 0 : f.street) ?? "",
453
453
  city: ((H = (V = e == null ? void 0 : e.documentData) == null ? void 0 : V.address) == null ? void 0 : H.city) ?? "",
454
454
  state: ((w = (J = e == null ? void 0 : e.documentData) == null ? void 0 : J.address) == null ? void 0 : w.state) ?? "",
455
- postalCode: ((k = (G = e == null ? void 0 : e.documentData) == null ? void 0 : G.address) == null ? void 0 : k.postcode) ?? "",
455
+ postalCode: ((j = (G = e == null ? void 0 : e.documentData) == null ? void 0 : G.address) == null ? void 0 : j.postcode) ?? "",
456
456
  zipColonyOptions: []
457
457
  },
458
- typeOfId: ((b = e == null ? void 0 : e.document) == null ? void 0 : b.docType) ?? "",
458
+ typeOfId: ((L = e == null ? void 0 : e.document) == null ? void 0 : L.docType) ?? "",
459
459
  documentFrontSubtype: "",
460
460
  documentBackSubtype: "",
461
461
  issueFront: 0,
@@ -484,15 +484,15 @@ const ze = ({
484
484
  personalNumberConfidence: 0
485
485
  }
486
486
  };
487
- te(A), p(Q);
488
- }, [f]);
487
+ te(A), m(Q);
488
+ }, [p == null ? void 0 : p.sumsubDocumentData]);
489
489
  const O = {
490
490
  INCODE_SCREEN: /* @__PURE__ */ t(Fe, { onApplicantIdLoaded: Y }),
491
491
  USER_INFO_SCREEN: /* @__PURE__ */ t(
492
492
  ze,
493
493
  {
494
494
  docData: y,
495
- setScreen: p,
495
+ setScreen: m,
496
496
  setUserInfo: K,
497
497
  userInfo: r,
498
498
  userEmail: a.profile.email,
@@ -502,15 +502,15 @@ const ze = ({
502
502
  PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
503
503
  qe,
504
504
  {
505
- setScreen: p,
505
+ setScreen: m,
506
506
  setUserInfo: K,
507
507
  userInfo: r
508
508
  }
509
509
  ),
510
510
  PEP_SCREEN: /* @__PURE__ */ t(
511
- be,
511
+ Le,
512
512
  {
513
- setScreen: p,
513
+ setScreen: m,
514
514
  setUserInfo: K,
515
515
  userInfo: r,
516
516
  processKyc: W,
@@ -521,7 +521,7 @@ const ze = ({
521
521
  EDD_SCREEN: /* @__PURE__ */ t(
522
522
  Te,
523
523
  {
524
- kycStoreData: f,
524
+ kycStoreData: p,
525
525
  eddData: S,
526
526
  setEddData: X,
527
527
  processKyc: N,
package/dist/main.js CHANGED
@@ -17,7 +17,7 @@ import { i as b } from "./index-PoMNqntN.js";
17
17
  import { i as F } from "./index-DYP5Ex_T.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-CWoxdH_Z.js";
20
+ import { F as j } from "./index-B3HnUBnB.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",