@incodetech/web 0.0.0-dev-20260716-5050af5d → 0.0.0-dev-20260716-bd78addb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +2 -2
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{capture-D3ke7s8S.js → capture-D0IoRgUW.js} +85 -2
- package/dist/captureNotification-TagyjIIf.js +269 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +3 -3
- package/dist/consent/consent.es.js +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-C4At7VTs.js +2 -0
- package/dist/{cpfOcr-XkulVOfW.js → cpfOcr-DpdS8O0U.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +2 -2
- package/dist/{customFields-CExo7_8A.js → customFields-DrmSzp7Q.js} +2 -2
- package/dist/{customWatchlist-BIRCpn5_.js → customWatchlist-BZ18bXOZ.js} +2 -2
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-B6vtUGsd.js +2 -0
- package/dist/{documentCapture-C1lGeAAE.js → documentCapture-BgI9t5eO.js} +6 -6
- package/dist/{dynamicForms-D9wzEF4G.js → dynamicForms-CkDvOOtv.js} +3 -3
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CSVRfnNR.js → ekybModule-BM9HAyuq.js} +4 -4
- package/dist/ekybModule-kXkXDMuB.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-daV0VadG.js → ekycModule-B5mw51Sj.js} +3 -3
- package/dist/ekycModule-fcg2rdYQ.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BH2vVHyT.js → electronic-signature-Dd11xy0A.js} +2 -2
- package/dist/email/email.es.js +3 -3
- package/dist/{emailInput-C3SlxU6A.js → emailInput-CUSNEI73.js} +1 -1
- package/dist/{extensibility-CP2kziBc.js → extensibility-yXjp3-Vn.js} +5 -219
- package/dist/extensibility.es.js +6 -6
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-BJzClJSI.js +2 -0
- package/dist/{faceMatch-B3ntTV7_.js → faceMatch-CkR9Tzt4.js} +2 -2
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-DxNRWb8x.js → fieldComparison-DfR2p3Kl.js} +3 -3
- package/dist/fieldComparison-etMBMXyz.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +4 -4
- package/dist/flow/flow.es.js +4 -4
- package/dist/flow/styles.css +347 -136
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/government-validation/government-validation.es.js +3 -3
- package/dist/{hooks-CNu7o-v8.js → hooks-CCi2bNQK.js} +4 -16
- package/dist/id/id.es.js +7 -6
- package/dist/id-verification/id-verification.es.js +2 -2
- package/dist/{idOcr-DfIOwlGi.js → idOcr-T8ETnsT6.js} +3 -3
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-CfzJGETt.js → incodeComponent-XYk40isQ.js} +1 -1
- package/dist/{mandatoryConsent-KjP5BavC.js → mandatoryConsent-DKn4zdET.js} +2 -2
- package/dist/{optionAccessibleLabel-DkVt0KwB.js → optionAccessibleLabel-DQ9ec4qq.js} +1 -1
- package/dist/phone/phone.es.js +2 -2
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +3 -3
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +3 -3
- package/dist/themes/dark.css +8 -0
- package/dist/themes/light.css +8 -0
- package/dist/{tutorial-BA1xxIP6.js → tutorial-oP7mKpdB.js} +2 -85
- package/dist/types/id.d.ts +2 -2
- package/dist/{useModuleLoader-lVZdN1m0.js → useModuleLoader-BWoooIQ4.js} +14 -14
- package/dist/video-selfie/styles.css +347 -73
- package/dist/video-selfie/video-selfie.es.js +157 -92
- package/dist/watchlist/watchlist.es.js +2 -2
- package/dist/{watchlistForBusiness-DncNaIrm.js → watchlistForBusiness-yl50RwC-.js} +2 -2
- package/dist/workflow/workflow.es.js +3 -3
- package/package.json +2 -2
- package/dist/cameraView-DIEzM5ru.js +0 -47
- package/dist/cpfOcr-BQ84bwe3.js +0 -2
- package/dist/documentCapture-l1DB8Zag.js +0 -2
- package/dist/ekybModule-DXoUU86h.js +0 -2
- package/dist/ekycModule-BVaeu3_l.js +0 -2
- package/dist/faceMatch-Zc7Hw7ss.js +0 -2
- package/dist/fieldComparison-Cihw46KX.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
2
|
+
import { n as ElectronicSignature } from "../electronic-signature-Dd11xy0A.js";
|
|
3
3
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
4
4
|
//#region src/modules/ae-signature/ae-signature.tsx
|
|
5
5
|
var AeSignature = ({ config, onFinish, onError }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
2
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
4
4
|
import { t as Spinner } from "../spinner-BMeIEK1d.js";
|
|
5
5
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
6
6
|
import { createAntifraudManager } from "@incodetech/core/antifraud";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { n as Capture, t as Tutorial } from "../tutorial-
|
|
5
|
-
import { i as Permissions } from "../capture-
|
|
2
|
+
import { l as useManager, o as isTerminalModuleState, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
4
|
+
import { n as Capture, t as Tutorial } from "../tutorial-oP7mKpdB.js";
|
|
5
|
+
import { i as Permissions } from "../capture-D0IoRgUW.js";
|
|
6
6
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
7
7
|
import { createAuthenticationManager } from "@incodetech/core/authentication";
|
|
8
8
|
//#region src/modules/authentication/authentication.tsx
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
1
2
|
import { n as useTranslation, t as Trans } from "./i18n-CU4xq8qC.js";
|
|
2
3
|
import { _ as y, h as q, l as A, m as g, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
+
import { i as useIsMobileDeviceWidth } from "./hooks-CCi2bNQK.js";
|
|
4
5
|
import { n as cn, r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
5
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
7
|
import { i as TypographyH4, n as TypographyH1, t as Title } from "./typography-BZIpjo97.js";
|
|
@@ -12,6 +13,88 @@ import { t as BottomSheet } from "./bottomSheet-CnWbbUAM.js";
|
|
|
12
13
|
import { t as NumberedStep } from "./numberedStep-CEb-lFJm.js";
|
|
13
14
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
14
15
|
import "@incodetech/core/camera";
|
|
16
|
+
//#region src/shared/lottie/lottie.tsx
|
|
17
|
+
var lottiePromise = null;
|
|
18
|
+
async function loadLottie() {
|
|
19
|
+
if (lottiePromise) return lottiePromise;
|
|
20
|
+
lottiePromise = import("./lottie_light-C6B2ec41.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => mod.default);
|
|
21
|
+
return lottiePromise;
|
|
22
|
+
}
|
|
23
|
+
var AUTO_STOP_AFTER_MS = 5e3;
|
|
24
|
+
function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
|
|
25
|
+
const containerRef = A(null);
|
|
26
|
+
const effectiveAutoplay = reverse ? false : autoplay;
|
|
27
|
+
const animationOptionsRef = A({
|
|
28
|
+
container: containerRef.current,
|
|
29
|
+
renderer: "svg",
|
|
30
|
+
loop,
|
|
31
|
+
autoplay: effectiveAutoplay,
|
|
32
|
+
animationData
|
|
33
|
+
});
|
|
34
|
+
y(() => {
|
|
35
|
+
animationOptionsRef.current = {
|
|
36
|
+
container: containerRef.current,
|
|
37
|
+
renderer: "svg",
|
|
38
|
+
loop,
|
|
39
|
+
autoplay: effectiveAutoplay,
|
|
40
|
+
animationData
|
|
41
|
+
};
|
|
42
|
+
}, [
|
|
43
|
+
animationData,
|
|
44
|
+
loop,
|
|
45
|
+
effectiveAutoplay
|
|
46
|
+
]);
|
|
47
|
+
y(() => {
|
|
48
|
+
if (!containerRef.current) return;
|
|
49
|
+
let anim;
|
|
50
|
+
let stopTimer;
|
|
51
|
+
let isMounted = true;
|
|
52
|
+
loadLottie().then((lottie) => {
|
|
53
|
+
if (!isMounted) return;
|
|
54
|
+
anim = lottie.loadAnimation(animationOptionsRef.current);
|
|
55
|
+
if (reverse) {
|
|
56
|
+
anim.setDirection(-1);
|
|
57
|
+
anim.goToAndPlay(anim.totalFrames - 1, true);
|
|
58
|
+
}
|
|
59
|
+
if (onComplete) anim.addEventListener("complete", onComplete);
|
|
60
|
+
if (autoStop) stopTimer = window.setTimeout(() => {
|
|
61
|
+
const current = anim;
|
|
62
|
+
if (!current) return;
|
|
63
|
+
if (!stopFramePosition) {
|
|
64
|
+
current.pause();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const totalFrames = current.totalFrames;
|
|
68
|
+
if (!totalFrames || totalFrames <= 0) {
|
|
69
|
+
current.stop();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
|
|
73
|
+
current.goToAndStop(targetFrame, true);
|
|
74
|
+
}, AUTO_STOP_AFTER_MS);
|
|
75
|
+
});
|
|
76
|
+
return () => {
|
|
77
|
+
isMounted = false;
|
|
78
|
+
if (stopTimer !== void 0) window.clearTimeout(stopTimer);
|
|
79
|
+
if (anim) {
|
|
80
|
+
if (onComplete) anim.removeEventListener("complete", onComplete);
|
|
81
|
+
anim.destroy();
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}, [
|
|
85
|
+
onComplete,
|
|
86
|
+
reverse,
|
|
87
|
+
autoStop,
|
|
88
|
+
stopFramePosition
|
|
89
|
+
]);
|
|
90
|
+
return /* @__PURE__ */ u("div", {
|
|
91
|
+
ref: containerRef,
|
|
92
|
+
style,
|
|
93
|
+
className,
|
|
94
|
+
"aria-hidden": "true"
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
15
98
|
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
16
99
|
var BoldWithArrow = ({ i18nKey }) => /* @__PURE__ */ u("span", {
|
|
17
100
|
class: "IncodeBoldWithArrow",
|
|
@@ -2283,4 +2366,4 @@ var Notification = ({ detectionState, disabled }) => {
|
|
|
2283
2366
|
}), /* @__PURE__ */ u(Spacer, { size: 24 })] }) : null] });
|
|
2284
2367
|
};
|
|
2285
2368
|
//#endregion
|
|
2286
|
-
export { Permissions as i, LoadingBorder as n, FaceOutline as r, Notification as t };
|
|
2369
|
+
export { Lottie as a, Permissions as i, LoadingBorder as n, FaceOutline as r, Notification as t };
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
|
+
import { _ as y, a as D, h as q, l as A, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
+
import { n as cn, r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
4
|
+
import { a as Lottie } from "./capture-D0IoRgUW.js";
|
|
5
|
+
//#region src/shared/cameraOverlay/cameraFrame.tsx
|
|
6
|
+
var CameraFrame = D(({ variant, aspectRatio, orientation = "horizontal", frameState = "idle", className, children }, ref) => {
|
|
7
|
+
const stateClass = `IncodeCameraFrame${frameState.charAt(0).toUpperCase()}${frameState.slice(1)}`;
|
|
8
|
+
return /* @__PURE__ */ u("div", {
|
|
9
|
+
ref,
|
|
10
|
+
class: cn("IncodeCameraFrame", variant === "fill" && "IncodeCameraFrameFill", variant === "locked" && "IncodeCameraFrameLocked", variant === "locked" && orientation === "horizontal" && "IncodeCameraFrameHorizontal", variant === "locked" && orientation === "vertical" && "IncodeCameraFrameVertical", stateClass, className),
|
|
11
|
+
style: aspectRatio ? { aspectRatio } : void 0,
|
|
12
|
+
"aria-hidden": true,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/shared/cameraOverlay/cameraView.tsx
|
|
18
|
+
var CameraView = ({ stream, children, videoRef: externalVideoRef, onPlaying, className, mirrored, ...rest }) => {
|
|
19
|
+
const internalVideoRef = A(null);
|
|
20
|
+
const setVideoRef = (el) => {
|
|
21
|
+
internalVideoRef.current = el;
|
|
22
|
+
if (typeof externalVideoRef === "function") externalVideoRef(el);
|
|
23
|
+
else if (externalVideoRef) externalVideoRef.current = el;
|
|
24
|
+
};
|
|
25
|
+
y(() => {
|
|
26
|
+
if (internalVideoRef.current && stream) {
|
|
27
|
+
internalVideoRef.current.srcObject = stream;
|
|
28
|
+
internalVideoRef.current.play().catch(() => {});
|
|
29
|
+
}
|
|
30
|
+
}, [stream]);
|
|
31
|
+
return /* @__PURE__ */ u("div", {
|
|
32
|
+
class: cn("IncodeCameraView", className),
|
|
33
|
+
...rest,
|
|
34
|
+
children: [/* @__PURE__ */ u("div", {
|
|
35
|
+
class: "IncodeCameraViewVideo",
|
|
36
|
+
children: /* @__PURE__ */ u("video", {
|
|
37
|
+
ref: setVideoRef,
|
|
38
|
+
autoplay: true,
|
|
39
|
+
playsInline: true,
|
|
40
|
+
muted: true,
|
|
41
|
+
onPlaying,
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
class: cn("IncodeCameraViewVideoElement", mirrored && "IncodeCameraViewVideoMirrored")
|
|
44
|
+
})
|
|
45
|
+
}), children]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/modules/id/capture/useCaptureNotification.ts
|
|
50
|
+
var animationCache = /* @__PURE__ */ new Map();
|
|
51
|
+
var preloadPromise = null;
|
|
52
|
+
var animationLoaders = {
|
|
53
|
+
blur: () => import("./blurdevicelottie-BLVeJHEG.js"),
|
|
54
|
+
glare: () => import("./glaredevicelottie-D1pR73sx.js"),
|
|
55
|
+
align: () => import("./aligndevicelottie-DFscByAI.js"),
|
|
56
|
+
front: () => import("./frontdevicelottie-B4tE2PYQ.js"),
|
|
57
|
+
back: () => import("./backdevicelottie-COyhTrxM.js")
|
|
58
|
+
};
|
|
59
|
+
function startPreload() {
|
|
60
|
+
preloadPromise ??= Promise.all([
|
|
61
|
+
animationLoaders.blur(),
|
|
62
|
+
animationLoaders.glare(),
|
|
63
|
+
animationLoaders.align(),
|
|
64
|
+
animationLoaders.front(),
|
|
65
|
+
animationLoaders.back()
|
|
66
|
+
]).then(([blur, glare, align, front, back]) => {
|
|
67
|
+
animationCache.set("blur", blur.default);
|
|
68
|
+
animationCache.set("glare", glare.default);
|
|
69
|
+
animationCache.set("align", align.default);
|
|
70
|
+
animationCache.set("front", front.default);
|
|
71
|
+
animationCache.set("back", back.default);
|
|
72
|
+
}).catch(() => {});
|
|
73
|
+
return preloadPromise;
|
|
74
|
+
}
|
|
75
|
+
function preloadCaptureAnimations() {
|
|
76
|
+
startPreload();
|
|
77
|
+
}
|
|
78
|
+
function usePreloadCaptureAnimations() {
|
|
79
|
+
y(() => {
|
|
80
|
+
preloadCaptureAnimations();
|
|
81
|
+
}, []);
|
|
82
|
+
}
|
|
83
|
+
function useCaptureNotification(detectionStatus, mode) {
|
|
84
|
+
const { t } = useTranslation();
|
|
85
|
+
const [, forceUpdate] = d(0);
|
|
86
|
+
y(() => {
|
|
87
|
+
let mounted = true;
|
|
88
|
+
startPreload().then(() => {
|
|
89
|
+
if (mounted) forceUpdate((n) => n + 1);
|
|
90
|
+
});
|
|
91
|
+
return () => {
|
|
92
|
+
mounted = false;
|
|
93
|
+
};
|
|
94
|
+
}, []);
|
|
95
|
+
if (detectionStatus === "blur") return {
|
|
96
|
+
title: t("idv2.capture.notifications.blur.title"),
|
|
97
|
+
description: t("idv2.capture.notifications.blur.description"),
|
|
98
|
+
animationData: animationCache.get("blur") ?? null
|
|
99
|
+
};
|
|
100
|
+
if (detectionStatus === "glare") return {
|
|
101
|
+
title: t("idv2.capture.notifications.glare.title"),
|
|
102
|
+
description: t("idv2.capture.notifications.glare.description"),
|
|
103
|
+
animationData: animationCache.get("glare") ?? null
|
|
104
|
+
};
|
|
105
|
+
if (detectionStatus === "farAway") return {
|
|
106
|
+
title: t("idv2.capture.notifications.notAligned.title"),
|
|
107
|
+
description: t("idv2.capture.notifications.notAligned.description"),
|
|
108
|
+
animationData: animationCache.get("align") ?? null
|
|
109
|
+
};
|
|
110
|
+
if (detectionStatus === "wrongSide") {
|
|
111
|
+
const isBack = mode === "back";
|
|
112
|
+
return {
|
|
113
|
+
title: isBack ? t("idv2.capture.notifications.showBack.title") : t("idv2.capture.notifications.showFront.title"),
|
|
114
|
+
description: isBack ? t("idv2.capture.notifications.showBack.description") : t("idv2.capture.notifications.showFront.description"),
|
|
115
|
+
animationData: animationCache.get(isBack ? "back" : "front") ?? null
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/modules/id/capture/captureNotification.tsx
|
|
122
|
+
var CaptureNotification = ({ detectionStatus, mode, isCapturing }) => {
|
|
123
|
+
const { t } = useTranslation();
|
|
124
|
+
const notification = useCaptureNotification(detectionStatus, mode);
|
|
125
|
+
const liveRef = A(null);
|
|
126
|
+
const lastAnnouncedRef = A({
|
|
127
|
+
message: "",
|
|
128
|
+
at: 0
|
|
129
|
+
});
|
|
130
|
+
const prevDetectionStatusRef = A(detectionStatus);
|
|
131
|
+
const hasAnnouncedInstructionsRef = A(false);
|
|
132
|
+
const clearTimerRef = A();
|
|
133
|
+
const outerTimerRef = A();
|
|
134
|
+
const isIdle = detectionStatus === "detecting" || detectionStatus === "idNotDetected" || detectionStatus === "manualCapture";
|
|
135
|
+
const isManualCapture = detectionStatus === "manualCapture";
|
|
136
|
+
const isWrongSide = detectionStatus === "wrongSide";
|
|
137
|
+
const isFarAway = detectionStatus === "farAway";
|
|
138
|
+
const isGlare = detectionStatus === "glare";
|
|
139
|
+
const isBlur = detectionStatus === "blur";
|
|
140
|
+
const announce = q((message) => {
|
|
141
|
+
const now = Date.now();
|
|
142
|
+
const last = lastAnnouncedRef.current;
|
|
143
|
+
if (message === last.message && now - last.at < 200) return;
|
|
144
|
+
lastAnnouncedRef.current = {
|
|
145
|
+
message,
|
|
146
|
+
at: now
|
|
147
|
+
};
|
|
148
|
+
const node = liveRef.current;
|
|
149
|
+
if (!node) return;
|
|
150
|
+
clearTimeout(clearTimerRef.current);
|
|
151
|
+
node.textContent = "";
|
|
152
|
+
outerTimerRef.current = setTimeout(() => {
|
|
153
|
+
node.textContent = message;
|
|
154
|
+
clearTimerRef.current = setTimeout(() => {
|
|
155
|
+
node.textContent = "";
|
|
156
|
+
}, 3e3);
|
|
157
|
+
}, 50);
|
|
158
|
+
}, []);
|
|
159
|
+
const getIdleMessage = q(() => {
|
|
160
|
+
if (mode === "passport") return t("idv2.capture.fillFramePassport");
|
|
161
|
+
if (mode === "back") return t("idv2.capture.fillFrameBack");
|
|
162
|
+
return t("idv2.capture.fillFrameFront");
|
|
163
|
+
}, [mode, t]);
|
|
164
|
+
y(() => {
|
|
165
|
+
if (isManualCapture) {
|
|
166
|
+
hasAnnouncedInstructionsRef.current = false;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (hasAnnouncedInstructionsRef.current) return;
|
|
170
|
+
if (!isIdle) return;
|
|
171
|
+
const timer = setTimeout(() => {
|
|
172
|
+
hasAnnouncedInstructionsRef.current = true;
|
|
173
|
+
announce(getIdleMessage());
|
|
174
|
+
}, 500);
|
|
175
|
+
return () => clearTimeout(timer);
|
|
176
|
+
}, [
|
|
177
|
+
isIdle,
|
|
178
|
+
isManualCapture,
|
|
179
|
+
announce,
|
|
180
|
+
getIdleMessage
|
|
181
|
+
]);
|
|
182
|
+
y(() => {
|
|
183
|
+
const prev = prevDetectionStatusRef.current;
|
|
184
|
+
prevDetectionStatusRef.current = detectionStatus;
|
|
185
|
+
if (prev !== "manualCapture" && isManualCapture) announce(t("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
186
|
+
}, [
|
|
187
|
+
announce,
|
|
188
|
+
detectionStatus,
|
|
189
|
+
isManualCapture,
|
|
190
|
+
t
|
|
191
|
+
]);
|
|
192
|
+
y(() => {
|
|
193
|
+
if (isCapturing) return;
|
|
194
|
+
if (isWrongSide) {
|
|
195
|
+
const baseKey = mode === "front" || mode === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
196
|
+
announce(`${t(`${baseKey}.title`)}. ${t(`${baseKey}.description`)}`);
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
if (isFarAway) {
|
|
200
|
+
announce(`${t("idv2.capture.notifications.notAligned.title")}.`);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (isGlare) {
|
|
204
|
+
announce(`${t("idv2.capture.notifications.glare.title")}.`);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (isBlur) {
|
|
208
|
+
announce(`${t("idv2.capture.notifications.blur.title")}.`);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
if (isIdle && hasAnnouncedInstructionsRef.current) announce(getIdleMessage());
|
|
212
|
+
}, [
|
|
213
|
+
announce,
|
|
214
|
+
isBlur,
|
|
215
|
+
isCapturing,
|
|
216
|
+
isFarAway,
|
|
217
|
+
isGlare,
|
|
218
|
+
isIdle,
|
|
219
|
+
isWrongSide,
|
|
220
|
+
mode,
|
|
221
|
+
t,
|
|
222
|
+
getIdleMessage
|
|
223
|
+
]);
|
|
224
|
+
y(() => {
|
|
225
|
+
return () => {
|
|
226
|
+
clearTimeout(outerTimerRef.current);
|
|
227
|
+
clearTimeout(clearTimerRef.current);
|
|
228
|
+
};
|
|
229
|
+
}, []);
|
|
230
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
231
|
+
ref: liveRef,
|
|
232
|
+
class: "IncodeSrOnly",
|
|
233
|
+
"aria-live": "assertive",
|
|
234
|
+
"aria-atomic": "true"
|
|
235
|
+
}), notification ? /* @__PURE__ */ u("div", {
|
|
236
|
+
class: cn("IncodeIdCaptureNotification"),
|
|
237
|
+
"aria-hidden": "true",
|
|
238
|
+
children: /* @__PURE__ */ u("div", {
|
|
239
|
+
class: "IncodeIdCaptureNotificationContent",
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ u("div", {
|
|
242
|
+
class: cn("IncodeIdCaptureNotificationText"),
|
|
243
|
+
children: [/* @__PURE__ */ u("div", {
|
|
244
|
+
class: "IncodeIdCaptureNotificationTitle",
|
|
245
|
+
children: notification.title
|
|
246
|
+
}), notification.description && /* @__PURE__ */ u("div", {
|
|
247
|
+
class: "IncodeIdCaptureNotificationDescription",
|
|
248
|
+
children: notification.description
|
|
249
|
+
})]
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ u(Spacer, {
|
|
252
|
+
size: 16,
|
|
253
|
+
direction: "horizontal"
|
|
254
|
+
}),
|
|
255
|
+
notification.animationData && /* @__PURE__ */ u("div", {
|
|
256
|
+
class: "IncodeIdCaptureNotificationAnimation",
|
|
257
|
+
children: /* @__PURE__ */ u(Lottie, {
|
|
258
|
+
animationData: notification.animationData,
|
|
259
|
+
loop: true,
|
|
260
|
+
autoStop: true,
|
|
261
|
+
stopFramePosition: "last"
|
|
262
|
+
})
|
|
263
|
+
})
|
|
264
|
+
]
|
|
265
|
+
})
|
|
266
|
+
}) : null] });
|
|
267
|
+
};
|
|
268
|
+
//#endregion
|
|
269
|
+
export { CameraFrame as a, CameraView as i, preloadCaptureAnimations as n, usePreloadCaptureAnimations as r, CaptureNotification as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
-
import { _ as PasswordInputComposed } from "../extensibility-
|
|
7
|
+
import { _ as PasswordInputComposed } from "../extensibility-yXjp3-Vn.js";
|
|
8
8
|
import { a as TypographyH5 } from "../typography-BZIpjo97.js";
|
|
9
9
|
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
10
10
|
import { t as SuccessIcon } from "../successIcon-B5mGvdx1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { l as useManager, o as isTerminalModuleState, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { t as Page } from "../page-DidH_RkX.js";
|
|
6
6
|
import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
|
|
7
7
|
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CpfOcr } from "../cpfOcr-
|
|
1
|
+
import { t as CpfOcr } from "../cpfOcr-DpdS8O0U.js";
|
|
2
2
|
export { CpfOcr };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as y, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
3
3
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
4
4
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
5
5
|
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
2
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
4
4
|
import { t as Spinner } from "../spinner-BMeIEK1d.js";
|
|
5
5
|
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
6
6
|
import { createCrossDocumentDataMatchManager } from "@incodetech/core/cross-document-data-match";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "../hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
7
|
import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { r as Spacer, t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
7
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
7
7
|
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DocumentCapture } from "../documentCapture-
|
|
1
|
+
import { t as DocumentCapture } from "../documentCapture-BgI9t5eO.js";
|
|
2
2
|
export { DocumentCapture };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { c as z, h as q, l as A, m as g, o as P, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { i as useIsMobileDeviceWidth, l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { n as cn, r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import { d as CameraOverlay, l as CaptureFooter, u as CameraOverlayHeader, v as ProgressBar, y as Overlay } from "./extensibility-
|
|
7
|
+
import { d as CameraOverlay, l as CaptureFooter, u as CameraOverlayHeader, v as ProgressBar, y as Overlay } from "./extensibility-yXjp3-Vn.js";
|
|
8
8
|
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
9
9
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
10
10
|
import { a as FileIcon, g as CameraIcon, r as LockIcon } from "./icons-Bi3GbaZc.js";
|
|
11
11
|
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
12
|
-
import {
|
|
12
|
+
import { i as ErrorContent } from "./tutorial-oP7mKpdB.js";
|
|
13
13
|
import { t as BottomSheet } from "./bottomSheet-CnWbbUAM.js";
|
|
14
|
-
import {
|
|
15
|
-
import { i as Permissions } from "./capture-
|
|
14
|
+
import { a as CameraFrame, i as CameraView } from "./captureNotification-TagyjIIf.js";
|
|
15
|
+
import { i as Permissions } from "./capture-D0IoRgUW.js";
|
|
16
16
|
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
17
17
|
import { createDocumentCaptureManager } from "@incodetech/core/document-capture";
|
|
18
18
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { d as T, m as g, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
6
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
7
7
|
import { t as VerificationResult } from "./verificationResult-Omhu8yft.js";
|
|
@@ -11,7 +11,7 @@ import { t as DropdownComposed } from "./dropdownComposed-W_J_3a8D.js";
|
|
|
11
11
|
import { t as DateInputComposed } from "./dateInputComposed-b385OXwu.js";
|
|
12
12
|
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
13
13
|
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
14
|
-
import { t as EmailInput } from "./emailInput-
|
|
14
|
+
import { t as EmailInput } from "./emailInput-CUSNEI73.js";
|
|
15
15
|
import { formatCPF, isValidCPF } from "@incodetech/core/cpf-ocr";
|
|
16
16
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
17
17
|
//#region src/modules/dynamic-forms/dynamicForms.tsx
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-BM9HAyuq.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { a as useFormScrollable, l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
6
6
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
7
|
-
import "./extensibility-
|
|
7
|
+
import "./extensibility-yXjp3-Vn.js";
|
|
8
8
|
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
9
9
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
10
10
|
import { t as VerificationResult } from "./verificationResult-Omhu8yft.js";
|
|
@@ -13,7 +13,7 @@ import { i as translateError, r as FormField } from "./radioGroupComposed-Ceyx9-
|
|
|
13
13
|
import { t as DropdownComposed } from "./dropdownComposed-W_J_3a8D.js";
|
|
14
14
|
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
15
15
|
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
16
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
16
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-DQ9ec4qq.js";
|
|
17
17
|
import { t as CountrySelector$1 } from "./countrySelector-DvFXo4Oi.js";
|
|
18
18
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
19
19
|
//#region src/modules/ekyb/countrySelector.tsx
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-B5mw51Sj.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { a as useFormScrollable, l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
6
|
import { t as Spinner } from "./spinner-BMeIEK1d.js";
|
|
7
7
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
@@ -12,7 +12,7 @@ import { t as DropdownComposed } from "./dropdownComposed-W_J_3a8D.js";
|
|
|
12
12
|
import { t as DateInputComposed } from "./dateInputComposed-b385OXwu.js";
|
|
13
13
|
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
14
14
|
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-D0RhuMed.js";
|
|
15
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
15
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-DQ9ec4qq.js";
|
|
16
16
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
17
17
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
18
18
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-Dd11xy0A.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useTranslation, t as Trans } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, h as q, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "./incodeComponent-
|
|
3
|
+
import { l as useManager, s as useModuleTerminalCallbacks } from "./hooks-CCi2bNQK.js";
|
|
4
|
+
import { t as IncodeComponent } from "./incodeComponent-XYk40isQ.js";
|
|
5
5
|
import { t as Page } from "./page-DidH_RkX.js";
|
|
6
6
|
import { t as Button } from "./button-Dz6AsbmF.js";
|
|
7
7
|
import { d as ChevronLeftIcon, r as LockIcon } from "./icons-Bi3GbaZc.js";
|