@incodetech/web 0.0.0-dev-20260416-bf5b221 → 0.0.0-dev-20260417-78468b3
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/{AsYouType-RC03ULcj.js → AsYouType-C9ozHT0m.js} +1 -1
- package/dist/{addressAutocomplete-n0bBMSty.js → addressAutocomplete-BPpO7rrX.js} +4 -4
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/{button-BlHmZn6D.js → button-wmLHLQxG.js} +1 -1
- package/dist/{checkbox-BNgPsssk.js → checkbox-CM72oZfM.js} +2 -2
- package/dist/consent/consent.es.js +9 -9
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/curp-validation/curp-validation.es.js +14 -14
- package/dist/{dateInputComposed-B8nKYsUG.js → dateInputComposed-CvIDakYb.js} +4 -4
- package/dist/dateInputComposed-fdBzdL8N.js +1 -0
- package/dist/{documentCapture-DHtlw3Lu.js → documentCapture-BAvYoKZ7.js} +65 -64
- package/dist/{dropdownComposed-CR1bc7Z9.js → dropdownComposed-BE7-ghHI.js} +3 -3
- package/dist/dropdownComposed-ChSksPc2.js +1 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-BeYiTLFg.js +2 -0
- package/dist/{ekybModule-BBSKwZZy.js → ekybModule-Dm6NrgtW.js} +14 -14
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-Dca-zhQw.js → ekycModule-ChHA8VPJ.js} +19 -19
- package/dist/ekycModule-zakzAXhB.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DEAXKbsk.js → electronic-signature-CPfLwg-x.js} +9 -9
- package/dist/email/email.es.js +8 -8
- package/dist/{extensibility-BlGCucJR.js → extensibility-t-H5EpZ8.js} +96 -95
- package/dist/extensibility.es.js +22 -22
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-B74pDVYi.js +2 -0
- package/dist/{faceMatch-D6HVVSiY.js → faceMatch-ClWhkFUE.js} +6 -6
- package/dist/flow/flow.es.js +206 -192
- package/dist/{formField-B9_nvbhW.js → formField-9ouSScYr.js} +2 -2
- package/dist/geolocation/geolocation.es.js +6 -6
- package/dist/governmentValidation/governmentValidation.es.js +8 -8
- package/dist/homeScreen-C0-81utl.js +210 -0
- package/dist/{i18n-DUMvrSNM.js → i18n-BpEDCZi_.js} +1 -1
- package/dist/{icons-CVO6RxwW.js → icons-G_Ct2lZU.js} +1 -1
- package/dist/id/id.es.js +6 -6
- package/dist/identity-reuse/identity-reuse.es.js +6 -6
- package/dist/incode-logo-DX016usY.js +4 -0
- package/dist/{loadingIcon-ahC-hZN7.js → incodeComponent-DIb7wDAq.js} +2 -42
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-BqRIZ9pG.js +1 -0
- package/dist/{inputComposed-COz9TuR1.js → inputComposed-d8s1aPjr.js} +3 -3
- package/dist/loadingIcon-HWY04StG.js +42 -0
- package/dist/{mandatoryConsent-DWwvkGGf.js → mandatoryConsent-BVrqZJDU.js} +9 -9
- package/dist/{modal-D75YXA_d.js → modal-BQF9tPLH.js} +2 -2
- package/dist/{otpInput-CNAOHZxZ.js → otpInput-OtCx4bG4.js} +4 -4
- package/dist/{page-kB-LDkaO.js → page-D5Mt-0zn.js} +4 -3
- package/dist/phone/phone.es.js +8 -8
- package/dist/{phoneInput-CzcmqH3C.js → phoneInput-DHepphBa.js} +3 -3
- package/dist/{phoneInputComposed-w9tF4xYB.js → phoneInputComposed-DOuz7g1p.js} +6 -6
- package/dist/{processing-CR7zb0TX.js → processing-LdRzxpWv.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-CYt-uhqB.js → redirectToMobile-1oLWg6QJ.js} +23 -21
- package/dist/{richText-MNrzpRze.js → richText-gJTUJEMX.js} +1 -1
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/{setup-IE6CqyVs.js → setup-D7-7VjBv.js} +1 -1
- package/dist/signature/signature.es.js +9 -9
- package/dist/spinner-CFvndzMU.js +1 -0
- package/dist/{spinner-BAVCJLTE.js → spinner-l6dvYqCg.js} +7 -7
- package/dist/{tutorial-Dqk1zedL.js → tutorial-DMwavp-V.js} +43 -42
- package/dist/{typography-7cXma7kl.js → typography-CNNFm2Bl.js} +1 -1
- package/dist/typography-ClOy6Kmo.js +1 -0
- package/dist/{useModuleLoader-DPGKFaMr.js → useModuleLoader-B6JxxJWR.js} +113 -75
- package/dist/{verificationResult-LpiTdYIu.js → verificationResult-WLz8qNU8.js} +6 -6
- package/dist/{verifiedByIncode-CMPwRtA2.js → verifiedByIncode-ChZBpqNy.js} +12 -15
- package/dist/watchlist/watchlist.es.js +22 -21
- package/dist/workflow/workflow.es.js +18 -18
- package/package.json +2 -2
- package/dist/dateInputComposed-DnYA7nZG.js +0 -1
- package/dist/dropdownComposed-P1FeTlTM.js +0 -1
- package/dist/ekybModule-qBQ8sJSr.js +0 -2
- package/dist/ekycModule-R0YaUzV3.js +0 -2
- package/dist/faceMatch-CFxHH3ic.js +0 -2
- package/dist/home/home.es.js +0 -224
- package/dist/home/styles.css +0 -172
- package/dist/inputComposed-BWxnXHJf.js +0 -1
- package/dist/spinner-B-jf992b.js +0 -1
- package/dist/types/home.d.ts +0 -30
- package/dist/typography-CsEiWMTG.js +0 -1
- /package/dist/{aligndevicelottie-B9K1XnzC.js → aligndevicelottie-BfnvOtwi.js} +0 -0
- /package/dist/{back-horizontal-hint-Dy_Qglma.js → back-horizontal-hint-CpDPt7Pn.js} +0 -0
- /package/dist/{back-tutorial-Cc5SwoLa.js → back-tutorial-DRNlpp1o.js} +0 -0
- /package/dist/{back-vertical-hint-Dg3OKUKF.js → back-vertical-hint-CMS6HTd5.js} +0 -0
- /package/dist/{backdevicelottie-DPvn_MCA.js → backdevicelottie-DqTioBhp.js} +0 -0
- /package/dist/{blurdevicelottie-DGpZjyZE.js → blurdevicelottie-BCYf_azj.js} +0 -0
- /package/dist/{browser-ponyfill-CTu_YiCx.js → browser-ponyfill-CRq2EKxP.js} +0 -0
- /package/dist/{countries-DKKNtuUp.js → countries-Bbn2lyxr.js} +0 -0
- /package/dist/{defineProperty-DXvyTpBq.js → defineProperty-CqT6YdHJ.js} +0 -0
- /package/dist/{flip-animation-DwJvEqyX.js → flip-animation-Dj8sBkxM.js} +0 -0
- /package/dist/{front-horizontal-hint-DgopDgUF.js → front-horizontal-hint-C204EjG5.js} +0 -0
- /package/dist/{front-vertical-hint-nOpxcjqw.js → front-vertical-hint-BT8dqgFS.js} +0 -0
- /package/dist/{frontdevicelottie-DBrRXwKx.js → frontdevicelottie-BOCUyhYK.js} +0 -0
- /package/dist/{glaredevicelottie-DvG7qeiM.js → glaredevicelottie-g5gLJDcn.js} +0 -0
- /package/dist/{id-laser-h-BrG7qvHh.js → id-laser-h-C9wj3dpL.js} +0 -0
- /package/dist/{id-laser-v-Bt1xfH5h.js → id-laser-v-Bmnxnt0M.js} +0 -0
- /package/dist/{id-tutorial-WgpG0ahL.js → id-tutorial-CFTli-M3.js} +0 -0
- /package/dist/{incodeModule-Di2OUZ5_.js → incodeModule-D_r2n18O.js} +0 -0
- /package/dist/{numberedStep-LYLcVRNh.js → numberedStep-CR4w_BpM.js} +0 -0
- /package/dist/{passport-horizontal-hint-DXzBzsri.js → passport-horizontal-hint-DQ_bncwr.js} +0 -0
- /package/dist/{passport-tutorial-DEr1yuAg.js → passport-tutorial-Bihd5YfK.js} +0 -0
- /package/dist/{passport-vertical-hint-B8Sap2l6.js → passport-vertical-hint-Bck8hVuX.js} +0 -0
- /package/dist/{selfieTutorial-B5l5ny8O.js → selfieTutorial-Cu9vXjss.js} +0 -0
- /package/dist/{successIcon-AHrfmJvv.js → successIcon-C4GI_9SU.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, l as r, o as i, s as a, u as o } from "./countries-
|
|
1
|
+
import { a as e, c as t, d as n, l as r, o as i, s as a, u as o } from "./countries-Bbn2lyxr.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
3
3
|
function s(e, t) {
|
|
4
4
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BpEDCZi_.js";
|
|
2
2
|
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as s } from "./inputComposed-
|
|
5
|
-
import { n as c } from "./formField-
|
|
3
|
+
import { r as o } from "./incodeComponent-DIb7wDAq.js";
|
|
4
|
+
import { t as s } from "./inputComposed-d8s1aPjr.js";
|
|
5
|
+
import { n as c } from "./formField-9ouSScYr.js";
|
|
6
6
|
//#region src/modules/ekyc/addressAutocomplete.tsx
|
|
7
7
|
var l = ({ label: l, value: u, error: d, errorParams: f, suggestions: p, readonly: m, optional: h, onChange: g, onSearch: _, onSelect: v, onBlur: y }) => {
|
|
8
8
|
let { t: b } = e(), [x, S] = i(!1), [C, w] = i(!1), [T, E] = i(""), [D, O] = i(-1), k = r(null), A = "ekyc-address-listbox", j = o(), M = b(l), N = h ? `${M} (${b("common.optional")})` : M;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as t } from "../electronic-signature-
|
|
3
|
-
import { t as n } from "../incodeModule-
|
|
2
|
+
import { n as t } from "../electronic-signature-CPfLwg-x.js";
|
|
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, {
|
|
6
6
|
config: n ? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "../spinner-
|
|
4
|
-
import { t as a } from "../incodeModule-
|
|
2
|
+
import { o as n, t as r } from "../incodeComponent-DIb7wDAq.js";
|
|
3
|
+
import { t as i } from "../spinner-l6dvYqCg.js";
|
|
4
|
+
import { t as a } from "../incodeModule-D_r2n18O.js";
|
|
5
5
|
import { createAntifraudManager as o } from "@incodetech/core/antifraud";
|
|
6
6
|
//#region src/modules/antifraud/antifraud.tsx
|
|
7
7
|
var s = ({ onFinish: r }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as r, r as i, t as a } from "../tutorial-
|
|
4
|
-
import { t as o } from "../incodeModule-
|
|
2
|
+
import { o as t, t as n } from "../incodeComponent-DIb7wDAq.js";
|
|
3
|
+
import { n as r, r as i, t as a } from "../tutorial-DMwavp-V.js";
|
|
4
|
+
import { t as o } from "../incodeModule-D_r2n18O.js";
|
|
5
5
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
6
6
|
//#region src/modules/authentication/authentication.tsx
|
|
7
7
|
var c = ({ config: n, authHint: o, manager: c, onFinish: l, onError: u }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as e, a as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as r, t as i } from "./loadingIcon-
|
|
2
|
+
import { n as r, t as i } from "./loadingIcon-HWY04StG.js";
|
|
3
3
|
//#region src/shared/button/button.tsx
|
|
4
4
|
var a = 30, o = {
|
|
5
5
|
primary: "IncodeButtonPrimary",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as r } from "./loadingIcon-
|
|
3
|
-
import { l as i, m as a } from "./icons-
|
|
2
|
+
import { n as r } from "./loadingIcon-HWY04StG.js";
|
|
3
|
+
import { l as i, m as a } from "./icons-G_Ct2lZU.js";
|
|
4
4
|
//#region src/shared/checkbox/checkbox.tsx
|
|
5
5
|
var o = e(({ id: e, label: o, size: s = "m", checked: c, defaultChecked: l, disabled: u = !1, required: d = !1, name: f, value: p, onChange: m, error: h, helper: g, showErrorIcon: _ = !0, class: v, "aria-label": y, "aria-labelledby": b, "aria-describedby": x, "aria-invalid": S, ...C }, w) => {
|
|
6
6
|
let [T, E] = t(!!l), D = c !== void 0, O = D ? !!c : T, k = !!u, A = !!d, j = typeof v == "string" ? v : void 0, M = (e) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BpEDCZi_.js";
|
|
2
2
|
import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "../page-
|
|
5
|
-
import { t as a } from "../spinner-
|
|
6
|
-
import "../spinner-
|
|
7
|
-
import { t as o } from "../button-
|
|
8
|
-
import { t as s } from "../checkbox-
|
|
9
|
-
import { t as c } from "../incodeModule-
|
|
10
|
-
import { t as l } from "../richText-
|
|
3
|
+
import { o as n, t as r } from "../incodeComponent-DIb7wDAq.js";
|
|
4
|
+
import { t as i } from "../page-D5Mt-0zn.js";
|
|
5
|
+
import { t as a } from "../spinner-l6dvYqCg.js";
|
|
6
|
+
import "../spinner-CFvndzMU.js";
|
|
7
|
+
import { t as o } from "../button-wmLHLQxG.js";
|
|
8
|
+
import { t as s } from "../checkbox-CM72oZfM.js";
|
|
9
|
+
import { t as c } from "../incodeModule-D_r2n18O.js";
|
|
10
|
+
import { t as l } from "../richText-gJTUJEMX.js";
|
|
11
11
|
import { createConsentManager as u } from "@incodetech/core/consent";
|
|
12
12
|
//#region src/modules/consent/consent.tsx
|
|
13
13
|
var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "../spinner-
|
|
4
|
-
import { t as a } from "../incodeModule-
|
|
2
|
+
import { o as n, t as r } from "../incodeComponent-DIb7wDAq.js";
|
|
3
|
+
import { t as i } from "../spinner-l6dvYqCg.js";
|
|
4
|
+
import { t as a } from "../incodeModule-D_r2n18O.js";
|
|
5
5
|
import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
|
|
6
6
|
//#region src/modules/cross-document-data-match/cross-document-data-match.tsx
|
|
7
7
|
var s = ({ onFinish: r }) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BpEDCZi_.js";
|
|
2
2
|
import { S as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import {
|
|
3
|
+
import { o as r, t as i } from "../incodeComponent-DIb7wDAq.js";
|
|
4
4
|
import { t as a } from "../spacer-DCljE53A.js";
|
|
5
|
-
import { t as o } from "../page-
|
|
6
|
-
import { t as s } from "../spinner-
|
|
7
|
-
import "../spinner-
|
|
8
|
-
import { t as c } from "../button-
|
|
9
|
-
import { m as l } from "../icons-
|
|
10
|
-
import { t as u } from "../successIcon-
|
|
11
|
-
import { t as d } from "../inputComposed-
|
|
12
|
-
import { t as f } from "../dropdownComposed-
|
|
13
|
-
import "../dropdownComposed-
|
|
14
|
-
import { t as p } from "../dateInputComposed-
|
|
15
|
-
import "../dateInputComposed-
|
|
16
|
-
import { t as m } from "../incodeModule-
|
|
5
|
+
import { t as o } from "../page-D5Mt-0zn.js";
|
|
6
|
+
import { t as s } from "../spinner-l6dvYqCg.js";
|
|
7
|
+
import "../spinner-CFvndzMU.js";
|
|
8
|
+
import { t as c } from "../button-wmLHLQxG.js";
|
|
9
|
+
import { m as l } from "../icons-G_Ct2lZU.js";
|
|
10
|
+
import { t as u } from "../successIcon-C4GI_9SU.js";
|
|
11
|
+
import { t as d } from "../inputComposed-d8s1aPjr.js";
|
|
12
|
+
import { t as f } from "../dropdownComposed-BE7-ghHI.js";
|
|
13
|
+
import "../dropdownComposed-ChSksPc2.js";
|
|
14
|
+
import { t as p } from "../dateInputComposed-CvIDakYb.js";
|
|
15
|
+
import "../dateInputComposed-fdBzdL8N.js";
|
|
16
|
+
import { t as m } from "../incodeModule-D_r2n18O.js";
|
|
17
17
|
import { createCurpValidationManager as h, mexicanStates as g } from "@incodetech/core/curp-validation";
|
|
18
18
|
//#region src/modules/curp-validation/curpInput.tsx
|
|
19
19
|
var _ = ({ curp: t, isValid: r, onCurpChange: i, onVerify: o, onSwitchToGenerate: s, disabled: l = !1, placeholder: u, continueLabel: f, dontHaveLabel: p }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as r } from "./loadingIcon-
|
|
3
|
-
import { f as i } from "./icons-
|
|
4
|
-
import { t as a } from "./inputComposed-
|
|
5
|
-
import "./inputComposed-
|
|
2
|
+
import { n as r } from "./loadingIcon-HWY04StG.js";
|
|
3
|
+
import { f as i } from "./icons-G_Ct2lZU.js";
|
|
4
|
+
import { t as a } from "./inputComposed-d8s1aPjr.js";
|
|
5
|
+
import "./inputComposed-BqRIZ9pG.js";
|
|
6
6
|
//#region src/shared/dateInputComposed/dateInputComposed.tsx
|
|
7
7
|
var o = e(({ id: e, label: o, disabled: s, class: c, ...l }, u) => {
|
|
8
8
|
let d = t(null), f = (e) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dateInputComposed-CvIDakYb.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BpEDCZi_.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
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
3
|
+
import { o as c, r as l, t as u } from "./incodeComponent-DIb7wDAq.js";
|
|
4
|
+
import { t as d } from "./spacer-DCljE53A.js";
|
|
5
|
+
import { t as f } from "./page-D5Mt-0zn.js";
|
|
6
|
+
import { c as p, d as m, f as h, l as g, u as _, v, y } from "./extensibility-t-H5EpZ8.js";
|
|
7
|
+
import { n as b } from "./loadingIcon-HWY04StG.js";
|
|
8
|
+
import { t as x } from "./spinner-l6dvYqCg.js";
|
|
9
|
+
import { t as S } from "./button-wmLHLQxG.js";
|
|
10
|
+
import { a as C, d as w, r as T } from "./icons-G_Ct2lZU.js";
|
|
11
|
+
import { o as E, s as D } from "./tutorial-DMwavp-V.js";
|
|
12
|
+
import { t as O } from "./successIcon-C4GI_9SU.js";
|
|
13
|
+
import { t as k } from "./incodeModule-D_r2n18O.js";
|
|
13
14
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
|
14
15
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
15
16
|
function j(e) {
|
|
@@ -28,18 +29,18 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
28
29
|
let r = new Blob([Uint8Array.from(atob(t), (e) => e.charCodeAt(0))], { type: "image/jpeg" }), i = new File([r], "document.jpg", { type: "image/jpeg" });
|
|
29
30
|
n.setFile(i, `data:image/jpeg;base64,${t}`);
|
|
30
31
|
}, [n]);
|
|
31
|
-
return /* @__PURE__ */ s(
|
|
32
|
+
return /* @__PURE__ */ s(g, {
|
|
32
33
|
stream: t,
|
|
33
34
|
videoRef: c,
|
|
34
35
|
"data-testid": "document-capture-camera",
|
|
35
|
-
children: /* @__PURE__ */ s(
|
|
36
|
-
/* @__PURE__ */ s(
|
|
36
|
+
children: /* @__PURE__ */ s(m, { children: [
|
|
37
|
+
/* @__PURE__ */ s(_, {
|
|
37
38
|
title: o("documentCapture.camera.title"),
|
|
38
39
|
subtitle: o("documentCapture.camera.subtitle")
|
|
39
40
|
}),
|
|
40
|
-
/* @__PURE__ */ s(
|
|
41
|
-
/* @__PURE__ */ s(
|
|
42
|
-
/* @__PURE__ */ s(
|
|
41
|
+
/* @__PURE__ */ s(d, { size: 16 }),
|
|
42
|
+
/* @__PURE__ */ s(h, { variant: "fill" }),
|
|
43
|
+
/* @__PURE__ */ s(p, {
|
|
43
44
|
onOpenHelp: a,
|
|
44
45
|
onCapture: l,
|
|
45
46
|
isManualCapture: !0,
|
|
@@ -183,7 +184,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
183
184
|
}
|
|
184
185
|
], P = ({ onClose: t }) => {
|
|
185
186
|
let { t: n } = e();
|
|
186
|
-
return /* @__PURE__ */ s(
|
|
187
|
+
return /* @__PURE__ */ s(y, {
|
|
187
188
|
"aria-labelledby": "document-common-issues-title",
|
|
188
189
|
children: [
|
|
189
190
|
/* @__PURE__ */ s("h2", {
|
|
@@ -191,7 +192,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
191
192
|
class: "IncodeDocumentCommonIssuesTitle",
|
|
192
193
|
children: n("commonIssues.commonIssues")
|
|
193
194
|
}),
|
|
194
|
-
/* @__PURE__ */ s(
|
|
195
|
+
/* @__PURE__ */ s(d, { size: 32 }),
|
|
195
196
|
/* @__PURE__ */ s("div", {
|
|
196
197
|
class: "IncodeDocumentCommonIssuesCards",
|
|
197
198
|
children: N.map((e) => /* @__PURE__ */ s("div", {
|
|
@@ -242,7 +243,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
242
243
|
class: "IncodeDocumentCaptureReviewTitle",
|
|
243
244
|
children: r(n ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured")
|
|
244
245
|
}),
|
|
245
|
-
/* @__PURE__ */ s(
|
|
246
|
+
/* @__PURE__ */ s(d, { size: 12 }),
|
|
246
247
|
/* @__PURE__ */ s("p", {
|
|
247
248
|
class: "IncodeDocumentCaptureReviewSubtitle",
|
|
248
249
|
children: r(n ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured")
|
|
@@ -259,7 +260,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
259
260
|
let { t: n } = e();
|
|
260
261
|
return /* @__PURE__ */ s(t, { children: [
|
|
261
262
|
/* @__PURE__ */ s(O, { size: 30 }),
|
|
262
|
-
/* @__PURE__ */ s(
|
|
263
|
+
/* @__PURE__ */ s(d, { size: 16 }),
|
|
263
264
|
/* @__PURE__ */ s("h2", {
|
|
264
265
|
class: "IncodeDocumentCaptureReviewTitle",
|
|
265
266
|
children: n("documentCapture.review.successTitle")
|
|
@@ -267,7 +268,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
267
268
|
] });
|
|
268
269
|
}, z = ({ progress: n, isFilePdf: r }) => {
|
|
269
270
|
let { t: i } = e(), a = i(r ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
|
|
270
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
271
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(d, { size: 8 }), /* @__PURE__ */ s(v, {
|
|
271
272
|
progress: n,
|
|
272
273
|
label: a
|
|
273
274
|
})] });
|
|
@@ -280,8 +281,8 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
280
281
|
attemptsRemaining: n.attemptsRemaining,
|
|
281
282
|
onButtonClick: () => r.retry()
|
|
282
283
|
});
|
|
283
|
-
let a = n.fileType === "application/pdf" || n.imageBase64.startsWith("data:application/pdf"), { fileName: o } = n, c = n.status === "preview", l = n.status === "uploading",
|
|
284
|
-
return /* @__PURE__ */ s(
|
|
284
|
+
let a = n.fileType === "application/pdf" || n.imageBase64.startsWith("data:application/pdf"), { fileName: o } = n, c = n.status === "preview", l = n.status === "uploading", u = n.status === "success", p = n.status === "nextPage", m = u || p;
|
|
285
|
+
return /* @__PURE__ */ s(f, {
|
|
285
286
|
hideHeader: !0,
|
|
286
287
|
hideFooterBranding: !0,
|
|
287
288
|
className: "IncodeDocumentCapturePage IncodeDocumentCaptureReviewPage",
|
|
@@ -297,11 +298,11 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
297
298
|
progress: n.progress,
|
|
298
299
|
isFilePdf: a
|
|
299
300
|
}) : null,
|
|
300
|
-
|
|
301
|
+
m ? /* @__PURE__ */ s(R, {}) : null
|
|
301
302
|
]
|
|
302
303
|
}),
|
|
303
304
|
/* @__PURE__ */ s("div", {
|
|
304
|
-
class:
|
|
305
|
+
class: b("IncodeDocumentCaptureReviewPreview", a && "IncodeDocumentCaptureReviewPreviewPdf"),
|
|
305
306
|
children: [
|
|
306
307
|
a ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("div", {
|
|
307
308
|
class: "IncodeDocumentCapturePdfCard",
|
|
@@ -316,27 +317,27 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
316
317
|
class: "IncodeDocumentCapturePdfFileName",
|
|
317
318
|
children: o
|
|
318
319
|
})]
|
|
319
|
-
}), /* @__PURE__ */ s(
|
|
320
|
+
}), /* @__PURE__ */ s(d, { size: 16 })] }) : n.imageBase64 ? /* @__PURE__ */ s("div", {
|
|
320
321
|
class: "IncodeDocumentCaptureReviewImageContainer",
|
|
321
322
|
children: /* @__PURE__ */ s("img", {
|
|
322
323
|
src: n.imageBase64,
|
|
323
324
|
alt: "",
|
|
324
|
-
class:
|
|
325
|
+
class: b("IncodeDocumentCaptureReviewImage", m && "IncodeDocumentCaptureSuccessBorder"),
|
|
325
326
|
"data-testid": "document-capture-review-image"
|
|
326
327
|
})
|
|
327
328
|
}) : null,
|
|
328
|
-
/* @__PURE__ */ s(
|
|
329
|
+
/* @__PURE__ */ s(d, { size: 8 }),
|
|
329
330
|
/* @__PURE__ */ s("div", {
|
|
330
331
|
class: "IncodeCaptureEncryptionLabel",
|
|
331
332
|
children: [/* @__PURE__ */ s(T, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ s("span", { children: [" ", i("encryptionLabel.encryptedPhotos")] })]
|
|
332
333
|
}),
|
|
333
|
-
/* @__PURE__ */ s(
|
|
334
|
+
/* @__PURE__ */ s(d, { size: 8 })
|
|
334
335
|
]
|
|
335
336
|
}),
|
|
336
|
-
/* @__PURE__ */ s(
|
|
337
|
+
/* @__PURE__ */ s(d, { size: 24 }),
|
|
337
338
|
/* @__PURE__ */ s("div", {
|
|
338
|
-
class:
|
|
339
|
-
children: [c ? /* @__PURE__ */ s(F, { manager: r }) : null,
|
|
339
|
+
class: b("IncodeDocumentCaptureReviewFooter", l && "IncodeDocumentCaptureReviewFooterEmpty"),
|
|
340
|
+
children: [c ? /* @__PURE__ */ s(F, { manager: r }) : null, u ? /* @__PURE__ */ s(L, { manager: r }) : null]
|
|
340
341
|
})
|
|
341
342
|
]
|
|
342
343
|
})
|
|
@@ -576,8 +577,8 @@ function U(e) {
|
|
|
576
577
|
}
|
|
577
578
|
//#endregion
|
|
578
579
|
//#region src/modules/document-capture/documentTutorial.tsx
|
|
579
|
-
var W = ({ manager: n, title: a, text:
|
|
580
|
-
let { t: h } = e(), g =
|
|
580
|
+
var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMode: d, error: p, pageNumber: m }) => {
|
|
581
|
+
let { t: h } = e(), g = l(), _ = i(null), [v, y] = o(!1), b = m > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", x = a?.trim() ? a : h(`${b}.title`), C = c?.trim() ? c : h(`${b}.subtitle`), w = d === "camera" && g, T = r(() => y(!1), []), E = () => {
|
|
581
582
|
_.current?.click();
|
|
582
583
|
}, D = () => {
|
|
583
584
|
w ? y(!0) : E();
|
|
@@ -591,7 +592,7 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
591
592
|
}, k = () => {
|
|
592
593
|
T(), n.capture();
|
|
593
594
|
};
|
|
594
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
595
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(f, {
|
|
595
596
|
className: "IncodeDocumentCapturePageTutorial",
|
|
596
597
|
title: x,
|
|
597
598
|
subtitle: C,
|
|
@@ -614,7 +615,7 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
614
615
|
children: /* @__PURE__ */ s(V, { class: "IncodeDocumentCaptureTutorialImage" })
|
|
615
616
|
})
|
|
616
617
|
}),
|
|
617
|
-
|
|
618
|
+
p ? /* @__PURE__ */ s("p", {
|
|
618
619
|
class: "IncodeDocumentCaptureError",
|
|
619
620
|
role: "alert",
|
|
620
621
|
children: h("nativeCamera.maximumSize")
|
|
@@ -644,8 +645,8 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
644
645
|
cameraOptionTestId: "camera-option",
|
|
645
646
|
uploadOptionTestId: "file-option"
|
|
646
647
|
}) : null] });
|
|
647
|
-
}, G = ({ manager: n, nextPageType: a, captureMode:
|
|
648
|
-
let { t: u } = e(),
|
|
648
|
+
}, G = ({ manager: n, nextPageType: a, captureMode: c }) => {
|
|
649
|
+
let { t: u } = e(), p = l(), m = i(null), [h, g] = o(!1), _ = "documentCapture.tutorial.multiPageDocument", v = u(a === "optional" ? `${_}.optionalPage.subtitle` : `${_}.subtitle`), y = c === "camera" && p, b = r(() => g(!1), []), x = () => {
|
|
649
650
|
m.current?.click();
|
|
650
651
|
}, C = () => {
|
|
651
652
|
y ? g(!0) : x();
|
|
@@ -660,7 +661,7 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
660
661
|
}, T = () => {
|
|
661
662
|
b(), n.captureNextPageFromCamera();
|
|
662
663
|
};
|
|
663
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
664
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(f, {
|
|
664
665
|
className: "IncodeDocumentCapturePageTutorial",
|
|
665
666
|
title: u("documentCapture.tutorial.multiPageDocument.title"),
|
|
666
667
|
subtitle: v,
|
|
@@ -688,13 +689,13 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
688
689
|
"data-testid": "document-capture-add-next-page-button",
|
|
689
690
|
children: u("documentCapture.button.nextPage")
|
|
690
691
|
}),
|
|
691
|
-
/* @__PURE__ */ s(
|
|
692
|
+
/* @__PURE__ */ s(d, { size: 12 }),
|
|
692
693
|
a === "optional" && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(S, {
|
|
693
694
|
variant: "link",
|
|
694
695
|
onClick: () => n.finishPageCapture(),
|
|
695
696
|
"data-testid": "document-capture-finish-pages-button",
|
|
696
697
|
children: u("documentCapture.button.allPagesCaptured")
|
|
697
|
-
}), /* @__PURE__ */ s(
|
|
698
|
+
}), /* @__PURE__ */ s(d, { size: 16 })] })
|
|
698
699
|
]
|
|
699
700
|
}), y ? /* @__PURE__ */ s(H, {
|
|
700
701
|
isOpen: h,
|
|
@@ -704,7 +705,7 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
704
705
|
cameraOptionTestId: "next-page-camera-option",
|
|
705
706
|
uploadOptionTestId: "next-page-upload-document-option"
|
|
706
707
|
}) : null] });
|
|
707
|
-
}, K = ({ title: e }) => /* @__PURE__ */ s(
|
|
708
|
+
}, K = ({ title: e }) => /* @__PURE__ */ s(f, {
|
|
708
709
|
hideHeader: !0,
|
|
709
710
|
hideFooterBranding: !0,
|
|
710
711
|
className: "IncodeDocumentCapturePage",
|
|
@@ -716,42 +717,42 @@ var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMo
|
|
|
716
717
|
})
|
|
717
718
|
})
|
|
718
719
|
}), q = ({ config: r, onFinish: i, onError: a }) => {
|
|
719
|
-
let [
|
|
720
|
+
let [l, u] = c(() => A({ config: r })), [d, f] = o(!1), { t: p } = e();
|
|
720
721
|
return n(() => {
|
|
721
|
-
|
|
722
|
+
l.status === "finished" && i?.(), l.status === "closed" && a?.(void 0);
|
|
722
723
|
}, [
|
|
723
|
-
|
|
724
|
+
l.status,
|
|
724
725
|
i,
|
|
725
726
|
a
|
|
726
|
-
]),
|
|
727
|
+
]), l.status === "tutorial" ? /* @__PURE__ */ s(W, {
|
|
727
728
|
manager: u,
|
|
728
|
-
title:
|
|
729
|
-
text:
|
|
730
|
-
allowSkipDocumentCapture:
|
|
731
|
-
captureMode:
|
|
732
|
-
error:
|
|
733
|
-
pageNumber:
|
|
734
|
-
}) :
|
|
729
|
+
title: l.title,
|
|
730
|
+
text: l.text,
|
|
731
|
+
allowSkipDocumentCapture: l.allowSkipDocumentCapture,
|
|
732
|
+
captureMode: l.captureMode,
|
|
733
|
+
error: l.error,
|
|
734
|
+
pageNumber: l.pageNumber
|
|
735
|
+
}) : l.status === "nextPage" ? /* @__PURE__ */ s(G, {
|
|
735
736
|
manager: u,
|
|
736
|
-
nextPageType:
|
|
737
|
-
captureMode:
|
|
738
|
-
}) :
|
|
737
|
+
nextPageType: l.nextPageType,
|
|
738
|
+
captureMode: l.captureMode
|
|
739
|
+
}) : l.status === "capturing" && l.captureMode === "file" ? /* @__PURE__ */ s(W, {
|
|
739
740
|
manager: u,
|
|
740
741
|
title: r.title,
|
|
741
742
|
text: r.text,
|
|
742
743
|
allowSkipDocumentCapture: !1,
|
|
743
744
|
captureMode: "file",
|
|
744
|
-
error:
|
|
745
|
-
pageNumber:
|
|
746
|
-
}) :
|
|
747
|
-
stream:
|
|
745
|
+
error: l.error,
|
|
746
|
+
pageNumber: l.pageNumber
|
|
747
|
+
}) : l.status === "initializingCamera" ? /* @__PURE__ */ s(K, {}) : l.status === "capturing" && l.captureMode === "camera" ? l.stream ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(M, {
|
|
748
|
+
stream: l.stream,
|
|
748
749
|
manager: u,
|
|
749
750
|
onOpenHelp: () => f(!0)
|
|
750
|
-
}), d ? /* @__PURE__ */ s(P, { onClose: () => f(!1) }) : null] }) : /* @__PURE__ */ s(K, {}) :
|
|
751
|
-
state:
|
|
751
|
+
}), d ? /* @__PURE__ */ s(P, { onClose: () => f(!1) }) : null] }) : /* @__PURE__ */ s(K, {}) : l.status === "finalizing" ? /* @__PURE__ */ s(K, { title: p("common.processing") }) : l.status === "preview" || l.status === "uploading" || l.status === "success" || l.status === "failure" ? /* @__PURE__ */ s(B, {
|
|
752
|
+
state: l,
|
|
752
753
|
manager: u
|
|
753
754
|
}) : null;
|
|
754
|
-
}, J = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(
|
|
755
|
+
}, J = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(q, {
|
|
755
756
|
config: e,
|
|
756
757
|
onFinish: t,
|
|
757
758
|
onError: n
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, l as t, p as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as i } from "./loadingIcon-
|
|
3
|
-
import { c as a, m as o, n as s } from "./icons-
|
|
4
|
-
import { t as ee } from "./successIcon-
|
|
2
|
+
import { n as i } from "./loadingIcon-HWY04StG.js";
|
|
3
|
+
import { c as a, m as o, n as s } from "./icons-G_Ct2lZU.js";
|
|
4
|
+
import { t as ee } from "./successIcon-C4GI_9SU.js";
|
|
5
5
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
6
6
|
var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, options: f, onChange: p, error: m, helper: h, showErrorIcon: te, showHelperIcon: g, suppressMessages: _ = !1, disabled: v = !1, required: y, searchable: b = !1, searchPlaceholder: x = "Search...", noResultsText: S = "No results found", name: C, tabIndex: w, onKeyDown: T, onBlur: E, renderSelectedLabel: D, siblingElement: O, enterKeyHint: ne, class: k, "aria-label": A, "data-testid": j }) => {
|
|
7
7
|
let [M, N] = n(!1), [re, P] = n(!1), [F, I] = n(-1), [L, R] = n(""), z = t(null), B = t(null), V = t(null), H = t([]), U = t(null), W = t(""), G = t(), K = f.find((e) => e.value === d), q = K ? D ? D(K) : K.label : u, J = b && L ? f.filter((e) => e.label.toLowerCase().includes(L.toLowerCase())) : f, Y = `${c}-label`, X = `${c}-listbox`, Z = `${c}-helper`, Q = `${c}-error`, ie = _ ? "" : [h ? Z : null, m ? Q : null].filter(Boolean).join(" ");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-BE7-ghHI.js";
|
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-Dm6NrgtW.js";
|
|
2
2
|
export { e as EkybModule };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BpEDCZi_.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
|
-
import { c, o as l,
|
|
4
|
-
import { t as d } from "./page-
|
|
5
|
-
import { t as f } from "./spinner-
|
|
6
|
-
import { t as p } from "./button-
|
|
7
|
-
import { t as m } from "./verificationResult-
|
|
8
|
-
import { t as h } from "./inputComposed-
|
|
9
|
-
import { n as g, t as _ } from "./formField-
|
|
10
|
-
import { t as v } from "./dropdownComposed-
|
|
11
|
-
import { t as y } from "./incodeModule-
|
|
12
|
-
import { t as b } from "./addressAutocomplete-
|
|
3
|
+
import { i as c, o as l, t as u } from "./incodeComponent-DIb7wDAq.js";
|
|
4
|
+
import { t as d } from "./page-D5Mt-0zn.js";
|
|
5
|
+
import { t as f } from "./spinner-l6dvYqCg.js";
|
|
6
|
+
import { t as p } from "./button-wmLHLQxG.js";
|
|
7
|
+
import { t as m } from "./verificationResult-WLz8qNU8.js";
|
|
8
|
+
import { t as h } from "./inputComposed-d8s1aPjr.js";
|
|
9
|
+
import { n as g, t as _ } from "./formField-9ouSScYr.js";
|
|
10
|
+
import { t as v } from "./dropdownComposed-BE7-ghHI.js";
|
|
11
|
+
import { t as y } from "./incodeModule-D_r2n18O.js";
|
|
12
|
+
import { t as b } from "./addressAutocomplete-BPpO7rrX.js";
|
|
13
13
|
import { DEV_ONLY_COUNTRIES as x, SUPPORTED_COUNTRIES as S, computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
|
|
14
14
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
15
15
|
function T(e) {
|
|
@@ -133,7 +133,7 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
133
133
|
})]
|
|
134
134
|
});
|
|
135
135
|
}, M = ({ config: t, onFinish: r }) => {
|
|
136
|
-
let { t: i } = e(), [a, o] =
|
|
136
|
+
let { t: i } = e(), [a, o] = l(() => w({ config: t }));
|
|
137
137
|
return n(() => {
|
|
138
138
|
(a.status === "finished" || a.status === "closed") && r?.();
|
|
139
139
|
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
|
|
@@ -163,8 +163,8 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
163
163
|
"state",
|
|
164
164
|
"postalCode",
|
|
165
165
|
"houseNo"
|
|
166
|
-
], F = ({ state:
|
|
167
|
-
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: x, submitAttempted: S } =
|
|
166
|
+
], F = ({ state: l, manager: u }) => {
|
|
167
|
+
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: x, submitAttempted: S } = l, { t: w } = e(), T = a(null), E = a(null), D = a(void 0), O = c(T, m.length), [M, F] = o({}), I = i((e) => {
|
|
168
168
|
F((t) => t[e] ? t : {
|
|
169
169
|
...t,
|
|
170
170
|
[e]: !0
|
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-ChHA8VPJ.js";
|
|
2
2
|
export { e as EkycModule };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BpEDCZi_.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
|
-
import {
|
|
4
|
-
import { t as u } from "./page-
|
|
5
|
-
import { t as d } from "./spinner-
|
|
6
|
-
import { t as f } from "./button-
|
|
7
|
-
import { t as p } from "./verificationResult-
|
|
8
|
-
import { n as m, t as h } from "./formField-
|
|
9
|
-
import { t as g } from "./phoneInputComposed-
|
|
10
|
-
import { t as _ } from "./dropdownComposed-
|
|
11
|
-
import { t as v } from "./dateInputComposed-
|
|
12
|
-
import { t as y } from "./incodeModule-
|
|
13
|
-
import { t as b } from "./addressAutocomplete-
|
|
3
|
+
import { i as s, o as c, t as l } from "./incodeComponent-DIb7wDAq.js";
|
|
4
|
+
import { t as u } from "./page-D5Mt-0zn.js";
|
|
5
|
+
import { t as d } from "./spinner-l6dvYqCg.js";
|
|
6
|
+
import { t as f } from "./button-wmLHLQxG.js";
|
|
7
|
+
import { t as p } from "./verificationResult-WLz8qNU8.js";
|
|
8
|
+
import { n as m, t as h } from "./formField-9ouSScYr.js";
|
|
9
|
+
import { t as g } from "./phoneInputComposed-DOuz7g1p.js";
|
|
10
|
+
import { t as _ } from "./dropdownComposed-BE7-ghHI.js";
|
|
11
|
+
import { t as v } from "./dateInputComposed-CvIDakYb.js";
|
|
12
|
+
import { t as y } from "./incodeModule-D_r2n18O.js";
|
|
13
|
+
import { t as b } from "./addressAutocomplete-BPpO7rrX.js";
|
|
14
14
|
import { computeEkycDisplayErrors as x, createEkycManager as S } from "@incodetech/core/ekyc";
|
|
15
15
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
16
16
|
var C = ({ config: n, onFinish: r }) => {
|
|
17
|
-
let { t: i } = e(), [a,
|
|
17
|
+
let { t: i } = e(), [a, s] = c(() => S({ config: n }));
|
|
18
18
|
return t(() => {
|
|
19
19
|
(a.status === "finished" || a.status === "closed") && r?.();
|
|
20
20
|
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(p, {
|
|
@@ -26,16 +26,16 @@ var C = ({ config: n, onFinish: r }) => {
|
|
|
26
26
|
className: "IncodeEkycSpinner"
|
|
27
27
|
}) }) : a.status === "success" ? /* @__PURE__ */ o(p, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ o(p, {
|
|
28
28
|
status: "failure",
|
|
29
|
-
onRetry: () =>
|
|
30
|
-
onSkip: () =>
|
|
29
|
+
onRetry: () => s.retry(),
|
|
30
|
+
onSkip: () => s.skip()
|
|
31
31
|
}) : a.status === "misconfigured" ? /* @__PURE__ */ o(p, {
|
|
32
32
|
status: "failure",
|
|
33
33
|
failureTitle: i("verification.noFormFields"),
|
|
34
|
-
onSkip: () =>
|
|
34
|
+
onSkip: () => s.close(),
|
|
35
35
|
skipLabel: i("common.close")
|
|
36
36
|
}) : a.status === "form" ? /* @__PURE__ */ o(T, {
|
|
37
37
|
state: a,
|
|
38
|
-
manager:
|
|
38
|
+
manager: s
|
|
39
39
|
}) : null;
|
|
40
40
|
}, w = [
|
|
41
41
|
"street",
|
|
@@ -43,8 +43,8 @@ var C = ({ config: n, onFinish: r }) => {
|
|
|
43
43
|
"state",
|
|
44
44
|
"postalCode",
|
|
45
45
|
"houseNo"
|
|
46
|
-
], T = ({ state:
|
|
47
|
-
let { fields: d, values: p, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } =
|
|
46
|
+
], T = ({ state: c, manager: l }) => {
|
|
47
|
+
let { fields: d, values: p, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } = c, { t: A } = e(), j = i(null), M = i(null), N = i(void 0), P = s(j, d.length), [F, I] = a({}), L = r((e) => {
|
|
48
48
|
I((t) => t[e] ? t : {
|
|
49
49
|
...t,
|
|
50
50
|
[e]: !0
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../electronic-signature-
|
|
1
|
+
import { n as e, t } from "../electronic-signature-CPfLwg-x.js";
|
|
2
2
|
export { t as AeSignature, e as ElectronicSignature };
|