everest-npm-features 0.0.53 → 0.0.55

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.
@@ -1,8 +1,8 @@
1
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { useRef as N } from "react";
3
- import { u as w } from "../../../react-redux-C7I9-1M6.js";
4
- import { FEATURE_EWALLET as i, DIALOG_ERROR_ICON as d, DIALOG_SUCCESS_ICON as U } from "../../../util/constants.js";
5
- import { a as v, af as P, c as _, K as V } from "../../../constants-Dtk3Gd0Y.js";
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { useRef as A } from "react";
3
+ import { u as N } from "../../../react-redux-C7I9-1M6.js";
4
+ import { FEATURE_EWALLET as r, DIALOG_ERROR_ICON as d, DIALOG_SUCCESS_ICON as U } from "../../../util/constants.js";
5
+ import { a as v, af as P, c as V, K as _ } from "../../../constants-Dtk3Gd0Y.js";
6
6
  import "../../../index-DlQqWbXG.js";
7
7
  import "../Shared/appButton.js";
8
8
  import "../../../hoc/withThemeProvider.js";
@@ -20,11 +20,11 @@ import "../../../web3-u4qDZYpo.js";
20
20
  import "../../../index-ceeCtFuh.js";
21
21
  import "../../../context/dialogContext.js";
22
22
  import { B as S } from "../../../Box-B0YSYLco.js";
23
- import { C as O } from "../../../CircularProgress-xZA3lvba.js";
23
+ import { C as K } from "../../../CircularProgress-xZA3lvba.js";
24
24
  import { T as E } from "../../../Typography-pAaje37G.js";
25
- import { S as K } from "../../../Select-CB5yWmyn.js";
25
+ import { S as O } from "../../../Select-CB5yWmyn.js";
26
26
  import { M as f } from "../../../MenuItem-DUdYOJr4.js";
27
- const F = [
27
+ const Y = [
28
28
  {
29
29
  alpha3: "AUT",
30
30
  alpha2: "AT",
@@ -190,18 +190,18 @@ const F = [
190
190
  alpha2: "GB",
191
191
  name: "United Kingdom"
192
192
  }
193
- ], ua = ({
194
- openDialog: t,
193
+ ], ca = ({
194
+ openDialog: n,
195
195
  createIbanRequest: B,
196
196
  iban: h,
197
- navigate: L,
197
+ navigate: T,
198
198
  currency: a,
199
199
  setIbanCurrency: m,
200
- from: r
200
+ from: e
201
201
  }) => {
202
- const { showAlertMessage: C } = G(), u = w((l) => l.user), p = u.profile, T = p.loader, g = u.kyc.loader, s = u.kyc.status, y = p.email, I = h.loader, n = N(!1), R = () => {
203
- if (!y) {
204
- t({
202
+ const { showAlertMessage: C } = G(), c = N((o) => o.user), p = c.profile, L = p.loader, y = c.kyc.loader, s = c.kyc.status, I = p.email, R = h.loader, l = A(!1), g = () => {
203
+ if (!I) {
204
+ n({
205
205
  title: "No Email",
206
206
  message: "Please contact support to update your email address.",
207
207
  icon: d,
@@ -215,7 +215,7 @@ const F = [
215
215
  return;
216
216
  }
217
217
  if (s === v || s === P) {
218
- t({
218
+ n({
219
219
  title: "Under Review",
220
220
  message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
221
221
  width: "550px",
@@ -225,22 +225,22 @@ const F = [
225
225
  });
226
226
  return;
227
227
  }
228
- if (s !== _ && s !== V) {
229
- t({
230
- title: "Verifying",
231
- message: "We are gathering information, and will provision your Virtual IBAN shortly.",
228
+ if (s !== V && s !== _) {
229
+ n({
230
+ title: "Verification Required",
231
+ message: `To create a ${e === r ? "E-Wallet" : "Virtual IBAN"}, we first need to verify your identity. You will now be taken to complete your KYC verification.`,
232
232
  width: "575px",
233
233
  height: "400px",
234
- confirmButtonText: "Continue",
234
+ confirmButtonText: "Start Verification",
235
235
  cancelButtonText: "Cancel",
236
- onConfirm: () => L("/kyc")
236
+ onConfirm: () => T("/kyc")
237
237
  });
238
238
  return;
239
239
  }
240
- if (!F.find(
241
- (o) => o.alpha3 === p.residentialAddress.country
240
+ if (!Y.find(
241
+ (i) => i.alpha3 === p.residentialAddress.country
242
242
  )) {
243
- t({
243
+ n({
244
244
  title: "Not Allowed",
245
245
  message: "Currently we are not supporting your country for Virtual IBAN.",
246
246
  icon: d,
@@ -252,7 +252,7 @@ const F = [
252
252
  return;
253
253
  }
254
254
  if (p.memberType !== "individual") {
255
- t({
255
+ n({
256
256
  title: "Not Allowed",
257
257
  message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
258
258
  icon: d,
@@ -263,24 +263,24 @@ const F = [
263
263
  });
264
264
  return;
265
265
  }
266
- r === i && (a.current = "EUR", m("EUR")), t({
267
- title: r === i ? "Create E-Wallet" : "Create Virtual IBAN",
268
- message: /* @__PURE__ */ c(S, { children: [
269
- /* @__PURE__ */ e(E, { children: r === i ? "Please proceed to create your E-Wallet." : "Please select the currency for the Virtual IBAN and proceed." }),
270
- r !== i && /* @__PURE__ */ c(
271
- K,
266
+ e === r && (a.current = "EUR", m("EUR")), n({
267
+ title: e === r ? "Create E-Wallet" : "Create Virtual IBAN",
268
+ message: /* @__PURE__ */ u(S, { children: [
269
+ /* @__PURE__ */ t(E, { children: e === r ? "Please proceed to create your E-Wallet." : "Please select the currency for the Virtual IBAN and proceed." }),
270
+ e !== r && /* @__PURE__ */ u(
271
+ O,
272
272
  {
273
273
  defaultValue: "",
274
- onChange: (o) => {
275
- a.current = o.target.value, m(o.target.value);
274
+ onChange: (i) => {
275
+ a.current = i.target.value, m(i.target.value);
276
276
  },
277
277
  style: { marginTop: "10px" },
278
278
  displayEmpty: !0,
279
279
  fullWidth: !0,
280
280
  children: [
281
- /* @__PURE__ */ e(f, { value: "", children: "Select currency" }),
282
- /* @__PURE__ */ e(f, { value: "EUR", children: "EUR" }),
283
- /* @__PURE__ */ e(f, { value: "GBP", children: "GBP" })
281
+ /* @__PURE__ */ t(f, { value: "", children: "Select currency" }),
282
+ /* @__PURE__ */ t(f, { value: "EUR", children: "EUR" }),
283
+ /* @__PURE__ */ t(f, { value: "GBP", children: "GBP" })
284
284
  ]
285
285
  }
286
286
  )
@@ -290,45 +290,45 @@ const F = [
290
290
  confirmButtonText: "Create",
291
291
  cancelButtonShow: !0,
292
292
  cancelButtonText: "Cancel",
293
- closeModalConfirm: x,
294
- onConfirm: A,
293
+ closeModalConfirm: w,
294
+ onConfirm: x,
295
295
  onCancel: () => {
296
- a.current = "", m(""), n.current = !1;
296
+ a.current = "", m(""), l.current = !1;
297
297
  },
298
298
  onClose: () => {
299
- a.current = "", n.current = !1;
299
+ a.current = "", l.current = !1;
300
300
  }
301
301
  });
302
- }, x = () => !n.current, A = () => {
303
- if (n.current = !1, !a.current)
304
- return n.current = !0, C({
305
- message: r === i ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
302
+ }, w = () => !l.current, x = () => {
303
+ if (l.current = !1, !a.current)
304
+ return l.current = !0, C({
305
+ message: e === r ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
306
306
  }), !1;
307
307
  if (h.data.length > 0) {
308
- const l = h.data.find(
309
- (o) => o.currency === a.current
308
+ const o = h.data.find(
309
+ (i) => i.currency === a.current
310
310
  );
311
- if (l != null && l.id)
312
- return n.current = !0, C({
311
+ if (o != null && o.id)
312
+ return l.current = !0, C({
313
313
  message: `You already have the ${a.current} Virtual IBAN.`
314
314
  }), !1;
315
315
  }
316
316
  B(a.current);
317
317
  };
318
- return T || g || I ? /* @__PURE__ */ e(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(O, { color: "primary", size: 50 }) }) : /* @__PURE__ */ e(
318
+ return L || y || R ? /* @__PURE__ */ t(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ t(K, { color: "primary", size: 50 }) }) : /* @__PURE__ */ t(
319
319
  E,
320
320
  {
321
- onClick: R,
321
+ onClick: g,
322
322
  component: "span",
323
323
  color: "primary",
324
324
  sx: { cursor: "pointer" },
325
- children: /* @__PURE__ */ c("span", { className: "text-underline", children: [
325
+ children: /* @__PURE__ */ u("span", { className: "text-underline", children: [
326
326
  "+ Add ",
327
- r === i ? "E-Wallet" : "Virtual IBAN"
327
+ e === r ? "E-Wallet" : "Virtual IBAN"
328
328
  ] })
329
329
  }
330
330
  );
331
331
  };
332
332
  export {
333
- ua as default
333
+ ca as default
334
334
  };
@@ -18,12 +18,12 @@ const J = ({
18
18
  appKey: u,
19
19
  appKeyEur: d,
20
20
  paymentWidgetSrcUrl: f,
21
- iban: n,
21
+ iban: o,
22
22
  navigate: y,
23
23
  AccountItem: x,
24
24
  createIbanRequest: g
25
25
  }) => {
26
- const c = n.data, C = n.loader, I = W(""), [_, E] = w("");
26
+ const c = o.data, C = o.loader, I = W(""), [_, E] = w("");
27
27
  return A(() => {
28
28
  new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
29
29
  title: "Payment Success",
@@ -39,7 +39,7 @@ const J = ({
39
39
  /* @__PURE__ */ e(
40
40
  T,
41
41
  {
42
- title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC and an annual payment" }),
42
+ title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC" }),
43
43
  placement: "bottom",
44
44
  children: /* @__PURE__ */ e(L, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
45
45
  }
@@ -50,7 +50,7 @@ const J = ({
50
50
  {
51
51
  openDialog: i,
52
52
  createIbanRequest: g,
53
- iban: n,
53
+ iban: o,
54
54
  navigate: y,
55
55
  currency: I,
56
56
  setIbanCurrency: E,
@@ -59,10 +59,10 @@ const J = ({
59
59
  ) }) })
60
60
  ] }),
61
61
  C ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(m, { children: [
62
- c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((o, s) => {
62
+ c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((n, s) => {
63
63
  const S = {
64
- ...o,
65
- accountName: `E-Wallet - ${o.currency ?? ""}`
64
+ ...n,
65
+ accountName: `E-Wallet - ${n.currency ?? ""}`
66
66
  };
67
67
  return /* @__PURE__ */ e(
68
68
  B,
@@ -73,7 +73,7 @@ const J = ({
73
73
  appKey: u,
74
74
  appKeyEur: d,
75
75
  paymentWidgetSrcUrl: f,
76
- iban: n,
76
+ iban: o,
77
77
  from: l
78
78
  },
79
79
  s
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as n, Fragment as m } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as S, useEffect as B } from "react";
3
3
  import { I as N } from "../../../Info-BVeUSPyk.js";
4
4
  import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as l } from "../../../util/constants.js";
@@ -8,7 +8,7 @@ import v from "./createIban.js";
8
8
  import { AuthInnerContainer as D } from "../Shared/Container/index.js";
9
9
  import E from "./ibanItem.js";
10
10
  import { B as t } from "../../../Box-B0YSYLco.js";
11
- import { G as o } from "../../../Grid-CFe3amXO.js";
11
+ import { G as n } from "../../../Grid-CFe3amXO.js";
12
12
  import { T as P } from "../../../Typography-pAaje37G.js";
13
13
  import { I as z } from "../../../IconButton-DHm-hucF.js";
14
14
  import { C as L } from "../../../CircularProgress-xZA3lvba.js";
@@ -20,8 +20,8 @@ const J = ({
20
20
  paymentWidgetSrcUrl: h,
21
21
  iban: r,
22
22
  navigate: d,
23
- AccountItem: y,
24
- createIbanRequest: I
23
+ AccountItem: I,
24
+ createIbanRequest: y
25
25
  }) => {
26
26
  const i = r.data, x = r.loader, C = g(""), [R, A] = S("");
27
27
  return B(() => {
@@ -32,24 +32,24 @@ const J = ({
32
32
  width: "575px",
33
33
  confirmButtonText: "Continue"
34
34
  });
35
- }, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */ n(t, { p: 3, children: [
36
- /* @__PURE__ */ n(o, { spacing: 2, container: !0, alignItems: "center", children: [
37
- /* @__PURE__ */ n(o, { size: 8, children: [
35
+ }, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */ o(t, { p: 3, children: [
36
+ /* @__PURE__ */ o(n, { spacing: 2, container: !0, alignItems: "center", children: [
37
+ /* @__PURE__ */ o(n, { size: 8, children: [
38
38
  /* @__PURE__ */ e(P, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
39
39
  /* @__PURE__ */ e(
40
40
  w,
41
41
  {
42
- title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC and an annual payment" }),
42
+ title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC" }),
43
43
  placement: "bottom",
44
44
  children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
45
45
  }
46
46
  )
47
47
  ] }),
48
- /* @__PURE__ */ e(o, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
48
+ /* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
49
49
  v,
50
50
  {
51
51
  openDialog: a,
52
- createIbanRequest: I,
52
+ createIbanRequest: y,
53
53
  iban: r,
54
54
  navigate: d,
55
55
  currency: C,
@@ -62,7 +62,7 @@ const J = ({
62
62
  E,
63
63
  {
64
64
  data: c,
65
- AccountItem: y,
65
+ AccountItem: I,
66
66
  dispatch: p,
67
67
  appKey: u,
68
68
  appKeyEur: f,