@incodetech/web 0.0.0-dev-20260504-8289e2f → 0.0.0-dev-20260505-23151a2
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/autoFocusTitle-Cbh_s_F3.js +16 -0
- package/dist/base.css +4 -0
- package/dist/consent/consent.es.js +3 -3
- package/dist/{countrySelector-CMhg2XLf.js → countrySelector-CgUcwTFy.js} +1 -1
- package/dist/{cpfOcr-FEdIt1gs.js → cpfOcr-BER55mzm.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 +150 -160
- package/dist/{customFields-BE-LNxr6.js → customFields-BFjP9B-9.js} +3 -3
- package/dist/{customWatchlist-D_EJ41we.js → customWatchlist-CUGte09n.js} +3 -3
- package/dist/{documentCapture-fjzmYCVb.js → documentCapture-BCKbnkZU.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-CtlBDCFZ.js +2 -0
- package/dist/{ekybModule-BPRBKuYr.js → ekybModule-z3H1-0-x.js} +6 -6
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CRrgsToG.js +2 -0
- package/dist/{ekycModule-QU1NKDFR.js → ekycModule-D_-Rs3dt.js} +5 -5
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-PtBWK2OW.js → electronic-signature-vybbO1oP.js} +4 -4
- package/dist/email/email.es.js +4 -4
- package/dist/{extensibility-04gn7mbK.js → extensibility-BMC0aVBo.js} +65 -58
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/{faceMatch-DNNvKA-V.js → faceMatch-DpvaaEgK.js} +3 -3
- package/dist/faceMatch-pE36UIra.js +2 -0
- package/dist/flow/flow.es.js +5 -5
- package/dist/flow/styles.css +101 -5
- package/dist/{formField-Dd_Dm10q.js → formField-Dr_wRS1M.js} +1 -1
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +27 -29
- package/dist/governmentValidation/styles.css +1 -5
- package/dist/{homeScreen-D21cV82y.js → homeScreen-BsnPnOwW.js} +1 -1
- package/dist/{i18n-D6pCC7RL.js → i18n-BnVa5Y-_.js} +1 -1
- package/dist/id/id.es.js +157 -106
- package/dist/id/styles.css +91 -0
- package/dist/{idOcr-DXZbASy3.js → idOcr-CGyRuHlq.js} +4 -4
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-Brc9IhMv.js → incodeComponent-Cx36DgvY.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-BP_Zpvrh.js → mandatoryConsent-DyxmgHnZ.js} +3 -3
- package/dist/{optionAccessibleLabel-C-o7iprc.js → optionAccessibleLabel-DmTGZ8Yn.js} +2 -2
- package/dist/{otpInput-BuHkqpRJ.js → otpInput-BsMvwuxV.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-5g21QOQZ.js → processing-C9xzJOq0.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-BwvtIxEI.js → redirectToMobile-C_Dwf3Sq.js} +5 -5
- package/dist/selfie/selfie.es.js +9 -6
- package/dist/selfie/styles.css +4 -0
- package/dist/signature/signature.es.js +4 -4
- package/dist/themes/dark.css +2 -0
- package/dist/themes/light.css +2 -0
- package/dist/{transitionSpinner-CisZoKUv.js → transitionSpinner-Dmj-tzXU.js} +1 -1
- package/dist/{tutorial-BhssZo_c.js → tutorial-DhSymWQF.js} +87 -87
- package/dist/types/extensibility.d.ts +4 -1
- package/dist/{useModuleLoader-DwhvEFIP.js → useModuleLoader-BDHx7y12.js} +14 -14
- package/dist/{verificationResult-BvUseXrX.js → verificationResult-BInhP13F.js} +1 -1
- package/dist/watchlist/watchlist.es.js +3 -3
- package/dist/{watchlistForBusiness-Z25ByBeW.js → watchlistForBusiness-B6qmylkp.js} +4 -4
- package/dist/workflow/styles.css +101 -5
- package/dist/workflow/workflow.es.js +5 -5
- package/package.json +2 -2
- package/dist/ekybModule-Cl0rbs4s.js +0 -2
- package/dist/ekycModule-BxPTVcan.js +0 -2
- package/dist/faceMatch-BNY9QZ2E.js +0 -2
- /package/dist/{aligndevicelottie-xrVoNCX1.js → aligndevicelottie-Dfs3Ku2-.js} +0 -0
- /package/dist/{back-horizontal-hint-CafoL5Hr.js → back-horizontal-hint-Cch8dR2s.js} +0 -0
- /package/dist/{back-tutorial-D8gxTBif.js → back-tutorial-DCeMC-YK.js} +0 -0
- /package/dist/{back-vertical-hint-vsXVE8cE.js → back-vertical-hint-Dzn5uXKH.js} +0 -0
- /package/dist/{backdevicelottie-D6ViC7os.js → backdevicelottie-B4ve1L_u.js} +0 -0
- /package/dist/{blurdevicelottie-XvW-0MTp.js → blurdevicelottie-DIQrsw9H.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-B1zV6oY9.js} +0 -0
- /package/dist/{front-horizontal-hint-B-ym65-G.js → front-horizontal-hint-CNu99K_l.js} +0 -0
- /package/dist/{front-vertical-hint-D7fluj79.js → front-vertical-hint-CpQjOGpU.js} +0 -0
- /package/dist/{frontdevicelottie-C0TbU3F-.js → frontdevicelottie-D3Gw7Qab.js} +0 -0
- /package/dist/{glaredevicelottie-z5dv0nBA.js → glaredevicelottie-BPRxXRbG.js} +0 -0
- /package/dist/{id-laser-h-BniGIPai.js → id-laser-h-BUV5ROmy.js} +0 -0
- /package/dist/{id-laser-v-DFo-b0WI.js → id-laser-v-DzsdfzVM.js} +0 -0
- /package/dist/{id-tutorial-CKackIBs.js → id-tutorial-B2d6DkZv.js} +0 -0
- /package/dist/{passport-horizontal-hint-DXy5C55p.js → passport-horizontal-hint-WqdYMc9Y.js} +0 -0
- /package/dist/{passport-tutorial-DwhO4uTV.js → passport-tutorial-DYBRCYAN.js} +0 -0
- /package/dist/{passport-vertical-hint-D0iTF_ih.js → passport-vertical-hint-rNP6GykM.js} +0 -0
- /package/dist/{pdf-DIDgYHik.js → pdf-4UQzn_KC.js} +0 -0
- /package/dist/{phoneInput-BBd_Kk-E.js → phoneInput-CIuylABp.js} +0 -0
- /package/dist/{selfieTutorial-CMc0HW_O.js → selfieTutorial-1QMt37Us.js} +0 -0
- /package/dist/{statusPage-BUwzSiOq.js → statusPage-VScoN9zO.js} +0 -0
- /package/dist/{tabs-BMnWocEX.js → tabs-Iu2gptzB.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-vybbO1oP.js";
|
|
3
3
|
import { t as n } from "../incodeModule-BH9gV7jI.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 { i as n } from "../hooks-K-ks8TCv.js";
|
|
3
|
-
import { t as r } from "../incodeComponent-
|
|
3
|
+
import { t as r } from "../incodeComponent-Cx36DgvY.js";
|
|
4
4
|
import { t as i } from "../spinner-CNteWaxs.js";
|
|
5
5
|
import { t as a } from "../incodeModule-BH9gV7jI.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 { i as t } from "../hooks-K-ks8TCv.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-Cx36DgvY.js";
|
|
4
|
+
import { n as r, r as i, t as a } from "../tutorial-DhSymWQF.js";
|
|
5
5
|
import { t as o } from "../incodeModule-BH9gV7jI.js";
|
|
6
6
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
7
7
|
//#region src/modules/authentication/authentication.tsx
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { _ as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
import { t as r } from "./typography-BU5GeRw-.js";
|
|
3
|
+
//#region src/shared/autoFocusTitle/autoFocusTitle.tsx
|
|
4
|
+
var i = ({ children: i, className: a }) => {
|
|
5
|
+
let o = t(null);
|
|
6
|
+
return e(() => {
|
|
7
|
+
o.current?.focus();
|
|
8
|
+
}, []), /* @__PURE__ */ n(r, {
|
|
9
|
+
ref: o,
|
|
10
|
+
tabIndex: -1,
|
|
11
|
+
className: a,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as t };
|
package/dist/base.css
CHANGED
|
@@ -220,6 +220,10 @@
|
|
|
220
220
|
border-width: 1px;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
.bg-white {
|
|
224
|
+
background-color: var(--color-white, #fff);
|
|
225
|
+
}
|
|
226
|
+
|
|
223
227
|
.text-button-m-underlined {
|
|
224
228
|
font-family: var(--typography-button-family);
|
|
225
229
|
font-size: var(--typography-button-m-underlined-size);
|
|
@@ -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, l as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { i } from "../hooks-K-ks8TCv.js";
|
|
4
|
-
import { t as a } from "../incodeComponent-
|
|
4
|
+
import { t as a } from "../incodeComponent-Cx36DgvY.js";
|
|
5
5
|
import { t as o } from "../page-D5Mt-0zn.js";
|
|
6
6
|
import { n as s } from "../typography-BU5GeRw-.js";
|
|
7
|
-
import { t as c } from "../transitionSpinner-
|
|
7
|
+
import { t as c } from "../transitionSpinner-Dmj-tzXU.js";
|
|
8
8
|
import { t as l } from "../button-4-ToV5B_.js";
|
|
9
9
|
import { t as u } from "../checkbox-B35BL_3X.js";
|
|
10
10
|
import { t as d } from "../incodeModule-BH9gV7jI.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-z3-qcyhl.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-D5Mt-0zn.js";
|
|
|
5
5
|
import { t as o } from "./spinner-CNteWaxs.js";
|
|
6
6
|
import "./spinner-BiPJCr9Q.js";
|
|
7
7
|
import { t as s } from "./button-4-ToV5B_.js";
|
|
8
|
-
import { t as c } from "./verificationResult-
|
|
8
|
+
import { t as c } from "./verificationResult-BInhP13F.js";
|
|
9
9
|
import { t as l } from "./inputComposed-28d14HXP.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 { i as n } from "../hooks-K-ks8TCv.js";
|
|
3
|
-
import { t as r } from "../incodeComponent-
|
|
3
|
+
import { t as r } from "../incodeComponent-Cx36DgvY.js";
|
|
4
4
|
import { t as i } from "../spinner-CNteWaxs.js";
|
|
5
5
|
import { t as a } from "../incodeModule-BH9gV7jI.js";
|
|
6
6
|
import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
|
|
@@ -1,274 +1,264 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
2
|
-
import { S as t,
|
|
3
|
-
import { i as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as h } from "../dropdownComposed-z3-qcyhl.js";
|
|
1
|
+
import { n as e } from "../i18n-BnVa5Y-_.js";
|
|
2
|
+
import { S as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
+
import { i as r } from "../hooks-K-ks8TCv.js";
|
|
4
|
+
import { t as i } from "../incodeComponent-Cx36DgvY.js";
|
|
5
|
+
import { t as a } from "../spacer-DCljE53A.js";
|
|
6
|
+
import { t as o } from "../page-D5Mt-0zn.js";
|
|
7
|
+
import { t as s } from "../transitionSpinner-Dmj-tzXU.js";
|
|
8
|
+
import { t as c } from "../button-4-ToV5B_.js";
|
|
9
|
+
import { g as l } from "../icons-BtdVuyUn.js";
|
|
10
|
+
import { t as u } from "../successIcon-SlKgTSty.js";
|
|
11
|
+
import { t as d } from "../inputComposed-28d14HXP.js";
|
|
12
|
+
import { t as f } from "../dropdownComposed-z3-qcyhl.js";
|
|
14
13
|
import "../dropdownComposed-BDHVzek1.js";
|
|
15
|
-
import { t as
|
|
14
|
+
import { t as p } from "../dateInputComposed-CVqyqQIV.js";
|
|
16
15
|
import "../dateInputComposed-BE3SBKOa.js";
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, []), /* @__PURE__ */ i(l, {
|
|
25
|
-
ref: a,
|
|
26
|
-
tabIndex: -1,
|
|
27
|
-
className: t,
|
|
28
|
-
children: e
|
|
29
|
-
});
|
|
30
|
-
}, x = ({ curp: t, isValid: n, onCurpChange: r, onVerify: a, onSwitchToGenerate: o, disabled: c = !1, placeholder: l, continueLabel: u, dontHaveLabel: f }) => {
|
|
31
|
-
let { t: p } = e(), h = l ?? p("curp.placeholder.curp") ?? "CURP", g = u ?? p("curp.continue") ?? "Continue", _ = f ?? p("curp.dontHave") ?? "I don't have my CURP";
|
|
32
|
-
return /* @__PURE__ */ i("div", {
|
|
16
|
+
import { t as m } from "../incodeModule-BH9gV7jI.js";
|
|
17
|
+
import { t as h } from "../autoFocusTitle-Cbh_s_F3.js";
|
|
18
|
+
import { createCurpValidationManager as g, mexicanStates as _ } from "@incodetech/core/curp-validation";
|
|
19
|
+
//#region src/modules/curp-validation/curpInput.tsx
|
|
20
|
+
var v = ({ curp: t, isValid: r, onCurpChange: i, onVerify: o, onSwitchToGenerate: s, disabled: l = !1, placeholder: u, continueLabel: f, dontHaveLabel: p }) => {
|
|
21
|
+
let { t: m } = e(), h = u ?? m("curp.placeholder.curp") ?? "CURP", g = f ?? m("curp.continue") ?? "Continue", _ = p ?? m("curp.dontHave") ?? "I don't have my CURP";
|
|
22
|
+
return /* @__PURE__ */ n("div", {
|
|
33
23
|
class: "IncodeCurpValidation IncodeCurpInput",
|
|
34
24
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ n(d, {
|
|
36
26
|
id: "curp-input",
|
|
37
27
|
value: t,
|
|
38
28
|
onInput: (e) => {
|
|
39
29
|
let t = e.target;
|
|
40
|
-
|
|
30
|
+
i(t.value.toUpperCase());
|
|
41
31
|
},
|
|
42
32
|
placeholder: h,
|
|
43
|
-
disabled:
|
|
33
|
+
disabled: l,
|
|
44
34
|
maxLength: 18,
|
|
45
|
-
"aria-label":
|
|
35
|
+
"aria-label": m("curp.placeholder.curp") ?? "CURP"
|
|
46
36
|
}),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ n(a, {}),
|
|
38
|
+
/* @__PURE__ */ n(c, {
|
|
49
39
|
type: "button",
|
|
50
|
-
onClick:
|
|
51
|
-
disabled: !
|
|
40
|
+
onClick: o,
|
|
41
|
+
disabled: !r || l,
|
|
52
42
|
"data-testid": "curp-verify",
|
|
53
43
|
children: g
|
|
54
44
|
}),
|
|
55
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ n(c, {
|
|
56
46
|
type: "button",
|
|
57
47
|
variant: "secondary",
|
|
58
|
-
onClick:
|
|
59
|
-
disabled:
|
|
48
|
+
onClick: s,
|
|
49
|
+
disabled: l,
|
|
60
50
|
"data-testid": "curp-switch-to-generate",
|
|
61
51
|
children: _
|
|
62
52
|
})
|
|
63
53
|
]
|
|
64
54
|
});
|
|
65
|
-
},
|
|
66
|
-
let { t:
|
|
67
|
-
firstName:
|
|
68
|
-
firstLast:
|
|
69
|
-
secondLast:
|
|
70
|
-
gender:
|
|
71
|
-
genderPlaceholder:
|
|
72
|
-
male:
|
|
73
|
-
female:
|
|
74
|
-
other:
|
|
75
|
-
dob:
|
|
76
|
-
birthState:
|
|
77
|
-
statePlaceholder:
|
|
78
|
-
generate:
|
|
79
|
-
...
|
|
80
|
-
},
|
|
55
|
+
}, y = ({ form: t, isValid: r, onFormChange: i, onGenerate: o, disabled: s = !1, labels: l }) => {
|
|
56
|
+
let { t: u } = e(), m = {
|
|
57
|
+
firstName: u("curp.labels.firstName") ?? "Your First name",
|
|
58
|
+
firstLast: u("curp.labels.firstLast") ?? "Your First last name",
|
|
59
|
+
secondLast: u("curp.labels.secondLast") ?? "Your Second last name",
|
|
60
|
+
gender: u("curp.labels.genderV2") ?? "Gender",
|
|
61
|
+
genderPlaceholder: u("curp.placeholder.gender") ?? "Choose gender",
|
|
62
|
+
male: u("curp.labels.maleV2") ?? "Male",
|
|
63
|
+
female: u("curp.labels.femaleV2") ?? "Female",
|
|
64
|
+
other: u("curp.labels.other") ?? "Other",
|
|
65
|
+
dob: u("curp.labels.dob") ?? "Date of birth",
|
|
66
|
+
birthState: u("curp.labels.birthState") ?? "State of birth",
|
|
67
|
+
statePlaceholder: u("curp.placeholder.state") ?? "Select state",
|
|
68
|
+
generate: u("curp.generateCta") ?? "Generate CURP",
|
|
69
|
+
...l
|
|
70
|
+
}, h = (e) => (t) => {
|
|
81
71
|
let n = t.target;
|
|
82
|
-
|
|
83
|
-
},
|
|
72
|
+
i({ [e]: n.value });
|
|
73
|
+
}, g = [
|
|
84
74
|
{
|
|
85
75
|
value: "H",
|
|
86
|
-
label:
|
|
76
|
+
label: m.male
|
|
87
77
|
},
|
|
88
78
|
{
|
|
89
79
|
value: "M",
|
|
90
|
-
label:
|
|
80
|
+
label: m.female
|
|
91
81
|
},
|
|
92
82
|
{
|
|
93
83
|
value: "X",
|
|
94
|
-
label:
|
|
84
|
+
label: m.other
|
|
95
85
|
}
|
|
96
|
-
],
|
|
86
|
+
], v = _.map((e) => ({
|
|
97
87
|
value: e.value,
|
|
98
88
|
label: e.label
|
|
99
89
|
}));
|
|
100
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ n("div", {
|
|
101
91
|
class: "IncodeCurpValidation IncodeGenerateCurpForm",
|
|
102
92
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ n(d, {
|
|
104
94
|
id: "curp-first-name",
|
|
105
|
-
label:
|
|
95
|
+
label: m.firstName,
|
|
106
96
|
value: t.name,
|
|
107
|
-
onInput:
|
|
108
|
-
placeholder:
|
|
109
|
-
disabled:
|
|
97
|
+
onInput: h("name"),
|
|
98
|
+
placeholder: m.firstName,
|
|
99
|
+
disabled: s,
|
|
110
100
|
autoComplete: "given-name"
|
|
111
101
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ n(d, {
|
|
113
103
|
id: "curp-first-last",
|
|
114
|
-
label:
|
|
104
|
+
label: m.firstLast,
|
|
115
105
|
value: t.firstLastName,
|
|
116
|
-
onInput:
|
|
117
|
-
placeholder:
|
|
118
|
-
disabled:
|
|
106
|
+
onInput: h("firstLastName"),
|
|
107
|
+
placeholder: m.firstLast,
|
|
108
|
+
disabled: s
|
|
119
109
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ n(d, {
|
|
121
111
|
id: "curp-second-last",
|
|
122
|
-
label:
|
|
112
|
+
label: m.secondLast,
|
|
123
113
|
value: t.secondLastName,
|
|
124
|
-
onInput:
|
|
125
|
-
placeholder:
|
|
126
|
-
disabled:
|
|
114
|
+
onInput: h("secondLastName"),
|
|
115
|
+
placeholder: m.secondLast,
|
|
116
|
+
disabled: s
|
|
127
117
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ n(f, {
|
|
129
119
|
id: "curp-gender",
|
|
130
|
-
label:
|
|
131
|
-
placeholder:
|
|
120
|
+
label: m.gender,
|
|
121
|
+
placeholder: m.genderPlaceholder,
|
|
132
122
|
value: t.gender,
|
|
133
|
-
options:
|
|
134
|
-
disabled:
|
|
135
|
-
onChange: (e) =>
|
|
123
|
+
options: g,
|
|
124
|
+
disabled: s,
|
|
125
|
+
onChange: (e) => i({ gender: e }),
|
|
136
126
|
"data-testid": "curp-gender"
|
|
137
127
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ n(p, {
|
|
139
129
|
id: "curp-birth-date",
|
|
140
|
-
label:
|
|
130
|
+
label: m.dob,
|
|
141
131
|
value: t.birthDate,
|
|
142
|
-
onInput:
|
|
132
|
+
onInput: h("birthDate"),
|
|
143
133
|
max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
144
|
-
placeholder:
|
|
145
|
-
disabled:
|
|
134
|
+
placeholder: u("curp.placeholder.dob") ?? "mm/dd/yyyy",
|
|
135
|
+
disabled: s,
|
|
146
136
|
"data-testid": "curp-birth-date"
|
|
147
137
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ n(f, {
|
|
149
139
|
id: "curp-birth-state",
|
|
150
|
-
label:
|
|
151
|
-
placeholder:
|
|
140
|
+
label: m.birthState,
|
|
141
|
+
placeholder: m.statePlaceholder,
|
|
152
142
|
value: t.birthState,
|
|
153
|
-
options:
|
|
154
|
-
disabled:
|
|
155
|
-
onChange: (e) =>
|
|
143
|
+
options: v,
|
|
144
|
+
disabled: s,
|
|
145
|
+
onChange: (e) => i({ birthState: e }),
|
|
156
146
|
"data-testid": "curp-birth-state",
|
|
157
147
|
searchable: !0
|
|
158
148
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ n(a, { size: 16 }),
|
|
150
|
+
/* @__PURE__ */ n(c, {
|
|
161
151
|
type: "button",
|
|
162
|
-
onClick:
|
|
163
|
-
disabled: !
|
|
152
|
+
onClick: o,
|
|
153
|
+
disabled: !r || s,
|
|
164
154
|
"data-testid": "curp-generate",
|
|
165
|
-
children:
|
|
155
|
+
children: m.generate
|
|
166
156
|
})
|
|
167
157
|
]
|
|
168
158
|
});
|
|
169
|
-
},
|
|
170
|
-
let { t:
|
|
171
|
-
if (!
|
|
172
|
-
return
|
|
159
|
+
}, b = ({ config: i, onFinish: f, onError: p }) => {
|
|
160
|
+
let { t: m } = e(), [_, b] = r(() => {
|
|
161
|
+
if (!i) throw Error("CURP validation config is required");
|
|
162
|
+
return g({ config: i });
|
|
173
163
|
});
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
164
|
+
if (_.status === "idle" || _.status === "loading" || _.status === "verifying" || _.status === "generating") return /* @__PURE__ */ n(s, { spinnerConfig: { title: _.status === "generating" ? m("curp.status.generating") ?? "Generating..." : m("curp.status.verifying") ?? "Verifying..." } });
|
|
165
|
+
if (_.status === "enterCurp") return /* @__PURE__ */ n(o, {
|
|
176
166
|
className: "IncodeCurpValidationPage",
|
|
177
|
-
title:
|
|
178
|
-
children: /* @__PURE__ */
|
|
179
|
-
curp:
|
|
180
|
-
isValid:
|
|
181
|
-
onCurpChange: (e) =>
|
|
182
|
-
onVerify: () =>
|
|
183
|
-
onSwitchToGenerate: () =>
|
|
184
|
-
placeholder:
|
|
185
|
-
continueLabel:
|
|
186
|
-
dontHaveLabel:
|
|
167
|
+
title: m("curp.enterCurp") ?? "Enter your CURP",
|
|
168
|
+
children: /* @__PURE__ */ n(v, {
|
|
169
|
+
curp: _.curp,
|
|
170
|
+
isValid: _.isValid,
|
|
171
|
+
onCurpChange: (e) => b.setCurp(e),
|
|
172
|
+
onVerify: () => b.verify(),
|
|
173
|
+
onSwitchToGenerate: () => b.switchToGenerate(),
|
|
174
|
+
placeholder: m("curp.placeholder.curp") ?? "CURP",
|
|
175
|
+
continueLabel: m("curp.continue") ?? "Continue",
|
|
176
|
+
dontHaveLabel: m("curp.dontHave") ?? "I don't have my CURP"
|
|
187
177
|
})
|
|
188
178
|
});
|
|
189
|
-
if (
|
|
179
|
+
if (_.status === "generateCurp") return /* @__PURE__ */ n(o, {
|
|
190
180
|
className: "IncodeCurpValidationPage",
|
|
191
|
-
title:
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
form:
|
|
194
|
-
isValid:
|
|
195
|
-
onFormChange: (e) =>
|
|
196
|
-
onGenerate: () =>
|
|
181
|
+
title: m("curp.generate") ?? "Generate your CURP",
|
|
182
|
+
children: /* @__PURE__ */ n(y, {
|
|
183
|
+
form: _.form,
|
|
184
|
+
isValid: _.isValid,
|
|
185
|
+
onFormChange: (e) => b.setGenerateForm(e),
|
|
186
|
+
onGenerate: () => b.generate()
|
|
197
187
|
})
|
|
198
188
|
});
|
|
199
|
-
if (
|
|
189
|
+
if (_.status === "confirmCurp") return /* @__PURE__ */ n(o, {
|
|
200
190
|
className: "IncodeCurpValidationPage",
|
|
201
|
-
title:
|
|
202
|
-
children: /* @__PURE__ */
|
|
191
|
+
title: m("curp.status.confirm") ?? "Confirm your CURP",
|
|
192
|
+
children: /* @__PURE__ */ n("div", {
|
|
203
193
|
class: "IncodeCurpValidation IncodeCurpConfirm",
|
|
204
194
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ n(d, {
|
|
206
196
|
id: "curp-confirm-input",
|
|
207
|
-
value:
|
|
197
|
+
value: _.curp,
|
|
208
198
|
readOnly: !0,
|
|
209
|
-
"aria-label":
|
|
199
|
+
"aria-label": m("curp.status.generatedCurp") ?? "Generated CURP",
|
|
210
200
|
"data-testid": "curp-confirm-input"
|
|
211
201
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ n(a, {}),
|
|
203
|
+
/* @__PURE__ */ n(c, {
|
|
214
204
|
type: "button",
|
|
215
|
-
onClick: () =>
|
|
205
|
+
onClick: () => b.confirmGenerated(),
|
|
216
206
|
"data-testid": "curp-confirm",
|
|
217
|
-
children:
|
|
207
|
+
children: m("curp.continue") ?? "Continue"
|
|
218
208
|
})
|
|
219
209
|
]
|
|
220
210
|
})
|
|
221
211
|
});
|
|
222
|
-
if (
|
|
212
|
+
if (_.status === "success") return /* @__PURE__ */ n(o, {
|
|
223
213
|
className: "IncodeCurpValidationPage",
|
|
224
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ n("div", {
|
|
225
215
|
class: "IncodeCurpValidation IncodeCurpSuccess",
|
|
226
216
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ n(u, { size: 64 }),
|
|
218
|
+
/* @__PURE__ */ n(a, { size: 16 }),
|
|
219
|
+
/* @__PURE__ */ n(h, {
|
|
230
220
|
className: "IncodeCurpSuccessTitle",
|
|
231
|
-
children:
|
|
221
|
+
children: m("curp.status.verified") ?? "Verified"
|
|
232
222
|
})
|
|
233
223
|
]
|
|
234
224
|
})
|
|
235
225
|
});
|
|
236
|
-
if (
|
|
237
|
-
let e =
|
|
238
|
-
return /* @__PURE__ */
|
|
226
|
+
if (_.status === "failure" || _.status === "generateError") {
|
|
227
|
+
let e = _.retriesLeft > 0, r = _.status === "failure" ? m("curp.status.notVerified") ?? "Not verified" : m("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
|
|
228
|
+
return /* @__PURE__ */ n(o, {
|
|
239
229
|
className: "IncodeCurpValidationPage",
|
|
240
|
-
children: /* @__PURE__ */
|
|
230
|
+
children: /* @__PURE__ */ n("div", {
|
|
241
231
|
class: "IncodeCurpValidation IncodeCurpFailure",
|
|
242
232
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ n(a, {}),
|
|
234
|
+
/* @__PURE__ */ n(l, { size: 64 }),
|
|
235
|
+
/* @__PURE__ */ n(a, { size: 16 }),
|
|
236
|
+
/* @__PURE__ */ n(h, {
|
|
247
237
|
className: "IncodeCurpFailureTitle",
|
|
248
|
-
children:
|
|
238
|
+
children: r
|
|
249
239
|
}),
|
|
250
|
-
|
|
240
|
+
_.status === "generateError" && e && /* @__PURE__ */ n(t, { children: [/* @__PURE__ */ n(a, { size: 12 }), /* @__PURE__ */ n("p", {
|
|
251
241
|
class: "IncodeCurpFailureHint",
|
|
252
242
|
role: "alert",
|
|
253
|
-
children:
|
|
243
|
+
children: m("curp.status.checkInfo") ?? "Please check your information"
|
|
254
244
|
})] }),
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
e && /* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ n(a, {}),
|
|
246
|
+
e && /* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(c, {
|
|
257
247
|
type: "button",
|
|
258
|
-
onClick: () =>
|
|
248
|
+
onClick: () => b.retry(),
|
|
259
249
|
"data-testid": "curp-retry",
|
|
260
|
-
children:
|
|
250
|
+
children: _.status === "failure" ? m("curp.status.tryAgain") ?? "Try again" : m("curp.status.edit") ?? "Edit information"
|
|
261
251
|
}) })
|
|
262
252
|
]
|
|
263
253
|
})
|
|
264
254
|
});
|
|
265
255
|
}
|
|
266
|
-
return
|
|
267
|
-
},
|
|
256
|
+
return _.status === "finished" ? (f?.(), null) : (_.status === "closed" && p?.(void 0), null);
|
|
257
|
+
}, x = ({ config: e, onFinish: t, onError: r }) => /* @__PURE__ */ n(i, { children: e ? /* @__PURE__ */ n(b, {
|
|
268
258
|
config: e,
|
|
269
259
|
onFinish: t,
|
|
270
|
-
onError:
|
|
260
|
+
onError: r
|
|
271
261
|
}) : null });
|
|
272
|
-
|
|
262
|
+
m(x, "incode-curp-validation");
|
|
273
263
|
//#endregion
|
|
274
|
-
export {
|
|
264
|
+
export { x as CurpValidation };
|
|
@@ -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 { i as a } from "./hooks-K-ks8TCv.js";
|
|
4
|
-
import { t as o } from "./incodeComponent-
|
|
4
|
+
import { t as o } from "./incodeComponent-Cx36DgvY.js";
|
|
5
5
|
import { t as s } from "./spacer-DCljE53A.js";
|
|
6
6
|
import { t as c } from "./page-D5Mt-0zn.js";
|
|
7
7
|
import { t as l } from "./loadingIcon-wTrHZMGC.js";
|
|
@@ -11,7 +11,7 @@ import { t as f } from "./inputComposed-28d14HXP.js";
|
|
|
11
11
|
import { t as p } from "./checkbox-B35BL_3X.js";
|
|
12
12
|
import { t as m } from "./dateInputComposed-CVqyqQIV.js";
|
|
13
13
|
import { t as h } from "./incodeModule-BH9gV7jI.js";
|
|
14
|
-
import { t as g } from "./statusPage-
|
|
14
|
+
import { t as g } from "./statusPage-VScoN9zO.js";
|
|
15
15
|
import { createCustomFieldsManager as _ } from "@incodetech/core/custom-fields";
|
|
16
16
|
//#region src/modules/custom-fields/customFields.tsx
|
|
17
17
|
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 { i } from "./hooks-K-ks8TCv.js";
|
|
4
|
-
import { t as a } from "./incodeComponent-
|
|
4
|
+
import { t as a } from "./incodeComponent-Cx36DgvY.js";
|
|
5
5
|
import { t as o } from "./loadingIcon-wTrHZMGC.js";
|
|
6
6
|
import { t as s } from "./successIcon-SlKgTSty.js";
|
|
7
7
|
import { t as c } from "./incodeModule-BH9gV7jI.js";
|
|
8
|
-
import { t as l } from "./statusPage-
|
|
8
|
+
import { t as l } from "./statusPage-VScoN9zO.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,16 +1,16 @@
|
|
|
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 { i as c, t as l } from "./hooks-K-ks8TCv.js";
|
|
4
|
-
import { t as u } from "./incodeComponent-
|
|
4
|
+
import { t as u } from "./incodeComponent-Cx36DgvY.js";
|
|
5
5
|
import { t as d } from "./spacer-DCljE53A.js";
|
|
6
6
|
import { t as f } from "./page-D5Mt-0zn.js";
|
|
7
|
-
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-
|
|
7
|
+
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-BMC0aVBo.js";
|
|
8
8
|
import { n as b } from "./loadingIcon-wTrHZMGC.js";
|
|
9
9
|
import { t as x } from "./spinner-CNteWaxs.js";
|
|
10
10
|
import { t as S } from "./button-4-ToV5B_.js";
|
|
11
11
|
import { a as C, p as w, r as T } from "./icons-BtdVuyUn.js";
|
|
12
12
|
import { t as E } from "./successIcon-SlKgTSty.js";
|
|
13
|
-
import { o as D } from "./tutorial-
|
|
13
|
+
import { o as D } from "./tutorial-DhSymWQF.js";
|
|
14
14
|
import { t as O } from "./bottomSheet-BXIzn-hy.js";
|
|
15
15
|
import { t as k } from "./incodeModule-BH9gV7jI.js";
|
|
16
16
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
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-z3H1-0-x.js";
|
|
2
2
|
export { e as EkybModule };
|
|
@@ -1,17 +1,17 @@
|
|
|
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, n as l } from "./hooks-K-ks8TCv.js";
|
|
4
|
-
import { t as u } from "./incodeComponent-
|
|
4
|
+
import { t as u } from "./incodeComponent-Cx36DgvY.js";
|
|
5
5
|
import { t as d } from "./page-D5Mt-0zn.js";
|
|
6
6
|
import { t as f } from "./spinner-CNteWaxs.js";
|
|
7
7
|
import { t as p } from "./button-4-ToV5B_.js";
|
|
8
|
-
import { t as m } from "./verificationResult-
|
|
8
|
+
import { t as m } from "./verificationResult-BInhP13F.js";
|
|
9
9
|
import { t as h } from "./inputComposed-28d14HXP.js";
|
|
10
|
-
import { n as g, t as _ } from "./formField-
|
|
10
|
+
import { n as g, t as _ } from "./formField-Dr_wRS1M.js";
|
|
11
11
|
import { t as v } from "./dropdownComposed-z3-qcyhl.js";
|
|
12
12
|
import { t as y } from "./incodeModule-BH9gV7jI.js";
|
|
13
|
-
import { n as b, t as x } from "./optionAccessibleLabel-
|
|
14
|
-
import { t as S } from "./countrySelector-
|
|
13
|
+
import { n as b, t as x } from "./optionAccessibleLabel-DmTGZ8Yn.js";
|
|
14
|
+
import { t as S } from "./countrySelector-CgUcwTFy.js";
|
|
15
15
|
import { computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
|
|
16
16
|
//#region src/modules/ekyb/fieldInput.tsx
|
|
17
17
|
var T = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
|
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-D_-Rs3dt.js";
|
|
2
2
|
export { e as EkycModule };
|