@incodetech/web 0.0.0-dev-20260507-df83b23 → 0.0.0-dev-20260507-78f2d13
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 +1 -1
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/consent/consent.es.js +3 -3
- package/dist/{countrySelector-C-XdpB3o.js → countrySelector-CxwhZU7X.js} +1 -1
- package/dist/{cpfOcr-C1NNPNiv.js → cpfOcr-BzoRvWuh.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +3 -3
- package/dist/{customFields-IrNw7FK_.js → customFields-64Wcgiwr.js} +3 -3
- package/dist/{customWatchlist-DBKYqZFo.js → customWatchlist-BT1PQfoG.js} +3 -3
- package/dist/{documentCapture-D771VncU.js → documentCapture-B7gkjbde.js} +4 -4
- package/dist/dynamic-forms/styles.css +36 -0
- package/dist/dynamicForms-DFXXP6uP.js +262 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B92LkG1f.js +2 -0
- package/dist/{ekybModule-Bfy9TRvI.js → ekybModule-C3lXG2tC.js} +6 -6
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-Dl44pQfM.js +2 -0
- package/dist/{ekycModule-HCEXHXWG.js → ekycModule-L1RBjKZI.js} +5 -5
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DZNQCizH.js → electronic-signature-BeiUCIMV.js} +4 -4
- package/dist/email/email.es.js +18 -51
- package/dist/email/styles.css +6 -6
- package/dist/emailInput-Q5WNjX9l.js +37 -0
- package/dist/{extensibility-CqkRoeXt.js → extensibility-C1xYMmD-.js} +19 -19
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-Bv8Sa132.js → faceMatch-B6hGcl2-.js} +4 -4
- package/dist/faceMatch-Dh01E8Zv.js +2 -0
- package/dist/flow/flow.es.js +27 -5
- package/dist/flow/styles.css +47 -6
- package/dist/{formField-DVxrqXxH.js → formField-BkU7EVsS.js} +1 -1
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +3 -3
- package/dist/{homeScreen-DR7TohNU.js → homeScreen-DprCAAmv.js} +1 -1
- package/dist/{i18n-D6pCC7RL.js → i18n-BnVa5Y-_.js} +1 -1
- package/dist/id/id.es.js +9 -9
- package/dist/{idOcr-BTS-3ASD.js → idOcr-iAAZKKU2.js} +4 -4
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-BRtpx7iO.js → incodeComponent-9ZUPvQgC.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-CUkwi7Am.js → mandatoryConsent-BVUiGOKK.js} +3 -3
- package/dist/{optionAccessibleLabel-BNmB1NZB.js → optionAccessibleLabel-BNqnKbwB.js} +2 -2
- package/dist/{otpInput-C28CqSoT.js → otpInput-CLo5__yb.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-Byt0PHxP.js → processing-c8ep-KSh.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-Bhnrjjd5.js → redirectToMobile-Cg-BpzrT.js} +5 -5
- package/dist/selfie/selfie.es.js +5 -5
- package/dist/signature/signature.es.js +4 -4
- package/dist/{transitionSpinner-DHelnP9m.js → transitionSpinner-av72n-l1.js} +1 -1
- package/dist/{tutorial-n8Rcb2Xw.js → tutorial-BvRU4P4P.js} +3 -3
- package/dist/types/dynamic-forms/styles.d.ts +1 -0
- package/dist/types/extensibility.d.ts +1 -0
- package/dist/{useModuleLoader-CeL4xnpa.js → useModuleLoader-DRDu9LBw.js} +17 -15
- package/dist/{verificationResult-Zcgwq6Cv.js → verificationResult-9weGpvn5.js} +20 -16
- package/dist/watchlist/watchlist.es.js +3 -3
- package/dist/{watchlistForBusiness-CpogLnXi.js → watchlistForBusiness-DjgJnsPT.js} +4 -4
- package/dist/workflow/styles.css +6 -6
- package/dist/workflow/workflow.es.js +16 -13
- package/package.json +2 -2
- package/dist/ekybModule-DCsm9MrN.js +0 -2
- package/dist/ekycModule-DpoLgitr.js +0 -2
- package/dist/faceMatch-DNnR3D9Y.js +0 -2
- /package/dist/{aligndevicelottie-xrVoNCX1.js → aligndevicelottie-CpAPbotJ.js} +0 -0
- /package/dist/{back-horizontal-hint-CafoL5Hr.js → back-horizontal-hint-C_wAUpW0.js} +0 -0
- /package/dist/{back-tutorial-D8gxTBif.js → back-tutorial-H9SCe0gx.js} +0 -0
- /package/dist/{back-vertical-hint-vsXVE8cE.js → back-vertical-hint-C9xK0aN8.js} +0 -0
- /package/dist/{backdevicelottie-D6ViC7os.js → backdevicelottie-Dx1dP2K0.js} +0 -0
- /package/dist/{blurdevicelottie-XvW-0MTp.js → blurdevicelottie-DCVb3_MF.js} +0 -0
- /package/dist/{browser-ponyfill-Dqca0y49.js → browser-ponyfill-Dxc09_1M.js} +0 -0
- /package/dist/{flip-animation-C6-P7Ueu.js → flip-animation-CviBXTS-.js} +0 -0
- /package/dist/{front-horizontal-hint-B-ym65-G.js → front-horizontal-hint-SvDdygvL.js} +0 -0
- /package/dist/{front-vertical-hint-D7fluj79.js → front-vertical-hint-vIniWZ_9.js} +0 -0
- /package/dist/{frontdevicelottie-C0TbU3F-.js → frontdevicelottie-6sxr3oQH.js} +0 -0
- /package/dist/{glaredevicelottie-z5dv0nBA.js → glaredevicelottie--PlYPjZt.js} +0 -0
- /package/dist/{id-laser-h-BniGIPai.js → id-laser-h-D0KN9qFd.js} +0 -0
- /package/dist/{id-laser-v-DFo-b0WI.js → id-laser-v-BLY6XMRK.js} +0 -0
- /package/dist/{id-tutorial-CKackIBs.js → id-tutorial-Dnuu_ZUb.js} +0 -0
- /package/dist/{passport-horizontal-hint-DXy5C55p.js → passport-horizontal-hint-Bxb4tVrA.js} +0 -0
- /package/dist/{passport-tutorial-DwhO4uTV.js → passport-tutorial-CFp2zeDJ.js} +0 -0
- /package/dist/{passport-vertical-hint-D0iTF_ih.js → passport-vertical-hint-D6hgaXKT.js} +0 -0
- /package/dist/{pdf-CERc26GI.js → pdf-BK9eYHAw.js} +0 -0
- /package/dist/{selfieTutorial-CmGGVE4q.js → selfieTutorial-1QMt37Us.js} +0 -0
- /package/dist/{snackbar-B3hIVhgk.js → snackbar-BVeXpux9.js} +0 -0
- /package/dist/{statusPage-DXmurxxX.js → statusPage-BvmC0O1t.js} +0 -0
- /package/dist/{tabs-D-xvkepW.js → tabs-MPYTnMQG.js} +0 -0
|
@@ -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-BeiUCIMV.js";
|
|
3
3
|
import { t as n } from "../incodeModule-D_r2n18O.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,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
2
|
import { o as n } from "../hooks-BVnGysT7.js";
|
|
3
|
-
import { t as r } from "../incodeComponent-
|
|
3
|
+
import { t as r } from "../incodeComponent-9ZUPvQgC.js";
|
|
4
4
|
import { t as i } from "../spinner-CKnjVHxw.js";
|
|
5
5
|
import { t as a } from "../incodeModule-D_r2n18O.js";
|
|
6
6
|
import { createAntifraudManager as o } from "@incodetech/core/antifraud";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
2
|
import { o as t } from "../hooks-BVnGysT7.js";
|
|
3
|
-
import { t as n } from "../incodeComponent-
|
|
4
|
-
import { n as r, r as i, t as a } from "../tutorial-
|
|
3
|
+
import { t as n } from "../incodeComponent-9ZUPvQgC.js";
|
|
4
|
+
import { n as r, r as i, t as a } from "../tutorial-BvRU4P4P.js";
|
|
5
5
|
import { t as o } from "../incodeModule-D_r2n18O.js";
|
|
6
6
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
7
7
|
//#region src/modules/authentication/authentication.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BnVa5Y-_.js";
|
|
2
2
|
import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as a } from "../hooks-BVnGysT7.js";
|
|
4
|
-
import { t as o } from "../incodeComponent-
|
|
4
|
+
import { t as o } from "../incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { t as s } from "../page-DCsXSlHl.js";
|
|
6
6
|
import { n as c } from "../typography-CxjaknHN.js";
|
|
7
|
-
import { t as l } from "../transitionSpinner-
|
|
7
|
+
import { t as l } from "../transitionSpinner-av72n-l1.js";
|
|
8
8
|
import { t as u } from "../button-DcCUEn2n.js";
|
|
9
9
|
import { t as d } from "../checkbox-Cl57ltq_.js";
|
|
10
10
|
import { t as f } from "../incodeModule-D_r2n18O.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as r } from "./dropdownComposed-DFRBG22E.js";
|
|
4
4
|
import { DEV_ONLY_COUNTRIES as i, SUPPORTED_COUNTRIES as a } from "@incodetech/core/ekyb";
|
|
@@ -5,7 +5,7 @@ import { t as a } from "./page-DCsXSlHl.js";
|
|
|
5
5
|
import { t as o } from "./spinner-CKnjVHxw.js";
|
|
6
6
|
import "./spinner-B4dcie2T.js";
|
|
7
7
|
import { t as s } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as c } from "./verificationResult-
|
|
8
|
+
import { t as c } from "./verificationResult-9weGpvn5.js";
|
|
9
9
|
import { t as l } from "./inputComposed-APSw8C7o.js";
|
|
10
10
|
import { createCpfOcrManager as u } from "@incodetech/core/cpf-ocr";
|
|
11
11
|
//#region src/modules/cpf-ocr/cpfOcr.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
2
|
import { o as n } from "../hooks-BVnGysT7.js";
|
|
3
|
-
import { t as r } from "../incodeComponent-
|
|
3
|
+
import { t as r } from "../incodeComponent-9ZUPvQgC.js";
|
|
4
4
|
import { t as i } from "../spinner-CKnjVHxw.js";
|
|
5
5
|
import { t as a } from "../incodeModule-D_r2n18O.js";
|
|
6
6
|
import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BnVa5Y-_.js";
|
|
2
2
|
import { S as t, d as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as i } from "../hooks-BVnGysT7.js";
|
|
4
|
-
import { t as a } from "../incodeComponent-
|
|
4
|
+
import { t as a } from "../incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { r as o } from "../loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as s } from "../page-DCsXSlHl.js";
|
|
7
|
-
import { t as c } from "../transitionSpinner-
|
|
7
|
+
import { t as c } from "../transitionSpinner-av72n-l1.js";
|
|
8
8
|
import { t as l } from "../button-DcCUEn2n.js";
|
|
9
9
|
import { g as u } from "../icons-Cc7zwchP.js";
|
|
10
10
|
import { t as d } from "../successIcon-DbILeIz_.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { _ as t, l as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as a } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as o } from "./incodeComponent-
|
|
4
|
+
import { t as o } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { r as s, t as c } from "./loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as l } from "./page-DCsXSlHl.js";
|
|
7
7
|
import { t as u } from "./button-DcCUEn2n.js";
|
|
@@ -10,7 +10,7 @@ import { t as f } from "./inputComposed-APSw8C7o.js";
|
|
|
10
10
|
import { t as p } from "./checkbox-Cl57ltq_.js";
|
|
11
11
|
import { t as m } from "./dateInputComposed-YUmNQwOo.js";
|
|
12
12
|
import { t as h } from "./incodeModule-D_r2n18O.js";
|
|
13
|
-
import { t as g } from "./statusPage-
|
|
13
|
+
import { t as g } from "./statusPage-BvmC0O1t.js";
|
|
14
14
|
import { createCustomFieldsManager as _ } from "@incodetech/core/custom-fields";
|
|
15
15
|
//#region src/modules/custom-fields/customFields.tsx
|
|
16
16
|
var v = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as i } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as a } from "./incodeComponent-
|
|
4
|
+
import { t as a } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { t as o } from "./loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as s } from "./successIcon-DbILeIz_.js";
|
|
7
7
|
import { t as c } from "./incodeModule-D_r2n18O.js";
|
|
8
|
-
import { t as l } from "./statusPage-
|
|
8
|
+
import { t as l } from "./statusPage-BvmC0O1t.js";
|
|
9
9
|
import { createCustomWatchlistManager as u } from "@incodetech/core/custom-watchlist";
|
|
10
10
|
//#region src/modules/custom-watchlist/customWatchlist.tsx
|
|
11
11
|
var d = ({ onFinish: a }) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as c, r as l } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as u } from "./incodeComponent-
|
|
4
|
+
import { t as u } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { n as d, r as f } from "./loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as p } from "./page-DCsXSlHl.js";
|
|
7
|
-
import { _ as m, c as h, d as g, f as _, l as v, u as y, v as b } from "./extensibility-
|
|
7
|
+
import { _ as m, c as h, d as g, f as _, l as v, u as y, v as b } from "./extensibility-C1xYMmD-.js";
|
|
8
8
|
import { t as x } from "./spinner-CKnjVHxw.js";
|
|
9
9
|
import { t as S } from "./button-DcCUEn2n.js";
|
|
10
10
|
import { a as C, p as w, r as T } from "./icons-Cc7zwchP.js";
|
|
11
11
|
import { t as E } from "./successIcon-DbILeIz_.js";
|
|
12
|
-
import { o as D } from "./tutorial-
|
|
12
|
+
import { o as D } from "./tutorial-BvRU4P4P.js";
|
|
13
13
|
import { t as O } from "./bottomSheet-CLMmiBQS.js";
|
|
14
14
|
import { t as k } from "./incodeModule-D_r2n18O.js";
|
|
15
15
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.IncodeDynamicFormsProgress {
|
|
3
|
+
margin-bottom: var(--spacing-4, var(--spacing-4, 4px));
|
|
4
|
+
text-align: center;
|
|
5
|
+
font-size: var(--text-sm, .875rem);
|
|
6
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));
|
|
7
|
+
color: var(--text-secondary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.IncodeDynamicFormsPage .IncodePageTitleContainer {
|
|
11
|
+
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.IncodeDynamicFormsForm {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 420px;
|
|
18
|
+
height: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.IncodeDynamicFormsForm button {
|
|
23
|
+
margin-top: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.IncodeDynamicFormsField {
|
|
27
|
+
margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
width: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.IncodePageContent {
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
|
+
import { _ as t, d as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { o as a } from "./hooks-BVnGysT7.js";
|
|
4
|
+
import { t as o } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
|
+
import { r as s } from "./loadingIcon-BN5YRQUb.js";
|
|
6
|
+
import { t as c } from "./page-DCsXSlHl.js";
|
|
7
|
+
import { t as l } from "./button-DcCUEn2n.js";
|
|
8
|
+
import { t as u } from "./verificationResult-9weGpvn5.js";
|
|
9
|
+
import { t as d } from "./inputComposed-APSw8C7o.js";
|
|
10
|
+
import { t as f } from "./checkbox-Cl57ltq_.js";
|
|
11
|
+
import { n as p, t as m } from "./phoneInputComposed-bvWhGLFZ.js";
|
|
12
|
+
import { t as h } from "./dropdownComposed-DFRBG22E.js";
|
|
13
|
+
import { t as g } from "./dateInputComposed-YUmNQwOo.js";
|
|
14
|
+
import { t as _ } from "./incodeModule-D_r2n18O.js";
|
|
15
|
+
import { t as v } from "./emailInput-Q5WNjX9l.js";
|
|
16
|
+
import { formatCPF as y } from "@incodetech/core/cpf-ocr";
|
|
17
|
+
import { createDynamicFormsManager as b } from "@incodetech/core/dynamic-forms";
|
|
18
|
+
//#region src/modules/dynamic-forms/dynamicForms.tsx
|
|
19
|
+
function x(e) {
|
|
20
|
+
return e.inputType ?? e.overrides ?? "TEXT";
|
|
21
|
+
}
|
|
22
|
+
var S = ({ question: e, value: t, disabled: r = !1, onChange: a, onPhoneChange: o, onPhoneBlur: s, phoneError: c, onEmailChange: l, onEmailBlur: u, emailError: _, onCpfChange: b, onCpfBlur: S, cpfError: C }) => {
|
|
23
|
+
let w = x(e), T = `dynamic-form-${e.questionId}`, E = e.isOptional ? e.question : `* ${e.question}`, D = w === "COUNTRY" || w === "NATIONALITY", O = n(() => D ? p.map((e) => ({
|
|
24
|
+
value: e.code,
|
|
25
|
+
label: `${e.emoji} ${e.name}`,
|
|
26
|
+
ariaLabel: e.name
|
|
27
|
+
})) : [], [D]);
|
|
28
|
+
if (w === "YESNO") return /* @__PURE__ */ i("div", {
|
|
29
|
+
class: "IncodeDynamicFormsField",
|
|
30
|
+
children: /* @__PURE__ */ i(f, {
|
|
31
|
+
id: T,
|
|
32
|
+
name: e.questionId,
|
|
33
|
+
label: E,
|
|
34
|
+
checked: t === "YES",
|
|
35
|
+
disabled: r,
|
|
36
|
+
onChange: (t) => a(e.questionId, t.target.checked ? "YES" : "NO")
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
if (w === "DATE") return /* @__PURE__ */ i("div", {
|
|
40
|
+
class: "IncodeDynamicFormsField",
|
|
41
|
+
children: /* @__PURE__ */ i(g, {
|
|
42
|
+
id: T,
|
|
43
|
+
name: e.questionId,
|
|
44
|
+
label: E,
|
|
45
|
+
value: t,
|
|
46
|
+
disabled: r,
|
|
47
|
+
onInput: (t) => a(e.questionId, t.target.value)
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
if (w === "PHONE") return /* @__PURE__ */ i("div", {
|
|
51
|
+
class: "IncodeDynamicFormsField",
|
|
52
|
+
onFocusOut: () => s?.(e.questionId),
|
|
53
|
+
children: /* @__PURE__ */ i(m, {
|
|
54
|
+
id: T,
|
|
55
|
+
label: E,
|
|
56
|
+
value: t,
|
|
57
|
+
error: c,
|
|
58
|
+
showErrorIcon: !!c,
|
|
59
|
+
disabled: r,
|
|
60
|
+
onChange: (t, n) => o?.(e.questionId, t, n)
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
if (w === "COUNTRY" || w === "NATIONALITY") return /* @__PURE__ */ i("div", {
|
|
64
|
+
class: "IncodeDynamicFormsField",
|
|
65
|
+
children: /* @__PURE__ */ i(h, {
|
|
66
|
+
id: T,
|
|
67
|
+
label: E,
|
|
68
|
+
value: t,
|
|
69
|
+
options: O,
|
|
70
|
+
searchable: !0,
|
|
71
|
+
disabled: r,
|
|
72
|
+
onChange: (t) => a(e.questionId, t)
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
if (w === "SELECT" || w === "MULTISELECT") {
|
|
76
|
+
let n = (e.options ?? []).map((e) => ({
|
|
77
|
+
value: e,
|
|
78
|
+
label: e
|
|
79
|
+
}));
|
|
80
|
+
return /* @__PURE__ */ i("div", {
|
|
81
|
+
class: "IncodeDynamicFormsField",
|
|
82
|
+
children: /* @__PURE__ */ i(h, {
|
|
83
|
+
id: T,
|
|
84
|
+
label: E,
|
|
85
|
+
value: t,
|
|
86
|
+
options: n,
|
|
87
|
+
searchable: n.length > 5,
|
|
88
|
+
disabled: r,
|
|
89
|
+
onChange: (t) => a(e.questionId, t)
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return w === "EMAIL" ? /* @__PURE__ */ i("div", {
|
|
94
|
+
class: "IncodeDynamicFormsField",
|
|
95
|
+
children: /* @__PURE__ */ i(v, {
|
|
96
|
+
value: t,
|
|
97
|
+
emailError: _,
|
|
98
|
+
label: E,
|
|
99
|
+
disabled: r,
|
|
100
|
+
onEmailChange: (t, n) => {
|
|
101
|
+
a(e.questionId, t), l?.(e.questionId, t, n);
|
|
102
|
+
},
|
|
103
|
+
onBlur: () => u?.(e.questionId)
|
|
104
|
+
})
|
|
105
|
+
}) : w === "CPF" ? /* @__PURE__ */ i("div", {
|
|
106
|
+
class: "IncodeDynamicFormsField",
|
|
107
|
+
children: /* @__PURE__ */ i(d, {
|
|
108
|
+
id: T,
|
|
109
|
+
name: e.questionId,
|
|
110
|
+
label: E,
|
|
111
|
+
inputMode: "numeric",
|
|
112
|
+
maxLength: 14,
|
|
113
|
+
value: t,
|
|
114
|
+
error: C,
|
|
115
|
+
showErrorIcon: !!C,
|
|
116
|
+
disabled: r,
|
|
117
|
+
onInput: (t) => {
|
|
118
|
+
let n = y(t.target.value);
|
|
119
|
+
t.target.value = n, a(e.questionId, n), b?.(e.questionId, n);
|
|
120
|
+
},
|
|
121
|
+
onBlur: () => S?.(e.questionId)
|
|
122
|
+
})
|
|
123
|
+
}) : w === "NUMBER" ? /* @__PURE__ */ i("div", {
|
|
124
|
+
class: "IncodeDynamicFormsField",
|
|
125
|
+
children: /* @__PURE__ */ i(d, {
|
|
126
|
+
id: T,
|
|
127
|
+
name: e.questionId,
|
|
128
|
+
label: E,
|
|
129
|
+
type: "number",
|
|
130
|
+
inputMode: "numeric",
|
|
131
|
+
value: t,
|
|
132
|
+
disabled: r,
|
|
133
|
+
onInput: (t) => {
|
|
134
|
+
let n = t.target.value.replace(/[^0-9]/g, "");
|
|
135
|
+
a(e.questionId, n);
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
}) : /* @__PURE__ */ i("div", {
|
|
139
|
+
class: "IncodeDynamicFormsField",
|
|
140
|
+
children: /* @__PURE__ */ i(d, {
|
|
141
|
+
id: T,
|
|
142
|
+
name: e.questionId,
|
|
143
|
+
label: E,
|
|
144
|
+
type: "text",
|
|
145
|
+
value: t,
|
|
146
|
+
disabled: r,
|
|
147
|
+
onInput: (t) => a(e.questionId, t.target.value)
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
}, C = ({ screen: n, answers: a, answerValidity: o, canSubmit: u, isSubmitting: d = !1, onAnswerChange: f, onAnswerValidityChange: p, onSubmit: m }) => {
|
|
151
|
+
let { t: h } = e(), [g, _] = r({}), [v, y] = r({}), [b, C] = r({}), [w, T] = r({}), [E, D] = r({}), [O, k] = r({});
|
|
152
|
+
return t(() => {
|
|
153
|
+
_({}), y({}), C({}), T({}), D({}), k({});
|
|
154
|
+
}, [n]), /* @__PURE__ */ i(c, {
|
|
155
|
+
className: "IncodeDynamicFormsPage",
|
|
156
|
+
title: n.hideTitle ? void 0 : n.title || h("dynamicForms.title"),
|
|
157
|
+
hideFooterBranding: !0,
|
|
158
|
+
children: [/* @__PURE__ */ i(s, { size: 32 }), /* @__PURE__ */ i("form", {
|
|
159
|
+
class: "IncodeDynamicFormsForm",
|
|
160
|
+
onSubmit: (e) => {
|
|
161
|
+
e.preventDefault(), m();
|
|
162
|
+
},
|
|
163
|
+
autoComplete: "off",
|
|
164
|
+
children: [n.questions.map((e) => {
|
|
165
|
+
let t = x(e), n = t === "PHONE", r = t === "EMAIL", s = t === "CPF", c = o[e.questionId], l = n && g[e.questionId] && v[e.questionId] && c === !1 ? h("phone.invalidPhone") : void 0, u = r && b[e.questionId] && w[e.questionId] && c === !1 ? h("verification.errors.emailInvalid") : void 0, m = s && E[e.questionId] && O[e.questionId] && c === !1 ? h("dynamicForms.invalidCpf") : void 0;
|
|
166
|
+
return /* @__PURE__ */ i(S, {
|
|
167
|
+
question: e,
|
|
168
|
+
value: a[e.questionId] ?? "",
|
|
169
|
+
disabled: d,
|
|
170
|
+
onChange: f,
|
|
171
|
+
onPhoneChange: (e, t, n) => {
|
|
172
|
+
f(e, t), p(e, n), _((t) => ({
|
|
173
|
+
...t,
|
|
174
|
+
[e]: !0
|
|
175
|
+
}));
|
|
176
|
+
},
|
|
177
|
+
onPhoneBlur: (e) => y((t) => ({
|
|
178
|
+
...t,
|
|
179
|
+
[e]: !0
|
|
180
|
+
})),
|
|
181
|
+
phoneError: l,
|
|
182
|
+
onEmailChange: (e, t, n) => {
|
|
183
|
+
p(e, n), C((t) => ({
|
|
184
|
+
...t,
|
|
185
|
+
[e]: !0
|
|
186
|
+
}));
|
|
187
|
+
},
|
|
188
|
+
onEmailBlur: (e) => T((t) => ({
|
|
189
|
+
...t,
|
|
190
|
+
[e]: !0
|
|
191
|
+
})),
|
|
192
|
+
emailError: u,
|
|
193
|
+
onCpfChange: (e) => {
|
|
194
|
+
D((t) => ({
|
|
195
|
+
...t,
|
|
196
|
+
[e]: !0
|
|
197
|
+
}));
|
|
198
|
+
},
|
|
199
|
+
onCpfBlur: (e) => k((t) => ({
|
|
200
|
+
...t,
|
|
201
|
+
[e]: !0
|
|
202
|
+
})),
|
|
203
|
+
cpfError: m
|
|
204
|
+
}, e.questionId);
|
|
205
|
+
}), /* @__PURE__ */ i(l, {
|
|
206
|
+
type: "submit",
|
|
207
|
+
disabled: !u,
|
|
208
|
+
isLoading: d,
|
|
209
|
+
children: h("common.continue")
|
|
210
|
+
})]
|
|
211
|
+
})]
|
|
212
|
+
});
|
|
213
|
+
}, w = ({ config: n, manager: r, onFinish: o }) => {
|
|
214
|
+
let { t: s } = e(), [c, l] = a(() => {
|
|
215
|
+
if (r) return r;
|
|
216
|
+
if (!n) throw Error("DynamicForms config is required");
|
|
217
|
+
return b({ config: n });
|
|
218
|
+
}, {
|
|
219
|
+
manageLifecycle: !r,
|
|
220
|
+
autoLoad: !0
|
|
221
|
+
});
|
|
222
|
+
if (t(() => {
|
|
223
|
+
(c.status === "finished" || c.status === "closed") && o?.();
|
|
224
|
+
}, [c.status, o]), c.status === "idle" || c.status === "loadingScreens") return /* @__PURE__ */ i(u, {
|
|
225
|
+
status: "submitting",
|
|
226
|
+
submittingTitle: s("common.loading"),
|
|
227
|
+
hideFooterBranding: !0
|
|
228
|
+
});
|
|
229
|
+
if (c.status === "inputting" || c.status === "submitting") {
|
|
230
|
+
let e = c.status === "submitting", t = c.status === "inputting" ? c.canSubmit : !1;
|
|
231
|
+
return /* @__PURE__ */ i(C, {
|
|
232
|
+
screen: c.currentScreen,
|
|
233
|
+
answers: c.answers,
|
|
234
|
+
answerValidity: c.answerValidity,
|
|
235
|
+
canSubmit: t,
|
|
236
|
+
isSubmitting: e,
|
|
237
|
+
onAnswerChange: (e, t) => l.setAnswer(e, t),
|
|
238
|
+
onAnswerValidityChange: (e, t) => l.setAnswerValidity(e, t),
|
|
239
|
+
onSubmit: () => l.submit()
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
if (c.status === "success") return /* @__PURE__ */ i(u, {
|
|
243
|
+
status: "success",
|
|
244
|
+
successTitle: s("dynamicForms.success"),
|
|
245
|
+
hideFooterBranding: !0
|
|
246
|
+
});
|
|
247
|
+
if (c.status === "misconfigured") return /* @__PURE__ */ i(u, {
|
|
248
|
+
status: "failure",
|
|
249
|
+
failureTitle: s("dynamicForms.misconfigured"),
|
|
250
|
+
onSkip: () => l.close(),
|
|
251
|
+
skipLabel: s("common.close"),
|
|
252
|
+
hideFooterBranding: !0
|
|
253
|
+
});
|
|
254
|
+
if (c.status === "finished" || c.status === "closed") return null;
|
|
255
|
+
}, T = ({ config: e, manager: t, onFinish: n }) => /* @__PURE__ */ i(o, { children: e || t ? /* @__PURE__ */ i(w, {
|
|
256
|
+
config: e,
|
|
257
|
+
manager: t,
|
|
258
|
+
onFinish: n
|
|
259
|
+
}) : null });
|
|
260
|
+
_(T, "incode-dynamic-forms");
|
|
261
|
+
//#endregion
|
|
262
|
+
export { T as DynamicForms };
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ekybModule-
|
|
1
|
+
import { t as e } from "../ekybModule-C3lXG2tC.js";
|
|
2
2
|
export { e as EkybModule };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { S as t, _ as n, d as r, h as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { i as c, o as l } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as u } from "./incodeComponent-
|
|
4
|
+
import { t as u } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { t as d } from "./page-DCsXSlHl.js";
|
|
6
6
|
import { t as f } from "./spinner-CKnjVHxw.js";
|
|
7
7
|
import { t as p } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as m } from "./verificationResult-
|
|
8
|
+
import { t as m } from "./verificationResult-9weGpvn5.js";
|
|
9
9
|
import { t as h } from "./inputComposed-APSw8C7o.js";
|
|
10
|
-
import { n as g, t as _ } from "./formField-
|
|
10
|
+
import { n as g, t as _ } from "./formField-BkU7EVsS.js";
|
|
11
11
|
import { t as v } from "./dropdownComposed-DFRBG22E.js";
|
|
12
12
|
import { t as y } from "./incodeModule-D_r2n18O.js";
|
|
13
13
|
import { n as b, t as x } from "./requiredLabelHint-J9rEJWcF.js";
|
|
14
|
-
import { n as S, t as C } from "./optionAccessibleLabel-
|
|
15
|
-
import { t as w } from "./countrySelector-
|
|
14
|
+
import { n as S, t as C } from "./optionAccessibleLabel-BNqnKbwB.js";
|
|
15
|
+
import { t as w } from "./countrySelector-CxwhZU7X.js";
|
|
16
16
|
import { computeEkybDisplayErrors as T, createEkybManager as E } from "@incodetech/core/ekyb";
|
|
17
17
|
//#region src/modules/ekyb/fieldInput.tsx
|
|
18
18
|
var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint: o, onChange: c, onBlur: l }) => {
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ekycModule-
|
|
1
|
+
import { t as e } from "../ekycModule-L1RBjKZI.js";
|
|
2
2
|
export { e as EkycModule };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { _ as t, d as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { i as s, o as c } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as l } from "./incodeComponent-
|
|
4
|
+
import { t as l } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { t as u } from "./page-DCsXSlHl.js";
|
|
6
6
|
import { t as d } from "./spinner-CKnjVHxw.js";
|
|
7
7
|
import { t as f } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as p } from "./verificationResult-
|
|
9
|
-
import { n as m, t as h } from "./formField-
|
|
8
|
+
import { t as p } from "./verificationResult-9weGpvn5.js";
|
|
9
|
+
import { n as m, t as h } from "./formField-BkU7EVsS.js";
|
|
10
10
|
import { t as g } from "./phoneInputComposed-bvWhGLFZ.js";
|
|
11
11
|
import { t as _ } from "./dropdownComposed-DFRBG22E.js";
|
|
12
12
|
import { t as v } from "./dateInputComposed-YUmNQwOo.js";
|
|
13
13
|
import { t as y } from "./radioGroupComposed-B74fc1L3.js";
|
|
14
14
|
import { t as b } from "./incodeModule-D_r2n18O.js";
|
|
15
15
|
import { n as x, t as S } from "./requiredLabelHint-J9rEJWcF.js";
|
|
16
|
-
import { n as C, t as w } from "./optionAccessibleLabel-
|
|
16
|
+
import { n as C, t as w } from "./optionAccessibleLabel-BNqnKbwB.js";
|
|
17
17
|
import { computeEkycDisplayErrors as T, createEkycManager as E } from "@incodetech/core/ekyc";
|
|
18
18
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
19
19
|
var D = ({ config: n, onFinish: r }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../electronic-signature-
|
|
1
|
+
import { n as e, t } from "../electronic-signature-BeiUCIMV.js";
|
|
2
2
|
export { t as AeSignature, e as ElectronicSignature };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e, t } from "./i18n-
|
|
1
|
+
import { n as e, t } from "./i18n-BnVa5Y-_.js";
|
|
2
2
|
import { _ as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as s } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as c } from "./incodeComponent-
|
|
4
|
+
import { t as c } from "./incodeComponent-9ZUPvQgC.js";
|
|
5
5
|
import { n as l } from "./loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as u } from "./page-DCsXSlHl.js";
|
|
7
7
|
import { t as d } from "./spinner-CKnjVHxw.js";
|
|
8
8
|
import { t as f } from "./button-DcCUEn2n.js";
|
|
9
9
|
import { c as p, r as m } from "./icons-Cc7zwchP.js";
|
|
10
10
|
import { t as h } from "./successIcon-DbILeIz_.js";
|
|
11
|
-
import { t as g } from "./verificationResult-
|
|
11
|
+
import { t as g } from "./verificationResult-9weGpvn5.js";
|
|
12
12
|
import { t as _ } from "./checkbox-Cl57ltq_.js";
|
|
13
13
|
import { t as v } from "./incodeModule-D_r2n18O.js";
|
|
14
14
|
import { createElectronicSignatureManager as y } from "@incodetech/core/electronic-signature";
|
|
@@ -133,7 +133,7 @@ var w = ({ url: e, mode: t = "full", "aria-label": r, className: s, onError: c }
|
|
|
133
133
|
let n = !1, r = null, i = null;
|
|
134
134
|
return m("loading"), (async () => {
|
|
135
135
|
try {
|
|
136
|
-
let a = await import("./pdf-
|
|
136
|
+
let a = await import("./pdf-BK9eYHAw.js");
|
|
137
137
|
if (a.GlobalWorkerOptions.workerSrc = x, n) return;
|
|
138
138
|
let o = u.current, s = f.current;
|
|
139
139
|
if (!o || !s || (s.innerHTML = "", r = a.getDocument({ url: e }), i = await r.promise, n)) return;
|