everest-npm-features 0.0.61 → 0.0.62

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 (229) hide show
  1. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  2. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  3. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  4. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  5. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  6. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  7. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  8. package/dist/{PlayArrow-Bjz9LxhD.js → PlayArrow-BVDyfxsQ.js} +1 -1
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/{auth-Cwq6nfwY.js → auth-DTJdu6mq.js} +10 -10
  11. package/dist/components/RocketRamp/MinimalKyc/form.js +45 -50
  12. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  13. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -6
  14. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -6
  15. package/dist/components/RocketRamp/Player/Buy/form.js +6 -15
  16. package/dist/components/RocketRamp/Player/Buy/index.js +3 -3
  17. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  18. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  19. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  20. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +4 -9
  21. package/dist/components/RocketRamp/Player/Sell/form.js +6 -15
  22. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  23. package/dist/components/RocketRamp/Player/SignIn/index.js +22 -24
  24. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +32 -34
  25. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +30 -32
  26. package/dist/components/RocketRamp/Player/SignUp/email.js +20 -22
  27. package/dist/components/RocketRamp/Player/SignUp/index.js +48 -51
  28. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +67 -73
  29. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  30. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  31. package/dist/components/RocketRamp/ResetPassword/index.js +22 -24
  32. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  33. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  34. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  35. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  36. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  37. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  38. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  39. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  40. package/dist/components/RocketRamp/Store/SignUp/index.js +52 -55
  41. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +47 -53
  42. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +32 -36
  43. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  44. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  45. package/dist/components/RocketRamp/Transactions/index.js +22 -23
  46. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  47. package/dist/components/Shared/FullKyc/edd.js +50 -52
  48. package/dist/components/Shared/FullKyc/index.js +11 -9
  49. package/dist/components/Shared/FullKyc/pep.js +35 -43
  50. package/dist/components/Shared/FullKyc/personalDetails.js +5 -5
  51. package/dist/components/Shared/FullKyc/userInfo.js +6 -11
  52. package/dist/components/Shared/HistoryItem/index.js +43 -48
  53. package/dist/components/Shared/Incode/index.js +31 -35
  54. package/dist/components/Shared/MinimalKyc/index.js +59 -64
  55. package/dist/components/Shared/Sumsub/index.js +74 -61
  56. package/dist/components/Shared/loader.js +4 -5
  57. package/dist/components/Shared/tooltip.js +2 -2
  58. package/dist/components/Shared/transition.js +4 -4
  59. package/dist/components/Wallet/Account/createIban.js +34 -37
  60. package/dist/components/Wallet/Account/eWallet.js +35 -39
  61. package/dist/components/Wallet/Account/iban.js +49 -53
  62. package/dist/components/Wallet/Account/ibanItem.js +68 -73
  63. package/dist/components/Wallet/Account/index.js +66 -73
  64. package/dist/components/Wallet/Account/sendIban.js +79 -88
  65. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -8
  66. package/dist/components/Wallet/Buy/form.js +6 -16
  67. package/dist/components/Wallet/Buy/index.js +2 -2
  68. package/dist/components/Wallet/Deposit/index.js +15 -17
  69. package/dist/components/Wallet/EnterpriseKyc/edd.js +31 -32
  70. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  71. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  72. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  73. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  74. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3590 -1481
  77. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  78. package/dist/components/Wallet/EnterpriseKyc/verify.js +21 -21
  79. package/dist/components/Wallet/History/index.js +22 -796
  80. package/dist/components/Wallet/Home/index.js +13 -14
  81. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -96
  82. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  83. package/dist/components/Wallet/Portfolio/index.js +47 -50
  84. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  85. package/dist/components/Wallet/Profile/documents.js +125 -134
  86. package/dist/components/Wallet/Profile/index.js +37 -42
  87. package/dist/components/Wallet/Profile/storage.js +39 -47
  88. package/dist/components/Wallet/Receive/index.js +31 -36
  89. package/dist/components/Wallet/Sell/confirmTransaction.js +6 -8
  90. package/dist/components/Wallet/Sell/form.js +6 -16
  91. package/dist/components/Wallet/Sell/index.js +2 -2
  92. package/dist/components/Wallet/Send/index.js +98 -107
  93. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  94. package/dist/components/Wallet/Shared/Auth/otpForm.js +8 -355
  95. package/dist/components/Wallet/Shared/BankSelect/index.js +44 -48
  96. package/dist/components/Wallet/Shared/CardCorp/index.js +17 -18
  97. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  98. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  99. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  100. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  101. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  102. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  103. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  104. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  105. package/dist/components/Wallet/Shared/addBank.js +40 -44
  106. package/dist/components/Wallet/Shared/appButton.js +11 -15
  107. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  108. package/dist/components/Wallet/Shared/button.js +7 -7
  109. package/dist/components/Wallet/Shared/connectPlaidBank.js +15 -16
  110. package/dist/components/Wallet/Shared/inputField.js +5 -5
  111. package/dist/components/Wallet/Shared/manualSend.js +7 -11
  112. package/dist/components/Wallet/Shared/noData.js +4 -5
  113. package/dist/components/Wallet/Shared/pin.js +25 -27
  114. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  115. package/dist/components/Wallet/Shared/step.js +12 -13
  116. package/dist/components/Wallet/Shared/timer.js +1 -1
  117. package/dist/components/Wallet/SignIn/index.js +16 -16
  118. package/dist/components/Wallet/SignUp/index.js +62 -152
  119. package/dist/components/Wallet/SignUp/terms.js +1 -1
  120. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  121. package/dist/components/Wallet/Stake/id/index.js +73 -81
  122. package/dist/components/Wallet/Stake/index.js +64 -67
  123. package/dist/components/Wallet/Swap/form.js +8 -17
  124. package/dist/components/Wallet/Swap/index.js +2 -2
  125. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  126. package/dist/components/Wallet/Withdraw/bankSelect.js +40 -44
  127. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -6
  128. package/dist/components/Wallet/Withdraw/form.js +4 -15
  129. package/dist/components/Wallet/Withdraw/index.js +2 -2
  130. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  131. package/dist/hoc/withThemeProvider.js +5 -732
  132. package/dist/hooks/useDialog/index.js +22 -23
  133. package/dist/hooks/useRrDialog/index.js +43 -46
  134. package/dist/hooks/useSnackBar.js +24 -696
  135. package/dist/icons/buyIcon.js +1 -1
  136. package/dist/icons/canceledBuyIcon.js +1 -1
  137. package/dist/icons/canceledRedeemIcon.js +1 -1
  138. package/dist/icons/failedBuyIcon.js +2 -2
  139. package/dist/icons/failedRedeemIcon.js +2 -2
  140. package/dist/icons/pendingBuyIcon.js +1 -1
  141. package/dist/icons/pendingRedeemIcon.js +1 -1
  142. package/dist/icons/redeemIcon.js +1 -1
  143. package/dist/{index-BbVpeed7.js → index-3OQ4M69t.js} +87 -96
  144. package/dist/{index-BHG1bT4t.js → index-BBFbUCRZ.js} +123 -128
  145. package/dist/{index-Dh_ahu-u.js → index-C1WPCgkl.js} +129 -140
  146. package/dist/{index-eEBuSKOo.js → index-CDwzoHu7.js} +124 -134
  147. package/dist/{index-B9oucF3r.js → index-CK4kLRAw.js} +189 -198
  148. package/dist/{index-C7Td5yoW.js → index-CYX3j0V7.js} +172 -181
  149. package/dist/{index-D2JWUPz8.js → index-ILpK4BCB.js} +154 -163
  150. package/dist/main.js +7 -7
  151. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  152. package/dist/otpForm-fiNqeB5H.js +7378 -0
  153. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  154. package/dist/tooltip-BW0UyWw7.js +2129 -0
  155. package/package.json +6 -6
  156. package/dist/Alert-DzsbFW3-.js +0 -369
  157. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  158. package/dist/Avatar-1XklXr4O.js +0 -281
  159. package/dist/Backdrop-CioURPVG.js +0 -359
  160. package/dist/Box-B0YSYLco.js +0 -59
  161. package/dist/Button-Df4vgU24.js +0 -663
  162. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  163. package/dist/CardContent-D9wTdpu-.js +0 -141
  164. package/dist/CircularProgress-xZA3lvba.js +0 -252
  165. package/dist/Close-CxzDL3J-.js +0 -9
  166. package/dist/Container-urNKV7hm.js +0 -181
  167. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  168. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  169. package/dist/DialogContent-BMwlOnbW.js +0 -567
  170. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  171. package/dist/Divider-BShhMFf4.js +0 -297
  172. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  173. package/dist/FormControl-RtZDQMdA.js +0 -258
  174. package/dist/FormControlLabel-BliKW48y.js +0 -519
  175. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  176. package/dist/Grid-CFe3amXO.js +0 -410
  177. package/dist/Grow-CnGtel3u.js +0 -196
  178. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  179. package/dist/IconButton-DHm-hucF.js +0 -297
  180. package/dist/InputAdornment-DMiED3JH.js +0 -173
  181. package/dist/Link-DBA9Yifs.js +0 -266
  182. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  183. package/dist/Menu-DLYFFrEk.js +0 -1239
  184. package/dist/MenuItem-DUdYOJr4.js +0 -271
  185. package/dist/Modal-CFIQ_s3T.js +0 -743
  186. package/dist/Paper-Bgt2WXI6.js +0 -186
  187. package/dist/Popper-BBAoiZKn.js +0 -1409
  188. package/dist/Portal-BMAxiQwe.js +0 -69
  189. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  190. package/dist/Select-CB5yWmyn.js +0 -1886
  191. package/dist/Slide-B9Nw0LZ4.js +0 -235
  192. package/dist/Stack-k55YTxET.js +0 -172
  193. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  194. package/dist/TextField-DPpRUQe3.js +0 -978
  195. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  196. package/dist/Typography-pAaje37G.js +0 -260
  197. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  198. package/dist/clsx-BTaloaeC.js +0 -264
  199. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  200. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  201. package/dist/createTheme-CD19zQB7.js +0 -3825
  202. package/dist/debounce-46wSf_lW.js +0 -15
  203. package/dist/defaultTheme-C35y5cLB.js +0 -5
  204. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  205. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  206. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  207. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  208. package/dist/exactProp-C1Lmtwf_.js +0 -13
  209. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  210. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  211. package/dist/index-B0Z-Gjno.js +0 -22
  212. package/dist/index-DUcLo3x5.js +0 -43
  213. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  214. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  215. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  216. package/dist/memoTheme-yHaPezod.js +0 -15
  217. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  218. package/dist/radioButton-CzlYB0Lh.js +0 -402
  219. package/dist/refType-BsTH3qnM.js +0 -56
  220. package/dist/tooltip-3UvETWtS.js +0 -740
  221. package/dist/useControlled-nm4pBabJ.js +0 -31
  222. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  223. package/dist/useFormControl-CatNKXAi.js +0 -10
  224. package/dist/useId-CK6Kn3Tn.js +0 -21
  225. package/dist/useSlot-CW7SOYlh.js +0 -125
  226. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  227. package/dist/useTheme-BQJ5lp0i.js +0 -11
  228. package/dist/useTheme-S5_DHFsQ.js +0 -17
  229. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,358 +1,11 @@
1
- import { jsx as R, jsxs as T, Fragment as X } from "react/jsx-runtime";
2
- import S, { useState as L, useEffect as Z } from "react";
1
+ import "react/jsx-runtime";
2
+ import "@mui/material";
3
+ import "react";
3
4
  import "../../../../constants-DrmtdI1J.js";
4
- import { l as ee } from "../../../../auth-Cwq6nfwY.js";
5
- import { RESEND_EMAIL_TIMER as _ } from "../../../../util/constants.js";
6
- import z from "../appButton.js";
7
- import { s as H } from "../../../../DefaultPropsProvider-oAu9El-f.js";
8
- import { T as te } from "../../../../TextField-DPpRUQe3.js";
9
- import { B as P } from "../../../../Box-B0YSYLco.js";
10
- import { S as C } from "../../../../Stack-k55YTxET.js";
11
- import { T as M } from "../../../../Typography-pAaje37G.js";
12
- const ne = H(te)`
13
- input {
14
- text-align: center;
15
- }
16
- `, re = {
17
- TextFieldStyled: ne
18
- }, ae = (n) => /* @__PURE__ */ R(re.TextFieldStyled, { ...n }), b = {
19
- left: "ArrowLeft",
20
- right: "ArrowRight",
21
- backspace: "Backspace",
22
- home: "Home",
23
- end: "End"
24
- };
25
- function ie(n, a) {
26
- return n <= 0 ? [] : Array.from({ length: n }, a);
27
- }
28
- function oe(n, a, l) {
29
- return n.map((s, I) => a === I ? l : s);
30
- }
31
- function K(n) {
32
- return n.join("");
33
- }
34
- function W(n, a) {
35
- return [...n, a];
36
- }
37
- function ce(n, a, l) {
38
- return n.reduce(
39
- (s, I, u) => {
40
- const { characters: v, restArrayMerged: i } = s;
41
- if (u < l)
42
- return {
43
- restArrayMerged: i,
44
- characters: W(v, I)
45
- };
46
- const [D, ...h] = i;
47
- return {
48
- restArrayMerged: h,
49
- characters: W(v, D || "")
50
- };
51
- },
52
- {
53
- restArrayMerged: a,
54
- characters: []
55
- }
56
- ).characters;
57
- }
58
- function le(n) {
59
- return (a) => {
60
- n.forEach((l) => {
61
- typeof l == "function" ? l(a) : l != null && (l.current = a);
62
- });
63
- };
64
- }
65
- function se(n) {
66
- return n.split("");
67
- }
68
- function q(n) {
69
- const a = S.useRef(() => {
70
- throw new Error("Cannot call an event handler while rendering.");
71
- });
72
- return S.useInsertionEffect(() => {
73
- a.current = n;
74
- }), S.useCallback((...l) => {
75
- var s;
76
- return (s = a.current) == null ? void 0 : s.call(a, ...l);
77
- }, []);
78
- }
79
- const ue = () => !0, pe = S.forwardRef(
80
- (n, a) => {
81
- const {
82
- value: l = "",
83
- length: s = 4,
84
- autoFocus: I = !1,
85
- onChange: u,
86
- TextFieldsProps: v,
87
- onComplete: i,
88
- validateChar: D = ue,
89
- className: h,
90
- onBlur: k,
91
- ...O
92
- } = n, A = S.useRef(l), w = q(i), p = q((e) => {
93
- const t = e.slice(0, s);
94
- return {
95
- isCompleted: t.length === s,
96
- finalValue: t
97
- };
98
- });
99
- S.useEffect(() => {
100
- const { isCompleted: e, finalValue: t } = p(
101
- A.current
102
- );
103
- e && w(t);
104
- }, [s, w, p]);
105
- const f = ie(
106
- s,
107
- (e, t) => ({
108
- character: l[t] || "",
109
- inputRef: S.createRef()
110
- })
111
- ), B = (e) => f.findIndex(({ inputRef: t }) => t.current === e), V = () => f.map(({ character: e }) => e), $ = (e, t) => {
112
- const r = oe(
113
- V(),
114
- e,
115
- t
116
- );
117
- return K(r);
118
- }, Y = (e) => {
119
- var t, r;
120
- (r = (t = f[e]) == null ? void 0 : t.inputRef.current) == null || r.focus();
121
- }, m = (e) => {
122
- var t, r;
123
- (r = (t = f[e]) == null ? void 0 : t.inputRef.current) == null || r.select();
124
- }, N = (e) => {
125
- e + 1 !== s && (f[e + 1].character ? m(e + 1) : Y(e + 1));
126
- }, j = (e, t) => typeof D != "function" ? !0 : D(e, t), G = (e) => {
127
- const t = B(e.target);
128
- if (t === 0 && e.target.value.length > 1) {
129
- const { finalValue: y, isCompleted: F } = p(
130
- e.target.value
131
- );
132
- u == null || u(y), F && (i == null || i(y)), m(y.length - 1);
133
- return;
134
- }
135
- const r = e.target.value[0] || "";
136
- let d = r;
137
- d && !j(d, t) && (d = "");
138
- const o = $(t, d);
139
- u == null || u(o);
140
- const { isCompleted: x, finalValue: g } = p(o);
141
- x && (i == null || i(g)), d !== "" ? o.length - 1 < t ? m(o.length) : N(t) : r === "" && o.length <= t && m(t - 1);
142
- }, J = (e) => {
143
- const t = e.target, r = t.selectionStart, d = t.selectionEnd, o = B(t), x = r === 0 && d === 0;
144
- if (t.value === e.key)
145
- e.preventDefault(), N(o);
146
- else if (b.backspace === e.key) {
147
- if (!t.value)
148
- e.preventDefault(), m(o - 1);
149
- else if (x) {
150
- e.preventDefault();
151
- const g = $(o, "");
152
- u == null || u(g), g.length <= o && m(o - 1);
153
- }
154
- } else b.left === e.key ? (e.preventDefault(), m(o - 1)) : b.right === e.key ? (e.preventDefault(), m(o + 1)) : b.home === e.key ? (e.preventDefault(), m(0)) : b.end === e.key && (e.preventDefault(), m(f.length - 1));
155
- }, Q = (e) => {
156
- const t = e.clipboardData.getData("text/plain"), r = e.target, d = f.findIndex(
157
- ({ character: E, inputRef: c }) => E === "" || c.current === r
158
- ), o = V(), x = ce(
159
- o,
160
- se(t),
161
- d
162
- ).map((E, c) => j(E, c) ? E : ""), g = K(x);
163
- u == null || u(g);
164
- const { isCompleted: y, finalValue: F } = p(g);
165
- y ? (i == null || i(F), m(s - 1)) : m(g.length);
166
- }, U = (e) => {
167
- if (!f.some(({ inputRef: t }) => t.current === e.relatedTarget)) {
168
- const { isCompleted: t, finalValue: r } = p(l);
169
- k == null || k(r, t);
170
- }
171
- };
172
- return /* @__PURE__ */ R(
173
- P,
174
- {
175
- display: "flex",
176
- gap: "20px",
177
- alignItems: "center",
178
- ref: a,
179
- className: `MuiOtpInput-Box ${h || ""}`,
180
- ...O,
181
- children: f.map(({ character: e, inputRef: t }, r) => {
182
- const {
183
- onPaste: d,
184
- onFocus: o,
185
- onKeyDown: x,
186
- className: g,
187
- onBlur: y,
188
- inputRef: F,
189
- ...E
190
- } = typeof v == "function" ? v(r) || {} : v || {};
191
- return /* @__PURE__ */ R(
192
- ae,
193
- {
194
- autoFocus: I ? r === 0 : !1,
195
- autoComplete: "one-time-code",
196
- value: e,
197
- inputRef: le([t, F]),
198
- className: `MuiOtpInput-TextField MuiOtpInput-TextField-${r + 1} ${g || ""}`,
199
- onPaste: (c) => {
200
- c.preventDefault(), Q(c), d == null || d(c);
201
- },
202
- onFocus: (c) => {
203
- c.preventDefault(), c.target.select(), o == null || o(c);
204
- },
205
- onChange: G,
206
- onKeyDown: (c) => {
207
- J(c), x == null || x(c);
208
- },
209
- onBlur: (c) => {
210
- y == null || y(c), U(c);
211
- },
212
- ...E
213
- },
214
- r
215
- );
216
- })
217
- }
218
- );
219
- }
220
- ), fe = pe, de = H(fe)(({ theme: n }) => ({
221
- display: "flex",
222
- gap: "30px",
223
- maxWidth: "650px",
224
- marginInline: "auto",
225
- "& input": {
226
- fontSize: "20px",
227
- fontWeight: "bold",
228
- color: n.palette.primary.main,
229
- border: `2px solid ${n.palette.primary.main}`,
230
- borderRadius: "6px",
231
- padding: "8px 12px",
232
- textAlign: "center"
233
- }
234
- })), ke = ({
235
- showAlertMessage: n,
236
- loader: a,
237
- otpLoader: l,
238
- email: s,
239
- dispatch: I,
240
- onValidateOtp: u,
241
- otpVal: v
242
- }) => {
243
- const [i, D] = L(v), [h, k] = L(_);
244
- Z(() => {
245
- if (h === 0) return;
246
- const p = setInterval(() => {
247
- k((f) => f - 1);
248
- }, 1e3);
249
- return () => clearInterval(p);
250
- }, [h]);
251
- const O = () => {
252
- I(ee(s)), k(_), n({
253
- message: "A new OTP has been sent to the given email address.",
254
- type: "success",
255
- duration: 6e3
256
- });
257
- }, A = (p) => {
258
- const f = Math.floor(p / 60), B = p % 60;
259
- return `${String(f).padStart(2, "0")}:${String(
260
- B
261
- ).padStart(2, "0")}`;
262
- }, w = () => {
263
- if (!i)
264
- return n({ message: "Please provide OTP." }), !1;
265
- if (i.length !== 6)
266
- return n({ message: "OTP should be 6-digit." }), !1;
267
- u(i);
268
- };
269
- return /* @__PURE__ */ T(
270
- P,
271
- {
272
- p: 6,
273
- sx: {
274
- display: "flex",
275
- flexDirection: "column",
276
- alignItems: "center",
277
- justifyContent: "center",
278
- textAlign: "center",
279
- width: "100%"
280
- },
281
- children: [
282
- /* @__PURE__ */ T(C, { direction: "column", spacing: 1.5, children: [
283
- /* @__PURE__ */ R(
284
- M,
285
- {
286
- variant: "h4",
287
- sx: {
288
- fontSize: { xs: "1.5rem", md: "2rem" },
289
- fontWeight: 700
290
- },
291
- children: "Verify your identity"
292
- }
293
- ),
294
- /* @__PURE__ */ T(M, { variant: "caption", sx: { marginTop: "0.5rem" }, children: [
295
- "Please check your email ",
296
- s,
297
- " and enter the 6-digit code..."
298
- ] })
299
- ] }),
300
- /* @__PURE__ */ T(P, { mt: 4, width: "100%", children: [
301
- /* @__PURE__ */ T(C, { direction: "column", alignItems: "center", spacing: 2, children: [
302
- /* @__PURE__ */ R(
303
- de,
304
- {
305
- autoFocus: !0,
306
- length: 6,
307
- value: i,
308
- onChange: (p) => D(p)
309
- }
310
- ),
311
- h > 0 && /* @__PURE__ */ R(X, { children: /* @__PURE__ */ T(M, { variant: "body2", children: [
312
- "You can request a new code in ",
313
- A(h)
314
- ] }) })
315
- ] }),
316
- /* @__PURE__ */ T(
317
- C,
318
- {
319
- direction: "column",
320
- alignItems: "center",
321
- spacing: 2,
322
- mt: 8,
323
- mb: "1.2rem",
324
- children: [
325
- /* @__PURE__ */ R(
326
- z,
327
- {
328
- onClick: w,
329
- sx: { width: "60%" },
330
- disabled: !i,
331
- isLoading: l,
332
- children: "Confirm"
333
- }
334
- ),
335
- /* @__PURE__ */ R(
336
- z,
337
- {
338
- variant: "text",
339
- variantType: "text",
340
- onClick: O,
341
- customSize: "medium",
342
- sx: { padding: "0px", height: "2rem" },
343
- disabled: h > 0,
344
- isLoading: a,
345
- children: "Resend Email"
346
- }
347
- )
348
- ]
349
- }
350
- )
351
- ] })
352
- ]
353
- }
354
- );
355
- };
5
+ import "../../../../auth-DTJdu6mq.js";
6
+ import "../../../../util/constants.js";
7
+ import "../appButton.js";
8
+ import { O as d } from "../../../../otpForm-fiNqeB5H.js";
356
9
  export {
357
- ke as default
10
+ d as default
358
11
  };
@@ -1,72 +1,68 @@
1
- import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { useState as N, useEffect as S } from "react";
3
- import { u as T } from "../../../../react-redux-C7I9-1M6.js";
4
- import b from "../backBtn.js";
5
- import A from "../addBank.js";
1
+ import { jsxs as r, Fragment as m, jsx as e } from "react/jsx-runtime";
2
+ import { useState as N, useEffect as b } from "react";
3
+ import { u as S } from "../../../../react-redux-C7I9-1M6.js";
4
+ import { Box as n, CircularProgress as l, Grid as c, Typography as d, Stack as T } from "@mui/material";
5
+ import A from "../backBtn.js";
6
+ import y from "../addBank.js";
6
7
  import "../../../../constants-DrmtdI1J.js";
7
- import { u as y } from "../../../../index-BQNs1mvn.js";
8
- import { o as C } from "../../../../order-DEp_Lmar.js";
9
- import { u as E } from "../../../../bank-C4pmTe--.js";
10
- import O from "../connectPlaidBank.js";
11
- import { s as o } from "../../../../styles.module-DMd29SPQ.js";
12
- import { RADIO_BUTTON_SELECTED as D, RADIO_BUTTON as I } from "../../../../util/constants.js";
13
- import L from "../../../../hooks/useEverestDispatch.js";
14
- import { B as a } from "../../../../Box-B0YSYLco.js";
15
- import { C as l } from "../../../../CircularProgress-xZA3lvba.js";
16
- import { G as s } from "../../../../Grid-CFe3amXO.js";
17
- import { T as d } from "../../../../Typography-pAaje37G.js";
18
- import { S as R } from "../../../../Stack-k55YTxET.js";
19
- const Y = ({
8
+ import { u as C } from "../../../../index-BQNs1mvn.js";
9
+ import { o as E } from "../../../../order-DEp_Lmar.js";
10
+ import { u as O } from "../../../../bank-C4pmTe--.js";
11
+ import D from "../connectPlaidBank.js";
12
+ import { s } from "../../../../styles.module-DMd29SPQ.js";
13
+ import { RADIO_BUTTON_SELECTED as I, RADIO_BUTTON as L } from "../../../../util/constants.js";
14
+ import R from "../../../../hooks/useEverestDispatch.js";
15
+ const Q = ({
20
16
  orderData: p,
21
- backBtnFunc: f,
22
- bankSelectFunc: u
17
+ backBtnFunc: u,
18
+ bankSelectFunc: h
23
19
  }) => {
24
- const c = L(), n = T(y), h = n.loader;
25
- n.message;
26
- const k = n.banks, B = p.create.bank_id, [i, g] = N(!1);
27
- S(() => {
28
- c(E());
20
+ const o = R(), a = S(C), f = a.loader;
21
+ a.message;
22
+ const k = a.banks, g = p.create.bank_id, [i, B] = N(!1);
23
+ b(() => {
24
+ o(O());
29
25
  }, []);
30
- const x = (r) => {
31
- i || (g(!0), c(C(r.id)), u());
26
+ const x = (t) => {
27
+ i || (B(!0), o(E(t.id)), h());
32
28
  };
33
- return /* @__PURE__ */ t(m, { children: [
29
+ return /* @__PURE__ */ r(m, { children: [
34
30
  /* @__PURE__ */ e(
35
- b,
31
+ A,
36
32
  {
37
- onClickHandler: f,
33
+ onClickHandler: u,
38
34
  backBtnText: "Select Bank Account"
39
35
  }
40
36
  ),
41
- h ? /* @__PURE__ */ e(a, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(l, {}) }) : /* @__PURE__ */ t(m, { children: [
42
- k.map((r) => /* @__PURE__ */ e(
43
- a,
37
+ f ? /* @__PURE__ */ e(n, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(l, {}) }) : /* @__PURE__ */ r(m, { children: [
38
+ k.map((t) => /* @__PURE__ */ e(
39
+ n,
44
40
  {
45
- className: o["bank-item"],
46
- onClick: () => x(r),
47
- children: /* @__PURE__ */ t(s, { container: !0, display: "flex", alignItems: "center", children: [
48
- /* @__PURE__ */ e(s, { size: 10, className: "content-center", children: /* @__PURE__ */ t(a, { sx: { textAlign: "left" }, children: [
49
- /* @__PURE__ */ e("p", { className: o["bank-name"], children: /* @__PURE__ */ e("strong", { children: r.bankName }) }),
50
- /* @__PURE__ */ t("p", { className: o["bank-account"], children: [
51
- r.accountName,
41
+ className: s["bank-item"],
42
+ onClick: () => x(t),
43
+ children: /* @__PURE__ */ r(c, { container: !0, display: "flex", alignItems: "center", children: [
44
+ /* @__PURE__ */ e(c, { size: 10, className: "content-center", children: /* @__PURE__ */ r(n, { sx: { textAlign: "left" }, children: [
45
+ /* @__PURE__ */ e("p", { className: s["bank-name"], children: /* @__PURE__ */ e("strong", { children: t.bankName }) }),
46
+ /* @__PURE__ */ r("p", { className: s["bank-account"], children: [
47
+ t.accountName,
52
48
  " | ***",
53
- r.accountNumber.slice(-4)
49
+ t.accountNumber.slice(-4)
54
50
  ] })
55
51
  ] }) }),
56
- /* @__PURE__ */ e(s, { size: 2, children: /* @__PURE__ */ e(d, { sx: { textAlign: "right" }, children: B === r.id ? /* @__PURE__ */ e("img", { src: D, alt: "radio" }) : /* @__PURE__ */ e("img", { src: I, alt: "radio" }) }) })
52
+ /* @__PURE__ */ e(c, { size: 2, children: /* @__PURE__ */ e(d, { sx: { textAlign: "right" }, children: g === t.id ? /* @__PURE__ */ e("img", { src: I, alt: "radio" }) : /* @__PURE__ */ e("img", { src: L, alt: "radio" }) }) })
57
53
  ] })
58
54
  },
59
- r.id
55
+ t.id
60
56
  )),
61
- i && /* @__PURE__ */ e(a, { mt: 4, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(l, {}) })
57
+ i && /* @__PURE__ */ e(n, { mt: 4, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(l, {}) })
62
58
  ] }),
63
- /* @__PURE__ */ t(R, { mt: 4, gap: 1, children: [
64
- /* @__PURE__ */ e(O, { buttonType: "secondary" }),
59
+ /* @__PURE__ */ r(T, { mt: 4, gap: 1, children: [
60
+ /* @__PURE__ */ e(D, { buttonType: "secondary" }),
65
61
  /* @__PURE__ */ e(d, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
66
- /* @__PURE__ */ e(A, {})
62
+ /* @__PURE__ */ e(y, {})
67
63
  ] })
68
64
  ] });
69
65
  };
70
66
  export {
71
- Y as default
67
+ Q as default
72
68
  };
@@ -1,36 +1,35 @@
1
- import { jsxs as n, Fragment as g, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as g, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as u, useState as C, useEffect as h } from "react";
3
3
  import x from "../backBtn.js";
4
- import { VISA_ICON as y } from "../../../../util/constants.js";
4
+ import { Typography as m, Box as y, CircularProgress as b } from "@mui/material";
5
+ import { VISA_ICON as v } from "../../../../util/constants.js";
5
6
  import "../../../../index-DlQqWbXG.js";
6
7
  import "../appButton.js";
7
8
  import "../../../../hoc/withThemeProvider.js";
8
- import "../Auth/otpForm.js";
9
+ import "../../../../otpForm-fiNqeB5H.js";
9
10
  import "../../../../constants-DrmtdI1J.js";
10
- import { useSnackBarContext as b } from "../../../../context/snackBarContext.js";
11
+ import { useSnackBarContext as w } from "../../../../context/snackBarContext.js";
11
12
  import "../../../../util/conversions.js";
12
13
  import "../../../../index-CAoLi5Qq.js";
13
14
  import "../../../../react-webcam-B3cXh1XT.js";
14
15
  import "../../../Shared/transition.js";
15
- import "../../../../tooltip-3UvETWtS.js";
16
+ import "../../../../tooltip-BW0UyWw7.js";
16
17
  import "../../../../moment-h96o7c8I.js";
17
18
  import "../../../../index.esm-BsMAMhYW.js";
18
19
  import "../../../../web3-u4qDZYpo.js";
19
20
  import "../../../../index-ceeCtFuh.js";
20
21
  import "../../../../index.esm-I_Bp2YLf.js";
21
22
  import "../../../../context/dialogContext.js";
22
- import { T as m } from "../../../../Typography-pAaje37G.js";
23
- import { B as v } from "../../../../Box-B0YSYLco.js";
24
- import { C as w } from "../../../../CircularProgress-xZA3lvba.js";
25
- const J = ({
23
+ import "@mui/icons-material";
24
+ const G = ({
26
25
  checkoutId: o,
27
26
  integrity: i,
28
27
  srcUrl: s,
29
28
  onResultUrl: p,
30
- backBtnFunc: a,
29
+ backBtnFunc: n,
31
30
  brands: c = ["VISA", "MASTER"]
32
31
  }) => {
33
- const { showAlertMessage: l } = b(), e = u(null), [d, f] = C(!0);
32
+ const { showAlertMessage: l } = w(), e = u(null), [d, f] = C(!0);
34
33
  return h(() => {
35
34
  if (!o) return;
36
35
  const t = document.createElement("script");
@@ -43,20 +42,20 @@ const J = ({
43
42
  }, e.current && e.current.appendChild(t), () => {
44
43
  e.current && (e.current.innerHTML = "");
45
44
  };
46
- }, [o, i]), /* @__PURE__ */ n(g, { children: [
47
- a && /* @__PURE__ */ r(
45
+ }, [o, i]), /* @__PURE__ */ a(g, { children: [
46
+ n && /* @__PURE__ */ r(
48
47
  x,
49
48
  {
50
- onClickHandler: a,
49
+ onClickHandler: n,
51
50
  backBtnText: "Payment Information"
52
51
  }
53
52
  ),
54
- /* @__PURE__ */ n(m, { className: "text-center", variant: "subtitle1", mt: 2, children: [
55
- /* @__PURE__ */ r("img", { src: y, width: 140, alt: "Debit Card" }),
53
+ /* @__PURE__ */ a(m, { className: "text-center", variant: "subtitle1", mt: 2, children: [
54
+ /* @__PURE__ */ r("img", { src: v, width: 140, alt: "Debit Card" }),
56
55
  /* @__PURE__ */ r("br", {}),
57
56
  /* @__PURE__ */ r("b", { children: "Debit Card" })
58
57
  ] }),
59
- d && /* @__PURE__ */ r(v, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(w, {}) }),
58
+ d && /* @__PURE__ */ r(y, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(b, {}) }),
60
59
  /* @__PURE__ */ r("div", { ref: e, children: o && /* @__PURE__ */ r(
61
60
  "form",
62
61
  {
@@ -77,5 +76,5 @@ const J = ({
77
76
  ] });
78
77
  };
79
78
  export {
80
- J as default
79
+ G as default
81
80
  };
@@ -1,17 +1,15 @@
1
1
  import { jsxs as n, Fragment as x, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as t, useEffect as c } from "react";
3
- import { E as D } from "../../../../ErrorOutline-CPQcnl2b.js";
4
- import { s as y, p as W, h as $, v as H } from "../../../../index-ceeCtFuh.js";
3
+ import { Typography as m, Box as p, CircularProgress as y } from "@mui/material";
4
+ import { E as D } from "../../../../ErrorOutline-Bt7P4ChN.js";
5
+ import { s as k, p as W, h as $, v as H } from "../../../../index-ceeCtFuh.js";
5
6
  import K from "../backBtn.js";
6
7
  import { removeExtraSpace as R } from "../../../../util/functions.js";
7
8
  import { CARD_PAYMENT_DECLINE as q, VISA_ICON as G } from "../../../../util/constants.js";
8
9
  import J from "../Input/index.js";
9
10
  import Q from "../appButton.js";
10
11
  import { useSnackBarContext as U } from "../../../../context/snackBarContext.js";
11
- import { T as m } from "../../../../Typography-pAaje37G.js";
12
- import { B as p } from "../../../../Box-B0YSYLco.js";
13
- import { C as k } from "../../../../CircularProgress-xZA3lvba.js";
14
- const me = ({
12
+ const le = ({
15
13
  checkoutKey: v,
16
14
  orderData: E,
17
15
  backBtnFunc: N,
@@ -22,7 +20,7 @@ const me = ({
22
20
  billingAddress: {
23
21
  addressLine1: ""
24
22
  }
25
- }), [A, f] = t(!1), [l, u] = t(!0), [g, M] = t(!0), [b, T] = t(!0), [C, w] = t(!0);
23
+ }), [A, f] = t(!1), [l, u] = t(!0), [g, M] = t(!0), [b, w] = t(!0), [C, z] = t(!0);
26
24
  c(() => {
27
25
  var e, o, s, d;
28
26
  (o = (e = a == null ? void 0 : a._links) == null ? void 0 : e.redirect) != null && o.href && window.location.replace((d = (s = a == null ? void 0 : a._links) == null ? void 0 : s.redirect) == null ? void 0 : d.href), a.status === q && h({
@@ -38,7 +36,7 @@ const me = ({
38
36
  }, [i]), c(() => {
39
37
  !g && !b && !C && i !== "" ? l && u(!1) : l || u(!0);
40
38
  }, [i, g, b, C]);
41
- const z = (e, o, s, d = /./) => {
39
+ const T = (e, o, s, d = /./) => {
42
40
  if (e !== "" && !d.test(e))
43
41
  return !1;
44
42
  o(e);
@@ -51,10 +49,10 @@ const me = ({
51
49
  M(e.isEmpty || !e.isValid);
52
50
  break;
53
51
  case "expiry-date":
54
- T(e.isEmpty || !e.isValid);
52
+ w(e.isEmpty || !e.isValid);
55
53
  break;
56
54
  case "cvv":
57
- w(e.isEmpty || !e.isValid);
55
+ z(e.isEmpty || !e.isValid);
58
56
  break;
59
57
  default:
60
58
  console.log("NOOP");
@@ -80,9 +78,9 @@ const me = ({
80
78
  /* @__PURE__ */ r("br", {}),
81
79
  /* @__PURE__ */ r("b", { children: "Debit Card" })
82
80
  ] }),
83
- V && /* @__PURE__ */ r(p, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(k, {}) }),
81
+ V && /* @__PURE__ */ r(p, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(y, {}) }),
84
82
  /* @__PURE__ */ r(p, { mt: 2, children: /* @__PURE__ */ n(
85
- y,
83
+ k,
86
84
  {
87
85
  config: {
88
86
  debug: !1,
@@ -144,7 +142,7 @@ const me = ({
144
142
  {
145
143
  label: "Name on Card",
146
144
  value: i,
147
- onChange: (e) => z(e.target.value, B, O),
145
+ onChange: (e) => T(e.target.value, B, O),
148
146
  error: L
149
147
  }
150
148
  ),
@@ -185,12 +183,12 @@ const me = ({
185
183
  Q,
186
184
  {
187
185
  onClick: () => {
188
- y.submitCard();
186
+ k.submitCard();
189
187
  },
190
188
  fullWidth: !0,
191
189
  disabled: l,
192
190
  children: /* @__PURE__ */ r("strong", { children: A ? /* @__PURE__ */ n(x, { children: [
193
- /* @__PURE__ */ r(k, { size: 15, color: "inherit" }),
191
+ /* @__PURE__ */ r(y, { size: 15, color: "inherit" }),
194
192
  " Processing..."
195
193
  ] }) : "Pay" })
196
194
  }
@@ -216,5 +214,5 @@ const me = ({
216
214
  ] });
217
215
  };
218
216
  export {
219
- me as default
217
+ le as default
220
218
  };