everest-npm-features 0.0.47 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/assets/styles.css +1 -1
  3. package/dist/assets/styles2.css +1 -1
  4. package/dist/assets/styles3.css +1 -1
  5. package/dist/assets/styles4.css +1 -0
  6. package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
  7. package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
  8. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  9. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  14. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  15. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  16. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  17. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  18. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  22. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  23. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  24. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  25. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  26. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  27. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  28. package/dist/components/Shared/FullKyc/edd.js +41 -41
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +1 -1
  31. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  34. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/createIban.js +70 -62
  36. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  37. package/dist/components/Wallet/Account/eWallet.js +96 -0
  38. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  39. package/dist/components/Wallet/Account/iban.js +38 -32
  40. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  41. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  42. package/dist/components/Wallet/Account/index.d.ts +2 -0
  43. package/dist/components/Wallet/Account/index.js +164 -143
  44. package/dist/components/Wallet/Account/sendIban.js +3 -3
  45. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  46. package/dist/components/Wallet/Buy/form.js +6 -6
  47. package/dist/components/Wallet/Buy/index.js +14 -13
  48. package/dist/components/Wallet/Deposit/index.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  50. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  51. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  52. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  53. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  54. package/dist/components/Wallet/History/index.js +25 -24
  55. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  56. package/dist/components/Wallet/Portfolio/index.js +34 -33
  57. package/dist/components/Wallet/Profile/documents.js +527 -28
  58. package/dist/components/Wallet/Profile/index.js +179 -149
  59. package/dist/components/Wallet/Profile/storage.d.ts +11 -0
  60. package/dist/components/Wallet/Profile/storage.js +267 -0
  61. package/dist/components/Wallet/Receive/index.js +22 -21
  62. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  63. package/dist/components/Wallet/Sell/form.js +6 -6
  64. package/dist/components/Wallet/Sell/index.js +13 -12
  65. package/dist/components/Wallet/Send/index.js +44 -43
  66. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  67. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  68. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  69. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  70. package/dist/components/Wallet/Shared/addBank.js +39 -38
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  72. package/dist/components/Wallet/Shared/manualSend.js +7 -6
  73. package/dist/components/Wallet/Shared/pin.js +1 -1
  74. package/dist/components/Wallet/SignIn/index.js +24 -23
  75. package/dist/components/Wallet/SignUp/index.js +22 -21
  76. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  77. package/dist/components/Wallet/Stake/id/index.js +1 -1
  78. package/dist/components/Wallet/Stake/index.js +31 -30
  79. package/dist/components/Wallet/Swap/form.js +9 -8
  80. package/dist/components/Wallet/Swap/index.js +11 -10
  81. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  82. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
  83. package/dist/components/Wallet/Withdraw/form.js +5 -5
  84. package/dist/components/Wallet/Withdraw/index.js +12 -11
  85. package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
  86. package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
  87. package/dist/hooks/useDialog/index.js +1 -1
  88. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  89. package/dist/hooks/useEverestDispatch.js +5 -0
  90. package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
  91. package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
  92. package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
  93. package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
  94. package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
  95. package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
  96. package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
  97. package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
  98. package/dist/main.js +7 -7
  99. package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
  100. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  101. package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
  102. package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
  103. package/dist/styles.module-CHPRGltL.js +28 -0
  104. package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
  105. package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
  106. package/dist/util/constants.d.ts +5 -0
  107. package/dist/util/constants.js +86 -81
  108. package/dist/util/functions.js +36 -36
  109. package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
  110. package/package.json +3 -2
  111. package/dist/assets/documents.css +0 -1
  112. package/dist/documents-RjwlADn2.js +0 -552
@@ -1,30 +1,529 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../../../Close-CNwiMz_O.js";
4
- import "../../../Delete-jpMstGIF.js";
5
- import "../../../Cancel-4lT7GZUA.js";
6
- import "../Shared/inputField.js";
7
- import "../Shared/step.js";
8
- import "../../../react-webcam-B3cXh1XT.js";
9
- import { D as B } from "../../../documents-RjwlADn2.js";
10
- import "../../Shared/transition.js";
11
- import "../../../util/functions.js";
12
- import "../../../react-redux-B4BZippc.js";
13
- import "../../../constants-BJhUp96H.js";
14
- import "../../../index-BQNs1mvn.js";
15
- import "../../../util/constants.js";
16
- import "../../../hooks/useDialog/index.js";
17
- import "../Shared/appButton.js";
18
- import "../../../Backdrop-CioURPVG.js";
19
- import "../../../CircularProgress-xZA3lvba.js";
20
- import "../../../Typography-pAaje37G.js";
21
- import "../../../Button-Df4vgU24.js";
22
- import "../../../Box-B0YSYLco.js";
23
- import "../../../DialogContent-BMwlOnbW.js";
24
- import "../../../DialogTitle-CfS0bb2K.js";
25
- import "../../../IconButton-DHm-hucF.js";
26
- import "../../../Divider-BShhMFf4.js";
27
- import "../../../Grid-CFe3amXO.js";
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";
7
+ 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 { ar as de, as as ue, at as he, au as pe, av as fe, aw as ge } from "../../../constants-t7n9qCW3.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";
18
+ 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 Ne } 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";
30
+ const ye = () => ({
31
+ type: ue
32
+ }), Ee = (o) => ({
33
+ type: pe,
34
+ payload: o
35
+ }), Se = (o) => ({
36
+ type: fe,
37
+ payload: o
38
+ }), J = () => ({
39
+ type: de
40
+ }), Ie = (o) => ({
41
+ type: ge,
42
+ payload: o
43
+ }), Te = (o) => ({
44
+ type: he,
45
+ payload: o
46
+ }), ke = ae(/* @__PURE__ */ e("path", {
47
+ d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
48
+ }), "ArrowBack"), Re = ({
49
+ showAlertMessage: o,
50
+ documentName: d,
51
+ setDocumentName: x,
52
+ setDocumentScreen: h
53
+ }) => /* @__PURE__ */ t(c, { className: "text-center", children: [
54
+ /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 1 }),
55
+ /* @__PURE__ */ e(a, { className: "secondary-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Name your document" }) }),
56
+ /* @__PURE__ */ e(
57
+ ie,
58
+ {
59
+ label: "Document Name",
60
+ value: d,
61
+ onChangeHandler: (r) => x(r)
62
+ }
63
+ ),
64
+ /* @__PURE__ */ e(
65
+ g,
66
+ {
67
+ sx: { mt: 4, mb: 4 },
68
+ onClick: () => {
69
+ if (!d)
70
+ return o({ message: "Please provide the document name" }), !1;
71
+ h(2);
72
+ },
73
+ disabled: !d,
74
+ fullWidth: !0,
75
+ children: /* @__PURE__ */ e("strong", { children: "Next" })
76
+ }
77
+ )
78
+ ] }), we = ({
79
+ showAlertMessage: o,
80
+ uploadLoader: d,
81
+ uploadDocument: x,
82
+ documentFile: h,
83
+ setDocumentFile: s,
84
+ setDocumentScreen: r
85
+ }) => {
86
+ const l = Y(null), [D, p] = f("Choose File");
87
+ return /* @__PURE__ */ t(c, { className: "text-center", children: [
88
+ /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 2 }),
89
+ /* @__PURE__ */ e(a, { className: "fw500", variant: "h6", children: "Uploaded files must be image format (PDF, PNG or JPEG/JPG)" }),
90
+ /* @__PURE__ */ t(u, { mt: 2, container: !0, spacing: 2, children: [
91
+ /* @__PURE__ */ e(u, { size: 6, children: /* @__PURE__ */ e(
92
+ g,
93
+ {
94
+ variantType: "secondary",
95
+ onClick: () => r(3),
96
+ fullWidth: !0,
97
+ children: "Use Camera"
98
+ }
99
+ ) }),
100
+ /* @__PURE__ */ e(u, { size: 6, children: /* @__PURE__ */ e(
101
+ g,
102
+ {
103
+ variantType: "secondary",
104
+ onClick: () => l.current && l.current.click(),
105
+ sx: { overflow: "hidden" },
106
+ fullWidth: !0,
107
+ children: D
108
+ }
109
+ ) })
110
+ ] }),
111
+ /* @__PURE__ */ e(
112
+ "input",
113
+ {
114
+ ref: l,
115
+ onChange: (m) => {
116
+ if (m.target.files && !m.target.files[0].name.match(/.(jpg|jpeg|png)$/i))
117
+ o({ message: "Please provide a valid file" });
118
+ else if (m.target.files && m.target.files[0]) {
119
+ p(m.target.files[0].name);
120
+ let b = new FileReader();
121
+ b.onload = (k) => {
122
+ var E;
123
+ const y = (E = k.target) == null ? void 0 : E.result;
124
+ if (typeof y == "string") {
125
+ const W = y.split(/[,]/);
126
+ s(W[1]);
127
+ }
128
+ }, b.readAsDataURL(m.target.files[0]);
129
+ }
130
+ },
131
+ accept: ".jpg,.jpeg,.png,.pdf,",
132
+ type: "file",
133
+ hidden: !0
134
+ }
135
+ ),
136
+ d ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
137
+ /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
138
+ /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
139
+ "Processing...",
140
+ /* @__PURE__ */ e("br", {}),
141
+ "one moment please"
142
+ ] })
143
+ ] }) : /* @__PURE__ */ e(
144
+ g,
145
+ {
146
+ sx: { mt: 4, mb: 4 },
147
+ onClick: () => {
148
+ if (!h)
149
+ return o({ message: "Please provide the document" }), !1;
150
+ x();
151
+ },
152
+ disabled: !h,
153
+ fullWidth: !0,
154
+ children: /* @__PURE__ */ e("strong", { children: "Submit" })
155
+ }
156
+ )
157
+ ] });
158
+ }, We = ({
159
+ showAlertMessage: o,
160
+ documentFile: d,
161
+ setDocumentFile: x,
162
+ uploadDocument: h,
163
+ uploadLoader: s
164
+ }) => {
165
+ const r = Y(null), l = {
166
+ audio: !1,
167
+ height: {
168
+ min: 720
169
+ },
170
+ width: {
171
+ ideal: 1280
172
+ },
173
+ aspectRatio: 1.333,
174
+ // 4:3
175
+ facingMode: "user",
176
+ frameRate: {
177
+ ideal: 30,
178
+ max: 30
179
+ }
180
+ }, [D, p] = f(""), C = () => {
181
+ if (r.current) {
182
+ const m = r.current.getScreenshot(), b = m.split(/[,]/);
183
+ x(b[1]), p(m);
184
+ }
185
+ }, N = () => {
186
+ if (!D)
187
+ return o({
188
+ message: "Please take the photo of the document"
189
+ }), !1;
190
+ h();
191
+ };
192
+ return /* @__PURE__ */ t(c, { className: "text-center", children: [
193
+ /* @__PURE__ */ e(j, { totalSteps: 2, currentStep: 2 }),
194
+ D ? /* @__PURE__ */ t(v, { children: [
195
+ /* @__PURE__ */ t(
196
+ c,
197
+ {
198
+ className: `${i["doc-video-box"]} ${i["image-corner-color"]}`,
199
+ children: [
200
+ /* @__PURE__ */ e("span", {}),
201
+ /* @__PURE__ */ e(
202
+ "img",
203
+ {
204
+ className: i["video-box-inner-content"],
205
+ src: D,
206
+ alt: "doc"
207
+ }
208
+ )
209
+ ]
210
+ }
211
+ ),
212
+ s ? /* @__PURE__ */ t(c, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
213
+ /* @__PURE__ */ e(w, { size: 30, color: "inherit" }),
214
+ /* @__PURE__ */ t(a, { variant: "h5", sx: { fontWeight: "bold" }, children: [
215
+ "Processing...",
216
+ /* @__PURE__ */ e("br", {}),
217
+ "one moment please"
218
+ ] })
219
+ ] }) : /* @__PURE__ */ t(v, { children: [
220
+ /* @__PURE__ */ e(
221
+ g,
222
+ {
223
+ onClick: N,
224
+ sx: { mt: 6 },
225
+ disabled: !d,
226
+ fullWidth: !0,
227
+ children: /* @__PURE__ */ e("strong", { children: "Submit" })
228
+ }
229
+ ),
230
+ /* @__PURE__ */ e(
231
+ g,
232
+ {
233
+ variantType: "secondary",
234
+ onClick: () => p(""),
235
+ sx: { mt: 2 },
236
+ fullWidth: !0,
237
+ children: /* @__PURE__ */ e("strong", { children: "Retake Photo" })
238
+ }
239
+ )
240
+ ] })
241
+ ] }) : /* @__PURE__ */ t(v, { children: [
242
+ /* @__PURE__ */ t(c, { className: i["doc-video-box"], children: [
243
+ /* @__PURE__ */ e("span", {}),
244
+ /* @__PURE__ */ e(
245
+ ce,
246
+ {
247
+ className: i["video-box-inner-content"],
248
+ audio: !1,
249
+ ref: r,
250
+ screenshotFormat: "image/jpeg",
251
+ videoConstraints: l,
252
+ minScreenshotHeight: l.height.min,
253
+ minScreenshotWidth: l.width.ideal,
254
+ screenshotQuality: 1
255
+ }
256
+ )
257
+ ] }),
258
+ /* @__PURE__ */ e(g, { onClick: C, sx: { mt: 8 }, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Take Photo" }) })
259
+ ] })
260
+ ] });
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, N = r.preview.front, m = r.preview.back, b = r.preview.loader, k = r.uploadLoader, [y, E] = f(!1), [W, O] = f(!1), [P, S] = f(1), [K, G] = f(!1), [U, Q] = f(""), [R, B] = f("");
263
+ A(() => {
264
+ C && o({ message: C });
265
+ }, [C]), A(() => {
266
+ p && (o({ message: p, type: "success" }), E(!1), _());
267
+ }, [p]);
268
+ const q = () => {
269
+ if (!U)
270
+ return o({ message: "Please provide the document name" }), !1;
271
+ if (!R)
272
+ return o({ message: "Please provide the document" }), !1;
273
+ s(
274
+ Te({
275
+ filename: U.trim(),
276
+ content: R
277
+ })
278
+ );
279
+ }, X = () => {
280
+ s(ye());
281
+ };
282
+ A(() => {
283
+ X();
284
+ }, []);
285
+ const Z = (n) => {
286
+ s(Ee(n));
287
+ }, ee = (n) => {
288
+ s(Se(n));
289
+ }, te = (n) => {
290
+ x({
291
+ icon: De,
292
+ height: "450px",
293
+ title: "Are you sure you want to delete?",
294
+ message: "This action cannot be undone.",
295
+ onConfirm: () => {
296
+ ne(n);
297
+ },
298
+ cancelButtonShow: !0
299
+ });
300
+ }, ne = (n) => {
301
+ s(Ie(n));
302
+ }, H = ({ data: n, type: I }) => I === "identity" ? /* @__PURE__ */ e(
303
+ c,
304
+ {
305
+ className: i["menu-item"],
306
+ onClick: () => n.documentId && Z(n.documentId),
307
+ 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" }) }) })
310
+ ] })
311
+ }
312
+ ) : /* @__PURE__ */ t(c, { sx: { position: "relative" }, className: i["menu-item"], children: [
313
+ y && /* @__PURE__ */ e(
314
+ T,
315
+ {
316
+ className: i["remove-icon"],
317
+ onClick: () => te(n.filename),
318
+ children: /* @__PURE__ */ e(re, {})
319
+ }
320
+ ),
321
+ /* @__PURE__ */ t(
322
+ u,
323
+ {
324
+ onClick: () => ee(n.filename),
325
+ container: !0,
326
+ sx: { width: "100%" },
327
+ 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" }) }) })
330
+ ]
331
+ }
332
+ )
333
+ ] }), _ = () => {
334
+ Q(""), B(""), S(1), G(!1);
335
+ };
336
+ return /* @__PURE__ */ t(v, { children: [
337
+ /* @__PURE__ */ e(h, {}),
338
+ /* @__PURE__ */ e(
339
+ ve,
340
+ {
341
+ sx: {
342
+ color: "#fff",
343
+ zIndex: (n) => n.zIndex.drawer + 1e3
344
+ },
345
+ open: b,
346
+ children: /* @__PURE__ */ e(w, { color: "inherit" })
347
+ }
348
+ ),
349
+ /* @__PURE__ */ e(a, { className: i.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "My Documents" }) }),
350
+ l.length > 0 && /* @__PURE__ */ t(
351
+ Ne,
352
+ {
353
+ className: `${y ? i["delete-disable"] : i["confirm-edit"]} normal-text`,
354
+ sx: { mt: 3, mb: 3 },
355
+ variant: "contained",
356
+ onClick: () => E((n) => !n),
357
+ children: [
358
+ /* @__PURE__ */ e(oe, {}),
359
+ "Delete"
360
+ ]
361
+ }
362
+ ),
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" })
367
+ ] }),
368
+ /* @__PURE__ */ e(
369
+ g,
370
+ {
371
+ sx: { mt: 4 },
372
+ onClick: () => G(!0),
373
+ fullWidth: !0,
374
+ children: /* @__PURE__ */ e("strong", { children: "Add new document" })
375
+ }
376
+ ),
377
+ /* @__PURE__ */ t(
378
+ L,
379
+ {
380
+ open: W,
381
+ fullWidth: !0,
382
+ onClose: () => O(!1),
383
+ children: [
384
+ /* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
385
+ T,
386
+ {
387
+ "aria-label": "close",
388
+ onClick: () => O(!1),
389
+ sx: {
390
+ position: "absolute",
391
+ right: 8,
392
+ top: 8,
393
+ color: "#16359D"
394
+ },
395
+ children: /* @__PURE__ */ e(F, {})
396
+ }
397
+ ) }),
398
+ /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
399
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(c, { children: "Add Document Modal" }) })
400
+ ]
401
+ }
402
+ ),
403
+ /* @__PURE__ */ t(
404
+ L,
405
+ {
406
+ open: !!N,
407
+ fullWidth: !0,
408
+ onClose: () => s(J()),
409
+ children: [
410
+ /* @__PURE__ */ e($, { sx: { mt: 1, p: 2, color: "#16359D" }, children: /* @__PURE__ */ e(
411
+ T,
412
+ {
413
+ "aria-label": "close",
414
+ onClick: () => s(J()),
415
+ sx: {
416
+ position: "absolute",
417
+ right: 8,
418
+ top: 8,
419
+ color: "#16359D"
420
+ },
421
+ children: /* @__PURE__ */ e(F, {})
422
+ }
423
+ ) }),
424
+ /* @__PURE__ */ e(V, { sx: { mt: 2 } }),
425
+ /* @__PURE__ */ e(z, { children: /* @__PURE__ */ t(c, { children: [
426
+ /* @__PURE__ */ e(a, { variant: "h5", mb: 3, children: "Front Image" }),
427
+ /* @__PURE__ */ e(
428
+ "img",
429
+ {
430
+ className: i["video-box-inner-content"],
431
+ src: "data:image/jpeg;base64," + N,
432
+ alt: "Front"
433
+ }
434
+ ),
435
+ m && /* @__PURE__ */ t(v, { children: [
436
+ /* @__PURE__ */ e(a, { variant: "h5", mt: 2, mb: 3, children: "Back Image" }),
437
+ /* @__PURE__ */ e(
438
+ "img",
439
+ {
440
+ className: i["video-box-inner-content"],
441
+ src: "data:image/jpeg;base64," + m,
442
+ alt: "Back"
443
+ }
444
+ )
445
+ ] })
446
+ ] }) })
447
+ ]
448
+ }
449
+ ),
450
+ /* @__PURE__ */ t(
451
+ L,
452
+ {
453
+ fullWidth: !0,
454
+ open: K,
455
+ onClose: _,
456
+ TransitionComponent: se,
457
+ children: [
458
+ /* @__PURE__ */ t(c, { className: i["asset-header"], children: [
459
+ /* @__PURE__ */ e(
460
+ T,
461
+ {
462
+ "aria-label": "close",
463
+ onClick: () => S(
464
+ P - 1 <= 0 ? 1 : P - 1
465
+ ),
466
+ sx: { color: "#16359d", ml: "20px" },
467
+ children: /* @__PURE__ */ e(ke, {})
468
+ }
469
+ ),
470
+ /* @__PURE__ */ e(
471
+ a,
472
+ {
473
+ className: "secondary-text-color",
474
+ variant: "subtitle1",
475
+ component: "p",
476
+ children: /* @__PURE__ */ e("strong", { children: "Add new document" })
477
+ }
478
+ ),
479
+ /* @__PURE__ */ e(
480
+ T,
481
+ {
482
+ "aria-label": "close",
483
+ onClick: _,
484
+ className: i["asset-close-btn"],
485
+ children: /* @__PURE__ */ e(F, {})
486
+ }
487
+ )
488
+ ] }),
489
+ /* @__PURE__ */ e(z, { sx: { padding: "20px 45px" }, dividers: !0, children: {
490
+ 1: /* @__PURE__ */ e(
491
+ Re,
492
+ {
493
+ showAlertMessage: o,
494
+ documentName: U,
495
+ setDocumentName: Q,
496
+ setDocumentScreen: S
497
+ }
498
+ ),
499
+ 2: /* @__PURE__ */ e(
500
+ we,
501
+ {
502
+ showAlertMessage: o,
503
+ setDocumentScreen: S,
504
+ documentFile: R,
505
+ setDocumentFile: B,
506
+ uploadDocument: q,
507
+ uploadLoader: k
508
+ }
509
+ ),
510
+ 3: /* @__PURE__ */ e(
511
+ We,
512
+ {
513
+ showAlertMessage: o,
514
+ setDocumentScreen: S,
515
+ documentFile: R,
516
+ setDocumentFile: B,
517
+ uploadDocument: q,
518
+ uploadLoader: k
519
+ }
520
+ )
521
+ }[P] })
522
+ ]
523
+ }
524
+ )
525
+ ] });
526
+ };
28
527
  export {
29
- B as default
528
+ at as default
30
529
  };