@fileflow/sdk 0.1.3 → 0.1.5
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.
- package/dist/{ImportWizard-BkHlsJ8v.mjs → ImportWizard-CtAWJz5i.mjs} +520 -496
- package/dist/{ImportWizard-BkHlsJ8v.mjs.map → ImportWizard-CtAWJz5i.mjs.map} +1 -1
- package/dist/ImportWizard-D7zGFzbo.js +68 -0
- package/dist/{ImportWizard-mc9UDwP3.js.map → ImportWizard-D7zGFzbo.js.map} +1 -1
- package/dist/KYCWizard-DpNw8vOY.mjs +741 -0
- package/dist/KYCWizard-DpNw8vOY.mjs.map +1 -0
- package/dist/KYCWizard-VcCyxPjW.js +32 -0
- package/dist/KYCWizard-VcCyxPjW.js.map +1 -0
- package/dist/import.d.ts +11 -1
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/index-CEvc89fO.mjs +9086 -0
- package/dist/index-CEvc89fO.mjs.map +1 -0
- package/dist/index-VbMSbLb2.js +112 -0
- package/dist/index-VbMSbLb2.js.map +1 -0
- package/dist/index.d.ts +41 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +27 -19
- package/dist/kyc.js +1 -1
- package/dist/kyc.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ImportWizard-mc9UDwP3.js +0 -68
- package/dist/KYCWizard-CRBXY9Np.js +0 -32
- package/dist/KYCWizard-CRBXY9Np.js.map +0 -1
- package/dist/KYCWizard-D3Leb4rK.mjs +0 -4575
- package/dist/KYCWizard-D3Leb4rK.mjs.map +0 -1
- package/dist/index-BdodGzlO.js +0 -112
- package/dist/index-BdodGzlO.js.map +0 -1
- package/dist/index-CML_nPxo.mjs +0 -5101
- package/dist/index-CML_nPxo.mjs.map +0 -1
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
import { jsxs as r, jsx as f, Fragment as le } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as X, useState as oe, useEffect as de } from "react";
|
|
3
|
+
import { f as D, h as me, D as z, u as ue, X as Z, j as g, U as pe, A as ge, k as Y, m as H, L as T, n as V, g as M, o as he } from "./index-CEvc89fO.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.321.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const xe = D("Car", [
|
|
11
|
+
[
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",
|
|
15
|
+
key: "5owen"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
["circle", { cx: "7", cy: "17", r: "2", key: "u2ysq9" }],
|
|
19
|
+
["path", { d: "M9 17h6", key: "r8uit2" }],
|
|
20
|
+
["circle", { cx: "17", cy: "17", r: "2", key: "axvx0g" }]
|
|
21
|
+
]);
|
|
22
|
+
/**
|
|
23
|
+
* @license lucide-react v0.321.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
const K = D("Clock", [
|
|
29
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
30
|
+
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
31
|
+
]);
|
|
32
|
+
/**
|
|
33
|
+
* @license lucide-react v0.321.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/
|
|
38
|
+
const G = D("FileText", [
|
|
39
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
40
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
41
|
+
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
42
|
+
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
43
|
+
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* @license lucide-react v0.321.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
const ye = D("Home", [
|
|
52
|
+
["path", { d: "m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", key: "y5dka4" }],
|
|
53
|
+
["polyline", { points: "9 22 9 12 15 12 15 22", key: "e2us08" }]
|
|
54
|
+
]);
|
|
55
|
+
/**
|
|
56
|
+
* @license lucide-react v0.321.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/
|
|
61
|
+
const ve = D("Image", [
|
|
62
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
63
|
+
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
64
|
+
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
65
|
+
]);
|
|
66
|
+
/**
|
|
67
|
+
* @license lucide-react v0.321.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/
|
|
72
|
+
const B = D("ShieldCheck", [
|
|
73
|
+
["path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10", key: "1irkt0" }],
|
|
74
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
75
|
+
]), W = (i) => ({
|
|
76
|
+
id: null,
|
|
77
|
+
type: i,
|
|
78
|
+
status: "uploaded",
|
|
79
|
+
file: null,
|
|
80
|
+
previewUrl: null,
|
|
81
|
+
extractedData: null,
|
|
82
|
+
confidence: 0,
|
|
83
|
+
fraudFlags: [],
|
|
84
|
+
error: null
|
|
85
|
+
}), $ = {
|
|
86
|
+
sessionId: null,
|
|
87
|
+
status: "idle",
|
|
88
|
+
step: "select",
|
|
89
|
+
requiredDocuments: [],
|
|
90
|
+
currentDocumentType: null,
|
|
91
|
+
documents: /* @__PURE__ */ new Map(),
|
|
92
|
+
isVerified: !1,
|
|
93
|
+
verificationStatus: null,
|
|
94
|
+
isLoading: !1,
|
|
95
|
+
error: null
|
|
96
|
+
}, P = me((i, o) => ({
|
|
97
|
+
...$,
|
|
98
|
+
setSessionId: (s) => i({ sessionId: s }),
|
|
99
|
+
setRequiredDocuments: (s) => {
|
|
100
|
+
const e = /* @__PURE__ */ new Map();
|
|
101
|
+
for (const c of s)
|
|
102
|
+
e.set(c, W(c));
|
|
103
|
+
i({
|
|
104
|
+
requiredDocuments: s,
|
|
105
|
+
documents: e,
|
|
106
|
+
currentDocumentType: s[0] || null
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
setCurrentDocumentType: (s) => i({ currentDocumentType: s }),
|
|
110
|
+
setDocumentFile: (s, e) => {
|
|
111
|
+
const { documents: c } = o(), t = c.get(s) || W(s), a = URL.createObjectURL(e), u = new Map(c);
|
|
112
|
+
u.set(s, {
|
|
113
|
+
...t,
|
|
114
|
+
file: e,
|
|
115
|
+
previewUrl: a,
|
|
116
|
+
status: "uploaded",
|
|
117
|
+
error: null
|
|
118
|
+
}), i({ documents: u });
|
|
119
|
+
},
|
|
120
|
+
setDocumentStatus: (s, e) => {
|
|
121
|
+
const { documents: c } = o(), t = c.get(s);
|
|
122
|
+
if (t) {
|
|
123
|
+
const a = new Map(c);
|
|
124
|
+
a.set(s, { ...t, status: e }), i({ documents: a });
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
setDocumentData: (s, e) => {
|
|
128
|
+
const { documents: c } = o(), t = c.get(s);
|
|
129
|
+
if (t) {
|
|
130
|
+
const a = new Map(c);
|
|
131
|
+
a.set(s, { ...t, ...e }), i({ documents: a });
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
clearDocumentPreview: (s) => {
|
|
135
|
+
const { documents: e } = o(), c = e.get(s);
|
|
136
|
+
c != null && c.previewUrl && URL.revokeObjectURL(c.previewUrl);
|
|
137
|
+
},
|
|
138
|
+
setStep: (s) => i({ step: s }),
|
|
139
|
+
nextDocument: () => {
|
|
140
|
+
const { requiredDocuments: s, currentDocumentType: e, documents: c } = o(), t = e ? s.indexOf(e) : -1;
|
|
141
|
+
for (let a = t + 1; a < s.length; a++) {
|
|
142
|
+
const u = s[a], d = c.get(u);
|
|
143
|
+
if (!(d != null && d.file)) {
|
|
144
|
+
i({ currentDocumentType: u });
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
i({
|
|
149
|
+
currentDocumentType: null,
|
|
150
|
+
step: "processing"
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
setVerificationStatus: (s) => i({ verificationStatus: s }),
|
|
154
|
+
setVerified: (s) => i({ isVerified: s }),
|
|
155
|
+
setStatus: (s) => i({ status: s }),
|
|
156
|
+
setLoading: (s) => i({ isLoading: s }),
|
|
157
|
+
setError: (s) => i({ error: s }),
|
|
158
|
+
getNextRequiredDocument: () => {
|
|
159
|
+
const { requiredDocuments: s, documents: e } = o();
|
|
160
|
+
for (const c of s) {
|
|
161
|
+
const t = e.get(c);
|
|
162
|
+
if (!(t != null && t.file))
|
|
163
|
+
return c;
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
},
|
|
167
|
+
areAllDocumentsUploaded: () => {
|
|
168
|
+
const { requiredDocuments: s, documents: e } = o();
|
|
169
|
+
return s.every((c) => {
|
|
170
|
+
const t = e.get(c);
|
|
171
|
+
return (t == null ? void 0 : t.file) !== null;
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
areAllDocumentsProcessed: () => {
|
|
175
|
+
const { requiredDocuments: s, documents: e } = o();
|
|
176
|
+
return s.every((c) => {
|
|
177
|
+
const t = e.get(c);
|
|
178
|
+
return (t == null ? void 0 : t.status) === "completed" || (t == null ? void 0 : t.status) === "requires_review";
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
reset: () => {
|
|
182
|
+
const { documents: s } = o();
|
|
183
|
+
for (const e of s.values())
|
|
184
|
+
e.previewUrl && URL.revokeObjectURL(e.previewUrl);
|
|
185
|
+
i($);
|
|
186
|
+
}
|
|
187
|
+
})), Ne = ({
|
|
188
|
+
documentType: i,
|
|
189
|
+
onFileSelect: o
|
|
190
|
+
}) => {
|
|
191
|
+
const { documents: s, setDocumentFile: e, isLoading: c } = P(), t = s.get(i), a = z[i], u = X(
|
|
192
|
+
(m, L) => {
|
|
193
|
+
if (!(L.length > 0) && m.length > 0) {
|
|
194
|
+
const h = m[0];
|
|
195
|
+
e(i, h), o == null || o(h);
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
[i, o, e]
|
|
199
|
+
), { getRootProps: d, getInputProps: U, isDragActive: y } = ue({
|
|
200
|
+
onDrop: u,
|
|
201
|
+
accept: {
|
|
202
|
+
"application/pdf": [".pdf"],
|
|
203
|
+
"image/jpeg": [".jpg", ".jpeg"],
|
|
204
|
+
"image/png": [".png"]
|
|
205
|
+
},
|
|
206
|
+
maxSize: a.maxFileSize,
|
|
207
|
+
multiple: !1,
|
|
208
|
+
disabled: c
|
|
209
|
+
}), k = (m) => m < 1024 ? `${m} B` : m < 1024 * 1024 ? `${(m / 1024).toFixed(1)} KB` : `${(m / (1024 * 1024)).toFixed(1)} MB`, F = () => {
|
|
210
|
+
var m;
|
|
211
|
+
return ((m = t == null ? void 0 : t.file) == null ? void 0 : m.type) === "application/pdf" ? /* @__PURE__ */ f(G, { className: "ff-w-6 ff-h-6" }) : /* @__PURE__ */ f(ve, { className: "ff-w-6 ff-h-6" });
|
|
212
|
+
}, R = (m) => {
|
|
213
|
+
m.stopPropagation(), P.getState().clearDocumentPreview(i), e(i, null);
|
|
214
|
+
};
|
|
215
|
+
return t != null && t.file && t.previewUrl ? /* @__PURE__ */ r("div", { className: "ff-space-y-4", children: [
|
|
216
|
+
/* @__PURE__ */ f("div", { className: "ff-bg-primary-50 ff-border ff-border-primary-200 ff-rounded-lg ff-p-4", children: /* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
217
|
+
/* @__PURE__ */ f("div", { className: "ff-p-2 ff-bg-primary-100 ff-rounded-lg ff-text-primary-600", children: F() }),
|
|
218
|
+
/* @__PURE__ */ r("div", { className: "ff-flex-1 ff-min-w-0", children: [
|
|
219
|
+
/* @__PURE__ */ f("p", { className: "ff-font-medium ff-text-primary-900 ff-truncate", children: t.file.name }),
|
|
220
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm ff-text-primary-600", children: k(t.file.size) })
|
|
221
|
+
] }),
|
|
222
|
+
/* @__PURE__ */ f(
|
|
223
|
+
"button",
|
|
224
|
+
{
|
|
225
|
+
onClick: R,
|
|
226
|
+
className: "ff-p-1.5 ff-text-primary-600 hover:ff-text-primary-800 hover:ff-bg-primary-100 ff-rounded-full ff-transition-colors",
|
|
227
|
+
"aria-label": "Remove file",
|
|
228
|
+
children: /* @__PURE__ */ f(Z, { className: "ff-w-5 ff-h-5" })
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }) }),
|
|
232
|
+
/* @__PURE__ */ f("div", { className: "ff-document-preview ff-aspect-[3/4] ff-max-h-96", children: t.file.type === "application/pdf" ? /* @__PURE__ */ f(
|
|
233
|
+
"iframe",
|
|
234
|
+
{
|
|
235
|
+
src: t.previewUrl,
|
|
236
|
+
className: "ff-w-full ff-h-full ff-rounded-lg",
|
|
237
|
+
title: "Document preview"
|
|
238
|
+
}
|
|
239
|
+
) : /* @__PURE__ */ f(
|
|
240
|
+
"img",
|
|
241
|
+
{
|
|
242
|
+
src: t.previewUrl,
|
|
243
|
+
alt: "Document preview",
|
|
244
|
+
className: "ff-w-full ff-h-full ff-object-contain ff-rounded-lg"
|
|
245
|
+
}
|
|
246
|
+
) })
|
|
247
|
+
] }) : /* @__PURE__ */ r("div", { className: "ff-space-y-4", children: [
|
|
248
|
+
/* @__PURE__ */ r("div", { className: "ff-text-center ff-mb-4", children: [
|
|
249
|
+
/* @__PURE__ */ f("h3", { className: "ff-text-lg ff-font-semibold ff-text-gray-900", children: a.label }),
|
|
250
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm ff-text-gray-500 ff-mt-1", children: a.description })
|
|
251
|
+
] }),
|
|
252
|
+
/* @__PURE__ */ r(
|
|
253
|
+
"div",
|
|
254
|
+
{
|
|
255
|
+
...d(),
|
|
256
|
+
className: g(
|
|
257
|
+
"ff-dropzone ff-min-h-[200px]",
|
|
258
|
+
y && "ff-dropzone-active",
|
|
259
|
+
c && "ff-opacity-50 ff-cursor-not-allowed"
|
|
260
|
+
),
|
|
261
|
+
children: [
|
|
262
|
+
/* @__PURE__ */ f("input", { ...U() }),
|
|
263
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-flex-col ff-items-center ff-gap-4", children: [
|
|
264
|
+
/* @__PURE__ */ f(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
className: g(
|
|
268
|
+
"ff-p-4 ff-rounded-full",
|
|
269
|
+
y ? "ff-bg-primary-100" : "ff-bg-gray-100"
|
|
270
|
+
),
|
|
271
|
+
children: /* @__PURE__ */ f(
|
|
272
|
+
pe,
|
|
273
|
+
{
|
|
274
|
+
className: g(
|
|
275
|
+
"ff-w-10 ff-h-10",
|
|
276
|
+
y ? "ff-text-primary-600" : "ff-text-gray-400"
|
|
277
|
+
)
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
/* @__PURE__ */ r("div", { className: "ff-text-center", children: [
|
|
283
|
+
/* @__PURE__ */ f("p", { className: "ff-text-base ff-font-medium ff-text-gray-700", children: y ? "Drop your document here" : "Upload your document" }),
|
|
284
|
+
/* @__PURE__ */ r("p", { className: "ff-text-sm ff-text-gray-500 ff-mt-1", children: [
|
|
285
|
+
"Drag & drop or",
|
|
286
|
+
" ",
|
|
287
|
+
/* @__PURE__ */ f("span", { className: "ff-text-primary-600 ff-font-medium", children: "browse files" })
|
|
288
|
+
] })
|
|
289
|
+
] }),
|
|
290
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-flex-wrap ff-justify-center ff-gap-2 ff-text-xs ff-text-gray-400", children: [
|
|
291
|
+
a.acceptedFormats.map((m) => /* @__PURE__ */ f("span", { className: "ff-px-2 ff-py-1 ff-bg-gray-100 ff-rounded", children: m.toUpperCase() }, m)),
|
|
292
|
+
/* @__PURE__ */ r("span", { className: "ff-px-2 ff-py-1", children: [
|
|
293
|
+
"Max ",
|
|
294
|
+
k(a.maxFileSize)
|
|
295
|
+
] })
|
|
296
|
+
] })
|
|
297
|
+
] })
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
),
|
|
301
|
+
(t == null ? void 0 : t.error) && /* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-gap-2 ff-p-3 ff-bg-error-50 ff-text-error-700 ff-rounded-lg", children: [
|
|
302
|
+
/* @__PURE__ */ f(ge, { className: "ff-w-4 ff-h-4 ff-flex-shrink-0" }),
|
|
303
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm", children: t.error })
|
|
304
|
+
] }),
|
|
305
|
+
/* @__PURE__ */ r("div", { className: "ff-bg-gray-50 ff-rounded-lg ff-p-4", children: [
|
|
306
|
+
/* @__PURE__ */ f("h4", { className: "ff-text-sm ff-font-medium ff-text-gray-700 ff-mb-2", children: "Tips for best results:" }),
|
|
307
|
+
/* @__PURE__ */ r("ul", { className: "ff-text-sm ff-text-gray-500 ff-space-y-1 ff-list-disc ff-list-inside", children: [
|
|
308
|
+
/* @__PURE__ */ f("li", { children: "Ensure all text is clearly visible and readable" }),
|
|
309
|
+
/* @__PURE__ */ f("li", { children: "Avoid glare, shadows, or blurry images" }),
|
|
310
|
+
/* @__PURE__ */ f("li", { children: "Include all four corners of the document" }),
|
|
311
|
+
/* @__PURE__ */ f("li", { children: "Use good lighting when taking photos" })
|
|
312
|
+
] })
|
|
313
|
+
] })
|
|
314
|
+
] });
|
|
315
|
+
}, be = ({
|
|
316
|
+
documentType: i,
|
|
317
|
+
showDetails: o = !0
|
|
318
|
+
}) => {
|
|
319
|
+
const { documents: s } = P(), e = s.get(i), c = z[i], a = ((d) => {
|
|
320
|
+
switch (d) {
|
|
321
|
+
case "completed":
|
|
322
|
+
return {
|
|
323
|
+
icon: V,
|
|
324
|
+
color: "ff-text-success-600",
|
|
325
|
+
bgColor: "ff-bg-success-100",
|
|
326
|
+
label: "Verified",
|
|
327
|
+
description: "Document successfully processed"
|
|
328
|
+
};
|
|
329
|
+
case "requires_review":
|
|
330
|
+
return {
|
|
331
|
+
icon: H,
|
|
332
|
+
color: "ff-text-warning-600",
|
|
333
|
+
bgColor: "ff-bg-warning-100",
|
|
334
|
+
label: "Review Required",
|
|
335
|
+
description: "Manual verification may be needed"
|
|
336
|
+
};
|
|
337
|
+
case "failed":
|
|
338
|
+
return {
|
|
339
|
+
icon: Y,
|
|
340
|
+
color: "ff-text-error-600",
|
|
341
|
+
bgColor: "ff-bg-error-100",
|
|
342
|
+
label: "Failed",
|
|
343
|
+
description: "Unable to process document"
|
|
344
|
+
};
|
|
345
|
+
case "processing":
|
|
346
|
+
return {
|
|
347
|
+
icon: T,
|
|
348
|
+
color: "ff-text-primary-600",
|
|
349
|
+
bgColor: "ff-bg-primary-100",
|
|
350
|
+
label: "Processing",
|
|
351
|
+
description: "Analyzing document..."
|
|
352
|
+
};
|
|
353
|
+
case "uploaded":
|
|
354
|
+
return {
|
|
355
|
+
icon: K,
|
|
356
|
+
color: "ff-text-gray-600",
|
|
357
|
+
bgColor: "ff-bg-gray-100",
|
|
358
|
+
label: "Pending",
|
|
359
|
+
description: "Waiting to be processed"
|
|
360
|
+
};
|
|
361
|
+
default:
|
|
362
|
+
return {
|
|
363
|
+
icon: K,
|
|
364
|
+
color: "ff-text-gray-400",
|
|
365
|
+
bgColor: "ff-bg-gray-100",
|
|
366
|
+
label: "Not Uploaded",
|
|
367
|
+
description: "Upload document to continue"
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
})(e == null ? void 0 : e.status), u = a.icon;
|
|
371
|
+
return /* @__PURE__ */ r("div", { className: "ff-space-y-3", children: [
|
|
372
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
373
|
+
/* @__PURE__ */ f("div", { className: g("ff-p-2 ff-rounded-lg", a.bgColor), children: /* @__PURE__ */ f(
|
|
374
|
+
u,
|
|
375
|
+
{
|
|
376
|
+
className: g(
|
|
377
|
+
"ff-w-5 ff-h-5",
|
|
378
|
+
a.color,
|
|
379
|
+
(e == null ? void 0 : e.status) === "processing" && "ff-animate-spin"
|
|
380
|
+
)
|
|
381
|
+
}
|
|
382
|
+
) }),
|
|
383
|
+
/* @__PURE__ */ r("div", { children: [
|
|
384
|
+
/* @__PURE__ */ f("p", { className: "ff-font-medium ff-text-gray-900", children: c.label }),
|
|
385
|
+
/* @__PURE__ */ f("p", { className: g("ff-text-sm", a.color), children: a.label })
|
|
386
|
+
] })
|
|
387
|
+
] }),
|
|
388
|
+
(e == null ? void 0 : e.confidence) !== void 0 && e.confidence > 0 && /* @__PURE__ */ r("div", { className: "ff-space-y-1", children: [
|
|
389
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-justify-between ff-text-sm", children: [
|
|
390
|
+
/* @__PURE__ */ f("span", { className: "ff-text-gray-600", children: "Confidence" }),
|
|
391
|
+
/* @__PURE__ */ r(
|
|
392
|
+
"span",
|
|
393
|
+
{
|
|
394
|
+
className: g(
|
|
395
|
+
"ff-font-medium",
|
|
396
|
+
e.confidence >= 0.8 && "ff-text-success-600",
|
|
397
|
+
e.confidence >= 0.6 && e.confidence < 0.8 && "ff-text-warning-600",
|
|
398
|
+
e.confidence < 0.6 && "ff-text-error-600"
|
|
399
|
+
),
|
|
400
|
+
children: [
|
|
401
|
+
Math.round(e.confidence * 100),
|
|
402
|
+
"%"
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
)
|
|
406
|
+
] }),
|
|
407
|
+
/* @__PURE__ */ f("div", { className: "ff-progress", children: /* @__PURE__ */ f(
|
|
408
|
+
"div",
|
|
409
|
+
{
|
|
410
|
+
className: g(
|
|
411
|
+
"ff-progress-bar",
|
|
412
|
+
e.confidence >= 0.8 && "ff-bg-success-500",
|
|
413
|
+
e.confidence >= 0.6 && e.confidence < 0.8 && "ff-bg-warning-500",
|
|
414
|
+
e.confidence < 0.6 && "ff-bg-error-500"
|
|
415
|
+
),
|
|
416
|
+
style: { width: `${e.confidence * 100}%` }
|
|
417
|
+
}
|
|
418
|
+
) })
|
|
419
|
+
] }),
|
|
420
|
+
o && (e == null ? void 0 : e.fraudFlags) && e.fraudFlags.length > 0 && /* @__PURE__ */ r("div", { className: "ff-space-y-2", children: [
|
|
421
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm ff-font-medium ff-text-gray-700", children: "Issues Detected" }),
|
|
422
|
+
/* @__PURE__ */ f("div", { className: "ff-space-y-1", children: e.fraudFlags.map((d, U) => /* @__PURE__ */ r(
|
|
423
|
+
"div",
|
|
424
|
+
{
|
|
425
|
+
className: g(
|
|
426
|
+
"ff-flex ff-items-start ff-gap-2 ff-p-2 ff-rounded ff-text-sm",
|
|
427
|
+
d.severity === "high" && "ff-bg-error-50 ff-text-error-700",
|
|
428
|
+
d.severity === "medium" && "ff-bg-warning-50 ff-text-warning-700",
|
|
429
|
+
d.severity === "low" && "ff-bg-gray-50 ff-text-gray-600"
|
|
430
|
+
),
|
|
431
|
+
children: [
|
|
432
|
+
d.severity === "high" ? /* @__PURE__ */ f(Y, { className: "ff-w-4 ff-h-4 ff-flex-shrink-0 ff-mt-0.5" }) : /* @__PURE__ */ f(H, { className: "ff-w-4 ff-h-4 ff-flex-shrink-0 ff-mt-0.5" }),
|
|
433
|
+
/* @__PURE__ */ f("span", { children: d.message })
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
U
|
|
437
|
+
)) })
|
|
438
|
+
] }),
|
|
439
|
+
o && (e == null ? void 0 : e.extractedData) && e.status === "completed" && /* @__PURE__ */ r("div", { className: "ff-bg-gray-50 ff-rounded-lg ff-p-3", children: [
|
|
440
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm ff-font-medium ff-text-gray-700 ff-mb-2", children: "Extracted Information" }),
|
|
441
|
+
/* @__PURE__ */ r("dl", { className: "ff-space-y-1 ff-text-sm", children: [
|
|
442
|
+
"fullName" in e.extractedData && /* @__PURE__ */ r("div", { className: "ff-flex ff-justify-between", children: [
|
|
443
|
+
/* @__PURE__ */ f("dt", { className: "ff-text-gray-500", children: "Name" }),
|
|
444
|
+
/* @__PURE__ */ f("dd", { className: "ff-text-gray-900 ff-font-medium", children: e.extractedData.fullName })
|
|
445
|
+
] }),
|
|
446
|
+
"dateOfBirth" in e.extractedData && /* @__PURE__ */ r("div", { className: "ff-flex ff-justify-between", children: [
|
|
447
|
+
/* @__PURE__ */ f("dt", { className: "ff-text-gray-500", children: "Date of Birth" }),
|
|
448
|
+
/* @__PURE__ */ f("dd", { className: "ff-text-gray-900", children: e.extractedData.dateOfBirth })
|
|
449
|
+
] }),
|
|
450
|
+
e.extractedData.documentType === "passport" && "passportNumber" in e.extractedData && /* @__PURE__ */ r("div", { className: "ff-flex ff-justify-between", children: [
|
|
451
|
+
/* @__PURE__ */ f("dt", { className: "ff-text-gray-500", children: "Passport #" }),
|
|
452
|
+
/* @__PURE__ */ f("dd", { className: "ff-text-gray-900 ff-font-mono", children: e.extractedData.passportNumber })
|
|
453
|
+
] }),
|
|
454
|
+
e.extractedData.documentType === "drivers_license" && "licenseNumber" in e.extractedData && /* @__PURE__ */ r("div", { className: "ff-flex ff-justify-between", children: [
|
|
455
|
+
/* @__PURE__ */ f("dt", { className: "ff-text-gray-500", children: "License #" }),
|
|
456
|
+
/* @__PURE__ */ f("dd", { className: "ff-text-gray-900 ff-font-mono", children: e.extractedData.licenseNumber })
|
|
457
|
+
] }),
|
|
458
|
+
"address" in e.extractedData && e.extractedData.address && /* @__PURE__ */ r("div", { className: "ff-flex ff-justify-between", children: [
|
|
459
|
+
/* @__PURE__ */ f("dt", { className: "ff-text-gray-500", children: "Address" }),
|
|
460
|
+
/* @__PURE__ */ r("dd", { className: "ff-text-gray-900 ff-text-right", children: [
|
|
461
|
+
e.extractedData.address.city,
|
|
462
|
+
",",
|
|
463
|
+
" ",
|
|
464
|
+
e.extractedData.address.province
|
|
465
|
+
] })
|
|
466
|
+
] })
|
|
467
|
+
] })
|
|
468
|
+
] })
|
|
469
|
+
] });
|
|
470
|
+
}, we = {
|
|
471
|
+
passport: G,
|
|
472
|
+
drivers_license: xe,
|
|
473
|
+
proof_of_address: ye
|
|
474
|
+
}, je = ({
|
|
475
|
+
requiredDocuments: i,
|
|
476
|
+
onComplete: o,
|
|
477
|
+
onCancel: s,
|
|
478
|
+
onError: e
|
|
479
|
+
}) => {
|
|
480
|
+
const {
|
|
481
|
+
sessionId: c,
|
|
482
|
+
step: t,
|
|
483
|
+
currentDocumentType: a,
|
|
484
|
+
documents: u,
|
|
485
|
+
isVerified: d,
|
|
486
|
+
verificationStatus: U,
|
|
487
|
+
isLoading: y,
|
|
488
|
+
error: k,
|
|
489
|
+
setSessionId: F,
|
|
490
|
+
setRequiredDocuments: R,
|
|
491
|
+
setCurrentDocumentType: m,
|
|
492
|
+
setDocumentStatus: L,
|
|
493
|
+
setDocumentData: h,
|
|
494
|
+
setStep: v,
|
|
495
|
+
nextDocument: J,
|
|
496
|
+
setVerificationStatus: Q,
|
|
497
|
+
setVerified: E,
|
|
498
|
+
setLoading: w,
|
|
499
|
+
setError: I,
|
|
500
|
+
areAllDocumentsUploaded: q,
|
|
501
|
+
areAllDocumentsProcessed: A,
|
|
502
|
+
reset: ee
|
|
503
|
+
} = P(), [De, N] = oe(null);
|
|
504
|
+
de(() => (R(i), fe(), () => {
|
|
505
|
+
N(null);
|
|
506
|
+
}), [i]);
|
|
507
|
+
const fe = async () => {
|
|
508
|
+
try {
|
|
509
|
+
w(!0);
|
|
510
|
+
const n = await M().createKYCSession(i);
|
|
511
|
+
F(n.sessionId), v("upload");
|
|
512
|
+
} catch (l) {
|
|
513
|
+
const n = l;
|
|
514
|
+
I(n.message), e == null || e(n);
|
|
515
|
+
} finally {
|
|
516
|
+
w(!1);
|
|
517
|
+
}
|
|
518
|
+
}, te = X(
|
|
519
|
+
async (l) => {
|
|
520
|
+
if (!(!c || !a))
|
|
521
|
+
try {
|
|
522
|
+
w(!0), I(null);
|
|
523
|
+
const p = await M().uploadKYCDocument(c, a, l);
|
|
524
|
+
h(a, {
|
|
525
|
+
id: p.documentId,
|
|
526
|
+
status: "processing"
|
|
527
|
+
}), N(p.documentId), se(p.documentId);
|
|
528
|
+
} catch (n) {
|
|
529
|
+
const p = n;
|
|
530
|
+
h(a, {
|
|
531
|
+
status: "failed",
|
|
532
|
+
error: p.message
|
|
533
|
+
}), e == null || e(p);
|
|
534
|
+
} finally {
|
|
535
|
+
w(!1);
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
[c, a]
|
|
539
|
+
), se = async (l) => {
|
|
540
|
+
let b = 0, C = 0;
|
|
541
|
+
const S = async () => {
|
|
542
|
+
var _;
|
|
543
|
+
if (b >= 30) {
|
|
544
|
+
N(null), a && h(a, {
|
|
545
|
+
status: "failed",
|
|
546
|
+
error: "Processing timed out. Please try again."
|
|
547
|
+
});
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
if (C >= 3) {
|
|
551
|
+
N(null), a && h(a, {
|
|
552
|
+
status: "failed",
|
|
553
|
+
error: "Failed to check document status. Please refresh and try again."
|
|
554
|
+
});
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
try {
|
|
558
|
+
const x = (await M().getKYCDocument(l)).document;
|
|
559
|
+
C = 0;
|
|
560
|
+
const ne = x.type;
|
|
561
|
+
if (h(ne, {
|
|
562
|
+
id: x.id,
|
|
563
|
+
status: x.status,
|
|
564
|
+
extractedData: x.extractedData,
|
|
565
|
+
confidence: x.confidence,
|
|
566
|
+
fraudFlags: x.fraudFlags,
|
|
567
|
+
error: null
|
|
568
|
+
// Clear any previous errors
|
|
569
|
+
}), x.status === "completed" || x.status === "requires_review" || x.status === "failed") {
|
|
570
|
+
N(null), q() ? A() && v("review") : J();
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
b++, setTimeout(S, 2e3);
|
|
574
|
+
} catch (O) {
|
|
575
|
+
const j = O;
|
|
576
|
+
if (C++, b++, j.status === 404 || (_ = j.message) != null && _.includes("not found")) {
|
|
577
|
+
N(null), a && h(a, {
|
|
578
|
+
status: "failed",
|
|
579
|
+
error: "Session not found or invalid state"
|
|
580
|
+
});
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
C < 3 ? setTimeout(S, 3e3 * C) : (N(null), a && h(a, {
|
|
584
|
+
status: "failed",
|
|
585
|
+
error: j.message || "Failed to process document"
|
|
586
|
+
}));
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
S();
|
|
590
|
+
}, re = async () => {
|
|
591
|
+
if (c)
|
|
592
|
+
try {
|
|
593
|
+
w(!0), I(null);
|
|
594
|
+
const n = await M().verifyKYCSession(c, !0);
|
|
595
|
+
Q(n.verificationStatus);
|
|
596
|
+
const p = n.verificationStatus;
|
|
597
|
+
E(p.isVerified), v("complete"), o == null || o(n);
|
|
598
|
+
} catch (l) {
|
|
599
|
+
const n = l;
|
|
600
|
+
I(n.message), e == null || e(n);
|
|
601
|
+
} finally {
|
|
602
|
+
w(!1);
|
|
603
|
+
}
|
|
604
|
+
}, ae = () => {
|
|
605
|
+
ee(), s == null || s();
|
|
606
|
+
}, ce = (l) => {
|
|
607
|
+
m(l), v("upload");
|
|
608
|
+
}, ie = (l) => {
|
|
609
|
+
const n = u.get(l);
|
|
610
|
+
return (n == null ? void 0 : n.status) === "completed" || (n == null ? void 0 : n.status) === "requires_review";
|
|
611
|
+
};
|
|
612
|
+
return /* @__PURE__ */ r("div", { className: "ff-container ff-bg-white ff-rounded-xl ff-shadow-xl ff-overflow-hidden ff-flex ff-flex-col ff-max-h-[90vh]", children: [
|
|
613
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-justify-between ff-px-6 ff-py-4 ff-border-b ff-border-gray-200 ff-bg-gray-50 ff-flex-shrink-0", children: [
|
|
614
|
+
/* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-gap-3", children: [
|
|
615
|
+
/* @__PURE__ */ f(B, { className: "ff-w-6 ff-h-6 ff-text-primary-600" }),
|
|
616
|
+
/* @__PURE__ */ f("h2", { className: "ff-text-xl ff-font-semibold ff-text-gray-900", children: "Identity Verification" })
|
|
617
|
+
] }),
|
|
618
|
+
/* @__PURE__ */ f(
|
|
619
|
+
"button",
|
|
620
|
+
{
|
|
621
|
+
onClick: ae,
|
|
622
|
+
className: "ff-p-2 ff-text-gray-400 hover:ff-text-gray-600 ff-rounded-full hover:ff-bg-gray-100",
|
|
623
|
+
children: /* @__PURE__ */ f(Z, { className: "ff-w-5 ff-h-5" })
|
|
624
|
+
}
|
|
625
|
+
)
|
|
626
|
+
] }),
|
|
627
|
+
/* @__PURE__ */ r("div", { className: "ff-p-6 ff-overflow-y-auto ff-flex-1 ff-min-h-0", children: [
|
|
628
|
+
k && /* @__PURE__ */ f("div", { className: "ff-mb-4 ff-p-4 ff-bg-error-50 ff-border ff-border-error-200 ff-rounded-lg ff-text-error-700", children: k }),
|
|
629
|
+
t === "select" && /* @__PURE__ */ r("div", { className: "ff-space-y-4", children: [
|
|
630
|
+
/* @__PURE__ */ f("p", { className: "ff-text-gray-600 ff-text-center ff-mb-6", children: "Please upload the following documents to verify your identity" }),
|
|
631
|
+
/* @__PURE__ */ f("div", { className: "ff-grid ff-gap-4", children: i.map((l) => {
|
|
632
|
+
const n = we[l], p = z[l];
|
|
633
|
+
u.get(l);
|
|
634
|
+
const b = ie(l);
|
|
635
|
+
return /* @__PURE__ */ r(
|
|
636
|
+
"button",
|
|
637
|
+
{
|
|
638
|
+
onClick: () => ce(l),
|
|
639
|
+
className: g(
|
|
640
|
+
"ff-flex ff-items-center ff-gap-4 ff-p-4 ff-rounded-lg ff-border-2 ff-text-left ff-transition-all",
|
|
641
|
+
b ? "ff-border-success-300 ff-bg-success-50" : "ff-border-gray-200 hover:ff-border-primary-300 hover:ff-bg-primary-50"
|
|
642
|
+
),
|
|
643
|
+
children: [
|
|
644
|
+
/* @__PURE__ */ f(
|
|
645
|
+
"div",
|
|
646
|
+
{
|
|
647
|
+
className: g(
|
|
648
|
+
"ff-p-3 ff-rounded-lg",
|
|
649
|
+
b ? "ff-bg-success-100" : "ff-bg-gray-100"
|
|
650
|
+
),
|
|
651
|
+
children: b ? /* @__PURE__ */ f(V, { className: "ff-w-6 ff-h-6 ff-text-success-600" }) : /* @__PURE__ */ f(n, { className: "ff-w-6 ff-h-6 ff-text-gray-600" })
|
|
652
|
+
}
|
|
653
|
+
),
|
|
654
|
+
/* @__PURE__ */ r("div", { className: "ff-flex-1", children: [
|
|
655
|
+
/* @__PURE__ */ f("p", { className: "ff-font-medium ff-text-gray-900", children: p.label }),
|
|
656
|
+
/* @__PURE__ */ f("p", { className: "ff-text-sm ff-text-gray-500", children: p.description })
|
|
657
|
+
] }),
|
|
658
|
+
/* @__PURE__ */ f(he, { className: "ff-w-5 ff-h-5 ff-text-gray-400" })
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
l
|
|
662
|
+
);
|
|
663
|
+
}) })
|
|
664
|
+
] }),
|
|
665
|
+
t === "upload" && a && /* @__PURE__ */ f("div", { className: "ff-max-w-lg ff-mx-auto", children: /* @__PURE__ */ f(Ne, { documentType: a, onFileSelect: te }) }),
|
|
666
|
+
t === "processing" && /* @__PURE__ */ r("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-12", children: [
|
|
667
|
+
/* @__PURE__ */ f(T, { className: "ff-w-12 ff-h-12 ff-text-primary-600 ff-animate-spin ff-mb-4" }),
|
|
668
|
+
/* @__PURE__ */ f("h3", { className: "ff-text-lg ff-font-semibold ff-text-gray-900 ff-mb-2", children: "Processing Documents" }),
|
|
669
|
+
/* @__PURE__ */ f("p", { className: "ff-text-gray-500 ff-text-center", children: "We're analyzing your documents. This may take a moment..." })
|
|
670
|
+
] }),
|
|
671
|
+
t === "review" && /* @__PURE__ */ r("div", { className: "ff-space-y-6", children: [
|
|
672
|
+
/* @__PURE__ */ r("div", { className: "ff-text-center ff-mb-6", children: [
|
|
673
|
+
/* @__PURE__ */ f("h3", { className: "ff-text-lg ff-font-semibold ff-text-gray-900", children: "Review Your Documents" }),
|
|
674
|
+
/* @__PURE__ */ f("p", { className: "ff-text-gray-500", children: "Please review the extracted information before completing verification" })
|
|
675
|
+
] }),
|
|
676
|
+
/* @__PURE__ */ f("div", { className: "ff-grid ff-gap-4", children: i.map((l) => /* @__PURE__ */ f(
|
|
677
|
+
"div",
|
|
678
|
+
{
|
|
679
|
+
className: "ff-border ff-border-gray-200 ff-rounded-lg ff-p-4",
|
|
680
|
+
children: /* @__PURE__ */ f(be, { documentType: l, showDetails: !0 })
|
|
681
|
+
},
|
|
682
|
+
l
|
|
683
|
+
)) })
|
|
684
|
+
] }),
|
|
685
|
+
t === "complete" && /* @__PURE__ */ r("div", { className: "ff-flex ff-flex-col ff-items-center ff-justify-center ff-py-12", children: [
|
|
686
|
+
/* @__PURE__ */ f(
|
|
687
|
+
"div",
|
|
688
|
+
{
|
|
689
|
+
className: g(
|
|
690
|
+
"ff-w-16 ff-h-16 ff-rounded-full ff-flex ff-items-center ff-justify-center ff-mb-4",
|
|
691
|
+
d ? "ff-bg-success-100" : "ff-bg-warning-100"
|
|
692
|
+
),
|
|
693
|
+
children: d ? /* @__PURE__ */ f(V, { className: "ff-w-10 ff-h-10 ff-text-success-600" }) : /* @__PURE__ */ f(B, { className: "ff-w-10 ff-h-10 ff-text-warning-600" })
|
|
694
|
+
}
|
|
695
|
+
),
|
|
696
|
+
/* @__PURE__ */ f("h3", { className: "ff-text-xl ff-font-semibold ff-text-gray-900 ff-mb-2", children: d ? "Verification Complete!" : "Review Required" }),
|
|
697
|
+
/* @__PURE__ */ f("p", { className: "ff-text-gray-500 ff-text-center", children: d ? "Your identity has been successfully verified." : "Additional review may be required. We will contact you if needed." })
|
|
698
|
+
] })
|
|
699
|
+
] }),
|
|
700
|
+
t !== "complete" && /* @__PURE__ */ r("div", { className: "ff-flex ff-items-center ff-justify-between ff-px-6 ff-py-4 ff-border-t ff-border-gray-200 ff-bg-gray-50 ff-flex-shrink-0", children: [
|
|
701
|
+
/* @__PURE__ */ f(
|
|
702
|
+
"button",
|
|
703
|
+
{
|
|
704
|
+
onClick: () => {
|
|
705
|
+
(t === "upload" || t === "review") && v("select");
|
|
706
|
+
},
|
|
707
|
+
disabled: y,
|
|
708
|
+
className: "ff-btn ff-btn-secondary",
|
|
709
|
+
children: "Back"
|
|
710
|
+
}
|
|
711
|
+
),
|
|
712
|
+
t === "review" && /* @__PURE__ */ f(
|
|
713
|
+
"button",
|
|
714
|
+
{
|
|
715
|
+
onClick: re,
|
|
716
|
+
disabled: y || !A(),
|
|
717
|
+
className: "ff-btn ff-btn-primary",
|
|
718
|
+
children: y ? /* @__PURE__ */ r(le, { children: [
|
|
719
|
+
/* @__PURE__ */ f(T, { className: "ff-w-4 ff-h-4 ff-mr-2 ff-animate-spin" }),
|
|
720
|
+
"Verifying..."
|
|
721
|
+
] }) : "Complete Verification"
|
|
722
|
+
}
|
|
723
|
+
),
|
|
724
|
+
t === "select" && q() && /* @__PURE__ */ f(
|
|
725
|
+
"button",
|
|
726
|
+
{
|
|
727
|
+
onClick: () => v("review"),
|
|
728
|
+
className: "ff-btn ff-btn-primary",
|
|
729
|
+
children: "Review & Verify"
|
|
730
|
+
}
|
|
731
|
+
)
|
|
732
|
+
] })
|
|
733
|
+
] });
|
|
734
|
+
};
|
|
735
|
+
export {
|
|
736
|
+
Ne as D,
|
|
737
|
+
je as K,
|
|
738
|
+
be as a,
|
|
739
|
+
P as u
|
|
740
|
+
};
|
|
741
|
+
//# sourceMappingURL=KYCWizard-DpNw8vOY.mjs.map
|