everest-npm-features 0.0.28 → 0.0.30

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.
@@ -3,7 +3,7 @@ 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-Db73x3ti.js";
6
+ import { I as _, c as s, b as C, a as I, F as O } from "../../../index-C3GMDAX6.js";
7
7
  import "../../../pep-C_LViPSb.js";
8
8
  import "../../../constants-BF50a6s-.js";
9
9
  import "../../../kyc-kWxxF1vI.js";
@@ -19,7 +19,7 @@ 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-Db73x3ti.js";
22
+ import { P as B } from "../../../index-C3GMDAX6.js";
23
23
  import "../../../context/dialogContext.js";
24
24
  import "../../../Box-BwKpr_VI.js";
25
25
  import "../../../Typography-BQDN44CM.js";
@@ -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-Db73x3ti.js";
25
+ import { U as H } from "../../../index-C3GMDAX6.js";
26
26
  import "../../../context/dialogContext.js";
27
27
  import "../../../Box-BwKpr_VI.js";
28
28
  import "../../../Typography-BQDN44CM.js";
@@ -15,7 +15,7 @@ import ie from "./orgDetails.js";
15
15
  import ae from "./verify.js";
16
16
  import se from "./success.js";
17
17
  import "../../../constants-BF50a6s-.js";
18
- import { r as N, k as ne } from "../../../kyc-kWxxF1vI.js";
18
+ import { r as u, k as ne } from "../../../kyc-kWxxF1vI.js";
19
19
  import { a as ce, u as me } from "../../../react-redux-C7I9-1M6.js";
20
20
  import le from "../../Shared/loader.js";
21
21
  import "../Shared/appButton.js";
@@ -31,24 +31,24 @@ 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 fe } from "../../../index-Db73x3ti.js";
34
+ import { F as fe } from "../../../index-C3GMDAX6.js";
35
35
  import "../../../context/dialogContext.js";
36
36
  import de from "./edd.js";
37
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";
38
+ import { B as ue } from "../../../Button-tAfK4lud.js";
39
+ import { D as Ee, a as Ne } from "../../../DialogContent-_gvZOy18.js";
40
40
  import { D as Oe } from "../../../DialogTitle-dq22bYlF.js";
41
41
  import { B as De } from "../../../Box-BwKpr_VI.js";
42
42
  import { I } from "../../../IconButton-WneJM4uP.js";
43
43
  import { T as Ae } from "../../../Typography-BQDN44CM.js";
44
- const u = {
44
+ const E = {
45
45
  type: Z,
46
46
  transactAmount: C,
47
47
  orgName: "",
48
48
  orgOtherName: "",
49
49
  street: "",
50
50
  city: "",
51
- // state: "",
51
+ state: "",
52
52
  postal: "",
53
53
  country: "",
54
54
  phone: "",
@@ -134,13 +134,13 @@ const u = {
134
134
  incodeApiUrl: R,
135
135
  incodeOnBoardingUrl: y
136
136
  }) => {
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
+ const h = Te(), l = ce(), { showAlertMessage: g } = pe(), s = me((t) => t.user.kyc), f = s.error, N = s.processComplete, [b, d] = m(!1), [a, r] = m(1), [e, c] = m(E), [w, U] = m(xe), [k, M] = m(!1);
138
138
  T(() => {
139
139
  f && g({ message: f });
140
140
  }, [f]), T(() => {
141
- E && r(10);
142
- }, [E]), T(() => () => {
143
- l(N());
141
+ N && r(10);
142
+ }, [N]), T(() => () => {
143
+ l(u());
144
144
  }, []);
145
145
  const F = () => {
146
146
  let t;
@@ -166,9 +166,9 @@ const u = {
166
166
  r((t) => t + 1);
167
167
  }, P = (t) => {
168
168
  c({ ...e, ...t }), r((i) => i + 1);
169
- }, Y = (t) => {
169
+ }, B = (t) => {
170
170
  c({ ...e, ...t }), r((i) => i + 1);
171
- }, B = () => {
171
+ }, Y = () => {
172
172
  const t = Object.entries(e).flatMap(([L, A]) => A.file ? A.file.map((W) => ({
173
173
  type: L,
174
174
  file: W
@@ -182,8 +182,7 @@ const u = {
182
182
  city: e.city,
183
183
  fax: e.fax,
184
184
  postcode: e.postal,
185
- state: "NY",
186
- //TODO: Remove when this is removed/optional on BE
185
+ state: e.state,
187
186
  street: e.street
188
187
  },
189
188
  edd: {
@@ -203,7 +202,7 @@ const u = {
203
202
  }, D = () => {
204
203
  a > 1 && a !== 10 ? window.confirm(
205
204
  "Are you sure you want to close this? All progress will be lost."
206
- ) && (d(!1), l(N()), r(1), c(u)) : (d(!1), l(N()), r(1), c(u));
205
+ ) && (d(!1), l(u()), r(1), c(E)) : (d(!1), l(u()), r(1), c(E));
207
206
  }, G = (t) => {
208
207
  U(t), alert("API call");
209
208
  };
@@ -229,7 +228,7 @@ const u = {
229
228
  }
230
229
  return /* @__PURE__ */ p(V, { children: [
231
230
  s.status !== "" && /* @__PURE__ */ o(
232
- Ne,
231
+ ue,
233
232
  {
234
233
  sx: { borderRadius: "20px" },
235
234
  onClick: () => d(!0),
@@ -240,7 +239,7 @@ const u = {
240
239
  }
241
240
  ),
242
241
  /* @__PURE__ */ p(
243
- ue,
242
+ Ee,
244
243
  {
245
244
  open: b,
246
245
  fullWidth: !0,
@@ -278,7 +277,7 @@ const u = {
278
277
  ] })
279
278
  }
280
279
  ),
281
- /* @__PURE__ */ p(Ee, { sx: { padding: "50px", height: "620px" }, dividers: !0, children: [
280
+ /* @__PURE__ */ p(Ne, { sx: { padding: "50px", height: "620px" }, dividers: !0, children: [
282
281
  s.uploadLoader && /* @__PURE__ */ o(le, {}),
283
282
  {
284
283
  1: /* @__PURE__ */ o(q, { kycData: e, onNext: K }),
@@ -293,14 +292,14 @@ const u = {
293
292
  {
294
293
  kycStoreData: s,
295
294
  kycData: e,
296
- onNext: Y
295
+ onNext: B
297
296
  }
298
297
  ),
299
298
  9: /* @__PURE__ */ o(
300
299
  ae,
301
300
  {
302
301
  kycData: e,
303
- onNext: B,
302
+ onNext: Y,
304
303
  onEdit: () => r(7)
305
304
  }
306
305
  ),
@@ -1,9 +1,9 @@
1
- import { jsxs as r, Fragment as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as o, Fragment as i, jsx as e } from "react/jsx-runtime";
2
2
  import a from "../Shared/appButton.js";
3
3
  import { T as t } from "../../../Typography-BQDN44CM.js";
4
4
  import { L as n } from "../../../Link-DhdK4VfZ.js";
5
5
  import { B as s } from "../../../Box-BwKpr_VI.js";
6
- const h = ({ onNext: o }) => /* @__PURE__ */ r(i, { children: [
6
+ const h = ({ onNext: r }) => /* @__PURE__ */ o(i, { children: [
7
7
  /* @__PURE__ */ e(t, { variant: "body1", children: "Hello and thank you for your interest in Setting Up an Organization on the Everest platform." }),
8
8
  /* @__PURE__ */ e("br", {}),
9
9
  /* @__PURE__ */ e(t, { variant: "body1", children: "Your request will go into a queue that will be reviewed and when your organization is approved, you will be notified at the email address specified. Please ensure this is a good contact address for you." }),
@@ -17,10 +17,10 @@ const h = ({ onNext: o }) => /* @__PURE__ */ r(i, { children: [
17
17
  color: "primary",
18
18
  sx: { textDecoration: "underline", cursor: "pointer" },
19
19
  fontWeight: "bold",
20
- children: /* @__PURE__ */ e(n, { href: "https://static-assets.everest.org/web/files/enterprise-wallet.docx", children: "Checklist of supporting documents needed for each type of organization." })
20
+ children: /* @__PURE__ */ e(n, { target: "_blank", href: "https://static-assets.everest.org/web/files/enterprise-wallet.pdf", children: "Checklist of supporting documents needed for each type of organization." })
21
21
  }
22
22
  ),
23
- /* @__PURE__ */ e(s, { mt: 8, children: /* @__PURE__ */ e(a, { fullWidth: !0, onClick: o, children: "Next" }) })
23
+ /* @__PURE__ */ e(s, { mt: 8, children: /* @__PURE__ */ e(a, { fullWidth: !0, onClick: r, children: "Next" }) })
24
24
  ] });
25
25
  export {
26
26
  h as default