everest-npm-features 0.0.26 → 0.0.27

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 (218) hide show
  1. package/dist/{Alert-CbQZ8Nii.js → Alert-CUoIVlUd.js} +8 -7
  2. package/dist/{ArrowBack-BoYSBb8u.js → ArrowBack-BV158RTp.js} +1 -1
  3. package/dist/Avatar-CwczQLPi.js +280 -0
  4. package/dist/{Backdrop-CJBRZv_z.js → Backdrop-yR8IRnFX.js} +1 -1
  5. package/dist/{Box-B12x52NC.js → Box-BwKpr_VI.js} +1 -1
  6. package/dist/{Button-C57IMamW.js → Button-tAfK4lud.js} +13 -12
  7. package/dist/{ButtonBase-DugIO1pR.js → ButtonBase-CaH152Zd.js} +1 -1
  8. package/dist/{Cancel-D1JNu4Hj.js → Cancel-BoEk0xRy.js} +1 -1
  9. package/dist/{CardContent-CbObWW6t.js → CardContent-ZS4vlcvi.js} +2 -2
  10. package/dist/{CircularProgress-t8uGhLMo.js → CircularProgress-Yx712vpT.js} +7 -6
  11. package/dist/{Close-jnEgOCZv.js → Close-B_8kEwSt.js} +1 -1
  12. package/dist/{Close-VV7zb3cu.js → Close-CFg1QB5M.js} +1 -1
  13. package/dist/{Container-B3Af6Sc3.js → Container-CBPBT38n.js} +2 -2
  14. package/dist/{ContentCopy-Ufwoeeov.js → ContentCopy-D4Eg7Nkm.js} +1 -1
  15. package/dist/DefaultPropsProvider-4P82EuVL.js +232 -0
  16. package/dist/{Delete-TCARcVtU.js → Delete-BGp4FPdE.js} +1 -1
  17. package/dist/{DialogContent-DzidtXui.js → DialogContent-_gvZOy18.js} +13 -12
  18. package/dist/{DialogTitle-Bg61Hr7M.js → DialogTitle-dq22bYlF.js} +3 -3
  19. package/dist/{Divider-Dy5hKfey.js → Divider-CIL55YSC.js} +10 -9
  20. package/dist/{ErrorOutline-CI_ys3Zo.js → ErrorOutline-BykbFh0r.js} +1 -1
  21. package/dist/{FileDownload-BcYF17B0.js → FileDownload-BSy7tA6m.js} +1 -1
  22. package/dist/{FilledInput-DrGeWgue.js → FilledInput-QaJVaeIX.js} +12 -14
  23. package/dist/{FormControl-DeeQCuu5.js → FormControl-H4D1Z6Ov.js} +1 -1
  24. package/dist/{FormControlLabel-DVnrJkC8.js → FormControlLabel-BvI1nkJ1.js} +7 -6
  25. package/dist/{Grid-BXyV_lM8.js → Grid-CPkjiKqX.js} +2 -2
  26. package/dist/{IconButton-eWRhV6Q9.js → IconButton-WneJM4uP.js} +10 -9
  27. package/dist/{Info-D2UkGxyK.js → Info-0vSsl6Bm.js} +1 -1
  28. package/dist/{InputAdornment-BKuUMfPj.js → InputAdornment-Bqn4-Kns.js} +6 -5
  29. package/dist/{Link-Cm4BkRHO.js → Link-DhdK4VfZ.js} +6 -5
  30. package/dist/{ListItemIcon-GKRFb1Gr.js → ListItemIcon-D657XWHf.js} +15 -14
  31. package/dist/Menu-BAFJBGa-.js +1238 -0
  32. package/dist/{MenuItem-CeCt0bfa.js → MenuItem-ByxiQtY2.js} +36 -35
  33. package/dist/{Modal-csf3Y8d2.js → Modal-DEfOsvWK.js} +16 -15
  34. package/dist/{Paper-CnStNE24.js → Paper-jx_cZiyU.js} +27 -26
  35. package/dist/{PlayArrow-DRCGjsrx.js → PlayArrow-BCWGWaUq.js} +1 -1
  36. package/dist/{Popper-pPBEFLi4.js → Popper-B1He9eVi.js} +1 -1
  37. package/dist/{RadioGroup-KiyYjXaT.js → RadioGroup-_-H2gvH2.js} +3 -3
  38. package/dist/Select-CGei0bav.js +1885 -0
  39. package/dist/{Stack-CcR5RCg8.js → Stack-DH-Nxf9q.js} +2 -2
  40. package/dist/{SwitchBase-CHO5ZceN.js → SwitchBase-BDUzpdBf.js} +2 -2
  41. package/dist/{TextField-q_SeLeNd.js → TextField-DmiK1A_S.js} +17 -16
  42. package/dist/{Typography-DBlMiOti.js → Typography-BQDN44CM.js} +16 -15
  43. package/dist/assets/documents.css +1 -1
  44. package/dist/assets/index10.css +1 -1
  45. package/dist/assets/index3.css +1 -1
  46. package/dist/assets/index4.css +1 -1
  47. package/dist/assets/styles2.css +1 -1
  48. package/dist/assets/styles3.css +1 -1
  49. package/dist/assets/tokenRow.css +1 -1
  50. package/dist/assets/withThemeProvider.css +1 -1
  51. package/dist/{auth-Bf9zHZ-x.js → auth-SxpGte_3.js} +1 -1
  52. package/dist/{bank-BC4YNBRb.js → bank-DyVf4Uoo.js} +6 -6
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +13 -12
  54. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  55. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  58. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  59. package/dist/components/RocketRamp/Player/Dashboard/balance.js +6 -6
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +16 -14
  61. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  62. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  63. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  64. package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
  65. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
  70. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  71. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  72. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  73. package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
  74. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  75. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  76. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  77. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  78. package/dist/components/RocketRamp/Store/Dashboard/balance.js +5 -5
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +5 -5
  81. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  82. package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  85. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  86. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  87. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  88. package/dist/components/Shared/FullKyc/index.js +4 -4
  89. package/dist/components/Shared/FullKyc/pep.js +9 -9
  90. package/dist/components/Shared/FullKyc/personalDetails.js +10 -9
  91. package/dist/components/Shared/FullKyc/userInfo.js +15 -14
  92. package/dist/components/Shared/HistoryItem/index.js +64 -65
  93. package/dist/components/Shared/Incode/index.js +5 -5
  94. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  95. package/dist/components/Shared/loader.js +2 -2
  96. package/dist/components/Shared/tooltip.js +2 -2
  97. package/dist/components/Wallet/Account/createIban.js +76 -85
  98. package/dist/components/Wallet/Account/iban.d.ts +5 -1
  99. package/dist/components/Wallet/Account/iban.js +223 -25
  100. package/dist/components/Wallet/Account/index.js +144 -149
  101. package/dist/components/Wallet/Account/sendIban.js +25 -27
  102. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  103. package/dist/components/Wallet/Buy/form.js +21 -20
  104. package/dist/components/Wallet/Buy/index.js +6 -6
  105. package/dist/components/Wallet/Deposit/index.js +25 -24
  106. package/dist/components/Wallet/EnterpriseKyc/edd.js +23 -22
  107. package/dist/components/Wallet/EnterpriseKyc/index.js +15 -14
  108. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  109. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  110. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  111. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  112. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +26 -25
  113. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +30 -28
  114. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/verify.js +8 -7
  116. package/dist/components/Wallet/History/index.js +111 -112
  117. package/dist/components/Wallet/Home/index.d.ts +5 -0
  118. package/dist/components/Wallet/Home/index.js +20 -0
  119. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +18 -17
  120. package/dist/components/Wallet/Portfolio/dropdown.d.ts +14 -0
  121. package/dist/components/Wallet/Portfolio/dropdown.js +76 -0
  122. package/dist/components/Wallet/Portfolio/index.js +309 -304
  123. package/dist/components/Wallet/Portfolio/tokenRow.js +5 -7
  124. package/dist/components/Wallet/Profile/documents.js +18 -18
  125. package/dist/components/Wallet/Profile/index.js +152 -419
  126. package/dist/components/Wallet/Receive/index.js +10 -10
  127. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -8
  128. package/dist/components/Wallet/Sell/form.js +19 -19
  129. package/dist/components/Wallet/Sell/index.js +6 -6
  130. package/dist/components/Wallet/Send/index.js +20 -19
  131. package/dist/components/Wallet/Shared/Auth/emailForm.js +14 -13
  132. package/dist/components/Wallet/Shared/Auth/otpForm.d.ts +1 -1
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +98 -88
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +10 -12
  136. package/dist/components/Wallet/Shared/Container/index.d.ts +7 -4
  137. package/dist/components/Wallet/Shared/Container/index.js +62 -26
  138. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  139. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  140. package/dist/components/Wallet/Shared/Order/paymentButton.d.ts +2 -0
  141. package/dist/components/Wallet/Shared/Order/paymentButton.js +46 -0
  142. package/dist/components/Wallet/Shared/Order/types.d.ts +2 -0
  143. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  144. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +13 -11
  145. package/dist/components/Wallet/Shared/addBank.js +44 -48
  146. package/dist/components/Wallet/Shared/appButton.d.ts +1 -1
  147. package/dist/components/Wallet/Shared/appButton.js +77 -57
  148. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  149. package/dist/components/Wallet/Shared/button.js +1 -1
  150. package/dist/components/Wallet/Shared/connectPlaidBank.d.ts +5 -1
  151. package/dist/components/Wallet/Shared/connectPlaidBank.js +39 -38
  152. package/dist/components/Wallet/Shared/inputField.js +1 -1
  153. package/dist/components/Wallet/Shared/noData.js +7 -7
  154. package/dist/components/Wallet/Shared/pin.js +4 -4
  155. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  156. package/dist/components/Wallet/Shared/step.js +2 -2
  157. package/dist/components/Wallet/SignIn/index.js +2 -2
  158. package/dist/components/Wallet/SignUp/index.js +2 -2
  159. package/dist/components/Wallet/SignUp/terms.js +4 -4
  160. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  161. package/dist/components/Wallet/Stake/id/index.js +12 -12
  162. package/dist/components/Wallet/Stake/index.js +30 -29
  163. package/dist/components/Wallet/Swap/index.js +112 -116
  164. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  165. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  166. package/dist/components/Wallet/Withdraw/confirmTransaction.js +9 -9
  167. package/dist/components/Wallet/Withdraw/form.js +19 -18
  168. package/dist/components/Wallet/Withdraw/index.js +5 -5
  169. package/dist/{constants-CsMPRK0U.js → constants-BF50a6s-.js} +30 -30
  170. package/dist/context/dialogContext.d.ts +6 -0
  171. package/dist/context/dialogContext.js +13 -0
  172. package/dist/{createSvgIcon-CH41ZVFw.js → createSvgIcon-BgBEJXMh.js} +15 -14
  173. package/dist/cryptoAssets-Dck03SPI.js +16 -0
  174. package/dist/{dividerClasses-DnbM--4s.js → dividerClasses-BVK5cNr7.js} +1 -1
  175. package/dist/documents-Sh6RH769.js +549 -0
  176. package/dist/{fiatAssets-DVHfFafS.js → fiatAssets-CTIJw9N4.js} +1 -1
  177. package/dist/hooks/useDialog/index.js +35 -38
  178. package/dist/hooks/useRrDialog/index.js +4 -4
  179. package/dist/hooks/useSnackBar.js +12 -11
  180. package/dist/index-BRwse7X5.js +631 -0
  181. package/dist/{index-DxX5Mo0o.js → index-CWzs4-wZ.js} +18 -18
  182. package/dist/{index-DZ__IpVI.js → index-CbogTdwW.js} +25 -24
  183. package/dist/{index-C9uGghB8.js → index-CmJNKC9m.js} +26 -26
  184. package/dist/{index-VE9lYjq3.js → index-D8j7wPDM.js} +15 -14
  185. package/dist/{index-eEYiDlpX.js → index-GxLtFwhs.js} +228 -230
  186. package/dist/{index-f15o1nhn.js → index-v4KC1K_V.js} +2 -2
  187. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  188. package/dist/{kyc-BweeW6k9.js → kyc-kWxxF1vI.js} +1 -1
  189. package/dist/main.d.ts +7 -0
  190. package/dist/main.js +66 -59
  191. package/dist/memoTheme-BUUB1UEO.js +15 -0
  192. package/dist/{order-DmTHC7ZG.js → order-D-FBHreS.js} +1 -1
  193. package/dist/{pep-C5Ge-kU4.js → pep-D8bFjgpy.js} +19 -18
  194. package/dist/{radioButton-Bgy7Kxxo.js → radioButton-CBcYX40o.js} +8 -7
  195. package/dist/{stake-B150utJI.js → stake-mS8fdG8g.js} +1 -1
  196. package/dist/styles.module-B-t8vvWh.js +31 -0
  197. package/dist/styles.module-verVx4pE.js +8 -0
  198. package/dist/tokenRow-DBnoUm0z.js +186 -0
  199. package/dist/{tooltip-DGtrVEzU.js → tooltip-Dv3Lfsa2.js} +5 -4
  200. package/dist/{useThemeProps-lRuJRcRX.js → useThemeProps-DLhzJP-y.js} +1 -1
  201. package/dist/util/constants.d.ts +5 -0
  202. package/dist/util/constants.js +88 -83
  203. package/dist/{wallet-DDW5KCHp.js → wallet-BTc5u8j2.js} +1 -1
  204. package/package.json +1 -1
  205. package/dist/ArrowDropDown-BC_iEASy.js +0 -8
  206. package/dist/ArrowRight-rYkfGJuF.js +0 -8
  207. package/dist/CheckCircle-CyxKX1TY.js +0 -8
  208. package/dist/DefaultPropsProvider-B2njZVNv.js +0 -242
  209. package/dist/Select-Chubcks_.js +0 -3108
  210. package/dist/assets/iban.css +0 -1
  211. package/dist/assets/index11.css +0 -1
  212. package/dist/cryptoAssets-CzNDY1j6.js +0 -16
  213. package/dist/documents-CEeV8SyW.js +0 -569
  214. package/dist/iban-DRT7i0vb.js +0 -275
  215. package/dist/index-BB3__zW3.js +0 -644
  216. package/dist/styles.module-BFHktEw2.js +0 -30
  217. package/dist/styles.module-DJk7Pf0F.js +0 -10
  218. package/dist/tokenRow-X6vlp1LH.js +0 -198
@@ -1 +0,0 @@
1
- ._container_kzn77_1{display:flex;align-items:center;margin-top:130px}._inner-container_kzn77_13{background:#fff;width:100%;border-radius:4px;filter:drop-shadow(0px 2px 15px rgba(0,0,0,.05))}._heading_kzn77_27{overflow:hidden;text-overflow:ellipsis;margin-top:5px;color:#16359d}._account-item_kzn77_41{padding:13px 30px;margin:19px 0;background:#fbfbfb;box-shadow:0 2px 4px #0003;border-radius:7px;display:flex;justify-content:center;align-items:center;flex-shrink:0;color:#16359d;position:relative}._account-item-text_kzn77_69{overflow:hidden;text-overflow:ellipsis;margin-top:5px!important}._primary-color_kzn77_81{color:#16359d}._secondary-color_kzn77_89{color:#a1a1a1!important}._info-icon_kzn77_97{margin-bottom:-15px!important;top:-9px}._remove-icon_kzn77_107{position:absolute;top:-20px;right:-20px;color:#f44336}._delete-disable_kzn77_121{background:#16359d;border-radius:100px;color:#fff;font-weight:700;padding:10px 12px}._confirm-edit_kzn77_137{background:linear-gradient(180deg,#fff -34.21%,#44dcb7 342.37%);border-radius:100px;color:#000;font-weight:700;padding:10px 12px}._confirm-buy-edit_kzn77_153{background:linear-gradient(180deg,#fff -34.21%,#44dcb7 342.37%)!important;border-radius:100px!important;color:#000!important;font-weight:700!important;padding:10px 12px!important}
@@ -1 +0,0 @@
1
- ._menu-item_1r9uh_1{padding:13px 30px;margin:19px 28px;background:#fbfbfb;box-shadow:0 2px 4px #0003;border-radius:7px;cursor:pointer;display:flex;justify-content:center;align-items:center;flex-shrink:0;color:#16359d}._menu-item_1r9uh_1:hover{color:#fff;background:linear-gradient(89.98deg,#35e0f4 .02%,#33d7f0 6.97%,#2ebde4 18.55%,#2594d0 33.31%,#195bb6 50.5%,#1132a3 61.64%,#1132a3 99.98%)}._name_1r9uh_57{font-size:18px;font-weight:500;line-height:25px;color:#1a1a1a;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -1,16 +0,0 @@
1
- import { T as a, W as s, X as e } from "./constants-CsMPRK0U.js";
2
- const T = (t) => ({
3
- type: a,
4
- payload: t
5
- }), p = (t) => ({
6
- type: s,
7
- payload: t
8
- }), A = (t) => ({
9
- type: e,
10
- payload: t
11
- });
12
- export {
13
- p as a,
14
- A as b,
15
- T as f
16
- };
@@ -1,569 +0,0 @@
1
- import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
2
- import { useState as g, useEffect as U, useRef as Y } from "react";
3
- import { A as $ } from "./ArrowRight-rYkfGJuF.js";
4
- import { C as A } from "./Close-VV7zb3cu.js";
5
- import { D as oe } from "./Delete-TCARcVtU.js";
6
- import { C as re } from "./Cancel-D1JNu4Hj.js";
7
- import ie from "./components/Wallet/Shared/inputField.js";
8
- import L from "./components/Wallet/Shared/step.js";
9
- import { W as ae } from "./react-webcam-B3cXh1XT.js";
10
- import { A as se } from "./ArrowBack-BoYSBb8u.js";
11
- import ce from "./components/Shared/transition.js";
12
- import { getDocName as le } from "./util/functions.js";
13
- import { a as de, u as me } from "./react-redux-C7I9-1M6.js";
14
- import { ac as he, ad as fe, ae as ue, af as pe, ag as ge, ah as _e } from "./constants-CsMPRK0U.js";
15
- import { e as xe } from "./index-f15o1nhn.js";
16
- import { DELETE_ICON as De } from "./util/constants.js";
17
- import { useDialog as be } from "./hooks/useDialog/index.js";
18
- import { B as Ce } from "./Backdrop-CJBRZv_z.js";
19
- import { C as k } from "./CircularProgress-t8uGhLMo.js";
20
- import { T as m } from "./Typography-DBlMiOti.js";
21
- import { B as f } from "./Button-C57IMamW.js";
22
- import { B as a } from "./Box-B12x52NC.js";
23
- import { D as z, a as F } from "./DialogContent-DzidtXui.js";
24
- import { D as V } from "./DialogTitle-Bg61Hr7M.js";
25
- import { I as j } from "./IconButton-eWRhV6Q9.js";
26
- import { D as H } from "./Divider-Dy5hKfey.js";
27
- import { G as h } from "./Grid-BXyV_lM8.js";
28
- import './assets/documents.css';const Ne = () => ({
29
- type: fe
30
- }), ve = (o) => ({
31
- type: pe,
32
- payload: o
33
- }), Ee = (o) => ({
34
- type: ge,
35
- payload: o
36
- }), J = () => ({
37
- type: he
38
- }), we = (o) => ({
39
- type: _e,
40
- payload: o
41
- }), Se = (o) => ({
42
- type: ue,
43
- payload: o
44
- }), je = "_container_1j7fs_1", ye = "_heading_1j7fs_27", Ie = "_sBtn_1j7fs_89", ke = "_twitterCancelBtn_1j7fs_491", r = {
45
- container: je,
46
- "inner-container": "_inner-container_1j7fs_13",
47
- heading: ye,
48
- "profile-feat-btn": "_profile-feat-btn_1j7fs_41",
49
- "ref-btn": "_ref-btn_1j7fs_65",
50
- sBtn: Ie,
51
- "doc-video-box": "_doc-video-box_1j7fs_133",
52
- "image-corner-color": "_image-corner-color_1j7fs_209",
53
- "video-box-inner-content": "_video-box-inner-content_1j7fs_223",
54
- "menu-item": "_menu-item_1j7fs_233",
55
- "remove-icon": "_remove-icon_1j7fs_289",
56
- "delete-disable": "_delete-disable_1j7fs_303",
57
- "confirm-edit": "_confirm-edit_1j7fs_319",
58
- "asset-header": "_asset-header_1j7fs_343",
59
- "asset-close-btn": "_asset-close-btn_1j7fs_381",
60
- "dialog-container": "_dialog-container_1j7fs_395",
61
- "confirm-dialog": "_confirm-dialog_1j7fs_409",
62
- "confirm-dialog-title": "_confirm-dialog-title_1j7fs_417",
63
- "tweet-text-parent": "_tweet-text-parent_1j7fs_429",
64
- "tweet-disable-text": "_tweet-disable-text_1j7fs_455",
65
- "tweet-text-area": "_tweet-text-area_1j7fs_473",
66
- twitterCancelBtn: ke
67
- }, Be = ({
68
- showAlertMessage: o,
69
- documentName: d,
70
- setDocumentName: _,
71
- setDocumentScreen: u
72
- }) => /* @__PURE__ */ t(a, { className: "text-center", children: [
73
- /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 1 }),
74
- /* @__PURE__ */ e(m, { className: "secondary-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Name your document" }) }),
75
- /* @__PURE__ */ e(
76
- ie,
77
- {
78
- label: "Document Name",
79
- value: d,
80
- onChangeHandler: (i) => _(i)
81
- }
82
- ),
83
- /* @__PURE__ */ e(
84
- f,
85
- {
86
- sx: { mt: 4, mb: 4 },
87
- onClick: () => {
88
- if (!d)
89
- return o({ message: "Please provide the document name" }), !1;
90
- u(2);
91
- },
92
- className: "wallet-btn",
93
- variant: "contained",
94
- disabled: !d,
95
- fullWidth: !0,
96
- children: /* @__PURE__ */ e("strong", { children: "Next" })
97
- }
98
- )
99
- ] }), Te = ({
100
- showAlertMessage: o,
101
- uploadLoader: d,
102
- uploadDocument: _,
103
- documentFile: u,
104
- setDocumentFile: s,
105
- setDocumentScreen: i
106
- }) => {
107
- const c = Y(null), [x, p] = g("Choose File"), D = () => {
108
- if (!u)
109
- return o({ message: "Please provide the document" }), !1;
110
- _();
111
- }, b = (l) => {
112
- if (l.target.files && !l.target.files[0].name.match(/.(jpg|jpeg|png)$/i))
113
- o({ message: "Please provide a valid file" });
114
- else if (l.target.files && l.target.files[0]) {
115
- p(l.target.files[0].name);
116
- let C = new FileReader();
117
- C.onload = (y) => {
118
- var E;
119
- const v = (E = y.target) == null ? void 0 : E.result;
120
- if (typeof v == "string") {
121
- const B = v.split(/[,]/);
122
- s(B[1]);
123
- }
124
- }, C.readAsDataURL(l.target.files[0]);
125
- }
126
- };
127
- return /* @__PURE__ */ t(a, { className: "text-center", children: [
128
- /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
129
- /* @__PURE__ */ e(m, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
130
- /* @__PURE__ */ t(h, { mt: 2, container: !0, spacing: 2, children: [
131
- /* @__PURE__ */ e(h, { size: 6, children: /* @__PURE__ */ e(
132
- f,
133
- {
134
- onClick: () => i(3),
135
- variant: "contained",
136
- className: r.sBtn,
137
- fullWidth: !0,
138
- children: "Use Camera"
139
- }
140
- ) }),
141
- /* @__PURE__ */ e(h, { size: 6, children: /* @__PURE__ */ e(
142
- f,
143
- {
144
- onClick: () => c.current && c.current.click(),
145
- sx: { overflow: "hidden" },
146
- variant: "contained",
147
- className: r.sBtn,
148
- fullWidth: !0,
149
- children: x
150
- }
151
- ) })
152
- ] }),
153
- /* @__PURE__ */ e(
154
- "input",
155
- {
156
- ref: c,
157
- onChange: b,
158
- accept: ".jpg,.jpeg,.png,.pdf,",
159
- type: "file",
160
- hidden: !0
161
- }
162
- ),
163
- d ? /* @__PURE__ */ t(a, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
164
- /* @__PURE__ */ e(k, { size: 30, color: "inherit" }),
165
- /* @__PURE__ */ t(m, { variant: "h5", sx: { fontWeight: "bold" }, children: [
166
- "Processing...",
167
- /* @__PURE__ */ e("br", {}),
168
- "one moment please"
169
- ] })
170
- ] }) : /* @__PURE__ */ e(
171
- f,
172
- {
173
- sx: { mt: 4, mb: 4 },
174
- onClick: D,
175
- className: "wallet-btn",
176
- variant: "contained",
177
- disabled: !u,
178
- fullWidth: !0,
179
- children: /* @__PURE__ */ e("strong", { children: "Submit" })
180
- }
181
- )
182
- ] });
183
- }, Re = ({
184
- showAlertMessage: o,
185
- documentFile: d,
186
- setDocumentFile: _,
187
- uploadDocument: u,
188
- uploadLoader: s
189
- }) => {
190
- const i = Y(null), c = {
191
- audio: !1,
192
- height: {
193
- min: 720
194
- },
195
- width: {
196
- ideal: 1280
197
- },
198
- aspectRatio: 1.333,
199
- // 4:3
200
- facingMode: "user",
201
- frameRate: {
202
- ideal: 30,
203
- max: 30
204
- }
205
- }, [x, p] = g(""), D = () => {
206
- if (i.current) {
207
- const l = i.current.getScreenshot(), C = l.split(/[,]/);
208
- _(C[1]), p(l);
209
- }
210
- }, b = () => {
211
- if (!x)
212
- return o({
213
- message: "Please take the photo of the document"
214
- }), !1;
215
- u();
216
- };
217
- return /* @__PURE__ */ t(a, { className: "text-center", children: [
218
- /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
219
- x ? /* @__PURE__ */ t(N, { children: [
220
- /* @__PURE__ */ t(
221
- a,
222
- {
223
- className: `${r["doc-video-box"]} ${r["image-corner-color"]}`,
224
- children: [
225
- /* @__PURE__ */ e("span", {}),
226
- /* @__PURE__ */ e(
227
- "img",
228
- {
229
- className: r["video-box-inner-content"],
230
- src: x,
231
- alt: "doc"
232
- }
233
- )
234
- ]
235
- }
236
- ),
237
- s ? /* @__PURE__ */ t(a, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
238
- /* @__PURE__ */ e(k, { size: 30, color: "inherit" }),
239
- /* @__PURE__ */ t(m, { variant: "h5", sx: { fontWeight: "bold" }, children: [
240
- "Processing...",
241
- /* @__PURE__ */ e("br", {}),
242
- "one moment please"
243
- ] })
244
- ] }) : /* @__PURE__ */ t(N, { children: [
245
- /* @__PURE__ */ e(
246
- f,
247
- {
248
- className: "wallet-btn",
249
- onClick: b,
250
- sx: { mt: 6 },
251
- variant: "contained",
252
- disabled: !d,
253
- fullWidth: !0,
254
- children: /* @__PURE__ */ e("strong", { children: "Submit" })
255
- }
256
- ),
257
- /* @__PURE__ */ e(
258
- f,
259
- {
260
- className: r.sBtn,
261
- onClick: () => p(""),
262
- sx: { mt: 2 },
263
- fullWidth: !0,
264
- children: /* @__PURE__ */ e("strong", { children: "Retake Photo" })
265
- }
266
- )
267
- ] })
268
- ] }) : /* @__PURE__ */ t(N, { children: [
269
- /* @__PURE__ */ t(a, { className: r["doc-video-box"], children: [
270
- /* @__PURE__ */ e("span", {}),
271
- /* @__PURE__ */ e(
272
- ae,
273
- {
274
- className: r["video-box-inner-content"],
275
- audio: !1,
276
- ref: i,
277
- screenshotFormat: "image/jpeg",
278
- videoConstraints: c,
279
- minScreenshotHeight: c.height.min,
280
- minScreenshotWidth: c.width.ideal,
281
- screenshotQuality: 1
282
- }
283
- )
284
- ] }),
285
- /* @__PURE__ */ e(
286
- f,
287
- {
288
- className: "wallet-btn",
289
- onClick: D,
290
- sx: { mt: 8 },
291
- variant: "contained",
292
- fullWidth: !0,
293
- children: /* @__PURE__ */ e("strong", { children: "Take Photo" })
294
- }
295
- )
296
- ] })
297
- ] });
298
- }, st = ({ showAlertMessage: o, identityDocs: d }) => {
299
- const { openDialog: _, ConfirmDialog: u } = be(), s = de(), i = me(xe), c = i.data, x = i.loader, p = i.message, D = i.error, b = i.preview.front, l = i.preview.back, C = i.preview.loader, y = i.uploadLoader, [v, E] = g(!1), [B, O] = g(!1), [T, w] = g(1), [K, Q] = g(!1), [R, q] = g(""), [I, P] = g("");
300
- U(() => {
301
- D && o({ message: D });
302
- }, [D]), U(() => {
303
- p && (o({ message: p, type: "success" }), E(!1), W());
304
- }, [p]);
305
- const G = () => {
306
- if (!R)
307
- return o({ message: "Please provide the document name" }), !1;
308
- if (!I)
309
- return o({ message: "Please provide the document" }), !1;
310
- s(
311
- Se({
312
- filename: R.trim(),
313
- content: I
314
- })
315
- );
316
- }, X = () => {
317
- s(Ne());
318
- };
319
- U(() => {
320
- X();
321
- }, []);
322
- const Z = (n) => {
323
- s(ve(n));
324
- }, ee = (n) => {
325
- s(Ee(n));
326
- }, te = (n) => {
327
- _({
328
- icon: De,
329
- height: "450px",
330
- title: "Are you sure you want to delete?",
331
- message: "This action cannot be undone.",
332
- onConfirm: () => {
333
- ne(n);
334
- },
335
- cancelButtonShow: !0
336
- });
337
- }, ne = (n) => {
338
- s(we(n));
339
- }, M = ({ data: n, type: S }) => S === "identity" ? /* @__PURE__ */ e(
340
- a,
341
- {
342
- className: r["menu-item"],
343
- onClick: () => n.documentId && Z(n.documentId),
344
- children: /* @__PURE__ */ t(h, { container: !0, sx: { width: "100%" }, children: [
345
- /* @__PURE__ */ e(h, { size: 10, className: "content-center", children: /* @__PURE__ */ e(a, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e("p", { className: r.heading, children: /* @__PURE__ */ e("strong", { children: n.documentType && le(n.documentType) }) }) }) }),
346
- /* @__PURE__ */ e(h, { size: 2, children: /* @__PURE__ */ e(m, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e($, { sx: { fontSize: "30px", color: "#195BB6" } }) }) })
347
- ] })
348
- }
349
- ) : /* @__PURE__ */ t(a, { sx: { position: "relative" }, className: r["menu-item"], children: [
350
- v && /* @__PURE__ */ e(
351
- j,
352
- {
353
- className: r["remove-icon"],
354
- onClick: () => te(n.filename),
355
- children: /* @__PURE__ */ e(re, {})
356
- }
357
- ),
358
- /* @__PURE__ */ t(
359
- h,
360
- {
361
- onClick: () => ee(n.filename),
362
- container: !0,
363
- sx: { width: "100%" },
364
- children: [
365
- /* @__PURE__ */ e(h, { size: 10, className: "content-center", children: /* @__PURE__ */ e(a, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e("p", { className: r.heading, children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
366
- /* @__PURE__ */ e(h, { size: 2, children: /* @__PURE__ */ e(m, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e($, { sx: { fontSize: "30px", color: "#195BB6" } }) }) })
367
- ]
368
- }
369
- )
370
- ] }), W = () => {
371
- q(""), P(""), w(1), Q(!1);
372
- };
373
- return /* @__PURE__ */ t(N, { children: [
374
- /* @__PURE__ */ e(u, {}),
375
- /* @__PURE__ */ e(
376
- Ce,
377
- {
378
- sx: {
379
- color: "#fff",
380
- zIndex: (n) => n.zIndex.drawer + 1e3
381
- },
382
- open: C,
383
- children: /* @__PURE__ */ e(k, { color: "inherit" })
384
- }
385
- ),
386
- /* @__PURE__ */ e(m, { className: r.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
387
- c.length > 0 && /* @__PURE__ */ t(
388
- f,
389
- {
390
- className: `${v ? r["delete-disable"] : r["confirm-edit"]} normal-text`,
391
- sx: { mt: 3, mb: 3 },
392
- variant: "contained",
393
- onClick: () => E((n) => !n),
394
- children: [
395
- /* @__PURE__ */ e(oe, {}),
396
- "Delete"
397
- ]
398
- }
399
- ),
400
- x ? /* @__PURE__ */ e(a, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(k, {}) }) : /* @__PURE__ */ t(N, { children: [
401
- d && d.map((n, S) => /* @__PURE__ */ e(M, { data: n, type: "identity" }, S)),
402
- c && c.map((n, S) => /* @__PURE__ */ e(M, { data: n, type: "normal" }, S)),
403
- !d && c.length === 0 && /* @__PURE__ */ e(m, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
404
- ] }),
405
- /* @__PURE__ */ e(
406
- f,
407
- {
408
- sx: { mt: 4 },
409
- onClick: () => Q(!0),
410
- className: "wallet-btn",
411
- variant: "contained",
412
- fullWidth: !0,
413
- children: /* @__PURE__ */ e("strong", { children: "Add new document" })
414
- }
415
- ),
416
- /* @__PURE__ */ t(
417
- z,
418
- {
419
- open: B,
420
- fullWidth: !0,
421
- onClose: () => O(!1),
422
- children: [
423
- /* @__PURE__ */ e(V, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
424
- j,
425
- {
426
- "aria-label": "close",
427
- onClick: () => O(!1),
428
- sx: {
429
- position: "absolute",
430
- right: 8,
431
- top: 8,
432
- color: "#16359D"
433
- },
434
- children: /* @__PURE__ */ e(A, {})
435
- }
436
- ) }),
437
- /* @__PURE__ */ e(H, { sx: { mt: 2 } }),
438
- /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(a, { children: "Add Document Modal" }) })
439
- ]
440
- }
441
- ),
442
- /* @__PURE__ */ t(
443
- z,
444
- {
445
- open: !!b,
446
- fullWidth: !0,
447
- onClose: () => s(J()),
448
- children: [
449
- /* @__PURE__ */ e(V, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
450
- j,
451
- {
452
- "aria-label": "close",
453
- onClick: () => s(J()),
454
- sx: {
455
- position: "absolute",
456
- right: 8,
457
- top: 8,
458
- color: "#16359D"
459
- },
460
- children: /* @__PURE__ */ e(A, {})
461
- }
462
- ) }),
463
- /* @__PURE__ */ e(H, { sx: { mt: 2 } }),
464
- /* @__PURE__ */ e(F, { children: /* @__PURE__ */ t(a, { children: [
465
- /* @__PURE__ */ e(m, { variant: "h5", mb: 3, children: "Front Image" }),
466
- /* @__PURE__ */ e(
467
- "img",
468
- {
469
- className: r["video-box-inner-content"],
470
- src: "data:image/jpeg;base64," + b,
471
- alt: "Front"
472
- }
473
- ),
474
- l && /* @__PURE__ */ t(N, { children: [
475
- /* @__PURE__ */ e(m, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
476
- /* @__PURE__ */ e(
477
- "img",
478
- {
479
- className: r["video-box-inner-content"],
480
- src: "data:image/jpeg;base64," + l,
481
- alt: "Back"
482
- }
483
- )
484
- ] })
485
- ] }) })
486
- ]
487
- }
488
- ),
489
- /* @__PURE__ */ t(
490
- z,
491
- {
492
- fullWidth: !0,
493
- open: K,
494
- onClose: W,
495
- TransitionComponent: ce,
496
- children: [
497
- /* @__PURE__ */ t(a, { className: r["asset-header"], children: [
498
- /* @__PURE__ */ e(
499
- j,
500
- {
501
- "aria-label": "close",
502
- onClick: () => w(
503
- T - 1 <= 0 ? 1 : T - 1
504
- ),
505
- sx: { color: "#16359d", ml: "20px" },
506
- children: /* @__PURE__ */ e(se, {})
507
- }
508
- ),
509
- /* @__PURE__ */ e(
510
- m,
511
- {
512
- className: "secondary-text-color",
513
- variant: "subtitle1",
514
- component: "p",
515
- children: /* @__PURE__ */ e("strong", { children: "Add new document" })
516
- }
517
- ),
518
- /* @__PURE__ */ e(
519
- j,
520
- {
521
- "aria-label": "close",
522
- onClick: W,
523
- className: r["asset-close-btn"],
524
- children: /* @__PURE__ */ e(A, {})
525
- }
526
- )
527
- ] }),
528
- /* @__PURE__ */ e(F, { sx: { padding: "20px 45px" }, dividers: !0, children: {
529
- 1: /* @__PURE__ */ e(
530
- Be,
531
- {
532
- showAlertMessage: o,
533
- documentName: R,
534
- setDocumentName: q,
535
- setDocumentScreen: w
536
- }
537
- ),
538
- 2: /* @__PURE__ */ e(
539
- Te,
540
- {
541
- showAlertMessage: o,
542
- setDocumentScreen: w,
543
- documentFile: I,
544
- setDocumentFile: P,
545
- uploadDocument: G,
546
- uploadLoader: y
547
- }
548
- ),
549
- 3: /* @__PURE__ */ e(
550
- Re,
551
- {
552
- showAlertMessage: o,
553
- setDocumentScreen: w,
554
- documentFile: I,
555
- setDocumentFile: P,
556
- uploadDocument: G,
557
- uploadLoader: y
558
- }
559
- )
560
- }[T] })
561
- ]
562
- }
563
- )
564
- ] });
565
- };
566
- export {
567
- st as D,
568
- r as s
569
- };