@incodetech/core 2.5.0-rc.3 → 2.5.0-rc.5
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/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-BAP_KRUT.esm.js} +54 -0
- package/dist/{FaceDetectionProvider-CCJo4bco.esm.js → FaceDetectionProvider-VT31r1ov.esm.js} +5 -5
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DxhYr0v7.esm.js → apiError-D2biqI0c.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CFHIObef.d.ts → authenticationManager-DWFnFadt.d.ts} +1 -1
- package/dist/{authenticationManager-BXdvE7lC.esm.js → authenticationManager-Db2AIYOY.esm.js} +3 -3
- package/dist/{authenticationStateMachine-Bf0ApKso.esm.js → authenticationStateMachine-D5S7dLqB.esm.js} +3 -3
- package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-Bn9Z5wM5.esm.js} +1 -1
- package/dist/{camera-E_Kcre4O.esm.js → camera-wzsqfd3B.esm.js} +9 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-B0YKqYtZ.d.ts → consentManager-Duzd8paN.d.ts} +5 -5
- package/dist/{deepsightLoader-C7TAHJXG.esm.js → deepsightLoader-Ckm6t3kD.esm.js} +3 -3
- package/dist/{desktopCameraElection-ByUXdW6A.esm.js → desktopCameraElection-q3cVTQ6a.esm.js} +19 -7
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-C9g-btPN.esm.js → documentCaptureManager-D5oiXpwG.esm.js} +1 -1
- package/dist/{documentCaptureManager-CoGcEiMK.d.ts → documentCaptureManager-Dd3T6bcs.d.ts} +5 -5
- package/dist/{documentCaptureStateMachine-B0b1h_GT.esm.js → documentCaptureStateMachine-zyJcTCBx.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DWeIy62Y.esm.js → dynamicFormsManager-BVajFTAr.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-dJEw3-L4.esm.js → dynamicFormsStateMachine-CojKBZSx.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-JBglywM8.esm.js → ekybManager-IjDkBive.esm.js} +1 -1
- package/dist/{ekybStateMachine-CUq0RRXx.esm.js → ekybStateMachine-DrWUhTG5.esm.js} +1 -1
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/{ekycPrefillManager-CMGSavny.esm.js → ekycPrefillManager-9Rdv8tsm.esm.js} +1 -1
- package/dist/{ekycPrefillManager-BcLhkpp8.d.ts → ekycPrefillManager-CUFTaI8e.d.ts} +30 -30
- package/dist/{ekycPrefillStateMachine-43l5cV8s.esm.js → ekycPrefillStateMachine-DVe575y0.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C86sxqsy.esm.js → electronicSignatureManager-BDOrUs1S.esm.js} +1 -1
- package/dist/extensibility.d.ts +9 -9
- package/dist/extensibility.esm.js +14 -14
- package/dist/{faceCaptureManagerFactory-dgc5H8hd.esm.js → faceCaptureManagerFactory-D7o4vaSt.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-DqDNQb8X.d.ts → faceCaptureManagerFactory-DLFzd1nq.d.ts} +2 -2
- package/dist/{faceCaptureSetup-BcE26nwo.esm.js → faceCaptureSetup-B6pAu2Lo.esm.js} +21 -10
- package/dist/{feature-management-So4L3K2G.esm.js → feature-management-Y7TclYIm.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D4G-4xKE.esm.js → fiscalQrManager-2ZBUw08-.esm.js} +2 -2
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DVqGjUJ5.esm.js → flowCompletionService-C0gr4duW.esm.js} +1 -1
- package/dist/{flowServices-m20VxXpw.esm.js → flowServices-B-_9AUG2.esm.js} +8 -9
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-B7tr1Mjr.esm.js → geolocationManager-BFT5MLUp.esm.js} +1 -1
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-Bj7PzCgO.esm.js → geolocationStateMachine-B0mxG9gS.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-BY8Ms5-x.esm.js → idCaptureManager-kiSWD5_7.esm.js} +5 -5
- package/dist/{idCaptureServices-DxRuZzik.esm.js → idCaptureServices-DABHaQGi.esm.js} +6 -5
- package/dist/{idCaptureStateMachine-jIgD_6K9.esm.js → idCaptureStateMachine-B6Djl8nt.esm.js} +22 -12
- package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C3BHGgSb.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-0_CnXLk4.esm.js → kybChecksManager-CAzYmH8L.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-CothByiQ.esm.js → kybChecksStateMachine-DWYRi__r.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DszYRM5U.d.ts → mandatoryConsentManager-CCkV4Cm3.d.ts} +5 -5
- package/dist/{permissionGuards-DoAed6-z.esm.js → permissionGuards-CR0Z10rU.esm.js} +1 -1
- package/dist/{permissionServices-Ex5xc1h7.esm.js → permissionServices-BMQItC9y.esm.js} +6 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-yptkVJTO.esm.js} +3 -2
- package/dist/{runChildModule-BeAXn155.esm.js → runChildModule-CfTDIDFy.esm.js} +1 -1
- package/dist/{sdkVersion-CK98LU4K.esm.js → sdkVersion-B0u1yI4T.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-Bd3iBR1y.esm.js → selfieErrorUtils-KMGgzEY8.esm.js} +1 -1
- package/dist/{selfieManager-u0dnwOE7.esm.js → selfieManager-CRAV_PgJ.esm.js} +3 -3
- package/dist/{selfieManager-Btqla0Id.d.ts → selfieManager-CvWeyYup.d.ts} +1 -1
- package/dist/{selfieStateMachine-BvMe5dxz.esm.js → selfieStateMachine-jd3k1iLj.esm.js} +3 -3
- package/dist/{session--fux_Vkl.esm.js → session-BkAhUvu7.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BhXyYkt8.esm.js → sessionInitializer-BzPWbuZe.esm.js} +14 -60
- package/dist/{setup-uIE9pmGh.esm.js → setup-Cg1JJe3W.esm.js} +5 -5
- package/dist/{trueSightService-DhNRlYgN.esm.js → trueSightService-CzUm08rX.esm.js} +1 -1
- package/dist/{types-CoAp9UmW.d.ts → types-BRmwbyAu.d.ts} +2 -0
- package/dist/{types-BxLFoqzR.d.ts → types-Bc1-m6MR.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-e9InU88j.esm.js → videoSelfieCameraWarmer-Dmkf-4Dt.esm.js} +6 -6
- package/dist/{videoSelfieStepDetector-VJFqUQmL.d.ts → videoSelfieStepDetector-DStjqQQm.d.ts} +14 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-Cg1JJe3W.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
3
3
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
4
4
|
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
@@ -9,10 +9,10 @@ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
|
9
9
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
10
10
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
|
|
11
11
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
12
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
12
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BMQItC9y.esm.js";
|
|
13
13
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
14
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
15
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
14
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-B6Djl8nt.esm.js";
|
|
15
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-DABHaQGi.esm.js";
|
|
16
16
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-lXP41N7b.esm.js";
|
|
17
17
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
18
18
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1133,7 +1133,7 @@ function createIdCaptureOnlyManager(options) {
|
|
|
1133
1133
|
* (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
|
|
1134
1134
|
*/
|
|
1135
1135
|
function createIdCaptureManager(options) {
|
|
1136
|
-
import("./backCameraStream-
|
|
1136
|
+
import("./backCameraStream-Bn9Z5wM5.esm.js").then((n) => n.t).catch(() => void 0);
|
|
1137
1137
|
if (hasOnCaptureCallback(options.config)) return createIdCaptureOnlyManager({
|
|
1138
1138
|
config: pickIdCaptureOnlyConfig(options.config),
|
|
1139
1139
|
dependencies: options.dependencies
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-Cg1JJe3W.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Y7TclYIm.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
|
|
5
5
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
6
6
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
7
7
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CRn9jT4K.esm.js";
|
|
8
8
|
//#region src/modules/id/idCameraStream.ts
|
|
9
9
|
async function getIdCameraStream(deviceId) {
|
|
10
|
-
return (await import("./backCameraStream-
|
|
10
|
+
return (await import("./backCameraStream-Bn9Z5wM5.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/modules/id/idCaptureExperiments.ts
|
|
@@ -422,7 +422,7 @@ async function startRecordingSession(params) {
|
|
|
422
422
|
const multipartSession = multipartIdSessions.get(params.existing);
|
|
423
423
|
if (multipartSession?.needsVideoSourceReplacement) {
|
|
424
424
|
const recordingSource = params.stream.clone();
|
|
425
|
-
|
|
425
|
+
multipartSession.compositor.switchAudio(recordingSource);
|
|
426
426
|
multipartSession.compositor.switchVideo(recordingSource);
|
|
427
427
|
multipartSession.needsVideoSourceReplacement = false;
|
|
428
428
|
multipartSession.recordingSource = recordingSource;
|
|
@@ -434,7 +434,7 @@ async function startRecordingSession(params) {
|
|
|
434
434
|
return params.existing;
|
|
435
435
|
}
|
|
436
436
|
const [compositorModule, recorderModule, serviceModule] = await Promise.all([
|
|
437
|
-
import("./CameraCompositor-
|
|
437
|
+
import("./CameraCompositor-BAP_KRUT.esm.js").then((n) => n.n),
|
|
438
438
|
import("./WorkerEncoderRecordingProvider-CsDED9UU.esm.js").then((n) => n.n),
|
|
439
439
|
import("./multipartRecordingService-WgK8ieRI.esm.js").then((n) => n.n)
|
|
440
440
|
]);
|
|
@@ -501,6 +501,7 @@ function releaseCameraClone(multipartSession, options) {
|
|
|
501
501
|
for (const track of tracks) try {
|
|
502
502
|
track.stop();
|
|
503
503
|
} catch {}
|
|
504
|
+
if (options.keepAudio) multipartSession.compositor.releaseAudio();
|
|
504
505
|
}
|
|
505
506
|
/**
|
|
506
507
|
* Completes an ID recording: drains the multipart upload and releases the
|
package/dist/{idCaptureStateMachine-jIgD_6K9.esm.js → idCaptureStateMachine-B6Djl8nt.esm.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-Cg1JJe3W.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
4
4
|
import { n as eventModuleNames, v as addEvent } from "./types-DYYMdAGv.esm.js";
|
|
5
5
|
import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
6
6
|
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
7
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
8
|
-
import {
|
|
7
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-CzUm08rX.esm.js";
|
|
8
|
+
import { t as getDisableIpify } from "./sessionInitializer-BzPWbuZe.esm.js";
|
|
9
9
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
10
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
10
|
+
import { s as exposeExperimentOnce } from "./feature-management-Y7TclYIm.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
|
|
12
12
|
import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
|
|
13
|
-
import "./session
|
|
13
|
+
import "./session-BkAhUvu7.esm.js";
|
|
14
14
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
15
15
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
16
16
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
17
17
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-eYiyWjh0.esm.js";
|
|
18
|
-
import {
|
|
19
|
-
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-
|
|
20
|
-
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
18
|
+
import { c as isCameraDenialErrorName } from "./camera-wzsqfd3B.esm.js";
|
|
19
|
+
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-BMQItC9y.esm.js";
|
|
20
|
+
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-q3cVTQ6a.esm.js";
|
|
21
21
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
22
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
22
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-CR0Z10rU.esm.js";
|
|
23
23
|
import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
|
|
24
24
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
25
25
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
@@ -28,7 +28,7 @@ import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
|
28
28
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
29
29
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
30
30
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CRn9jT4K.esm.js";
|
|
31
|
-
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-
|
|
31
|
+
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-DABHaQGi.esm.js";
|
|
32
32
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
33
33
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
34
34
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
@@ -2046,7 +2046,7 @@ fromPromise(async ({ input }) => {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
fromPromise(async ({ input }) => {
|
|
2048
2048
|
if (!input.dependencies) return;
|
|
2049
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2049
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Ckm6t3kD.esm.js");
|
|
2050
2050
|
return loadDeepsightSession({
|
|
2051
2051
|
ds: input.ds,
|
|
2052
2052
|
storage: input.dependencies.storage,
|
|
@@ -2489,7 +2489,7 @@ function cleanup(service) {
|
|
|
2489
2489
|
service.cleanup();
|
|
2490
2490
|
} catch {}
|
|
2491
2491
|
}
|
|
2492
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2492
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-Ckm6t3kD.esm.js")).loadDeepsightSession(input)) {
|
|
2493
2493
|
let disposed = false;
|
|
2494
2494
|
let preparation;
|
|
2495
2495
|
let service;
|
|
@@ -3409,6 +3409,14 @@ function createProtectedIdCallbackSession(input) {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
|
+
/**
|
|
3413
|
+
* Merged session recordings carry sound, as in SDK 1. Only when the capture
|
|
3414
|
+
* uploads an ID recording. The permission step reads it too, so camera and mic
|
|
3415
|
+
* are asked in one prompt.
|
|
3416
|
+
*/
|
|
3417
|
+
function requestsIdSessionAudio(config) {
|
|
3418
|
+
return !hasOnCaptureCallback(config) && config.enableIdRecording === true && config.mergeSessionRecordings === true;
|
|
3419
|
+
}
|
|
3412
3420
|
function createProtectedIdAttemptInput(input) {
|
|
3413
3421
|
const { context, controller } = input;
|
|
3414
3422
|
const provider = controller.getProvider();
|
|
@@ -3451,6 +3459,7 @@ function createProtectedIdAttemptInput(input) {
|
|
|
3451
3459
|
capturePresentationFrame: () => controller.takeAutoCaptureFrame(),
|
|
3452
3460
|
cycle: cameraCycleProvider,
|
|
3453
3461
|
cycleOwnership: controller.getCycleOwnership(),
|
|
3462
|
+
recordAudio: requestsIdSessionAudio(context.config),
|
|
3454
3463
|
recorder: createProtectedIdRecorderHooks({
|
|
3455
3464
|
config: context.config,
|
|
3456
3465
|
currentMode: context.currentMode,
|
|
@@ -5144,6 +5153,7 @@ const idCaptureMachine = setup({
|
|
|
5144
5153
|
input: ({ context, self }) => ({
|
|
5145
5154
|
permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
|
|
5146
5155
|
requestMotionPermission: context.config.ds === true,
|
|
5156
|
+
requestAudio: requestsIdSessionAudio(context.config),
|
|
5147
5157
|
acceptStream: (value) => getIdProtectedCaptureController(self).storePreAcquiredStream(value)
|
|
5148
5158
|
}),
|
|
5149
5159
|
onDone: [
|
|
@@ -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" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-Cg1JJe3W.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
package/dist/kyb-checks.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
2
|
-
import { t as createKybChecksManager } from "./kybChecksManager-
|
|
1
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-DWYRi__r.esm.js";
|
|
2
|
+
import { t as createKybChecksManager } from "./kybChecksManager-CAzYmH8L.esm.js";
|
|
3
3
|
export { createKybChecksManager, kybChecksMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
3
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-DWYRi__r.esm.js";
|
|
4
4
|
//#region src/modules/kyb-checks/kybChecksActor.ts
|
|
5
5
|
/** Creates and starts a KYB Checks actor, idle until `LOAD`. */
|
|
6
6
|
function createKybChecksActor(options = {}) {
|
package/dist/{kybChecksStateMachine-CothByiQ.esm.js → kybChecksStateMachine-DWYRi__r.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-D2biqI0c.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-DJPU3W2M.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CCkV4Cm3.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-DszYRM5U.d.ts → mandatoryConsentManager-CCkV4Cm3.d.ts}
RENAMED
|
@@ -66,14 +66,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
66
66
|
type: "setLoadError";
|
|
67
67
|
params: NonReducibleUnknown;
|
|
68
68
|
};
|
|
69
|
-
toggleSigned: {
|
|
70
|
-
type: "toggleSigned";
|
|
71
|
-
params: NonReducibleUnknown;
|
|
72
|
-
};
|
|
73
69
|
resetContext: {
|
|
74
70
|
type: "resetContext";
|
|
75
71
|
params: NonReducibleUnknown;
|
|
76
72
|
};
|
|
73
|
+
toggleSigned: {
|
|
74
|
+
type: "toggleSigned";
|
|
75
|
+
params: NonReducibleUnknown;
|
|
76
|
+
};
|
|
77
77
|
}>, Values<{
|
|
78
78
|
canSubmit: {
|
|
79
79
|
type: "canSubmit";
|
|
@@ -83,7 +83,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
83
83
|
type: "hasConsent";
|
|
84
84
|
params: unknown;
|
|
85
85
|
};
|
|
86
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
86
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
87
87
|
readonly id: "mandatoryConsent";
|
|
88
88
|
readonly initial: "idle";
|
|
89
89
|
readonly context: ({ input }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { s as isWasmMotionPrimedForModule } from "./permissionServices-BMQItC9y.esm.js";
|
|
2
2
|
//#region src/internal/permissions/permissionGuards.ts
|
|
3
3
|
function resolveStoredPermissionResult(fromEvent, fromContext) {
|
|
4
4
|
if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
2
2
|
import { n as isAndroidWebView } from "./platform-aPh7gTWh.esm.js";
|
|
3
3
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
|
|
4
|
-
import { a as stopCameraStream,
|
|
4
|
+
import { a as stopCameraStream, l as isCameraGrantedInDocument, r as requestCameraAccess, s as clearCameraGrantedInDocument } from "./camera-wzsqfd3B.esm.js";
|
|
5
5
|
//#region ../infra/src/media/permissions.ts
|
|
6
6
|
async function queryPermission(name) {
|
|
7
7
|
try {
|
|
@@ -160,7 +160,7 @@ async function requestPermission(options = {}) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async function invokeRequestPermissionActor(input) {
|
|
163
|
-
if (!input.requestMotionPermission) return requestPermission();
|
|
163
|
+
if (!input.requestMotionPermission) return requestPermission({ requestAudio: input.requestAudio });
|
|
164
164
|
if (input.permissionResult === "granted") {
|
|
165
165
|
if (!isWasmMotionPrimedForModule()) {
|
|
166
166
|
const motionSensor = new MotionSensorProvider();
|
|
@@ -169,7 +169,10 @@ async function invokeRequestPermissionActor(input) {
|
|
|
169
169
|
}
|
|
170
170
|
return "granted";
|
|
171
171
|
}
|
|
172
|
-
return requestPermission({
|
|
172
|
+
return requestPermission({
|
|
173
|
+
requestMotion: true,
|
|
174
|
+
requestAudio: input.requestAudio
|
|
175
|
+
});
|
|
173
176
|
}
|
|
174
177
|
//#endregion
|
|
175
178
|
export { requestPermission as a, resetWasmMotionPrimedForModule as c, requestMotionPermission as i, queryCameraPermission as l, invokeRequestPermissionActor as n, requiresMotionPermissionUserGesture as o, primeMotionFromUserGestureIfNeeded as r, isWasmMotionPrimedForModule as s, checkPermission as t, queryPermission as u };
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BDOrUs1S.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
2
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
|
-
import { r as createRecordingCompositor } from "./CameraCompositor-
|
|
3
|
+
import { r as createRecordingCompositor } from "./CameraCompositor-BAP_KRUT.esm.js";
|
|
4
4
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
|
|
5
5
|
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-CsDED9UU.esm.js";
|
|
6
6
|
import { t as MultipartRecordingService } from "./multipartRecordingService-WgK8ieRI.esm.js";
|
|
@@ -335,7 +335,7 @@ var MultipartFaceRecordingService = class {
|
|
|
335
335
|
if (!compositor) return;
|
|
336
336
|
if (this.needsVideoSourceReplacement) {
|
|
337
337
|
const recordingSource = stream.clone();
|
|
338
|
-
|
|
338
|
+
compositor.switchAudio(recordingSource);
|
|
339
339
|
compositor.switchVideo(recordingSource);
|
|
340
340
|
this.needsVideoSourceReplacement = false;
|
|
341
341
|
this.recordingSource = recordingSource;
|
|
@@ -373,6 +373,7 @@ var MultipartFaceRecordingService = class {
|
|
|
373
373
|
for (const track of tracks) try {
|
|
374
374
|
track.stop();
|
|
375
375
|
} catch {}
|
|
376
|
+
if (options.keepAudio) this.compositor?.releaseAudio();
|
|
376
377
|
}
|
|
377
378
|
};
|
|
378
379
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { C as createEventBus } from "./types-DYYMdAGv.esm.js";
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CzUm08rX.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-DLFzd1nq.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-BRmwbyAu.js";
|
|
5
5
|
import { n as DeepsightService } from "./StreamCanvasCapture-Y6cQ0Y4s.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-CvWeyYup.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-Cg1JJe3W.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import "./events-CP3yOzAl.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
8
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
9
|
-
import { s as processFace } from "./FaceDetectionProvider-
|
|
10
|
-
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
11
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
12
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
7
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-B6pAu2Lo.esm.js";
|
|
8
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D7o4vaSt.esm.js";
|
|
9
|
+
import { s as processFace } from "./FaceDetectionProvider-VT31r1ov.esm.js";
|
|
10
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-q3cVTQ6a.esm.js";
|
|
11
|
+
import { t as selfieMachine } from "./selfieStateMachine-jd3k1iLj.esm.js";
|
|
12
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CRAV_PgJ.esm.js";
|
|
13
13
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-lXP41N7b.esm.js";
|
|
14
14
|
/**
|
|
15
15
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-VT31r1ov.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-Cg1JJe3W.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import "./events-CP3yOzAl.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D7o4vaSt.esm.js";
|
|
7
|
+
import { t as selfieMachine } from "./selfieStateMachine-jd3k1iLj.esm.js";
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-DLFzd1nq.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-B6pAu2Lo.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-VT31r1ov.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-KMGgzEY8.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as getApi, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
4
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-CzUm08rX.esm.js";
|
|
3
|
+
import "./sessionInitializer-BzPWbuZe.esm.js";
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-D2biqI0c.esm.js";
|
|
5
5
|
//#region src/internal/session/sessionService.ts
|
|
6
6
|
/**
|
|
7
7
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as getToken } from "./api-CZpuJuZl.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-BzPWbuZe.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session
|
|
7
|
-
import { r as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-D2biqI0c.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-BkAhUvu7.esm.js";
|
|
7
|
+
import { r as getFinishStatus } from "./flowCompletionService-C0gr4duW.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -3,10 +3,9 @@ import { n as setWasmMetadataV2Enabled } from "./wasmMetadataVersionSync-U8EFUr1
|
|
|
3
3
|
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
5
5
|
import "./events-CP3yOzAl.esm.js";
|
|
6
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
7
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
8
|
-
import {
|
|
9
|
-
import { E as updateFeatureManagementUser } from "./feature-management-So4L3K2G.esm.js";
|
|
6
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-CzUm08rX.esm.js";
|
|
7
|
+
import { t as SDK_VERSION } from "./sdkVersion-B0u1yI4T.esm.js";
|
|
8
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Y7TclYIm.esm.js";
|
|
10
9
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-DoByUnTa.esm.js";
|
|
11
10
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
12
11
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
@@ -41,24 +40,17 @@ function readIncodeDeviceHash(data) {
|
|
|
41
40
|
algorithmVersion
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
|
-
function createIncodeDeviceHashWaiter(
|
|
43
|
+
function createIncodeDeviceHashWaiter() {
|
|
45
44
|
const pendingByToken = /* @__PURE__ */ new Map();
|
|
46
45
|
function pendingFor(token) {
|
|
47
46
|
let pending = pendingByToken.get(token);
|
|
48
47
|
if (!pending) {
|
|
49
48
|
let settle = () => void 0;
|
|
50
|
-
const deviceHash = new Promise((resolve) => {
|
|
51
|
-
settle = resolve;
|
|
52
|
-
});
|
|
53
|
-
let release = () => void 0;
|
|
54
|
-
const released = new Promise((resolve) => {
|
|
55
|
-
release = () => resolve(null);
|
|
56
|
-
});
|
|
57
49
|
pending = {
|
|
58
|
-
deviceHash
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
deviceHash: new Promise((resolve) => {
|
|
51
|
+
settle = resolve;
|
|
52
|
+
}),
|
|
53
|
+
settle
|
|
62
54
|
};
|
|
63
55
|
pendingByToken.set(token, pending);
|
|
64
56
|
}
|
|
@@ -68,24 +60,8 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
68
60
|
settle(token, deviceHash) {
|
|
69
61
|
pendingFor(token).settle(deviceHash);
|
|
70
62
|
},
|
|
71
|
-
|
|
72
|
-
pendingFor(token).
|
|
73
|
-
},
|
|
74
|
-
async waitFor(token, timeoutMs) {
|
|
75
|
-
let timeout;
|
|
76
|
-
const timedOut = new Promise((resolve) => {
|
|
77
|
-
timeout = timer.setTimeout(() => resolve(null), Math.max(0, timeoutMs));
|
|
78
|
-
});
|
|
79
|
-
const pending = pendingFor(token);
|
|
80
|
-
try {
|
|
81
|
-
return await Promise.race([
|
|
82
|
-
pending.deviceHash,
|
|
83
|
-
pending.released,
|
|
84
|
-
timedOut
|
|
85
|
-
]);
|
|
86
|
-
} finally {
|
|
87
|
-
if (timeout !== void 0) timer.clearTimeout(timeout);
|
|
88
|
-
}
|
|
63
|
+
waitFor(token) {
|
|
64
|
+
return pendingFor(token).deviceHash;
|
|
89
65
|
},
|
|
90
66
|
reset() {
|
|
91
67
|
pendingByToken.forEach((pending) => pending.settle(null));
|
|
@@ -93,7 +69,7 @@ function createIncodeDeviceHashWaiter(timer) {
|
|
|
93
69
|
}
|
|
94
70
|
};
|
|
95
71
|
}
|
|
96
|
-
const incodeDeviceHashWaiter = createIncodeDeviceHashWaiter(
|
|
72
|
+
const incodeDeviceHashWaiter = createIncodeDeviceHashWaiter();
|
|
97
73
|
//#endregion
|
|
98
74
|
//#region src/internal/fingerprint/fingerprintSignalsReporter.ts
|
|
99
75
|
const START_INTERVIEW_EVENT = "modelLoadEnd";
|
|
@@ -865,7 +841,6 @@ let clientFingerprintEnabled = true;
|
|
|
865
841
|
let clientHostingApp;
|
|
866
842
|
let clientWasmConfig;
|
|
867
843
|
let clientWasmDisabled = false;
|
|
868
|
-
const DEVICE_HASH_WAIT_MS = 3e3;
|
|
869
844
|
function setClientIpLookupEnabled(enabled) {
|
|
870
845
|
clientIpLookupEnabled = enabled;
|
|
871
846
|
}
|
|
@@ -899,20 +874,10 @@ function setClientWasmConfig(config) {
|
|
|
899
874
|
function setClientWasmDisabled(disabled) {
|
|
900
875
|
clientWasmDisabled = disabled;
|
|
901
876
|
}
|
|
902
|
-
const SLOW_EFFECTIVE_TYPES = /* @__PURE__ */ new Set([
|
|
903
|
-
"slow-2g",
|
|
904
|
-
"2g",
|
|
905
|
-
"3g"
|
|
906
|
-
]);
|
|
907
|
-
function isSlowNetwork() {
|
|
908
|
-
const connection = new BrowserEnvironmentProvider().getNavigatorProperty("connection");
|
|
909
|
-
return connection?.saveData === true || SLOW_EFFECTIVE_TYPES.has(connection?.effectiveType);
|
|
910
|
-
}
|
|
911
877
|
/** Why this activation's post won't wait for a pid, if it won't. */
|
|
912
878
|
function deviceHashSkipReason(activationOptedOut) {
|
|
913
879
|
if (activationOptedOut || clientWasmDisabled) return "wasmDisabled";
|
|
914
|
-
|
|
915
|
-
return isSlowNetwork() ? "slowNetwork" : void 0;
|
|
880
|
+
return clientWasmConfig ? void 0 : "noWasmConfig";
|
|
916
881
|
}
|
|
917
882
|
/**
|
|
918
883
|
* Starts the WASM runtime, without models, so the PID signal can return the
|
|
@@ -973,16 +938,6 @@ function createFingerprintSettled() {
|
|
|
973
938
|
function whenSessionFingerprintSettled() {
|
|
974
939
|
return fingerprintSettled?.promise ?? Promise.resolve(cachedFingerprintResult);
|
|
975
940
|
}
|
|
976
|
-
/**
|
|
977
|
-
* A screen now waits for the activation post (its consent decision), so the
|
|
978
|
-
* post stops waiting for the pid and goes with what it has. The pid needs the
|
|
979
|
-
* WASM runtime to download and start, about 2 s even on a fast desktop, so it
|
|
980
|
-
* goes with the post only when it is in before the post goes out.
|
|
981
|
-
*/
|
|
982
|
-
function endDeviceHashWait() {
|
|
983
|
-
const token = getToken();
|
|
984
|
-
if (token) incodeDeviceHashWaiter.release(token);
|
|
985
|
-
}
|
|
986
941
|
/** Best-effort: the format latch must never fail session initialization. */
|
|
987
942
|
function applyCaptureMetadataFormat(v2Enabled) {
|
|
988
943
|
try {
|
|
@@ -1138,7 +1093,6 @@ async function submitSessionFingerprint(enabled, options, settled, skipReason) {
|
|
|
1138
1093
|
const isCurrent = () => fingerprintSettled === settled;
|
|
1139
1094
|
const token = getToken();
|
|
1140
1095
|
const startedAtMs = getTimestamp();
|
|
1141
|
-
const deadlineMs = startedAtMs + DEVICE_HASH_WAIT_MS;
|
|
1142
1096
|
let outcomeLogged = false;
|
|
1143
1097
|
const logOutcome = (outcome) => {
|
|
1144
1098
|
if (!outcomeLogged) {
|
|
@@ -1147,7 +1101,7 @@ async function submitSessionFingerprint(enabled, options, settled, skipReason) {
|
|
|
1147
1101
|
}
|
|
1148
1102
|
};
|
|
1149
1103
|
const getDeviceHash = !skipReason && token ? async () => {
|
|
1150
|
-
const deviceHash = await incodeDeviceHashWaiter.waitFor(token
|
|
1104
|
+
const deviceHash = await incodeDeviceHashWaiter.waitFor(token);
|
|
1151
1105
|
logOutcome(`${deviceHash ? "sent" : "missing"} waitMs=${getTimestamp() - startedAtMs}`);
|
|
1152
1106
|
return deviceHash;
|
|
1153
1107
|
} : void 0;
|
|
@@ -1214,4 +1168,4 @@ function resetSessionInit() {
|
|
|
1214
1168
|
resetDeviceStatsQueue();
|
|
1215
1169
|
}
|
|
1216
1170
|
//#endregion
|
|
1217
|
-
export {
|
|
1171
|
+
export { fingerprintSignalsReporter as C, BrowserEnvironmentProvider as S, isBrowserSimulation as _, resetSessionInit as a, getDeviceFingerprintInfo as b, setClientIpLookupEnabled as c, whenSessionFingerprintSettled as d, getStandaloneFlowPolicy as f, setStandaloneFlowPolicy as g, resolveStandaloneFlowPolicy as h, initializeSession as i, setClientWasmConfig as l, resetStandaloneFlowPolicy as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, registerFlowPreloader as p, getSessionFingerprintResult as r, setClientHostingApp as s, getDisableIpify as t, setClientWasmDisabled as u, getFingerprint as v, SDK_PLATFORM as w, IpifyProvider as x, getThumbmarkId as y };
|