@incodetech/web 0.0.0-dev-20260402-728ce7f → 0.0.0-dev-20260403-eccc51c
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/{Trans-DiTufE_D.js → Trans-aTzdT_SA.js} +1 -1
- package/dist/{addressAutocomplete-BSE71Kua.js → addressAutocomplete-C8-wL1j_.js} +4 -4
- package/dist/antifraud/antifraud.es.js +18 -0
- package/dist/antifraud/styles.css +2 -0
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/base.css +8 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/{cameraView-DXT7CWqE.js → cameraView-C2X7klNb.js} +1 -1
- package/dist/{captureOverlay-wQmz2Z5r.js → captureOverlay-tCb4R4WE.js} +18 -17
- package/dist/{checkbox-wo8qk7tM.js → checkbox-B5X-mfqq.js} +2 -2
- package/dist/{chevronDown-BksFjKhp.js → chevronDown-DSHaPKbi.js} +1 -1
- package/dist/{closeIcon-5Xq6MCZa.js → closeIcon-9Hc97omv.js} +1 -1
- package/dist/consent/consent.es.js +24 -23
- package/dist/curp-validation/curp-validation.es.js +75 -74
- package/dist/{dateInputComposed-D5kgh_aC.js → dateInputComposed-C7PCzh-U.js} +3 -3
- package/dist/{documentCapture-8ZOwr7xp.js → documentCapture-C0mO-RGE.js} +111 -110
- package/dist/{dropdownComposed-CzAsPPqv.js → dropdownComposed-BpinYlrx.js} +4 -4
- package/dist/{ekybModule-RZwNRg6E.js → ekybModule-Dr6LJUg-.js} +18 -17
- package/dist/{ekycModule-BgFGstuw.js → ekycModule-C3mswduI.js} +10 -9
- package/dist/email/email.es.js +41 -38
- package/dist/{errorContent-CnY-Deoi.js → errorContent-Cb8nmQAE.js} +14 -13
- package/dist/{errorIcon-DOuc6ONw.js → errorIcon-DEARBrGx.js} +1 -1
- package/dist/extensibility.es.js +47 -45
- package/dist/{faceMatch-DPa3pI88.js → faceMatch-DbDp7D3d.js} +17 -16
- package/dist/{fileIcon-DEli4GR_.js → fileIcon-CCSvS10T.js} +1 -1
- package/dist/{flipAnimation-r4wJkacO.js → flipAnimation-BqV462TA.js} +34 -33
- package/dist/flow/flow.es.js +126 -121
- package/dist/{formField-BoozuV2w.js → formField-CP6wDdfA.js} +29 -28
- package/dist/geolocation/geolocation.es.js +28 -27
- package/dist/governmentValidation/governmentValidation.es.js +8 -8
- package/dist/id/id.es.js +12 -11
- package/dist/index.es.js +16 -15
- package/dist/{inputComposed-QzDneavl.js → inputComposed-fUbAGrDy.js} +4 -4
- package/dist/{uiConfig-DmIn-g8M.js → instance-BWYzq8dk.js} +218 -238
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/{manualCaptureButton-CPZ2xxEI.js → manualCaptureButton-BvFmTyJe.js} +21 -20
- package/dist/{numberedStep-DiiXAKRd.js → numberedStep-DwUB__mh.js} +1 -1
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/{page-D4OThpFS.js → page-SrUl0qtN.js} +16 -15
- package/dist/{permissions-BeU3HuVB.js → permissions-DT4Fz9MR.js} +14 -13
- package/dist/phone/phone.es.js +55 -45
- package/dist/{phoneInput-nmmFFaXI.js → phoneInput-CGr8TxOO.js} +2 -2
- package/dist/{phoneInputComposed-BAFZQ4Y8.js → phoneInputComposed-Cm9O2Jba.js} +5 -5
- package/dist/{processing-Ss26Ad0W.js → processing-szVOCQwZ.js} +3 -3
- package/dist/{richText-Bxe6Ywla.js → richText-cspvNz2a.js} +1 -1
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +10 -9
- package/dist/{spinner-CLwSl2tJ.js → spinner-DygONskw.js} +2 -2
- package/dist/{successIcon-BZphSsQr.js → successIcon-Bjsdc4lF.js} +1 -1
- package/dist/{tutorial-BcX5EaL9.js → tutorial-Cdz1025D.js} +19 -18
- package/dist/types/antifraud.d.ts +35 -0
- package/dist/{typography-CBPoLoAP.js → typography-BDACYR5i.js} +1 -1
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/{warningIcon-xqaHPxjF.js → warningIcon-DQq_MrOB.js} +1 -1
- package/package.json +9 -2
- package/dist/button-DXIWeie9.js +0 -373
- package/dist/mandatoryConsent-fZUmh40x.js +0 -93
- package/dist/otpInput-B85heGC5.js +0 -148
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { b as u, u as e, S as C,
|
|
1
|
+
import { b as u, u as e, S as C, c as L, I as z, a as U } from "./loadingIcon-DmuPXh70.js";
|
|
2
2
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
|
3
|
-
import { A as k, q as Z, k as
|
|
3
|
+
import { A as k, q as Z, k as h, _ as r, g as K, y as B, d as _ } from "./vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
5
|
import { r as $ } from "./incodeModule-C4XIllao.js";
|
|
6
|
-
import { C as j, c as G, b as W, d as q, L as J } from "./captureOverlay-
|
|
7
|
-
import { C as Q, P as X } from "./cameraView-
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
6
|
+
import { C as j, c as G, b as W, d as q, L as J } from "./captureOverlay-tCb4R4WE.js";
|
|
7
|
+
import { C as Q, P as X } from "./cameraView-C2X7klNb.js";
|
|
8
|
+
import "./instance-BWYzq8dk.js";
|
|
9
|
+
import { B as f } from "./button-CE9kRlem.js";
|
|
10
|
+
import { O as Y, C as ee, F as te } from "./fileIcon-CCSvS10T.js";
|
|
11
|
+
import { E as oe } from "./errorContent-Cb8nmQAE.js";
|
|
12
|
+
import { P as y } from "./page-SrUl0qtN.js";
|
|
13
|
+
import { S as ne } from "./successIcon-Bjsdc4lF.js";
|
|
14
|
+
import "./typography-BDACYR5i.js";
|
|
15
|
+
import "./inputComposed-fUbAGrDy.js";
|
|
16
|
+
import "./checkbox-B5X-mfqq.js";
|
|
17
|
+
import "./phoneInputComposed-Cm9O2Jba.js";
|
|
18
|
+
import "./dateInputComposed-C7PCzh-U.js";
|
|
19
|
+
import "./manualCaptureButton-BvFmTyJe.js";
|
|
19
20
|
import "./countries-DfLkrF0x.js";
|
|
20
|
-
import { S as re } from "./spinner-
|
|
21
|
+
import { S as re } from "./spinner-DygONskw.js";
|
|
21
22
|
function ae(t) {
|
|
22
23
|
if (t.readyState < 2 || t.videoWidth === 0 || t.videoHeight === 0)
|
|
23
24
|
return null;
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const a =
|
|
27
|
-
return a ? (a.drawImage(t, 0, 0),
|
|
25
|
+
const n = document.createElement("canvas");
|
|
26
|
+
n.width = t.videoWidth, n.height = t.videoHeight;
|
|
27
|
+
const a = n.getContext("2d");
|
|
28
|
+
return a ? (a.drawImage(t, 0, 0), n.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
|
|
28
29
|
}
|
|
29
30
|
const ie = ({
|
|
30
31
|
stream: t,
|
|
31
|
-
manager:
|
|
32
|
+
manager: n,
|
|
32
33
|
onOpenHelp: a
|
|
33
34
|
}) => {
|
|
34
|
-
const { t:
|
|
35
|
+
const { t: o } = u(), c = k(null), s = Z(() => {
|
|
35
36
|
const l = c.current;
|
|
36
37
|
if (!l) return;
|
|
37
38
|
const i = ae(l);
|
|
@@ -40,8 +41,8 @@ const ie = ({
|
|
|
40
41
|
[Uint8Array.from(atob(i), (m) => m.charCodeAt(0))],
|
|
41
42
|
{ type: "image/jpeg" }
|
|
42
43
|
), p = new File([d], "document.jpg", { type: "image/jpeg" });
|
|
43
|
-
|
|
44
|
-
}, [
|
|
44
|
+
n.setFile(p, `data:image/jpeg;base64,${i}`);
|
|
45
|
+
}, [n]);
|
|
45
46
|
return /* @__PURE__ */ e(
|
|
46
47
|
Q,
|
|
47
48
|
{
|
|
@@ -52,8 +53,8 @@ const ie = ({
|
|
|
52
53
|
/* @__PURE__ */ e(
|
|
53
54
|
G,
|
|
54
55
|
{
|
|
55
|
-
title:
|
|
56
|
-
subtitle:
|
|
56
|
+
title: o("documentCapture.camera.title"),
|
|
57
|
+
subtitle: o("documentCapture.camera.subtitle")
|
|
57
58
|
}
|
|
58
59
|
),
|
|
59
60
|
/* @__PURE__ */ e(C, { size: 16 }),
|
|
@@ -64,9 +65,9 @@ const ie = ({
|
|
|
64
65
|
onOpenHelp: a,
|
|
65
66
|
onCapture: s,
|
|
66
67
|
isManualCapture: !0,
|
|
67
|
-
captureAriaLabel:
|
|
68
|
-
helpAriaLabel:
|
|
69
|
-
encryptionLabel:
|
|
68
|
+
captureAriaLabel: o("manualCapture.ariaLabel"),
|
|
69
|
+
helpAriaLabel: o("documentCapture.needHelp.open"),
|
|
70
|
+
encryptionLabel: o("encryptionLabel.encryptedPhotos")
|
|
70
71
|
}
|
|
71
72
|
)
|
|
72
73
|
] })
|
|
@@ -224,94 +225,94 @@ const ie = ({
|
|
|
224
225
|
], pe = ({
|
|
225
226
|
onClose: t
|
|
226
227
|
}) => {
|
|
227
|
-
const { t:
|
|
228
|
+
const { t: n } = u();
|
|
228
229
|
return /* @__PURE__ */ e(Y, { "aria-labelledby": "document-common-issues-title", children: [
|
|
229
230
|
/* @__PURE__ */ e(
|
|
230
231
|
"h2",
|
|
231
232
|
{
|
|
232
233
|
id: "document-common-issues-title",
|
|
233
234
|
class: "IncodeDocumentCommonIssuesTitle",
|
|
234
|
-
children:
|
|
235
|
+
children: n("commonIssues.commonIssues")
|
|
235
236
|
}
|
|
236
237
|
),
|
|
237
238
|
/* @__PURE__ */ e(C, { size: 32 }),
|
|
238
239
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCards", children: ue.map((a) => /* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCard", children: [
|
|
239
240
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCardIcon", children: /* @__PURE__ */ e(a.Icon, {}) }),
|
|
240
241
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesCardText", children: [
|
|
241
|
-
/* @__PURE__ */ e("h5", { class: "IncodeDocumentCommonIssuesCardTitle", children:
|
|
242
|
-
/* @__PURE__ */ e("p", { class: "IncodeDocumentCommonIssuesCardBody", children:
|
|
242
|
+
/* @__PURE__ */ e("h5", { class: "IncodeDocumentCommonIssuesCardTitle", children: n(a.titleKey) }),
|
|
243
|
+
/* @__PURE__ */ e("p", { class: "IncodeDocumentCommonIssuesCardBody", children: n(a.bodyKey) })
|
|
243
244
|
] })
|
|
244
245
|
] }, a.titleKey)) }),
|
|
245
|
-
/* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesButtons", children: /* @__PURE__ */ e(
|
|
246
|
+
/* @__PURE__ */ e("div", { class: "IncodeDocumentCommonIssuesButtons", children: /* @__PURE__ */ e(f, { onClick: t, children: n("commonIssues.tryAgain") }) })
|
|
246
247
|
] });
|
|
247
248
|
}, Ce = ({ manager: t }) => {
|
|
248
|
-
const { t:
|
|
249
|
+
const { t: n } = u();
|
|
249
250
|
return /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureActionRow", children: [
|
|
250
251
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
252
|
+
f,
|
|
252
253
|
{
|
|
253
254
|
variant: "secondary",
|
|
254
255
|
onClick: () => t.retake(),
|
|
255
256
|
"data-testid": "document-capture-retake-button",
|
|
256
|
-
children:
|
|
257
|
+
children: n("documentCapture.review.replace")
|
|
257
258
|
}
|
|
258
259
|
),
|
|
259
260
|
/* @__PURE__ */ e(
|
|
260
|
-
|
|
261
|
+
f,
|
|
261
262
|
{
|
|
262
263
|
onClick: () => t.accept(),
|
|
263
264
|
"data-testid": "document-capture-accept-button",
|
|
264
|
-
children:
|
|
265
|
+
children: n("documentCapture.review.continue")
|
|
265
266
|
}
|
|
266
267
|
)
|
|
267
268
|
] });
|
|
268
269
|
}, me = ({ isFilePdf: t }) => {
|
|
269
|
-
const { t:
|
|
270
|
-
return /* @__PURE__ */ e(
|
|
271
|
-
/* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children:
|
|
270
|
+
const { t: n } = u();
|
|
271
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
272
|
+
/* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children: n(t ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured") }),
|
|
272
273
|
/* @__PURE__ */ e(C, { size: 12 }),
|
|
273
|
-
/* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureReviewSubtitle", children:
|
|
274
|
+
/* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureReviewSubtitle", children: n(t ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured") })
|
|
274
275
|
] });
|
|
275
276
|
}, he = ({ manager: t }) => {
|
|
276
|
-
const { t:
|
|
277
|
+
const { t: n } = u();
|
|
277
278
|
return /* @__PURE__ */ e(
|
|
278
|
-
|
|
279
|
+
f,
|
|
279
280
|
{
|
|
280
281
|
onClick: () => t.continue(),
|
|
281
282
|
"data-testid": "document-capture-continue-button",
|
|
282
|
-
children:
|
|
283
|
+
children: n("documentCapture.review.continue")
|
|
283
284
|
}
|
|
284
285
|
);
|
|
285
286
|
}, fe = () => {
|
|
286
287
|
const { t } = u();
|
|
287
|
-
return /* @__PURE__ */ e(
|
|
288
|
-
/* @__PURE__ */ e(
|
|
288
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
289
|
+
/* @__PURE__ */ e(ne, { size: 30 }),
|
|
289
290
|
/* @__PURE__ */ e(C, { size: 16 }),
|
|
290
291
|
/* @__PURE__ */ e("h2", { class: "IncodeDocumentCaptureReviewTitle", children: t("documentCapture.review.successTitle") })
|
|
291
292
|
] });
|
|
292
293
|
}, ve = ({
|
|
293
294
|
progress: t,
|
|
294
|
-
isFilePdf:
|
|
295
|
+
isFilePdf: n
|
|
295
296
|
}) => {
|
|
296
|
-
const { t: a } = u(),
|
|
297
|
-
return /* @__PURE__ */ e(
|
|
297
|
+
const { t: a } = u(), o = a(n ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
|
|
298
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
298
299
|
/* @__PURE__ */ e(C, { size: 8 }),
|
|
299
|
-
/* @__PURE__ */ e(X, { progress: t, label:
|
|
300
|
+
/* @__PURE__ */ e(X, { progress: t, label: o })
|
|
300
301
|
] });
|
|
301
|
-
}, ge = ({ state: t, manager:
|
|
302
|
+
}, ge = ({ state: t, manager: n }) => {
|
|
302
303
|
const { t: a } = u();
|
|
303
304
|
if (t.status === "failure")
|
|
304
305
|
return /* @__PURE__ */ e(
|
|
305
|
-
|
|
306
|
+
oe,
|
|
306
307
|
{
|
|
307
308
|
"data-testid": "document-capture-error",
|
|
308
309
|
title: a("documentCapture.review.error.title"),
|
|
309
310
|
description: t.attemptsRemaining <= 0 ? a("notifications.noTries") : a("documentCapture.review.error.description"),
|
|
310
311
|
attemptsRemaining: t.attemptsRemaining,
|
|
311
|
-
onButtonClick: () =>
|
|
312
|
+
onButtonClick: () => n.retry()
|
|
312
313
|
}
|
|
313
314
|
);
|
|
314
|
-
const
|
|
315
|
+
const o = t.fileType === "application/pdf" || t.imageBase64.startsWith("data:application/pdf"), { fileName: c } = t, s = t.status === "preview", l = t.status === "uploading", i = t.status === "success", d = t.status === "nextPage", p = i || d;
|
|
315
316
|
return /* @__PURE__ */ e(
|
|
316
317
|
y,
|
|
317
318
|
{
|
|
@@ -321,8 +322,8 @@ const ie = ({
|
|
|
321
322
|
"data-testid": "document-capture-review",
|
|
322
323
|
children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureReviewLayout", children: [
|
|
323
324
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureReviewHeader", children: [
|
|
324
|
-
s ? /* @__PURE__ */ e(me, { isFilePdf:
|
|
325
|
-
l ? /* @__PURE__ */ e(ve, { progress: t.progress, isFilePdf:
|
|
325
|
+
s ? /* @__PURE__ */ e(me, { isFilePdf: o }) : null,
|
|
326
|
+
l ? /* @__PURE__ */ e(ve, { progress: t.progress, isFilePdf: o }) : null,
|
|
326
327
|
p ? /* @__PURE__ */ e(fe, {}) : null
|
|
327
328
|
] }),
|
|
328
329
|
/* @__PURE__ */ e(
|
|
@@ -330,10 +331,10 @@ const ie = ({
|
|
|
330
331
|
{
|
|
331
332
|
class: L(
|
|
332
333
|
"IncodeDocumentCaptureReviewPreview",
|
|
333
|
-
|
|
334
|
+
o && "IncodeDocumentCaptureReviewPreviewPdf"
|
|
334
335
|
),
|
|
335
336
|
children: [
|
|
336
|
-
|
|
337
|
+
o ? /* @__PURE__ */ e(h, { children: [
|
|
337
338
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCapturePdfCard", children: [
|
|
338
339
|
/* @__PURE__ */ e("div", { class: "ImageDocumentCapturePdfPreviewContainer", children: /* @__PURE__ */ e(
|
|
339
340
|
"object",
|
|
@@ -379,8 +380,8 @@ const ie = ({
|
|
|
379
380
|
l && "IncodeDocumentCaptureReviewFooterEmpty"
|
|
380
381
|
),
|
|
381
382
|
children: [
|
|
382
|
-
s ? /* @__PURE__ */ e(Ce, { manager:
|
|
383
|
-
i ? /* @__PURE__ */ e(he, { manager:
|
|
383
|
+
s ? /* @__PURE__ */ e(Ce, { manager: n }) : null,
|
|
384
|
+
i ? /* @__PURE__ */ e(he, { manager: n }) : null
|
|
384
385
|
]
|
|
385
386
|
}
|
|
386
387
|
)
|
|
@@ -389,9 +390,9 @@ const ie = ({
|
|
|
389
390
|
);
|
|
390
391
|
}, F = (t) => /* @__PURE__ */ r("svg", { viewBox: "0 0 292 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r("circle", { cx: 145.743, cy: 152.074, r: 139.295, fill: "#E5F0FF" }), /* @__PURE__ */ r("g", { filter: "url(#filter0_d_4533_6792)" }, /* @__PURE__ */ r("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "white" }), /* @__PURE__ */ r("path", { d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z", fill: "black", fillOpacity: 0.01 })), /* @__PURE__ */ r("g", { opacity: 0.5 }, /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 60.0905C73.4139 59.62 73.7953 59.2385 74.2658 59.2385H216.865C217.336 59.2385 217.717 59.62 217.717 60.0905V62.7331C217.717 63.2036 217.336 63.585 216.865 63.585H74.2658C73.7953 63.585 73.4139 63.2036 73.4139 62.7331V60.0905Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M73.4139 220.911C73.4139 220.44 73.7953 220.059 74.2658 220.059H216.865C217.336 220.059 217.717 220.44 217.717 220.911V223.553C217.717 224.024 217.336 224.405 216.865 224.405H74.2658C73.7953 224.405 73.4139 224.024 73.4139 223.553V220.911Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4139 83.5619C73.4139 83.0914 73.7953 82.7099 74.2658 82.7099H130.805C131.275 82.7099 131.657 83.0914 131.657 83.5619V91.4202C131.657 91.8907 131.275 92.2722 130.805 92.2722H74.2658C73.7953 92.2722 73.4139 91.8907 73.4139 91.4202L73.4139 83.5619Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4138 101.817C73.4138 101.347 73.7953 100.965 74.2658 100.965H130.805C131.275 100.965 131.657 101.347 131.657 101.817V109.676C131.657 110.146 131.275 110.528 130.805 110.528H74.2658C73.7953 110.528 73.4138 110.146 73.4138 109.676L73.4138 101.817Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.399 120.072C73.4072 119.601 73.7952 119.227 74.2657 119.235L154.263 120.631C154.734 120.639 155.109 121.028 155.1 121.498L154.963 129.355C154.955 129.826 154.567 130.2 154.097 130.192L74.0988 128.796C73.6284 128.787 73.2536 128.399 73.2619 127.929L73.399 120.072Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.399 138.327C73.4072 137.857 73.7952 137.482 74.2657 137.49L97.7678 137.9C98.2383 137.909 98.613 138.297 98.6048 138.767L98.498 144.886C98.4897 145.356 98.1017 145.731 97.6313 145.723L74.1292 145.313C73.6587 145.304 73.284 144.916 73.2922 144.446L73.399 138.327Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M73.4139 38.3582C73.4139 37.8877 73.7953 37.5063 74.2658 37.5063H180.355C180.825 37.5063 181.207 37.8877 181.207 38.3582V47.0859C181.207 47.5564 180.825 47.9378 180.355 47.9378H74.2658C73.7953 47.9378 73.4139 47.5564 73.4139 47.0859V38.3582Z", fill: "#C6C8D2" }), /* @__PURE__ */ r("path", { d: "M195.985 37.4887C195.985 37.0182 196.366 36.6367 196.837 36.6367H216.865C217.336 36.6367 217.717 37.0182 217.717 37.4887V46.2163C217.717 46.6868 217.336 47.0683 216.865 47.0683H196.837C196.366 47.0683 195.985 46.6868 195.985 46.2163V37.4887Z", fill: "#C6C8D2" })), /* @__PURE__ */ r("mask", { id: "path-4-inside-1_4533_6792", fill: "white" }, /* @__PURE__ */ r("path", { d: "M63.8701 255.593C60.0041 255.593 56.8701 252.459 56.8701 248.593L56.8701 32.5516C56.8701 28.6856 60.0041 25.5516 63.8701 25.5516L227.68 25.5516C231.546 25.5516 234.68 28.6856 234.68 32.5516V248.593C234.68 252.459 231.546 255.593 227.68 255.593L63.8701 255.593Z" })), /* @__PURE__ */ r("g", { clipPath: "url(#paint0_diamond_4533_6792_clip_path)", "data-figma-skip-parse": "true", mask: "url(#path-4-inside-1_4533_6792)" }, /* @__PURE__ */ r("g", { transform: "matrix(0.0908399 -0.0986632 0.220271 0.965929 54.935 239.235)" }, /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(1 -1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1 1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }), /* @__PURE__ */ r("rect", { x: 0, y: 0, width: 2037.51, height: 179.024, transform: "scale(-1)", fill: "url(#paint0_diamond_4533_6792)", opacity: 1, shapeRendering: "crispEdges" }))), /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", "data-figma-gradient-fill": '{"type":"GRADIENT_DIAMOND","stops":[{"color":{"r":1.0,"g":1.0,"b":1.0,"a":1.0},"position":0.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.0},"position":1.0},{"color":{"r":1.0,"g":1.0,"b":1.0,"a":0.54000002145767212},"position":1.0}],"stopsVar":[],"transform":{"m00":181.67984008789062,"m01":440.54235839843750,"m02":-256.17605590820312,"m10":-197.32632446289062,"m11":1931.8571777343750,"m12":-628.03063964843750},"opacity":1.0,"blendMode":"NORMAL","visible":true}', mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", fill: "white", fillOpacity: 0.5, mask: "url(#path-4-inside-1_4533_6792)" }), /* @__PURE__ */ r("defs", null, /* @__PURE__ */ r("filter", { id: "filter0_d_4533_6792", x: 34.6299, y: 6.61426, width: 221.387, height: 273.626, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ r("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ r("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ r("feOffset", { dy: 3 }), /* @__PURE__ */ r("feGaussianBlur", { stdDeviation: 12 }), /* @__PURE__ */ r("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" }), /* @__PURE__ */ r("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_4533_6792" }), /* @__PURE__ */ r("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_4533_6792", result: "shape" })), /* @__PURE__ */ r("clipPath", { id: "paint0_diamond_4533_6792_clip_path" }, /* @__PURE__ */ r("path", { d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z", mask: "url(#path-4-inside-1_4533_6792)" })), /* @__PURE__ */ r("linearGradient", { id: "paint0_diamond_4533_6792", x1: 0, y1: 0, x2: 500, y2: 500, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ r("stop", { stopColor: "white" }), /* @__PURE__ */ r("stop", { offset: 1, stopColor: "white", stopOpacity: 0 }), /* @__PURE__ */ r("stop", { offset: 1, stopColor: "white", stopOpacity: 0.54 })))), R = ({
|
|
391
392
|
isOpen: t,
|
|
392
|
-
onClose:
|
|
393
|
+
onClose: n,
|
|
393
394
|
onCameraClick: a,
|
|
394
|
-
onUploadClick:
|
|
395
|
+
onUploadClick: o,
|
|
395
396
|
cameraOptionTestId: c,
|
|
396
397
|
uploadOptionTestId: s
|
|
397
398
|
}) => {
|
|
@@ -399,12 +400,12 @@ const ie = ({
|
|
|
399
400
|
return B(() => {
|
|
400
401
|
if (!t) return;
|
|
401
402
|
const d = (p) => {
|
|
402
|
-
p.key === "Escape" &&
|
|
403
|
+
p.key === "Escape" && n();
|
|
403
404
|
};
|
|
404
405
|
return document.addEventListener("keydown", d), document.body.style.overflow = "hidden", () => {
|
|
405
406
|
document.removeEventListener("keydown", d), document.body.style.overflow = "";
|
|
406
407
|
};
|
|
407
|
-
}, [t,
|
|
408
|
+
}, [t, n]), t ? /* @__PURE__ */ e(
|
|
408
409
|
"div",
|
|
409
410
|
{
|
|
410
411
|
class: "IncodeDocumentCaptureOverlay",
|
|
@@ -412,9 +413,9 @@ const ie = ({
|
|
|
412
413
|
"aria-modal": !0,
|
|
413
414
|
"aria-labelledby": i,
|
|
414
415
|
onClick: (d) => {
|
|
415
|
-
d.target === d.currentTarget &&
|
|
416
|
+
d.target === d.currentTarget && n();
|
|
416
417
|
},
|
|
417
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureBottomSheetContainer", onClick:
|
|
418
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureBottomSheetContainer", onClick: n, children: /* @__PURE__ */ e(
|
|
418
419
|
"div",
|
|
419
420
|
{
|
|
420
421
|
class: "IncodeDocumentCaptureBottomSheet",
|
|
@@ -440,7 +441,7 @@ const ie = ({
|
|
|
440
441
|
{
|
|
441
442
|
type: "button",
|
|
442
443
|
class: "IncodeDocumentCaptureBottomSheetOption",
|
|
443
|
-
onClick:
|
|
444
|
+
onClick: o,
|
|
444
445
|
"data-testid": `document-capture-${s}`,
|
|
445
446
|
children: [
|
|
446
447
|
/* @__PURE__ */ e(te, {}),
|
|
@@ -456,21 +457,21 @@ const ie = ({
|
|
|
456
457
|
) : null;
|
|
457
458
|
};
|
|
458
459
|
function O(t) {
|
|
459
|
-
return new Promise((
|
|
460
|
-
const
|
|
461
|
-
|
|
460
|
+
return new Promise((n, a) => {
|
|
461
|
+
const o = new FileReader();
|
|
462
|
+
o.onload = () => n(o.result), o.onerror = a, o.readAsDataURL(t);
|
|
462
463
|
});
|
|
463
464
|
}
|
|
464
465
|
const S = ({
|
|
465
466
|
manager: t,
|
|
466
|
-
title:
|
|
467
|
+
title: n,
|
|
467
468
|
text: a,
|
|
468
|
-
allowSkipDocumentCapture:
|
|
469
|
+
allowSkipDocumentCapture: o,
|
|
469
470
|
captureMode: c,
|
|
470
471
|
error: s,
|
|
471
472
|
pageNumber: l
|
|
472
473
|
}) => {
|
|
473
|
-
const { t: i } = u(), d = k(null), [p, m] = _(!1), v = l > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", D =
|
|
474
|
+
const { t: i } = u(), d = k(null), [p, m] = _(!1), v = l > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", D = n?.trim() ? n : i(`${v}.title`), V = a?.trim() ? a : i(`${v}.subtitle`), g = c === "camera", I = Z(() => m(!1), []), H = () => {
|
|
474
475
|
d.current?.click();
|
|
475
476
|
}, w = () => {
|
|
476
477
|
g ? m(!0) : H();
|
|
@@ -484,7 +485,7 @@ const S = ({
|
|
|
484
485
|
}, T = () => {
|
|
485
486
|
I(), t.capture();
|
|
486
487
|
};
|
|
487
|
-
return /* @__PURE__ */ e(
|
|
488
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
488
489
|
/* @__PURE__ */ e(
|
|
489
490
|
y,
|
|
490
491
|
{
|
|
@@ -509,15 +510,15 @@ const S = ({
|
|
|
509
510
|
s ? /* @__PURE__ */ e("p", { class: "IncodeDocumentCaptureError", role: "alert", children: i("nativeCamera.maximumSize") }) : null,
|
|
510
511
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureActions", children: [
|
|
511
512
|
/* @__PURE__ */ e(
|
|
512
|
-
|
|
513
|
+
f,
|
|
513
514
|
{
|
|
514
515
|
onClick: w,
|
|
515
516
|
"data-testid": "document-capture-continue-button",
|
|
516
517
|
children: i("documentCapture.tutorial.continue")
|
|
517
518
|
}
|
|
518
519
|
),
|
|
519
|
-
|
|
520
|
-
|
|
520
|
+
o ? /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureSkipWrapper", children: /* @__PURE__ */ e(
|
|
521
|
+
f,
|
|
521
522
|
{
|
|
522
523
|
variant: "link",
|
|
523
524
|
onClick: () => t.skip(),
|
|
@@ -543,11 +544,11 @@ const S = ({
|
|
|
543
544
|
] });
|
|
544
545
|
}, Ie = ({
|
|
545
546
|
manager: t,
|
|
546
|
-
nextPageType:
|
|
547
|
+
nextPageType: n,
|
|
547
548
|
captureMode: a
|
|
548
549
|
}) => {
|
|
549
|
-
const { t:
|
|
550
|
-
|
|
550
|
+
const { t: o } = u(), c = k(null), [s, l] = _(!1), i = "documentCapture.tutorial.multiPageDocument", d = o(
|
|
551
|
+
n === "optional" ? `${i}.optionalPage.subtitle` : `${i}.subtitle`
|
|
551
552
|
), p = a === "camera", m = Z(() => l(!1), []), v = () => {
|
|
552
553
|
c.current?.click();
|
|
553
554
|
}, D = () => {
|
|
@@ -563,12 +564,12 @@ const S = ({
|
|
|
563
564
|
}, g = () => {
|
|
564
565
|
m(), t.captureNextPageFromCamera();
|
|
565
566
|
};
|
|
566
|
-
return /* @__PURE__ */ e(
|
|
567
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
567
568
|
/* @__PURE__ */ e(
|
|
568
569
|
y,
|
|
569
570
|
{
|
|
570
571
|
className: "IncodeDocumentCapturePageTutorial",
|
|
571
|
-
title:
|
|
572
|
+
title: o("documentCapture.tutorial.multiPageDocument.title"),
|
|
572
573
|
subtitle: d,
|
|
573
574
|
"data-testid": "document-capture-tutorial",
|
|
574
575
|
children: [
|
|
@@ -586,22 +587,22 @@ const S = ({
|
|
|
586
587
|
),
|
|
587
588
|
/* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialContent", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureTutorialIllustration", "aria-hidden": !0, children: /* @__PURE__ */ e(F, { class: "IncodeDocumentCaptureTutorialImage" }) }) }),
|
|
588
589
|
/* @__PURE__ */ e(
|
|
589
|
-
|
|
590
|
+
f,
|
|
590
591
|
{
|
|
591
592
|
onClick: D,
|
|
592
593
|
"data-testid": "document-capture-add-next-page-button",
|
|
593
|
-
children:
|
|
594
|
+
children: o("documentCapture.button.nextPage")
|
|
594
595
|
}
|
|
595
596
|
),
|
|
596
597
|
/* @__PURE__ */ e(C, { size: 12 }),
|
|
597
|
-
|
|
598
|
+
n === "optional" && /* @__PURE__ */ e(h, { children: [
|
|
598
599
|
/* @__PURE__ */ e(
|
|
599
|
-
|
|
600
|
+
f,
|
|
600
601
|
{
|
|
601
602
|
variant: "link",
|
|
602
603
|
onClick: () => t.finishPageCapture(),
|
|
603
604
|
"data-testid": "document-capture-finish-pages-button",
|
|
604
|
-
children:
|
|
605
|
+
children: o("documentCapture.button.allPagesCaptured")
|
|
605
606
|
}
|
|
606
607
|
),
|
|
607
608
|
/* @__PURE__ */ e(C, { size: 16 })
|
|
@@ -625,33 +626,33 @@ const S = ({
|
|
|
625
626
|
title: t
|
|
626
627
|
}) => /* @__PURE__ */ e(y, { hideHeader: !0, hideFooterBranding: !0, className: "IncodeDocumentCapturePage", children: /* @__PURE__ */ e("div", { class: "IncodeDocumentCaptureCentered", children: /* @__PURE__ */ e(re, { size: "large", title: t }) }) }), He = ({
|
|
627
628
|
config: t,
|
|
628
|
-
onFinish:
|
|
629
|
+
onFinish: n,
|
|
629
630
|
onError: a
|
|
630
631
|
}) => {
|
|
631
|
-
const [
|
|
632
|
+
const [o, c] = U(
|
|
632
633
|
() => A({ config: t })
|
|
633
634
|
), [s, l] = _(!1), { t: i } = u();
|
|
634
635
|
return B(() => {
|
|
635
|
-
|
|
636
|
-
}, [
|
|
636
|
+
o.status === "finished" && n?.(), o.status === "closed" && a?.(void 0);
|
|
637
|
+
}, [o.status, n, a]), o.status === "tutorial" ? /* @__PURE__ */ e(
|
|
637
638
|
S,
|
|
638
639
|
{
|
|
639
640
|
manager: c,
|
|
640
|
-
title:
|
|
641
|
-
text:
|
|
642
|
-
allowSkipDocumentCapture:
|
|
643
|
-
captureMode:
|
|
644
|
-
error:
|
|
645
|
-
pageNumber:
|
|
641
|
+
title: o.title,
|
|
642
|
+
text: o.text,
|
|
643
|
+
allowSkipDocumentCapture: o.allowSkipDocumentCapture,
|
|
644
|
+
captureMode: o.captureMode,
|
|
645
|
+
error: o.error,
|
|
646
|
+
pageNumber: o.pageNumber
|
|
646
647
|
}
|
|
647
|
-
) :
|
|
648
|
+
) : o.status === "nextPage" ? /* @__PURE__ */ e(
|
|
648
649
|
Ie,
|
|
649
650
|
{
|
|
650
651
|
manager: c,
|
|
651
|
-
nextPageType:
|
|
652
|
-
captureMode:
|
|
652
|
+
nextPageType: o.nextPageType,
|
|
653
|
+
captureMode: o.captureMode
|
|
653
654
|
}
|
|
654
|
-
) :
|
|
655
|
+
) : o.status === "capturing" && o.captureMode === "file" ? /* @__PURE__ */ e(
|
|
655
656
|
S,
|
|
656
657
|
{
|
|
657
658
|
manager: c,
|
|
@@ -659,29 +660,29 @@ const S = ({
|
|
|
659
660
|
text: t.text,
|
|
660
661
|
allowSkipDocumentCapture: !1,
|
|
661
662
|
captureMode: "file",
|
|
662
|
-
error:
|
|
663
|
-
pageNumber:
|
|
663
|
+
error: o.error,
|
|
664
|
+
pageNumber: o.pageNumber
|
|
664
665
|
}
|
|
665
|
-
) :
|
|
666
|
+
) : o.status === "initializingCamera" ? /* @__PURE__ */ e(P, {}) : o.status === "capturing" && o.captureMode === "camera" ? o.stream ? /* @__PURE__ */ e(h, { children: [
|
|
666
667
|
/* @__PURE__ */ e(
|
|
667
668
|
ie,
|
|
668
669
|
{
|
|
669
|
-
stream:
|
|
670
|
+
stream: o.stream,
|
|
670
671
|
manager: c,
|
|
671
672
|
onOpenHelp: () => l(!0)
|
|
672
673
|
}
|
|
673
674
|
),
|
|
674
675
|
s ? /* @__PURE__ */ e(pe, { onClose: () => l(!1) }) : null
|
|
675
|
-
] }) : /* @__PURE__ */ e(P, {}) :
|
|
676
|
+
] }) : /* @__PURE__ */ e(P, {}) : o.status === "finalizing" ? /* @__PURE__ */ e(P, { title: i("common.processing") }) : o.status === "preview" || o.status === "uploading" || o.status === "success" || o.status === "failure" ? /* @__PURE__ */ e(ge, { state: o, manager: c }) : null;
|
|
676
677
|
}, we = ({
|
|
677
678
|
config: t,
|
|
678
|
-
onFinish:
|
|
679
|
+
onFinish: n,
|
|
679
680
|
onError: a
|
|
680
681
|
}) => /* @__PURE__ */ e(z, { children: t ? /* @__PURE__ */ e(
|
|
681
682
|
He,
|
|
682
683
|
{
|
|
683
684
|
config: t,
|
|
684
|
-
onFinish:
|
|
685
|
+
onFinish: n,
|
|
685
686
|
onError: a
|
|
686
687
|
}
|
|
687
688
|
) : null });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as o, c as U } from "./
|
|
1
|
+
import { u as o, c as U } from "./loadingIcon-DmuPXh70.js";
|
|
2
2
|
import { d as g, A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { C as ie } from "./chevronDown-
|
|
4
|
-
import { E as le } from "./errorIcon-
|
|
5
|
-
import { S as pe } from "./successIcon-
|
|
3
|
+
import { C as ie } from "./chevronDown-DSHaPKbi.js";
|
|
4
|
+
import { E as le } from "./errorIcon-DEARBrGx.js";
|
|
5
|
+
import { S as pe } from "./successIcon-Bjsdc4lF.js";
|
|
6
6
|
const ue = ({ size: c = 20 }) => /* @__PURE__ */ o(
|
|
7
7
|
"svg",
|
|
8
8
|
{
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { b as I, u as o, I as J, a as Q
|
|
2
|
-
import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as
|
|
3
|
-
import { T as q, y as V, A as D, d as
|
|
4
|
-
import "./
|
|
1
|
+
import { b as I, u as o, I as J, a as Q } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as Z, computeEkybDisplayErrors as x, createEkybManager as ee } from "@incodetech/core/ekyb";
|
|
3
|
+
import { T as q, y as V, A as D, d as te, q as C, k as oe } from "./vendor-preact-BoMmvSgn.js";
|
|
4
|
+
import "./instance-BWYzq8dk.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { u as re, A as ne } from "./addressAutocomplete-C8-wL1j_.js";
|
|
7
|
+
import { B as se } from "./button-CE9kRlem.js";
|
|
8
|
+
import { P as K } from "./page-SrUl0qtN.js";
|
|
9
|
+
import { S as ae } from "./spinner-DygONskw.js";
|
|
10
|
+
import { t as G, F as le, V as P } from "./formField-CP6wDdfA.js";
|
|
10
11
|
import { r as ce } from "./incodeModule-C4XIllao.js";
|
|
11
|
-
import { D as Y } from "./dropdownComposed-
|
|
12
|
-
import { a as _ } from "./inputComposed-
|
|
12
|
+
import { D as Y } from "./dropdownComposed-BpinYlrx.js";
|
|
13
|
+
import { a as _ } from "./inputComposed-fUbAGrDy.js";
|
|
13
14
|
function ue(t) {
|
|
14
15
|
return [...t.toUpperCase()].map((r) => String.fromCodePoint(127462 + r.charCodeAt(0) - 65)).join("");
|
|
15
16
|
}
|
|
@@ -41,7 +42,7 @@ const be = ({
|
|
|
41
42
|
value: t,
|
|
42
43
|
onChange: r
|
|
43
44
|
}) => {
|
|
44
|
-
const { t: l } = I(), s = q(() => (de() ? [...M, ...
|
|
45
|
+
const { t: l } = I(), s = q(() => (de() ? [...M, ...Z] : [...M]).map(me).sort((c, d) => c.label.localeCompare(d.label)), []);
|
|
45
46
|
return /* @__PURE__ */ o("div", { className: "IncodeEkybCountrySelector", children: /* @__PURE__ */ o(
|
|
46
47
|
Y,
|
|
47
48
|
{
|
|
@@ -166,7 +167,7 @@ const be = ({
|
|
|
166
167
|
)
|
|
167
168
|
] });
|
|
168
169
|
}, ye = ({ config: t, onFinish: r }) => {
|
|
169
|
-
const { t: l } = I(), [s, i] = Q(() =>
|
|
170
|
+
const { t: l } = I(), [s, i] = Q(() => ee({ config: t }));
|
|
170
171
|
return V(() => {
|
|
171
172
|
(s.status === "finished" || s.status === "closed") && r?.();
|
|
172
173
|
}, [s.status, r]), s.status === "finished" || s.status === "closed" ? null : s.status === "loading" ? /* @__PURE__ */ o(
|
|
@@ -201,10 +202,10 @@ const be = ({
|
|
|
201
202
|
canAddUbo: u,
|
|
202
203
|
addressSuggestions: y,
|
|
203
204
|
submitAttempted: m
|
|
204
|
-
} = t, { t: n } = I(), v = D(null), f = D(null), N = D(void 0), S =
|
|
205
|
+
} = t, { t: n } = I(), v = D(null), f = D(null), N = D(void 0), S = re(v, s.length), [w, T] = te({}), p = C((e) => {
|
|
205
206
|
T((a) => a[e] ? a : { ...a, [e]: !0 });
|
|
206
207
|
}, []), { displayErrors: E, errorParams: F } = q(
|
|
207
|
-
() =>
|
|
208
|
+
() => x(
|
|
208
209
|
c,
|
|
209
210
|
w,
|
|
210
211
|
m,
|
|
@@ -301,10 +302,10 @@ const be = ({
|
|
|
301
302
|
onRemove: z
|
|
302
303
|
}
|
|
303
304
|
),
|
|
304
|
-
L.length > 0 && /* @__PURE__ */ o(
|
|
305
|
+
L.length > 0 && /* @__PURE__ */ o(oe, { children: [
|
|
305
306
|
/* @__PURE__ */ o("h3", { className: "IncodeEkybSectionHeader", children: n("ekyb.addressDetails") }),
|
|
306
307
|
L.map((e) => e.name === "street" ? /* @__PURE__ */ o(
|
|
307
|
-
|
|
308
|
+
ne,
|
|
308
309
|
{
|
|
309
310
|
label: e.label,
|
|
310
311
|
value: i.street ?? "",
|
|
@@ -340,7 +341,7 @@ const be = ({
|
|
|
340
341
|
] })
|
|
341
342
|
] }),
|
|
342
343
|
/* @__PURE__ */ o("div", { className: "IncodeEkybFooter", children: /* @__PURE__ */ o(
|
|
343
|
-
|
|
344
|
+
se,
|
|
344
345
|
{
|
|
345
346
|
onClick: () => r.submit(),
|
|
346
347
|
disabled: !d,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { u as r, I as Y, b as $, a as G
|
|
1
|
+
import { u as r, I as Y, b as $, a as G } from "./loadingIcon-DmuPXh70.js";
|
|
2
2
|
import { computeEkycDisplayErrors as j, createEkycManager as z } from "@incodetech/core/ekyc";
|
|
3
3
|
import { y as q, A as F, d as J, q as E, T as Q } from "./vendor-preact-BoMmvSgn.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./instance-BWYzq8dk.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { u as U, A as W } from "./addressAutocomplete-
|
|
7
|
-
import { V as v, t as X, F as Z } from "./formField-
|
|
8
|
-
import {
|
|
9
|
-
import { D as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { u as U, A as W } from "./addressAutocomplete-C8-wL1j_.js";
|
|
7
|
+
import { V as v, t as X, F as Z } from "./formField-CP6wDdfA.js";
|
|
8
|
+
import { B as L } from "./button-CE9kRlem.js";
|
|
9
|
+
import { D as f } from "./dateInputComposed-C7PCzh-U.js";
|
|
10
|
+
import { D as ee } from "./dropdownComposed-BpinYlrx.js";
|
|
11
|
+
import { P as T } from "./page-SrUl0qtN.js";
|
|
12
|
+
import { S as re } from "./spinner-DygONskw.js";
|
|
12
13
|
import { r as oe } from "./incodeModule-C4XIllao.js";
|
|
13
|
-
import { P as te } from "./phoneInputComposed-
|
|
14
|
+
import { P as te } from "./phoneInputComposed-Cm9O2Jba.js";
|
|
14
15
|
const ae = ({ config: p, onFinish: s }) => {
|
|
15
16
|
const { t: l } = $(), [a, d] = G(() => z({ config: p }));
|
|
16
17
|
return q(() => {
|