everest-npm-features 0.0.26 → 0.0.28

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 (220) 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-DoHhqFQx.js} +11 -11
  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 +9 -9
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +9 -9
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +10 -10
  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 +15 -15
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +11 -11
  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/types.d.ts +1 -1
  92. package/dist/components/Shared/FullKyc/userInfo.js +15 -14
  93. package/dist/components/Shared/HistoryItem/index.js +64 -65
  94. package/dist/components/Shared/Incode/index.js +5 -5
  95. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  96. package/dist/components/Shared/loader.js +2 -2
  97. package/dist/components/Shared/tooltip.js +2 -2
  98. package/dist/components/Wallet/Account/createIban.js +76 -85
  99. package/dist/components/Wallet/Account/iban.d.ts +5 -1
  100. package/dist/components/Wallet/Account/iban.js +223 -25
  101. package/dist/components/Wallet/Account/index.js +144 -149
  102. package/dist/components/Wallet/Account/sendIban.js +25 -27
  103. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  104. package/dist/components/Wallet/Buy/form.js +21 -20
  105. package/dist/components/Wallet/Buy/index.js +6 -6
  106. package/dist/components/Wallet/Deposit/index.js +25 -24
  107. package/dist/components/Wallet/EnterpriseKyc/edd.js +23 -22
  108. package/dist/components/Wallet/EnterpriseKyc/index.js +83 -80
  109. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  110. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  111. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  112. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  113. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +26 -25
  114. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +30 -28
  115. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  116. package/dist/components/Wallet/EnterpriseKyc/verify.js +8 -7
  117. package/dist/components/Wallet/History/index.js +111 -112
  118. package/dist/components/Wallet/Home/index.d.ts +5 -0
  119. package/dist/components/Wallet/Home/index.js +20 -0
  120. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +18 -17
  121. package/dist/components/Wallet/Portfolio/dropdown.d.ts +14 -0
  122. package/dist/components/Wallet/Portfolio/dropdown.js +76 -0
  123. package/dist/components/Wallet/Portfolio/index.js +310 -301
  124. package/dist/components/Wallet/Portfolio/tokenRow.js +5 -7
  125. package/dist/components/Wallet/Profile/documents.js +18 -18
  126. package/dist/components/Wallet/Profile/index.js +152 -419
  127. package/dist/components/Wallet/Receive/index.js +10 -10
  128. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -8
  129. package/dist/components/Wallet/Sell/form.js +19 -19
  130. package/dist/components/Wallet/Sell/index.js +6 -6
  131. package/dist/components/Wallet/Send/index.js +20 -19
  132. package/dist/components/Wallet/Shared/Auth/emailForm.js +14 -13
  133. package/dist/components/Wallet/Shared/Auth/otpForm.d.ts +1 -1
  134. package/dist/components/Wallet/Shared/Auth/otpForm.js +98 -88
  135. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  136. package/dist/components/Wallet/Shared/ConnectWallet/index.js +10 -12
  137. package/dist/components/Wallet/Shared/Container/index.d.ts +8 -4
  138. package/dist/components/Wallet/Shared/Container/index.js +63 -26
  139. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  140. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  141. package/dist/components/Wallet/Shared/Order/paymentButton.d.ts +2 -0
  142. package/dist/components/Wallet/Shared/Order/paymentButton.js +47 -0
  143. package/dist/components/Wallet/Shared/Order/types.d.ts +2 -0
  144. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  145. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +13 -11
  146. package/dist/components/Wallet/Shared/addBank.js +44 -48
  147. package/dist/components/Wallet/Shared/appButton.d.ts +1 -1
  148. package/dist/components/Wallet/Shared/appButton.js +77 -57
  149. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  150. package/dist/components/Wallet/Shared/button.js +1 -1
  151. package/dist/components/Wallet/Shared/connectPlaidBank.d.ts +5 -1
  152. package/dist/components/Wallet/Shared/connectPlaidBank.js +39 -38
  153. package/dist/components/Wallet/Shared/inputField.js +1 -1
  154. package/dist/components/Wallet/Shared/noData.js +7 -7
  155. package/dist/components/Wallet/Shared/pin.js +4 -4
  156. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  157. package/dist/components/Wallet/Shared/step.js +2 -2
  158. package/dist/components/Wallet/SignIn/index.js +7 -7
  159. package/dist/components/Wallet/SignUp/index.js +185 -58
  160. package/dist/components/Wallet/SignUp/terms.d.ts +1 -6
  161. package/dist/components/Wallet/SignUp/terms.js +517 -564
  162. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  163. package/dist/components/Wallet/Stake/id/index.js +12 -12
  164. package/dist/components/Wallet/Stake/index.js +30 -29
  165. package/dist/components/Wallet/Swap/index.js +112 -116
  166. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  167. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  168. package/dist/components/Wallet/Withdraw/confirmTransaction.js +9 -9
  169. package/dist/components/Wallet/Withdraw/form.js +19 -18
  170. package/dist/components/Wallet/Withdraw/index.js +5 -5
  171. package/dist/{constants-CsMPRK0U.js → constants-BF50a6s-.js} +30 -30
  172. package/dist/context/dialogContext.d.ts +6 -0
  173. package/dist/context/dialogContext.js +13 -0
  174. package/dist/{createSvgIcon-CH41ZVFw.js → createSvgIcon-BgBEJXMh.js} +15 -14
  175. package/dist/cryptoAssets-Dck03SPI.js +16 -0
  176. package/dist/{dividerClasses-DnbM--4s.js → dividerClasses-BVK5cNr7.js} +1 -1
  177. package/dist/documents-Sh6RH769.js +549 -0
  178. package/dist/{fiatAssets-DVHfFafS.js → fiatAssets-CTIJw9N4.js} +1 -1
  179. package/dist/hooks/useDialog/index.js +35 -38
  180. package/dist/hooks/useRrDialog/index.js +4 -4
  181. package/dist/hooks/useSnackBar.js +12 -11
  182. package/dist/index-BRwse7X5.js +631 -0
  183. package/dist/{index-DxX5Mo0o.js → index-CWzs4-wZ.js} +18 -18
  184. package/dist/{index-DZ__IpVI.js → index-CbogTdwW.js} +25 -24
  185. package/dist/{index-C9uGghB8.js → index-CmJNKC9m.js} +26 -26
  186. package/dist/{index-VE9lYjq3.js → index-Db73x3ti.js} +178 -177
  187. package/dist/{index-eEYiDlpX.js → index-GxLtFwhs.js} +228 -230
  188. package/dist/{index-f15o1nhn.js → index-v4KC1K_V.js} +2 -2
  189. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  190. package/dist/{kyc-BweeW6k9.js → kyc-kWxxF1vI.js} +1 -1
  191. package/dist/main.d.ts +7 -0
  192. package/dist/main.js +66 -59
  193. package/dist/memoTheme-BUUB1UEO.js +15 -0
  194. package/dist/{order-DmTHC7ZG.js → order-D-FBHreS.js} +1 -1
  195. package/dist/{pep-C5Ge-kU4.js → pep-C_LViPSb.js} +219 -218
  196. package/dist/{radioButton-Bgy7Kxxo.js → radioButton-CBcYX40o.js} +8 -7
  197. package/dist/{stake-B150utJI.js → stake-mS8fdG8g.js} +1 -1
  198. package/dist/styles.module-B-t8vvWh.js +31 -0
  199. package/dist/styles.module-verVx4pE.js +8 -0
  200. package/dist/tokenRow-DBnoUm0z.js +186 -0
  201. package/dist/{tooltip-DGtrVEzU.js → tooltip-Dv3Lfsa2.js} +5 -4
  202. package/dist/{useThemeProps-lRuJRcRX.js → useThemeProps-DLhzJP-y.js} +1 -1
  203. package/dist/util/constants.d.ts +9 -0
  204. package/dist/util/constants.js +93 -84
  205. package/dist/{wallet-DDW5KCHp.js → wallet-BTc5u8j2.js} +1 -1
  206. package/package.json +1 -1
  207. package/dist/ArrowDropDown-BC_iEASy.js +0 -8
  208. package/dist/ArrowRight-rYkfGJuF.js +0 -8
  209. package/dist/CheckCircle-CyxKX1TY.js +0 -8
  210. package/dist/DefaultPropsProvider-B2njZVNv.js +0 -242
  211. package/dist/Select-Chubcks_.js +0 -3108
  212. package/dist/assets/iban.css +0 -1
  213. package/dist/assets/index11.css +0 -1
  214. package/dist/cryptoAssets-CzNDY1j6.js +0 -16
  215. package/dist/documents-CEeV8SyW.js +0 -569
  216. package/dist/iban-DRT7i0vb.js +0 -275
  217. package/dist/index-BB3__zW3.js +0 -644
  218. package/dist/styles.module-BFHktEw2.js +0 -30
  219. package/dist/styles.module-DJk7Pf0F.js +0 -10
  220. package/dist/tokenRow-X6vlp1LH.js +0 -198
@@ -0,0 +1,549 @@
1
+ import { jsxs as t, Fragment as C, jsx as e } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as A, useRef as Y } from "react";
3
+ import { C as F } from "./Close-CFg1QB5M.js";
4
+ import { D as oe } from "./Delete-BGp4FPdE.js";
5
+ import { C as re } from "./Cancel-BoEk0xRy.js";
6
+ import ie from "./components/Wallet/Shared/inputField.js";
7
+ import L from "./components/Wallet/Shared/step.js";
8
+ import { W as se } from "./react-webcam-B3cXh1XT.js";
9
+ import { A as ae } from "./ArrowBack-BV158RTp.js";
10
+ import ce from "./components/Shared/transition.js";
11
+ import { getDocName as le } from "./util/functions.js";
12
+ import { a as de, u as me } from "./react-redux-C7I9-1M6.js";
13
+ import { ag as he, ah as ue, ai as pe, aj as fe, ak as ge, al as _e } from "./constants-BF50a6s-.js";
14
+ import { e as be } from "./index-v4KC1K_V.js";
15
+ import { RIGHT_ARROW as $, DELETE_ICON as xe } from "./util/constants.js";
16
+ import { useDialog as De } from "./hooks/useDialog/index.js";
17
+ import g from "./components/Wallet/Shared/appButton.js";
18
+ import { B as Ce } from "./Backdrop-yR8IRnFX.js";
19
+ import { C as w } from "./CircularProgress-Yx712vpT.js";
20
+ import { T as a } from "./Typography-BQDN44CM.js";
21
+ import { B as ke } from "./Button-tAfK4lud.js";
22
+ import { B as s } from "./Box-BwKpr_VI.js";
23
+ import { D as j, a as z } from "./DialogContent-_gvZOy18.js";
24
+ import { D as H } from "./DialogTitle-dq22bYlF.js";
25
+ import { I as S } from "./IconButton-WneJM4uP.js";
26
+ import { D as V } from "./Divider-CIL55YSC.js";
27
+ import { G as h } from "./Grid-CPkjiKqX.js";
28
+ import './assets/documents.css';const ve = () => ({
29
+ type: ue
30
+ }), Ne = (o) => ({
31
+ type: fe,
32
+ payload: o
33
+ }), ye = (o) => ({
34
+ type: ge,
35
+ payload: o
36
+ }), J = () => ({
37
+ type: he
38
+ }), Ee = (o) => ({
39
+ type: _e,
40
+ payload: o
41
+ }), Se = (o) => ({
42
+ type: pe,
43
+ payload: o
44
+ }), Ie = "_container_kbss5_1", Te = "_heading_kbss5_27", we = "_sBtn_kbss5_73", Re = "_twitterCancelBtn_kbss5_427", i = {
45
+ container: Ie,
46
+ "inner-container": "_inner-container_kbss5_13",
47
+ heading: Te,
48
+ "profile-feat-btn": "_profile-feat-btn_kbss5_41",
49
+ "ref-btn": "_ref-btn_kbss5_57",
50
+ sBtn: we,
51
+ "doc-video-box": "_doc-video-box_kbss5_117",
52
+ "image-corner-color": "_image-corner-color_kbss5_193",
53
+ "video-box-inner-content": "_video-box-inner-content_kbss5_207",
54
+ "menu-item": "_menu-item_kbss5_217",
55
+ "remove-icon": "_remove-icon_kbss5_233",
56
+ "delete-disable": "_delete-disable_kbss5_247",
57
+ "confirm-edit": "_confirm-edit_kbss5_263",
58
+ "asset-header": "_asset-header_kbss5_279",
59
+ "asset-close-btn": "_asset-close-btn_kbss5_317",
60
+ "dialog-container": "_dialog-container_kbss5_331",
61
+ "confirm-dialog": "_confirm-dialog_kbss5_345",
62
+ "confirm-dialog-title": "_confirm-dialog-title_kbss5_353",
63
+ "tweet-text-parent": "_tweet-text-parent_kbss5_365",
64
+ "tweet-disable-text": "_tweet-disable-text_kbss5_391",
65
+ "tweet-text-area": "_tweet-text-area_kbss5_409",
66
+ twitterCancelBtn: Re
67
+ }, Be = ({
68
+ showAlertMessage: o,
69
+ documentName: m,
70
+ setDocumentName: _,
71
+ setDocumentScreen: u
72
+ }) => /* @__PURE__ */ t(s, { className: "text-center", children: [
73
+ /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 1 }),
74
+ /* @__PURE__ */ e(a, { 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: m,
80
+ onChangeHandler: (r) => _(r)
81
+ }
82
+ ),
83
+ /* @__PURE__ */ e(
84
+ g,
85
+ {
86
+ sx: { mt: 4, mb: 4 },
87
+ onClick: () => {
88
+ if (!m)
89
+ return o({ message: "Please provide the document name" }), !1;
90
+ u(2);
91
+ },
92
+ disabled: !m,
93
+ fullWidth: !0,
94
+ children: /* @__PURE__ */ e("strong", { children: "Next" })
95
+ }
96
+ )
97
+ ] }), We = ({
98
+ showAlertMessage: o,
99
+ uploadLoader: m,
100
+ uploadDocument: _,
101
+ documentFile: u,
102
+ setDocumentFile: c,
103
+ setDocumentScreen: r
104
+ }) => {
105
+ const l = Y(null), [b, p] = f("Choose File");
106
+ return /* @__PURE__ */ t(s, { className: "text-center", children: [
107
+ /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
108
+ /* @__PURE__ */ e(a, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
109
+ /* @__PURE__ */ t(h, { mt: 2, container: !0, spacing: 2, children: [
110
+ /* @__PURE__ */ e(h, { size: 6, children: /* @__PURE__ */ e(
111
+ g,
112
+ {
113
+ variantType: "secondary",
114
+ onClick: () => r(3),
115
+ fullWidth: !0,
116
+ children: "Use Camera"
117
+ }
118
+ ) }),
119
+ /* @__PURE__ */ e(h, { size: 6, children: /* @__PURE__ */ e(
120
+ g,
121
+ {
122
+ variantType: "secondary",
123
+ onClick: () => l.current && l.current.click(),
124
+ sx: { overflow: "hidden" },
125
+ fullWidth: !0,
126
+ children: b
127
+ }
128
+ ) })
129
+ ] }),
130
+ /* @__PURE__ */ e(
131
+ "input",
132
+ {
133
+ ref: l,
134
+ onChange: (d) => {
135
+ if (d.target.files && !d.target.files[0].name.match(/.(jpg|jpeg|png)$/i))
136
+ o({ message: "Please provide a valid file" });
137
+ else if (d.target.files && d.target.files[0]) {
138
+ p(d.target.files[0].name);
139
+ let D = new FileReader();
140
+ D.onload = (I) => {
141
+ var N;
142
+ const v = (N = I.target) == null ? void 0 : N.result;
143
+ if (typeof v == "string") {
144
+ const R = v.split(/[,]/);
145
+ c(R[1]);
146
+ }
147
+ }, D.readAsDataURL(d.target.files[0]);
148
+ }
149
+ },
150
+ accept: ".jpg,.jpeg,.png,.pdf,",
151
+ type: "file",
152
+ hidden: !0
153
+ }
154
+ ),
155
+ m ? /* @__PURE__ */ t(s, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
156
+ /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
157
+ /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
158
+ "Processing...",
159
+ /* @__PURE__ */ e("br", {}),
160
+ "one moment please"
161
+ ] })
162
+ ] }) : /* @__PURE__ */ e(
163
+ g,
164
+ {
165
+ sx: { mt: 4, mb: 4 },
166
+ onClick: () => {
167
+ if (!u)
168
+ return o({ message: "Please provide the document" }), !1;
169
+ _();
170
+ },
171
+ disabled: !u,
172
+ fullWidth: !0,
173
+ children: /* @__PURE__ */ e("strong", { children: "Submit" })
174
+ }
175
+ )
176
+ ] });
177
+ }, Pe = ({
178
+ showAlertMessage: o,
179
+ documentFile: m,
180
+ setDocumentFile: _,
181
+ uploadDocument: u,
182
+ uploadLoader: c
183
+ }) => {
184
+ const r = Y(null), l = {
185
+ audio: !1,
186
+ height: {
187
+ min: 720
188
+ },
189
+ width: {
190
+ ideal: 1280
191
+ },
192
+ aspectRatio: 1.333,
193
+ // 4:3
194
+ facingMode: "user",
195
+ frameRate: {
196
+ ideal: 30,
197
+ max: 30
198
+ }
199
+ }, [b, p] = f(""), x = () => {
200
+ if (r.current) {
201
+ const d = r.current.getScreenshot(), D = d.split(/[,]/);
202
+ _(D[1]), p(d);
203
+ }
204
+ }, k = () => {
205
+ if (!b)
206
+ return o({
207
+ message: "Please take the photo of the document"
208
+ }), !1;
209
+ u();
210
+ };
211
+ return /* @__PURE__ */ t(s, { className: "text-center", children: [
212
+ /* @__PURE__ */ e(L, { totalSteps: 2, currentStep: 2 }),
213
+ b ? /* @__PURE__ */ t(C, { children: [
214
+ /* @__PURE__ */ t(
215
+ s,
216
+ {
217
+ className: `${i["doc-video-box"]} ${i["image-corner-color"]}`,
218
+ children: [
219
+ /* @__PURE__ */ e("span", {}),
220
+ /* @__PURE__ */ e(
221
+ "img",
222
+ {
223
+ className: i["video-box-inner-content"],
224
+ src: b,
225
+ alt: "doc"
226
+ }
227
+ )
228
+ ]
229
+ }
230
+ ),
231
+ c ? /* @__PURE__ */ t(s, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
232
+ /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
233
+ /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
234
+ "Processing...",
235
+ /* @__PURE__ */ e("br", {}),
236
+ "one moment please"
237
+ ] })
238
+ ] }) : /* @__PURE__ */ t(C, { children: [
239
+ /* @__PURE__ */ e(
240
+ g,
241
+ {
242
+ onClick: k,
243
+ sx: { mt: 6 },
244
+ disabled: !m,
245
+ fullWidth: !0,
246
+ children: /* @__PURE__ */ e("strong", { children: "Submit" })
247
+ }
248
+ ),
249
+ /* @__PURE__ */ e(
250
+ g,
251
+ {
252
+ variantType: "secondary",
253
+ onClick: () => p(""),
254
+ sx: { mt: 2 },
255
+ fullWidth: !0,
256
+ children: /* @__PURE__ */ e("strong", { children: "Retake Photo" })
257
+ }
258
+ )
259
+ ] })
260
+ ] }) : /* @__PURE__ */ t(C, { children: [
261
+ /* @__PURE__ */ t(s, { className: i["doc-video-box"], children: [
262
+ /* @__PURE__ */ e("span", {}),
263
+ /* @__PURE__ */ e(
264
+ se,
265
+ {
266
+ className: i["video-box-inner-content"],
267
+ audio: !1,
268
+ ref: r,
269
+ screenshotFormat: "image/jpeg",
270
+ videoConstraints: l,
271
+ minScreenshotHeight: l.height.min,
272
+ minScreenshotWidth: l.width.ideal,
273
+ screenshotQuality: 1
274
+ }
275
+ )
276
+ ] }),
277
+ /* @__PURE__ */ e(g, { onClick: x, sx: { mt: 8 }, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Take Photo" }) })
278
+ ] })
279
+ ] });
280
+ }, ct = ({ showAlertMessage: o, identityDocs: m }) => {
281
+ const { openDialog: _, ConfirmDialog: u } = De(), c = de(), r = me(be), l = r.data, b = r.loader, p = r.message, x = r.error, k = r.preview.front, d = r.preview.back, D = r.preview.loader, I = r.uploadLoader, [v, N] = f(!1), [R, O] = f(!1), [B, y] = f(1), [K, G] = f(!1), [W, Q] = f(""), [T, P] = f("");
282
+ A(() => {
283
+ x && o({ message: x });
284
+ }, [x]), A(() => {
285
+ p && (o({ message: p, type: "success" }), N(!1), U());
286
+ }, [p]);
287
+ const q = () => {
288
+ if (!W)
289
+ return o({ message: "Please provide the document name" }), !1;
290
+ if (!T)
291
+ return o({ message: "Please provide the document" }), !1;
292
+ c(
293
+ Se({
294
+ filename: W.trim(),
295
+ content: T
296
+ })
297
+ );
298
+ }, X = () => {
299
+ c(ve());
300
+ };
301
+ A(() => {
302
+ X();
303
+ }, []);
304
+ const Z = (n) => {
305
+ c(Ne(n));
306
+ }, ee = (n) => {
307
+ c(ye(n));
308
+ }, te = (n) => {
309
+ _({
310
+ icon: xe,
311
+ height: "450px",
312
+ title: "Are you sure you want to delete?",
313
+ message: "This action cannot be undone.",
314
+ onConfirm: () => {
315
+ ne(n);
316
+ },
317
+ cancelButtonShow: !0
318
+ });
319
+ }, ne = (n) => {
320
+ c(Ee(n));
321
+ }, M = ({ data: n, type: E }) => E === "identity" ? /* @__PURE__ */ e(
322
+ s,
323
+ {
324
+ className: i["menu-item"],
325
+ onClick: () => n.documentId && Z(n.documentId),
326
+ children: /* @__PURE__ */ t(h, { container: !0, sx: { width: "100%" }, children: [
327
+ /* @__PURE__ */ e(h, { size: 10, className: "content-center", children: /* @__PURE__ */ e(s, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.documentType && le(n.documentType) }) }) }) }),
328
+ /* @__PURE__ */ e(h, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: $, alt: "arrow" }) }) })
329
+ ] })
330
+ }
331
+ ) : /* @__PURE__ */ t(s, { sx: { position: "relative" }, className: i["menu-item"], children: [
332
+ v && /* @__PURE__ */ e(
333
+ S,
334
+ {
335
+ className: i["remove-icon"],
336
+ onClick: () => te(n.filename),
337
+ children: /* @__PURE__ */ e(re, {})
338
+ }
339
+ ),
340
+ /* @__PURE__ */ t(
341
+ h,
342
+ {
343
+ onClick: () => ee(n.filename),
344
+ container: !0,
345
+ sx: { width: "100%" },
346
+ children: [
347
+ /* @__PURE__ */ e(h, { size: 10, className: "content-center", children: /* @__PURE__ */ e(s, { sx: { textAlign: "left" }, children: /* @__PURE__ */ e(a, { color: "primary", children: /* @__PURE__ */ e("strong", { children: n.filename }) }) }) }),
348
+ /* @__PURE__ */ e(h, { size: 2, children: /* @__PURE__ */ e(a, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e("img", { src: $, alt: "arrow" }) }) })
349
+ ]
350
+ }
351
+ )
352
+ ] }), U = () => {
353
+ Q(""), P(""), y(1), G(!1);
354
+ };
355
+ return /* @__PURE__ */ t(C, { children: [
356
+ /* @__PURE__ */ e(u, {}),
357
+ /* @__PURE__ */ e(
358
+ Ce,
359
+ {
360
+ sx: {
361
+ color: "#fff",
362
+ zIndex: (n) => n.zIndex.drawer + 1e3
363
+ },
364
+ open: D,
365
+ children: /* @__PURE__ */ e(w, { color: "inherit" })
366
+ }
367
+ ),
368
+ /* @__PURE__ */ e(a, { className: i.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
369
+ l.length > 0 && /* @__PURE__ */ t(
370
+ ke,
371
+ {
372
+ className: `${v ? i["delete-disable"] : i["confirm-edit"]} normal-text`,
373
+ sx: { mt: 3, mb: 3 },
374
+ variant: "contained",
375
+ onClick: () => N((n) => !n),
376
+ children: [
377
+ /* @__PURE__ */ e(oe, {}),
378
+ "Delete"
379
+ ]
380
+ }
381
+ ),
382
+ b ? /* @__PURE__ */ e(s, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(w, {}) }) : /* @__PURE__ */ t(C, { children: [
383
+ m && m.map((n, E) => /* @__PURE__ */ e(M, { data: n, type: "identity" }, E)),
384
+ l && l.map((n, E) => /* @__PURE__ */ e(M, { data: n, type: "normal" }, E)),
385
+ !m && l.length === 0 && /* @__PURE__ */ e(a, { mt: 4, className: "text-center", variant: "h4", children: "No Documents" })
386
+ ] }),
387
+ /* @__PURE__ */ e(
388
+ g,
389
+ {
390
+ sx: { mt: 4 },
391
+ onClick: () => G(!0),
392
+ fullWidth: !0,
393
+ children: /* @__PURE__ */ e("strong", { children: "Add new document" })
394
+ }
395
+ ),
396
+ /* @__PURE__ */ t(
397
+ j,
398
+ {
399
+ open: R,
400
+ fullWidth: !0,
401
+ onClose: () => O(!1),
402
+ children: [
403
+ /* @__PURE__ */ e(H, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
404
+ S,
405
+ {
406
+ "aria-label": "close",
407
+ onClick: () => O(!1),
408
+ sx: {
409
+ position: "absolute",
410
+ right: 8,
411
+ top: 8,
412
+ color: "#16359D"
413
+ },
414
+ children: /* @__PURE__ */ e(F, {})
415
+ }
416
+ ) }),
417
+ /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
418
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(s, { children: "Add Document Modal" }) })
419
+ ]
420
+ }
421
+ ),
422
+ /* @__PURE__ */ t(
423
+ j,
424
+ {
425
+ open: !!k,
426
+ fullWidth: !0,
427
+ onClose: () => c(J()),
428
+ children: [
429
+ /* @__PURE__ */ e(H, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
430
+ S,
431
+ {
432
+ "aria-label": "close",
433
+ onClick: () => c(J()),
434
+ sx: {
435
+ position: "absolute",
436
+ right: 8,
437
+ top: 8,
438
+ color: "#16359D"
439
+ },
440
+ children: /* @__PURE__ */ e(F, {})
441
+ }
442
+ ) }),
443
+ /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
444
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ t(s, { children: [
445
+ /* @__PURE__ */ e(a, { variant: "h5", mb: 3, children: "Front Image" }),
446
+ /* @__PURE__ */ e(
447
+ "img",
448
+ {
449
+ className: i["video-box-inner-content"],
450
+ src: "data:image/jpeg;base64," + k,
451
+ alt: "Front"
452
+ }
453
+ ),
454
+ d && /* @__PURE__ */ t(C, { children: [
455
+ /* @__PURE__ */ e(a, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
456
+ /* @__PURE__ */ e(
457
+ "img",
458
+ {
459
+ className: i["video-box-inner-content"],
460
+ src: "data:image/jpeg;base64," + d,
461
+ alt: "Back"
462
+ }
463
+ )
464
+ ] })
465
+ ] }) })
466
+ ]
467
+ }
468
+ ),
469
+ /* @__PURE__ */ t(
470
+ j,
471
+ {
472
+ fullWidth: !0,
473
+ open: K,
474
+ onClose: U,
475
+ TransitionComponent: ce,
476
+ children: [
477
+ /* @__PURE__ */ t(s, { className: i["asset-header"], children: [
478
+ /* @__PURE__ */ e(
479
+ S,
480
+ {
481
+ "aria-label": "close",
482
+ onClick: () => y(
483
+ B - 1 <= 0 ? 1 : B - 1
484
+ ),
485
+ sx: { color: "#16359d", ml: "20px" },
486
+ children: /* @__PURE__ */ e(ae, {})
487
+ }
488
+ ),
489
+ /* @__PURE__ */ e(
490
+ a,
491
+ {
492
+ className: "secondary-text-color",
493
+ variant: "subtitle1",
494
+ component: "p",
495
+ children: /* @__PURE__ */ e("strong", { children: "Add new document" })
496
+ }
497
+ ),
498
+ /* @__PURE__ */ e(
499
+ S,
500
+ {
501
+ "aria-label": "close",
502
+ onClick: U,
503
+ className: i["asset-close-btn"],
504
+ children: /* @__PURE__ */ e(F, {})
505
+ }
506
+ )
507
+ ] }),
508
+ /* @__PURE__ */ e(z, { sx: { padding: "20px 45px" }, dividers: !0, children: {
509
+ 1: /* @__PURE__ */ e(
510
+ Be,
511
+ {
512
+ showAlertMessage: o,
513
+ documentName: W,
514
+ setDocumentName: Q,
515
+ setDocumentScreen: y
516
+ }
517
+ ),
518
+ 2: /* @__PURE__ */ e(
519
+ We,
520
+ {
521
+ showAlertMessage: o,
522
+ setDocumentScreen: y,
523
+ documentFile: T,
524
+ setDocumentFile: P,
525
+ uploadDocument: q,
526
+ uploadLoader: I
527
+ }
528
+ ),
529
+ 3: /* @__PURE__ */ e(
530
+ Pe,
531
+ {
532
+ showAlertMessage: o,
533
+ setDocumentScreen: y,
534
+ documentFile: T,
535
+ setDocumentFile: P,
536
+ uploadDocument: q,
537
+ uploadLoader: I
538
+ }
539
+ )
540
+ }[B] })
541
+ ]
542
+ }
543
+ )
544
+ ] });
545
+ };
546
+ export {
547
+ ct as D,
548
+ i as s
549
+ };
@@ -1,4 +1,4 @@
1
- import { Q as t } from "./constants-CsMPRK0U.js";
1
+ import { T as t } from "./constants-BF50a6s-.js";
2
2
  const e = (s) => ({
3
3
  type: t,
4
4
  payload: s
@@ -1,71 +1,68 @@
1
1
  import { jsx as o, jsxs as C } from "react/jsx-runtime";
2
- import { useState as N } from "react";
3
- import { s as t } from "../../styles.module-DJk7Pf0F.js";
4
- import { D as T, a as y } from "../../DialogContent-DzidtXui.js";
5
- import { B as S } from "../../Box-B12x52NC.js";
6
- import { T as c } from "../../Typography-DBlMiOti.js";
7
- import { B as m } from "../../Button-C57IMamW.js";
8
- const b = () => {
9
- const [i, r] = N(
2
+ import { useState as T } from "react";
3
+ import { s as n } from "../../styles.module-verVx4pE.js";
4
+ import c from "../../components/Wallet/Shared/appButton.js";
5
+ import { D as y, a as N } from "../../DialogContent-_gvZOy18.js";
6
+ import { B as S } from "../../Box-BwKpr_VI.js";
7
+ import { T as m } from "../../Typography-BQDN44CM.js";
8
+ const A = () => {
9
+ const [i, r] = T(
10
10
  null
11
- ), u = (n) => {
12
- r(n);
11
+ ), u = (t) => {
12
+ r(t);
13
13
  }, e = () => {
14
14
  r(null);
15
15
  };
16
16
  return { openDialog: u, ConfirmDialog: () => {
17
17
  if (!i) return null;
18
18
  const {
19
- icon: n,
19
+ icon: t,
20
20
  title: l,
21
21
  message: h,
22
- height: f = "auto",
23
- width: d = "100%",
22
+ height: p = "auto",
23
+ width: f = "100%",
24
24
  maxWidth: g,
25
- onConfirm: a,
26
- onCancel: s,
27
- confirmButtonShow: p = !0,
25
+ onConfirm: s,
26
+ onCancel: a,
27
+ confirmButtonShow: d = !0,
28
28
  confirmButtonText: x = "Yes",
29
- cancelButtonText: B = "No",
30
- cancelButtonShow: D = !0
29
+ cancelButtonText: D = "No",
30
+ cancelButtonShow: B = !0
31
31
  } = i;
32
32
  return /* @__PURE__ */ o(
33
- T,
33
+ y,
34
34
  {
35
35
  PaperProps: {
36
- className: t["confirm-dialog"],
37
- sx: { height: f, width: d, maxWidth: g }
36
+ className: n["confirm-dialog"],
37
+ sx: { height: p, width: f, maxWidth: g }
38
38
  },
39
39
  open: !!l,
40
40
  fullWidth: !0,
41
- children: /* @__PURE__ */ o(y, { sx: { p: 0, height: "600px" }, children: /* @__PURE__ */ C(S, { mt: 4, className: t.container, children: [
42
- n && /* @__PURE__ */ o("img", { src: n, alt: "icon" }),
43
- /* @__PURE__ */ o(c, { className: t["confirm-dialog-title"], children: l }),
44
- /* @__PURE__ */ o(c, { dangerouslySetInnerHTML: { __html: h } }),
45
- p && /* @__PURE__ */ o(
46
- m,
41
+ children: /* @__PURE__ */ o(N, { sx: { p: 0, height: "600px" }, children: /* @__PURE__ */ C(S, { mt: 4, className: n.container, children: [
42
+ t && /* @__PURE__ */ o("img", { src: t, alt: "icon" }),
43
+ /* @__PURE__ */ o(m, { className: n["confirm-dialog-title"], children: l }),
44
+ /* @__PURE__ */ o(m, { dangerouslySetInnerHTML: { __html: h } }),
45
+ d && /* @__PURE__ */ o(
46
+ c,
47
47
  {
48
48
  sx: { mt: 4 },
49
49
  onClick: () => {
50
- a && a(), e();
50
+ s && s(), e();
51
51
  },
52
- className: t.btn,
53
- variant: "contained",
54
52
  fullWidth: !0,
55
53
  children: /* @__PURE__ */ o("strong", { children: x })
56
54
  }
57
55
  ),
58
- D && /* @__PURE__ */ o(
59
- m,
56
+ B && /* @__PURE__ */ o(
57
+ c,
60
58
  {
61
- sx: { mt: 4 },
59
+ sx: { mt: 2 },
62
60
  onClick: () => {
63
- s && s(), e();
61
+ a && a(), e();
64
62
  },
65
- className: t.cancelBtn,
66
- variant: "contained",
63
+ variantType: "cancel",
67
64
  fullWidth: !0,
68
- children: /* @__PURE__ */ o("strong", { children: B })
65
+ children: /* @__PURE__ */ o("strong", { children: D })
69
66
  }
70
67
  )
71
68
  ] }) })
@@ -74,5 +71,5 @@ const b = () => {
74
71
  } };
75
72
  };
76
73
  export {
77
- b as useDialog
74
+ A as useDialog
78
75
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
2
  import { useState as D } from "react";
3
3
  import k from "../../components/RocketRamp/Shared/Button/index.js";
4
- import { D as C, a as q } from "../../DialogContent-DzidtXui.js";
5
- import { B as N } from "../../Box-B12x52NC.js";
6
- import { T as s } from "../../Typography-DBlMiOti.js";
7
- import { B as T } from "../../Button-C57IMamW.js";
4
+ import { D as C, a as q } from "../../DialogContent-_gvZOy18.js";
5
+ import { B as N } from "../../Box-BwKpr_VI.js";
6
+ import { T as s } from "../../Typography-BQDN44CM.js";
7
+ import { B as T } from "../../Button-tAfK4lud.js";
8
8
  import '../../assets/index5.css';const y = "_container_addkq_1", S = "_btn_addkq_37", W = "_cancelBtn_addkq_61", o = {
9
9
  container: y,
10
10
  "confirm-dialog": "_confirm-dialog_addkq_17",