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,12 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../generic-token-B_ptO5yb.js";
4
+ import "@mui/material";
4
5
  import "../../../util/constants.js";
5
- import { T as l } from "../../../tokenRow-C-iMHhPj.js";
6
+ import { T as d } from "../../../tokenRow-BiNtHOKV.js";
6
7
  import "../../../util/conversions.js";
7
8
  import "../Shared/appButton.js";
8
- import "../../../Grid-CFe3amXO.js";
9
- import "../../../Divider-BShhMFf4.js";
10
9
  export {
11
- l as default
10
+ d as default
12
11
  };
@@ -1,63 +1,54 @@
1
1
  import { jsx as e, jsxs as t, Fragment as v } from "react/jsx-runtime";
2
- import { useState as f, useEffect as A, useRef as Y } from "react";
3
- import { C as F } from "../../../Close-CNwiMz_O.js";
4
- import { D as oe } from "../../../Delete-jpMstGIF.js";
5
- import { C as re } from "../../../Cancel-4lT7GZUA.js";
6
- import ie from "../Shared/inputField.js";
2
+ import { useState as f, useEffect as B, useRef as Y } from "react";
3
+ import { Backdrop as oe, CircularProgress as w, Typography as a, Button as re, Box as i, Dialog as F, DialogTitle as M, IconButton as T, Divider as $, DialogContent as L, Grid as u } from "@mui/material";
4
+ import { C as z } from "../../../Close-DSxLLo08.js";
5
+ import { D as ce } from "../../../Delete-Bj8zmXnh.js";
6
+ import { C as ie } from "../../../Cancel-pHQsCjtK.js";
7
+ import ae from "../Shared/inputField.js";
7
8
  import j from "../Shared/step.js";
8
- import { W as ce } from "../../../react-webcam-B3cXh1XT.js";
9
- import { c as ae } from "../../../createSvgIcon-Cuzqm90l.js";
10
- import se from "../../Shared/transition.js";
11
- import { getDocName as le } from "../../../util/functions.js";
12
- import { u as me } from "../../../react-redux-C7I9-1M6.js";
13
- import { at as de, au as ue, av as he, aw as pe, ax as fe, ay as ge } from "../../../constants-DrmtdI1J.js";
14
- import { e as xe } from "../../../index-BQNs1mvn.js";
15
- import { s as i } from "../../../styles.module-CHPRGltL.js";
16
- import { RIGHT_ARROW as M, DELETE_ICON as De } from "../../../util/constants.js";
17
- import { useDialog as Ce } from "../../../hooks/useDialog/index.js";
9
+ import { W as le } from "../../../react-webcam-B3cXh1XT.js";
10
+ import { c as se } from "../../../createSvgIcon-B28GrUxG.js";
11
+ import de from "../../Shared/transition.js";
12
+ import { getDocName as me } from "../../../util/functions.js";
13
+ import { u as ue } from "../../../react-redux-C7I9-1M6.js";
14
+ import { at as he, au as pe, av as fe, aw as ge, ax as xe, ay as De } from "../../../constants-DrmtdI1J.js";
15
+ import { e as Ce } from "../../../index-BQNs1mvn.js";
16
+ import { s as c } from "../../../styles.module-CHPRGltL.js";
17
+ import { RIGHT_ARROW as V, DELETE_ICON as be } from "../../../util/constants.js";
18
+ import { useDialog as ve } from "../../../hooks/useDialog/index.js";
18
19
  import g from "../Shared/appButton.js";
19
- import be from "../../../hooks/useEverestDispatch.js";
20
- import { B as ve } from "../../../Backdrop-CioURPVG.js";
21
- import { C as w } from "../../../CircularProgress-xZA3lvba.js";
22
- import { T as a } from "../../../Typography-pAaje37G.js";
23
- import { B as ye } from "../../../Button-Df4vgU24.js";
24
- import { B as c } from "../../../Box-B0YSYLco.js";
25
- import { D as L, a as z } from "../../../DialogContent-BMwlOnbW.js";
26
- import { D as $ } from "../../../DialogTitle-CfS0bb2K.js";
27
- import { I as T } from "../../../IconButton-DHm-hucF.js";
28
- import { D as V } from "../../../Divider-BShhMFf4.js";
29
- import { G as u } from "../../../Grid-CFe3amXO.js";
20
+ import ye from "../../../hooks/useEverestDispatch.js";
30
21
  const Ne = () => ({
31
- type: ue
22
+ type: pe
32
23
  }), Ee = (o) => ({
33
- type: pe,
24
+ type: ge,
34
25
  payload: o
35
26
  }), Se = (o) => ({
36
- type: fe,
27
+ type: xe,
37
28
  payload: o
38
29
  }), J = () => ({
39
- type: de
30
+ type: he
40
31
  }), Ie = (o) => ({
41
- type: ge,
32
+ type: De,
42
33
  payload: o
43
34
  }), Te = (o) => ({
44
- type: he,
35
+ type: fe,
45
36
  payload: o
46
- }), ke = ae(/* @__PURE__ */ e("path", {
37
+ }), ke = se(/* @__PURE__ */ e("path", {
47
38
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
48
39
  }), "ArrowBack"), Re = ({
49
40
  showAlertMessage: o,
50
- documentName: d,
41
+ documentName: m,
51
42
  setDocumentName: x,
52
43
  setDocumentScreen: h
53
- }) => /* @__PURE__ */ t(c, { className: "text-center", children: [
44
+ }) => /* @__PURE__ */ t(i, { className: "text-center", children: [
54
45
  /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 1 }),
55
46
  /* @__PURE__ */ e(a, { className: "secondary-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Name your document" }) }),
56
47
  /* @__PURE__ */ e(
57
- ie,
48
+ ae,
58
49
  {
59
50
  label: "Document Name",
60
- value: d,
51
+ value: m,
61
52
  onChangeHandler: (r) => x(r)
62
53
  }
63
54
  ),
@@ -66,25 +57,25 @@ const Ne = () => ({
66
57
  {
67
58
  sx: { mt: 4, mb: 4 },
68
59
  onClick: () => {
69
- if (!d)
60
+ if (!m)
70
61
  return o({ message: "Please provide the document name" }), !1;
71
62
  h(2);
72
63
  },
73
- disabled: !d,
64
+ disabled: !m,
74
65
  fullWidth: !0,
75
66
  children: /* @__PURE__ */ e("strong", { children: "Next" })
76
67
  }
77
68
  )
78
69
  ] }), we = ({
79
70
  showAlertMessage: o,
80
- uploadLoader: d,
71
+ uploadLoader: m,
81
72
  uploadDocument: x,
82
73
  documentFile: h,
83
- setDocumentFile: s,
74
+ setDocumentFile: l,
84
75
  setDocumentScreen: r
85
76
  }) => {
86
- const l = Y(null), [D, p] = f("Choose File");
87
- return /* @__PURE__ */ t(c, { className: "text-center", children: [
77
+ const s = Y(null), [D, p] = f("Choose File");
78
+ return /* @__PURE__ */ t(i, { className: "text-center", children: [
88
79
  /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 2 }),
89
80
  /* @__PURE__ */ e(a, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
90
81
  /* @__PURE__ */ t(u, { mt: 2, container: !0, spacing: 2, children: [
@@ -101,7 +92,7 @@ const Ne = () => ({
101
92
  g,
102
93
  {
103
94
  variantType: "secondary",
104
- onClick: () => l.current && l.current.click(),
95
+ onClick: () => s.current && s.current.click(),
105
96
  sx: { overflow: "hidden" },
106
97
  fullWidth: !0,
107
98
  children: D
@@ -111,21 +102,21 @@ const Ne = () => ({
111
102
  /* @__PURE__ */ e(
112
103
  "input",
113
104
  {
114
- ref: l,
115
- onChange: (m) => {
116
- if (m.target.files && !m.target.files[0].name.match(/.(jpg|jpeg|png)$/i))
105
+ ref: s,
106
+ onChange: (d) => {
107
+ if (d.target.files && !d.target.files[0].name.match(/.(jpg|jpeg|png)$/i))
117
108
  o({ message: "Please provide a valid file" });
118
- else if (m.target.files && m.target.files[0]) {
119
- p(m.target.files[0].name);
109
+ else if (d.target.files && d.target.files[0]) {
110
+ p(d.target.files[0].name);
120
111
  let b = new FileReader();
121
112
  b.onload = (k) => {
122
113
  var E;
123
114
  const N = (E = k.target) == null ? void 0 : E.result;
124
115
  if (typeof N == "string") {
125
116
  const W = N.split(/[,]/);
126
- s(W[1]);
117
+ l(W[1]);
127
118
  }
128
- }, b.readAsDataURL(m.target.files[0]);
119
+ }, b.readAsDataURL(d.target.files[0]);
129
120
  }
130
121
  },
131
122
  accept: ".jpg,.jpeg,.png,.pdf,",
@@ -133,7 +124,7 @@ const Ne = () => ({
133
124
  hidden: !0
134
125
  }
135
126
  ),
136
- d ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
127
+ m ? /* @__PURE__ */ t(i, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
137
128
  /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
138
129
  /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
139
130
  "Processing...",
@@ -157,12 +148,12 @@ const Ne = () => ({
157
148
  ] });
158
149
  }, We = ({
159
150
  showAlertMessage: o,
160
- documentFile: d,
151
+ documentFile: m,
161
152
  setDocumentFile: x,
162
153
  uploadDocument: h,
163
- uploadLoader: s
154
+ uploadLoader: l
164
155
  }) => {
165
- const r = Y(null), l = {
156
+ const r = Y(null), s = {
166
157
  audio: !1,
167
158
  height: {
168
159
  min: 720
@@ -179,8 +170,8 @@ const Ne = () => ({
179
170
  }
180
171
  }, [D, p] = f(""), C = () => {
181
172
  if (r.current) {
182
- const m = r.current.getScreenshot(), b = m.split(/[,]/);
183
- x(b[1]), p(m);
173
+ const d = r.current.getScreenshot(), b = d.split(/[,]/);
174
+ x(b[1]), p(d);
184
175
  }
185
176
  }, y = () => {
186
177
  if (!D)
@@ -189,19 +180,19 @@ const Ne = () => ({
189
180
  }), !1;
190
181
  h();
191
182
  };
192
- return /* @__PURE__ */ t(c, { className: "text-center", children: [
183
+ return /* @__PURE__ */ t(i, { className: "text-center", children: [
193
184
  /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 2 }),
194
185
  D ? /* @__PURE__ */ t(v, { children: [
195
186
  /* @__PURE__ */ t(
196
- c,
187
+ i,
197
188
  {
198
- className: `${i["doc-video-box"]} ${i["image-corner-color"]}`,
189
+ className: `${c["doc-video-box"]} ${c["image-corner-color"]}`,
199
190
  children: [
200
191
  /* @__PURE__ */ e("span", {}),
201
192
  /* @__PURE__ */ e(
202
193
  "img",
203
194
  {
204
- className: i["video-box-inner-content"],
195
+ className: c["video-box-inner-content"],
205
196
  src: D,
206
197
  alt: "doc"
207
198
  }
@@ -209,7 +200,7 @@ const Ne = () => ({
209
200
  ]
210
201
  }
211
202
  ),
212
- s ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
203
+ l ? /* @__PURE__ */ t(i, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
213
204
  /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
214
205
  /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
215
206
  "Processing...",
@@ -222,7 +213,7 @@ const Ne = () => ({
222
213
  {
223
214
  onClick: y,
224
215
  sx: { mt: 6 },
225
- disabled: !d,
216
+ disabled: !m,
226
217
  fullWidth: !0,
227
218
  children: /* @__PURE__ */ e("strong", { children: "Submit" })
228
219
  }
@@ -239,18 +230,18 @@ const Ne = () => ({
239
230
  )
240
231
  ] })
241
232
  ] }) : /* @__PURE__ */ t(v, { children: [
242
- /* @__PURE__ */ t(c, { className: i["doc-video-box"], children: [
233
+ /* @__PURE__ */ t(i, { className: c["doc-video-box"], children: [
243
234
  /* @__PURE__ */ e("span", {}),
244
235
  /* @__PURE__ */ e(
245
- ce,
236
+ le,
246
237
  {
247
- className: i["video-box-inner-content"],
238
+ className: c["video-box-inner-content"],
248
239
  audio: !1,
249
240
  ref: r,
250
241
  screenshotFormat: "image/jpeg",
251
- videoConstraints: l,
252
- minScreenshotHeight: l.height.min,
253
- minScreenshotWidth: l.width.ideal,
242
+ videoConstraints: s,
243
+ minScreenshotHeight: s.height.min,
244
+ minScreenshotWidth: s.width.ideal,
254
245
  screenshotQuality: 1
255
246
  }
256
247
  )
@@ -258,37 +249,37 @@ const Ne = () => ({
258
249
  /* @__PURE__ */ e(g, { onClick: C, sx: { mt: 8 }, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Take Photo" }) })
259
250
  ] })
260
251
  ] });
261
- }, at = ({ showAlertMessage: o, identityDocs: d }) => {
262
- const { openDialog: x, ConfirmDialog: h } = Ce(), s = be(), r = me(xe), l = r.data, D = r.loader, p = r.message, C = r.error, y = r.preview.front, m = r.preview.back, b = r.preview.loader, k = r.uploadLoader, [N, E] = f(!1), [W, O] = f(!1), [P, S] = f(1), [K, G] = f(!1), [U, Q] = f(""), [R, B] = f("");
263
- A(() => {
252
+ }, Xe = ({ showAlertMessage: o, identityDocs: m }) => {
253
+ const { openDialog: x, ConfirmDialog: h } = ve(), l = ye(), r = ue(Ce), s = r.data, D = r.loader, p = r.message, C = r.error, y = r.preview.front, d = r.preview.back, b = r.preview.loader, k = r.uploadLoader, [N, E] = f(!1), [W, O] = f(!1), [P, S] = f(1), [K, Q] = f(!1), [U, q] = f(""), [R, _] = f("");
254
+ B(() => {
264
255
  C && o({ message: C });
265
- }, [C]), A(() => {
266
- p && (o({ message: p, type: "success" }), E(!1), _());
256
+ }, [C]), B(() => {
257
+ p && (o({ message: p, type: "success" }), E(!1), A());
267
258
  }, [p]);
268
- const q = () => {
259
+ const G = () => {
269
260
  if (!U)
270
261
  return o({ message: "Please provide the document name" }), !1;
271
262
  if (!R)
272
263
  return o({ message: "Please provide the document" }), !1;
273
- s(
264
+ l(
274
265
  Te({
275
266
  filename: U.trim(),
276
267
  content: R
277
268
  })
278
269
  );
279
270
  }, X = () => {
280
- s(Ne());
271
+ l(Ne());
281
272
  };
282
- A(() => {
273
+ B(() => {
283
274
  X();
284
275
  }, []);
285
276
  const Z = (n) => {
286
- s(Ee(n));
277
+ l(Ee(n));
287
278
  }, ee = (n) => {
288
- s(Se(n));
279
+ l(Se(n));
289
280
  }, te = (n) => {
290
281
  x({
291
- icon: De,
282
+ icon: be,
292
283
  height: "450px",
293
284
  title: "Are you sure you want to delete?",
294
285
  message: "This action cannot be undone.",
@@ -298,24 +289,24 @@ const Ne = () => ({
298
289
  cancelButtonShow: !0
299
290
  });
300
291
  }, ne = (n) => {
301
- s(Ie(n));
292
+ l(Ie(n));
302
293
  }, H = ({ data: n, type: I }) => I === "identity" ? /* @__PURE__ */ e(
303
- c,
294
+ i,
304
295
  {
305
- className: i["menu-item"],
296
+ className: c["menu-item"],
306
297
  onClick: () => n.documentId && Z(n.documentId),
307
298
  children: /* @__PURE__ */ t(u, { container: !0, sx: { width: "100%" }, children: [
308
- /* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.documentType && le(n.documentType) }) }) }) }),
309
- /* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: M, alt: "arrow" }) }) })
299
+ /* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(i, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.documentType && me(n.documentType) }) }) }) }),
300
+ /* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
310
301
  ] })
311
302
  }
312
- ) : /* @__PURE__ */ t(c, { sx: { position: "relative" }, className: i["menu-item"], children: [
303
+ ) : /* @__PURE__ */ t(i, { sx: { position: "relative" }, className: c["menu-item"], children: [
313
304
  N && /* @__PURE__ */ e(
314
305
  T,
315
306
  {
316
- className: i["remove-icon"],
307
+ className: c["remove-icon"],
317
308
  onClick: () => te(n.filename),
318
- children: /* @__PURE__ */ e(re, {})
309
+ children: /* @__PURE__ */ e(ie, {})
319
310
  }
320
311
  ),
321
312
  /* @__PURE__ */ t(
@@ -325,18 +316,18 @@ const Ne = () => ({
325
316
  container: !0,
326
317
  sx: { width: "100%" },
327
318
  children: [
328
- /* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(c, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
329
- /* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: M, alt: "arrow" }) }) })
319
+ /* @__PURE__ */ e(u, { size: 10, className: "content-center", children: /* @__PURE__ */ e(i, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
320
+ /* @__PURE__ */ e(u, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: V, alt: "arrow" }) }) })
330
321
  ]
331
322
  }
332
323
  )
333
- ] }), _ = () => {
334
- Q(""), B(""), S(1), G(!1);
324
+ ] }), A = () => {
325
+ q(""), _(""), S(1), Q(!1);
335
326
  };
336
327
  return /* @__PURE__ */ t(v, { children: [
337
328
  /* @__PURE__ */ e(h, {}),
338
329
  /* @__PURE__ */ e(
339
- ve,
330
+ oe,
340
331
  {
341
332
  sx: {
342
333
  color: "#fff",
@@ -346,42 +337,42 @@ const Ne = () => ({
346
337
  children: /* @__PURE__ */ e(w, { color: "inherit" })
347
338
  }
348
339
  ),
349
- /* @__PURE__ */ e(a, { className: i.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
350
- l.length > 0 && /* @__PURE__ */ t(
351
- ye,
340
+ /* @__PURE__ */ e(a, { className: c.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
341
+ s.length > 0 && /* @__PURE__ */ t(
342
+ re,
352
343
  {
353
- className: `${N ? i["delete-disable"] : i["confirm-edit"]} normal-text`,
344
+ className: `${N ? c["delete-disable"] : c["confirm-edit"]} normal-text`,
354
345
  sx: { mt: 3, mb: 3 },
355
346
  variant: "contained",
356
347
  onClick: () => E((n) => !n),
357
348
  children: [
358
- /* @__PURE__ */ e(oe, {}),
349
+ /* @__PURE__ */ e(ce, {}),
359
350
  "Delete"
360
351
  ]
361
352
  }
362
353
  ),
363
- D ? /* @__PURE__ */ e(c, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(w, {}) }) : /* @__PURE__ */ t(v, { children: [
364
- d && d.map((n, I) => /* @__PURE__ */ e(H, { data: n, type: "identity" }, I)),
365
- l && l.map((n, I) => /* @__PURE__ */ e(H, { data: n, type: "normal" }, I)),
366
- !d && l.length === 0 && /* @__PURE__ */ e(a, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
354
+ D ? /* @__PURE__ */ e(i, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(w, {}) }) : /* @__PURE__ */ t(v, { children: [
355
+ m && m.map((n, I) => /* @__PURE__ */ e(H, { data: n, type: "identity" }, I)),
356
+ s && s.map((n, I) => /* @__PURE__ */ e(H, { data: n, type: "normal" }, I)),
357
+ !m && s.length === 0 && /* @__PURE__ */ e(a, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
367
358
  ] }),
368
359
  /* @__PURE__ */ e(
369
360
  g,
370
361
  {
371
362
  sx: { mt: 4 },
372
- onClick: () => G(!0),
363
+ onClick: () => Q(!0),
373
364
  fullWidth: !0,
374
365
  children: /* @__PURE__ */ e("strong", { children: "Add new document" })
375
366
  }
376
367
  ),
377
368
  /* @__PURE__ */ t(
378
- L,
369
+ F,
379
370
  {
380
371
  open: W,
381
372
  fullWidth: !0,
382
373
  onClose: () => O(!1),
383
374
  children: [
384
- /* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
375
+ /* @__PURE__ */ e(M, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
385
376
  T,
386
377
  {
387
378
  "aria-label": "close",
@@ -392,53 +383,53 @@ const Ne = () => ({
392
383
  top: 8,
393
384
  color: "#16359D"
394
385
  },
395
- children: /* @__PURE__ */ e(F, {})
386
+ children: /* @__PURE__ */ e(z, {})
396
387
  }
397
388
  ) }),
398
- /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
399
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(c, { children: "Add Document Modal" }) })
389
+ /* @__PURE__ */ e($, { sx: { mt: 2 } }),
390
+ /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(i, { children: "Add Document Modal" }) })
400
391
  ]
401
392
  }
402
393
  ),
403
394
  /* @__PURE__ */ t(
404
- L,
395
+ F,
405
396
  {
406
397
  open: !!y,
407
398
  fullWidth: !0,
408
- onClose: () => s(J()),
399
+ onClose: () => l(J()),
409
400
  children: [
410
- /* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
401
+ /* @__PURE__ */ e(M, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
411
402
  T,
412
403
  {
413
404
  "aria-label": "close",
414
- onClick: () => s(J()),
405
+ onClick: () => l(J()),
415
406
  sx: {
416
407
  position: "absolute",
417
408
  right: 8,
418
409
  top: 8,
419
410
  color: "#16359D"
420
411
  },
421
- children: /* @__PURE__ */ e(F, {})
412
+ children: /* @__PURE__ */ e(z, {})
422
413
  }
423
414
  ) }),
424
- /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
425
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ t(c, { children: [
415
+ /* @__PURE__ */ e($, { sx: { mt: 2 } }),
416
+ /* @__PURE__ */ e(L, { children: /* @__PURE__ */ t(i, { children: [
426
417
  /* @__PURE__ */ e(a, { variant: "h5", mb: 3, children: "Front Image" }),
427
418
  /* @__PURE__ */ e(
428
419
  "img",
429
420
  {
430
- className: i["video-box-inner-content"],
421
+ className: c["video-box-inner-content"],
431
422
  src: "data:image/jpeg;base64," + y,
432
423
  alt: "Front"
433
424
  }
434
425
  ),
435
- m && /* @__PURE__ */ t(v, { children: [
426
+ d && /* @__PURE__ */ t(v, { children: [
436
427
  /* @__PURE__ */ e(a, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
437
428
  /* @__PURE__ */ e(
438
429
  "img",
439
430
  {
440
- className: i["video-box-inner-content"],
441
- src: "data:image/jpeg;base64," + m,
431
+ className: c["video-box-inner-content"],
432
+ src: "data:image/jpeg;base64," + d,
442
433
  alt: "Back"
443
434
  }
444
435
  )
@@ -448,14 +439,14 @@ const Ne = () => ({
448
439
  }
449
440
  ),
450
441
  /* @__PURE__ */ t(
451
- L,
442
+ F,
452
443
  {
453
444
  fullWidth: !0,
454
445
  open: K,
455
- onClose: _,
456
- TransitionComponent: se,
446
+ onClose: A,
447
+ TransitionComponent: de,
457
448
  children: [
458
- /* @__PURE__ */ t(c, { className: i["asset-header"], children: [
449
+ /* @__PURE__ */ t(i, { className: c["asset-header"], children: [
459
450
  /* @__PURE__ */ e(
460
451
  T,
461
452
  {
@@ -480,19 +471,19 @@ const Ne = () => ({
480
471
  T,
481
472
  {
482
473
  "aria-label": "close",
483
- onClick: _,
484
- className: i["asset-close-btn"],
485
- children: /* @__PURE__ */ e(F, {})
474
+ onClick: A,
475
+ className: c["asset-close-btn"],
476
+ children: /* @__PURE__ */ e(z, {})
486
477
  }
487
478
  )
488
479
  ] }),
489
- /* @__PURE__ */ e(z, { sx: { padding: "20px 45px" }, dividers: !0, children: {
480
+ /* @__PURE__ */ e(L, { sx: { padding: "20px 45px" }, dividers: !0, children: {
490
481
  1: /* @__PURE__ */ e(
491
482
  Re,
492
483
  {
493
484
  showAlertMessage: o,
494
485
  documentName: U,
495
- setDocumentName: Q,
486
+ setDocumentName: q,
496
487
  setDocumentScreen: S
497
488
  }
498
489
  ),
@@ -502,8 +493,8 @@ const Ne = () => ({
502
493
  showAlertMessage: o,
503
494
  setDocumentScreen: S,
504
495
  documentFile: R,
505
- setDocumentFile: B,
506
- uploadDocument: q,
496
+ setDocumentFile: _,
497
+ uploadDocument: G,
507
498
  uploadLoader: k
508
499
  }
509
500
  ),
@@ -513,8 +504,8 @@ const Ne = () => ({
513
504
  showAlertMessage: o,
514
505
  setDocumentScreen: S,
515
506
  documentFile: R,
516
- setDocumentFile: B,
517
- uploadDocument: q,
507
+ setDocumentFile: _,
508
+ uploadDocument: G,
518
509
  uploadLoader: k
519
510
  }
520
511
  )
@@ -525,5 +516,5 @@ const Ne = () => ({
525
516
  ] });
526
517
  };
527
518
  export {
528
- at as default
519
+ Xe as default
529
520
  };