everest-npm-features 0.0.27 → 0.0.28

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 (33) hide show
  1. package/dist/{auth-SxpGte_3.js → auth-DoHhqFQx.js} +10 -10
  2. package/dist/components/RocketRamp/Player/SignIn/index.js +1 -1
  3. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +1 -1
  4. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  5. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  6. package/dist/components/RocketRamp/Player/SignUp/index.js +5 -5
  7. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +1 -1
  8. package/dist/components/RocketRamp/ResetPassword/index.js +1 -1
  9. package/dist/components/RocketRamp/Store/SignUp/index.js +10 -10
  10. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +1 -1
  11. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +5 -5
  12. package/dist/components/Shared/FullKyc/index.js +2 -2
  13. package/dist/components/Shared/FullKyc/pep.js +1 -1
  14. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  15. package/dist/components/Shared/FullKyc/types.d.ts +1 -1
  16. package/dist/components/Shared/FullKyc/userInfo.js +1 -1
  17. package/dist/components/Wallet/EnterpriseKyc/index.js +79 -77
  18. package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
  19. package/dist/components/Wallet/Portfolio/index.js +81 -77
  20. package/dist/components/Wallet/Shared/Auth/otpForm.js +1 -1
  21. package/dist/components/Wallet/Shared/Container/index.d.ts +3 -2
  22. package/dist/components/Wallet/Shared/Container/index.js +4 -3
  23. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -12
  24. package/dist/components/Wallet/SignIn/index.js +6 -6
  25. package/dist/components/Wallet/SignUp/index.js +184 -57
  26. package/dist/components/Wallet/SignUp/terms.d.ts +1 -6
  27. package/dist/components/Wallet/SignUp/terms.js +516 -563
  28. package/dist/{index-D8j7wPDM.js → index-Db73x3ti.js} +174 -174
  29. package/dist/main.js +1 -1
  30. package/dist/{pep-D8bFjgpy.js → pep-C_LViPSb.js} +200 -200
  31. package/dist/util/constants.d.ts +4 -0
  32. package/dist/util/constants.js +82 -78
  33. package/package.json +1 -1
@@ -1,77 +1,77 @@
1
- import { jsxs as E, Fragment as J, jsx as t } from "react/jsx-runtime";
2
- import { useState as n, useEffect as z } from "react";
3
- import { AuthContainer as le } from "./components/Wallet/Shared/Container/index.js";
4
- import ce from "./components/Shared/Incode/index.js";
5
- import pe from "./hoc/withThemeProvider.js";
6
- import Q from "./components/Wallet/Shared/Input/index.js";
7
- import Y from "./components/Wallet/Shared/appButton.js";
8
- import { a as ee, u as X } from "./react-redux-C7I9-1M6.js";
1
+ import { jsxs as E, Fragment as ee, jsx as t } from "react/jsx-runtime";
2
+ import { useState as n, useEffect as K } from "react";
3
+ import { AuthContainer as ce } from "./components/Wallet/Shared/Container/index.js";
4
+ import pe from "./components/Shared/Incode/index.js";
5
+ import de from "./hoc/withThemeProvider.js";
6
+ import te from "./components/Wallet/Shared/Input/index.js";
7
+ import oe from "./components/Wallet/Shared/appButton.js";
8
+ import { a as ne, u as Y } from "./react-redux-C7I9-1M6.js";
9
9
  import "./components/Wallet/Shared/Auth/otpForm.js";
10
10
  import "./constants-BF50a6s-.js";
11
- import { b as de, c as ue } from "./kyc-kWxxF1vI.js";
12
- import { useSnackBarContext as te } from "./context/snackBarContext.js";
11
+ import { b as me, c as ue } from "./kyc-kWxxF1vI.js";
12
+ import { useSnackBarContext as se } from "./context/snackBarContext.js";
13
13
  import "./util/conversions.js";
14
14
  import "./index-CAoLi5Qq.js";
15
- import oe from "./components/Wallet/Shared/step.js";
15
+ import re from "./components/Wallet/Shared/step.js";
16
16
  import "./react-webcam-B3cXh1XT.js";
17
17
  import "./components/Shared/transition.js";
18
- import { useDialog as me } from "./hooks/useDialog/index.js";
18
+ import { useDialog as he } from "./hooks/useDialog/index.js";
19
19
  import "./components/Wallet/Shared/pin.js";
20
20
  import "./moment-h96o7c8I.js";
21
21
  import "./tooltip-Dv3Lfsa2.js";
22
22
  import "./index.esm-BsMAMhYW.js";
23
- import { c as I } from "./countries-BVn1FubK.js";
23
+ import { c as U } from "./countries-BVn1FubK.js";
24
24
  import "./web3-u4qDZYpo.js";
25
25
  import "./index-B8QKlEgj.js";
26
26
  import "./index-ceeCtFuh.js";
27
27
  import "./context/dialogContext.js";
28
- import { B as k } from "./Box-BwKpr_VI.js";
29
- import { T as q } from "./Typography-BQDN44CM.js";
30
- import { A as M, P as he } from "./pep-D8bFjgpy.js";
31
- import { I as ge, T as U } from "./TextField-DmiK1A_S.js";
32
- import { F as fe } from "./FormControl-H4D1Z6Ov.js";
33
- import { S as ye } from "./Select-CGei0bav.js";
34
- import { M as K } from "./MenuItem-ByxiQtY2.js";
35
- import { G as W } from "./Grid-CPkjiKqX.js";
36
- const Ce = ({
28
+ import { B as T } from "./Box-BwKpr_VI.js";
29
+ import { T as W } from "./Typography-BQDN44CM.js";
30
+ import { A as j, P as ge } from "./pep-C_LViPSb.js";
31
+ import { I as fe, T as Z } from "./TextField-DmiK1A_S.js";
32
+ import { F as ye } from "./FormControl-H4D1Z6Ov.js";
33
+ import { S as Ce } from "./Select-CGei0bav.js";
34
+ import { M as H } from "./MenuItem-ByxiQtY2.js";
35
+ import { G as V } from "./Grid-CPkjiKqX.js";
36
+ const Ee = ({
37
37
  inputComponent: p,
38
- buttonComponent: w,
39
- setUserInfo: x,
38
+ buttonComponent: N,
39
+ setUserInfo: P,
40
40
  userInfo: l,
41
41
  docData: i,
42
42
  setScreen: d,
43
43
  userEmail: g
44
44
  }) => {
45
- const N = ee(), { openDialog: f, ConfirmDialog: R } = me(), { showAlertMessage: r } = te(), c = p ?? Q, y = w ?? Y, [m, h] = n(l.gender || ""), [_, S] = n(!1), [C, u] = n(l.email || ""), [b, e] = n(!1), [o, G] = n(""), [P, A] = n(l.address || ""), [s, F] = n(l.city || ""), [O, T] = n(l.state || ""), [D, L] = n(l.zipCode || ""), [B, se] = n(!1);
46
- z(() => {
47
- g && (u(g), e(!0));
48
- }, [g]), z(() => {
49
- var a;
45
+ const R = ne(), { openDialog: f, ConfirmDialog: _ } = he(), { showAlertMessage: a } = se(), c = p ?? te, y = N ?? oe, [u, h] = n(l.gender || ""), [A, S] = n(!1), [C, m] = n(l.email || ""), [b, e] = n(!1), [o, q] = n(""), [O, F] = n(l.address || ""), [s, L] = n(l.city || ""), [D, B] = n(l.state || ""), [x, k] = n(l.zipCode || ""), [v, I] = n(!1);
46
+ K(() => {
47
+ g && (m(g), e(!0));
48
+ }, [g]), K(() => {
49
+ var r;
50
50
  if (i != null && i.issuingCountry) {
51
51
  i.gender && (h(i.gender), S(!0));
52
- const V = I.find(
53
- (v) => v.alpha3 === i.issuingCountry
52
+ const G = U.find(
53
+ (w) => w.alpha3 === i.issuingCountry
54
54
  );
55
- x({ ...l, country: V, nationality: V });
56
- const $ = new Date(i.birthDate), ae = $.getTimezoneOffset() * 6e4, ie = new Date(
57
- $.getTime() + ae
55
+ P({ ...l, country: G, nationality: G });
56
+ const M = new Date(i.birthDate), ie = M.getTimezoneOffset() * 6e4, le = new Date(
57
+ M.getTime() + ie
58
58
  );
59
- if (G(ie.toLocaleDateString("en-US")), (a = i.checkedAddressBean) != null && a.street) {
60
- const v = i.checkedAddressBean;
61
- se(!0), A(v.street), F(v.city), T(v.state), L(v.postalCode);
59
+ if (q(le.toLocaleDateString("en-US")), (r = i.checkedAddressBean) != null && r.street) {
60
+ const w = i.checkedAddressBean;
61
+ I(!0), F(w.street), L(w.city), B(w.state), k(w.postalCode);
62
62
  }
63
63
  } else
64
- re();
64
+ z();
65
65
  }, []);
66
- const re = () => {
67
- N(de());
66
+ const z = () => {
67
+ R(me());
68
68
  };
69
- return /* @__PURE__ */ E(J, { children: [
70
- /* @__PURE__ */ t(k, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(oe, { totalSteps: 4, currentStep: 2 }) }),
71
- /* @__PURE__ */ t(R, {}),
72
- /* @__PURE__ */ E(k, { pl: 2, mt: 4, children: [
73
- /* @__PURE__ */ t(q, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
74
- /* @__PURE__ */ t(q, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
69
+ return /* @__PURE__ */ E(ee, { children: [
70
+ /* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(re, { totalSteps: 4, currentStep: 2 }) }),
71
+ /* @__PURE__ */ t(_, {}),
72
+ /* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
73
+ /* @__PURE__ */ t(W, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
74
+ /* @__PURE__ */ t(W, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
75
75
  /* @__PURE__ */ t(
76
76
  c,
77
77
  {
@@ -81,19 +81,19 @@ const Ce = ({
81
81
  disabled: !0
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ E(fe, { sx: { mt: 3 }, fullWidth: !0, children: [
85
- /* @__PURE__ */ t(ge, { children: "Gender" }),
84
+ /* @__PURE__ */ E(ye, { sx: { mt: 3 }, fullWidth: !0, children: [
85
+ /* @__PURE__ */ t(fe, { children: "Gender" }),
86
86
  /* @__PURE__ */ E(
87
- ye,
87
+ Ce,
88
88
  {
89
- value: m,
89
+ value: u,
90
90
  label: "Gender",
91
- onChange: (a) => h(a.target.value),
92
- disabled: !!(_ && m),
91
+ onChange: (r) => h(r.target.value),
92
+ disabled: !!(A && u),
93
93
  children: [
94
- /* @__PURE__ */ t(K, { value: "M", children: "Male" }, "M"),
95
- /* @__PURE__ */ t(K, { value: "F", children: "Female" }, "F"),
96
- /* @__PURE__ */ t(K, { value: "X", children: "Another" }, "X")
94
+ /* @__PURE__ */ t(H, { value: "M", children: "Male" }, "M"),
95
+ /* @__PURE__ */ t(H, { value: "F", children: "Female" }, "F"),
96
+ /* @__PURE__ */ t(H, { value: "X", children: "Another" }, "X")
97
97
  ]
98
98
  }
99
99
  )
@@ -104,7 +104,7 @@ const Ce = ({
104
104
  sx: { mt: 3 },
105
105
  label: "Email",
106
106
  value: C,
107
- onChange: (a) => u(a.target.value),
107
+ onChange: (r) => m(r.target.value),
108
108
  disabled: b
109
109
  }
110
110
  ),
@@ -113,27 +113,27 @@ const Ce = ({
113
113
  {
114
114
  sx: { mt: 3 },
115
115
  label: "Home Address",
116
- value: P,
117
- onChange: (a) => A(a.target.value),
118
- disabled: !!(B && P)
116
+ value: O,
117
+ onChange: (r) => F(r.target.value),
118
+ disabled: !!(v && O)
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ E(W, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
122
- /* @__PURE__ */ t(W, { size: 6, children: /* @__PURE__ */ t(
121
+ /* @__PURE__ */ E(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
122
+ /* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
123
123
  c,
124
124
  {
125
125
  label: "City",
126
126
  value: s,
127
- onChange: (a) => F(a.target.value),
128
- disabled: !!(B && s)
127
+ onChange: (r) => L(r.target.value),
128
+ disabled: !!(v && s)
129
129
  }
130
130
  ) }),
131
- /* @__PURE__ */ t(W, { size: 6, children: /* @__PURE__ */ t(
131
+ /* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
132
132
  c,
133
133
  {
134
134
  label: "State",
135
- value: O,
136
- onChange: (a) => T(a.target.value)
135
+ value: D,
136
+ onChange: (r) => B(r.target.value)
137
137
  }
138
138
  ) })
139
139
  ] }),
@@ -142,9 +142,9 @@ const Ce = ({
142
142
  {
143
143
  sx: { mt: 3 },
144
144
  label: "Zipcode",
145
- value: D,
146
- onChange: (a) => L(a.target.value),
147
- disabled: !!(B && D)
145
+ value: x,
146
+ onChange: (r) => k(r.target.value),
147
+ disabled: !!(v && x)
148
148
  }
149
149
  )
150
150
  ] }),
@@ -155,41 +155,41 @@ const Ce = ({
155
155
  variant: "contained",
156
156
  onClick: () => {
157
157
  if (!o)
158
- return r({ message: "Please provide date of birth" });
159
- if (!m) return r({ message: "Please provide gender" });
160
- if (!P)
161
- return r({ message: "Please provide address" });
162
- if (!s) return r({ message: "Please provide city" });
163
- if (!O) return r({ message: "Please provide state" });
164
- if (!D)
165
- return r({ message: "Please provide zip code" });
166
- x({ ...l, gender: m, email: C, address: P, city: s, state: O, zipCode: D }), d(H);
158
+ return a({ message: "Please provide date of birth" });
159
+ if (!u) return a({ message: "Please provide gender" });
160
+ if (!O)
161
+ return a({ message: "Please provide address" });
162
+ if (!s) return a({ message: "Please provide city" });
163
+ if (!D) return a({ message: "Please provide state" });
164
+ if (!x)
165
+ return a({ message: "Please provide zip code" });
166
+ P({ ...l, gender: u, email: C, address: O, city: s, state: D, zipCode: x }), d(J);
167
167
  },
168
- disabled: !C || !P || !m,
168
+ disabled: !C || !O || !u,
169
169
  fullWidth: !0,
170
170
  children: /* @__PURE__ */ t("strong", { children: "Next" })
171
171
  }
172
172
  )
173
173
  ] });
174
- }, Ee = ({
174
+ }, Se = ({
175
175
  userInfo: p,
176
- setUserInfo: w,
177
- setScreen: x,
176
+ setUserInfo: N,
177
+ setScreen: P,
178
178
  inputComponent: l,
179
179
  buttonComponent: i
180
180
  }) => {
181
- const { showAlertMessage: d } = te(), g = l ?? Q, N = i ?? Y, [f, R] = n(
181
+ const { showAlertMessage: d } = se(), g = l ?? te, R = i ?? oe, [f, _] = n(
182
182
  p.placeOfBirth || null
183
- ), [r, c] = n(
183
+ ), [a, c] = n(
184
184
  p.country || null
185
- ), [y, m] = n(
185
+ ), [y, u] = n(
186
186
  p.nationality || null
187
- ), [h, _] = n(p.occupation || ""), [S, C] = n(p.employer || ""), u = () => {
187
+ ), [h, A] = n(p.occupation || ""), [S, C] = n(p.employer || ""), m = () => {
188
188
  if (!f) {
189
189
  d({ message: "Please select place of birth" });
190
190
  return;
191
191
  }
192
- if (!r) {
192
+ if (!a) {
193
193
  d({ message: "Please select country of residency" });
194
194
  return;
195
195
  }
@@ -201,15 +201,15 @@ const Ce = ({
201
201
  d({ message: "Please provide city" });
202
202
  return;
203
203
  }
204
- w({
204
+ N({
205
205
  ...p,
206
206
  placeOfBirth: f,
207
- country: r,
207
+ country: a,
208
208
  nationality: y,
209
209
  occupation: h,
210
210
  employer: S
211
- }), x(ne);
212
- }, b = (e, o) => /* @__PURE__ */ E(k, { component: "li", sx: { "& > img": { mr: 2, flexShrink: 0 } }, ...e, children: [
211
+ }), P(ae);
212
+ }, b = (e, o) => /* @__PURE__ */ E(T, { component: "li", sx: { "& > img": { mr: 2, flexShrink: 0 } }, ...e, children: [
213
213
  /* @__PURE__ */ t(
214
214
  "img",
215
215
  {
@@ -225,25 +225,25 @@ const Ce = ({
225
225
  o.alpha3,
226
226
  ")"
227
227
  ] });
228
- return /* @__PURE__ */ E(J, { children: [
229
- /* @__PURE__ */ t(k, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(oe, { totalSteps: 4, currentStep: 3 }) }),
230
- /* @__PURE__ */ E(k, { pl: 2, mt: 4, children: [
231
- /* @__PURE__ */ t(q, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
232
- /* @__PURE__ */ t(q, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
228
+ return /* @__PURE__ */ E(ee, { children: [
229
+ /* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(re, { totalSteps: 4, currentStep: 3 }) }),
230
+ /* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
231
+ /* @__PURE__ */ t(W, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
232
+ /* @__PURE__ */ t(W, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
233
233
  /* @__PURE__ */ t(
234
- M,
234
+ j,
235
235
  {
236
236
  sx: { mt: 2 },
237
237
  value: f,
238
- onChange: (e, o) => R(o),
239
- options: I,
238
+ onChange: (e, o) => _(o),
239
+ options: U,
240
240
  isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
241
241
  getOptionLabel: (e) => e.name,
242
242
  autoHighlight: !0,
243
243
  openOnFocus: !0,
244
244
  renderOption: b,
245
245
  renderInput: (e) => /* @__PURE__ */ t(
246
- U,
246
+ Z,
247
247
  {
248
248
  ...e,
249
249
  label: "Place Of Birth",
@@ -256,19 +256,19 @@ const Ce = ({
256
256
  }
257
257
  ),
258
258
  /* @__PURE__ */ t(
259
- M,
259
+ j,
260
260
  {
261
261
  sx: { mt: 2 },
262
- value: r,
262
+ value: a,
263
263
  onChange: (e, o) => c(o),
264
- options: I,
264
+ options: U,
265
265
  isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
266
266
  getOptionLabel: (e) => e.name,
267
267
  autoHighlight: !0,
268
268
  openOnFocus: !0,
269
269
  renderOption: b,
270
270
  renderInput: (e) => /* @__PURE__ */ t(
271
- U,
271
+ Z,
272
272
  {
273
273
  ...e,
274
274
  label: "Country of residence",
@@ -281,19 +281,19 @@ const Ce = ({
281
281
  }
282
282
  ),
283
283
  /* @__PURE__ */ t(
284
- M,
284
+ j,
285
285
  {
286
286
  sx: { mt: 2 },
287
287
  value: y,
288
- onChange: (e, o) => m(o),
289
- options: I,
288
+ onChange: (e, o) => u(o),
289
+ options: U,
290
290
  isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
291
291
  getOptionLabel: (e) => e.name,
292
292
  autoHighlight: !0,
293
293
  openOnFocus: !0,
294
294
  renderOption: b,
295
295
  renderInput: (e) => /* @__PURE__ */ t(
296
- U,
296
+ Z,
297
297
  {
298
298
  ...e,
299
299
  label: "Country of citizenship",
@@ -311,7 +311,7 @@ const Ce = ({
311
311
  sx: { mt: 3 },
312
312
  label: "Occupation",
313
313
  value: h,
314
- onChange: (e) => _(e.target.value)
314
+ onChange: (e) => A(e.target.value)
315
315
  }
316
316
  ),
317
317
  /* @__PURE__ */ t(
@@ -325,44 +325,44 @@ const Ce = ({
325
325
  )
326
326
  ] }),
327
327
  /* @__PURE__ */ t(
328
- N,
328
+ R,
329
329
  {
330
330
  sx: { mt: 3 },
331
331
  variant: "contained",
332
- onClick: u,
333
- disabled: !f || !r || !y || !h || !S,
332
+ onClick: m,
333
+ disabled: !f || !a || !y || !h || !S,
334
334
  fullWidth: !0,
335
335
  children: /* @__PURE__ */ t("strong", { children: "Next" })
336
336
  }
337
337
  )
338
338
  ] });
339
- }, j = "INCODE_SCREEN", Z = "USER_INFO_SCREEN", H = "PERSONAL_DETAILS_SCREEN", ne = "PEP_SCREEN", Se = ({
339
+ }, $ = "INCODE_SCREEN", X = "USER_INFO_SCREEN", J = "PERSONAL_DETAILS_SCREEN", ae = "PEP_SCREEN", be = ({
340
340
  configurationId: p,
341
- incodeApiKey: w,
342
- incodeApiUrl: x,
341
+ incodeApiKey: N,
342
+ incodeApiUrl: P,
343
343
  incodeOnBoardingUrl: l,
344
344
  withContainer: i = !1,
345
345
  successHandler: d,
346
346
  updateScreen: g
347
347
  }) => {
348
- const N = ee(), f = X((s) => s.user), R = X((s) => s.session.uuid), r = f.kyc, c = r.processComplete, y = {}, [m, h] = n(y), [_, S] = n({ token: "" }), [C, u] = n(j);
349
- z(() => {
348
+ const R = ne(), f = Y((s) => s.user), _ = Y((s) => s.session.uuid), a = f.kyc, c = a.processComplete, y = {}, [u, h] = n(y), [A, S] = n({ token: "" }), [C, m] = n($);
349
+ K(() => {
350
350
  let s;
351
351
  switch (C) {
352
- case Z:
353
- s = j;
352
+ case X:
353
+ s = $;
354
354
  break;
355
- case H:
356
- s = Z;
355
+ case J:
356
+ s = X;
357
357
  break;
358
- case ne:
359
- s = H;
358
+ case ae:
359
+ s = J;
360
360
  break;
361
361
  default:
362
- s = j;
362
+ s = $;
363
363
  }
364
- u(s);
365
- }, [g]), z(() => {
364
+ m(s);
365
+ }, [g]), K(() => {
366
366
  d && c && d();
367
367
  }, [d, c]);
368
368
  const b = {
@@ -383,96 +383,96 @@ const Ce = ({
383
383
  frequency: "",
384
384
  reason: "",
385
385
  source: ""
386
- }, [e, o] = n(b), G = () => {
387
- var s, F, O;
388
- if (!r.loader) {
389
- const T = {
386
+ }, [e, o] = n(b), q = (s, L, D, B, x, k) => {
387
+ var v, I, z;
388
+ if (!a.loader) {
389
+ const Q = {
390
390
  street: e.address,
391
391
  city: e.city,
392
392
  postcode: e.zipCode,
393
393
  state: e.state,
394
- country: (s = e.country) == null ? void 0 : s.alpha3
395
- }, D = {
396
- isExposed: e.isPoliticalExpose,
397
- exposed: e.politicalExpose,
398
- frequency: e.frequency,
399
- reason: e.reason,
400
- source: e.source,
401
- originFunds: e.origin
402
- }, L = {
403
- frequency: e.frequency,
404
- reason: e.reason,
405
- source: e.source,
406
- originFunds: e.origin
407
- }, B = {
394
+ country: (v = e.country) == null ? void 0 : v.alpha3
395
+ }, r = {
396
+ isExposed: s,
397
+ exposed: L,
398
+ frequency: D,
399
+ reason: B,
400
+ source: x,
401
+ originFunds: k
402
+ }, G = {
403
+ frequency: D,
404
+ reason: B,
405
+ source: x,
406
+ originFunds: k
407
+ }, M = {
408
408
  email: e.email,
409
409
  gender: e.gender,
410
- birthPlace: (F = e.placeOfBirth) == null ? void 0 : F.alpha3,
411
- nationality: (O = e.nationality) == null ? void 0 : O.alpha3,
410
+ birthPlace: (I = e.placeOfBirth) == null ? void 0 : I.alpha3,
411
+ nationality: (z = e.nationality) == null ? void 0 : z.alpha3,
412
412
  occupation: e.occupation,
413
413
  employer: e.employer,
414
- residentialAddress: T,
415
- politicalExposure: D,
416
- customerDueDiligence: L,
414
+ residentialAddress: Q,
415
+ politicalExposure: r,
416
+ customerDueDiligence: G,
417
417
  workflow: {
418
- token: _.token
418
+ token: A.token
419
419
  }
420
420
  };
421
- N(ue(B));
421
+ R(ue(M));
422
422
  }
423
- }, A = {
423
+ }, F = {
424
424
  INCODE_SCREEN: /* @__PURE__ */ t(
425
- ce,
425
+ pe,
426
426
  {
427
- uuid: R,
427
+ uuid: _,
428
428
  successHandler: () => {
429
- u(Z);
429
+ m(X);
430
430
  },
431
431
  configurationId: p,
432
- apiKey: w,
433
- apiUrl: x,
432
+ apiKey: N,
433
+ apiUrl: P,
434
434
  onBoardingUrl: l,
435
435
  setDocumentsData: h,
436
436
  setIncodeSessionData: S
437
437
  }
438
438
  ),
439
439
  USER_INFO_SCREEN: /* @__PURE__ */ t(
440
- Ce,
440
+ Ee,
441
441
  {
442
- docData: m,
443
- setScreen: u,
442
+ docData: u,
443
+ setScreen: m,
444
444
  setUserInfo: o,
445
445
  userInfo: e,
446
446
  userEmail: f.profile.email
447
447
  }
448
448
  ),
449
449
  PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
450
- Ee,
450
+ Se,
451
451
  {
452
- setScreen: u,
452
+ setScreen: m,
453
453
  setUserInfo: o,
454
454
  userInfo: e
455
455
  }
456
456
  ),
457
457
  PEP_SCREEN: /* @__PURE__ */ t(
458
- he,
458
+ ge,
459
459
  {
460
- setScreen: u,
460
+ setScreen: m,
461
461
  setUserInfo: o,
462
462
  userInfo: e,
463
- processKyc: G,
464
- processLoader: r.loader
463
+ processKyc: q,
464
+ processLoader: a.loader
465
465
  }
466
466
  )
467
467
  }[C];
468
- return i ? /* @__PURE__ */ t(le, { addPadding: !1, children: A }) : A;
469
- }, nt = pe(Se);
468
+ return i ? /* @__PURE__ */ t(ce, { addPadding: !1, children: F }) : F;
469
+ }, nt = de(be);
470
470
  export {
471
471
  nt as F,
472
- j as I,
473
- Ee as P,
474
- Ce as U,
475
- Z as a,
476
- H as b,
477
- ne as c
472
+ $ as I,
473
+ Se as P,
474
+ Ee as U,
475
+ X as a,
476
+ J as b,
477
+ ae as c
478
478
  };
package/dist/main.js CHANGED
@@ -16,7 +16,7 @@ import { i as K } from "./index-BRwse7X5.js";
16
16
  import { default as A } from "./components/Wallet/Swap/index.js";
17
17
  import { default as H } from "./components/Wallet/EnterpriseKyc/index.js";
18
18
  import { default as M } from "./components/Wallet/Deposit/index.js";
19
- import { F as W } from "./index-D8j7wPDM.js";
19
+ import { F as W } from "./index-Db73x3ti.js";
20
20
  import { useSnackBar as j } from "./hooks/useSnackBar.js";
21
21
  import { SnackBarContext as z, useSnackBarContext as G } from "./context/snackBarContext.js";
22
22
  import { useDialog as L } from "./hooks/useDialog/index.js";