@incodetech/core 0.0.0-dev-20261013-c7751a9f → 0.0.0-dev-20261013-c982cdcd
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/{FaceDetectionProvider-XAuZT7P9.esm.js → FaceDetectionProvider-CGDd_ogY.esm.js} +9 -8
- package/dist/{IWasmUtilCapability-VC40Kx9N.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +23 -1
- package/dist/{MotionSensorProvider-MQ80-spU.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-CeBBJ_RC.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +1 -1
- package/dist/{safeStorage-DDAHV26l.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +87 -36
- package/dist/{addressSearch-CoXo7lfZ.esm.js → addressSearch-Bm8zTbQJ.esm.js} +3 -3
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-nkA1Xfm1.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-bbi6-rKP.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError-B9McXt0d.esm.js → apiError-B7lJaeTn.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BhZZQzwi.esm.js → authenticationManager-Bk74vxGj.esm.js} +6 -6
- package/dist/{authenticationManager-MVD0mrCo.d.ts → authenticationManager-CANv5-W5.d.ts} +1 -1
- package/dist/{authenticationStateMachine-PEbpCJ0-.esm.js → authenticationStateMachine-CSqcE4y3.esm.js} +5 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-B-qjOJde.esm.js → certificateIssuanceManager-CKJ4qjLc.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-DwLGw_a2.esm.js → certificateIssuanceStateMachine-yizSIonY.esm.js} +3 -3
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BhGljt6D.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentStateMachine-fvRt5D6e.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-BvOOxU85.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +2 -2
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-hxUaa6y_.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-u6dRo9Bq.esm.js → curpValidationManager-DBNIn8BF.esm.js} +3 -3
- package/dist/{curpValidationStateMachine-Sf4rGn_0.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +3 -3
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-C5Vw3fdd.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customWatchlistManager-szjmQvYu.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-BtlZ6qoX.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-Bbannll8.esm.js +55 -0
- package/dist/{deepsightLoader-Cbrw8v4S.esm.js → deepsightService-cd1HQvBB.esm.js} +50 -55
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CV_bOPkN.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +3 -3
- package/dist/{documentCaptureStateMachine-CY4BH_nx.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +5 -5
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Bunapr8H.esm.js → dynamicFormsManager-DvzIRQGp.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-Ba7NhLvL.esm.js → dynamicFormsStateMachine-BXq12SGh.esm.js} +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BXpy_3I6.esm.js → ekybManager-Bov25P3N.esm.js} +3 -3
- package/dist/{ekybStateMachine-DDyaxJ35.esm.js → ekybStateMachine-iwmM5mCm.esm.js} +5 -5
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DsfBcNxs.esm.js → ekycManager-DZH51PnN.esm.js} +3 -3
- package/dist/{ekycStateMachine-DPMzZNhD.esm.js → ekycStateMachine-DnKlILfu.esm.js} +4 -4
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DYJZjAtq.esm.js → electronicSignatureManager-DBhszLrG.esm.js} +5 -5
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ppIDOf_n.esm.js → emailManager-CtlKRRaR.esm.js} +3 -3
- package/dist/{emailStateMachine-NiunNxhH.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-Bs3D8B_G.esm.js → endpoints-DHzlkQNe.esm.js} +1 -0
- package/dist/{events-CfLLkAh7.esm.js → events-CAgFE-k3.esm.js} +15 -3
- package/dist/events.d.ts +2 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +9 -9
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BOWlD2lH.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js} +15 -6
- package/dist/{faceCaptureManagerFactory-D-XSP04N.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +4 -4
- package/dist/{faceCaptureSetup-CeAyB-yC.esm.js → faceCaptureSetup-BBqAdrqm.esm.js} +11 -11
- package/dist/{faceMatchManager-BSR94HnV.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-BA9LVrWJ.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +3 -3
- package/dist/{feature-management-DYRVLOMy.esm.js → feature-management-DPIl-FtB.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B2y1ko1f.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +4 -4
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-gmU-xLHP.esm.js → fiscalQrManager-DmBkQfs0.esm.js} +5 -5
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +6 -6
- package/dist/{flowCompletionService-xRc0i-x5.esm.js → flowCompletionService-BTxuv1Wb.esm.js} +2 -2
- package/dist/{flowServices-B8SKnzY5.esm.js → flowServices-pk---1Sx.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DPPSB_oq.esm.js → geolocationManager-Ck6DsjTo.esm.js} +3 -3
- package/dist/{geolocationStateMachine-CcrrUnPD.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js} +4 -4
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-UuH2s-oi.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-BvvrC_3A.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +11 -11
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-CAKXwWww.esm.js → idCaptureDefaults-CQLveJd1.esm.js} +2 -2
- package/dist/{idCaptureManager-BXYldO77.d.ts → idCaptureManager-DW3eER4t.d.ts} +6 -3
- package/dist/{idCaptureManager-Bwpdlvxp.esm.js → idCaptureManager-TokRg0VQ.esm.js} +28 -20
- package/dist/{idCaptureServices-ssbb13iE.esm.js → idCaptureServices-BGhipfoM.esm.js} +8 -8
- package/dist/{idCaptureStateMachine-CL7qwlse.esm.js → idCaptureStateMachine-ByWuXQze.esm.js} +21 -21
- package/dist/{idOcrManager-124LjyWj.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bd0-Hp9V.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BYVW3pLG.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-BtrFQSDe.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-fu5okQhu.esm.js → identityReuseManager-BleUi6TK.esm.js} +3 -3
- package/dist/{identityReuseManager-BUNksfYU.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +8 -8
- package/dist/{identityReuseStateMachine-CCYWIgGl.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-Brs1lo61.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DDixKrq0.d.ts → mandatoryConsentManager-BkaLkcA2.d.ts} +4 -4
- package/dist/{mandatoryConsentManager-tCHVwjtG.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-CZKXCn6v.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-CMjkhS2x.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-DGU1uh4i.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-CPwDYRp8.esm.js → permissionServices-d2UW0r_L.esm.js} +2 -2
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-B6Uu_237.esm.js → phoneManager-BGBcpqsk.esm.js} +3 -3
- package/dist/{phoneStateMachine-pue0_Jsi.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CQlyUyc8.esm.js → redirectToMobileManager-D8xpgVHn.esm.js} +4 -4
- package/dist/{redirectToMobileStateMachine-tGbjPhIm.esm.js → redirectToMobileStateMachine-DjKfrc4P.esm.js} +4 -4
- package/dist/{runChildModule-CQWc5KMf.esm.js → runChildModule-CpXjbJfG.esm.js} +4 -4
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-C6hcFArL.esm.js → sdkVersion-DvwSi-xM.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/{selfieErrorUtils-LZLapGy6.esm.js → selfieErrorUtils-CQnuPhYb.esm.js} +1 -1
- package/dist/{selfieManager-CizvitYB.d.ts → selfieManager-1J0IEyFq.d.ts} +1 -1
- package/dist/{selfieManager-CG5VP1C-.esm.js → selfieManager-DCzPlJCU.esm.js} +6 -6
- package/dist/{selfieStateMachine-DsVxSp4B.esm.js → selfieStateMachine-IEKFw85T.esm.js} +5 -5
- package/dist/{session-BoAOTj24.esm.js → session-5KHEGxgB.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Gjn-NrIE.esm.js → sessionInitializer-CiraPSTG.esm.js} +197 -7
- package/dist/{setup-CCsxCTuW.esm.js → setup-BJzlqOTL.esm.js} +176 -104
- package/dist/{setup-CDyTzfIx.d.ts → setup-oKDzNC62.d.ts} +6 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CEYKCuO4.esm.js → signatureManager-qqXyH93e.esm.js} +3 -3
- package/dist/{signatureStateMachine-C6Wh9ylX.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{stats-Dz3XWA64.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-BLM6oloV.esm.js → trueSightService-Crpt3M-t.esm.js} +843 -843
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-66IWBtU4.d.ts → types-C71Zo6vl.d.ts} +1 -1
- package/dist/{types-D0VzhBS7.d.ts → types-CwCWyBEi.d.ts} +2 -2
- package/dist/{types-nJoHpLPM.d.ts → types-zpO4fU6a.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +10 -10
- package/dist/{videoSelfieCameraWarmer-BctIPNfo.esm.js → videoSelfieCameraWarmer-CND0HDro.esm.js} +8 -8
- package/dist/{videoSelfieFlowModuleMachine-DQTlyw98.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-D0Ws77pD.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/{wasmDsFlagSync-BWpBwxxe.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-cbMppk5K.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-DsLzqEQG.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-F1bI2Ad4.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistStateMachine-DU28IiMQ.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +38 -38
- package/dist/{xstate-actors.esm-Ccyzgxj1.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-Bg3FuvIs.esm.js → xstate.esm-DSajW7CJ.esm.js} +9 -2
- package/package.json +1 -1
- package/dist/virtualCameraCheck-CW8mFdt9.esm.js +0 -48
package/dist/{faceCaptureManagerFactory-BOWlD2lH.esm.js → faceCaptureManagerFactory-DWHQBeL2.esm.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { u as createManager } from "./xstate.esm-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
5
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-BBqAdrqm.esm.js";
|
|
6
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
|
|
6
7
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
|
-
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
8
|
+
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
|
|
8
9
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
9
10
|
function getPermissionStatus(snapshot) {
|
|
10
11
|
if (!snapshot.matches("permissions")) return;
|
|
@@ -209,7 +210,7 @@ function getAuthFaceScreenName(snapshot) {
|
|
|
209
210
|
default: return eventScreenNames.authFace;
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function getFaceCaptureTrackedName(snapshot, moduleName) {
|
|
213
214
|
if (moduleName === eventModuleNames.authFace || moduleName === eventModuleNames.authentication) return getAuthFaceScreenName(snapshot);
|
|
214
215
|
const { value } = snapshot;
|
|
215
216
|
if (value === void 0 || value === null) return void 0;
|
|
@@ -229,6 +230,13 @@ function getFaceCaptureScreenName(snapshot, moduleName) {
|
|
|
229
230
|
default: return `faceCapture.${topLevel}`;
|
|
230
231
|
}
|
|
231
232
|
}
|
|
233
|
+
function getFaceCaptureScreenName(snapshot, moduleName) {
|
|
234
|
+
const name = getFaceCaptureTrackedName(snapshot, moduleName);
|
|
235
|
+
return moduleName === eventModuleNames.faceCapture ? splitTrackedName(name).screen : name;
|
|
236
|
+
}
|
|
237
|
+
function getFaceCaptureStateName(snapshot, moduleName) {
|
|
238
|
+
return moduleName === eventModuleNames.faceCapture ? splitTrackedName(getFaceCaptureTrackedName(snapshot, moduleName)).state : void 0;
|
|
239
|
+
}
|
|
232
240
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
233
241
|
const snapshot = actor.getSnapshot();
|
|
234
242
|
snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
|
|
@@ -415,6 +423,7 @@ function createFaceCaptureManagerFromActor(actor, moduleName, visibilityObserver
|
|
|
415
423
|
beforeStop: () => actor.send({ type: "QUIT" }),
|
|
416
424
|
instrumentation: createManagerInstrumentation(moduleName, {
|
|
417
425
|
getEventScreenName: (snapshot) => getFaceCaptureScreenName(snapshot, moduleName),
|
|
426
|
+
getEventStateName: moduleName === eventModuleNames.faceCapture ? (snapshot) => getFaceCaptureStateName(snapshot, moduleName) : void 0,
|
|
418
427
|
getErrorName: getFaceCaptureErrorName,
|
|
419
428
|
getErrorPayload: getFaceCaptureErrorPayload,
|
|
420
429
|
visibilityObserver: {
|
package/dist/{faceCaptureManagerFactory-D-XSP04N.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts}
RENAMED
|
@@ -5,12 +5,12 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
5
5
|
import "./index-DpTj5PFb.js";
|
|
6
6
|
import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
|
|
7
7
|
import { i as FlowModuleConfig } from "./types-BGXxRwQM.js";
|
|
8
|
-
import "./IWasmUtilCapability-
|
|
8
|
+
import "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
9
9
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
10
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-
|
|
11
|
-
import { t as AuthenticationConfig } from "./types-
|
|
10
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-zpO4fU6a.js";
|
|
11
|
+
import { t as AuthenticationConfig } from "./types-C71Zo6vl.js";
|
|
12
12
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
|
|
13
|
-
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
13
|
+
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-DVmzJux5.js";
|
|
14
14
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
15
15
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
16
16
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { l as trueSightLog,
|
|
1
|
+
import { l as trueSightLog, v as isTrueSightTesting } from "./trueSightService-Crpt3M-t.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import { t as addDeviceStats } from "./stats-
|
|
4
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
+
import "./sessionInitializer-CiraPSTG.esm.js";
|
|
6
|
+
import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
|
|
7
7
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
8
|
-
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-
|
|
9
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-
|
|
12
|
-
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-
|
|
8
|
+
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
9
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
11
|
+
import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-CGDd_ogY.esm.js";
|
|
12
|
+
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-kdlhkmmY.esm.js";
|
|
13
13
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
14
14
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
15
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
16
|
-
import { a as getAdaptiveMediaRecorderOptions, i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-
|
|
15
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-Bf4LbHjC.esm.js";
|
|
16
|
+
import { a as getAdaptiveMediaRecorderOptions, i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
17
17
|
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
18
18
|
//#region src/internal/avatar/concealment.ts
|
|
19
19
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-B9ZUnlyU.esm.js";
|
|
4
4
|
//#region src/modules/face-match/faceMatchActor.ts
|
|
5
5
|
function createFaceMatchActor(options) {
|
|
6
6
|
return createActor(faceMatchMachine, { input: { config: options.config } }).start();
|
package/dist/{faceMatchStateMachine-BA9LVrWJ.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/face-match/constants.ts
|
|
6
6
|
/**
|
|
7
7
|
* Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-DvwSi-xM.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-DPIl-FtB.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-
|
|
1
|
+
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-Dk38hXZP.esm.js";
|
|
2
2
|
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
package/dist/{fieldComparisonManager-B2y1ko1f.esm.js → fieldComparisonManager-Dk38hXZP.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
1
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
+
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
//#region src/modules/field-comparison/fieldComparisonServices.ts
|
|
7
7
|
/** Submit first and last name for backend field comparison. Throws on failure. */
|
|
8
8
|
async function submitFieldComparison(params, signal) {
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-
|
|
1
|
+
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-DmBkQfs0.esm.js";
|
|
2
2
|
export { createFiscalQrManager, createFiscalQrManagerFromActor, fiscalQrMachine };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
6
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
3
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
+
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
7
|
import { o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
8
8
|
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
9
9
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
package/dist/flow.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
|
4
4
|
import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
5
5
|
import { t as EkycConfig } from "./types-BvLo3U4u.js";
|
|
6
6
|
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BGXxRwQM.js";
|
|
7
|
-
import { t as AuthenticationConfig } from "./types-
|
|
7
|
+
import { t as AuthenticationConfig } from "./types-C71Zo6vl.js";
|
|
8
8
|
import { r as DocumentCaptureConfig } from "./types-DUnFZ08M.js";
|
|
9
9
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
|
|
10
10
|
import { t as EkybConfig } from "./types-0L-eFDmr.js";
|
|
11
|
-
import { u as IdCaptureConfig } from "./types-
|
|
11
|
+
import { u as IdCaptureConfig } from "./types-CwCWyBEi.js";
|
|
12
12
|
import { r as MandatoryConsentConfig } from "./types-BvFmYX5c.js";
|
|
13
13
|
import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
14
14
|
import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as addEvent } from "./events-
|
|
2
|
-
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-
|
|
3
|
-
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
1
|
+
import { v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-pk---1Sx.esm.js";
|
|
3
|
+
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BTxuv1Wb.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CpXjbJfG.esm.js";
|
|
7
7
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
8
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
9
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
package/dist/{flowCompletionService-xRc0i-x5.esm.js → flowCompletionService-BTxuv1Wb.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-B7lJaeTn.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as getWasmStatus } from "./warmup-DMtbyb2l.esm.js";
|
|
2
|
-
import { E as updateFeatureManagementUser } from "./feature-management-DYRVLOMy.esm.js";
|
|
3
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
3
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-CiraPSTG.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DPIl-FtB.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-B7lJaeTn.esm.js";
|
|
7
|
+
import "./session-5KHEGxgB.esm.js";
|
|
8
8
|
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
9
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
10
10
|
function isPlainObject(value) {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-Ck6DsjTo.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Ap2O_wgT.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Ap2O_wgT.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-CcrrUnPD.esm.js → geolocationStateMachine-Ap2O_wgT.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
5
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
6
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-B7lJaeTn.esm.js";
|
|
5
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
8
8
|
async function addGeolocation(params, signal) {
|
|
9
9
|
const res = await api.post(endpoints.addGeolocation, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
2
|
-
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-
|
|
1
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-C3YQ8yCZ.esm.js";
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-CP0SiOOe.esm.js";
|
|
3
3
|
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
3
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-C3YQ8yCZ.esm.js";
|
|
5
5
|
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
6
|
function createGovernmentValidationActor(options) {
|
|
7
7
|
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
6
6
|
async function processGovernmentValidation(signal) {
|
|
7
7
|
const res = await api.post(endpoints.governmentValidation, {}, { signal });
|
package/dist/home.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
|
5
5
|
context: {},
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
|
|
2
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-kPn7DB2I.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-DxoCesYP.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
|
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
6
6
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
7
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-C5QHOvWb.js";
|
|
8
8
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-BJzlqOTL.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
5
|
-
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-
|
|
6
|
-
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-
|
|
7
|
-
import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-pk---1Sx.esm.js";
|
|
5
|
+
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
+
import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-CGDd_ogY.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-DbeQpXdU.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
-
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-
|
|
10
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CQLveJd1.esm.js";
|
|
11
|
+
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-BGhipfoM.esm.js";
|
|
12
12
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-BTxuv1Wb.esm.js";
|
|
14
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CND0HDro.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
1
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-0HTVVxse.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-CDhRUU5n.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
3
|
-
import { A as barcodeToBase64, B as startRecordingSession, C as FinalizedIdRecording, D as UploadIdImageParams, E as StartRecordingParams, F as isSuspendableRecordingSession, H as stopStream, I as pauseRecordingForAttempt, L as prepareRecordingForCameraRetry, M as finalizeRecordingSession, N as getRealQualityValue, O as ValidationError, P as initializeIdCapture, R as processId, S as AddBarcodeParams, T as InitializeIdCaptureParams, U as uploadIdImage, V as stopRecording, W as validateUploadResponse, _ as CreateIdCaptureActorOptions, a as RenderWalletError, b as IdCaptureMachine, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as CreateIdCaptureOnlyActorOptions, g as idCaptureOnlyMachine, h as IdCaptureOnlyMachine, j as disposeRecordingSession, k as addBarcode, l as DeviceWalletState, m as createIdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as IdCaptureOnlyActor, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as IdCaptureActor, w as IdCaptureInitResult, x as idCaptureMachine, y as createIdCaptureActor, z as resumeRecordingAfterPause } from "./idCaptureManager-
|
|
3
|
+
import { A as barcodeToBase64, B as startRecordingSession, C as FinalizedIdRecording, D as UploadIdImageParams, E as StartRecordingParams, F as isSuspendableRecordingSession, H as stopStream, I as pauseRecordingForAttempt, L as prepareRecordingForCameraRetry, M as finalizeRecordingSession, N as getRealQualityValue, O as ValidationError, P as initializeIdCapture, R as processId, S as AddBarcodeParams, T as InitializeIdCaptureParams, U as uploadIdImage, V as stopRecording, W as validateUploadResponse, _ as CreateIdCaptureActorOptions, a as RenderWalletError, b as IdCaptureMachine, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as CreateIdCaptureOnlyActorOptions, g as idCaptureOnlyMachine, h as IdCaptureOnlyMachine, j as disposeRecordingSession, k as addBarcode, l as DeviceWalletState, m as createIdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as IdCaptureOnlyActor, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as IdCaptureActor, w as IdCaptureInitResult, x as idCaptureMachine, y as createIdCaptureActor, z as resumeRecordingAfterPause } from "./idCaptureManager-DW3eER4t.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
6
|
-
import { A as DeviceWalletDecision, B as DigitalIdFunnelEntry, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, H as ResolvedDigitalIdRoute, L as DIGITAL_ID_DOCUMENT_TYPES, M as DeviceWalletFailReason, N as DeviceWalletOutput, O as UploadIdResponse, P as DeviceWalletPlatform, R as DIGITAL_ID_REGISTRY, S as IdCaptureThresholds, T as IdError, U as isRedirectFlowType, V as DigitalIdPlatformSupport, W as resolveDigitalIdImplementation, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as RedirectReturnParams, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DigitalIdDocumentType } from "./types-
|
|
6
|
+
import { A as DeviceWalletDecision, B as DigitalIdFunnelEntry, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, H as ResolvedDigitalIdRoute, L as DIGITAL_ID_DOCUMENT_TYPES, M as DeviceWalletFailReason, N as DeviceWalletOutput, O as UploadIdResponse, P as DeviceWalletPlatform, R as DIGITAL_ID_REGISTRY, S as IdCaptureThresholds, T as IdError, U as isRedirectFlowType, V as DigitalIdPlatformSupport, W as resolveDigitalIdImplementation, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as RedirectReturnParams, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DigitalIdDocumentType } from "./types-CwCWyBEi.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-
|
|
1
|
+
import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-ByWuXQze.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-TokRg0VQ.esm.js";
|
|
3
|
+
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-BGhipfoM.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-
|
|
2
|
+
import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-Crpt3M-t.esm.js";
|
|
3
3
|
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-DMtbyb2l.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r as BaseWasmProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
5
5
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
6
6
|
//#region ../infra/src/wasm/idCaptureWasmApi.ts
|
|
7
7
|
var IdCaptureWasmApi = class {
|
|
@@ -5,13 +5,13 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
5
5
|
import "./index-DpTj5PFb.js";
|
|
6
6
|
import "./createFaceAvatar-DXgmQmQy.js";
|
|
7
7
|
import { a as RegulationTypes } from "./types-BGXxRwQM.js";
|
|
8
|
-
import { n as
|
|
8
|
+
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-CPX0RGdQ.js";
|
|
9
9
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
10
10
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
|
|
11
|
-
import { n as DeepsightService } from "./StreamCanvasCapture-
|
|
11
|
+
import { n as DeepsightService } from "./StreamCanvasCapture-DVmzJux5.js";
|
|
12
12
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
13
13
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
14
|
-
import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-
|
|
14
|
+
import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-CwCWyBEi.js";
|
|
15
15
|
//#region src/internal/http/endpoints.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -50,6 +50,9 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
|
|
|
50
50
|
*/
|
|
51
51
|
setProductionMode(productionMode: boolean): Promise<void>;
|
|
52
52
|
getMetadata(): string;
|
|
53
|
+
setBehaviourSignalsCollection(enabled: boolean): void;
|
|
54
|
+
getFingerprintSignals(type: FingerprintSignalType): Promise<string>;
|
|
55
|
+
prefetchFingerprintSignals(): Promise<void>;
|
|
53
56
|
analyzeFrame(image: ImageData): Promise<void>;
|
|
54
57
|
getCheck(): string;
|
|
55
58
|
getPipelineState(): string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-BJzlqOTL.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import { i as assign, s as createActor, u as createManager } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
6
|
-
import { t as
|
|
4
|
+
import { i as assign, s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
7
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
|
|
7
8
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
8
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
9
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
|
|
9
10
|
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
10
|
-
import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-
|
|
11
|
-
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-
|
|
12
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
11
|
+
import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-ByWuXQze.esm.js";
|
|
12
|
+
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-BGhipfoM.esm.js";
|
|
13
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BW7V3vub.esm.js";
|
|
13
14
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
14
15
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
15
16
|
function isHoldingState(value) {
|
|
@@ -622,8 +623,7 @@ function getCaptureLiveCueScreen(screens, detectionStatus) {
|
|
|
622
623
|
switch (detectionStatus) {
|
|
623
624
|
case "wrongSide": return `${screens.capturePrefix}.livecue-${screens.liveCueSide}`;
|
|
624
625
|
case "blur": return `${screens.capturePrefix}.livecue-blur`;
|
|
625
|
-
case "farAway":
|
|
626
|
-
case "idNotDetected": return `${screens.capturePrefix}.livecue-align`;
|
|
626
|
+
case "farAway": return `${screens.capturePrefix}.livecue-align`;
|
|
627
627
|
case "glare": return `${screens.capturePrefix}.livecue-glare`;
|
|
628
628
|
case "offline": return `${screens.capturePrefix}.livecue-dark`;
|
|
629
629
|
case "manualCapture": return `${screens.capturePrefix}.manual`;
|
|
@@ -633,17 +633,17 @@ function getCaptureLiveCueScreen(screens, detectionStatus) {
|
|
|
633
633
|
}
|
|
634
634
|
function getCaptureErrorScreen(screens, errorCode) {
|
|
635
635
|
switch (errorCode) {
|
|
636
|
-
case "WRONG_DOCUMENT_SIDE": return `${screens.errorPrefix}.
|
|
636
|
+
case "WRONG_DOCUMENT_SIDE": return `${screens.errorPrefix}.wrongSide`;
|
|
637
637
|
case "GLARE_DETECTED": return `${screens.errorPrefix}.glare`;
|
|
638
638
|
case "LOW_SHARPNESS": return `${screens.errorPrefix}.blur`;
|
|
639
|
-
case "READABILITY_ISSUE": return `${screens.errorPrefix}.
|
|
639
|
+
case "READABILITY_ISSUE": return `${screens.errorPrefix}.notReadable`;
|
|
640
640
|
case "ID_TYPE_UNACCEPTABLE":
|
|
641
|
-
case "CLASSIFICATION_FAILED": return `${screens.errorPrefix}.
|
|
641
|
+
case "CLASSIFICATION_FAILED": return `${screens.errorPrefix}.notAccepted`;
|
|
642
642
|
case "RETRY_EXHAUSTED_CONTINUE_TO_BACK":
|
|
643
643
|
case "RETRY_EXHAUSTED_SKIP_BACK":
|
|
644
644
|
case "NO_MORE_TRIES": return `${screens.errorPrefix}.failedExhausted`;
|
|
645
645
|
case "NO_TOKEN":
|
|
646
|
-
case "SERVER_ERROR": return `${screens.errorPrefix}.
|
|
646
|
+
case "SERVER_ERROR": return `${screens.errorPrefix}.noConnection`;
|
|
647
647
|
default: return `${screens.errorPrefix}.failed`;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
@@ -666,6 +666,7 @@ function getCaptureSubstateScreen(snapshot, screens) {
|
|
|
666
666
|
case "manualCaptureWaiting": return `${screens.capturePrefix}.manual`;
|
|
667
667
|
case "capturing": return `${screens.capturePrefix}.takingphoto`;
|
|
668
668
|
case "capturingManual": return `${screens.capturePrefix}.manual`;
|
|
669
|
+
case "submittingBarcode":
|
|
669
670
|
case "uploading":
|
|
670
671
|
case "uploadCompleted":
|
|
671
672
|
case "validatingUpload": return `${screens.analyzingPrefix}.uploading`;
|
|
@@ -675,6 +676,7 @@ function getCaptureSubstateScreen(snapshot, screens) {
|
|
|
675
676
|
if (typeof captureValue === "object" && captureValue !== null) {
|
|
676
677
|
const substates = Object.keys(captureValue);
|
|
677
678
|
if (substates.includes("checkingStream") || substates.includes("initializing") || substates.includes("initializingDeepsight")) return "idCapture.loader.preparingcamera";
|
|
679
|
+
if (substates.includes("detectingWithOptimization")) return captureValue.detectingWithOptimization === "searching" ? getCaptureLiveCueScreen(screens, context.detectionStatus) : `${screens.capturePrefix}.default`;
|
|
678
680
|
if (substates.includes("detecting")) return getCaptureLiveCueScreen(screens, context.detectionStatus);
|
|
679
681
|
if (substates.includes("manualCaptureWaiting")) return `${screens.capturePrefix}.manual`;
|
|
680
682
|
if (substates.includes("capturing")) return `${screens.capturePrefix}.takingphoto`;
|
|
@@ -695,7 +697,7 @@ function getPermissionScreen(value) {
|
|
|
695
697
|
default: return "idCapture.permissions.default";
|
|
696
698
|
}
|
|
697
699
|
}
|
|
698
|
-
function
|
|
700
|
+
function getIdCaptureTrackedName(snapshot) {
|
|
699
701
|
const { value, context } = snapshot;
|
|
700
702
|
if (value === void 0 || value === null) return void 0;
|
|
701
703
|
const topLevel = topLevelStateName(value);
|
|
@@ -707,7 +709,7 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
707
709
|
case "chooser": return "idCapture.documentchooser";
|
|
708
710
|
case "loading": return "idCapture.loader.default";
|
|
709
711
|
case "tutorial": return screens.tutorial;
|
|
710
|
-
case "ageVerification": return "idCapture.tutorial.
|
|
712
|
+
case "ageVerification": return "idCapture.tutorial.ageVerification";
|
|
711
713
|
case "permissions": return getPermissionScreen(value);
|
|
712
714
|
case "capture": return getCaptureSubstateScreen(snapshot, screens);
|
|
713
715
|
case "mandatoryConsent": return "idCapture.mandatoryConsent";
|
|
@@ -738,8 +740,13 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
738
740
|
default: return `idCapture.${topLevel}`;
|
|
739
741
|
}
|
|
740
742
|
}
|
|
741
|
-
function
|
|
742
|
-
|
|
743
|
+
function getIdCaptureScreenName(snapshot) {
|
|
744
|
+
const name = getIdCaptureTrackedName(snapshot);
|
|
745
|
+
return name?.startsWith("idCapture.") ? splitTrackedName(name).screen : name;
|
|
746
|
+
}
|
|
747
|
+
function getIdCaptureStateName(snapshot) {
|
|
748
|
+
const name = getIdCaptureTrackedName(snapshot);
|
|
749
|
+
return name?.startsWith("idCapture.") ? splitTrackedName(name).state : void 0;
|
|
743
750
|
}
|
|
744
751
|
/**
|
|
745
752
|
* Figma-aligned, machine-stable reason token per upload error code. Mirrors the
|
|
@@ -839,7 +846,8 @@ function createIdCaptureManagerFromActor(actor, visibilityObserver = new Browser
|
|
|
839
846
|
createApi,
|
|
840
847
|
beforeStop: () => actor.send({ type: "QUIT" }),
|
|
841
848
|
instrumentation: createManagerInstrumentation(eventModuleNames.idCapture, {
|
|
842
|
-
getEventScreenName:
|
|
849
|
+
getEventScreenName: getIdCaptureScreenName,
|
|
850
|
+
getEventStateName: getIdCaptureStateName,
|
|
843
851
|
getErrorName: getIdCaptureErrorName,
|
|
844
852
|
getErrorPayload: getIdCaptureErrorPayload,
|
|
845
853
|
visibilityObserver: {
|