@incodetech/web 0.0.0-dev-20260522-d8d5954f → 0.0.0-dev-20260522-31c2a308
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/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +15 -14
- package/dist/authentication/authentication.es.js +27 -22
- package/dist/consent/consent.es.js +45 -40
- package/dist/cpfOcr-D3RHfhOx.js +79 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +15 -14
- package/dist/curp-validation/curp-validation.es.js +126 -122
- package/dist/customFields-BDSPrFG6.js +128 -0
- package/dist/customWatchlist-BUiXNACw.js +34 -0
- package/dist/{documentCapture-Ddxiyjmv.js → documentCapture-DgvsXFcA.js} +194 -196
- package/dist/{dynamicForms-BkBgAxaw.js → dynamicForms-B4UqRizf.js} +73 -72
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DkaEWH7Q.js → ekybModule-BnensJtJ.js} +71 -70
- package/dist/ekybModule-DjpevBNl.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-BZzjGBZo.js +2 -0
- package/dist/{ekycModule-CvSj-SBd.js → ekycModule-sNLKK3Ry.js} +56 -55
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BssOOcll.js → electronic-signature-Dd1o96al.js} +97 -99
- package/dist/email/email.es.js +55 -48
- package/dist/{emailInput-a1clmgOD.js → emailInput-D_2YTMpA.js} +1 -1
- package/dist/{extensibility-FQufHU19.js → extensibility-CGfTiOMJ.js} +3 -3
- package/dist/extensibility.es.js +5 -5
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-Bmb2Irm5.js +2 -0
- package/dist/{faceMatch-HK8X_omw.js → faceMatch-r44b5_bS.js} +66 -61
- package/dist/flow/flow.es.js +146 -137
- package/dist/geolocation/geolocation.es.js +158 -157
- package/dist/governmentValidation/governmentValidation.es.js +52 -50
- package/dist/hooks-CLjlsC2g.js +110 -0
- package/dist/id/id.es.js +146 -142
- package/dist/id-verification/id-verification.es.js +10 -9
- package/dist/idOcr-1cCRH-JT.js +97 -0
- package/dist/identity-reuse/identity-reuse.es.js +82 -81
- package/dist/{incodeComponent-Dwf208RN.js → incodeComponent-MZEyrb1V.js} +1 -1
- package/dist/mandatoryConsent-CXHpydb_.js +91 -0
- package/dist/{optionAccessibleLabel-EWjyi8qm.js → optionAccessibleLabel-D9VqmS3S.js} +1 -1
- package/dist/phone/phone.es.js +58 -53
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-D0M6WCAI.js → redirectToMobile-D65mjS1b.js} +114 -117
- package/dist/selfie/selfie.es.js +37 -32
- package/dist/signature/signature.es.js +70 -69
- package/dist/{tutorial-1M3zRhDL.js → tutorial-CZE5krtC.js} +1 -1
- package/dist/{useModuleLoader-ClURczIi.js → useModuleLoader-CRT8DxXP.js} +13 -13
- package/dist/watchlist/watchlist.es.js +26 -25
- package/dist/watchlistForBusiness-CKXh9404.js +78 -0
- package/dist/workflow/workflow.es.js +21 -10
- package/package.json +2 -2
- package/dist/cpfOcr-v9k08xnk.js +0 -78
- package/dist/customFields-D3m4tOVB.js +0 -127
- package/dist/customWatchlist-CA3FMNYb.js +0 -33
- package/dist/ekybModule-C_5hglpb.js +0 -2
- package/dist/ekycModule-hm24nLK7.js +0 -2
- package/dist/faceMatch-CBaORbnj.js +0 -2
- package/dist/hooks-BVnGysT7.js +0 -80
- package/dist/idOcr-C4CRrQkf.js +0 -94
- package/dist/mandatoryConsent-BODQV7_J.js +0 -100
- package/dist/watchlistForBusiness-CadEfUn3.js +0 -77
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as t } from "../electronic-signature-
|
|
2
|
+
import { n as t } from "../electronic-signature-Dd1o96al.js";
|
|
3
3
|
import { t as n } from "../incodeModule-CHzKl22Y.js";
|
|
4
4
|
//#region src/modules/ae-signature/ae-signature.tsx
|
|
5
5
|
var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { createAntifraudManager as
|
|
2
|
+
import { c as n, o as r } from "../hooks-CLjlsC2g.js";
|
|
3
|
+
import { t as i } from "../incodeComponent-MZEyrb1V.js";
|
|
4
|
+
import { t as a } from "../spinner-CKnjVHxw.js";
|
|
5
|
+
import { t as o } from "../incodeModule-CHzKl22Y.js";
|
|
6
|
+
import { createAntifraudManager as s } from "@incodetech/core/antifraud";
|
|
7
7
|
//#region src/modules/antifraud/antifraud.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
8
|
+
var c = ({ onFinish: i }) => {
|
|
9
|
+
let [o, c] = n(() => s());
|
|
10
10
|
return e(() => {
|
|
11
|
-
|
|
12
|
-
}, [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
11
|
+
c.load();
|
|
12
|
+
}, [c]), r({
|
|
13
|
+
status: o.status === "finished" ? "finished" : "loading",
|
|
14
|
+
onFinish: i
|
|
15
|
+
}), /* @__PURE__ */ t(a, { fullScreen: !0 });
|
|
16
|
+
}, l = ({ onFinish: e }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, { onFinish: e }) });
|
|
17
|
+
o(l, "incode-antifraud");
|
|
17
18
|
//#endregion
|
|
18
|
-
export {
|
|
19
|
+
export { l as Antifraud };
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { createAuthenticationManager as
|
|
2
|
+
import { a as t, c as n, o as r } from "../hooks-CLjlsC2g.js";
|
|
3
|
+
import { t as i } from "../incodeComponent-MZEyrb1V.js";
|
|
4
|
+
import { n as a, r as o, t as s } from "../tutorial-CZE5krtC.js";
|
|
5
|
+
import { t as c } from "../incodeModule-CHzKl22Y.js";
|
|
6
|
+
import { createAuthenticationManager as l } from "@incodetech/core/authentication";
|
|
7
7
|
//#region src/modules/authentication/authentication.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
10
|
-
config:
|
|
11
|
-
authHint:
|
|
12
|
-
}), { manageLifecycle: !
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
var u = ({ config: i, authHint: c, manager: u, onFinish: d, onError: f }) => {
|
|
9
|
+
let [p, m] = n(() => u ?? l({
|
|
10
|
+
config: i,
|
|
11
|
+
authHint: c
|
|
12
|
+
}), { manageLifecycle: !u });
|
|
13
|
+
return r({
|
|
14
|
+
status: p.status,
|
|
15
|
+
onFinish: d,
|
|
16
|
+
onError: f,
|
|
17
|
+
error: p.status === "error" ? p.error : void 0
|
|
18
|
+
}), p.status === "idle" || p.status === "loading" ? null : p.status === "tutorial" ? /* @__PURE__ */ e(s, { manager: m }) : p.status === "permissions" ? /* @__PURE__ */ e(o, {
|
|
19
|
+
manager: m,
|
|
20
|
+
permissionStatus: p.permissionStatus
|
|
21
|
+
}) : p.status === "capture" ? /* @__PURE__ */ e(a, {
|
|
22
|
+
manager: m,
|
|
23
|
+
state: p
|
|
24
|
+
}) : (t(p), null);
|
|
25
|
+
}, d = ({ config: t, manager: n, onFinish: r, onError: a }) => /* @__PURE__ */ e(i, { children: t ? /* @__PURE__ */ e(u, {
|
|
21
26
|
config: t,
|
|
22
27
|
authHint: t.authHint,
|
|
23
|
-
manager:
|
|
24
|
-
onFinish:
|
|
28
|
+
manager: n,
|
|
29
|
+
onFinish: r,
|
|
25
30
|
onError: a
|
|
26
31
|
}) : null });
|
|
27
|
-
|
|
32
|
+
c(d, "incode-authentication");
|
|
28
33
|
//#endregion
|
|
29
|
-
export {
|
|
34
|
+
export { d as Authentication };
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { n as e } from "../i18n-Cw8Y_JeB.js";
|
|
2
2
|
import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { createConsentManager as
|
|
3
|
+
import { a, c as o, o as s } from "../hooks-CLjlsC2g.js";
|
|
4
|
+
import { t as c } from "../incodeComponent-MZEyrb1V.js";
|
|
5
|
+
import { t as l } from "../page-C1yT4DLb.js";
|
|
6
|
+
import { n as u } from "../typography-CxjaknHN.js";
|
|
7
|
+
import { t as d } from "../transitionSpinner-BWCiDYAb.js";
|
|
8
|
+
import { t as f } from "../button-DcCUEn2n.js";
|
|
9
|
+
import { t as p } from "../checkbox-ODa2sCKf.js";
|
|
10
|
+
import { t as m } from "../incodeModule-CHzKl22Y.js";
|
|
11
|
+
import { t as h } from "../richText-FMNMBzjD.js";
|
|
12
|
+
import { n as g, t as _ } from "../requiredLabelHint-CuA6awez.js";
|
|
13
|
+
import { createConsentManager as v } from "@incodetech/core/consent";
|
|
14
14
|
//#region src/modules/consent/consent.tsx
|
|
15
|
-
var
|
|
16
|
-
let { t:
|
|
17
|
-
if (
|
|
18
|
-
if (!
|
|
19
|
-
return
|
|
20
|
-
}, { manageLifecycle: !
|
|
15
|
+
var y = ({ config: c, manager: m, onFinish: y, onError: b }) => {
|
|
16
|
+
let { t: x } = e(), S = r(null), [C, w] = o(() => {
|
|
17
|
+
if (m) return m;
|
|
18
|
+
if (!c) throw Error("Consent config is required");
|
|
19
|
+
return v({ config: c });
|
|
20
|
+
}, { manageLifecycle: !m });
|
|
21
21
|
t(() => {
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
25
|
-
return
|
|
22
|
+
C.status === "display" && S.current?.focus();
|
|
23
|
+
}, [C.status]);
|
|
24
|
+
let T = "checkboxes" in C ? C.checkboxes : void 0, E = n(() => g(T?.map((e) => e.required) ?? []), [T]);
|
|
25
|
+
return s({
|
|
26
|
+
status: C.status,
|
|
27
|
+
onFinish: y,
|
|
28
|
+
onError: b,
|
|
29
|
+
error: C.status === "error" ? C.error : void 0
|
|
30
|
+
}), a(C) ? null : C.status === "idle" || C.status === "loading" ? /* @__PURE__ */ i(d, { hideText: !0 }) : /* @__PURE__ */ i(l, {
|
|
26
31
|
className: "IncodeConsentPage",
|
|
27
32
|
hideFooterBranding: !0,
|
|
28
33
|
hideHeader: !0,
|
|
@@ -31,36 +36,36 @@ var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
|
|
|
31
36
|
children: [/* @__PURE__ */ i("div", {
|
|
32
37
|
class: "IncodeConsentBody",
|
|
33
38
|
children: [
|
|
34
|
-
/* @__PURE__ */ i(
|
|
35
|
-
ref:
|
|
39
|
+
/* @__PURE__ */ i(u, {
|
|
40
|
+
ref: S,
|
|
36
41
|
className: "IncodeConsentTitle",
|
|
37
42
|
tabIndex: -1,
|
|
38
|
-
children:
|
|
43
|
+
children: C.title
|
|
39
44
|
}),
|
|
40
|
-
/* @__PURE__ */ i(
|
|
41
|
-
content:
|
|
45
|
+
/* @__PURE__ */ i(h, {
|
|
46
|
+
content: C.richText,
|
|
42
47
|
class: "IncodeRichText"
|
|
43
48
|
}),
|
|
44
49
|
/* @__PURE__ */ i("div", {
|
|
45
50
|
class: "IncodeConsentCheckboxList",
|
|
46
51
|
role: "group",
|
|
47
|
-
"aria-label":
|
|
48
|
-
children:
|
|
49
|
-
let t =
|
|
50
|
-
return /* @__PURE__ */ i(
|
|
52
|
+
"aria-label": x("biometricConsent.consentOptions"),
|
|
53
|
+
children: C.checkboxes.map((e) => {
|
|
54
|
+
let t = _(E, e.required), n = t ? x(`forms.label.${t}`) : void 0;
|
|
55
|
+
return /* @__PURE__ */ i(p, {
|
|
51
56
|
id: `consent-checkbox-${e.id}`,
|
|
52
57
|
class: "IncodeConsentCheckbox",
|
|
53
58
|
size: "s",
|
|
54
59
|
checked: e.checked,
|
|
55
60
|
required: e.required,
|
|
56
61
|
labelHint: n,
|
|
57
|
-
onChange: () =>
|
|
62
|
+
onChange: () => w.toggleCheckbox(e.id),
|
|
58
63
|
label: /* @__PURE__ */ i("span", {
|
|
59
64
|
class: "IncodeConsentCheckboxLabel",
|
|
60
65
|
onClick: (e) => {
|
|
61
66
|
e.target.closest("a") && e.stopPropagation();
|
|
62
67
|
},
|
|
63
|
-
children: /* @__PURE__ */ i(
|
|
68
|
+
children: /* @__PURE__ */ i(h, {
|
|
64
69
|
content: e.label,
|
|
65
70
|
class: "IncodeRichText",
|
|
66
71
|
disallowedTags: ["img"]
|
|
@@ -70,21 +75,21 @@ var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
|
|
|
70
75
|
})
|
|
71
76
|
})
|
|
72
77
|
]
|
|
73
|
-
}), /* @__PURE__ */ i(
|
|
78
|
+
}), /* @__PURE__ */ i(f, {
|
|
74
79
|
"data-testid": "consent-submit",
|
|
75
|
-
onClick: () =>
|
|
76
|
-
disabled: !
|
|
77
|
-
isLoading:
|
|
78
|
-
children:
|
|
80
|
+
onClick: () => w.submit(),
|
|
81
|
+
disabled: !C.canSubmit,
|
|
82
|
+
isLoading: C.status === "submitting",
|
|
83
|
+
children: x("biometricConsent.button.continue")
|
|
79
84
|
})]
|
|
80
85
|
})
|
|
81
86
|
}, "ready");
|
|
82
|
-
},
|
|
87
|
+
}, b = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(c, { children: e ? /* @__PURE__ */ i(y, {
|
|
83
88
|
config: e,
|
|
84
89
|
manager: t,
|
|
85
90
|
onFinish: n,
|
|
86
91
|
onError: r
|
|
87
92
|
}) : null });
|
|
88
|
-
|
|
93
|
+
m(b, "incode-consent");
|
|
89
94
|
//#endregion
|
|
90
|
-
export {
|
|
95
|
+
export { b as Consent };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { _ as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
import { c as r, o as i } from "./hooks-CLjlsC2g.js";
|
|
3
|
+
import { r as a } from "./loadingIcon-BN5YRQUb.js";
|
|
4
|
+
import { t as o } from "./page-C1yT4DLb.js";
|
|
5
|
+
import { t as s } from "./spinner-CKnjVHxw.js";
|
|
6
|
+
import "./spinner-B4dcie2T.js";
|
|
7
|
+
import { t as c } from "./button-DcCUEn2n.js";
|
|
8
|
+
import { t as l } from "./verificationResult-C6M3uAMP.js";
|
|
9
|
+
import { t as u } from "./inputComposed-CiZa_7pk.js";
|
|
10
|
+
import { createCpfOcrManager as d } from "@incodetech/core/cpf-ocr";
|
|
11
|
+
//#region src/modules/cpf-ocr/cpfOcr.tsx
|
|
12
|
+
var f = (e) => e.status === "inputting" ? {
|
|
13
|
+
cpf: e.cpf,
|
|
14
|
+
isValid: e.isValid
|
|
15
|
+
} : {
|
|
16
|
+
cpf: "",
|
|
17
|
+
isValid: !1
|
|
18
|
+
}, p = ({ onFinish: p, onError: m }) => {
|
|
19
|
+
let [h, g] = r(() => d()), [_, v] = t(!1), [y, b] = t(!1), [x, S] = t(!1);
|
|
20
|
+
if (i({
|
|
21
|
+
status: h.status === "finished" ? "finished" : "loading",
|
|
22
|
+
onFinish: p
|
|
23
|
+
}), e(() => {
|
|
24
|
+
h.status === "error" && m?.(h.error);
|
|
25
|
+
}, [h, m]), h.status === "idle" || h.status === "loading" || h.status === "submitting") return /* @__PURE__ */ n(o, {
|
|
26
|
+
className: "IncodeCpfOcrPage",
|
|
27
|
+
children: /* @__PURE__ */ n("div", {
|
|
28
|
+
class: "IncodeCpfOcrLoading",
|
|
29
|
+
children: /* @__PURE__ */ n(s, { fullScreen: !1 })
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
if (h.status === "error") return /* @__PURE__ */ n(l, {
|
|
33
|
+
status: "failure",
|
|
34
|
+
failureTitle: "Não foi possível verificar o CPF",
|
|
35
|
+
onRetry: () => g.retry()
|
|
36
|
+
});
|
|
37
|
+
if (h.status === "finished") return null;
|
|
38
|
+
let C = f(h), w = C.cpf.replace(/\D/g, "").length === 11, T = y && !C.isValid && (w || _ && !x) ? "Insira um CPF válido" : void 0;
|
|
39
|
+
return /* @__PURE__ */ n(o, {
|
|
40
|
+
className: "IncodeCpfOcrPage",
|
|
41
|
+
title: "Insira e verifique o número do seu CPF",
|
|
42
|
+
children: /* @__PURE__ */ n("div", {
|
|
43
|
+
class: "IncodeCpfOcr",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ n(a, { size: 32 }),
|
|
46
|
+
/* @__PURE__ */ n(u, {
|
|
47
|
+
id: "cpf-ocr-input",
|
|
48
|
+
label: "",
|
|
49
|
+
value: C.cpf,
|
|
50
|
+
placeholder: "Seu CPF",
|
|
51
|
+
maxLength: 14,
|
|
52
|
+
inputMode: "numeric",
|
|
53
|
+
"aria-label": "CPF",
|
|
54
|
+
onInput: (e) => {
|
|
55
|
+
b(!0), g.setCpf(e.target.value);
|
|
56
|
+
},
|
|
57
|
+
onFocus: () => {
|
|
58
|
+
S(!0);
|
|
59
|
+
},
|
|
60
|
+
onBlur: () => {
|
|
61
|
+
S(!1), v(!0);
|
|
62
|
+
},
|
|
63
|
+
error: T,
|
|
64
|
+
showErrorIcon: !0
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ n(a, {}),
|
|
67
|
+
/* @__PURE__ */ n(c, {
|
|
68
|
+
type: "button",
|
|
69
|
+
onClick: () => g.submit(),
|
|
70
|
+
disabled: !C.isValid,
|
|
71
|
+
"data-testid": "cpf-ocr-continue",
|
|
72
|
+
children: "Continuar"
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { p as CpfOcr };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { createCrossDocumentDataMatchManager as
|
|
2
|
+
import { c as n, o as r } from "../hooks-CLjlsC2g.js";
|
|
3
|
+
import { t as i } from "../incodeComponent-MZEyrb1V.js";
|
|
4
|
+
import { t as a } from "../spinner-CKnjVHxw.js";
|
|
5
|
+
import { t as o } from "../incodeModule-CHzKl22Y.js";
|
|
6
|
+
import { createCrossDocumentDataMatchManager as s } from "@incodetech/core/cross-document-data-match";
|
|
7
7
|
//#region src/modules/cross-document-data-match/cross-document-data-match.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
8
|
+
var c = ({ onFinish: i }) => {
|
|
9
|
+
let [o, c] = n(() => s());
|
|
10
10
|
return e(() => {
|
|
11
|
-
|
|
12
|
-
}, [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
11
|
+
c.load();
|
|
12
|
+
}, [c]), r({
|
|
13
|
+
status: o.status === "finished" ? "finished" : "loading",
|
|
14
|
+
onFinish: i
|
|
15
|
+
}), /* @__PURE__ */ t(a, { fullScreen: !0 });
|
|
16
|
+
}, l = ({ onFinish: e }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, { onFinish: e }) });
|
|
17
|
+
o(l, "incode-cross-document-data-match");
|
|
17
18
|
//#endregion
|
|
18
|
-
export {
|
|
19
|
+
export { l as CrossDocumentDataMatch };
|