everest-npm-features 0.0.38 → 0.0.39-temp.1

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 { E as s, I as C, c as D, b as I, a as O, F as P } from "../../../index-CKEqyTf9.js";
6
+ import { E as s, I as C, c as D, b as I, a as O, F as P } from "../../../index-B_ZN1s9v.js";
7
7
  import "./pep.js";
8
8
  import "../../../constants-9grj4Du1.js";
9
9
  import "../../../kyc-MeOwOyUF.js";
@@ -18,7 +18,7 @@ import "../../../index.esm-BsMAMhYW.js";
18
18
  import "../../../web3-u4qDZYpo.js";
19
19
  import "../../../index-B8QKlEgj.js";
20
20
  import "../../../index-ceeCtFuh.js";
21
- import { P as z } from "../../../index-CKEqyTf9.js";
21
+ import { P as z } from "../../../index-B_ZN1s9v.js";
22
22
  import "../../../context/dialogContext.js";
23
23
  import "./countryList.js";
24
24
  import "../../../Box-B0YSYLco.js";
@@ -21,7 +21,7 @@ import "../../../countries-BVn1FubK.js";
21
21
  import "../../../web3-u4qDZYpo.js";
22
22
  import "../../../index-B8QKlEgj.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
- import { U as H } from "../../../index-CKEqyTf9.js";
24
+ import { U as H } from "../../../index-B_ZN1s9v.js";
25
25
  import "../../../context/dialogContext.js";
26
26
  import "./countryList.js";
27
27
  import "../../../Box-B0YSYLco.js";
@@ -1,15 +1,15 @@
1
1
  import { jsx as a, jsxs as l, Fragment as P } from "react/jsx-runtime";
2
2
  import { useState as v, useRef as U } from "react";
3
- import { a as f } from "../../../react-redux-B4BZippc.js";
4
- import { DIALOG_ERROR_ICON as C, DIALOG_SUCCESS_ICON as _ } from "../../../util/constants.js";
5
- import { C as D } from "../../../Close-CNwiMz_O.js";
6
- import V from "../../Shared/transition.js";
7
- import k from "../Shared/CardPayment/index.js";
8
- import { a as M, ac as O, c as F, K as G } from "../../../constants-9grj4Du1.js";
3
+ import { a as C } from "../../../react-redux-B4BZippc.js";
4
+ import { DIALOG_ERROR_ICON as c, DIALOG_SUCCESS_ICON as V } from "../../../util/constants.js";
5
+ import { C as _ } from "../../../Close-CNwiMz_O.js";
6
+ import k from "../../Shared/transition.js";
7
+ import D from "../Shared/CardPayment/index.js";
8
+ import { a as M, ac as O, c as G, K } from "../../../constants-9grj4Du1.js";
9
9
  import "../Shared/appButton.js";
10
10
  import "../../../hoc/withThemeProvider.js";
11
11
  import "../Shared/Auth/otpForm.js";
12
- import { useSnackBarContext as K } from "../../../context/snackBarContext.js";
12
+ import { useSnackBarContext as F } from "../../../context/snackBarContext.js";
13
13
  import "../../../util/conversions.js";
14
14
  import "../../../index-CAoLi5Qq.js";
15
15
  import "../../../react-webcam-B3cXh1XT.js";
@@ -23,12 +23,12 @@ import "../../../context/dialogContext.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
24
  import { B as S } from "../../../Box-B0YSYLco.js";
25
25
  import { C as b } from "../../../CircularProgress-xZA3lvba.js";
26
- import { T as c } from "../../../Typography-pAaje37G.js";
26
+ import { T as h } from "../../../Typography-pAaje37G.js";
27
27
  import { D as Y, a as H } from "../../../DialogContent-BMwlOnbW.js";
28
28
  import { D as W } from "../../../DialogTitle-CfS0bb2K.js";
29
29
  import { I as z } from "../../../IconButton-DHm-hucF.js";
30
30
  import { S as j } from "../../../Select-CB5yWmyn.js";
31
- import { M as h } from "../../../MenuItem-DUdYOJr4.js";
31
+ import { M as u } from "../../../MenuItem-DUdYOJr4.js";
32
32
  const Z = [
33
33
  {
34
34
  alpha3: "AUT",
@@ -189,22 +189,27 @@ const Z = [
189
189
  alpha3: "CHE",
190
190
  alpha2: "CH",
191
191
  name: "Switzerland"
192
+ },
193
+ {
194
+ alpha3: "GBR",
195
+ alpha2: "GB",
196
+ name: "United Kingdom"
192
197
  }
193
- ], xa = ({
194
- openDialog: o,
198
+ ], La = ({
199
+ openDialog: t,
195
200
  checkoutSdkKey: y,
196
- paymentRequest: I,
197
- iban: T,
198
- navigate: g,
199
- currency: t,
200
- setIbanCurrency: u
201
+ paymentRequest: B,
202
+ iban: g,
203
+ navigate: T,
204
+ currency: r,
205
+ setIbanCurrency: d
201
206
  }) => {
202
- const { showAlertMessage: d } = K(), m = f((e) => e.user), s = m.profile, B = f((e) => e.order), E = s.loader, L = m.kyc.loader, i = m.kyc.status, N = s.email, [x, p] = v(!1), r = U(!1), R = () => {
203
- if (!N) {
204
- o({
207
+ const { showAlertMessage: f } = F(), s = C((e) => e.user), i = s.profile, I = C((e) => e.order), x = i.loader, N = s.kyc.loader, p = s.kyc.status, E = i.email, [L, m] = v(!1), n = U(!1), w = () => {
208
+ if (!E) {
209
+ t({
205
210
  title: "No Email",
206
211
  message: "Please contact support to update your email address.",
207
- icon: C,
212
+ icon: c,
208
213
  width: "575px",
209
214
  confirmButtonText: "Contact Suuport",
210
215
  cancelButtonShow: !0,
@@ -214,8 +219,8 @@ const Z = [
214
219
  });
215
220
  return;
216
221
  }
217
- if (i === M || i === O) {
218
- o({
222
+ if (p === M || p === O) {
223
+ t({
219
224
  title: "Under Review",
220
225
  message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
221
226
  width: "550px",
@@ -225,25 +230,37 @@ const Z = [
225
230
  });
226
231
  return;
227
232
  }
228
- if (i !== F && i !== G) {
229
- o({
233
+ if (p !== G && p !== K) {
234
+ t({
230
235
  title: "Verifying",
231
236
  message: "We are gathering information, and will provision your Virtual IBAN shortly.",
232
237
  width: "575px",
233
238
  height: "400px",
234
239
  confirmButtonText: "Continue",
235
240
  cancelButtonText: "Cancel",
236
- onConfirm: () => g("/kyc")
241
+ onConfirm: () => T("/kyc")
237
242
  });
238
243
  return;
239
244
  }
240
245
  if (!Z.find(
241
- (n) => n.alpha3 === s.residentialAddress.country
246
+ (o) => o.alpha3 === i.residentialAddress.country
242
247
  )) {
243
- o({
248
+ t({
244
249
  title: "Not Allowed",
245
250
  message: "Currently we are not supporting your country for Virtual IBAN.",
246
- icon: C,
251
+ icon: c,
252
+ width: "575px",
253
+ height: "450px",
254
+ confirmButtonText: "Continue",
255
+ cancelButtonShow: !1
256
+ });
257
+ return;
258
+ }
259
+ if (i.memberType !== "individual") {
260
+ t({
261
+ title: "Not Allowed",
262
+ message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
263
+ icon: c,
247
264
  width: "575px",
248
265
  height: "450px",
249
266
  confirmButtonText: "Continue",
@@ -251,59 +268,59 @@ const Z = [
251
268
  });
252
269
  return;
253
270
  }
254
- o({
271
+ t({
255
272
  title: "Payment",
256
273
  message: /* @__PURE__ */ l(S, { children: [
257
- /* @__PURE__ */ a(c, { children: "You will be charged $12 per annum for creating an Virtual IBAN. Please select currency for the Virtual IBAN and proceed." }),
274
+ /* @__PURE__ */ a(h, { children: "You will be charged $12 per annum for creating an Virtual IBAN. Please select currency for the Virtual IBAN and proceed." }),
258
275
  /* @__PURE__ */ l(
259
276
  j,
260
277
  {
261
278
  defaultValue: "",
262
- onChange: (n) => {
263
- t.current = n.target.value, u(n.target.value);
279
+ onChange: (o) => {
280
+ r.current = o.target.value, d(o.target.value);
264
281
  },
265
282
  style: { marginTop: "10px" },
266
283
  displayEmpty: !0,
267
284
  fullWidth: !0,
268
285
  children: [
269
- /* @__PURE__ */ a(h, { value: "", children: "Select currency" }),
270
- /* @__PURE__ */ a(h, { value: "EUR", children: "EUR" }),
271
- /* @__PURE__ */ a(h, { value: "GBP", children: "GBP" })
286
+ /* @__PURE__ */ a(u, { value: "", children: "Select currency" }),
287
+ /* @__PURE__ */ a(u, { value: "EUR", children: "EUR" }),
288
+ /* @__PURE__ */ a(u, { value: "GBP", children: "GBP" })
272
289
  ]
273
290
  }
274
291
  )
275
292
  ] }),
276
- icon: _,
293
+ icon: V,
277
294
  width: "575px",
278
295
  confirmButtonText: "Make Payment",
279
296
  cancelButtonShow: !0,
280
297
  cancelButtonText: "Cancel",
281
- closeModalConfirm: A,
282
- onConfirm: w,
298
+ closeModalConfirm: R,
299
+ onConfirm: A,
283
300
  onCancel: () => {
284
- t.current = "", u(""), r.current = !1;
301
+ r.current = "", d(""), n.current = !1;
285
302
  },
286
303
  onClose: () => {
287
- t.current = "", r.current = !1;
304
+ r.current = "", n.current = !1;
288
305
  }
289
306
  });
290
- }, A = () => !r.current, w = () => {
291
- if (r.current = !1, !t.current)
292
- return r.current = !0, d({
307
+ }, R = () => !n.current, A = () => {
308
+ if (n.current = !1, !r.current)
309
+ return n.current = !0, f({
293
310
  message: "Please select currency for Virtual IBAN."
294
311
  }), !1;
295
- const e = T.data.find((n) => n.currency === t.current);
312
+ const e = g.data.find((o) => o.currency === r.current);
296
313
  if (e != null && e.id)
297
- return r.current = !0, d({
298
- message: `You already have the ${t.current} Virtual IBAN.`
314
+ return n.current = !0, f({
315
+ message: `You already have the ${r.current} Virtual IBAN.`
299
316
  }), !1;
300
- p(!0);
317
+ m(!0);
301
318
  };
302
- return E || L ? /* @__PURE__ */ a(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(b, { color: "primary", size: 50 }) }) : /* @__PURE__ */ l(P, { children: [
319
+ return x || N ? /* @__PURE__ */ a(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ a(b, { color: "primary", size: 50 }) }) : /* @__PURE__ */ l(P, { children: [
303
320
  /* @__PURE__ */ a(
304
- c,
321
+ h,
305
322
  {
306
- onClick: R,
323
+ onClick: w,
307
324
  component: "span",
308
325
  color: "primary",
309
326
  sx: { cursor: "pointer" },
@@ -313,20 +330,20 @@ const Z = [
313
330
  /* @__PURE__ */ l(
314
331
  Y,
315
332
  {
316
- open: x,
333
+ open: L,
317
334
  fullWidth: !0,
318
- onClose: () => p(!1),
319
- TransitionComponent: V,
335
+ onClose: () => m(!1),
336
+ TransitionComponent: k,
320
337
  children: [
321
338
  /* @__PURE__ */ l(W, { className: "buy-modal-text-color", children: [
322
- /* @__PURE__ */ a(c, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
339
+ /* @__PURE__ */ a(h, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ a("strong", { children: "Payment" }) }),
323
340
  /* @__PURE__ */ a(
324
341
  z,
325
342
  {
326
343
  "aria-label": "close",
327
- onClick: () => p(!1),
344
+ onClick: () => m(!1),
328
345
  className: "menu-buttons",
329
- children: /* @__PURE__ */ a(D, {})
346
+ children: /* @__PURE__ */ a(_, {})
330
347
  }
331
348
  )
332
349
  ] }),
@@ -337,12 +354,12 @@ const Z = [
337
354
  sx: { padding: "50px" },
338
355
  dividers: !0,
339
356
  children: /* @__PURE__ */ a(
340
- k,
357
+ D,
341
358
  {
342
359
  checkoutKey: y,
343
- orderData: B,
344
- initPaymentRequest: I,
345
- backBtnFunc: () => p(!1)
360
+ orderData: I,
361
+ initPaymentRequest: B,
362
+ backBtnFunc: () => m(!1)
346
363
  }
347
364
  )
348
365
  }
@@ -353,5 +370,5 @@ const Z = [
353
370
  ] });
354
371
  };
355
372
  export {
356
- xa as default
373
+ La as default
357
374
  };
@@ -3,28 +3,28 @@ import { useRef as S, useState as g, useEffect as A } from "react";
3
3
  import { I as B } from "../../../Info-BVeUSPyk.js";
4
4
  import { DIALOG_SUCCESS_ICON as N } from "../../../util/constants.js";
5
5
  import "../../../constants-9grj4Du1.js";
6
- import { a as b } from "../../../order-Cs5_3wOs.js";
7
- import { M as D } from "../../../tooltip-3UvETWtS.js";
6
+ import { a as D } from "../../../order-Cs5_3wOs.js";
7
+ import { M as b } from "../../../tooltip-3UvETWtS.js";
8
8
  import q from "../Shared/noData.js";
9
9
  import w from "./createIban.js";
10
10
  import { AuthInnerContainer as P } from "../Shared/Container/index.js";
11
11
  import R from "./ibanItem.js";
12
12
  import { B as a } from "../../../Box-B0YSYLco.js";
13
- import { G as s } from "../../../Grid-CFe3amXO.js";
14
- import { T as _ } from "../../../Typography-pAaje37G.js";
15
- import { I as v } from "../../../IconButton-DHm-hucF.js";
16
- import { C as T } from "../../../CircularProgress-xZA3lvba.js";
13
+ import { G as c } from "../../../Grid-CFe3amXO.js";
14
+ import { T } from "../../../Typography-pAaje37G.js";
15
+ import { I as _ } from "../../../IconButton-DHm-hucF.js";
16
+ import { C as v } from "../../../CircularProgress-xZA3lvba.js";
17
17
  const Q = ({
18
- dispatch: c,
18
+ dispatch: s,
19
19
  openDialog: i,
20
20
  baseUrl: m,
21
21
  checkoutSdkKey: f,
22
- appKey: u,
22
+ appKey: p,
23
23
  iban: r,
24
24
  navigate: d,
25
- AccountItem: h
25
+ AccountItem: y
26
26
  }) => {
27
- const p = r.data, y = r.loader, I = S(""), [x, C] = g("");
27
+ const u = r.data, h = r.loader, I = S(""), [x, C] = g("");
28
28
  return A(() => {
29
29
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
30
30
  title: "Payment Success",
@@ -34,34 +34,36 @@ const Q = ({
34
34
  confirmButtonText: "Continue"
35
35
  });
36
36
  }, []), /* @__PURE__ */ e(P, { children: /* @__PURE__ */ o(a, { p: 3, children: [
37
- /* @__PURE__ */ o(s, { spacing: 2, container: !0, alignItems: "center", children: [
38
- /* @__PURE__ */ o(s, { size: 8, children: [
39
- /* @__PURE__ */ e(_, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
37
+ /* @__PURE__ */ o(c, { spacing: 2, container: !0, alignItems: "center", children: [
38
+ /* @__PURE__ */ o(c, { size: 8, children: [
39
+ /* @__PURE__ */ e(T, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Apex Accounts (Virtual IBAN)" }) }),
40
40
  /* @__PURE__ */ e(
41
- D,
41
+ b,
42
42
  {
43
43
  title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of EUR currency. This requires KYC and an annual payment" }),
44
44
  placement: "bottom",
45
- children: /* @__PURE__ */ e(v, { className: "info-fee-icon", children: /* @__PURE__ */ e(B, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
45
+ children: /* @__PURE__ */ e(_, { className: "info-fee-icon", children: /* @__PURE__ */ e(B, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
46
46
  }
47
47
  )
48
48
  ] }),
49
- /* @__PURE__ */ e(s, { size: 4, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
+ /* @__PURE__ */ e(c, { size: 4, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
50
50
  w,
51
51
  {
52
52
  openDialog: i,
53
53
  checkoutSdkKey: f,
54
54
  paymentRequest: (t) => {
55
55
  const n = {
56
- token: t,
57
- amount: 12,
58
- currency: "USD",
59
- app_key: u,
60
- success_url: `${m}/accounts?payment=success`,
61
- fail_url: `${m}/dashboard?payment=failed`,
62
- iban_currency: x
56
+ payment: {
57
+ token: t,
58
+ amount: 12,
59
+ currency: "USD",
60
+ app_key: p,
61
+ success_url: `${m}/accounts?payment=success`,
62
+ fail_url: `${m}/dashboard?payment=failed`
63
+ },
64
+ currency: x
63
65
  };
64
- c(b(n));
66
+ s(D(n));
65
67
  },
66
68
  iban: r,
67
69
  navigate: d,
@@ -70,13 +72,13 @@ const Q = ({
70
72
  }
71
73
  ) }) })
72
74
  ] }),
73
- y ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(T, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: p.length > 0 ? /* @__PURE__ */ e(l, { children: p.map((t, n) => /* @__PURE__ */ e(
75
+ h ? /* @__PURE__ */ e(a, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(v, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(l, { children: u.length > 0 ? /* @__PURE__ */ e(l, { children: u.map((t, n) => /* @__PURE__ */ e(
74
76
  R,
75
77
  {
76
78
  data: t,
77
- AccountItem: h,
78
- dispatch: c,
79
- appKey: u,
79
+ AccountItem: y,
80
+ dispatch: s,
81
+ appKey: p,
80
82
  iban: r
81
83
  },
82
84
  n
@@ -30,7 +30,7 @@ import "../../../index.esm-BsMAMhYW.js";
30
30
  import "../../../web3-u4qDZYpo.js";
31
31
  import "../../../index-B8QKlEgj.js";
32
32
  import "../../../index-ceeCtFuh.js";
33
- import { F as b } from "../../../index-CKEqyTf9.js";
33
+ import { F as b } from "../../../index-B_ZN1s9v.js";
34
34
  import "../../../context/dialogContext.js";
35
35
  import { u as de } from "../../../useTheme-BQJ5lp0i.js";
36
36
  import { D as De, a as Oe } from "../../../DialogContent-BMwlOnbW.js";
@@ -1,16 +1,16 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import o from "../Shared/Container/index.js";
3
- import e from "../Shared/appButton.js";
2
+ import e from "../Shared/Container/index.js";
3
+ import o from "../Shared/appButton.js";
4
4
  import s from "../../../hoc/withThemeProvider.js";
5
5
  import { T as c } from "../../../Typography-pAaje37G.js";
6
6
  import { G as n } from "../../../Grid-CFe3amXO.js";
7
- const l = ({ navigate: i }) => /* @__PURE__ */ t(o, { children: [
8
- /* @__PURE__ */ r(c, { variant: "h5", children: /* @__PURE__ */ r("strong", { children: "Welcome to EverWallet Enterprise" }) }),
7
+ const l = ({ navigate: i }) => /* @__PURE__ */ t(e, { children: [
8
+ /* @__PURE__ */ r(c, { variant: "h5", children: /* @__PURE__ */ r("strong", { children: "Welcome to Apex Wallet" }) }),
9
9
  /* @__PURE__ */ t(n, { sx: { margin: "0 auto", width: "70%" }, container: !0, children: [
10
- /* @__PURE__ */ r(n, { mt: 7, size: { xs: 12 }, children: /* @__PURE__ */ r(e, { onClick: () => {
10
+ /* @__PURE__ */ r(n, { mt: 7, size: { xs: 12 }, children: /* @__PURE__ */ r(o, { onClick: () => {
11
11
  i("/signin");
12
12
  }, fullWidth: !0, children: /* @__PURE__ */ r("strong", { children: "Sign In" }) }) }),
13
- /* @__PURE__ */ r(n, { mt: 2.5, size: { xs: 12 }, children: /* @__PURE__ */ r(e, { onClick: () => {
13
+ /* @__PURE__ */ r(n, { mt: 2.5, size: { xs: 12 }, children: /* @__PURE__ */ r(o, { onClick: () => {
14
14
  i("/signup");
15
15
  }, variantType: "secondary", fullWidth: !0, children: /* @__PURE__ */ r("strong", { children: "Create Account" }) }) })
16
16
  ] })
@@ -219,7 +219,8 @@ const o2 = () => ({
219
219
  {
220
220
  label: "Address Line 2",
221
221
  value: "",
222
- disabled: !0
222
+ disabled: !0,
223
+ required: !1
223
224
  }
224
225
  ),
225
226
  /* @__PURE__ */ e(
@@ -233,7 +234,7 @@ const o2 = () => ({
233
234
  /* @__PURE__ */ e(
234
235
  o,
235
236
  {
236
- label: "State",
237
+ label: "State/Province",
237
238
  value: p.state,
238
239
  disabled: !0
239
240
  }
@@ -158,6 +158,11 @@ declare const _default: [
158
158
  "alpha3": "CHE",
159
159
  "alpha2": "CH",
160
160
  "name": "Switzerland"
161
+ },
162
+ {
163
+ "alpha3": "GBR",
164
+ "alpha2": "GB",
165
+ "name": "United Kingdom"
161
166
  }
162
167
  ]
163
168
  ;
@@ -1,4 +1,4 @@
1
- import { jsxs as y, Fragment as te, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as S, Fragment as te, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as r, useEffect as F, useRef as ge } from "react";
3
3
  import { AuthContainer as Ce } from "./components/Wallet/Shared/Container/index.js";
4
4
  import ye from "./components/Shared/Incode/index.js";
@@ -46,7 +46,7 @@ const Be = ({
46
46
  }) => {
47
47
  const l = ue();
48
48
  _e();
49
- const { showAlertMessage: u } = pe(), a = f ?? ce, D = R ?? de, [c, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, z] = r(""), [d, I] = r(i.address || ""), [t, O] = r(i.city || ""), [S, M] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, q] = r(
49
+ const { showAlertMessage: c } = pe(), a = f ?? ce, D = R ?? de, [d, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, q] = r(""), [u, z] = r(i.address || ""), [t, O] = r(i.city || ""), [y, I] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, M] = r(
50
50
  i.country || null
51
51
  ), [s, X] = r(!1);
52
52
  F(() => {
@@ -62,9 +62,9 @@ const Be = ({
62
62
  const T = new Date(n.birthDate), $ = T.getTimezoneOffset() * 6e4, W = new Date(
63
63
  T.getTime() + $
64
64
  );
65
- if (z(W.toLocaleDateString("en-US")), (o = n.checkedAddressBean) != null && o.street) {
65
+ if (q(W.toLocaleDateString("en-US")), (o = n.checkedAddressBean) != null && o.street) {
66
66
  const E = n.checkedAddressBean;
67
- X(!0), I(E.street), O(E.city), M(E.state), A(E.postalCode);
67
+ X(!0), z(E.street), O(E.city), I(E.state), A(E.postalCode);
68
68
  }
69
69
  } else
70
70
  U();
@@ -72,11 +72,11 @@ const Be = ({
72
72
  const U = () => {
73
73
  l(ve());
74
74
  };
75
- return /* @__PURE__ */ y(te, { children: [
75
+ return /* @__PURE__ */ S(te, { children: [
76
76
  p !== v && /* @__PURE__ */ e(w, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(me, { totalSteps: 4, currentStep: 2 }) }),
77
- /* @__PURE__ */ y(w, { pl: 2, mt: 4, children: [
77
+ /* @__PURE__ */ S(w, { pl: 2, mt: 4, children: [
78
78
  /* @__PURE__ */ e(j, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
79
- p !== v && /* @__PURE__ */ y(te, { children: [
79
+ p !== v && /* @__PURE__ */ S(te, { children: [
80
80
  /* @__PURE__ */ e(j, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
81
81
  /* @__PURE__ */ e(
82
82
  a,
@@ -88,15 +88,15 @@ const Be = ({
88
88
  required: !0
89
89
  }
90
90
  ),
91
- /* @__PURE__ */ y(Oe, { sx: { mt: 3 }, fullWidth: !0, children: [
91
+ /* @__PURE__ */ S(Oe, { sx: { mt: 3 }, fullWidth: !0, children: [
92
92
  /* @__PURE__ */ e(Re, { children: "Gender" }),
93
- /* @__PURE__ */ y(
93
+ /* @__PURE__ */ S(
94
94
  Ae,
95
95
  {
96
- value: c,
96
+ value: d,
97
97
  label: "Gender",
98
98
  onChange: (o) => _(o.target.value),
99
- disabled: !!(m && c),
99
+ disabled: !!(m && d),
100
100
  required: !0,
101
101
  children: [
102
102
  /* @__PURE__ */ e(Q, { value: "M", children: "Male" }, "M"),
@@ -123,13 +123,13 @@ const Be = ({
123
123
  {
124
124
  sx: { mt: 3 },
125
125
  label: "Home Address",
126
- value: d,
127
- onChange: (o) => I(o.target.value),
128
- disabled: !!(s && d),
126
+ value: u,
127
+ onChange: (o) => z(o.target.value),
128
+ disabled: !!(s && u),
129
129
  required: !0
130
130
  }
131
131
  ),
132
- /* @__PURE__ */ y(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
132
+ /* @__PURE__ */ S(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
133
133
  /* @__PURE__ */ e(V, { size: 6, children: /* @__PURE__ */ e(
134
134
  a,
135
135
  {
@@ -143,9 +143,10 @@ const Be = ({
143
143
  /* @__PURE__ */ e(V, { size: 6, children: /* @__PURE__ */ e(
144
144
  a,
145
145
  {
146
- label: "State",
147
- value: S,
148
- onChange: (o) => M(o.target.value)
146
+ label: "State/Province",
147
+ value: y,
148
+ onChange: (o) => I(o.target.value),
149
+ required: !0
149
150
  }
150
151
  ) })
151
152
  ] }),
@@ -164,7 +165,7 @@ const Be = ({
164
165
  re,
165
166
  {
166
167
  value: B,
167
- onChange: q,
168
+ onChange: M,
168
169
  label: "Country of residence"
169
170
  }
170
171
  )
@@ -177,33 +178,34 @@ const Be = ({
177
178
  onClick: () => {
178
179
  if (p !== v) {
179
180
  if (!K)
180
- return u({ message: "Please provide date of birth" });
181
- if (!c)
182
- return u({ message: "Please provide gender" });
181
+ return c({ message: "Please provide date of birth" });
182
+ if (!d)
183
+ return c({ message: "Please provide gender" });
183
184
  }
184
- if (!d)
185
- return u({ message: "Please provide address" });
186
- if (!t) return u({ message: "Please provide city" });
185
+ if (!u)
186
+ return c({ message: "Please provide address" });
187
+ if (!t) return c({ message: "Please provide city" });
188
+ if (!y) return c({ message: "Please provide state" });
187
189
  if (!b)
188
- return u({ message: "Please provide zip code" });
190
+ return c({ message: "Please provide zip code" });
189
191
  if (!B)
190
- return u({
192
+ return c({
191
193
  message: "Please select country of residency"
192
194
  });
193
195
  x({
194
196
  ...i,
195
- gender: c,
197
+ gender: d,
196
198
  email: P,
197
- address: d,
199
+ address: u,
198
200
  city: t,
199
- state: S,
201
+ state: y,
200
202
  zipCode: b,
201
203
  country: B
202
204
  }), h(
203
205
  p !== v ? se : oe
204
206
  );
205
207
  },
206
- disabled: p !== v && !P || p !== v && !c || !d || !B,
208
+ disabled: p !== v && !P || p !== v && !d || !u || !B,
207
209
  fullWidth: !0,
208
210
  children: /* @__PURE__ */ e("strong", { children: "Next" })
209
211
  }
@@ -216,21 +218,21 @@ const Be = ({
216
218
  inputComponent: i,
217
219
  buttonComponent: n
218
220
  }) => {
219
- const { showAlertMessage: h } = pe(), g = i ?? ce, p = n ?? de, [l, u] = r(
221
+ const { showAlertMessage: h } = pe(), g = i ?? ce, p = n ?? de, [l, c] = r(
220
222
  f.placeOfBirth || null
221
223
  ), [a, D] = r(
222
224
  f.nationality || null
223
- ), [c, _] = r(f.occupation || ""), [m, N] = r(f.employer || "");
224
- return /* @__PURE__ */ y(te, { children: [
225
+ ), [d, _] = r(f.occupation || ""), [m, N] = r(f.employer || "");
226
+ return /* @__PURE__ */ S(te, { children: [
225
227
  /* @__PURE__ */ e(w, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ e(me, { totalSteps: 4, currentStep: 3 }) }),
226
- /* @__PURE__ */ y(w, { pl: 2, mt: 4, children: [
228
+ /* @__PURE__ */ S(w, { pl: 2, mt: 4, children: [
227
229
  /* @__PURE__ */ e(j, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
228
230
  /* @__PURE__ */ e(j, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
229
231
  /* @__PURE__ */ e(
230
232
  re,
231
233
  {
232
234
  value: l,
233
- onChange: u,
235
+ onChange: c,
234
236
  label: "Place Of Birth"
235
237
  }
236
238
  ),
@@ -247,7 +249,7 @@ const Be = ({
247
249
  {
248
250
  sx: { mt: 3 },
249
251
  label: "Occupation",
250
- value: c,
252
+ value: d,
251
253
  onChange: (C) => _(C.target.value)
252
254
  }
253
255
  ),
@@ -275,7 +277,7 @@ const Be = ({
275
277
  h({ message: "Please provide address" });
276
278
  return;
277
279
  }
278
- if (!c) {
280
+ if (!d) {
279
281
  h({ message: "Please provide city" });
280
282
  return;
281
283
  }
@@ -283,11 +285,11 @@ const Be = ({
283
285
  ...f,
284
286
  placeOfBirth: l,
285
287
  nationality: a,
286
- occupation: c,
288
+ occupation: d,
287
289
  employer: m
288
290
  }), x(oe);
289
291
  },
290
- disabled: !l || !a || !c || !m,
292
+ disabled: !l || !a || !d || !m,
291
293
  fullWidth: !0,
292
294
  children: /* @__PURE__ */ e("strong", { children: "Next" })
293
295
  }
@@ -320,16 +322,16 @@ const Be = ({
320
322
  isModalView: p = !1,
321
323
  kycFlow: l
322
324
  }) => {
323
- const u = ge(!0), a = ue(), D = J((s) => s.user), c = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [z, d] = r(
325
+ const c = ge(!0), a = ue(), D = J((s) => s.user), d = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [q, u] = r(
324
326
  l === v ? k : ee
325
327
  );
326
328
  F(() => {
327
- if (u.current) {
328
- u.current = !1;
329
+ if (c.current) {
330
+ c.current = !1;
329
331
  return;
330
332
  }
331
333
  let s;
332
- switch (z) {
334
+ switch (q) {
333
335
  case k:
334
336
  s = ee;
335
337
  break;
@@ -342,11 +344,11 @@ const Be = ({
342
344
  default:
343
345
  s = ee;
344
346
  }
345
- d(s);
347
+ u(s);
346
348
  }, [g]), F(() => {
347
349
  h && N && h();
348
350
  }, [h, N]);
349
- const I = {
351
+ const z = {
350
352
  gender: "",
351
353
  email: "",
352
354
  address: "",
@@ -364,10 +366,10 @@ const Be = ({
364
366
  frequency: "",
365
367
  reason: "",
366
368
  source: ""
367
- }, [t, O] = r(I), [S, M] = r(Fe);
369
+ }, [t, O] = r(z), [y, I] = r(Fe);
368
370
  F(() => {
369
- S.BANK_STATEMENT.file.length > 0 && b(S);
370
- }, [S]);
371
+ y.BANK_STATEMENT.file.length > 0 && b(y);
372
+ }, [y]);
371
373
  const b = (s) => {
372
374
  A(
373
375
  t.isPoliticalExpose,
@@ -382,7 +384,7 @@ const Be = ({
382
384
  }, A = (s, X, U, H, o, L, T, $ = !1) => {
383
385
  var W, E, ie;
384
386
  if (l !== be && !$) {
385
- d(Te);
387
+ u(Te);
386
388
  return;
387
389
  }
388
390
  if (!m.loader) {
@@ -428,13 +430,13 @@ const Be = ({
428
430
  }
429
431
  a(xe(ne));
430
432
  }
431
- }, q = {
433
+ }, M = {
432
434
  INCODE_SCREEN: /* @__PURE__ */ e(
433
435
  ye,
434
436
  {
435
437
  uuid: _,
436
438
  successHandler: () => {
437
- d(k);
439
+ u(k);
438
440
  },
439
441
  configurationId: f,
440
442
  apiKey: R,
@@ -449,7 +451,7 @@ const Be = ({
449
451
  Be,
450
452
  {
451
453
  docData: C,
452
- setScreen: d,
454
+ setScreen: u,
453
455
  setUserInfo: O,
454
456
  userInfo: t,
455
457
  userEmail: D.profile.email,
@@ -459,7 +461,7 @@ const Be = ({
459
461
  PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ e(
460
462
  Le,
461
463
  {
462
- setScreen: d,
464
+ setScreen: u,
463
465
  setUserInfo: O,
464
466
  userInfo: t
465
467
  }
@@ -467,7 +469,7 @@ const Be = ({
467
469
  PEP_SCREEN: /* @__PURE__ */ e(
468
470
  Ne,
469
471
  {
470
- setScreen: d,
472
+ setScreen: u,
471
473
  setUserInfo: O,
472
474
  userInfo: t,
473
475
  processKyc: A,
@@ -478,15 +480,15 @@ const Be = ({
478
480
  EDD_SCREEN: /* @__PURE__ */ e(
479
481
  Pe,
480
482
  {
481
- kycStoreData: c,
482
- eddData: S,
483
- setEddData: M,
483
+ kycStoreData: d,
484
+ eddData: y,
485
+ setEddData: I,
484
486
  processKyc: b,
485
487
  processLoader: m.loader
486
488
  }
487
489
  )
488
- }[z];
489
- return n ? /* @__PURE__ */ e(Ce, { addPadding: !1, children: q }) : q;
490
+ }[q];
491
+ return n ? /* @__PURE__ */ e(Ce, { addPadding: !1, children: M }) : M;
490
492
  }, Ct = Se(Ke);
491
493
  export {
492
494
  Te as E,
package/dist/main.js CHANGED
@@ -16,7 +16,7 @@ import { i as K } from "./index-CUhPCwCD.js";
16
16
  import { i as A } from "./index-grkjwLQL.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-CKEqyTf9.js";
19
+ import { F as W } from "./index-B_ZN1s9v.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.38",
3
+ "version": "0.0.39-temp.1",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -32,7 +32,7 @@
32
32
  "@mui/icons-material": "^7.2.0",
33
33
  "@mui/material": "^7.2.0",
34
34
  "@walletconnect/ethereum-provider": "^2.17.1",
35
- "everest-npm-api": "^0.0.28",
35
+ "everest-npm-api": "^0.0.29",
36
36
  "frames-react": "^1.2.2",
37
37
  "moment": "^2.30.1",
38
38
  "mui-one-time-password-input": "^5.0.0",