@incodetech/web 2.2.0-rc.6 → 2.2.0-rc.7
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 +4 -4
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -5
- package/dist/{autoFocusTitle-Edt8-trP.js → autoFocusTitle-DB-23sv_.js} +2 -2
- package/dist/{back-horizontal-hint-BBGuJ75y.js → back-horizontal-hint-CjdigFZj.js} +1 -1
- package/dist/{back-vertical-hint-B9usJ5lY.js → back-vertical-hint-OhaKsINF.js} +1 -1
- package/dist/{bottomSheet-Cp8DLulN.js → bottomSheet-BWEUBq8m.js} +2 -2
- package/dist/certificate-issuance/certificate-issuance.es.js +11 -11
- package/dist/{checkbox-gbHumlEi.js → checkbox-FGA-Ij-D.js} +4 -4
- package/dist/{connectionError-CvH1vnCt.js → connectionError-BurQq_4R.js} +4 -4
- package/dist/consent/consent.es.js +7 -7
- package/dist/{countrySelector-DzLvpCfs.js → countrySelector-COZ7XQHp.js} +3 -3
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +14 -14
- package/dist/{customFields-DiOcfhlB.js → customFields-rVMTo1Yu.js} +11 -11
- package/dist/{customWatchlist-CC9ZN7fk.js → customWatchlist-DgpXtVRf.js} +7 -7
- package/dist/{dashboardTheme-FtPiizV0.js → dashboardTheme-BUDq5UYs.js} +1 -1
- package/dist/dateInputComposed-BGC37jC7.js +1 -0
- package/dist/{dateInputComposed-3jXySs6M.js → dateInputComposed-DSgV0wnb.js} +5 -5
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-CO9kIxru.js +2 -0
- package/dist/{documentCapture-Q7aei29F.js → documentCapture-sZj09g0I.js} +17 -17
- package/dist/dropdownComposed-Bf4EcKFw.js +1 -0
- package/dist/{dropdownComposed-Bk8viDop.js → dropdownComposed-CEegNzG4.js} +5 -5
- package/dist/{dynamicForms-m4KZhISs.js → dynamicForms-t3vepXqJ.js} +11 -11
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-5qniWr0s.js → ekybModule-Dvkf5WAr.js} +14 -14
- package/dist/ekybModule-uN0ComAn.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-B7KRJ7l3.js +2 -0
- package/dist/{ekycModule-Cp7kPhFr.js → ekycModule-C5QXVGP7.js} +12 -12
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DGL6y3os.js → electronic-signature-CyE8F7LZ.js} +11 -11
- package/dist/email/email.es.js +8 -8
- package/dist/{emailInput-Cu0_MP-D.js → emailInput-CsT8_C01.js} +4 -4
- package/dist/{expiredId-Cf7_dJQE.js → expiredId-BQ1uPh7b.js} +6 -6
- package/dist/{extensibility-BWJFStcL.js → extensibility-C5XqL_A3.js} +149 -92
- package/dist/extensibility.es.js +23 -23
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DjD2hgBp.js +2 -0
- package/dist/{faceMatch-BOJD6ZCq.js → faceMatch-Rf-MMdto.js} +8 -8
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-JrNjTp6f.js → fieldComparison-BnGj3nNp.js} +9 -9
- package/dist/fieldComparison-DFH4hUM_.js +2 -0
- package/dist/{finalSuccessScreen-DL08U8_o.js → finalSuccessScreen-B9uB3bST.js} +11 -11
- package/dist/fiscal-qr/fiscal-qr.es.js +9 -9
- package/dist/flow/flow.es.js +8 -8
- package/dist/flow/styles.css +53 -5
- package/dist/{front-horizontal-hint-D3CrWViZ.js → front-horizontal-hint-Bhz1rq-w.js} +1 -1
- package/dist/{front-vertical-hint-BoLZvyx5.js → front-vertical-hint-C4FC1ksx.js} +1 -1
- package/dist/geolocation/geolocation.es.js +9 -9
- package/dist/government-validation/government-validation.es.js +9 -9
- package/dist/{homeScreen-D2XpU5z_.js → homeScreen-Bv9mUUOF.js} +7 -7
- package/dist/{icons-CIjsoS44.js → icons-ChHV5iHi.js} +3 -3
- package/dist/id/id.es.js +25 -25
- package/dist/id/styles.css +53 -5
- package/dist/{id-back-of-card-DO593HH8.js → id-back-of-card-C4XViC7W.js} +1 -1
- package/dist/{id-back-of-card-vertical-DArEQ0hE.js → id-back-of-card-vertical-DCz0rj8m.js} +1 -1
- package/dist/{id-front-of-card-Bcit7Pnq.js → id-front-of-card-CUA1ocVF.js} +1 -1
- package/dist/{id-front-of-card-vertical-Bcr-KXcl.js → id-front-of-card-vertical-Ddm_BwD3.js} +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +8 -8
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-3ZaW_wpx.js → idOcr-Da1-2sWY.js} +10 -10
- package/dist/identity-reuse/identity-reuse.es.js +6 -6
- package/dist/{incode-logo-DkPbEPiI.js → incode-logo-DeIDDejm.js} +2 -2
- package/dist/{incodeComponent-B6hBTDEE.js → incodeComponent-BtFz-bx2.js} +103 -7
- package/dist/{incodeModule-CCI32xbn.js → incodeModule-9K8KUs61.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/{inputComposed-CGB8zKbd.js → inputComposed-C2zTEXsp.js} +5 -5
- package/dist/inputComposed-kKtrvJU5.js +1 -0
- package/dist/{mandatoryConsent-L7Tpj3tg.js → mandatoryConsent-CxShVycM.js} +7 -7
- package/dist/{manualCaptureButton-ByWujoAK.js → manualCaptureButton-D58WsS-x.js} +10 -10
- package/dist/{manualCaptureButton-B3ZD52_f.js → manualCaptureButton-DzJFIEfu.js} +5 -5
- package/dist/{modal-9-lPt5Hj.js → modal-BH2wi8Q0.js} +4 -4
- package/dist/{modal.hooks-BvXzNWvY.js → modal.hooks-DcakflQ4.js} +1 -1
- package/dist/{numberedStep-DUs77Gy3.js → numberedStep-DqtXyT11.js} +1 -1
- package/dist/{optionAccessibleLabel-Cc91L4JK.js → optionAccessibleLabel-C5iZCrlq.js} +6 -6
- package/dist/{otpInput-BWiL_nBW.js → otpInput-CvPR3ZpP.js} +6 -6
- package/dist/{passport-horizontal-hint-DgnU-8bl.js → passport-horizontal-hint-DzkhjC8Q.js} +1 -1
- package/dist/{passport-vertical-hint-Dd2Wknw7.js → passport-vertical-hint-Bd0BQn2Y.js} +1 -1
- package/dist/pdfViewer-C1B-07Wu.js +2 -0
- package/dist/{pdfViewer-BbRv7mHX.js → pdfViewer-TTZmPABh.js} +3 -3
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInputComposed-Bvy15RAe.js → phoneInputComposed-byyszNoS.js} +6 -6
- package/dist/{processing-DN0NyNqR.js → processing-B2eaSGLu.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/{radioGroupComposed-CPFZJOtR.js → radioGroupComposed-DQzTWutW.js} +6 -6
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +14 -14
- package/dist/{registerIncodeElement-BduCekz5.js → registerIncodeElement-DW2PE_DX.js} +1 -1
- package/dist/{richText-DnGJiTPl.js → richText-CEwM8jib.js} +2 -2
- package/dist/selfie/selfie.es.js +7 -7
- package/dist/signature/signature.es.js +8 -8
- package/dist/{snackbar-zbTKBgCx.js → snackbar-eBOj46AK.js} +2 -2
- package/dist/{spacer-C6GdxqM-.js → spacer-DLEDuWEx.js} +2 -2
- package/dist/{spinner-CaEPC8gQ.js → spinner-CJCOHUKx.js} +2 -2
- package/dist/{statusPage-C-2V2g63.js → statusPage-BF4qGjF3.js} +4 -4
- package/dist/{successIcon-Bj8Y9CuI.js → successIcon-DS8BLsgy.js} +1 -1
- package/dist/{tabs-BjLPiKhZ.js → tabs-BGL1oRLb.js} +2 -2
- package/dist/themes/dark.css +3 -0
- package/dist/themes/light.css +3 -0
- package/dist/{tutorial-B1F5C8Si.js → tutorial-LQuJ4dse.js} +10 -10
- package/dist/types/extensibility.d.ts +0 -6
- package/dist/{uiConfig-D7ezQeZ7.js → uiConfig-Dqnjankd.js} +1 -1
- package/dist/{useModuleLoader-7amgJ5_9.js → useModuleLoader-DxOEZ0vn.js} +19 -19
- package/dist/{vendor-preact-mvwZ8mJj.js → vendor-preact-BPXMFRom.js} +1 -1
- package/dist/{verificationResult-tgNeUuHO.js → verificationResult-q_zD_Pxh.js} +9 -9
- package/dist/video-selfie/video-selfie.es.js +12 -12
- package/dist/watchlist/watchlist.es.js +7 -7
- package/dist/{watchlistForBusiness-3bO7BVcy.js → watchlistForBusiness-C_zqdY4P.js} +10 -10
- package/dist/workflow/styles.css +53 -5
- package/dist/workflow/workflow.es.js +8 -8
- package/package.json +2 -2
- package/dist/dateInputComposed-BMauTxWJ.js +0 -1
- package/dist/documentCapture-D92SlTKO.js +0 -2
- package/dist/dropdownComposed-DLaj01jA.js +0 -1
- package/dist/ekybModule-Bp2U8pjh.js +0 -2
- package/dist/ekycModule-DqX1bTFN.js +0 -2
- package/dist/faceMatch-Dhm-H0Pg.js +0 -2
- package/dist/fieldComparison-D-fShfaF.js +0 -2
- package/dist/inputComposed-DDFdXKT3.js +0 -1
- package/dist/pdfViewer-DHgpC35P.js +0 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { a as useTranslation } from "./uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import { d as
|
|
4
|
-
import { a as useAnimationData, d as cn, r as AnimatedAsset, t as Spacer } from "./spacer-
|
|
5
|
-
import { n as Title, t as Spinner } from "./spinner-
|
|
6
|
-
import { n as ErrorIcon, r as Button } from "./incode-logo-
|
|
7
|
-
import "./processing-
|
|
8
|
-
import { _ as CalendarIcon, c as EllipseIcon, h as CaptureButtonIcon, i as HelpIcon, o as EyeOffIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon } from "./icons-
|
|
9
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
10
|
-
import { t as Modal } from "./modal-
|
|
11
|
-
import { r as BaseTutorial } from "./tutorial-
|
|
12
|
-
import "./verificationResult-
|
|
13
|
-
import "./connectionError-
|
|
14
|
-
import { t as InputComposed } from "./inputComposed-
|
|
15
|
-
import "./inputComposed-
|
|
16
|
-
import "./otpInput-
|
|
17
|
-
import "./checkbox-
|
|
18
|
-
import "./radioGroupComposed-
|
|
19
|
-
import "./phoneInputComposed-
|
|
20
|
-
import "./dropdownComposed-
|
|
21
|
-
import "./dateInputComposed-
|
|
22
|
-
import "./bottomSheet-
|
|
23
|
-
import { a as CameraView, i as usePreloadCaptureAnimations, n as CaptureNotification, o as CameraFrame } from "./manualCaptureButton-
|
|
24
|
-
import "./manualCaptureButton-
|
|
25
|
-
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-
|
|
1
|
+
import { a as useTranslation } from "./uiConfig-Dqnjankd.js";
|
|
2
|
+
import { C as k, a as D, c as z, d as T, f as _, g as q, l as A, o as P, p as d, v as y, y as u } from "./vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { d as usePresence, f as useTimeoutHandle, l as TransitionSpinner, m as useEventListener, o as Page, p as useResizeObserver, u as useFeatureManagement } from "./incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { a as useAnimationData, d as cn, r as AnimatedAsset, t as Spacer } from "./spacer-DLEDuWEx.js";
|
|
5
|
+
import { n as Title, t as Spinner } from "./spinner-CJCOHUKx.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button } from "./incode-logo-DeIDDejm.js";
|
|
7
|
+
import "./processing-B2eaSGLu.js";
|
|
8
|
+
import { _ as CalendarIcon, c as EllipseIcon, h as CaptureButtonIcon, i as HelpIcon, o as EyeOffIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon } from "./icons-ChHV5iHi.js";
|
|
9
|
+
import { t as SuccessIcon } from "./successIcon-DS8BLsgy.js";
|
|
10
|
+
import { t as Modal } from "./modal-BH2wi8Q0.js";
|
|
11
|
+
import { r as BaseTutorial } from "./tutorial-LQuJ4dse.js";
|
|
12
|
+
import "./verificationResult-q_zD_Pxh.js";
|
|
13
|
+
import "./connectionError-BurQq_4R.js";
|
|
14
|
+
import { t as InputComposed } from "./inputComposed-C2zTEXsp.js";
|
|
15
|
+
import "./inputComposed-kKtrvJU5.js";
|
|
16
|
+
import "./otpInput-CvPR3ZpP.js";
|
|
17
|
+
import "./checkbox-FGA-Ij-D.js";
|
|
18
|
+
import "./radioGroupComposed-DQzTWutW.js";
|
|
19
|
+
import "./phoneInputComposed-byyszNoS.js";
|
|
20
|
+
import "./dropdownComposed-Bf4EcKFw.js";
|
|
21
|
+
import "./dateInputComposed-BGC37jC7.js";
|
|
22
|
+
import "./bottomSheet-BWEUBq8m.js";
|
|
23
|
+
import { a as CameraView, i as usePreloadCaptureAnimations, n as CaptureNotification, o as CameraFrame } from "./manualCaptureButton-DzJFIEfu.js";
|
|
24
|
+
import "./manualCaptureButton-D58WsS-x.js";
|
|
25
|
+
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-BQ1uPh7b.js";
|
|
26
26
|
import { getDeviceClass } from "@incodetech/core/device";
|
|
27
27
|
import { eventModuleNames, recordExperimentAssignmentOnce } from "@incodetech/core/events";
|
|
28
28
|
import { ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, resolveExperiment } from "@incodetech/core/feature-management";
|
|
@@ -1137,45 +1137,56 @@ var CommonIssues = ({ open, onClose, onTakeManually, portalContainer }) => {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region src/modules/id/experiments/useCaptureResultPreview.ts
|
|
1140
|
-
var
|
|
1141
|
-
var CROSSFADE_ANIMATION_NAME = "incodeIdCaptureResultCrossfade";
|
|
1140
|
+
var CROSSFADE_ANIMATION_NAME = "incodeIdCaptureResultCrossfadeOut";
|
|
1142
1141
|
var CROSSFADE_WATCHDOG_MS = 1e3;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1142
|
+
/**
|
|
1143
|
+
* IDC-05 rendering state.
|
|
1144
|
+
*
|
|
1145
|
+
* Core owns the phase on **both** paths — `detectingWithOptimization.optimizing`
|
|
1146
|
+
* before the frame is committed (auto capture), `optimizingHold` after it
|
|
1147
|
+
* (manual capture) — and reports both as `captureStatus: 'optimizing'`. So there
|
|
1148
|
+
* is no dwell timer here, nothing to acknowledge, and no branch on which path
|
|
1149
|
+
* produced it.
|
|
1150
|
+
*
|
|
1151
|
+
* What stays UI-owned is only the *tail*: keeping the frozen still (and the live
|
|
1152
|
+
* camera layer beneath it) mounted for the length of the crossfade into the
|
|
1153
|
+
* analyzing screen. `usePresence` starts that exit in the *same* render that
|
|
1154
|
+
* stops reporting the phase — deriving it from an effect instead leaves one
|
|
1155
|
+
* paintable frame with neither the still nor the fade, which resolves to the
|
|
1156
|
+
* analyzing stage: the live `<video>` is destroyed, a bare `IdAnalyzing` flashes
|
|
1157
|
+
* with no fade and an undecoded image, and the fade then remounts the element and
|
|
1158
|
+
* re-attaches the MediaStream — a visible blink.
|
|
1159
|
+
*/
|
|
1160
|
+
var useCaptureResultPreview = (state) => {
|
|
1161
|
+
const enabled = state.captureFeedbackMode === "optimizing";
|
|
1162
|
+
const isOptimizing = enabled && state.captureStatus === "optimizing";
|
|
1163
|
+
/**
|
|
1164
|
+
* The auto path's phase runs before the commit, so its still is the best
|
|
1165
|
+
* frame *so far*; the manual path's runs after, so `previewImageUrl` is all
|
|
1166
|
+
* there is. One expression covers both.
|
|
1167
|
+
*
|
|
1168
|
+
* At the commit, core clears `candidateImageUrl` in the same assign that
|
|
1169
|
+
* sets `previewImageUrl` (`getStoreCapturedImageValues`), so this falls through
|
|
1170
|
+
* to the committed frame for the crossfade — the better-rectified crop, and the
|
|
1171
|
+
* same URL the analyzing layer beneath is already mounting, so the swap paints
|
|
1172
|
+
* from that URL's cache entry rather than decoding cold. The fallthrough is
|
|
1173
|
+
* also what lets core free the phase's blob at the commit instead of holding it
|
|
1174
|
+
* to the next boundary.
|
|
1175
|
+
*/
|
|
1176
|
+
const imageUrl = state.candidateImageUrl ?? state.previewImageUrl;
|
|
1177
|
+
const { phase, isRendered, onAnimationEnd } = usePresence({
|
|
1178
|
+
present: isOptimizing && Boolean(imageUrl),
|
|
1179
|
+
animationName: CROSSFADE_ANIMATION_NAME,
|
|
1180
|
+
timeoutMs: CROSSFADE_WATCHDOG_MS,
|
|
1181
|
+
skipExit: !(state.previewImageUrl && state.captureStatus === "uploading")
|
|
1182
|
+
});
|
|
1173
1183
|
return {
|
|
1174
1184
|
enabled,
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1185
|
+
phase,
|
|
1186
|
+
isResultPreview: isRendered,
|
|
1187
|
+
resultPreviewImageUrl: isRendered ? imageUrl : void 0,
|
|
1188
|
+
isCrossfading: phase === "exiting",
|
|
1189
|
+
onCrossfadeEnd: onAnimationEnd
|
|
1179
1190
|
};
|
|
1180
1191
|
};
|
|
1181
1192
|
//#endregion
|
|
@@ -1237,11 +1248,38 @@ var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent
|
|
|
1237
1248
|
});
|
|
1238
1249
|
};
|
|
1239
1250
|
//#endregion
|
|
1251
|
+
//#region src/modules/id/experiments/analyzingTitle.ts
|
|
1252
|
+
/** Control arm: one static title for the whole upload. */
|
|
1253
|
+
var ANALYZING_TITLE_KEY = "idv2.capture.processing.analyzing";
|
|
1254
|
+
/** IDC-05 treatment arm, below `UPLOADING_TITLE_PROGRESS`. */
|
|
1255
|
+
var PROCESSING_TITLE_KEY = "idv2.capture.processing.processing";
|
|
1256
|
+
/** IDC-05 treatment arm, at or above `UPLOADING_TITLE_PROGRESS`. */
|
|
1257
|
+
var UPLOADING_TITLE_KEY = "idv2.capture.processing.uploading";
|
|
1258
|
+
/**
|
|
1259
|
+
* IDC-05 treatment: the analyzing screen steps its title "Processing" →
|
|
1260
|
+
* "Uploading" instead of resting on the control arm's single "Analyzing".
|
|
1261
|
+
*
|
|
1262
|
+
* Derived from `uploadProgress` rather than from a dwell timer, so the copy and
|
|
1263
|
+
* the bar can never disagree about how far along the upload looks. That also
|
|
1264
|
+
* makes it monotonic for free — the machine only ever raises `uploadProgress`
|
|
1265
|
+
* within a single `uploading` visit (`Math.max` on the byte events, `Math.min`
|
|
1266
|
+
* against the hold ceiling on the ticker) — so the title cannot walk backwards
|
|
1267
|
+
* on a re-render or a stalled upload.
|
|
1268
|
+
*
|
|
1269
|
+
* Pure rather than a hook: no timers, no state, nothing to reset between
|
|
1270
|
+
* attempts.
|
|
1271
|
+
*/
|
|
1272
|
+
function getAnalyzingTitleKey(resultPreviewEnabled, progress) {
|
|
1273
|
+
if (!resultPreviewEnabled) return ANALYZING_TITLE_KEY;
|
|
1274
|
+
return progress >= 80 ? UPLOADING_TITLE_KEY : PROCESSING_TITLE_KEY;
|
|
1275
|
+
}
|
|
1276
|
+
//#endregion
|
|
1240
1277
|
//#region src/modules/id/processing/idAnalyzing.tsx
|
|
1241
|
-
var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true }) => {
|
|
1278
|
+
var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false }) => {
|
|
1242
1279
|
const { t } = useTranslation();
|
|
1243
1280
|
const titleRef = A(null);
|
|
1244
1281
|
const isHorizontal = orientation !== "vertical";
|
|
1282
|
+
const titleKey = getAnalyzingTitleKey(resultPreviewEnabled, progress);
|
|
1245
1283
|
_(() => {
|
|
1246
1284
|
if (!autoFocusTitle) return;
|
|
1247
1285
|
titleRef.current?.focus();
|
|
@@ -1262,7 +1300,11 @@ var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocus
|
|
|
1262
1300
|
id: "analyzing-title",
|
|
1263
1301
|
className: "IncodeAnalyzingTitle",
|
|
1264
1302
|
tabIndex: -1,
|
|
1265
|
-
|
|
1303
|
+
"aria-live": "polite",
|
|
1304
|
+
children: /* @__PURE__ */ u("span", {
|
|
1305
|
+
class: "IncodeAnalyzingTitleText",
|
|
1306
|
+
children: t(titleKey)
|
|
1307
|
+
}, titleKey)
|
|
1266
1308
|
})]
|
|
1267
1309
|
}),
|
|
1268
1310
|
overlayContent: /* @__PURE__ */ u(AnimatedAsset, {
|
|
@@ -1551,12 +1593,12 @@ var IdNoAttempts = ({ manager }) => {
|
|
|
1551
1593
|
};
|
|
1552
1594
|
//#endregion
|
|
1553
1595
|
//#region src/modules/id/capture/idHint.tsx
|
|
1554
|
-
var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-
|
|
1555
|
-
var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-
|
|
1556
|
-
var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-
|
|
1557
|
-
var BackVerticalHintSvg = z(() => import("./back-vertical-hint-
|
|
1558
|
-
var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-
|
|
1559
|
-
var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-
|
|
1596
|
+
var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-Bhz1rq-w.js"));
|
|
1597
|
+
var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-C4FC1ksx.js"));
|
|
1598
|
+
var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-CjdigFZj.js"));
|
|
1599
|
+
var BackVerticalHintSvg = z(() => import("./back-vertical-hint-OhaKsINF.js"));
|
|
1600
|
+
var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-DzkhjC8Q.js"));
|
|
1601
|
+
var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-Bd0BQn2Y.js"));
|
|
1560
1602
|
var CARD_WIDTH_IN_SVG = {
|
|
1561
1603
|
"front-horizontal": 348,
|
|
1562
1604
|
"back-horizontal": 348,
|
|
@@ -1618,7 +1660,7 @@ var IdHint = ({ mode, orientation, onAnimationEnd }) => {
|
|
|
1618
1660
|
};
|
|
1619
1661
|
//#endregion
|
|
1620
1662
|
//#region src/modules/id/capture/captureLiveFrameContent.tsx
|
|
1621
|
-
var CaptureLiveFrameContent = ({
|
|
1663
|
+
var CaptureLiveFrameContent = ({ isCapturing, counterValue, showIdHint, mode, orientation, onIdHintAnimationEnd }) => /* @__PURE__ */ u(k, { children: [isCapturing && counterValue > 0 && /* @__PURE__ */ u("div", {
|
|
1622
1664
|
class: "IncodeCaptureCounter",
|
|
1623
1665
|
children: counterValue
|
|
1624
1666
|
}), showIdHint && /* @__PURE__ */ u(IdHint, {
|
|
@@ -1691,7 +1733,7 @@ var resolveLiveView = ({ t, mode, detectionStatus, isCapturing }) => {
|
|
|
1691
1733
|
//#endregion
|
|
1692
1734
|
//#region src/modules/id/capture/captureOverlay.tsx
|
|
1693
1735
|
var MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATION = "manualCaptureTooltipExit";
|
|
1694
|
-
var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef,
|
|
1736
|
+
var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef, hideFooterActions, resultPreview }, ref) => {
|
|
1695
1737
|
const { t } = useTranslation();
|
|
1696
1738
|
usePreloadCaptureAnimations();
|
|
1697
1739
|
const isResultPreview = resultPreview !== void 0;
|
|
@@ -1737,7 +1779,7 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1737
1779
|
const isPassport = mode === "passport";
|
|
1738
1780
|
const frameOrientation = orientation !== "vertical" ? "horizontal" : "vertical";
|
|
1739
1781
|
const showManualCaptureTooltip = !isResultPreview && showManualCapture && !manualCaptureTooltipDismissed;
|
|
1740
|
-
const showCounter =
|
|
1782
|
+
const showCounter = isCapturing && counterValue > 0;
|
|
1741
1783
|
const manualCaptureTooltip = /* @__PURE__ */ u("div", {
|
|
1742
1784
|
id: "manual-capture-tooltip",
|
|
1743
1785
|
class: "IncodeIdManualCaptureTooltip",
|
|
@@ -1771,7 +1813,6 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1771
1813
|
frameState,
|
|
1772
1814
|
className: cn(isPassport && "IncodeCaptureFramePassport"),
|
|
1773
1815
|
children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, { resultPreview }) : /* @__PURE__ */ u(CaptureLiveFrameContent, {
|
|
1774
|
-
hideCountdown,
|
|
1775
1816
|
isCapturing,
|
|
1776
1817
|
counterValue,
|
|
1777
1818
|
showIdHint,
|
|
@@ -1793,7 +1834,7 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1793
1834
|
helpButtonRef,
|
|
1794
1835
|
captureButtonRef,
|
|
1795
1836
|
captureAriaDescribedBy: showManualCaptureTooltip ? "manual-capture-tooltip" : void 0,
|
|
1796
|
-
hideActions:
|
|
1837
|
+
hideActions: hideFooterActions,
|
|
1797
1838
|
children: showManualCaptureTooltip ? /* @__PURE__ */ u("div", {
|
|
1798
1839
|
class: "IncodeIdManualCaptureTooltipContainer",
|
|
1799
1840
|
onAnimationEnd: handleManualCaptureTooltipAnimationEnd,
|
|
@@ -1805,10 +1846,23 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1805
1846
|
});
|
|
1806
1847
|
//#endregion
|
|
1807
1848
|
//#region src/modules/id/capture/captureHelpers.ts
|
|
1808
|
-
|
|
1849
|
+
/**
|
|
1850
|
+
* Which layer(s) the capture screen mounts.
|
|
1851
|
+
*
|
|
1852
|
+
* The crossfade wins outright while it runs: on the IDC-05 treatment the machine
|
|
1853
|
+
* commits the frame on its own clock, so `uploading` arrives *before* the fade
|
|
1854
|
+
* rather than after it, and letting `uploading` win would hard-cut the live
|
|
1855
|
+
* layer away mid-animation.
|
|
1856
|
+
*
|
|
1857
|
+
* A `present` phase keeps the live layer mounted through the manual-capture
|
|
1858
|
+
* result preview, where a committed `previewImageUrl` already exists but the frozen still
|
|
1859
|
+
* is deliberately still on screen.
|
|
1860
|
+
*/
|
|
1861
|
+
function getCaptureStageView(state, phase) {
|
|
1809
1862
|
if (!state.previewImageUrl) return "live";
|
|
1810
|
-
if (
|
|
1811
|
-
|
|
1863
|
+
if (phase === "exiting") return "crossfade";
|
|
1864
|
+
if (phase === "present") return "live";
|
|
1865
|
+
return state.captureStatus === "uploading" ? "analyzing" : "live";
|
|
1812
1866
|
}
|
|
1813
1867
|
function getCaptureMode(state) {
|
|
1814
1868
|
return state.currentMode === "passport" ? "passport" : "id";
|
|
@@ -1816,7 +1870,10 @@ function getCaptureMode(state) {
|
|
|
1816
1870
|
//#endregion
|
|
1817
1871
|
//#region src/modules/id/capture/capture.tsx
|
|
1818
1872
|
var Capture = ({ manager, state }) => {
|
|
1819
|
-
const { enabled:
|
|
1873
|
+
const { enabled: resultPreviewEnabled, phase: resultPreviewPhase, isResultPreview, resultPreviewImageUrl, onCrossfadeEnd } = useCaptureResultPreview(state);
|
|
1874
|
+
const stageView = getCaptureStageView(state, resultPreviewPhase);
|
|
1875
|
+
const isCrossfadeStage = stageView === "crossfade";
|
|
1876
|
+
const isLiveStage = stageView === "live";
|
|
1820
1877
|
if (state.captureStatus === "holdOn") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
|
|
1821
1878
|
if (state.captureStatus === "success" && (state.previewImageUrl || state.barcodeFastPathCaptured)) return /* @__PURE__ */ u(IdSuccess, {
|
|
1822
1879
|
manager,
|
|
@@ -1828,12 +1885,9 @@ var Capture = ({ manager, state }) => {
|
|
|
1828
1885
|
state,
|
|
1829
1886
|
blurImage: state.ageAssurance
|
|
1830
1887
|
});
|
|
1831
|
-
const stageView = getCaptureStageView(state, isCrossfading);
|
|
1832
|
-
const isCrossfadeStage = stageView === "crossfade";
|
|
1833
|
-
const isLiveStage = stageView === "live";
|
|
1834
1888
|
let idAnalyzingSlot = null;
|
|
1835
1889
|
if (state.previewImageUrl && !isLiveStage) idAnalyzingSlot = /* @__PURE__ */ u("div", {
|
|
1836
|
-
class: "IncodeIdCaptureStageAnalyzing",
|
|
1890
|
+
class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering"),
|
|
1837
1891
|
"aria-hidden": isCrossfadeStage || void 0,
|
|
1838
1892
|
inert: isCrossfadeStage || void 0,
|
|
1839
1893
|
children: /* @__PURE__ */ u(IdAnalyzing, {
|
|
@@ -1842,25 +1896,28 @@ var Capture = ({ manager, state }) => {
|
|
|
1842
1896
|
orientation: state.orientation,
|
|
1843
1897
|
mode: getCaptureMode(state),
|
|
1844
1898
|
blurImage: state.ageAssurance,
|
|
1845
|
-
autoFocusTitle: !isCrossfadeStage
|
|
1899
|
+
autoFocusTitle: !isCrossfadeStage,
|
|
1900
|
+
resultPreviewEnabled
|
|
1846
1901
|
})
|
|
1847
1902
|
}, "analyzing");
|
|
1848
1903
|
let captureViewSlot = null;
|
|
1849
1904
|
if (stageView !== "analyzing") captureViewSlot = /* @__PURE__ */ u("div", {
|
|
1850
|
-
class: "IncodeIdCaptureStageLive",
|
|
1905
|
+
class: cn("IncodeIdCaptureStageLive", isCrossfadeStage && "IncodeIdCaptureStageResultExiting"),
|
|
1851
1906
|
onAnimationEnd: onCrossfadeEnd,
|
|
1852
1907
|
children: /* @__PURE__ */ u(CaptureView, {
|
|
1853
1908
|
manager,
|
|
1854
1909
|
state,
|
|
1855
|
-
|
|
1910
|
+
isResultPreview,
|
|
1911
|
+
resultPreviewImageUrl,
|
|
1912
|
+
hideFooterActions: !isLiveStage
|
|
1856
1913
|
})
|
|
1857
1914
|
}, "live");
|
|
1858
1915
|
return /* @__PURE__ */ u("div", {
|
|
1859
|
-
class:
|
|
1916
|
+
class: "IncodeIdCaptureStage",
|
|
1860
1917
|
children: [idAnalyzingSlot, captureViewSlot]
|
|
1861
1918
|
});
|
|
1862
1919
|
};
|
|
1863
|
-
var CaptureView = ({ manager, state,
|
|
1920
|
+
var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hideFooterActions }) => {
|
|
1864
1921
|
const frameRef = A(null);
|
|
1865
1922
|
const helpButtonRef = A(null);
|
|
1866
1923
|
const captureButtonRef = A(null);
|
|
@@ -1879,11 +1936,11 @@ var CaptureView = ({ manager, state, captureResultPreviewEnabled }) => {
|
|
|
1879
1936
|
}, [manager]);
|
|
1880
1937
|
useEventListener("resize", reportFrame);
|
|
1881
1938
|
useResizeObserver(frameRef, reportFrame);
|
|
1882
|
-
const isCapturing = state.captureStatus === "capturing" || state.detectionStatus === "capturing";
|
|
1939
|
+
const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
|
|
1883
1940
|
const detectionStatus = state.detectionStatus;
|
|
1884
1941
|
const showManualCapture = detectionStatus === "manualCapture" || state.showCaptureButtonInAuto && state.captureStatus === "detecting" && detectionStatus !== "capturing";
|
|
1885
|
-
const resultPreview =
|
|
1886
|
-
imageUrl:
|
|
1942
|
+
const resultPreview = isResultPreview && resultPreviewImageUrl ? {
|
|
1943
|
+
imageUrl: resultPreviewImageUrl,
|
|
1887
1944
|
blurImage: state.ageAssurance
|
|
1888
1945
|
} : void 0;
|
|
1889
1946
|
const handleOpenHelp = () => {
|
|
@@ -1926,8 +1983,8 @@ var CaptureView = ({ manager, state, captureResultPreviewEnabled }) => {
|
|
|
1926
1983
|
onOpenHelp: handleOpenHelp,
|
|
1927
1984
|
helpButtonRef,
|
|
1928
1985
|
captureButtonRef,
|
|
1929
|
-
|
|
1930
|
-
|
|
1986
|
+
resultPreview,
|
|
1987
|
+
hideFooterActions
|
|
1931
1988
|
})
|
|
1932
1989
|
}),
|
|
1933
1990
|
/* @__PURE__ */ u("div", { ref: portalRef }),
|
package/dist/extensibility.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { a as useTranslation, n as setUiConfig } from "./uiConfig-
|
|
2
|
-
import { n as LandscapeBlocker, o as Page, t as IncodeComponent,
|
|
3
|
-
import { o as Lottie, t as Spacer } from "./spacer-
|
|
4
|
-
import { a as TypographyH4, i as TypographyH3, n as Title, o as TypographyH5, r as TypographyH1, s as TypographyP, t as Spinner } from "./spinner-
|
|
5
|
-
import { n as ErrorIcon, r as Button } from "./incode-logo-
|
|
6
|
-
import { _ as TextArea, b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, g as TextAreaComposed, h as VerificationOptionCardList, i as Capture, m as VerificationOptionCard, n as Chooser, o as IdExpired, p as CameraOverlay, r as Tutorial, s as IdError, t as FlipAnimation, u as ManualCapture, v as SegmentedDateInput, x as Overlay, y as PasswordInputComposed } from "./extensibility-
|
|
7
|
-
import { t as Processing } from "./processing-
|
|
8
|
-
import { _ as CalendarIcon, a as FileIcon, c as EllipseIcon, d as ChevronLeftIcon, f as ChevronDown, g as CameraIcon, h as CaptureButtonIcon, i as HelpIcon, l as CloseIcon, m as CheckmarkIcon, n as SearchIcon, o as EyeOffIcon, p as CheckmarkCompactIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon, v as WarningIcon } from "./icons-
|
|
9
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
10
|
-
import { t as Modal } from "./modal-
|
|
11
|
-
import { i as ErrorContent, n as Capture$1, r as BaseTutorial, t as Tutorial$1 } from "./tutorial-
|
|
12
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
13
|
-
import { t as ConnectionError } from "./connectionError-
|
|
14
|
-
import { n as Input, t as InputComposed } from "./inputComposed-
|
|
15
|
-
import { t as OtpInput } from "./otpInput-
|
|
16
|
-
import { t as Checkbox } from "./checkbox-
|
|
17
|
-
import { n as RadioButtonComposed, r as FormField, t as RadioGroupComposed } from "./radioGroupComposed-
|
|
18
|
-
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
19
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
20
|
-
import { t as DateInputComposed } from "./dateInputComposed-
|
|
21
|
-
import { t as BottomSheet } from "./bottomSheet-
|
|
22
|
-
import { a as CameraView, o as CameraFrame } from "./manualCaptureButton-
|
|
23
|
-
import { n as Permissions } from "./manualCaptureButton-
|
|
1
|
+
import { a as useTranslation, n as setUiConfig } from "./uiConfig-Dqnjankd.js";
|
|
2
|
+
import { b as useManager, n as LandscapeBlocker, o as Page, t as IncodeComponent, y as useScreenOrientation } from "./incodeComponent-BtFz-bx2.js";
|
|
3
|
+
import { o as Lottie, t as Spacer } from "./spacer-DLEDuWEx.js";
|
|
4
|
+
import { a as TypographyH4, i as TypographyH3, n as Title, o as TypographyH5, r as TypographyH1, s as TypographyP, t as Spinner } from "./spinner-CJCOHUKx.js";
|
|
5
|
+
import { n as ErrorIcon, r as Button } from "./incode-logo-DeIDDejm.js";
|
|
6
|
+
import { _ as TextArea, b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, g as TextAreaComposed, h as VerificationOptionCardList, i as Capture, m as VerificationOptionCard, n as Chooser, o as IdExpired, p as CameraOverlay, r as Tutorial, s as IdError, t as FlipAnimation, u as ManualCapture, v as SegmentedDateInput, x as Overlay, y as PasswordInputComposed } from "./extensibility-C5XqL_A3.js";
|
|
7
|
+
import { t as Processing } from "./processing-B2eaSGLu.js";
|
|
8
|
+
import { _ as CalendarIcon, a as FileIcon, c as EllipseIcon, d as ChevronLeftIcon, f as ChevronDown, g as CameraIcon, h as CaptureButtonIcon, i as HelpIcon, l as CloseIcon, m as CheckmarkIcon, n as SearchIcon, o as EyeOffIcon, p as CheckmarkCompactIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon, v as WarningIcon } from "./icons-ChHV5iHi.js";
|
|
9
|
+
import { t as SuccessIcon } from "./successIcon-DS8BLsgy.js";
|
|
10
|
+
import { t as Modal } from "./modal-BH2wi8Q0.js";
|
|
11
|
+
import { i as ErrorContent, n as Capture$1, r as BaseTutorial, t as Tutorial$1 } from "./tutorial-LQuJ4dse.js";
|
|
12
|
+
import { t as VerificationResult } from "./verificationResult-q_zD_Pxh.js";
|
|
13
|
+
import { t as ConnectionError } from "./connectionError-BurQq_4R.js";
|
|
14
|
+
import { n as Input, t as InputComposed } from "./inputComposed-C2zTEXsp.js";
|
|
15
|
+
import { t as OtpInput } from "./otpInput-CvPR3ZpP.js";
|
|
16
|
+
import { t as Checkbox } from "./checkbox-FGA-Ij-D.js";
|
|
17
|
+
import { n as RadioButtonComposed, r as FormField, t as RadioGroupComposed } from "./radioGroupComposed-DQzTWutW.js";
|
|
18
|
+
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-byyszNoS.js";
|
|
19
|
+
import { t as DropdownComposed } from "./dropdownComposed-CEegNzG4.js";
|
|
20
|
+
import { t as DateInputComposed } from "./dateInputComposed-DSgV0wnb.js";
|
|
21
|
+
import { t as BottomSheet } from "./bottomSheet-BWEUBq8m.js";
|
|
22
|
+
import { a as CameraView, o as CameraFrame } from "./manualCaptureButton-DzJFIEfu.js";
|
|
23
|
+
import { n as Permissions } from "./manualCaptureButton-D58WsS-x.js";
|
|
24
24
|
export { BaseTutorial, BottomSheet, Button, CalendarIcon, CameraFrame, CameraIcon, CameraOverlay, CameraOverlayHeader, CameraView, CaptureButtonIcon, CaptureFooter, Checkbox, CheckmarkCompactIcon, CheckmarkIcon, ChevronDown, ChevronLeftIcon, ChevronRightIcon, CloseIcon, ConnectionError, DateInputComposed, DropdownComposed, EllipseIcon, ErrorContent, ErrorIcon, EyeIcon, EyeOffIcon, FileIcon, FormField, HelpIcon, Capture as IdCapture, Chooser as IdChooser, IdError, IdExpired, FlipAnimation as IdFlipAnimation, Tutorial as IdTutorial, IncodeComponent, Input, InputComposed, LandscapeBlocker, SvgLightningIcon as LightningIcon, LockIcon, Lottie, ManualCapture, Modal, OtpInput, Overlay, Page, PasswordInputComposed, Permissions, PhoneInputComposed, Processing, ProgressBar, RadioButtonComposed, RadioGroupComposed, SearchIcon, SegmentedDateInput, Capture$1 as SelfieCapture, Tutorial$1 as SelfieTutorial, Spacer, Spinner, SuccessIcon, TextArea, TextAreaComposed, Title, TypographyH1, TypographyH3, TypographyH4, TypographyH5, TypographyP, VerificationOptionCard, VerificationOptionCardList, VerificationResult, WarningIcon, countries, getCountryByCallingCode, getCountryByCode, setUiConfig, useManager, useScreenOrientation, useTranslation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FaceMatch } from "../faceMatch-
|
|
1
|
+
import { t as FaceMatch } from "../faceMatch-Rf-MMdto.js";
|
|
2
2
|
export { FaceMatch };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as useTranslation } from "./uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import { s as Asset, t as Spacer } from "./spacer-
|
|
5
|
-
import { n as Title } from "./spinner-
|
|
6
|
-
import { r as Button } from "./incode-logo-
|
|
7
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
8
|
-
import { t as Snackbar } from "./snackbar-
|
|
1
|
+
import { a as useTranslation } from "./uiConfig-Dqnjankd.js";
|
|
2
|
+
import { C as k, l as A, v as y, y as u } from "./vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { _ as isTerminalModuleState, b as useManager, l as TransitionSpinner, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, v as useModuleTerminalCallbacks } from "./incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { s as Asset, t as Spacer } from "./spacer-DLEDuWEx.js";
|
|
5
|
+
import { n as Title } from "./spinner-CJCOHUKx.js";
|
|
6
|
+
import { r as Button } from "./incode-logo-DeIDDejm.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-9K8KUs61.js";
|
|
8
|
+
import { t as Snackbar } from "./snackbar-eBOj46AK.js";
|
|
9
9
|
import { createFaceMatchManager } from "@incodetech/core/face-match";
|
|
10
10
|
//#region src/modules/face-match/assets/match-success.svg?react
|
|
11
11
|
var SvgMatchSuccess = (props) => /* @__PURE__ */ u("svg", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FieldComparison } from "../fieldComparison-
|
|
1
|
+
import { t as FieldComparison } from "../fieldComparison-BnGj3nNp.js";
|
|
2
2
|
export { FieldComparison };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as useTranslation } from "./uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spacer } from "./spacer-
|
|
5
|
-
import { r as Button } from "./incode-logo-
|
|
6
|
-
import "./extensibility-
|
|
7
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
8
|
-
import { t as InputComposed } from "./inputComposed-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
1
|
+
import { a as useTranslation } from "./uiConfig-Dqnjankd.js";
|
|
2
|
+
import { y as u } from "./vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { b as useManager, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, v as useModuleTerminalCallbacks } from "./incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-DLEDuWEx.js";
|
|
5
|
+
import { r as Button } from "./incode-logo-DeIDDejm.js";
|
|
6
|
+
import "./extensibility-C5XqL_A3.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-q_zD_Pxh.js";
|
|
8
|
+
import { t as InputComposed } from "./inputComposed-C2zTEXsp.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-9K8KUs61.js";
|
|
10
10
|
import { createFieldComparisonManager } from "@incodetech/core/field-comparison";
|
|
11
11
|
//#region src/modules/field-comparison/fieldComparison.tsx
|
|
12
12
|
var FieldComparisonContent = ({ config, manager: externalManager, onFinish }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as useTranslation } from "./uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as cn, n as LoadingIcon, o as Lottie, s as Asset } from "./spacer-
|
|
5
|
-
import { n as ErrorIcon, r as Button } from "./incode-logo-
|
|
6
|
-
import "./icons-
|
|
7
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
8
|
-
import { t as Modal } from "./modal-
|
|
9
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
10
|
-
import { n as CaptureNotification, o as CameraFrame, t as ManualCaptureButton } from "./manualCaptureButton-
|
|
11
|
-
import { t as ManualCaptureButton$1 } from "./manualCaptureButton-
|
|
1
|
+
import { a as useTranslation } from "./uiConfig-Dqnjankd.js";
|
|
2
|
+
import { C as k, g as q, l as A, p as d, v as y, y as u } from "./vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { f as useTimeoutHandle, o as Page } from "./incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { d as cn, n as LoadingIcon, o as Lottie, s as Asset } from "./spacer-DLEDuWEx.js";
|
|
5
|
+
import { n as ErrorIcon, r as Button } from "./incode-logo-DeIDDejm.js";
|
|
6
|
+
import "./icons-ChHV5iHi.js";
|
|
7
|
+
import { t as SuccessIcon } from "./successIcon-DS8BLsgy.js";
|
|
8
|
+
import { t as Modal } from "./modal-BH2wi8Q0.js";
|
|
9
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-DB-23sv_.js";
|
|
10
|
+
import { n as CaptureNotification, o as CameraFrame, t as ManualCaptureButton } from "./manualCaptureButton-DzJFIEfu.js";
|
|
11
|
+
import { t as ManualCaptureButton$1 } from "./manualCaptureButton-D58WsS-x.js";
|
|
12
12
|
import { checkCameraPermission, requestCameraPermission } from "@incodetech/core/camera";
|
|
13
13
|
import { resolveVideoSelfieSteps } from "@incodetech/core/video-selfie";
|
|
14
14
|
//#region src/modules/video-selfie/useVideoSelfiePermissions.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as useTranslation } from "../uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import { r as Button } from "../incode-logo-
|
|
6
|
-
import { f as CameraOverlayHeader, p as CameraOverlay } from "../extensibility-
|
|
7
|
-
import { t as VerificationResult } from "../verificationResult-
|
|
8
|
-
import { a as CameraView, o as CameraFrame } from "../manualCaptureButton-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
1
|
+
import { a as useTranslation } from "../uiConfig-Dqnjankd.js";
|
|
2
|
+
import { y as u } from "../vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { b as useManager, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, v as useModuleTerminalCallbacks } from "../incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-DLEDuWEx.js";
|
|
5
|
+
import { r as Button } from "../incode-logo-DeIDDejm.js";
|
|
6
|
+
import { f as CameraOverlayHeader, p as CameraOverlay } from "../extensibility-C5XqL_A3.js";
|
|
7
|
+
import { t as VerificationResult } from "../verificationResult-q_zD_Pxh.js";
|
|
8
|
+
import { a as CameraView, o as CameraFrame } from "../manualCaptureButton-DzJFIEfu.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-9K8KUs61.js";
|
|
10
10
|
import { createFiscalQrManager } from "@incodetech/core/fiscal-qr";
|
|
11
11
|
//#region src/modules/fiscal-qr/fiscalQrCapture.tsx
|
|
12
12
|
function getFrameState(status) {
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as useTranslation, l as readStoredLanguage, t as setThemeUiConfig } from "../uiConfig-
|
|
2
|
-
import {
|
|
3
|
-
import { a as TerminalErrorPage, i as ResolvedConfigProvider, l as TransitionSpinner, t as IncodeComponent
|
|
4
|
-
import { n as ErrorIcon } from "../incode-logo-
|
|
5
|
-
import { t as StatusPage } from "../statusPage-
|
|
6
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
7
|
-
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-
|
|
1
|
+
import { a as useTranslation, l as readStoredLanguage, t as setThemeUiConfig } from "../uiConfig-Dqnjankd.js";
|
|
2
|
+
import { c as z, d as T, l as A, o as P, p as d, v as y, y as u } from "../vendor-preact-BPXMFRom.js";
|
|
3
|
+
import { a as TerminalErrorPage, b as useManager, i as ResolvedConfigProvider, l as TransitionSpinner, t as IncodeComponent } from "../incodeComponent-BtFz-bx2.js";
|
|
4
|
+
import { n as ErrorIcon } from "../incode-logo-DeIDDejm.js";
|
|
5
|
+
import { t as StatusPage } from "../statusPage-BF4qGjF3.js";
|
|
6
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-9K8KUs61.js";
|
|
7
|
+
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-DxOEZ0vn.js";
|
|
8
8
|
import { getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
9
9
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
10
10
|
//#region src/shared/processing/useDelayedFlag.ts
|
|
@@ -330,7 +330,7 @@ function useFlowInitialization(options) {
|
|
|
330
330
|
}
|
|
331
331
|
//#endregion
|
|
332
332
|
//#region src/modules/flow/flow.tsx
|
|
333
|
-
var LazyHomeScreen = z(() => import("../homeScreen-
|
|
333
|
+
var LazyHomeScreen = z(() => import("../homeScreen-Bv9mUUOF.js").then((module) => ({ default: module.HomeScreen })));
|
|
334
334
|
var IncodeFlowContent = ({ config, onFinish, onError }) => {
|
|
335
335
|
const { i18n } = useTranslation();
|
|
336
336
|
const initState = useFlowInitialization(T(() => ({
|