everest-npm-features 0.0.47 → 0.0.49

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 (112) hide show
  1. package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/assets/styles.css +1 -1
  3. package/dist/assets/styles2.css +1 -1
  4. package/dist/assets/styles3.css +1 -1
  5. package/dist/assets/styles4.css +1 -0
  6. package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
  7. package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
  8. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  9. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  14. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  15. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  16. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  17. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  18. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  22. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  23. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  24. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  25. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  26. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  27. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  28. package/dist/components/Shared/FullKyc/edd.js +41 -41
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +1 -1
  31. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  34. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/createIban.js +70 -62
  36. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  37. package/dist/components/Wallet/Account/eWallet.js +96 -0
  38. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  39. package/dist/components/Wallet/Account/iban.js +38 -32
  40. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  41. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  42. package/dist/components/Wallet/Account/index.d.ts +2 -0
  43. package/dist/components/Wallet/Account/index.js +164 -143
  44. package/dist/components/Wallet/Account/sendIban.js +3 -3
  45. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  46. package/dist/components/Wallet/Buy/form.js +6 -6
  47. package/dist/components/Wallet/Buy/index.js +14 -13
  48. package/dist/components/Wallet/Deposit/index.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  50. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  51. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  52. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  53. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  54. package/dist/components/Wallet/History/index.js +25 -24
  55. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  56. package/dist/components/Wallet/Portfolio/index.js +34 -33
  57. package/dist/components/Wallet/Profile/documents.js +527 -28
  58. package/dist/components/Wallet/Profile/index.js +179 -149
  59. package/dist/components/Wallet/Profile/storage.d.ts +11 -0
  60. package/dist/components/Wallet/Profile/storage.js +267 -0
  61. package/dist/components/Wallet/Receive/index.js +22 -21
  62. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  63. package/dist/components/Wallet/Sell/form.js +6 -6
  64. package/dist/components/Wallet/Sell/index.js +13 -12
  65. package/dist/components/Wallet/Send/index.js +44 -43
  66. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  67. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  68. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  69. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  70. package/dist/components/Wallet/Shared/addBank.js +39 -38
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  72. package/dist/components/Wallet/Shared/manualSend.js +7 -6
  73. package/dist/components/Wallet/Shared/pin.js +1 -1
  74. package/dist/components/Wallet/SignIn/index.js +24 -23
  75. package/dist/components/Wallet/SignUp/index.js +22 -21
  76. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  77. package/dist/components/Wallet/Stake/id/index.js +1 -1
  78. package/dist/components/Wallet/Stake/index.js +31 -30
  79. package/dist/components/Wallet/Swap/form.js +9 -8
  80. package/dist/components/Wallet/Swap/index.js +11 -10
  81. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  82. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
  83. package/dist/components/Wallet/Withdraw/form.js +5 -5
  84. package/dist/components/Wallet/Withdraw/index.js +12 -11
  85. package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
  86. package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
  87. package/dist/hooks/useDialog/index.js +1 -1
  88. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  89. package/dist/hooks/useEverestDispatch.js +5 -0
  90. package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
  91. package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
  92. package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
  93. package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
  94. package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
  95. package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
  96. package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
  97. package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
  98. package/dist/main.js +7 -7
  99. package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
  100. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  101. package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
  102. package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
  103. package/dist/styles.module-CHPRGltL.js +28 -0
  104. package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
  105. package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
  106. package/dist/util/constants.d.ts +5 -0
  107. package/dist/util/constants.js +86 -81
  108. package/dist/util/functions.js +36 -36
  109. package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
  110. package/package.json +3 -2
  111. package/dist/assets/documents.css +0 -1
  112. package/dist/documents-RjwlADn2.js +0 -552
@@ -1,18 +1,19 @@
1
- import { jsxs as a, Fragment as I, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, Fragment as I, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as n, useEffect as P } from "react";
3
- import { u as T, a as R } from "../../../react-redux-B4BZippc.js";
4
- import { C as z } from "../../../Close-CNwiMz_O.js";
5
- import t from "./inputField.js";
6
- import M from "../../Shared/transition.js";
7
- import { PAYMENT_PROVIDER_OPENPAYD as O } from "../../../util/constants.js";
3
+ import { u as R } from "../../../react-redux-C7I9-1M6.js";
4
+ import { C as T } from "../../../Close-CNwiMz_O.js";
5
+ import a from "./inputField.js";
6
+ import z from "../../Shared/transition.js";
7
+ import { PAYMENT_PROVIDER_OPENPAYD as M } from "../../../util/constants.js";
8
8
  import "../../../index-DlQqWbXG.js";
9
9
  import x from "./appButton.js";
10
10
  import "../../../hoc/withThemeProvider.js";
11
11
  import "./Auth/otpForm.js";
12
- import "../../../constants-BJhUp96H.js";
13
- import { a as w, u as F } from "../../../index-BQNs1mvn.js";
14
- import { a as W } from "../../../bank-BmV_keEr.js";
15
- import { useSnackBarContext as j } from "../../../context/snackBarContext.js";
12
+ import "../../../constants-t7n9qCW3.js";
13
+ import { a as O, u as w } from "../../../index-BQNs1mvn.js";
14
+ import { a as F } from "../../../bank-Dz5km1qK.js";
15
+ import { useSnackBarContext as W } from "../../../context/snackBarContext.js";
16
+ import j from "../../../hooks/useEverestDispatch.js";
16
17
  import "../../../util/conversions.js";
17
18
  import "../../../index-CAoLi5Qq.js";
18
19
  import "../../../react-webcam-B3cXh1XT.js";
@@ -27,48 +28,48 @@ import { D as G, a as Y } from "../../../DialogContent-BMwlOnbW.js";
27
28
  import { D as _ } from "../../../DialogTitle-CfS0bb2K.js";
28
29
  import { T as f } from "../../../Typography-pAaje37G.js";
29
30
  import { I as q } from "../../../IconButton-DHm-hucF.js";
30
- import { G as s } from "../../../Grid-CFe3amXO.js";
31
+ import { G as i } from "../../../Grid-CFe3amXO.js";
31
32
  import { C as L } from "../../../CircularProgress-xZA3lvba.js";
32
- const Ie = () => {
33
- const D = T(), y = R(w), { loader: h, error: c, message: u } = R(F), { firstName: E, lastName: H } = y, { showAlertMessage: o } = j(), [S, i] = n(!1), [d, g] = n(""), [p, b] = n(""), [m, N] = n(""), [C, B] = n(""), [l, k] = n(""), [A, v] = n("");
33
+ const Pe = () => {
34
+ const D = j(), y = R(O), { loader: h, error: c, message: u } = R(w), { firstName: E, lastName: H } = y, { showAlertMessage: o } = W(), [S, s] = n(!1), [d, g] = n(""), [p, b] = n(""), [m, N] = n(""), [C, B] = n(""), [l, k] = n(""), [A, v] = n("");
34
35
  return P(() => {
35
36
  c && o({ message: c });
36
37
  }, [c]), P(() => {
37
- u && (g(""), b(""), N(""), B(""), k(""), v(""), i(!1), o({ message: u, type: "success" }));
38
- }, [u]), /* @__PURE__ */ a(I, { children: [
38
+ u && (g(""), b(""), N(""), B(""), k(""), v(""), s(!1), o({ message: u, type: "success" }));
39
+ }, [u]), /* @__PURE__ */ t(I, { children: [
39
40
  /* @__PURE__ */ e(
40
41
  x,
41
42
  {
42
- onClick: () => i(!0),
43
+ onClick: () => s(!0),
43
44
  fullWidth: !0,
44
45
  children: /* @__PURE__ */ e("strong", { children: "Add Bank" })
45
46
  }
46
47
  ),
47
- /* @__PURE__ */ a(
48
+ /* @__PURE__ */ t(
48
49
  G,
49
50
  {
50
51
  open: S,
51
52
  fullWidth: !0,
52
- onClose: () => i(!1),
53
- TransitionComponent: M,
53
+ onClose: () => s(!1),
54
+ TransitionComponent: z,
54
55
  children: [
55
- /* @__PURE__ */ a(_, { className: "buy-modal-text-color", children: [
56
+ /* @__PURE__ */ t(_, { className: "buy-modal-text-color", children: [
56
57
  /* @__PURE__ */ e(f, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Banks" }) }),
57
58
  /* @__PURE__ */ e(
58
59
  q,
59
60
  {
60
61
  "aria-label": "close",
61
- onClick: () => i(!1),
62
+ onClick: () => s(!1),
62
63
  className: "menu-buttons",
63
- children: /* @__PURE__ */ e(z, {})
64
+ children: /* @__PURE__ */ e(T, {})
64
65
  }
65
66
  )
66
67
  ] }),
67
- /* @__PURE__ */ a(Y, { className: "bank-modal-content", dividers: !0, children: [
68
+ /* @__PURE__ */ t(Y, { className: "bank-modal-content", dividers: !0, children: [
68
69
  /* @__PURE__ */ e(f, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Bank" }) }),
69
70
  /* @__PURE__ */ e(f, { className: "text-center", variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: "Only Euro denominated SEPA accounts are currently supported." }) }),
70
71
  /* @__PURE__ */ e(
71
- t,
72
+ a,
72
73
  {
73
74
  label: "Account Name",
74
75
  value: d,
@@ -76,40 +77,40 @@ const Ie = () => {
76
77
  }
77
78
  ),
78
79
  /* @__PURE__ */ e(
79
- t,
80
+ a,
80
81
  {
81
82
  label: "Bank Name",
82
83
  value: p,
83
84
  onChangeHandler: (r) => b(r)
84
85
  }
85
86
  ),
86
- /* @__PURE__ */ a(s, { container: !0, spacing: 1, children: [
87
- /* @__PURE__ */ e(s, { size: 6, children: /* @__PURE__ */ e(
88
- t,
87
+ /* @__PURE__ */ t(i, { container: !0, spacing: 1, children: [
88
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
89
+ a,
89
90
  {
90
91
  label: "Account Number or IBAN",
91
92
  value: m,
92
93
  onChangeHandler: (r) => N(r)
93
94
  }
94
95
  ) }),
95
- /* @__PURE__ */ e(s, { size: 6, children: /* @__PURE__ */ e(
96
- t,
96
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
97
+ a,
97
98
  {
98
99
  label: "Confirm Account Number or IBAN",
99
100
  value: C,
100
101
  onChangeHandler: (r) => B(r)
101
102
  }
102
103
  ) }),
103
- /* @__PURE__ */ e(s, { size: 6, children: /* @__PURE__ */ e(
104
- t,
104
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
105
+ a,
105
106
  {
106
107
  label: "Routing/BIC Number",
107
108
  value: l,
108
109
  onChangeHandler: (r) => k(r)
109
110
  }
110
111
  ) }),
111
- /* @__PURE__ */ e(s, { size: 6, children: /* @__PURE__ */ e(
112
- t,
112
+ /* @__PURE__ */ e(i, { size: 6, children: /* @__PURE__ */ e(
113
+ a,
113
114
  {
114
115
  label: "Confirm Routing/BIC Number",
115
116
  value: A,
@@ -138,18 +139,18 @@ const Ie = () => {
138
139
  return o({
139
140
  message: "Routing Number and Confirm Routing Number should be same"
140
141
  }), !1;
141
- h || D(W({
142
+ h || D(F({
142
143
  accountName: d,
143
144
  accountNumber: m,
144
145
  bankName: p,
145
146
  bicCode: l,
146
147
  ownerFirstName: E,
147
148
  ownerLastName: H,
148
- provider: O
149
+ provider: M
149
150
  }));
150
151
  },
151
152
  fullWidth: !0,
152
- children: /* @__PURE__ */ e("strong", { children: h ? /* @__PURE__ */ a(I, { children: [
153
+ children: /* @__PURE__ */ e("strong", { children: h ? /* @__PURE__ */ t(I, { children: [
153
154
  /* @__PURE__ */ e(L, { size: 15, color: "inherit" }),
154
155
  " Processing..."
155
156
  ] }) : "Add Bank" })
@@ -162,5 +163,5 @@ const Ie = () => {
162
163
  ] });
163
164
  };
164
165
  export {
165
- Ie as default
166
+ Pe as default
166
167
  };
@@ -1,25 +1,26 @@
1
1
  import { jsx as t, Fragment as h } from "react/jsx-runtime";
2
2
  import { useState as y, useEffect as c, useCallback as C } from "react";
3
- import { u as S, a as r } from "../../../react-redux-B4BZippc.js";
4
- import { u as P } from "../../../index.esm-BsMAMhYW.js";
5
- import "../../../constants-BJhUp96H.js";
6
- import { u as b, a as B, b as g } from "../../../index-BQNs1mvn.js";
7
- import { p as x, b as A } from "../../../bank-BmV_keEr.js";
8
- import { c as T } from "../../../countries-BVn1FubK.js";
9
- import q from "./appButton.js";
10
- import { B as D } from "../../../Box-B0YSYLco.js";
11
- import { C as I } from "../../../CircularProgress-xZA3lvba.js";
12
- const J = ({
3
+ import { u as r } from "../../../react-redux-C7I9-1M6.js";
4
+ import { u as S } from "../../../index.esm-BsMAMhYW.js";
5
+ import "../../../constants-t7n9qCW3.js";
6
+ import { u as P, a as b, b as B } from "../../../index-BQNs1mvn.js";
7
+ import { p as g, b as x } from "../../../bank-Dz5km1qK.js";
8
+ import { c as A } from "../../../countries-BVn1FubK.js";
9
+ import T from "./appButton.js";
10
+ import q from "../../../hooks/useEverestDispatch.js";
11
+ import { B as v } from "../../../Box-B0YSYLco.js";
12
+ import { C as D } from "../../../CircularProgress-xZA3lvba.js";
13
+ const K = ({
13
14
  buttonType: u = "primary"
14
15
  }) => {
15
- const e = S(), { loader: a, plaidToken: l } = r(b), s = r(B).residentialAddress.country || "USA", [i, d] = y(""), p = r(g);
16
+ const e = q(), { loader: a, plaidToken: l } = r(P), s = r(b).residentialAddress.country || "USA", [i, d] = y(""), p = r(B);
16
17
  c(() => {
17
18
  if (s) {
18
- const n = T.find((o) => o.alpha3 === s);
19
+ const n = A.find((o) => o.alpha3 === s);
19
20
  n && d(n.alpha2);
20
21
  }
21
22
  }, [s]), c(() => {
22
- i && e(x({ country_code: i }));
23
+ i && e(g({ country_code: i }));
23
24
  }, [i]);
24
25
  const m = {
25
26
  onSuccess: C((n, o) => {
@@ -33,7 +34,7 @@ const J = ({
33
34
  link_session_id: o.link_session_id,
34
35
  public_token: n
35
36
  };
36
- e(A(_));
37
+ e(x(_));
37
38
  }, []),
38
39
  // @TODO: We need to move side effects into sagas
39
40
  // onExit: (err, metadata) => {},
@@ -41,9 +42,9 @@ const J = ({
41
42
  token: l
42
43
  //required for OAuth; if not using OAuth, set to null or omit:
43
44
  //receivedRedirectUri: window.location.href,
44
- }, { open: f, ready: k } = P(m);
45
- return /* @__PURE__ */ t(h, { children: a ? /* @__PURE__ */ t(D, { className: "text-center", mt: 8, children: /* @__PURE__ */ t(I, {}) }) : /* @__PURE__ */ t(
46
- q,
45
+ }, { open: f, ready: k } = S(m);
46
+ return /* @__PURE__ */ t(h, { children: a ? /* @__PURE__ */ t(v, { className: "text-center", mt: 8, children: /* @__PURE__ */ t(D, {}) }) : /* @__PURE__ */ t(
47
+ T,
47
48
  {
48
49
  variantType: u,
49
50
  onClick: () => f(),
@@ -54,5 +55,5 @@ const J = ({
54
55
  ) });
55
56
  };
56
57
  export {
57
- J as default
58
+ K as default
58
59
  };
@@ -1,20 +1,21 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../react-redux-B4BZippc.js";
3
+ import "../../../react-redux-C7I9-1M6.js";
4
4
  import "../../../index-CAoLi5Qq.js";
5
5
  import "../../../ContentCopy-coPwrEuz.js";
6
6
  import "../../../generic-token-B_ptO5yb.js";
7
7
  import "./appButton.js";
8
8
  import "./timer.js";
9
9
  import "../../../util/functions.js";
10
- import "../../../constants-BJhUp96H.js";
11
- import "../../../order-fWKVFTau.js";
10
+ import "../../../constants-t7n9qCW3.js";
11
+ import "../../../order-jqH948WM.js";
12
12
  import "../../../index-DlQqWbXG.js";
13
13
  import "../../../hoc/withThemeProvider.js";
14
14
  import "./Input/index.js";
15
15
  import "../../../util/constants.js";
16
16
  import "./Auth/otpForm.js";
17
17
  import "../../../context/snackBarContext.js";
18
+ import "../../../hooks/useEverestDispatch.js";
18
19
  import "../../../util/conversions.js";
19
20
  import "../../../react-webcam-B3cXh1XT.js";
20
21
  import "../../Shared/transition.js";
@@ -24,8 +25,8 @@ import "../../../moment-h96o7c8I.js";
24
25
  import "../../../index.esm-BsMAMhYW.js";
25
26
  import "../../../web3-u4qDZYpo.js";
26
27
  import "../../../index-ceeCtFuh.js";
27
- import "../../../styles.module-CHEBh2ID.js";
28
- import { M as J } from "../../../index-pCrOsXNC.js";
28
+ import "../../../styles.module-DMd29SPQ.js";
29
+ import { M as K } from "../../../index-Cs7bSfT3.js";
29
30
  import "../../../context/dialogContext.js";
30
31
  import "../../../Box-B0YSYLco.js";
31
32
  import "../../../Grid-CFe3amXO.js";
@@ -34,5 +35,5 @@ import "../../../Divider-BShhMFf4.js";
34
35
  import "../../../IconButton-DHm-hucF.js";
35
36
  import "../../../CircularProgress-xZA3lvba.js";
36
37
  export {
37
- J as default
38
+ K as default
38
39
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as n } from "react/jsx-runtime";
2
2
  import l, { useState as w, useEffect as R } from "react";
3
3
  import U from "./Keyboard/keyboard.js";
4
- import { s as m } from "../../../styles.module-CUA1zLEJ.js";
4
+ import { s as m } from "../../../styles.module-verVx4pE.js";
5
5
  import { B as c } from "../../../Box-B0YSYLco.js";
6
6
  import { T as s } from "../../../Typography-pAaje37G.js";
7
7
  import { B as C } from "../../../Button-Df4vgU24.js";
@@ -1,50 +1,51 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { useState as E, useEffect as c } from "react";
3
- import { u as L, a as S } from "../../../react-redux-B4BZippc.js";
4
- import x from "../../../hoc/withThemeProvider.js";
5
- import O from "../Shared/Auth/emailForm.js";
6
- import R from "../Shared/Auth/otpForm.js";
7
- import "../../../constants-BJhUp96H.js";
8
- import { a as k, l as q, v } from "../../../auth-D0r8wtCH.js";
9
- import C from "../Shared/Container/index.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as c } from "react";
3
+ import { u as L } from "../../../react-redux-C7I9-1M6.js";
4
+ import S from "../../../hoc/withThemeProvider.js";
5
+ import v from "../Shared/Auth/emailForm.js";
6
+ import x from "../Shared/Auth/otpForm.js";
7
+ import "../../../constants-t7n9qCW3.js";
8
+ import { a as O, l as R, v as k } from "../../../auth-ClBgT--j.js";
9
+ import q from "../Shared/Container/index.js";
10
10
  import { LOGIN_SCREEN as f } from "../../../util/constants.js";
11
- import { useSnackBarContext as w } from "../../../context/snackBarContext.js";
11
+ import { useSnackBarContext as C } from "../../../context/snackBarContext.js";
12
+ import w from "../../../hooks/useEverestDispatch.js";
12
13
  const A = ({ onLoginComplete: u, navigate: l }) => {
13
- const e = L(), o = S((t) => t.session), p = o.loader, d = o.otpLoader, g = o.screen, r = o.uuid, s = o.token, n = o.error, { showAlertMessage: i } = w(), [a, h] = E("");
14
+ const e = w(), o = L((t) => t.session), p = o.loader, d = o.otpLoader, g = o.screen, r = o.uuid, s = o.token, n = o.error, { showAlertMessage: i } = C(), [m, E] = h("");
14
15
  return c(() => () => {
15
- e(k());
16
+ e(O());
16
17
  }, []), c(() => {
17
18
  r && s && u(r, s);
18
19
  }, [r, s]), c(() => {
19
20
  n && i({ message: n });
20
- }, [n]), /* @__PURE__ */ m(C, { children: g === 1 ? /* @__PURE__ */ m(
21
- O,
21
+ }, [n]), /* @__PURE__ */ a(q, { children: g === 1 ? /* @__PURE__ */ a(
22
+ v,
22
23
  {
23
24
  showAlertMessage: i,
24
25
  loader: p,
25
- email: a,
26
- setEmail: h,
26
+ email: m,
27
+ setEmail: E,
27
28
  navigate: l,
28
29
  from: f,
29
30
  onEmail: (t) => {
30
- e(q(t));
31
+ e(R(t));
31
32
  }
32
33
  }
33
- ) : /* @__PURE__ */ m(
34
- R,
34
+ ) : /* @__PURE__ */ a(
35
+ x,
35
36
  {
36
37
  showAlertMessage: i,
37
38
  loader: p,
38
39
  otpLoader: d,
39
- email: a,
40
+ email: m,
40
41
  dispatch: e,
41
42
  from: f,
42
43
  onValidateOtp: (t) => {
43
- e(v({ email: a, otp: t }));
44
+ e(k({ email: m, otp: t }));
44
45
  }
45
46
  }
46
47
  ) });
47
- }, b = x(A);
48
+ }, z = S(A);
48
49
  export {
49
- b as default
50
+ z as default
50
51
  };
@@ -1,17 +1,18 @@
1
1
  import { jsx as r, jsxs as y } from "react/jsx-runtime";
2
2
  import * as j from "react";
3
3
  import { useState as u, useEffect as h } from "react";
4
- import { u as w, a as B } from "../../../react-redux-B4BZippc.js";
5
- import M from "../../../hoc/withThemeProvider.js";
6
- import L from "../Shared/Auth/emailForm.js";
7
- import N from "../Shared/Auth/otpForm.js";
8
- import "../../../constants-BJhUp96H.js";
9
- import { a as P, h as U, i as k } from "../../../auth-D0r8wtCH.js";
10
- import q from "../Shared/Container/index.js";
4
+ import { u as w } from "../../../react-redux-C7I9-1M6.js";
5
+ import B from "../../../hoc/withThemeProvider.js";
6
+ import M from "../Shared/Auth/emailForm.js";
7
+ import L from "../Shared/Auth/otpForm.js";
8
+ import "../../../constants-t7n9qCW3.js";
9
+ import { a as N, h as P, i as U } from "../../../auth-ClBgT--j.js";
10
+ import k from "../Shared/Container/index.js";
11
11
  import { REGISTER_SCREEN as S } from "../../../util/constants.js";
12
- import V from "./terms.js";
13
- import { useSnackBarContext as W } from "../../../context/snackBarContext.js";
14
- import F from "../Shared/appButton.js";
12
+ import q from "./terms.js";
13
+ import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
14
+ import W from "../Shared/appButton.js";
15
+ import F from "../../../hooks/useEverestDispatch.js";
15
16
  import { D as I, a as Y } from "../../../DialogContent-BMwlOnbW.js";
16
17
  import { D as _ } from "../../../DialogTitle-CfS0bb2K.js";
17
18
  import { B as z } from "../../../Box-B0YSYLco.js";
@@ -103,25 +104,25 @@ process.env.NODE_ENV !== "production" && (C.propTypes = {
103
104
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
104
105
  });
105
106
  const to = ({ onRegisterComplete: t, navigate: i }) => {
106
- const e = w(), s = B((l) => l.session), a = s.loader, p = s.otpLoader, m = s.screen, n = s.uuid, c = s.token, d = s.error, { showAlertMessage: f } = W(), [A, x] = u(!1), [g, R] = u(""), [D, b] = u("");
107
+ const e = F(), s = w((l) => l.session), a = s.loader, p = s.otpLoader, m = s.screen, n = s.uuid, c = s.token, d = s.error, { showAlertMessage: f } = V(), [A, x] = u(!1), [g, R] = u(""), [D, b] = u("");
107
108
  h(() => () => {
108
- e(P());
109
+ e(N());
109
110
  }, []), h(() => {
110
111
  n && c && t(n, c);
111
112
  }, [n, c]), h(() => {
112
113
  d && f({ message: d });
113
114
  }, [d]);
114
115
  const E = (l) => {
115
- e(U(l));
116
+ e(P(l));
116
117
  }, v = (l) => {
117
118
  b(l), x(!0);
118
119
  }, T = () => {
119
- e(k({ email: g, otp: D }));
120
+ e(U({ email: g, otp: D }));
120
121
  }, O = () => x(!1);
121
- return /* @__PURE__ */ y(q, { children: [
122
+ return /* @__PURE__ */ y(k, { children: [
122
123
  {
123
124
  1: /* @__PURE__ */ r(
124
- L,
125
+ M,
125
126
  {
126
127
  showAlertMessage: f,
127
128
  loader: a,
@@ -133,7 +134,7 @@ const to = ({ onRegisterComplete: t, navigate: i }) => {
133
134
  }
134
135
  ),
135
136
  2: /* @__PURE__ */ r(
136
- N,
137
+ L,
137
138
  {
138
139
  showAlertMessage: f,
139
140
  loader: a,
@@ -181,15 +182,15 @@ const to = ({ onRegisterComplete: t, navigate: i }) => {
181
182
  paddingX: 2,
182
183
  paddingY: 1
183
184
  },
184
- children: /* @__PURE__ */ r(V, {})
185
+ children: /* @__PURE__ */ r(q, {})
185
186
  }
186
187
  ) }),
187
- /* @__PURE__ */ r(C, { sx: { justifyContent: "center", paddingBottom: 2 }, children: /* @__PURE__ */ r(F, { isLoading: a, onClick: T, children: "Accept & Sign Up" }) })
188
+ /* @__PURE__ */ r(C, { sx: { justifyContent: "center", paddingBottom: 2 }, children: /* @__PURE__ */ r(W, { isLoading: a, onClick: T, children: "Accept & Sign Up" }) })
188
189
  ]
189
190
  }
190
191
  )
191
192
  ] });
192
- }, Ro = M(to);
193
+ }, bo = B(to);
193
194
  export {
194
- Ro as default
195
+ bo as default
195
196
  };
@@ -3,7 +3,7 @@ import I from "../../Shared/noData.js";
3
3
  import { M as h } from "../../../../tooltip-3UvETWtS.js";
4
4
  import { I as p } from "../../../../Info-BVeUSPyk.js";
5
5
  import C from "../../../../hoc/withThemeProvider.js";
6
- import { s as r } from "../../../../styles.module-O5VVND5e.js";
6
+ import { s as r } from "../../../../styles.module-C1sNeKjL.js";
7
7
  import { B as G } from "../../../../Backdrop-CioURPVG.js";
8
8
  import { C as f } from "../../../../CircularProgress-xZA3lvba.js";
9
9
  import { G as t } from "../../../../Grid-CFe3amXO.js";
@@ -3,7 +3,7 @@ import $ from "../../Shared/noData.js";
3
3
  import { M as p } from "../../../../tooltip-3UvETWtS.js";
4
4
  import { I as u } from "../../../../Info-BVeUSPyk.js";
5
5
  import { STAKE_ID_MIN_DAYS as g, STAKE_ID_MID_DAYS as x, STAKE_ID_MAX_DAYS as v } from "../../../../util/constants.js";
6
- import { s as r } from "../../../../styles.module-O5VVND5e.js";
6
+ import { s as r } from "../../../../styles.module-C1sNeKjL.js";
7
7
  import { B as _ } from "../../../../Backdrop-CioURPVG.js";
8
8
  import { C as k } from "../../../../CircularProgress-xZA3lvba.js";
9
9
  import { G as t } from "../../../../Grid-CFe3amXO.js";
@@ -2,19 +2,20 @@ import { jsxs as o, Fragment as _e, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as r, useEffect as _ } from "react";
3
3
  import xe from "./id/index.js";
4
4
  import we from "./gems/index.js";
5
- import { u as Ae, a as K } from "../../../react-redux-B4BZippc.js";
6
- import { ID_STAKE as i, STAKE_ID_MIN_DAYS as ee, GEM_SYNTHETIC_TOKEN_SYMBOL as De, ID_TOKEN_SYMBOL as be, EVER_CHAIN_NETWORK as Ie, GEMS_STAKE as T, STAKE_GEM_MAX_DAYS as Te, STAKE_ID_ICON as Ee, STAKE_GEM_ICON as Ne, STAKE_GEM_MAX_APY as ve, STAKE_ID_MIN_APY as Re, STAKE_ID_MID_DAYS as ye, STAKE_ID_MID_APY as Me, STAKE_ID_MAX_DAYS as Ce, STAKE_ID_MAX_APY as Fe } from "../../../util/constants.js";
7
- import "../../../constants-BJhUp96H.js";
8
- import { a as Pe } from "../../../index-BQNs1mvn.js";
9
- import { f as Be } from "../../../wallet-CuQDBP6a.js";
10
- import { s as Ge, a as Ke, b as Le } from "../../../stake-CQLutF0z.js";
11
- import { fromHuman as Ye, numberFormat as u, toHuman as E } from "../../../util/conversions.js";
5
+ import { u as K } from "../../../react-redux-C7I9-1M6.js";
6
+ import { ID_STAKE as i, STAKE_ID_MIN_DAYS as ee, GEM_SYNTHETIC_TOKEN_SYMBOL as Ae, ID_TOKEN_SYMBOL as De, EVER_CHAIN_NETWORK as be, GEMS_STAKE as T, STAKE_GEM_MAX_DAYS as Ie, STAKE_ID_ICON as Te, STAKE_GEM_ICON as Ee, STAKE_GEM_MAX_APY as ve, STAKE_ID_MIN_APY as Ne, STAKE_ID_MID_DAYS as Re, STAKE_ID_MID_APY as ye, STAKE_ID_MAX_DAYS as Me, STAKE_ID_MAX_APY as Ce } from "../../../util/constants.js";
7
+ import "../../../constants-t7n9qCW3.js";
8
+ import { a as Fe } from "../../../index-BQNs1mvn.js";
9
+ import { f as Pe } from "../../../wallet-DpkUmmq0.js";
10
+ import { s as Be, a as Ge, b as Ke } from "../../../stake-Dcq6QpaA.js";
11
+ import { fromHuman as Le, numberFormat as u, toHuman as E } from "../../../util/conversions.js";
12
12
  import "../../../index-DlQqWbXG.js";
13
13
  import "../Shared/appButton.js";
14
- import We from "../../../hoc/withThemeProvider.js";
15
- import { decimalNumbersWithCommaOrDot as Oe } from "../../../util/regex.js";
14
+ import Ye from "../../../hoc/withThemeProvider.js";
15
+ import { decimalNumbersWithCommaOrDot as We } from "../../../util/regex.js";
16
16
  import "../Shared/Auth/otpForm.js";
17
17
  import "../../../context/snackBarContext.js";
18
+ import Oe from "../../../hooks/useEverestDispatch.js";
18
19
  import "../../../index-CAoLi5Qq.js";
19
20
  import { useSnackBar as ze } from "../../../hooks/useSnackBar.js";
20
21
  import "../../../react-webcam-B3cXh1XT.js";
@@ -26,15 +27,15 @@ import "../../../index.esm-BsMAMhYW.js";
26
27
  import "../../../web3-u4qDZYpo.js";
27
28
  import "../../../index-ceeCtFuh.js";
28
29
  import "../../../context/dialogContext.js";
29
- import { s as x } from "../../../styles.module-O5VVND5e.js";
30
+ import { s as x } from "../../../styles.module-C1sNeKjL.js";
30
31
  import { B as h } from "../../../Box-B0YSYLco.js";
31
32
  import { G as f } from "../../../Grid-CFe3amXO.js";
32
33
  import { T as c } from "../../../Typography-pAaje37G.js";
33
34
  import { D as $e, a as He } from "../../../DialogContent-BMwlOnbW.js";
34
35
  import { C as Xe } from "../../../CircularProgress-xZA3lvba.js";
35
36
  import { B as te } from "../../../Button-Df4vgU24.js";
36
- const je = ({ router: N }) => {
37
- const D = Ae(), { showAlertMessage: m, snackBar: ae } = ze(), v = K(Pe).everWalletAddress, L = K((t) => t.user.wallets);
37
+ const je = ({ router: v }) => {
38
+ const D = Oe(), { showAlertMessage: m, snackBar: ae } = ze(), N = K(Fe).everWalletAddress, L = K((t) => t.user.wallets);
38
39
  L.loader;
39
40
  const R = L.data, se = K((t) => t.stake), {
40
41
  loader: Y,
@@ -52,34 +53,34 @@ const je = ({ router: N }) => {
52
53
  totalReward: 0
53
54
  }), [de, b] = r(!1), [me, j] = r(""), [fe, q] = r(""), [pe, V] = r(
54
55
  void 0
55
- ), ke = a === i ? 18 : 6, ue = Ye(p.toString(), ke);
56
+ ), ke = a === i ? 18 : 6, ue = Le(p.toString(), ke);
56
57
  let I = ve;
57
- a === i && (I = Re, k === ye ? I = Me : k === Ce && (I = Fe)), _(() => {
58
+ a === i && (I = Ne, k === Re ? I = ye : k === Me && (I = Ce)), _(() => {
58
59
  M && (Se(), m({ message: M }));
59
60
  }, [M]), _(() => {
60
61
  W && (b(!1), m({
61
62
  message: "Token has been successfully staked.",
62
63
  type: "success"
63
- }), N.push("/wallet"));
64
+ }), v.push("/wallet"));
64
65
  }, [W]), _(() => {
65
- let t = Te;
66
+ let t = Ie;
66
67
  a === i && (t = ee), X(t), C("");
67
- }, [a]), _(() => (D(Ge()), D(Be()), () => {
68
- D(Ke());
68
+ }, [a]), _(() => (D(Be()), D(Pe()), () => {
69
+ D(Ge());
69
70
  }), []), _(() => {
70
- if (v && R.length > 0) {
71
+ if (N && R.length > 0) {
71
72
  const t = R.find(
72
- (s) => s.address === v
73
+ (s) => s.address === N
73
74
  );
74
75
  if (t) {
75
76
  const s = t.tokens, l = s.length;
76
77
  for (let d = 0; d < l; d++) {
77
78
  const n = s[d];
78
- if (n.symbol === De) {
79
+ if (n.symbol === Ae) {
79
80
  const S = n.fmt_balance.replaceAll(",", "");
80
81
  ne(parseFloat(u(S)));
81
82
  }
82
- if (n.symbol === be && n.network.toLowerCase() === Ie.toLowerCase()) {
83
+ if (n.symbol === De && n.network.toLowerCase() === be.toLowerCase()) {
83
84
  const S = n.fmt_balance.replaceAll(",", "");
84
85
  le(parseFloat(u(S)));
85
86
  }
@@ -87,7 +88,7 @@ const je = ({ router: N }) => {
87
88
  re(!1);
88
89
  }
89
90
  }
90
- }, [v, R]), _(() => {
91
+ }, [N, R]), _(() => {
91
92
  const t = y.length;
92
93
  if (t > 0) {
93
94
  const s = [], l = [];
@@ -123,7 +124,7 @@ const je = ({ router: N }) => {
123
124
  }, [y]);
124
125
  const he = () => {
125
126
  D(
126
- Le({
127
+ Ke({
127
128
  amount: ue,
128
129
  type: a,
129
130
  period: k.toString()
@@ -142,7 +143,7 @@ const je = ({ router: N }) => {
142
143
  }), !1;
143
144
  if (!p)
144
145
  return m({ message: "Please provide the amount to stake" }), !1;
145
- if (!Oe.test(p))
146
+ if (!We.test(p))
146
147
  return m({
147
148
  message: "Please provide the valid amount"
148
149
  }), !1;
@@ -181,7 +182,7 @@ const je = ({ router: N }) => {
181
182
  /* @__PURE__ */ e(
182
183
  "img",
183
184
  {
184
- src: a === i ? Ee : Ne,
185
+ src: a === i ? Te : Ee,
185
186
  alt: "id",
186
187
  width: 32
187
188
  }
@@ -243,7 +244,7 @@ const je = ({ router: N }) => {
243
244
  a === i ? /* @__PURE__ */ e(
244
245
  xe,
245
246
  {
246
- history: N,
247
+ history: v,
247
248
  loader: Y,
248
249
  stakeData: F.data,
249
250
  totalStake: F.totalStake,
@@ -260,7 +261,7 @@ const je = ({ router: N }) => {
260
261
  ) : /* @__PURE__ */ e(
261
262
  we,
262
263
  {
263
- history: N,
264
+ history: v,
264
265
  loader: Y,
265
266
  stakeData: P.data,
266
267
  totalStake: P.totalStake,
@@ -340,7 +341,7 @@ const je = ({ router: N }) => {
340
341
  }
341
342
  )
342
343
  ] });
343
- }, Rt = We(je);
344
+ }, yt = Ye(je);
344
345
  export {
345
- Rt as default
346
+ yt as default
346
347
  };