@incodetech/web 0.0.0-dev-20260415-aae94ed → 0.0.0-dev-20260415-20a2fc4
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/{addressAutocomplete-Bm7wu8Ay.js → addressAutocomplete-DWVphfl5.js} +3 -3
- package/dist/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +1 -1
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/consent/consent.es.js +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +2 -2
- package/dist/{documentCapture-BAvYKA3R.js → documentCapture-CQ32GpB4.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-IxSxK7ET.js +2 -0
- package/dist/{ekybModule-Dm2o6hhH.js → ekybModule-NJtVSNt8.js} +5 -5
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-DY9oh5RP.js → ekycModule-CHJc0y79.js} +5 -5
- package/dist/ekycModule-D8YFovqq.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BL-CWlx2.js → electronic-signature-C7D9PxFO.js} +3 -3
- package/dist/email/email.es.js +4 -4
- package/dist/{extensibility-DXRHshVD.js → extensibility-BzbZC3Uh.js} +19 -19
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-BFg_1Bof.js → faceMatch-Don75gXW.js} +2 -2
- package/dist/faceMatch-Z6cCZZMi.js +2 -0
- package/dist/flow/flow.es.js +185 -200
- package/dist/{formField-B0JGrWLv.js → formField-DRqCjJYu.js} +1 -1
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +3 -3
- package/dist/home/home.es.js +4 -4
- package/dist/{i18n-Cnoc6xWX.js → i18n-BijwYtJr.js} +1 -1
- package/dist/id/id.es.js +5 -5
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-BL7Lq_Hw.js → incodeComponent-Cd290pHH.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{language-Bdt6A1X5.js → language-Dvo4jXwx.js} +1 -1
- package/dist/{mandatoryConsent-Y9IDP5M2.js → mandatoryConsent-7CnQf3lz.js} +2 -2
- package/dist/{otpInput-C386FL2_.js → otpInput-BiUL8Ebu.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-CfMoBRwi.js → processing-CMIsTP-t.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-CgJyjGgD.js → redirectToMobile-CFzDfmuH.js} +4 -4
- package/dist/selfie/selfie.es.js +3 -3
- package/dist/{settings-DDnju9SK.js → settings-tMRrQul_.js} +2 -2
- package/dist/{setup-Dp1XRMxU.js → setup-n7xLstSl.js} +1 -1
- package/dist/signature/signature.es.js +2 -2
- package/dist/{tutorial-B6nLj9qX.js → tutorial-gP0l4CuT.js} +3 -3
- package/dist/types/flow.d.ts +10 -14
- package/dist/{useModuleLoader-CqNG05an.js → useModuleLoader-D_WjZsnk.js} +69 -63
- package/dist/{verificationResult-H3bAOcJQ.js → verificationResult-_HH0v_HX.js} +1 -1
- package/dist/watchlist/watchlist.es.js +2 -2
- package/dist/workflow/workflow.es.js +4 -4
- package/package.json +2 -2
- package/dist/ekybModule-TZxTa8g7.js +0 -2
- package/dist/ekycModule-BcB5KUcq.js +0 -2
- package/dist/faceMatch-CGhm0gRu.js +0 -2
- package/dist/redirectToMobile-Dn537v_a.js +0 -2
- /package/dist/{aligndevicelottie-B1CLGkxR.js → aligndevicelottie-BfnvOtwi.js} +0 -0
- /package/dist/{back-horizontal-hint-D4KqqktU.js → back-horizontal-hint-CpDPt7Pn.js} +0 -0
- /package/dist/{back-tutorial-DeDjaYJX.js → back-tutorial-DRNlpp1o.js} +0 -0
- /package/dist/{back-vertical-hint-D8emR-GA.js → back-vertical-hint-CMS6HTd5.js} +0 -0
- /package/dist/{backdevicelottie-DCq4mOEO.js → backdevicelottie-DqTioBhp.js} +0 -0
- /package/dist/{blurdevicelottie-G3-Q0BsS.js → blurdevicelottie-BCYf_azj.js} +0 -0
- /package/dist/{browser-ponyfill-VSeGKSP8.js → browser-ponyfill-DcR_MTou.js} +0 -0
- /package/dist/{flip-animation-DE83SNb1.js → flip-animation-Dj8sBkxM.js} +0 -0
- /package/dist/{front-horizontal-hint-Cxr8YyxM.js → front-horizontal-hint-C204EjG5.js} +0 -0
- /package/dist/{front-vertical-hint-BfFYlwRS.js → front-vertical-hint-BT8dqgFS.js} +0 -0
- /package/dist/{frontdevicelottie-wDAQ0uwL.js → frontdevicelottie-BOCUyhYK.js} +0 -0
- /package/dist/{glaredevicelottie-CQk5l0qV.js → glaredevicelottie-g5gLJDcn.js} +0 -0
- /package/dist/{id-laser-h-9vBRTgJV.js → id-laser-h-C9wj3dpL.js} +0 -0
- /package/dist/{id-laser-v-CF-OEQaG.js → id-laser-v-Bmnxnt0M.js} +0 -0
- /package/dist/{id-tutorial-BmTbJh7P.js → id-tutorial-CFTli-M3.js} +0 -0
- /package/dist/{passport-horizontal-hint-B3WOpolp.js → passport-horizontal-hint-DQ_bncwr.js} +0 -0
- /package/dist/{passport-tutorial-DUMT508V.js → passport-tutorial-Bihd5YfK.js} +0 -0
- /package/dist/{passport-vertical-hint-dyoMIia1.js → passport-vertical-hint-Bck8hVuX.js} +0 -0
- /package/dist/{phoneInput--MAZwPEw.js → phoneInput-3AdvQaEd.js} +0 -0
- /package/dist/{selfieTutorial-DE1_g-Lg.js → selfieTutorial-Cu9vXjss.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "../i18n-
|
|
1
|
+
import { n as e, t } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { S as n, _ as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as a, t as o } from "../incodeComponent-
|
|
3
|
+
import { o as a, t as o } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as s } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as c } from "../page-kB-LDkaO.js";
|
|
6
6
|
import { t as l } from "../button-jwSm4U5l.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as n, t as r } from "../incodeComponent-
|
|
3
|
+
import { o as n, t as r } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as i } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as a } from "../page-kB-LDkaO.js";
|
|
6
6
|
import { t as o } from "../spinner-Dg3lumvu.js";
|
|
7
7
|
import { m as s, p as c } from "../icons-BNwTyDPs.js";
|
|
8
8
|
import { t as l } from "../successIcon-Dklx5JWI.js";
|
|
9
|
-
import { t as u } from "../otpInput-
|
|
9
|
+
import { t as u } from "../otpInput-BiUL8Ebu.js";
|
|
10
10
|
import { t as d } from "../incodeModule-Di2OUZ5_.js";
|
|
11
11
|
import { createGovernmentValidationManager as f } from "@incodetech/core/government-validation";
|
|
12
12
|
//#region src/modules/governmentValidation/governmentValidation.tsx
|
package/dist/home/home.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, c as n, l as r, o as i, v as a } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { n as o } from "../uiConfig-CwpQ-IM6.js";
|
|
4
|
-
import { o as s, t as c } from "../incodeComponent-
|
|
4
|
+
import { o as s, t as c } from "../incodeComponent-Cd290pHH.js";
|
|
5
5
|
import { t as l } from "../spacer-DCljE53A.js";
|
|
6
6
|
import { t as u } from "../button-jwSm4U5l.js";
|
|
7
|
-
import { t as d } from "../language-
|
|
7
|
+
import { t as d } from "../language-Dvo4jXwx.js";
|
|
8
8
|
import { createHomeManager as f } from "@incodetech/core/home";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/modules/home/settingsIcon.tsx
|
|
@@ -103,7 +103,7 @@ function m({ onOpenSettings: n, onContinue: i }) {
|
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/modules/home/home.tsx
|
|
106
|
-
var h = n(() => import("../settings-
|
|
106
|
+
var h = n(() => import("../settings-tMRrQul_.js").then((e) => ({ default: e.Settings })));
|
|
107
107
|
function g({ config: e, manager: n, onFinish: r }) {
|
|
108
108
|
let [o, c] = s(() => n || f({ config: e }), { manageLifecycle: !n });
|
|
109
109
|
return t(() => {
|
|
@@ -1514,7 +1514,7 @@ var G;
|
|
|
1514
1514
|
Ve() && (typeof global < "u" && global.XMLHttpRequest ? G = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (G = window.XMLHttpRequest));
|
|
1515
1515
|
var K;
|
|
1516
1516
|
if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? K = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (K = window.ActiveXObject)), typeof W != "function" && (W = void 0), !W && !G && !K) try {
|
|
1517
|
-
import("./browser-ponyfill-
|
|
1517
|
+
import("./browser-ponyfill-DcR_MTou.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then(function(e) {
|
|
1518
1518
|
W = e.default;
|
|
1519
1519
|
}).catch(function() {});
|
|
1520
1520
|
} catch {}
|
package/dist/id/id.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as e, o as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { o as r, t as i } from "../incodeComponent-
|
|
3
|
-
import { a, i as o, n as s, o as c, r as l, t as u } from "../extensibility-
|
|
4
|
-
import { t as d } from "../processing-
|
|
5
|
-
import { r as f } from "../tutorial-
|
|
2
|
+
import { o as r, t as i } from "../incodeComponent-Cd290pHH.js";
|
|
3
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "../extensibility-BzbZC3Uh.js";
|
|
4
|
+
import { t as d } from "../processing-CMIsTP-t.js";
|
|
5
|
+
import { r as f } from "../tutorial-gP0l4CuT.js";
|
|
6
6
|
import { t as p } from "../incodeModule-Di2OUZ5_.js";
|
|
7
7
|
import { createIdCaptureManager as m } from "@incodetech/core/id";
|
|
8
8
|
//#region src/modules/id/id.tsx
|
|
9
|
-
var h = e(() => import("../mandatoryConsent-
|
|
9
|
+
var h = e(() => import("../mandatoryConsent-7CnQf3lz.js").then((e) => ({ default: e.MandatoryConsent }))), g = ({ config: e, manager: i, onFinish: p, onError: g }) => {
|
|
10
10
|
let [_, v] = r(() => {
|
|
11
11
|
if (i) return i;
|
|
12
12
|
if (!e) throw Error("ID capture config is required when no manager is provided");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as r, t as i } from "../incodeComponent-
|
|
3
|
+
import { o as r, t as i } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as a } from "../page-kB-LDkaO.js";
|
|
5
5
|
import { t as o } from "../spinner-Dg3lumvu.js";
|
|
6
6
|
import { t as s } from "../button-jwSm4U5l.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, l as n, p as r, r as i, s as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { ScreenOrientationProvider as s, createScreenOrientationObserver as c, getDeviceClass as l, isIPad as u } from "@incodetech/core/device";
|
|
4
4
|
import "@incodetech/core/events";
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as e } from "./uiConfig-CwpQ-IM6.js";
|
|
2
|
-
import { t } from "./setup-
|
|
2
|
+
import { t } from "./setup-n7xLstSl.js";
|
|
3
3
|
import { DEFAULT_WASM_VERSION as n } from "@incodetech/core/wasm";
|
|
4
4
|
export { n as DEFAULT_WASM_VERSION, e as setUiConfig, t as setup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as r, t as i } from "./incodeComponent-
|
|
3
|
+
import { o as r, t as i } from "./incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as a } from "./page-kB-LDkaO.js";
|
|
5
5
|
import { t as o } from "./spinner-Dg3lumvu.js";
|
|
6
6
|
import "./spinner-BEm5Wf_k.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as o } from "./spacer-DCljE53A.js";
|
|
4
4
|
import { t as s } from "./button-jwSm4U5l.js";
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { p as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as r, t as i } from "../incodeComponent-
|
|
3
|
+
import { o as r, t as i } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as a } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as o } from "../page-kB-LDkaO.js";
|
|
6
6
|
import { t as s } from "../button-jwSm4U5l.js";
|
|
7
|
-
import { t as c } from "../otpInput-
|
|
7
|
+
import { t as c } from "../otpInput-BiUL8Ebu.js";
|
|
8
8
|
import { t as l } from "../checkbox-B6sowIi8.js";
|
|
9
9
|
import { t as u } from "../phoneInputComposed-BnOmNQTz.js";
|
|
10
10
|
import { t as d } from "../incodeModule-Di2OUZ5_.js";
|
|
@@ -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-C7D9PxFO.js";
|
|
3
3
|
import { t as n } from "../incodeModule-Di2OUZ5_.js";
|
|
4
4
|
//#region src/modules/qe-signature/qe-signature.tsx
|
|
5
5
|
var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CjdbFOpI.js";
|
|
2
|
-
import { n as t, t as n } from "./i18n-
|
|
2
|
+
import { n as t, t as n } from "./i18n-BijwYtJr.js";
|
|
3
3
|
import { S as r, _ as i, c as a, g as o, h as s, o as c, p as l, v as u, x as d } from "./vendor-preact-D6SntenC.js";
|
|
4
|
-
import { o as f, t as p } from "./incodeComponent-
|
|
4
|
+
import { o as f, t as p } from "./incodeComponent-Cd290pHH.js";
|
|
5
5
|
import { t as m } from "./spacer-DCljE53A.js";
|
|
6
6
|
import { n as h, r as g, t as _ } from "./verifiedByIncode-CMPwRtA2.js";
|
|
7
7
|
import { n as v } from "./loadingIcon-YV3D_mg8.js";
|
|
@@ -1386,7 +1386,7 @@ var T = d(null), E = () => {
|
|
|
1386
1386
|
})
|
|
1387
1387
|
]
|
|
1388
1388
|
});
|
|
1389
|
-
}, le = a(() => import("./phoneInput
|
|
1389
|
+
}, le = a(() => import("./phoneInput-3AdvQaEd.js").then((e) => ({ default: e.PhoneInput }))), ue = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: s, onSendSms: l }) => {
|
|
1390
1390
|
let { t: d } = t();
|
|
1391
1391
|
return /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ u(c, {
|
|
1392
1392
|
fallback: /* @__PURE__ */ u(y, {}),
|
|
@@ -1543,4 +1543,4 @@ var T = d(null), E = () => {
|
|
|
1543
1543
|
}) : null });
|
|
1544
1544
|
C($, "incode-redirect-to-mobile");
|
|
1545
1545
|
//#endregion
|
|
1546
|
-
export { $ as
|
|
1546
|
+
export { $ as RedirectToMobile };
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { o as t, t as n } from "../incodeComponent-
|
|
3
|
-
import { t as r } from "../processing-
|
|
4
|
-
import { n as i, r as a, t as o } from "../tutorial-
|
|
2
|
+
import { o as t, t as n } from "../incodeComponent-Cd290pHH.js";
|
|
3
|
+
import { t as r } from "../processing-CMIsTP-t.js";
|
|
4
|
+
import { n as i, r as a, t as o } from "../tutorial-gP0l4CuT.js";
|
|
5
5
|
import { t as s } from "../incodeModule-Di2OUZ5_.js";
|
|
6
6
|
import { createSelfieManager as c } from "@incodetech/core/selfie";
|
|
7
7
|
//#region src/modules/selfie/selfie.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BijwYtJr.js";
|
|
2
2
|
import { v as t } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as n } from "./spacer-DCljE53A.js";
|
|
4
4
|
import { t as r } from "./page-kB-LDkaO.js";
|
|
@@ -6,7 +6,7 @@ import { t as i } from "./button-jwSm4U5l.js";
|
|
|
6
6
|
import { o as a } from "./icons-BNwTyDPs.js";
|
|
7
7
|
import { t as o } from "./dropdownComposed-C6vVF6YA.js";
|
|
8
8
|
import "./dropdownComposed-DkSZPhUb.js";
|
|
9
|
-
import { t as s } from "./language-
|
|
9
|
+
import { t as s } from "./language-Dvo4jXwx.js";
|
|
10
10
|
//#region src/modules/home/settings.tsx
|
|
11
11
|
function c({ onClose: c }) {
|
|
12
12
|
let { t: l } = e(), { selectedLanguage: u, languageOptions: d, changeLanguage: f } = s();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, a as n, d as r, h as i, l as a, p as o, u as s, v as c } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as l, t as u } from "../incodeComponent-
|
|
3
|
+
import { o as l, t as u } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as d } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as f } from "../page-kB-LDkaO.js";
|
|
6
6
|
import { r as p } from "../typography-BeNe2WRr.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./i18n-
|
|
1
|
+
import { n as e, t } from "./i18n-BijwYtJr.js";
|
|
2
2
|
import { C as n, S as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, l as d, m as f, p, r as m, v as h, x as g, y as _ } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as v } from "./incodeComponent-
|
|
3
|
+
import { r as v } from "./incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as y } from "./spacer-DCljE53A.js";
|
|
5
5
|
import { t as b } from "./page-kB-LDkaO.js";
|
|
6
6
|
import { n as x, t as ee } from "./loadingIcon-YV3D_mg8.js";
|
|
@@ -2783,7 +2783,7 @@ var qe = ({ manager: t, permissionStatus: n }) => {
|
|
|
2783
2783
|
}, ot = ({ manager: t }) => {
|
|
2784
2784
|
let { t: n } = e(), [r, a] = p(!1), [o, s] = p(null);
|
|
2785
2785
|
return i(() => {
|
|
2786
|
-
import("./selfieTutorial-
|
|
2786
|
+
import("./selfieTutorial-Cu9vXjss.js").then((e) => {
|
|
2787
2787
|
s(e.default);
|
|
2788
2788
|
});
|
|
2789
2789
|
}, []), o ? /* @__PURE__ */ h(B, {
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -2,7 +2,14 @@ import { FC } from 'preact/compat';
|
|
|
2
2
|
import { FinishStatus } from '@incodetech/core/flow';
|
|
3
3
|
import { WasmConfig } from '@incodetech/core/wasm';
|
|
4
4
|
|
|
5
|
-
export declare type FlowConfig = {
|
|
5
|
+
export declare type FlowConfig = FlowRuntimeConfig & {
|
|
6
|
+
onModuleLoading?: (moduleKey: string) => void;
|
|
7
|
+
onModuleLoaded?: (moduleKey: string) => void;
|
|
8
|
+
onWasmWarmup?: (pipelines: string[]) => void;
|
|
9
|
+
spinnerConfig?: SpinnerConfig;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
declare type FlowRuntimeConfig = {
|
|
6
13
|
apiURL: string;
|
|
7
14
|
token: string;
|
|
8
15
|
authHint?: string;
|
|
@@ -10,10 +17,6 @@ export declare type FlowConfig = {
|
|
|
10
17
|
lang?: string;
|
|
11
18
|
disableDashboardTheme?: boolean;
|
|
12
19
|
enableHome?: boolean;
|
|
13
|
-
onModuleLoading?: (moduleKey: string) => void;
|
|
14
|
-
onModuleLoaded?: (moduleKey: string) => void;
|
|
15
|
-
onWasmWarmup?: (pipelines: string[]) => void;
|
|
16
|
-
spinnerConfig?: SpinnerConfig;
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
export declare const IncodeFlow: FC<IncodeFlowProps>;
|
|
@@ -41,14 +44,7 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
41
44
|
onError?: (error: string | undefined) => void;
|
|
42
45
|
};
|
|
43
46
|
|
|
44
|
-
declare type PreloadConfig =
|
|
45
|
-
apiURL: string;
|
|
46
|
-
token: string;
|
|
47
|
-
lang?: string;
|
|
48
|
-
disableDashboardTheme?: boolean;
|
|
49
|
-
wasmConfig?: WasmConfig;
|
|
50
|
-
enableHome?: boolean;
|
|
51
|
-
};
|
|
47
|
+
declare type PreloadConfig = FlowRuntimeConfig;
|
|
52
48
|
|
|
53
49
|
export declare type PreloadHandle = {
|
|
54
50
|
get isReady(): boolean;
|
|
@@ -59,7 +55,7 @@ export declare type PreloadHandle = {
|
|
|
59
55
|
|
|
60
56
|
export declare function preloadIncodeFlow(config: PreloadConfig): PreloadHandle;
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
declare type SpinnerConfig = {
|
|
63
59
|
title?: string;
|
|
64
60
|
subtitle?: string;
|
|
65
61
|
size?: SpinnerSize;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { _ as e, l as t, p as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
2
2
|
import { t as i } from "./uiConfig-CwpQ-IM6.js";
|
|
3
|
-
import { t as a } from "./setup-
|
|
3
|
+
import { t as a } from "./setup-n7xLstSl.js";
|
|
4
4
|
import { t as o } from "./button-jwSm4U5l.js";
|
|
5
5
|
import { resolveWasmConfig as s, warmupWasm as c } from "@incodetech/core/wasm";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { getDeviceClass as l } from "@incodetech/core/device";
|
|
7
|
+
import { createOrchestratedFlowManager as u, getFlow as d, getRequiredWasmPipelines as f } from "@incodetech/core/flow";
|
|
8
|
+
import { api as p } from "@incodetech/core/http";
|
|
8
9
|
//#region src/styles/generatePalette.ts
|
|
9
|
-
function
|
|
10
|
+
function m(e) {
|
|
10
11
|
let t = e.replace("#", "");
|
|
11
12
|
t.length === 3 && (t = t.split("").map((e) => e + e).join(""));
|
|
12
13
|
let n = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
@@ -32,7 +33,7 @@ function p(e) {
|
|
|
32
33
|
l: u * 100
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function h(e, t, n) {
|
|
36
37
|
let r = e / 360, i = t / 100, a = n / 100, o, s, c;
|
|
37
38
|
if (i === 0) o = s = c = a;
|
|
38
39
|
else {
|
|
@@ -45,24 +46,24 @@ function m(e, t, n) {
|
|
|
45
46
|
};
|
|
46
47
|
return `#${l(o)}${l(s)}${l(c)}`;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
let t =
|
|
49
|
+
function g(e) {
|
|
50
|
+
let t = m(e);
|
|
50
51
|
if (!t) throw Error(`Invalid color format: ${e}`);
|
|
51
52
|
return {
|
|
52
|
-
50:
|
|
53
|
-
200:
|
|
54
|
-
300:
|
|
55
|
-
400:
|
|
53
|
+
50: h(t.h, t.s, 95),
|
|
54
|
+
200: h(t.h, t.s, 80),
|
|
55
|
+
300: h(t.h, t.s, 65),
|
|
56
|
+
400: h(t.h, t.s, Math.min(100, t.l + 10)),
|
|
56
57
|
500: e,
|
|
57
|
-
600:
|
|
58
|
-
900:
|
|
58
|
+
600: h(t.h, t.s, Math.max(0, t.l - 10)),
|
|
59
|
+
900: h(t.h, t.s, 20)
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
//#endregion
|
|
62
63
|
//#region src/styles/applyTheme.ts
|
|
63
|
-
function
|
|
64
|
+
function _(e, t) {
|
|
64
65
|
if (typeof document > "u") return;
|
|
65
|
-
let n =
|
|
66
|
+
let n = g(e), r = document.getElementById("incode-theme");
|
|
66
67
|
r || (r = document.createElement("style"), r.id = "incode-theme", document.head.appendChild(r));
|
|
67
68
|
let i = t || "#ffffff", a = `
|
|
68
69
|
:root,
|
|
@@ -81,44 +82,45 @@ function g(e, t) {
|
|
|
81
82
|
}
|
|
82
83
|
//#endregion
|
|
83
84
|
//#region src/styles/fetchTheme.ts
|
|
84
|
-
async function
|
|
85
|
-
return (await
|
|
85
|
+
async function v() {
|
|
86
|
+
return (await p.get("/omni/asset/fetch-all")).data;
|
|
86
87
|
}
|
|
87
|
-
var
|
|
88
|
-
async function
|
|
88
|
+
var y = /* @__PURE__ */ new Map();
|
|
89
|
+
async function b(e) {
|
|
89
90
|
if (e.startsWith("data:")) return e;
|
|
90
|
-
let t =
|
|
91
|
+
let t = y.get(e);
|
|
91
92
|
if (t) return t;
|
|
92
93
|
let n = await (await fetch(e)).blob(), r = await new Promise((e, t) => {
|
|
93
94
|
let r = new FileReader();
|
|
94
95
|
r.onloadend = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
|
|
95
96
|
});
|
|
96
|
-
return
|
|
97
|
+
return y.set(e, r), r;
|
|
97
98
|
}
|
|
98
|
-
async function
|
|
99
|
-
let e = await
|
|
99
|
+
async function x() {
|
|
100
|
+
let e = await v();
|
|
100
101
|
if (!e.theme) throw Error("Theme URL not found in assets response");
|
|
101
102
|
let t = e.theme, n = t.startsWith("http://") || t.startsWith("https://"), r;
|
|
102
103
|
if (n) {
|
|
103
104
|
let e = await fetch(t);
|
|
104
105
|
if (!e.ok) throw Error(`Failed to fetch theme: ${e.statusText}`);
|
|
105
106
|
r = await e.json();
|
|
106
|
-
} else r = (await
|
|
107
|
+
} else r = (await p.get(t)).data;
|
|
107
108
|
let i = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo, a = i;
|
|
108
|
-
return i && (a = await
|
|
109
|
+
return i && (a = await b(i)), {
|
|
109
110
|
...r,
|
|
110
111
|
logo: a
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
|
-
async function
|
|
114
|
-
let e = await
|
|
115
|
-
return e.main &&
|
|
114
|
+
async function S() {
|
|
115
|
+
let e = await x();
|
|
116
|
+
return e.main && _(e.main, e.buttonColor), e;
|
|
116
117
|
}
|
|
117
118
|
//#endregion
|
|
118
119
|
//#region src/modules/flow/flowInit.ts
|
|
119
|
-
var
|
|
120
|
-
function
|
|
120
|
+
var C = () => import("./id/id.es.js").then((e) => e.Id), w = "HOME";
|
|
121
|
+
function T(e) {
|
|
121
122
|
if (e === "HOME") return () => import("@incodetech/core/home").then((e) => e.homeMachine);
|
|
123
|
+
if (e === "REDIRECT_TO_MOBILE") return () => import("@incodetech/core/redirect-to-mobile").then((e) => e.redirectToMobileMachine);
|
|
122
124
|
if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
|
|
123
125
|
if (e === "EMAIL") return () => import("@incodetech/core/email").then((e) => e.emailMachine);
|
|
124
126
|
if (e === "SELFIE") return () => import("@incodetech/core/selfie").then((e) => e.selfieMachine);
|
|
@@ -139,36 +141,37 @@ function w(e) {
|
|
|
139
141
|
if (e === "AE_SIGNATURE") return () => import("@incodetech/core/ae-signature").then((e) => e.aeSignatureMachine);
|
|
140
142
|
if (e === "QE_SIGNATURE") return () => import("@incodetech/core/qe-signature").then((e) => e.qeSignatureMachine);
|
|
141
143
|
}
|
|
142
|
-
function
|
|
144
|
+
function E(e) {
|
|
143
145
|
let t = {};
|
|
144
146
|
for (let n of e) {
|
|
145
147
|
let e = n.key;
|
|
146
148
|
if (t[e]) continue;
|
|
147
|
-
let r =
|
|
149
|
+
let r = T(e);
|
|
148
150
|
r && (t[e] = r);
|
|
149
151
|
}
|
|
150
152
|
return t;
|
|
151
153
|
}
|
|
152
|
-
var
|
|
153
|
-
[
|
|
154
|
+
var D = {
|
|
155
|
+
[w]: () => import("./home/home.es.js").then((e) => e.Home),
|
|
156
|
+
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-CFzDfmuH.js").then((e) => e.RedirectToMobile),
|
|
154
157
|
PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
|
|
155
158
|
EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
|
|
156
159
|
SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
|
|
157
160
|
AUTHENTICATION: () => import("./authentication/authentication.es.js").then((e) => e.Authentication),
|
|
158
|
-
ID:
|
|
159
|
-
ID_CAPTURE:
|
|
160
|
-
TUTORIAL_ID:
|
|
161
|
-
SECOND_ID:
|
|
162
|
-
FACE_MATCH: () => import("./faceMatch-
|
|
161
|
+
ID: C,
|
|
162
|
+
ID_CAPTURE: C,
|
|
163
|
+
TUTORIAL_ID: C,
|
|
164
|
+
SECOND_ID: C,
|
|
165
|
+
FACE_MATCH: () => import("./faceMatch-Z6cCZZMi.js").then((e) => e.FaceMatch),
|
|
163
166
|
CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
164
167
|
GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
|
|
165
168
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
166
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
167
|
-
EKYB: () => import("./ekybModule-
|
|
168
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
169
|
-
ADDRESS: () => import("./documentCapture-
|
|
169
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-D8YFovqq.js").then((e) => e.EkycModule),
|
|
170
|
+
EKYB: () => import("./ekybModule-IxSxK7ET.js").then((e) => e.EkybModule),
|
|
171
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-CQ32GpB4.js").then((e) => e.DocumentCapture),
|
|
172
|
+
ADDRESS: () => import("./documentCapture-CQ32GpB4.js").then((e) => e.DocumentCapture),
|
|
170
173
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
|
|
171
|
-
MANDATORY_CONSENT: () => import("./mandatoryConsent-
|
|
174
|
+
MANDATORY_CONSENT: () => import("./mandatoryConsent-7CnQf3lz.js").then((e) => e.MandatoryConsent),
|
|
172
175
|
SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
|
|
173
176
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
174
177
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
|
|
@@ -176,18 +179,21 @@ var E = {
|
|
|
176
179
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
|
|
177
180
|
CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
|
|
178
181
|
};
|
|
179
|
-
function
|
|
180
|
-
let t = {};
|
|
181
|
-
return
|
|
182
|
-
getFlow: async (
|
|
183
|
-
let
|
|
182
|
+
function O(e = {}) {
|
|
183
|
+
let t = {}, n = e.isDesktop ?? l() === "desktop";
|
|
184
|
+
return u({
|
|
185
|
+
getFlow: async (r) => {
|
|
186
|
+
let i = await d(r, {
|
|
187
|
+
...e,
|
|
188
|
+
isDesktop: n
|
|
189
|
+
}), a = E(i.flowModules ?? []);
|
|
184
190
|
for (let e of Object.keys(t)) delete t[e];
|
|
185
|
-
return Object.assign(t,
|
|
191
|
+
return Object.assign(t, a), i;
|
|
186
192
|
},
|
|
187
193
|
lazyModules: t
|
|
188
194
|
});
|
|
189
195
|
}
|
|
190
|
-
async function
|
|
196
|
+
async function k(e) {
|
|
191
197
|
await a({
|
|
192
198
|
apiURL: e.apiURL,
|
|
193
199
|
token: e.token,
|
|
@@ -195,17 +201,17 @@ async function O(e) {
|
|
|
195
201
|
i18n: { lang: e.lang ?? "en" }
|
|
196
202
|
});
|
|
197
203
|
}
|
|
198
|
-
async function
|
|
204
|
+
async function A(e) {
|
|
199
205
|
let { apiURL: t, token: n, lang: r, flowManager: i } = e;
|
|
200
|
-
await
|
|
206
|
+
await k({
|
|
201
207
|
apiURL: t,
|
|
202
208
|
token: n,
|
|
203
209
|
lang: r
|
|
204
210
|
}), i.load();
|
|
205
211
|
}
|
|
206
|
-
async function
|
|
212
|
+
async function j() {
|
|
207
213
|
try {
|
|
208
|
-
let e = await
|
|
214
|
+
let e = await S(), t = {
|
|
209
215
|
logoSrc: e.logo,
|
|
210
216
|
subtitle: e.subtitle,
|
|
211
217
|
hideFooterBranding: e.hideFooterBranding
|
|
@@ -218,8 +224,8 @@ async function A() {
|
|
|
218
224
|
return {};
|
|
219
225
|
}
|
|
220
226
|
}
|
|
221
|
-
function
|
|
222
|
-
let n =
|
|
227
|
+
function M(e, t) {
|
|
228
|
+
let n = f(e.flow);
|
|
223
229
|
n.length > 0 && c(s({
|
|
224
230
|
...t,
|
|
225
231
|
pipelines: n
|
|
@@ -227,16 +233,16 @@ function j(e, t) {
|
|
|
227
233
|
console.error("WASM warmup failed:", e);
|
|
228
234
|
});
|
|
229
235
|
}
|
|
230
|
-
function
|
|
236
|
+
function N(e) {
|
|
231
237
|
let t = e.currentStep;
|
|
232
238
|
if (t) {
|
|
233
|
-
let e =
|
|
239
|
+
let e = D[t];
|
|
234
240
|
e && e().catch(() => {});
|
|
235
241
|
}
|
|
236
242
|
}
|
|
237
243
|
//#endregion
|
|
238
244
|
//#region src/modules/flow/unsupportedModule.tsx
|
|
239
|
-
var
|
|
245
|
+
var P = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
|
|
240
246
|
class: "IncodeUnsupportedModule",
|
|
241
247
|
"aria-live": "polite",
|
|
242
248
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -265,7 +271,7 @@ var N = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
|
|
|
265
271
|
});
|
|
266
272
|
//#endregion
|
|
267
273
|
//#region src/modules/flow/useModuleLoader.ts
|
|
268
|
-
function
|
|
274
|
+
function F(t) {
|
|
269
275
|
let { moduleKey: r, modules: i, onModuleLoading: a, onModuleLoaded: o, onError: s } = t, [c, l] = n({ status: "idle" });
|
|
270
276
|
return e(() => {
|
|
271
277
|
if (!r) {
|
|
@@ -311,7 +317,7 @@ function P(t) {
|
|
|
311
317
|
s
|
|
312
318
|
]), c;
|
|
313
319
|
}
|
|
314
|
-
function
|
|
320
|
+
function I(n, r, i) {
|
|
315
321
|
let a = t(/* @__PURE__ */ new Set());
|
|
316
322
|
e(() => {
|
|
317
323
|
if (r < n.length - 1) {
|
|
@@ -331,4 +337,4 @@ function F(n, r, i) {
|
|
|
331
337
|
]);
|
|
332
338
|
}
|
|
333
339
|
//#endregion
|
|
334
|
-
export {
|
|
340
|
+
export { O as a, N as c, S as d, D as i, k as l, I as n, j as o, P as r, A as s, F as t, M as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i, t as a } from "../incodeComponent-
|
|
3
|
+
import { o as i, t as a } from "../incodeComponent-Cd290pHH.js";
|
|
4
4
|
import { t as o } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as s } from "../page-kB-LDkaO.js";
|
|
6
6
|
import { t as c } from "../loadingIcon-YV3D_mg8.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, l as n, p as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as a } from "../uiConfig-CwpQ-IM6.js";
|
|
4
|
-
import { o, t as s } from "../incodeComponent-
|
|
4
|
+
import { o, t as s } from "../incodeComponent-Cd290pHH.js";
|
|
5
5
|
import { t as c } from "../spinner-Dg3lumvu.js";
|
|
6
6
|
import "../spinner-BEm5Wf_k.js";
|
|
7
7
|
import { t as l } from "../incodeModule-Di2OUZ5_.js";
|
|
8
|
-
import { d as u, i as d, l as f, r as p, t as m } from "../useModuleLoader-
|
|
8
|
+
import { d as u, i as d, l as f, r as p, t as m } from "../useModuleLoader-D_WjZsnk.js";
|
|
9
9
|
import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
|
|
10
10
|
import { createWorkflowManager as _ } from "@incodetech/core/workflow";
|
|
11
11
|
//#region src/modules/workflow/workflowInit.ts
|
|
12
12
|
var v = {
|
|
13
13
|
...d,
|
|
14
|
-
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-
|
|
14
|
+
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-CFzDfmuH.js").then((e) => e.RedirectToMobile)
|
|
15
15
|
};
|
|
16
16
|
async function y() {
|
|
17
17
|
try {
|