@incodetech/web 0.0.0-dev-20260415-20a2fc4 → 0.0.0-dev-20260416-8fd0b75
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-B4o16RK-.js → AsYouType-RC03ULcj.js} +1 -1
- package/dist/{addressAutocomplete-DWVphfl5.js → addressAutocomplete-n0bBMSty.js} +4 -4
- package/dist/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +2 -2
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/{button-jwSm4U5l.js → button-BlHmZn6D.js} +1 -1
- package/dist/{checkbox-B6sowIi8.js → checkbox-BNgPsssk.js} +2 -2
- package/dist/consent/consent.es.js +6 -6
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +12 -12
- package/dist/{dateInputComposed-DnHTS15O.js → dateInputComposed-B8nKYsUG.js} +4 -4
- package/dist/dateInputComposed-DnYA7nZG.js +1 -0
- package/dist/{documentCapture-CQ32GpB4.js → documentCapture-DHtlw3Lu.js} +65 -66
- package/dist/{dropdownComposed-C6vVF6YA.js → dropdownComposed-CR1bc7Z9.js} +3 -3
- package/dist/dropdownComposed-P1FeTlTM.js +1 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-NJtVSNt8.js → ekybModule-BBSKwZZy.js} +12 -12
- package/dist/ekybModule-qBQ8sJSr.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-CHJc0y79.js → ekycModule-Dca-zhQw.js} +17 -17
- package/dist/ekycModule-R0YaUzV3.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C7D9PxFO.js → electronic-signature-DEAXKbsk.js} +7 -7
- package/dist/email/email.es.js +6 -6
- package/dist/{extensibility-BzbZC3Uh.js → extensibility-BlGCucJR.js} +102 -102
- package/dist/extensibility.es.js +21 -20
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-CFxHH3ic.js +2 -0
- package/dist/{faceMatch-Don75gXW.js → faceMatch-D6HVVSiY.js} +4 -4
- package/dist/flow/flow.es.js +7 -7
- package/dist/flow/styles.css +28 -28
- package/dist/{formField-DRqCjJYu.js → formField-B9_nvbhW.js} +2 -2
- package/dist/geolocation/geolocation.es.js +3 -3
- package/dist/governmentValidation/governmentValidation.es.js +6 -6
- package/dist/home/home.es.js +156 -59
- package/dist/home/styles.css +28 -28
- package/dist/{i18n-BijwYtJr.js → i18n-DUMvrSNM.js} +1 -1
- package/dist/{icons-BNwTyDPs.js → icons-CVO6RxwW.js} +1 -1
- package/dist/id/id.es.js +5 -5
- package/dist/identity-reuse/identity-reuse.es.js +4 -4
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-BWxnXHJf.js +1 -0
- package/dist/{inputComposed-Cd-Hl-nY.js → inputComposed-COz9TuR1.js} +3 -3
- package/dist/{incodeComponent-Cd290pHH.js → loadingIcon-ahC-hZN7.js} +42 -2
- package/dist/{mandatoryConsent-7CnQf3lz.js → mandatoryConsent-DWwvkGGf.js} +6 -6
- package/dist/modal-D75YXA_d.js +239 -0
- package/dist/{otpInput-BiUL8Ebu.js → otpInput-CNAOHZxZ.js} +4 -4
- package/dist/phone/phone.es.js +6 -6
- package/dist/{phoneInput-3AdvQaEd.js → phoneInput-CzcmqH3C.js} +3 -3
- package/dist/{phoneInputComposed-BnOmNQTz.js → phoneInputComposed-w9tF4xYB.js} +6 -6
- package/dist/{processing-CMIsTP-t.js → processing-CR7zb0TX.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-CFzDfmuH.js → redirectToMobile-CYt-uhqB.js} +21 -22
- package/dist/selfie/selfie.es.js +3 -3
- package/dist/{setup-n7xLstSl.js → setup-IE6CqyVs.js} +1 -1
- package/dist/signature/signature.es.js +6 -6
- package/dist/spinner-B-jf992b.js +1 -0
- package/dist/{spinner-Dg3lumvu.js → spinner-BAVCJLTE.js} +7 -7
- package/dist/{tutorial-gP0l4CuT.js → tutorial-Dqk1zedL.js} +640 -872
- package/dist/{typography-BeNe2WRr.js → typography-7cXma7kl.js} +1 -1
- package/dist/typography-CsEiWMTG.js +1 -0
- package/dist/{useModuleLoader-D_WjZsnk.js → useModuleLoader-DPGKFaMr.js} +78 -72
- package/dist/{verificationResult-_HH0v_HX.js → verificationResult-LpiTdYIu.js} +5 -5
- package/dist/watchlist/watchlist.es.js +20 -21
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/dateInputComposed-tjb_YiSz.js +0 -1
- package/dist/dropdownComposed-DkSZPhUb.js +0 -1
- package/dist/ekybModule-IxSxK7ET.js +0 -2
- package/dist/ekycModule-D8YFovqq.js +0 -2
- package/dist/faceMatch-Z6cCZZMi.js +0 -2
- package/dist/inputComposed-WTfutu_d.js +0 -1
- package/dist/language-Dvo4jXwx.js +0 -50
- package/dist/loadingIcon-YV3D_mg8.js +0 -42
- package/dist/settings-tMRrQul_.js +0 -68
- package/dist/spinner-BEm5Wf_k.js +0 -1
- package/dist/typography-eCzT8rG3.js +0 -1
- /package/dist/{aligndevicelottie-BfnvOtwi.js → aligndevicelottie-B9K1XnzC.js} +0 -0
- /package/dist/{back-horizontal-hint-CpDPt7Pn.js → back-horizontal-hint-Dy_Qglma.js} +0 -0
- /package/dist/{back-tutorial-DRNlpp1o.js → back-tutorial-Cc5SwoLa.js} +0 -0
- /package/dist/{back-vertical-hint-CMS6HTd5.js → back-vertical-hint-Dg3OKUKF.js} +0 -0
- /package/dist/{backdevicelottie-DqTioBhp.js → backdevicelottie-DPvn_MCA.js} +0 -0
- /package/dist/{blurdevicelottie-BCYf_azj.js → blurdevicelottie-DGpZjyZE.js} +0 -0
- /package/dist/{browser-ponyfill-DcR_MTou.js → browser-ponyfill-CTu_YiCx.js} +0 -0
- /package/dist/{countries-BntFjJJG.js → countries-DKKNtuUp.js} +0 -0
- /package/dist/{flip-animation-Dj8sBkxM.js → flip-animation-DwJvEqyX.js} +0 -0
- /package/dist/{front-horizontal-hint-C204EjG5.js → front-horizontal-hint-DgopDgUF.js} +0 -0
- /package/dist/{front-vertical-hint-BT8dqgFS.js → front-vertical-hint-nOpxcjqw.js} +0 -0
- /package/dist/{frontdevicelottie-BOCUyhYK.js → frontdevicelottie-DBrRXwKx.js} +0 -0
- /package/dist/{glaredevicelottie-g5gLJDcn.js → glaredevicelottie-DvG7qeiM.js} +0 -0
- /package/dist/{id-laser-h-C9wj3dpL.js → id-laser-h-BrG7qvHh.js} +0 -0
- /package/dist/{id-laser-v-Bmnxnt0M.js → id-laser-v-Bt1xfH5h.js} +0 -0
- /package/dist/{id-tutorial-CFTli-M3.js → id-tutorial-WgpG0ahL.js} +0 -0
- /package/dist/{passport-horizontal-hint-DQ_bncwr.js → passport-horizontal-hint-DXzBzsri.js} +0 -0
- /package/dist/{passport-tutorial-Bihd5YfK.js → passport-tutorial-DEr1yuAg.js} +0 -0
- /package/dist/{passport-vertical-hint-Bck8hVuX.js → passport-vertical-hint-B8Sap2l6.js} +0 -0
- /package/dist/{selfieTutorial-Cu9vXjss.js → selfieTutorial-B5l5ny8O.js} +0 -0
- /package/dist/{successIcon-Dklx5JWI.js → successIcon-AHrfmJvv.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-DKKNtuUp.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-DUMvrSNM.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 { a as o } from "./loadingIcon-ahC-hZN7.js";
|
|
4
|
+
import { t as s } from "./inputComposed-COz9TuR1.js";
|
|
5
|
+
import { n as c } from "./formField-B9_nvbhW.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,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-DEAXKbsk.js";
|
|
3
3
|
import { t as n } from "../incodeModule-Di2OUZ5_.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
|
-
import {
|
|
3
|
-
import { t as i } from "../spinner-
|
|
2
|
+
import { c as n, r } from "../loadingIcon-ahC-hZN7.js";
|
|
3
|
+
import { t as i } from "../spinner-BAVCJLTE.js";
|
|
4
4
|
import { t as a } from "../incodeModule-Di2OUZ5_.js";
|
|
5
5
|
import { createAntifraudManager as o } from "@incodetech/core/antifraud";
|
|
6
6
|
//#region src/modules/antifraud/antifraud.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
+
import { c as t, r as n } from "../loadingIcon-ahC-hZN7.js";
|
|
3
|
+
import { n as r, r as i, t as a } from "../tutorial-Dqk1zedL.js";
|
|
4
4
|
import { t as o } from "../incodeModule-Di2OUZ5_.js";
|
|
5
5
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
6
6
|
//#region src/modules/authentication/authentication.tsx
|
|
@@ -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-ahC-hZN7.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-ahC-hZN7.js";
|
|
3
|
+
import { l as i, m as a } from "./icons-CVO6RxwW.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,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-DUMvrSNM.js";
|
|
2
2
|
import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as n, r } from "../loadingIcon-ahC-hZN7.js";
|
|
4
4
|
import { t as i } from "../page-kB-LDkaO.js";
|
|
5
|
-
import { t as a } from "../spinner-
|
|
6
|
-
import "../spinner-
|
|
7
|
-
import { t as o } from "../button-
|
|
8
|
-
import { t as s } from "../checkbox-
|
|
5
|
+
import { t as a } from "../spinner-BAVCJLTE.js";
|
|
6
|
+
import "../spinner-B-jf992b.js";
|
|
7
|
+
import { t as o } from "../button-BlHmZn6D.js";
|
|
8
|
+
import { t as s } from "../checkbox-BNgPsssk.js";
|
|
9
9
|
import { t as c } from "../incodeModule-Di2OUZ5_.js";
|
|
10
10
|
import { t as l } from "../richText-MNrzpRze.js";
|
|
11
11
|
import { createConsentManager as u } from "@incodetech/core/consent";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "../spinner-
|
|
2
|
+
import { c as n, r } from "../loadingIcon-ahC-hZN7.js";
|
|
3
|
+
import { t as i } from "../spinner-BAVCJLTE.js";
|
|
4
4
|
import { t as a } from "../incodeModule-Di2OUZ5_.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
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-DUMvrSNM.js";
|
|
2
2
|
import { S as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as r, r as i } from "../loadingIcon-ahC-hZN7.js";
|
|
4
4
|
import { t as a } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as o } from "../page-kB-LDkaO.js";
|
|
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-
|
|
6
|
+
import { t as s } from "../spinner-BAVCJLTE.js";
|
|
7
|
+
import "../spinner-B-jf992b.js";
|
|
8
|
+
import { t as c } from "../button-BlHmZn6D.js";
|
|
9
|
+
import { m as l } from "../icons-CVO6RxwW.js";
|
|
10
|
+
import { t as u } from "../successIcon-AHrfmJvv.js";
|
|
11
|
+
import { t as d } from "../inputComposed-COz9TuR1.js";
|
|
12
|
+
import { t as f } from "../dropdownComposed-CR1bc7Z9.js";
|
|
13
|
+
import "../dropdownComposed-P1FeTlTM.js";
|
|
14
|
+
import { t as p } from "../dateInputComposed-B8nKYsUG.js";
|
|
15
|
+
import "../dateInputComposed-DnYA7nZG.js";
|
|
16
16
|
import { t as m } from "../incodeModule-Di2OUZ5_.js";
|
|
17
17
|
import { createCurpValidationManager as h, mexicanStates as g } from "@incodetech/core/curp-validation";
|
|
18
18
|
//#region src/modules/curp-validation/curpInput.tsx
|
|
@@ -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-ahC-hZN7.js";
|
|
3
|
+
import { f as i } from "./icons-CVO6RxwW.js";
|
|
4
|
+
import { t as a } from "./inputComposed-COz9TuR1.js";
|
|
5
|
+
import "./inputComposed-BWxnXHJf.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-B8nKYsUG.js";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-DUMvrSNM.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 O } from "./successIcon-Dklx5JWI.js";
|
|
3
|
+
import { a as c, c as l, n as u, r as d } from "./loadingIcon-ahC-hZN7.js";
|
|
4
|
+
import { t as f } from "./spacer-DCljE53A.js";
|
|
5
|
+
import { t as p } from "./page-kB-LDkaO.js";
|
|
6
|
+
import { c as m, d as h, f as g, l as _, u as v, v as y, y as b } from "./extensibility-BlGCucJR.js";
|
|
7
|
+
import { t as x } from "./spinner-BAVCJLTE.js";
|
|
8
|
+
import { t as S } from "./button-BlHmZn6D.js";
|
|
9
|
+
import { a as C, d as w, r as T } from "./icons-CVO6RxwW.js";
|
|
10
|
+
import { o as E, s as D } from "./tutorial-Dqk1zedL.js";
|
|
11
|
+
import { t as O } from "./successIcon-AHrfmJvv.js";
|
|
13
12
|
import { t as k } from "./incodeModule-Di2OUZ5_.js";
|
|
14
13
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
|
15
14
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
@@ -29,18 +28,18 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
29
28
|
let r = new Blob([Uint8Array.from(atob(t), (e) => e.charCodeAt(0))], { type: "image/jpeg" }), i = new File([r], "document.jpg", { type: "image/jpeg" });
|
|
30
29
|
n.setFile(i, `data:image/jpeg;base64,${t}`);
|
|
31
30
|
}, [n]);
|
|
32
|
-
return /* @__PURE__ */ s(
|
|
31
|
+
return /* @__PURE__ */ s(_, {
|
|
33
32
|
stream: t,
|
|
34
33
|
videoRef: c,
|
|
35
34
|
"data-testid": "document-capture-camera",
|
|
36
|
-
children: /* @__PURE__ */ s(
|
|
37
|
-
/* @__PURE__ */ s(
|
|
35
|
+
children: /* @__PURE__ */ s(h, { children: [
|
|
36
|
+
/* @__PURE__ */ s(v, {
|
|
38
37
|
title: o("documentCapture.camera.title"),
|
|
39
38
|
subtitle: o("documentCapture.camera.subtitle")
|
|
40
39
|
}),
|
|
41
|
-
/* @__PURE__ */ s(
|
|
42
|
-
/* @__PURE__ */ s(
|
|
43
|
-
/* @__PURE__ */ s(
|
|
40
|
+
/* @__PURE__ */ s(f, { size: 16 }),
|
|
41
|
+
/* @__PURE__ */ s(g, { variant: "fill" }),
|
|
42
|
+
/* @__PURE__ */ s(m, {
|
|
44
43
|
onOpenHelp: a,
|
|
45
44
|
onCapture: l,
|
|
46
45
|
isManualCapture: !0,
|
|
@@ -184,7 +183,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
184
183
|
}
|
|
185
184
|
], P = ({ onClose: t }) => {
|
|
186
185
|
let { t: n } = e();
|
|
187
|
-
return /* @__PURE__ */ s(
|
|
186
|
+
return /* @__PURE__ */ s(b, {
|
|
188
187
|
"aria-labelledby": "document-common-issues-title",
|
|
189
188
|
children: [
|
|
190
189
|
/* @__PURE__ */ s("h2", {
|
|
@@ -192,7 +191,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
192
191
|
class: "IncodeDocumentCommonIssuesTitle",
|
|
193
192
|
children: n("commonIssues.commonIssues")
|
|
194
193
|
}),
|
|
195
|
-
/* @__PURE__ */ s(
|
|
194
|
+
/* @__PURE__ */ s(f, { size: 32 }),
|
|
196
195
|
/* @__PURE__ */ s("div", {
|
|
197
196
|
class: "IncodeDocumentCommonIssuesCards",
|
|
198
197
|
children: N.map((e) => /* @__PURE__ */ s("div", {
|
|
@@ -243,7 +242,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
243
242
|
class: "IncodeDocumentCaptureReviewTitle",
|
|
244
243
|
children: r(n ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured")
|
|
245
244
|
}),
|
|
246
|
-
/* @__PURE__ */ s(
|
|
245
|
+
/* @__PURE__ */ s(f, { size: 12 }),
|
|
247
246
|
/* @__PURE__ */ s("p", {
|
|
248
247
|
class: "IncodeDocumentCaptureReviewSubtitle",
|
|
249
248
|
children: r(n ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured")
|
|
@@ -260,7 +259,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
260
259
|
let { t: n } = e();
|
|
261
260
|
return /* @__PURE__ */ s(t, { children: [
|
|
262
261
|
/* @__PURE__ */ s(O, { size: 30 }),
|
|
263
|
-
/* @__PURE__ */ s(
|
|
262
|
+
/* @__PURE__ */ s(f, { size: 16 }),
|
|
264
263
|
/* @__PURE__ */ s("h2", {
|
|
265
264
|
class: "IncodeDocumentCaptureReviewTitle",
|
|
266
265
|
children: n("documentCapture.review.successTitle")
|
|
@@ -268,21 +267,21 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
268
267
|
] });
|
|
269
268
|
}, z = ({ progress: n, isFilePdf: r }) => {
|
|
270
269
|
let { t: i } = e(), a = i(r ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
|
|
271
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
270
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(f, { size: 8 }), /* @__PURE__ */ s(y, {
|
|
272
271
|
progress: n,
|
|
273
272
|
label: a
|
|
274
273
|
})] });
|
|
275
274
|
}, B = ({ state: n, manager: r }) => {
|
|
276
275
|
let { t: i } = e();
|
|
277
|
-
if (n.status === "failure") return /* @__PURE__ */ s(
|
|
276
|
+
if (n.status === "failure") return /* @__PURE__ */ s(D, {
|
|
278
277
|
"data-testid": "document-capture-error",
|
|
279
278
|
title: i("documentCapture.review.error.title"),
|
|
280
279
|
description: n.attemptsRemaining <= 0 ? i("notifications.noTries") : i("documentCapture.review.error.description"),
|
|
281
280
|
attemptsRemaining: n.attemptsRemaining,
|
|
282
281
|
onButtonClick: () => r.retry()
|
|
283
282
|
});
|
|
284
|
-
let a = n.fileType === "application/pdf" || n.imageBase64.startsWith("data:application/pdf"), { fileName: o } = n, c = n.status === "preview", l = n.status === "uploading",
|
|
285
|
-
return /* @__PURE__ */ s(
|
|
283
|
+
let a = n.fileType === "application/pdf" || n.imageBase64.startsWith("data:application/pdf"), { fileName: o } = n, c = n.status === "preview", l = n.status === "uploading", d = n.status === "success", m = n.status === "nextPage", h = d || m;
|
|
284
|
+
return /* @__PURE__ */ s(p, {
|
|
286
285
|
hideHeader: !0,
|
|
287
286
|
hideFooterBranding: !0,
|
|
288
287
|
className: "IncodeDocumentCapturePage IncodeDocumentCaptureReviewPage",
|
|
@@ -298,11 +297,11 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
298
297
|
progress: n.progress,
|
|
299
298
|
isFilePdf: a
|
|
300
299
|
}) : null,
|
|
301
|
-
|
|
300
|
+
h ? /* @__PURE__ */ s(R, {}) : null
|
|
302
301
|
]
|
|
303
302
|
}),
|
|
304
303
|
/* @__PURE__ */ s("div", {
|
|
305
|
-
class:
|
|
304
|
+
class: u("IncodeDocumentCaptureReviewPreview", a && "IncodeDocumentCaptureReviewPreviewPdf"),
|
|
306
305
|
children: [
|
|
307
306
|
a ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("div", {
|
|
308
307
|
class: "IncodeDocumentCapturePdfCard",
|
|
@@ -317,27 +316,27 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
317
316
|
class: "IncodeDocumentCapturePdfFileName",
|
|
318
317
|
children: o
|
|
319
318
|
})]
|
|
320
|
-
}), /* @__PURE__ */ s(
|
|
319
|
+
}), /* @__PURE__ */ s(f, { size: 16 })] }) : n.imageBase64 ? /* @__PURE__ */ s("div", {
|
|
321
320
|
class: "IncodeDocumentCaptureReviewImageContainer",
|
|
322
321
|
children: /* @__PURE__ */ s("img", {
|
|
323
322
|
src: n.imageBase64,
|
|
324
323
|
alt: "",
|
|
325
|
-
class:
|
|
324
|
+
class: u("IncodeDocumentCaptureReviewImage", h && "IncodeDocumentCaptureSuccessBorder"),
|
|
326
325
|
"data-testid": "document-capture-review-image"
|
|
327
326
|
})
|
|
328
327
|
}) : null,
|
|
329
|
-
/* @__PURE__ */ s(
|
|
328
|
+
/* @__PURE__ */ s(f, { size: 8 }),
|
|
330
329
|
/* @__PURE__ */ s("div", {
|
|
331
330
|
class: "IncodeCaptureEncryptionLabel",
|
|
332
331
|
children: [/* @__PURE__ */ s(T, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ s("span", { children: [" ", i("encryptionLabel.encryptedPhotos")] })]
|
|
333
332
|
}),
|
|
334
|
-
/* @__PURE__ */ s(
|
|
333
|
+
/* @__PURE__ */ s(f, { size: 8 })
|
|
335
334
|
]
|
|
336
335
|
}),
|
|
337
|
-
/* @__PURE__ */ s(
|
|
336
|
+
/* @__PURE__ */ s(f, { size: 24 }),
|
|
338
337
|
/* @__PURE__ */ s("div", {
|
|
339
|
-
class:
|
|
340
|
-
children: [c ? /* @__PURE__ */ s(F, { manager: r }) : null,
|
|
338
|
+
class: u("IncodeDocumentCaptureReviewFooter", l && "IncodeDocumentCaptureReviewFooterEmpty"),
|
|
339
|
+
children: [c ? /* @__PURE__ */ s(F, { manager: r }) : null, d ? /* @__PURE__ */ s(L, { manager: r }) : null]
|
|
341
340
|
})
|
|
342
341
|
]
|
|
343
342
|
})
|
|
@@ -542,7 +541,7 @@ var M = ({ stream: t, manager: n, onOpenHelp: a }) => {
|
|
|
542
541
|
]
|
|
543
542
|
}), H = ({ isOpen: t, onClose: n, onCameraClick: r, onUploadClick: i, cameraOptionTestId: o, uploadOptionTestId: c }) => {
|
|
544
543
|
let { t: l } = e(), u = a();
|
|
545
|
-
return t ? /* @__PURE__ */ s(
|
|
544
|
+
return t ? /* @__PURE__ */ s(E, {
|
|
546
545
|
isOpen: t,
|
|
547
546
|
onClose: n,
|
|
548
547
|
labelledById: u,
|
|
@@ -577,8 +576,8 @@ function U(e) {
|
|
|
577
576
|
}
|
|
578
577
|
//#endregion
|
|
579
578
|
//#region src/modules/document-capture/documentTutorial.tsx
|
|
580
|
-
var W = ({ manager: n, title: a, text:
|
|
581
|
-
let { t: h } = e(), g =
|
|
579
|
+
var W = ({ manager: n, title: a, text: l, allowSkipDocumentCapture: u, captureMode: d, error: f, pageNumber: m }) => {
|
|
580
|
+
let { t: h } = e(), g = c(), _ = i(null), [v, y] = o(!1), b = m > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", x = a?.trim() ? a : h(`${b}.title`), C = l?.trim() ? l : h(`${b}.subtitle`), w = d === "camera" && g, T = r(() => y(!1), []), E = () => {
|
|
582
581
|
_.current?.click();
|
|
583
582
|
}, D = () => {
|
|
584
583
|
w ? y(!0) : E();
|
|
@@ -592,7 +591,7 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
592
591
|
}, k = () => {
|
|
593
592
|
T(), n.capture();
|
|
594
593
|
};
|
|
595
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
594
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(p, {
|
|
596
595
|
className: "IncodeDocumentCapturePageTutorial",
|
|
597
596
|
title: x,
|
|
598
597
|
subtitle: C,
|
|
@@ -615,7 +614,7 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
615
614
|
children: /* @__PURE__ */ s(V, { class: "IncodeDocumentCaptureTutorialImage" })
|
|
616
615
|
})
|
|
617
616
|
}),
|
|
618
|
-
|
|
617
|
+
f ? /* @__PURE__ */ s("p", {
|
|
619
618
|
class: "IncodeDocumentCaptureError",
|
|
620
619
|
role: "alert",
|
|
621
620
|
children: h("nativeCamera.maximumSize")
|
|
@@ -645,8 +644,8 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
645
644
|
cameraOptionTestId: "camera-option",
|
|
646
645
|
uploadOptionTestId: "file-option"
|
|
647
646
|
}) : null] });
|
|
648
|
-
}, G = ({ manager: n, nextPageType: a, captureMode:
|
|
649
|
-
let { t: u } = e(),
|
|
647
|
+
}, G = ({ manager: n, nextPageType: a, captureMode: l }) => {
|
|
648
|
+
let { t: u } = e(), d = c(), m = i(null), [h, g] = o(!1), _ = "documentCapture.tutorial.multiPageDocument", v = u(a === "optional" ? `${_}.optionalPage.subtitle` : `${_}.subtitle`), y = l === "camera" && d, b = r(() => g(!1), []), x = () => {
|
|
650
649
|
m.current?.click();
|
|
651
650
|
}, C = () => {
|
|
652
651
|
y ? g(!0) : x();
|
|
@@ -661,7 +660,7 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
661
660
|
}, T = () => {
|
|
662
661
|
b(), n.captureNextPageFromCamera();
|
|
663
662
|
};
|
|
664
|
-
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(
|
|
663
|
+
return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(p, {
|
|
665
664
|
className: "IncodeDocumentCapturePageTutorial",
|
|
666
665
|
title: u("documentCapture.tutorial.multiPageDocument.title"),
|
|
667
666
|
subtitle: v,
|
|
@@ -689,13 +688,13 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
689
688
|
"data-testid": "document-capture-add-next-page-button",
|
|
690
689
|
children: u("documentCapture.button.nextPage")
|
|
691
690
|
}),
|
|
692
|
-
/* @__PURE__ */ s(
|
|
691
|
+
/* @__PURE__ */ s(f, { size: 12 }),
|
|
693
692
|
a === "optional" && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(S, {
|
|
694
693
|
variant: "link",
|
|
695
694
|
onClick: () => n.finishPageCapture(),
|
|
696
695
|
"data-testid": "document-capture-finish-pages-button",
|
|
697
696
|
children: u("documentCapture.button.allPagesCaptured")
|
|
698
|
-
}), /* @__PURE__ */ s(
|
|
697
|
+
}), /* @__PURE__ */ s(f, { size: 16 })] })
|
|
699
698
|
]
|
|
700
699
|
}), y ? /* @__PURE__ */ s(H, {
|
|
701
700
|
isOpen: h,
|
|
@@ -705,7 +704,7 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
705
704
|
cameraOptionTestId: "next-page-camera-option",
|
|
706
705
|
uploadOptionTestId: "next-page-upload-document-option"
|
|
707
706
|
}) : null] });
|
|
708
|
-
}, K = ({ title: e }) => /* @__PURE__ */ s(
|
|
707
|
+
}, K = ({ title: e }) => /* @__PURE__ */ s(p, {
|
|
709
708
|
hideHeader: !0,
|
|
710
709
|
hideFooterBranding: !0,
|
|
711
710
|
className: "IncodeDocumentCapturePage",
|
|
@@ -717,42 +716,42 @@ var W = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: u, captureMo
|
|
|
717
716
|
})
|
|
718
717
|
})
|
|
719
718
|
}), q = ({ config: r, onFinish: i, onError: a }) => {
|
|
720
|
-
let [
|
|
719
|
+
let [c, u] = l(() => A({ config: r })), [d, f] = o(!1), { t: p } = e();
|
|
721
720
|
return n(() => {
|
|
722
|
-
|
|
721
|
+
c.status === "finished" && i?.(), c.status === "closed" && a?.(void 0);
|
|
723
722
|
}, [
|
|
724
|
-
|
|
723
|
+
c.status,
|
|
725
724
|
i,
|
|
726
725
|
a
|
|
727
|
-
]),
|
|
726
|
+
]), c.status === "tutorial" ? /* @__PURE__ */ s(W, {
|
|
728
727
|
manager: u,
|
|
729
|
-
title:
|
|
730
|
-
text:
|
|
731
|
-
allowSkipDocumentCapture:
|
|
732
|
-
captureMode:
|
|
733
|
-
error:
|
|
734
|
-
pageNumber:
|
|
735
|
-
}) :
|
|
728
|
+
title: c.title,
|
|
729
|
+
text: c.text,
|
|
730
|
+
allowSkipDocumentCapture: c.allowSkipDocumentCapture,
|
|
731
|
+
captureMode: c.captureMode,
|
|
732
|
+
error: c.error,
|
|
733
|
+
pageNumber: c.pageNumber
|
|
734
|
+
}) : c.status === "nextPage" ? /* @__PURE__ */ s(G, {
|
|
736
735
|
manager: u,
|
|
737
|
-
nextPageType:
|
|
738
|
-
captureMode:
|
|
739
|
-
}) :
|
|
736
|
+
nextPageType: c.nextPageType,
|
|
737
|
+
captureMode: c.captureMode
|
|
738
|
+
}) : c.status === "capturing" && c.captureMode === "file" ? /* @__PURE__ */ s(W, {
|
|
740
739
|
manager: u,
|
|
741
740
|
title: r.title,
|
|
742
741
|
text: r.text,
|
|
743
742
|
allowSkipDocumentCapture: !1,
|
|
744
743
|
captureMode: "file",
|
|
745
|
-
error:
|
|
746
|
-
pageNumber:
|
|
747
|
-
}) :
|
|
748
|
-
stream:
|
|
744
|
+
error: c.error,
|
|
745
|
+
pageNumber: c.pageNumber
|
|
746
|
+
}) : c.status === "initializingCamera" ? /* @__PURE__ */ s(K, {}) : c.status === "capturing" && c.captureMode === "camera" ? c.stream ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(M, {
|
|
747
|
+
stream: c.stream,
|
|
749
748
|
manager: u,
|
|
750
749
|
onOpenHelp: () => f(!0)
|
|
751
|
-
}), d ? /* @__PURE__ */ s(P, { onClose: () => f(!1) }) : null] }) : /* @__PURE__ */ s(K, {}) :
|
|
752
|
-
state:
|
|
750
|
+
}), d ? /* @__PURE__ */ s(P, { onClose: () => f(!1) }) : null] }) : /* @__PURE__ */ s(K, {}) : c.status === "finalizing" ? /* @__PURE__ */ s(K, { title: p("common.processing") }) : c.status === "preview" || c.status === "uploading" || c.status === "success" || c.status === "failure" ? /* @__PURE__ */ s(B, {
|
|
751
|
+
state: c,
|
|
753
752
|
manager: u
|
|
754
753
|
}) : null;
|
|
755
|
-
}, J = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(
|
|
754
|
+
}, J = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(d, { children: e ? /* @__PURE__ */ s(q, {
|
|
756
755
|
config: e,
|
|
757
756
|
onFinish: t,
|
|
758
757
|
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-ahC-hZN7.js";
|
|
3
|
+
import { c as a, m as o, n as s } from "./icons-CVO6RxwW.js";
|
|
4
|
+
import { t as ee } from "./successIcon-AHrfmJvv.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-CR1bc7Z9.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-BBSKwZZy.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-DUMvrSNM.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 {
|
|
3
|
+
import { c, o as l, r as u } from "./loadingIcon-ahC-hZN7.js";
|
|
4
4
|
import { t as d } from "./page-kB-LDkaO.js";
|
|
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-
|
|
5
|
+
import { t as f } from "./spinner-BAVCJLTE.js";
|
|
6
|
+
import { t as p } from "./button-BlHmZn6D.js";
|
|
7
|
+
import { t as m } from "./verificationResult-LpiTdYIu.js";
|
|
8
|
+
import { t as h } from "./inputComposed-COz9TuR1.js";
|
|
9
|
+
import { n as g, t as _ } from "./formField-B9_nvbhW.js";
|
|
10
|
+
import { t as v } from "./dropdownComposed-CR1bc7Z9.js";
|
|
11
11
|
import { t as y } from "./incodeModule-Di2OUZ5_.js";
|
|
12
|
-
import { t as b } from "./addressAutocomplete-
|
|
12
|
+
import { t as b } from "./addressAutocomplete-n0bBMSty.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] = c(() => 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: c, manager: u }) => {
|
|
167
|
+
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: x, submitAttempted: S } = c, { t: w } = e(), T = a(null), E = a(null), D = a(void 0), O = l(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-Dca-zhQw.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-DUMvrSNM.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 {
|
|
3
|
+
import { c as s, o as c, r as l } from "./loadingIcon-ahC-hZN7.js";
|
|
4
4
|
import { t as u } from "./page-kB-LDkaO.js";
|
|
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-
|
|
5
|
+
import { t as d } from "./spinner-BAVCJLTE.js";
|
|
6
|
+
import { t as f } from "./button-BlHmZn6D.js";
|
|
7
|
+
import { t as p } from "./verificationResult-LpiTdYIu.js";
|
|
8
|
+
import { n as m, t as h } from "./formField-B9_nvbhW.js";
|
|
9
|
+
import { t as g } from "./phoneInputComposed-w9tF4xYB.js";
|
|
10
|
+
import { t as _ } from "./dropdownComposed-CR1bc7Z9.js";
|
|
11
|
+
import { t as v } from "./dateInputComposed-B8nKYsUG.js";
|
|
12
12
|
import { t as y } from "./incodeModule-Di2OUZ5_.js";
|
|
13
|
-
import { t as b } from "./addressAutocomplete-
|
|
13
|
+
import { t as b } from "./addressAutocomplete-n0bBMSty.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, c] = s(() => 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: () => c.retry(),
|
|
30
|
+
onSkip: () => c.skip()
|
|
31
31
|
}) : a.status === "misconfigured" ? /* @__PURE__ */ o(p, {
|
|
32
32
|
status: "failure",
|
|
33
33
|
failureTitle: i("verification.noFormFields"),
|
|
34
|
-
onSkip: () =>
|
|
34
|
+
onSkip: () => c.close(),
|
|
35
35
|
skipLabel: i("common.close")
|
|
36
36
|
}) : a.status === "form" ? /* @__PURE__ */ o(T, {
|
|
37
37
|
state: a,
|
|
38
|
-
manager:
|
|
38
|
+
manager: c
|
|
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: s, manager: l }) => {
|
|
47
|
+
let { fields: d, values: p, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } = s, { t: A } = e(), j = i(null), M = i(null), N = i(void 0), P = c(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-DEAXKbsk.js";
|
|
2
2
|
export { t as AeSignature, e as ElectronicSignature };
|