@incodetech/core 0.0.0-dev-20260729-9461bce1 → 0.0.0-dev-20260729-37d96d3d
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/BrowserDiagnosticsCryptoProvider-BZqV7sJR.esm.js +96 -0
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
- package/dist/{WasmUtilProvider-BrWOTaVG.esm.js → WasmUtilProvider-D13sxEmA.esm.js} +2 -406
- package/dist/{addressSearch-oyJf4OZO.esm.js → addressSearch-D_0t2Wdn.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ0zC0jZ.esm.js → antifraudManager-COYh4O_y.esm.js} +2 -2
- package/dist/{antifraudStateMachine-MfVOsgZf.esm.js → antifraudStateMachine-NuzlVVte.esm.js} +2 -2
- package/dist/api-Bx3gKW_y.esm.js +129 -0
- package/dist/{apiError-B-PkYxln.esm.js → apiError-DVMm9USR.esm.js} +12 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-G4OrneRc.esm.js → authenticationManager-CZZkbrbS.esm.js} +5 -5
- package/dist/{authenticationStateMachine-CRaoYKLp.esm.js → authenticationStateMachine-DaBaRj0q.esm.js} +5 -5
- package/dist/{backCameraStream-6XQp9RxG.esm.js → backCameraStream-BqiXcU28.esm.js} +11 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceStateMachine-BrbhvQ3k.esm.js → certificateIssuanceStateMachine-N__sTAgu.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-fOURtjzF.esm.js → consentManager-CWEAhAJ5.esm.js} +2 -2
- package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-uhDPdU6i.d.ts} +1 -1
- package/dist/{consentStateMachine-BCVxc6mI.esm.js → consentStateMachine-DWL-X0Jb.esm.js} +2 -2
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-DaJvZ8m1.esm.js → crossDocumentDataMatchManager-Bk4W2TDJ.esm.js} +3 -3
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CKRo8Mch.esm.js → curpValidationManager-B6gYKygj.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-DMdmcv5-.esm.js → curpValidationStateMachine-42RbYcam.esm.js} +2 -2
- package/dist/custom-fields.esm.js +3 -3
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customWatchlistStateMachine-DB2I9_OR.esm.js → customWatchlistStateMachine-BbDtH5kk.esm.js} +2 -2
- package/dist/{deepsightLoader-AdX0vjwb.esm.js → deepsightLoader-CMjjYlDH.esm.js} +14 -4
- package/dist/device.esm.js +1 -15
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.esm.js +4 -4
- package/dist/{documentCaptureManager-iTx0jqU4.esm.js → documentCaptureManager-BXBNX-pQ.esm.js} +2 -2
- package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-BiKjyojT.d.ts} +65 -65
- package/dist/{documentCaptureStateMachine-CrdQsDn2.esm.js → documentCaptureStateMachine-DAR7pkTk.esm.js} +5 -5
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BNIbGJmh.esm.js → dynamicFormsManager-bhrXytht.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DKUOlqmi.esm.js → dynamicFormsStateMachine-DZNivd_Y.esm.js} +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BUWJUews.esm.js → ekybManager-CwhMYgxw.esm.js} +2 -2
- package/dist/{ekybStateMachine-CYLZDKC7.esm.js → ekybStateMachine-CDY3t9pl.esm.js} +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-C6Wc4wRj.esm.js → ekycManager-dimNksoE.esm.js} +2 -2
- package/dist/{ekycStateMachine-fHXM6pc0.esm.js → ekycStateMachine-Yl3sQmhm.esm.js} +3 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-hJ9YaAvD.esm.js → electronicSignatureManager-Bv4NSqFL.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-B_Q6MfUq.esm.js → emailManager-BqJMritP.esm.js} +2 -2
- package/dist/{emailStateMachine-DHfDd8LI.esm.js → emailStateMachine-CLtrh2Ot.esm.js} +2 -2
- package/dist/{endpoints-BwKx4Gne.esm.js → endpoints-DOfmJylF.esm.js} +7 -1
- package/dist/{events-Dy8PyVO5.esm.js → events-CMFCCu1H.esm.js} +2 -9
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +26 -32
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Bkc1HLRL.esm.js → faceCaptureManagerFactory-BdQ0rekz.esm.js} +3 -3
- package/dist/{faceCaptureSetup-BQEQriDi.esm.js → faceCaptureSetup-BEIJq6g-.esm.js} +5 -5
- package/dist/{faceMatchManager-Bh5wFMyh.esm.js → faceMatchManager-XxTEAj9C.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-QIf8gak4.esm.js → faceMatchStateMachine-ubds4WlI.esm.js} +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B_3cIH9t.esm.js → fieldComparisonManager-BzaX4TvX.esm.js} +3 -3
- package/dist/fiscal-qr.esm.js +4 -4
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-6yWz7xwZ.esm.js → flowCompletionService-BDHnpF5D.esm.js} +3 -3
- package/dist/{flowServices-Cf63iD-o.esm.js → flowServices-D9XwX7i7.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-gKopAolS.esm.js → geolocationManager-DPpJIcS4.esm.js} +2 -2
- package/dist/{geolocationStateMachine-Cac3eKge.esm.js → geolocationStateMachine-Cw1ZPxPV.esm.js} +3 -3
- package/dist/getBrowser-DNrQeL4T.esm.js +16 -0
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-Be1ruaNj.esm.js → governmentValidationStateMachine-CtG3bIdM.esm.js} +2 -2
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureDefaults-DCrjeNl5.esm.js → idCaptureDefaults-BDS43fFL.esm.js} +2 -2
- package/dist/{idCaptureManager-Dg8pxseH.esm.js → idCaptureManager-DMuuFXqa.esm.js} +4 -4
- package/dist/{idCaptureManager-C-WjmsN4.d.ts → idCaptureManager-Z8N6jdU0.d.ts} +2 -0
- package/dist/{idCaptureStateMachine-B2e_wX0x.esm.js → idCaptureStateMachine-ihg_YbB8.esm.js} +86 -32
- package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
- package/dist/{idOcrManager-8WPK22Kq.esm.js → idOcrManager-Drs6frVO.esm.js} +2 -2
- package/dist/{idOcrStateMachine-Cfq5gJ0f.esm.js → idOcrStateMachine-s08FLvEh.esm.js} +3 -3
- package/dist/{idVerificationManager-DBVs8TRS.esm.js → idVerificationManager-Df97Bf0n.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-xtTSJDrB.esm.js → idVerificationStateMachine-tAF7pvC8.esm.js} +2 -2
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-B8jNZNHu.esm.js → identityReuseManager-0ZHGWr9T.esm.js} +2 -2
- package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
- package/dist/{identityReuseStateMachine-DdwSrghH.esm.js → identityReuseStateMachine-DG8kbKuy.esm.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-B-QfsCQY.esm.js → invokeOnCaptureCallback-Cgl54qED.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Dcgmj1Cd.d.ts → mandatoryConsentManager-DOZSFZA2.d.ts} +1 -1
- package/dist/{mandatoryConsentManager-BAKnA7U_.esm.js → mandatoryConsentManager-DaKK7S4q.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-3a1psaoK.esm.js → mandatoryConsentStateMachine-CjKpOQXU.esm.js} +2 -2
- package/dist/{onDeviceFaceResults-DbSP6iTw.esm.js → onDeviceFaceResults-BJDw5FPn.esm.js} +14 -7
- package/dist/{permissionGuards-5Cu6a8iN.esm.js → permissionGuards-D0cdQjk6.esm.js} +1 -1
- package/dist/{permissionServices-CkHL1BjH.esm.js → permissionServices-GFikEK6S.esm.js} +3 -18
- package/dist/personhood.esm.js +9 -22
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-dizEvG20.esm.js → phoneManager-WImoAp4i.esm.js} +2 -2
- package/dist/{phoneStateMachine-DxmYoLg8.esm.js → phoneStateMachine-FJ-_x1G4.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-C8jFtEKZ.esm.js → recordingService-DgRIIgz0.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BCInKNqp.esm.js → redirectToMobileManager-CxEu6KnV.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-TSHtrr5D.esm.js → redirectToMobileStateMachine-jI5XPtZJ.esm.js} +2 -2
- package/dist/{runChildModule-Crz1nHwJ.esm.js → runChildModule-BygT7eDD.esm.js} +6 -1
- package/dist/selfie.esm.js +9 -9
- package/dist/{selfieErrorUtils-1aFaxF3Q.esm.js → selfieErrorUtils-DCRRRj38.esm.js} +3 -3
- package/dist/{selfieManager-KbDEkivf.esm.js → selfieManager-CXX0Bdsp.esm.js} +5 -5
- package/dist/{selfieStateMachine-BiuQiED3.esm.js → selfieStateMachine-BOtVaHGI.esm.js} +3 -3
- package/dist/session-BjWDH0Yu.esm.js +161 -0
- package/dist/session.d.ts +8 -1
- package/dist/session.esm.js +4 -152
- package/dist/{sessionInitializer-DyJ4nLFJ.esm.js → sessionInitializer-B9Z-7bmu.esm.js} +27 -32
- package/dist/{setup-MlGXfrG8.esm.js → setup-BFV4zwpB.esm.js} +78 -11
- package/dist/{setup-B1WTXTQV.d.ts → setup-Dj8n_YLP.d.ts} +22 -0
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureStateMachine-CCcFhvuv.esm.js → signatureStateMachine-Dx92l8pR.esm.js} +2 -2
- package/dist/{stats-CKtpeAhi.esm.js → stats-6sK3f5pc.esm.js} +2 -2
- package/dist/stats.esm.js +1 -1
- package/dist/trueSight-BhOPRXqt.esm.js +1 -0
- package/dist/trueSightService-1pUahMUt.esm.js +1891 -0
- package/dist/trust-graph.esm.js +1 -1
- package/dist/video-selfie.esm.js +10 -10
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDefaults-B4DUtYET.esm.js → wasmDefaults-DJiEvV7f.esm.js} +1 -1
- package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessStateMachine-DZZNfYsA.esm.js → watchlistForBusinessStateMachine-Eo-WEYha.esm.js} +2 -2
- package/dist/{watchlistManager-CMFZ0aqP.esm.js → watchlistManager-DnVfNc1v.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CmhlwIhk.esm.js → watchlistStateMachine-DZSOauwp.esm.js} +2 -2
- package/dist/workflow.d.ts +12 -4
- package/dist/workflow.esm.js +55 -40
- package/package.json +3 -3
- package/dist/api-BDTZNnca.esm.js +0 -71
- package/dist/clientLifecycle-BX83zwtT.esm.js +0 -528
- package/dist/session-CrAUqlgX.esm.js +0 -1
package/dist/{faceCaptureManagerFactory-Bkc1HLRL.esm.js → faceCaptureManagerFactory-BdQ0rekz.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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-CMFCCu1H.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { n as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { n as concealmentToAvatar } from "./faceCaptureSetup-BEIJq6g-.esm.js";
|
|
5
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
6
|
-
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
6
|
+
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-GFikEK6S.esm.js";
|
|
7
7
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
8
8
|
function getPermissionStatus(snapshot) {
|
|
9
9
|
if (!snapshot.matches("permissions")) return;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
5
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
4
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
|
|
5
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BJDw5FPn.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
9
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
10
|
-
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-
|
|
9
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0cdQjk6.esm.js";
|
|
10
|
+
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-DgRIIgz0.esm.js";
|
|
11
11
|
//#region src/internal/avatar/concealment.ts
|
|
12
12
|
/**
|
|
13
13
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
3
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-ubds4WlI.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-QIf8gak4.esm.js → faceMatchStateMachine-ubds4WlI.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
3
3
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
//#region src/modules/face-match/constants.ts
|
|
@@ -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-BzaX4TvX.esm.js";
|
|
2
2
|
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
package/dist/{fieldComparisonManager-B_3cIH9t.esm.js → fieldComparisonManager-BzaX4TvX.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
4
4
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
//#region src/modules/field-comparison/fieldComparisonServices.ts
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
+
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
5
5
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
|
|
9
9
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
10
10
|
import { BrowserQRCodeReader } from "@zxing/browser";
|
|
11
11
|
//#region src/modules/fiscal-qr/fiscalQrConstants.ts
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as addEvent } from "./events-
|
|
2
|
-
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
1
|
+
import { m as addEvent } from "./events-CMFCCu1H.esm.js";
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-D9XwX7i7.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BDHnpF5D.esm.js";
|
|
6
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BygT7eDD.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
8
8
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
9
9
|
id: "noOpFlowModule",
|
package/dist/{flowCompletionService-6yWz7xwZ.esm.js → flowCompletionService-BDHnpF5D.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
3
|
+
import { r as toIncodeApiError } from "./apiError-DVMm9USR.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,9 +1,9 @@
|
|
|
1
1
|
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
2
|
-
import { r as getToken, t as api } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
2
|
+
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
+
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-B9Z-7bmu.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-DVMm9USR.esm.js";
|
|
6
|
+
import "./session-BjWDH0Yu.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
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-DPpJIcS4.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Cw1ZPxPV.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Cw1ZPxPV.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-Cac3eKge.esm.js → geolocationStateMachine-Cw1ZPxPV.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
3
3
|
import { r as isIOS, t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-DVMm9USR.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
2
|
+
//#region src/internal/device/getBrowser.ts
|
|
3
|
+
function getBrowser() {
|
|
4
|
+
const userAgent = getUserAgent();
|
|
5
|
+
if (!userAgent) return "other";
|
|
6
|
+
const ua = userAgent.toLowerCase();
|
|
7
|
+
if (ua.includes("edg/") || ua.includes("edgios/")) return "edge";
|
|
8
|
+
if (ua.includes("samsungbrowser/")) return "samsung_browser";
|
|
9
|
+
if (ua.includes("opr/") || ua.includes("opera") || ua.includes("opios/") || ua.includes("opt/")) return "opera";
|
|
10
|
+
if (ua.includes("chrome") || ua.includes("crios")) return "chrome";
|
|
11
|
+
if (ua.includes("firefox") || ua.includes("fxios")) return "firefox";
|
|
12
|
+
if (ua.includes("safari")) return "safari";
|
|
13
|
+
return "other";
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { getBrowser as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CtG3bIdM.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,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
package/dist/home.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
package/dist/http.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getApi, t as api } from "./api-
|
|
1
|
+
import { n as getApi, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
export { api, getApi };
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-BIADjddF.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-s08FLvEh.esm.js";
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-Drs6frVO.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);
|
|
@@ -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-tAF7pvC8.esm.js";
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-Df97Bf0n.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
2
2
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
4
4
|
import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-C2n-6lCx.js";
|
|
5
|
-
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-
|
|
5
|
+
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-Z8N6jdU0.js";
|
|
6
6
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
7
7
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
8
8
|
/**
|
package/dist/id.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-CMFCCu1H.esm.js";
|
|
2
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
5
|
+
import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-ihg_YbB8.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DMuuFXqa.esm.js";
|
|
7
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-Cgl54qED.esm.js";
|
|
8
8
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
9
9
|
function buildSubImage(canvas) {
|
|
10
10
|
if (!canvas) return void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as getBarcodeEnhanceModelUrl } from "./wasmDefaults-DJiEvV7f.esm.js";
|
|
2
|
+
import { n as BaseWasmProvider, o as mlWasmJSApi_default, r as getResolvedModelsBasePath } from "./WasmUtilProvider-D13sxEmA.esm.js";
|
|
3
3
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/wasm/IdCaptureProvider.ts
|
|
5
5
|
var IdCaptureProvider = class extends BaseWasmProvider {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
4
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
5
|
-
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-B2e_wX0x.esm.js";
|
|
6
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-GFikEK6S.esm.js";
|
|
7
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-ihg_YbB8.esm.js";
|
|
8
8
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
9
9
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
10
10
|
function isHoldingState(value) {
|
|
@@ -52,6 +52,8 @@ type IdCaptureInitResult = {
|
|
|
52
52
|
type InitializeIdCaptureParams = {
|
|
53
53
|
config: IdCaptureConfig;
|
|
54
54
|
deepsightService?: DeepsightService;
|
|
55
|
+
stream?: CameraStream;
|
|
56
|
+
cameraFallbackLevel?: number;
|
|
55
57
|
};
|
|
56
58
|
declare function initializeIdCapture(params: InitializeIdCaptureParams): Promise<IdCaptureInitResult>;
|
|
57
59
|
declare function stopStream(stream: CameraStream): void;
|
package/dist/{idCaptureStateMachine-B2e_wX0x.esm.js → idCaptureStateMachine-ihg_YbB8.esm.js}
RENAMED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
2
|
+
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
|
+
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-1pUahMUt.esm.js";
|
|
5
|
+
import { t as getDisableIpify } from "./sessionInitializer-B9Z-7bmu.esm.js";
|
|
6
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
7
|
+
import "./trueSight-BhOPRXqt.esm.js";
|
|
8
|
+
import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
|
|
9
|
+
import { n as isDesktop, t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
|
|
10
|
+
import "./session-BjWDH0Yu.esm.js";
|
|
9
11
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
12
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
12
|
-
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
13
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
|
|
14
|
+
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BJDw5FPn.esm.js";
|
|
13
15
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
14
16
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
15
|
-
import {
|
|
17
|
+
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
18
|
+
import { n as getBackCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
|
|
16
19
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
17
20
|
import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
|
|
18
21
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
19
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
20
|
-
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-
|
|
21
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
22
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0cdQjk6.esm.js";
|
|
23
|
+
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-DgRIIgz0.esm.js";
|
|
24
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-BDS43fFL.esm.js";
|
|
22
25
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
23
26
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
24
27
|
function isKnownFailReason(reason) {
|
|
@@ -488,10 +491,13 @@ async function initializeIdCapture(params) {
|
|
|
488
491
|
...DEFAULT_ID_CAPTURE_SETTINGS,
|
|
489
492
|
...config.settings
|
|
490
493
|
});
|
|
491
|
-
if (deepsightService) try {
|
|
494
|
+
if (deepsightService && !params.stream) try {
|
|
492
495
|
await deepsightService.performPrcCheck({ constraints: getPrcCameraConstraints() });
|
|
493
496
|
} catch {}
|
|
494
|
-
const { stream, fallbackLevel } =
|
|
497
|
+
const { stream, fallbackLevel } = params.stream ? {
|
|
498
|
+
stream: params.stream,
|
|
499
|
+
fallbackLevel: params.cameraFallbackLevel
|
|
500
|
+
} : await getIdCameraStream();
|
|
495
501
|
const videoTrack = stream.getVideoTracks()[0];
|
|
496
502
|
let captureResolution;
|
|
497
503
|
if (videoTrack) {
|
|
@@ -1099,18 +1105,23 @@ const manualUploadMachine = setup({
|
|
|
1099
1105
|
});
|
|
1100
1106
|
//#endregion
|
|
1101
1107
|
//#region src/modules/id/idCaptureGuards.ts
|
|
1108
|
+
function getPermissionOutput(event) {
|
|
1109
|
+
if (!("output" in event)) return;
|
|
1110
|
+
const { output } = event;
|
|
1111
|
+
if (typeof output === "object" && output !== null && "permissionResult" in output) return output.permissionResult;
|
|
1112
|
+
return output;
|
|
1113
|
+
}
|
|
1102
1114
|
const hasShowTutorialGuard = ({ context }) => context.config.showTutorial;
|
|
1103
1115
|
const hasAgeAssuranceGuard = ({ context }) => context.config.ageAssurance === true;
|
|
1104
1116
|
const hasShowDocumentChooserGuard = ({ context }) => !context.config.onlyBack && (context.config.showDocumentChooserScreen ?? false);
|
|
1105
1117
|
const isPermissionGrantedGuard = ({ event }) => {
|
|
1106
|
-
|
|
1107
|
-
return false;
|
|
1118
|
+
return getPermissionOutput(event) === "granted";
|
|
1108
1119
|
};
|
|
1109
1120
|
const isReadyForCaptureGuard = ({ context, event }) => {
|
|
1110
|
-
return isReadyForCaptureFromPermission(resolveStoredPermissionResult(
|
|
1121
|
+
return isReadyForCaptureFromPermission(resolveStoredPermissionResult(getPermissionOutput(event), context.permissionResult), context.config.ds);
|
|
1111
1122
|
};
|
|
1112
1123
|
const needsMotionPrimeOnlyGuard = ({ context, event }) => {
|
|
1113
|
-
return needsMotionPrimeOnlyFromPermission(resolveStoredPermissionResult(
|
|
1124
|
+
return needsMotionPrimeOnlyFromPermission(resolveStoredPermissionResult(getPermissionOutput(event), context.permissionResult), context.config.ds);
|
|
1114
1125
|
};
|
|
1115
1126
|
const isPermissionDeniedErrorGuard = ({ event }) => {
|
|
1116
1127
|
if ("error" in event) {
|
|
@@ -1120,6 +1131,7 @@ const isPermissionDeniedErrorGuard = ({ event }) => {
|
|
|
1120
1131
|
return false;
|
|
1121
1132
|
};
|
|
1122
1133
|
const hasStreamGuard = ({ context }) => context.stream !== void 0;
|
|
1134
|
+
const hasInitializedCameraGuard = ({ context }) => context.stream !== void 0 && context.provider !== void 0;
|
|
1123
1135
|
const hasAttemptsRemainingGuard = ({ context }) => context.attemptsRemaining > 0;
|
|
1124
1136
|
const hasCapturedImageGuard = ({ context }) => {
|
|
1125
1137
|
return context.provider?.getCapturedCanvas() !== null;
|
|
@@ -1310,8 +1322,24 @@ function computeIdCaptureOutput(context) {
|
|
|
1310
1322
|
const checkPermissionActor = fromPromise(async () => {
|
|
1311
1323
|
return checkPermission();
|
|
1312
1324
|
});
|
|
1325
|
+
async function requestIdCapturePermission(input) {
|
|
1326
|
+
if (!isAndroid() || getBrowser() !== "firefox") return invokeRequestPermissionActor(input);
|
|
1327
|
+
if (input.requestMotionPermission) {
|
|
1328
|
+
const motionResult = await invokeRequestPermissionActor({
|
|
1329
|
+
...input,
|
|
1330
|
+
permissionResult: "granted"
|
|
1331
|
+
});
|
|
1332
|
+
if (motionResult !== "granted") return motionResult;
|
|
1333
|
+
}
|
|
1334
|
+
const { stream, fallbackLevel } = await getIdCameraStream();
|
|
1335
|
+
return {
|
|
1336
|
+
permissionResult: "granted",
|
|
1337
|
+
stream,
|
|
1338
|
+
cameraFallbackLevel: fallbackLevel
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1313
1341
|
const requestPermissionActor = fromPromise(async ({ input }) => {
|
|
1314
|
-
return
|
|
1342
|
+
return requestIdCapturePermission(input);
|
|
1315
1343
|
});
|
|
1316
1344
|
const initializeCameraActor = fromPromise(async ({ input }) => {
|
|
1317
1345
|
return initializeIdCapture(input);
|
|
@@ -1354,6 +1382,7 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1354
1382
|
if (notificationTimeout && currentNotificationStatus !== status) return;
|
|
1355
1383
|
if (notificationTimeout && currentNotificationStatus === status) timer.clearTimeout(notificationTimeout);
|
|
1356
1384
|
currentNotificationStatus = status;
|
|
1385
|
+
trueSightHintTransition("module.id-capture", "idScan", status);
|
|
1357
1386
|
sendBack({
|
|
1358
1387
|
type: "DETECTION_UPDATE",
|
|
1359
1388
|
status
|
|
@@ -1431,10 +1460,13 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1431
1460
|
if (!isCapturing) sendNotification("glare");
|
|
1432
1461
|
},
|
|
1433
1462
|
onIdNotDetected: () => {
|
|
1434
|
-
if (!isCapturing)
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1463
|
+
if (!isCapturing) {
|
|
1464
|
+
trueSightHintTransition("module.id-capture", "idScan", "idNotDetected");
|
|
1465
|
+
sendBack({
|
|
1466
|
+
type: "DETECTION_UPDATE",
|
|
1467
|
+
status: "idNotDetected"
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1438
1470
|
},
|
|
1439
1471
|
onSwitchToManualCapture: () => {
|
|
1440
1472
|
isCapturing = false;
|
|
@@ -1444,6 +1476,7 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1444
1476
|
clearNotificationTimeout();
|
|
1445
1477
|
lastReportedSide = null;
|
|
1446
1478
|
isCapturing = true;
|
|
1479
|
+
trueSightHintTransition("module.id-capture", "idScan", "capturing");
|
|
1447
1480
|
sendBack({
|
|
1448
1481
|
type: "DETECTION_UPDATE",
|
|
1449
1482
|
status: "capturing"
|
|
@@ -1533,6 +1566,7 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1533
1566
|
}
|
|
1534
1567
|
}
|
|
1535
1568
|
});
|
|
1569
|
+
noteTrueSightCaptureActivity(true);
|
|
1536
1570
|
sendBack({
|
|
1537
1571
|
type: "DETECTION_RESET_READY",
|
|
1538
1572
|
reset: () => {
|
|
@@ -1542,6 +1576,7 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
|
|
|
1542
1576
|
return () => {
|
|
1543
1577
|
clearNotificationTimeout();
|
|
1544
1578
|
session?.dispose();
|
|
1579
|
+
noteTrueSightCaptureActivity(false);
|
|
1545
1580
|
};
|
|
1546
1581
|
});
|
|
1547
1582
|
const uploadProgressTickerActor = fromCallback(({ sendBack }) => {
|
|
@@ -1576,7 +1611,9 @@ const uploadIdImageActor = fromPromise(async ({ input, signal }) => {
|
|
|
1576
1611
|
motionStatus
|
|
1577
1612
|
});
|
|
1578
1613
|
metadata = input.deepsightService.getMetadata();
|
|
1579
|
-
} catch {
|
|
1614
|
+
} catch (error) {
|
|
1615
|
+
trueSightLog("warning", "deepsight", "idScan", `deepsight id analysis failed error=${String(error)}`);
|
|
1616
|
+
}
|
|
1580
1617
|
const imageData = input.canvas?.getImageData() ?? void 0;
|
|
1581
1618
|
const logs = input.deepsightService?.getPipelineState() ?? "";
|
|
1582
1619
|
input.dependencies?.trackCaptureAttemptFinished?.({
|
|
@@ -1625,7 +1662,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1625
1662
|
});
|
|
1626
1663
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1627
1664
|
if (!input.dependencies) return;
|
|
1628
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1665
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CMjjYlDH.esm.js");
|
|
1629
1666
|
return loadDeepsightSession({
|
|
1630
1667
|
ds: input.ds,
|
|
1631
1668
|
storage: input.dependencies.storage,
|
|
@@ -1669,6 +1706,15 @@ function performStopMediaRecording(context) {
|
|
|
1669
1706
|
function getStreamFromEvent(event) {
|
|
1670
1707
|
if ("output" in event) return event.output.stream;
|
|
1671
1708
|
}
|
|
1709
|
+
function getPermissionResultFromEvent(event) {
|
|
1710
|
+
if (!("output" in event)) return;
|
|
1711
|
+
const { output } = event;
|
|
1712
|
+
if (output === "granted" || output === "denied" || output === "prompt") return output;
|
|
1713
|
+
if (typeof output === "object" && output !== null && "permissionResult" in output) {
|
|
1714
|
+
const result = output.permissionResult;
|
|
1715
|
+
if (result === "granted" || result === "denied" || result === "prompt") return result;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1672
1718
|
function getProviderFromEvent(event) {
|
|
1673
1719
|
if ("output" in event) return event.output.provider;
|
|
1674
1720
|
}
|
|
@@ -2035,6 +2081,11 @@ const idCaptureMachine = setup({
|
|
|
2035
2081
|
captureResolution: ({ event }) => getCaptureResolutionFromEvent(event),
|
|
2036
2082
|
cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event)
|
|
2037
2083
|
}),
|
|
2084
|
+
setPermissionResultAndStream: assign({
|
|
2085
|
+
permissionResult: ({ context, event }) => getPermissionResultFromEvent(event) ?? context.permissionResult,
|
|
2086
|
+
stream: ({ context, event }) => getStreamFromEvent(event) ?? context.stream,
|
|
2087
|
+
cameraFallbackLevel: ({ context, event }) => getCameraFallbackLevelFromEvent(event) ?? context.cameraFallbackLevel
|
|
2088
|
+
}),
|
|
2038
2089
|
trackTutorialId: () => {},
|
|
2039
2090
|
trackContinue: () => {},
|
|
2040
2091
|
trackCameraId: ({ context }) => {},
|
|
@@ -2136,6 +2187,7 @@ const idCaptureMachine = setup({
|
|
|
2136
2187
|
needsMotionPrimeOnly: needsMotionPrimeOnlyGuard,
|
|
2137
2188
|
isPermissionDeniedError: isPermissionDeniedErrorGuard,
|
|
2138
2189
|
hasStream: hasStreamGuard,
|
|
2190
|
+
hasInitializedCamera: hasInitializedCameraGuard,
|
|
2139
2191
|
hasAttemptsRemaining: hasAttemptsRemainingGuard,
|
|
2140
2192
|
hasCapturedImage: hasCapturedImageGuard,
|
|
2141
2193
|
hasUploadValidationError: hasUploadValidationErrorGuard,
|
|
@@ -2508,16 +2560,16 @@ const idCaptureMachine = setup({
|
|
|
2508
2560
|
{
|
|
2509
2561
|
target: "#idCapture.capture",
|
|
2510
2562
|
guard: "isReadyForCapture",
|
|
2511
|
-
actions:
|
|
2563
|
+
actions: "setPermissionResultAndStream"
|
|
2512
2564
|
},
|
|
2513
2565
|
{
|
|
2514
2566
|
target: "denied",
|
|
2515
|
-
guard: ({ event }) => event
|
|
2516
|
-
actions:
|
|
2567
|
+
guard: ({ event }) => getPermissionResultFromEvent(event) === "denied",
|
|
2568
|
+
actions: "setPermissionResultAndStream"
|
|
2517
2569
|
},
|
|
2518
2570
|
{
|
|
2519
2571
|
target: "waitingForUser",
|
|
2520
|
-
actions:
|
|
2572
|
+
actions: "setPermissionResultAndStream"
|
|
2521
2573
|
}
|
|
2522
2574
|
],
|
|
2523
2575
|
onError: { target: "denied" }
|
|
@@ -2538,7 +2590,7 @@ const idCaptureMachine = setup({
|
|
|
2538
2590
|
},
|
|
2539
2591
|
{
|
|
2540
2592
|
target: "detecting",
|
|
2541
|
-
guard: "
|
|
2593
|
+
guard: "hasInitializedCamera"
|
|
2542
2594
|
},
|
|
2543
2595
|
{ target: "initializing" }
|
|
2544
2596
|
] },
|
|
@@ -2567,7 +2619,9 @@ const idCaptureMachine = setup({
|
|
|
2567
2619
|
src: "initializeCamera",
|
|
2568
2620
|
input: ({ context }) => ({
|
|
2569
2621
|
config: context.config,
|
|
2570
|
-
deepsightService: context.deepsightService
|
|
2622
|
+
deepsightService: context.deepsightService,
|
|
2623
|
+
stream: context.stream,
|
|
2624
|
+
cameraFallbackLevel: context.cameraFallbackLevel
|
|
2571
2625
|
}),
|
|
2572
2626
|
onDone: {
|
|
2573
2627
|
target: "detecting",
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-s08FLvEh.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
5
|
function createIdOcrActor(options) {
|
|
6
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
1
|
+
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|