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
@@ -40,16 +40,16 @@ const A = () => ({
40
40
  });
41
41
  export {
42
42
  A as a,
43
- d as b,
44
- B as c,
45
- U as d,
46
- Y as e,
47
- q as f,
48
- Q as g,
49
- n as h,
50
- g as i,
43
+ U as b,
44
+ Y as c,
45
+ q as d,
46
+ Q as e,
47
+ n as f,
48
+ g,
49
+ L as h,
50
+ c as i,
51
51
  I as l,
52
- L as r,
52
+ B as r,
53
53
  u,
54
- c as v
54
+ d as v
55
55
  };
@@ -7,7 +7,7 @@ import { L as T } from "../../../../rr-primary-logo-CqI24c8v.js";
7
7
  import y from "./loginForm.js";
8
8
  import D from "./otpForm.js";
9
9
  import "../../../../constants-BF50a6s-.js";
10
- import { a as R } from "../../../../auth-SxpGte_3.js";
10
+ import { a as R } from "../../../../auth-DoHhqFQx.js";
11
11
  import { C } from "../../../../Container-CBPBT38n.js";
12
12
  import { T as E } from "../../../../Typography-BQDN44CM.js";
13
13
  import { B as l } from "../../../../Box-BwKpr_VI.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, Fragment as g, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as h, useEffect as v } from "react";
3
3
  import "../../../../constants-BF50a6s-.js";
4
- import { l as x } from "../../../../auth-SxpGte_3.js";
4
+ import { l as x } from "../../../../auth-DoHhqFQx.js";
5
5
  import l from "../../Shared/Button/index.js";
6
6
  import y from "../../Shared/Input/index.js";
7
7
  import { isValidEmail as m } from "../../../../util/functions.js";
@@ -3,7 +3,7 @@ import p from "../../Shared/Button/index.js";
3
3
  import I from "../../Shared/Input/index.js";
4
4
  import { useState as m, useEffect as f } from "react";
5
5
  import "../../../../constants-BF50a6s-.js";
6
- import { l as O, b as P } from "../../../../auth-SxpGte_3.js";
6
+ import { l as O, v as P } from "../../../../auth-DoHhqFQx.js";
7
7
  import { RESEND_EMAIL_TIMER as g } from "../../../../util/constants.js";
8
8
  import { S as o } from "../../../../Stack-DH-Nxf9q.js";
9
9
  import { T as a } from "../../../../Typography-BQDN44CM.js";
@@ -31,12 +31,12 @@ const $ = ({
31
31
  type: "success",
32
32
  duration: 6e3
33
33
  });
34
- }, b = (r) => {
34
+ }, T = (r) => {
35
35
  const l = Math.floor(r / 60), R = r % 60;
36
36
  return `${String(l).padStart(2, "0")}:${String(
37
37
  R
38
38
  ).padStart(2, "0")}`;
39
- }, T = () => {
39
+ }, b = () => {
40
40
  if (!e)
41
41
  return s({ message: "Please provide OTP." }), !1;
42
42
  if (e.length !== 6)
@@ -80,7 +80,7 @@ const $ = ({
80
80
  i > 0 && /* @__PURE__ */ n(a, { variant: "body2", mt: 1, children: [
81
81
  " ",
82
82
  "You can ask for another one in ",
83
- b(i)
83
+ T(i)
84
84
  ] }),
85
85
  /* @__PURE__ */ t(
86
86
  p,
@@ -98,7 +98,7 @@ const $ = ({
98
98
  /* @__PURE__ */ t(o, { direction: "row", spacing: 2, justifyContent: "flex-end", children: /* @__PURE__ */ t(
99
99
  p,
100
100
  {
101
- onClick: T,
101
+ onClick: b,
102
102
  fullWidth: !0,
103
103
  disabled: !e,
104
104
  isLoading: x,
@@ -4,7 +4,7 @@ import n from "../../Shared/Button/index.js";
4
4
  import k from "../../Shared/Input/index.js";
5
5
  import { isValidEmail as d, generateRandomString as y } from "../../../../util/functions.js";
6
6
  import "../../../../constants-BF50a6s-.js";
7
- import { h as E } from "../../../../auth-SxpGte_3.js";
7
+ import { f as E } from "../../../../auth-DoHhqFQx.js";
8
8
  import { T as S } from "../../../../Typography-BQDN44CM.js";
9
9
  import { B as b } from "../../../../Box-BwKpr_VI.js";
10
10
  import { S as T } from "../../../../Stack-DH-Nxf9q.js";
@@ -13,8 +13,8 @@ const N = ({
13
13
  loader: i,
14
14
  validationError: m,
15
15
  registerInfo: c,
16
- setRegisterInfo: u,
17
- navigate: f,
16
+ setRegisterInfo: f,
17
+ navigate: u,
18
18
  dispatch: p,
19
19
  storeName: h
20
20
  }) => {
@@ -41,7 +41,7 @@ const N = ({
41
41
  {
42
42
  value: e,
43
43
  label: "E-mail address",
44
- onChange: (a) => u((g) => ({ ...g, email: a.target.value })),
44
+ onChange: (a) => f((g) => ({ ...g, email: a.target.value })),
45
45
  error: o || !!m,
46
46
  errorText: m,
47
47
  fullWidth: !0
@@ -61,7 +61,7 @@ const N = ({
61
61
  {
62
62
  isText: !0,
63
63
  customSize: "medium",
64
- onClick: () => f("/"),
64
+ onClick: () => u("/"),
65
65
  children: "Already have an account?"
66
66
  }
67
67
  )
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { useState as b, useEffect as f } from "react";
2
+ import { useState as D, useEffect as f } from "react";
3
3
  import { useSnackBar as C } from "../../../../hooks/useSnackBar.js";
4
4
  import { a as I, u as E } from "../../../../react-redux-C7I9-1M6.js";
5
5
  import T from "../../../../hoc/withThemeProvider.js";
@@ -9,14 +9,14 @@ import L from "./personalInfo.js";
9
9
  import W from "./summary.js";
10
10
  import q from "./validateEmail.js";
11
11
  import "../../../../constants-BF50a6s-.js";
12
- import { a as U, u as V, c as j, d as M } from "../../../../auth-SxpGte_3.js";
12
+ import { a as U, u as V, r as j, b as M } from "../../../../auth-DoHhqFQx.js";
13
13
  import { USERNAME_SUFFIX as N } from "../../../../util/constants.js";
14
14
  import { C as P } from "../../../../Container-CBPBT38n.js";
15
15
  import { B as F } from "../../../../Box-BwKpr_VI.js";
16
16
  import { S as k } from "../../../../Stack-DH-Nxf9q.js";
17
17
  import { T as u } from "../../../../Typography-BQDN44CM.js";
18
18
  const z = ({ onRegister: v, navigate: h, navigatePath: g }) => {
19
- const a = I(), r = E((o) => o.session), i = E((o) => o.app).store.name, m = r.loader, x = r.validationError, S = r.screen, B = r.otpLoader, p = r.uuid, c = r.token, l = r.error, w = 4, { showAlertMessage: n, snackBar: D } = C(), [e, R] = b({
19
+ const a = I(), r = E((o) => o.session), i = E((o) => o.app).store.name, m = r.loader, x = r.validationError, S = r.screen, B = r.otpLoader, p = r.uuid, c = r.token, l = r.error, b = 4, { showAlertMessage: n, snackBar: w } = C(), [e, R] = D({
20
20
  email: "",
21
21
  username: "",
22
22
  firstName: "",
@@ -58,7 +58,7 @@ const z = ({ onRegister: v, navigate: h, navigatePath: g }) => {
58
58
  // alignItems: "center",
59
59
  },
60
60
  children: [
61
- D,
61
+ w,
62
62
  /* @__PURE__ */ t(F, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ t("img", { alt: "RocketRamp logo", src: _ }) }),
63
63
  /* @__PURE__ */ s(
64
64
  F,
@@ -85,7 +85,7 @@ const z = ({ onRegister: v, navigate: h, navigatePath: g }) => {
85
85
  ] }),
86
86
  /* @__PURE__ */ s(u, { variant: "md", fontWeight: 200, children: [
87
87
  "of ",
88
- w
88
+ b
89
89
  ] })
90
90
  ] })
91
91
  ] }),
@@ -3,7 +3,7 @@ import { useState as d } from "react";
3
3
  import f from "../../Shared/Button/index.js";
4
4
  import p, { UserNameInputField as T } from "../../Shared/Input/index.js";
5
5
  import "../../../../constants-BF50a6s-.js";
6
- import { h as S } from "../../../../auth-SxpGte_3.js";
6
+ import { f as S } from "../../../../auth-DoHhqFQx.js";
7
7
  import { userNameRegex as L } from "../../../../util/regex.js";
8
8
  import { USERNAME_SUFFIX as b, USERNAME_TOOLTIP as U } from "../../../../util/constants.js";
9
9
  import { T as v } from "../../../../Typography-BQDN44CM.js";
@@ -4,7 +4,7 @@ import f from "../Shared/Button/index.js";
4
4
  import { a as g, u as w } from "../../../react-redux-C7I9-1M6.js";
5
5
  import { useEffect as i } from "react";
6
6
  import "../../../constants-BF50a6s-.js";
7
- import { g as x } from "../../../auth-SxpGte_3.js";
7
+ import { e as x } from "../../../auth-DoHhqFQx.js";
8
8
  import { useSnackBarContext as b } from "../../../context/snackBarContext.js";
9
9
  import { B as n } from "../../../Box-BwKpr_VI.js";
10
10
  import { T as c } from "../../../Typography-BQDN44CM.js";
@@ -9,14 +9,14 @@ import C from "./personalInfo.js";
9
9
  import D from "./summary.js";
10
10
  import L from "./validateEmail.js";
11
11
  import "../../../../constants-BF50a6s-.js";
12
- import { a as A, u as U, e as V, f as j, l as z } from "../../../../auth-SxpGte_3.js";
12
+ import { a as A, u as U, c as V, d as j, l as z } from "../../../../auth-DoHhqFQx.js";
13
13
  import { USERNAME_SUFFIX as S } from "../../../../util/constants.js";
14
14
  import { C as M } from "../../../../Container-CBPBT38n.js";
15
15
  import { T as f } from "../../../../Typography-BQDN44CM.js";
16
16
  import { B as R } from "../../../../Box-BwKpr_VI.js";
17
17
  import { S as y } from "../../../../Stack-DH-Nxf9q.js";
18
18
  const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
19
- const r = b(), t = T((a) => a.session), n = t.loader, g = t.validationError, F = t.validationField, u = t.screen, N = t.otpLoader, m = t.uuid, l = t.token, p = t.error, B = 4, { showAlertMessage: i, snackBar: k } = w(), [e, x] = I({
19
+ const r = b(), t = T((a) => a.session), n = t.loader, g = t.validationError, F = t.validationField, u = t.screen, N = t.otpLoader, m = t.uuid, l = t.token, c = t.error, B = 4, { showAlertMessage: i, snackBar: k } = w(), [e, x] = I({
20
20
  email: "",
21
21
  firstName: "",
22
22
  lastName: "",
@@ -28,9 +28,9 @@ const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
28
28
  }, []), d(() => {
29
29
  m && l && (v(m, l), E(h || "/dashboard"));
30
30
  }, [m, l]), d(() => {
31
- p && i({ message: p });
32
- }, [p]);
33
- const c = (a) => {
31
+ c && i({ message: c });
32
+ }, [c]);
33
+ const p = (a) => {
34
34
  r(U(a));
35
35
  };
36
36
  return /* @__PURE__ */ s(
@@ -84,7 +84,7 @@ const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
84
84
  registerInfo: e,
85
85
  dispatch: r,
86
86
  setRegisterInfo: x,
87
- setCurrentStep: c,
87
+ setCurrentStep: p,
88
88
  validationError: g,
89
89
  validationField: F
90
90
  }
@@ -98,7 +98,7 @@ const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
98
98
  setRegisterInfo: x,
99
99
  dispatch: r,
100
100
  validationError: g,
101
- setCurrentStep: c
101
+ setCurrentStep: p
102
102
  }
103
103
  ),
104
104
  3: /* @__PURE__ */ o(
@@ -107,7 +107,7 @@ const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
107
107
  showAlertMessage: i,
108
108
  loader: n,
109
109
  registerInfo: e,
110
- setCurrentStep: c,
110
+ setCurrentStep: p,
111
111
  initRegister: () => {
112
112
  r(
113
113
  V({
@@ -153,7 +153,7 @@ const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
153
153
  ]
154
154
  }
155
155
  );
156
- }, pe = W(O);
156
+ }, ce = W(O);
157
157
  export {
158
- pe as default
158
+ ce as default
159
159
  };
@@ -3,7 +3,7 @@ import { useState as b } from "react";
3
3
  import T from "../../Shared/Button/index.js";
4
4
  import s from "../../Shared/Input/index.js";
5
5
  import "../../../../constants-BF50a6s-.js";
6
- import { i as y } from "../../../../auth-SxpGte_3.js";
6
+ import { g as y } from "../../../../auth-DoHhqFQx.js";
7
7
  import { generateRandomString as B, isValidEmail as F } from "../../../../util/functions.js";
8
8
  import { userNameRegex as L } from "../../../../util/regex.js";
9
9
  import { USERNAME_SUFFIX as W } from "../../../../util/constants.js";
@@ -3,7 +3,7 @@ import { useState as c } from "react";
3
3
  import p from "../../Shared/Button/index.js";
4
4
  import u, { UserNameInputField as k } from "../../Shared/Input/index.js";
5
5
  import "../../../../constants-BF50a6s-.js";
6
- import { i as w } from "../../../../auth-SxpGte_3.js";
6
+ import { g as w } from "../../../../auth-DoHhqFQx.js";
7
7
  import { USERNAME_SUFFIX as f, USERNAME_TOOLTIP as T } from "../../../../util/constants.js";
8
8
  import { storeNameOnChangeRegex as P, storeNameRegex as U } from "../../../../util/regex.js";
9
9
  import { T as h } from "../../../../Typography-BQDN44CM.js";
@@ -16,8 +16,8 @@ const Y = ({
16
16
  loader: m,
17
17
  validationError: n,
18
18
  registerInfo: t,
19
- setRegisterInfo: S,
20
- dispatch: g,
19
+ setRegisterInfo: g,
20
+ dispatch: S,
21
21
  setCurrentStep: i
22
22
  }) => {
23
23
  const [o, b] = c(""), [s, l] = c(""), v = (r) => {
@@ -31,7 +31,7 @@ const Y = ({
31
31
  }), !1;
32
32
  i(3);
33
33
  }, R = () => {
34
- l(""), t.storeName && U.test(t.storeName) ? g(
34
+ l(""), t.storeName && U.test(t.storeName) ? S(
35
35
  w({
36
36
  storename: t.storeName + f
37
37
  })
@@ -54,7 +54,7 @@ const Y = ({
54
54
  label: "Store Name",
55
55
  onBlur: R,
56
56
  onChange: (r) => {
57
- P.test(r.target.value) && S((y) => ({
57
+ P.test(r.target.value) && g((y) => ({
58
58
  ...y,
59
59
  storeName: r.target.value
60
60
  }));
@@ -3,8 +3,8 @@ import "react";
3
3
  import "../../Wallet/Shared/Container/index.js";
4
4
  import "../Incode/index.js";
5
5
  import "../../../hoc/withThemeProvider.js";
6
- import { I as _, c as s, b as C, a as I, F as O } from "../../../index-D8j7wPDM.js";
7
- import "../../../pep-D8bFjgpy.js";
6
+ import { I as _, c as s, b as C, a as I, F as O } from "../../../index-Db73x3ti.js";
7
+ import "../../../pep-C_LViPSb.js";
8
8
  import "../../../constants-BF50a6s-.js";
9
9
  import "../../../kyc-kWxxF1vI.js";
10
10
  import "../../../react-redux-C7I9-1M6.js";
@@ -9,7 +9,7 @@ import "../../../Grid-CPkjiKqX.js";
9
9
  import "../../../FormControl-H4D1Z6Ov.js";
10
10
  import "../../../Select-CGei0bav.js";
11
11
  import "../../../MenuItem-ByxiQtY2.js";
12
- import { P as b } from "../../../pep-D8bFjgpy.js";
12
+ import { P as b } from "../../../pep-C_LViPSb.js";
13
13
  import "../../../TextField-DmiK1A_S.js";
14
14
  import "../../../CircularProgress-Yx712vpT.js";
15
15
  export {
@@ -19,11 +19,11 @@ import "../../../countries-BVn1FubK.js";
19
19
  import "../../../web3-u4qDZYpo.js";
20
20
  import "../../../index-B8QKlEgj.js";
21
21
  import "../../../index-ceeCtFuh.js";
22
- import { P as B } from "../../../index-D8j7wPDM.js";
22
+ import { P as B } from "../../../index-Db73x3ti.js";
23
23
  import "../../../context/dialogContext.js";
24
24
  import "../../../Box-BwKpr_VI.js";
25
25
  import "../../../Typography-BQDN44CM.js";
26
- import "../../../pep-D8bFjgpy.js";
26
+ import "../../../pep-C_LViPSb.js";
27
27
  import "../../../TextField-DmiK1A_S.js";
28
28
  export {
29
29
  B as default
@@ -35,7 +35,7 @@ export interface PoliticallyExposedProps {
35
35
  setScreen: React.Dispatch<React.SetStateAction<ScreenType>>;
36
36
  userInfo: UserInfoType;
37
37
  setUserInfo: React.Dispatch<React.SetStateAction<UserInfoType>>;
38
- processKyc: () => void;
38
+ processKyc: (isPoliticalExpose: boolean, politicalExpose: string, frequency: string, reason: string, source: string, country: string) => void;
39
39
  processLoader: boolean;
40
40
  }
41
41
  export interface Country {
@@ -22,7 +22,7 @@ import "../../../countries-BVn1FubK.js";
22
22
  import "../../../web3-u4qDZYpo.js";
23
23
  import "../../../index-B8QKlEgj.js";
24
24
  import "../../../index-ceeCtFuh.js";
25
- import { U as H } from "../../../index-D8j7wPDM.js";
25
+ import { U as H } from "../../../index-Db73x3ti.js";
26
26
  import "../../../context/dialogContext.js";
27
27
  import "../../../Box-BwKpr_VI.js";
28
28
  import "../../../Typography-BQDN44CM.js";
@@ -1,26 +1,26 @@
1
- import { jsxs as p, Fragment as W, jsx as o } from "react/jsx-runtime";
2
- import V from "../../../hoc/withThemeProvider.js";
1
+ import { jsxs as p, Fragment as V, jsx as o } from "react/jsx-runtime";
2
+ import z from "../../../hoc/withThemeProvider.js";
3
3
  import { useState as m, useEffect as T } from "react";
4
- import z from "../../Shared/transition.js";
5
- import { C as H } from "../../../Close-CFg1QB5M.js";
6
- import { A as j } from "../../../ArrowBack-BV158RTp.js";
7
- import X from "./kycType.js";
8
- import { KYC_STATUS_IN_PROGRESS as x, INDIVIDUAL_KYC_TYPE as q, KYC_BETWEEN_TRANSATION as C, ORGANIZATION_KYC_TYPE as Z, KYC_UNDER_TRANSATION as J } from "../../../util/constants.js";
9
- import Q from "./individualKyc.js";
10
- import $ from "../../Shared/MinimalKyc/index.js";
11
- import ee from "./kybIntro.js";
12
- import te from "./kybTerms.js";
13
- import oe from "./orgInfo.js";
14
- import re from "./orgDetails.js";
15
- import ie from "./verify.js";
16
- import ae from "./success.js";
4
+ import H from "../../Shared/transition.js";
5
+ import { C as j } from "../../../Close-CFg1QB5M.js";
6
+ import { A as X } from "../../../ArrowBack-BV158RTp.js";
7
+ import q from "./kycType.js";
8
+ import { KYC_STATUS_IN_PROGRESS as x, INDIVIDUAL_KYC_TYPE as Z, KYC_BETWEEN_TRANSATION as C, ORGANIZATION_KYC_TYPE as J, KYC_UNDER_TRANSATION as Q } from "../../../util/constants.js";
9
+ import $ from "./individualKyc.js";
10
+ import ee from "../../Shared/MinimalKyc/index.js";
11
+ import te from "./kybIntro.js";
12
+ import oe from "./kybTerms.js";
13
+ import re from "./orgInfo.js";
14
+ import ie from "./orgDetails.js";
15
+ import ae from "./verify.js";
16
+ import se from "./success.js";
17
17
  import "../../../constants-BF50a6s-.js";
18
- import { r as N, k as se } from "../../../kyc-kWxxF1vI.js";
19
- import { a as ne, u as ce } from "../../../react-redux-C7I9-1M6.js";
20
- import me from "../../Shared/loader.js";
18
+ import { r as N, k as ne } from "../../../kyc-kWxxF1vI.js";
19
+ import { a as ce, u as me } from "../../../react-redux-C7I9-1M6.js";
20
+ import le from "../../Shared/loader.js";
21
21
  import "../Shared/appButton.js";
22
22
  import "../Shared/Auth/otpForm.js";
23
- import { useSnackBarContext as le } from "../../../context/snackBarContext.js";
23
+ import { useSnackBarContext as pe } from "../../../context/snackBarContext.js";
24
24
  import "../../../util/conversions.js";
25
25
  import "../../../index-CAoLi5Qq.js";
26
26
  import "../../../react-webcam-B3cXh1XT.js";
@@ -31,17 +31,18 @@ import "../../../index.esm-BsMAMhYW.js";
31
31
  import "../../../web3-u4qDZYpo.js";
32
32
  import "../../../index-B8QKlEgj.js";
33
33
  import "../../../index-ceeCtFuh.js";
34
- import { F as pe } from "../../../index-D8j7wPDM.js";
34
+ import { F as fe } from "../../../index-Db73x3ti.js";
35
35
  import "../../../context/dialogContext.js";
36
- import fe from "./edd.js";
37
- import { B as de } from "../../../Button-tAfK4lud.js";
38
- import { D as Te, a as Ne } from "../../../DialogContent-_gvZOy18.js";
39
- import { D as Ee } from "../../../DialogTitle-dq22bYlF.js";
40
- import { B as Oe } from "../../../Box-BwKpr_VI.js";
36
+ import de from "./edd.js";
37
+ import { u as Te } from "../../../useTheme-XTDzJ69d.js";
38
+ import { B as Ne } from "../../../Button-tAfK4lud.js";
39
+ import { D as ue, a as Ee } from "../../../DialogContent-_gvZOy18.js";
40
+ import { D as Oe } from "../../../DialogTitle-dq22bYlF.js";
41
+ import { B as De } from "../../../Box-BwKpr_VI.js";
41
42
  import { I } from "../../../IconButton-WneJM4uP.js";
42
- import { T as ue } from "../../../Typography-BQDN44CM.js";
43
- const E = {
44
- type: q,
43
+ import { T as Ae } from "../../../Typography-BQDN44CM.js";
44
+ const u = {
45
+ type: Z,
45
46
  transactAmount: C,
46
47
  orgName: "",
47
48
  orgOtherName: "",
@@ -106,7 +107,7 @@ const E = {
106
107
  file: [],
107
108
  preview: []
108
109
  }
109
- }, De = {
110
+ }, xe = {
110
111
  ID_CARD: {
111
112
  text: "",
112
113
  file: [],
@@ -127,21 +128,21 @@ const E = {
127
128
  file: [],
128
129
  preview: []
129
130
  }
130
- }, Ae = ({
131
+ }, Ie = ({
131
132
  configurationId: _,
132
133
  incodeApiKey: S,
133
134
  incodeApiUrl: R,
134
135
  incodeOnBoardingUrl: y
135
136
  }) => {
136
- const l = ne(), { showAlertMessage: g } = le(), s = ce((t) => t.user.kyc), f = s.error, O = s.processComplete, [b, d] = m(!1), [a, r] = m(1), [e, c] = m(E), [h, w] = m(De), [U, k] = m(!1);
137
+ const h = Te(), l = ce(), { showAlertMessage: g } = pe(), s = me((t) => t.user.kyc), f = s.error, E = s.processComplete, [b, d] = m(!1), [a, r] = m(1), [e, c] = m(u), [w, U] = m(xe), [k, M] = m(!1);
137
138
  T(() => {
138
139
  f && g({ message: f });
139
140
  }, [f]), T(() => {
140
- O && r(10);
141
- }, [O]), T(() => () => {
141
+ E && r(10);
142
+ }, [E]), T(() => () => {
142
143
  l(N());
143
144
  }, []);
144
- const M = () => {
145
+ const F = () => {
145
146
  let t;
146
147
  switch (a) {
147
148
  case 4:
@@ -151,26 +152,26 @@ const E = {
151
152
  t = 1;
152
153
  break;
153
154
  case 11:
154
- t = 11, k((i) => !i);
155
+ t = 11, M((i) => !i);
155
156
  break;
156
157
  default:
157
158
  t = a - 1;
158
159
  }
159
160
  r(t);
160
- }, F = (t) => {
161
- c({ ...e, type: t }), r(t === Z ? 5 : (i) => i + 1);
162
161
  }, K = (t) => {
163
- c({ ...e, transactAmount: t }), r(t === J ? 3 : t === C ? 11 : 4);
164
- }, u = () => {
165
- r((t) => t + 1);
162
+ c({ ...e, type: t }), r(t === J ? 5 : (i) => i + 1);
166
163
  }, v = (t) => {
167
- c({ ...e, ...t }), r((i) => i + 1);
164
+ c({ ...e, transactAmount: t }), r(t === Q ? 3 : t === C ? 11 : 4);
165
+ }, O = () => {
166
+ r((t) => t + 1);
168
167
  }, P = (t) => {
169
168
  c({ ...e, ...t }), r((i) => i + 1);
170
- }, Y = () => {
171
- const t = Object.entries(e).flatMap(([G, A]) => A.file ? A.file.map((L) => ({
172
- type: G,
173
- file: L
169
+ }, Y = (t) => {
170
+ c({ ...e, ...t }), r((i) => i + 1);
171
+ }, B = () => {
172
+ const t = Object.entries(e).flatMap(([L, A]) => A.file ? A.file.map((W) => ({
173
+ type: L,
174
+ file: W
174
175
  })) : []), i = {
175
176
  orgName: e.orgName,
176
177
  otherOrgName: e.orgOtherName,
@@ -198,13 +199,13 @@ const E = {
198
199
  },
199
200
  documents: t
200
201
  };
201
- l(se(i));
202
+ l(ne(i));
202
203
  }, D = () => {
203
204
  a > 1 && a !== 10 ? window.confirm(
204
205
  "Are you sure you want to close this? All progress will be lost."
205
- ) && (d(!1), l(N()), r(1), c(E)) : (d(!1), l(N()), r(1), c(E));
206
- }, B = (t) => {
207
- w(t), alert("API call");
206
+ ) && (d(!1), l(N()), r(1), c(u)) : (d(!1), l(N()), r(1), c(u));
207
+ }, G = (t) => {
208
+ U(t), alert("API call");
208
209
  };
209
210
  let n;
210
211
  switch (a) {
@@ -226,9 +227,9 @@ const E = {
226
227
  default:
227
228
  n = "KYC Onboarding";
228
229
  }
229
- return /* @__PURE__ */ p(W, { children: [
230
+ return /* @__PURE__ */ p(V, { children: [
230
231
  s.status !== "" && /* @__PURE__ */ o(
231
- de,
232
+ Ne,
232
233
  {
233
234
  sx: { borderRadius: "20px" },
234
235
  onClick: () => d(!0),
@@ -239,24 +240,24 @@ const E = {
239
240
  }
240
241
  ),
241
242
  /* @__PURE__ */ p(
242
- Te,
243
+ ue,
243
244
  {
244
245
  open: b,
245
246
  fullWidth: !0,
246
- TransitionComponent: z,
247
+ TransitionComponent: H,
247
248
  children: [
248
249
  /* @__PURE__ */ o(
249
- Ee,
250
+ Oe,
250
251
  {
251
252
  sx: {
252
253
  background: "linear-gradient(90deg, #f7fbff 0%, #eef3fa 50%, #f7fbff 100%)",
253
254
  boxShadow: "0px 1px 4px rgba(0, 0, 0, 0.1)"
254
255
  },
255
256
  className: "buy-modal-text-color",
256
- children: /* @__PURE__ */ p(Oe, { display: "flex", alignItems: "center", children: [
257
- a !== 1 && a !== 10 && /* @__PURE__ */ o(I, { onClick: M, size: "small", children: /* @__PURE__ */ o(j, { fontSize: "small", color: "primary" }) }),
257
+ children: /* @__PURE__ */ p(De, { display: "flex", alignItems: "center", children: [
258
+ a !== 1 && a !== 10 && /* @__PURE__ */ o(I, { onClick: F, size: "small", children: /* @__PURE__ */ o(X, { fontSize: "small", color: "primary" }) }),
258
259
  /* @__PURE__ */ o(
259
- ue,
260
+ Ae,
260
261
  {
261
262
  variant: "subtitle1",
262
263
  fontWeight: 600,
@@ -271,47 +272,48 @@ const E = {
271
272
  "aria-label": "close",
272
273
  onClick: D,
273
274
  className: "menu-buttons",
274
- children: /* @__PURE__ */ o(H, {})
275
+ children: /* @__PURE__ */ o(j, {})
275
276
  }
276
277
  )
277
278
  ] })
278
279
  }
279
280
  ),
280
- /* @__PURE__ */ p(Ne, { sx: { padding: "50px", height: "620px" }, dividers: !0, children: [
281
- s.uploadLoader && /* @__PURE__ */ o(me, {}),
281
+ /* @__PURE__ */ p(Ee, { sx: { padding: "50px", height: "620px" }, dividers: !0, children: [
282
+ s.uploadLoader && /* @__PURE__ */ o(le, {}),
282
283
  {
283
- 1: /* @__PURE__ */ o(X, { kycData: e, onNext: F }),
284
- 2: /* @__PURE__ */ o(Q, { kycData: e, onNext: K }),
285
- 3: /* @__PURE__ */ o($, { onComplete: () => r(10) }),
286
- 4: /* @__PURE__ */ o(fe, { onNext: B, eddData: h }),
287
- 5: /* @__PURE__ */ o(ee, { onNext: u }),
288
- 6: /* @__PURE__ */ o(te, { onNext: u }),
289
- 7: /* @__PURE__ */ o(oe, { kycData: e, onNext: v }),
284
+ 1: /* @__PURE__ */ o(q, { kycData: e, onNext: K }),
285
+ 2: /* @__PURE__ */ o($, { kycData: e, onNext: v }),
286
+ 3: /* @__PURE__ */ o(ee, { onComplete: () => r(10) }),
287
+ 4: /* @__PURE__ */ o(de, { onNext: G, eddData: w }),
288
+ 5: /* @__PURE__ */ o(te, { onNext: O }),
289
+ 6: /* @__PURE__ */ o(oe, { onNext: O }),
290
+ 7: /* @__PURE__ */ o(re, { kycData: e, onNext: P }),
290
291
  8: /* @__PURE__ */ o(
291
- re,
292
+ ie,
292
293
  {
293
294
  kycStoreData: s,
294
295
  kycData: e,
295
- onNext: P
296
+ onNext: Y
296
297
  }
297
298
  ),
298
299
  9: /* @__PURE__ */ o(
299
- ie,
300
+ ae,
300
301
  {
301
302
  kycData: e,
302
- onNext: Y,
303
+ onNext: B,
303
304
  onEdit: () => r(7)
304
305
  }
305
306
  ),
306
- 10: /* @__PURE__ */ o(ae, { onNext: D }),
307
+ 10: /* @__PURE__ */ o(se, { onNext: D }),
307
308
  11: /* @__PURE__ */ o(
308
- pe,
309
+ fe,
309
310
  {
311
+ theme: h,
310
312
  configurationId: _,
311
313
  incodeApiKey: S,
312
314
  incodeApiUrl: R,
313
315
  incodeOnBoardingUrl: y,
314
- updateScreen: U
316
+ updateScreen: k
315
317
  }
316
318
  )
317
319
  }[a]
@@ -320,8 +322,8 @@ const E = {
320
322
  }
321
323
  )
322
324
  ] });
323
- }, mt = V(Ae);
325
+ }, ft = z(Ie);
324
326
  export {
325
- Ae as EnterpriseKyc,
326
- mt as default
327
+ Ie as EnterpriseKyc,
328
+ ft as default
327
329
  };