@incodetech/core 2.3.0-rc.1 → 2.3.0-rc.10
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-CU6kBvqv.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
- package/dist/{FaceDetectionProvider-BfhWkK90.esm.js → FaceDetectionProvider-BZYHujqz.esm.js} +8 -8
- package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Budb6m6w.esm.js → apiError-iTFZ5fiI.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CjXBjC-c.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
- package/dist/{authenticationManager-cMXhG70r.esm.js → authenticationManager-D22ju23T.esm.js} +4 -4
- package/dist/{authenticationStateMachine-MOYz4HCf.esm.js → authenticationStateMachine-TyFaCegB.esm.js} +3 -3
- package/dist/{backCameraStream-BOtyQowf.esm.js → backCameraStream-B0-YgP_y.esm.js} +1 -0
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
- package/dist/{createCameraCycleOwnership-CX3hJGKc.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +6 -1
- package/dist/{deepsightLoader-DDv3vhXU.esm.js → deepsightLoader-DamOBrBJ.esm.js} +6 -6
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CwAiM9WY.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-lEtCM320.d.ts} +14 -0
- package/dist/{documentCaptureStateMachine-DfGOBapD.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +13 -8
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BbS-XMFc.esm.js → dynamicFormsManager-DKgiusbF.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D8zHBCh4.esm.js → dynamicFormsStateMachine-BV8yR5iN.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-5aiac8wL.esm.js → ekybManager-8VUBu8VW.esm.js} +1 -1
- package/dist/{ekybStateMachine-Bn2IE9rx.esm.js → ekybStateMachine-Bnsefu9M.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BJJH0Tvi.esm.js → electronicSignatureManager--YFXVldr.esm.js} +1 -1
- package/dist/extensibility.d.ts +7 -7
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-B7Ms6pSs.esm.js → faceCaptureManagerFactory-Bk6pVs6E.esm.js} +3 -3
- package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +80 -40
- package/dist/{faceCaptureSetup-bkAlr5d8.esm.js → faceCaptureSetup-CGQDK97m.esm.js} +267 -45
- package/dist/{feature-management-E0mq0pMs.esm.js → feature-management-C8OAO_CZ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-BunLVFbd.esm.js → fiscalQrManager-DbCVMIBx.esm.js} +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DJp1odGN.esm.js → flowCompletionService-C0zcPnqK.esm.js} +1 -1
- package/dist/{flowServices-DjPFGs_D.esm.js → flowServices-G1FDrkLd.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-D5906YXx.esm.js → geolocationManager-DNixQOgf.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BVOduc3y.esm.js → geolocationStateMachine-D1aZJ6eR.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +4 -4
- package/dist/idCaptureDefaults-sJahGQgV.esm.js +282 -0
- package/dist/{idCaptureManager-rfV9dIXy.esm.js → idCaptureManager-B8lo-ksK.esm.js} +5 -5
- package/dist/{idCaptureManager-DKESug0R.d.ts → idCaptureManager-BaHEyQyr.d.ts} +23 -5
- package/dist/{idCaptureServices-i1KxugN7.esm.js → idCaptureServices-DLqls7Xv.esm.js} +60 -13
- package/dist/{idCaptureStateMachine-Ne_PXth_.esm.js → idCaptureStateMachine-CCPGFPRF.esm.js} +221 -76
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +4 -4
- package/dist/{multipartRecordingService-OEgIRvqC.esm.js → multipartRecordingService-YKu0Bd7S.esm.js} +490 -8
- package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
- package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-CI1gGWN1.esm.js → runChildModule-B3Z4iJnG.esm.js} +1 -1
- package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
- package/dist/{sdkVersion-BZh6dj53.esm.js → sdkVersion-CD9fJC2Y.esm.js} +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-4RRLi21P.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
- package/dist/{selfieManager-B-2c1n_x.esm.js → selfieManager-DzOPNipB.esm.js} +4 -4
- package/dist/{selfieStateMachine-Bzx41R8d.esm.js → selfieStateMachine-CidiobBW.esm.js} +3 -3
- package/dist/{session-3LmvAU4S.esm.js → session-BABCfUhC.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BFk33E67.esm.js → sessionInitializer-BK5NjMe0.esm.js} +4 -4
- package/dist/{setup-Cv-JM9QC.d.ts → setup-Cyko6cAn.d.ts} +6 -18
- package/dist/{setup-BWG-hivt.esm.js → setup-D4YCSH31.esm.js} +12 -200
- package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BN-Hzw82.esm.js → trueSightService-D8yZwF3G.esm.js} +189 -570
- package/dist/video-selfie.esm.js +5 -6
- package/dist/{videoSelfieCameraWarmer-B8PcYqmz.esm.js → videoSelfieCameraWarmer-C80ZPDZ8.esm.js} +6 -6
- package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -2
- package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -6
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +0 -42
- package/dist/idCaptureDefaults-CbPA-Auz.esm.js +0 -727
- package/dist/personhood.d.ts +0 -538
- package/dist/personhood.esm.js +0 -1574
- package/dist/types-BT_Oalip.d.ts +0 -1
package/dist/{faceCaptureManagerFactory-B7Ms6pSs.esm.js → faceCaptureManagerFactory-Bk6pVs6E.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { i as concealmentToAvatar } from "./faceCaptureSetup-
|
|
5
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
4
|
+
import { i as concealmentToAvatar } from "./faceCaptureSetup-CGQDK97m.esm.js";
|
|
5
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
|
-
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
7
|
+
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
8
8
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
9
9
|
function getPermissionStatus(snapshot) {
|
|
10
10
|
if (!snapshot.matches("permissions")) return;
|
package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts}
RENAMED
|
@@ -4,15 +4,14 @@ import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
|
-
import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
7
|
+
import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
8
8
|
import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
|
|
9
9
|
import "./IWasmUtilCapability-CNWRl7jr.js";
|
|
10
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
11
11
|
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Bnl58jUQ.js";
|
|
12
12
|
import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
|
|
13
|
-
import "./
|
|
13
|
+
import { t as BaseWasmProvider } from "./BaseWasmProvider-Dyi6dKp1.js";
|
|
14
14
|
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
15
|
-
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-LdZ47bWy.js";
|
|
16
15
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
17
16
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
18
17
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -28,6 +27,84 @@ type CreateAuthenticationActorOptions = {
|
|
|
28
27
|
type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
|
|
29
28
|
declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
|
|
30
29
|
//#endregion
|
|
30
|
+
//#region src/internal/faceCapture/recordingService.d.ts
|
|
31
|
+
type RecordingService = {
|
|
32
|
+
start(stream: MediaStream): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Prepares the recording metadata needed by the face-image upload.
|
|
35
|
+
*
|
|
36
|
+
* Local video-liveness recordings must stop here because their upload id is
|
|
37
|
+
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
38
|
+
* the end of each attempt, and resume the same upload after a rejection; the
|
|
39
|
+
* state machine finalizes them only after the backend accepts the capture.
|
|
40
|
+
*/
|
|
41
|
+
prepareUpload(): Promise<{
|
|
42
|
+
recordingId: string | null;
|
|
43
|
+
}>;
|
|
44
|
+
stop(): Promise<{
|
|
45
|
+
recordingId: string | null;
|
|
46
|
+
}>;
|
|
47
|
+
/** Best-effort page-background handling for protected camera cycles. */
|
|
48
|
+
pauseForBackground?(): void;
|
|
49
|
+
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
50
|
+
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Present only on step-scoped services (one recording per capture step,
|
|
53
|
+
* ENG-56648). Ends the recorder's camera clone synchronously and pauses the
|
|
54
|
+
* container without completing the upload; the next `start(stream)` resumes
|
|
55
|
+
* it with a fresh clone and the step owner completes it with `stop()`.
|
|
56
|
+
* Idempotent, and a no-op once the recording is completing.
|
|
57
|
+
*/
|
|
58
|
+
suspend?(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
61
|
+
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
62
|
+
* to the integrator via `onCapture` instead of uploading to Incode.
|
|
63
|
+
*
|
|
64
|
+
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
65
|
+
* any reason, including:
|
|
66
|
+
* - the recorder was never started or is already stopped,
|
|
67
|
+
* - video assembly fails.
|
|
68
|
+
*/
|
|
69
|
+
stopAndGetVideo(): Promise<{
|
|
70
|
+
videoBase64: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
cleanup(): void;
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
|
|
76
|
+
declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
|
|
77
|
+
private defaultThresholds;
|
|
78
|
+
private currentThresholds;
|
|
79
|
+
private currentFrame;
|
|
80
|
+
private onFaceDataCallback;
|
|
81
|
+
constructor();
|
|
82
|
+
processFrame(image: ImageData): Promise<void>;
|
|
83
|
+
initialize(config: FaceDetectionConfig): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Last-registered onCapture callback — captured into a private
|
|
86
|
+
* field so `forceCapture()` (called from outside the WASM-callback
|
|
87
|
+
* lifecycle) can re-fire the same wrapper. `setCallbacks` rebinds
|
|
88
|
+
* this on each invocation, so the field always reflects the
|
|
89
|
+
* current consumer.
|
|
90
|
+
*/
|
|
91
|
+
private currentOnCaptureWrapper;
|
|
92
|
+
processPhoto(canvas: HTMLCanvasElement): void;
|
|
93
|
+
postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
|
|
94
|
+
setCallbacks(callbacks: FaceDetectionCallbacks): void;
|
|
95
|
+
setPositionConstraints(constraints: FacePositionConstraints): void;
|
|
96
|
+
applyDefaults(autocaptureInterval?: number): void;
|
|
97
|
+
setAutocaptureInterval(interval: number): void;
|
|
98
|
+
setThresholds(thresholds: FaceDetectionThresholds): void;
|
|
99
|
+
setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
|
|
100
|
+
setChecksEnabled(config: FaceChecksConfig): void;
|
|
101
|
+
setVideoSelfieMode(enabled: boolean): void;
|
|
102
|
+
forceCapture(): void;
|
|
103
|
+
reset(): void;
|
|
104
|
+
private createDefaultFaceCoordinates;
|
|
105
|
+
private formatFaceCoordinates;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
31
108
|
//#region src/modules/selfie/types.d.ts
|
|
32
109
|
/**
|
|
33
110
|
* Public selfie configuration.
|
|
@@ -79,43 +156,6 @@ type ProcessFaceResponse = {
|
|
|
79
156
|
};
|
|
80
157
|
declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
|
|
81
158
|
//#endregion
|
|
82
|
-
//#region src/internal/faceCapture/recordingService.d.ts
|
|
83
|
-
type RecordingService = {
|
|
84
|
-
start(stream: MediaStream): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Prepares the recording metadata needed by the face-image upload.
|
|
87
|
-
*
|
|
88
|
-
* Local video-liveness recordings must stop here because their upload id is
|
|
89
|
-
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
90
|
-
* the end of each attempt, and resume the same upload after a rejection; the
|
|
91
|
-
* state machine finalizes them only after the backend accepts the capture.
|
|
92
|
-
*/
|
|
93
|
-
prepareUpload(): Promise<{
|
|
94
|
-
recordingId: string | null;
|
|
95
|
-
}>;
|
|
96
|
-
stop(): Promise<{
|
|
97
|
-
recordingId: string | null;
|
|
98
|
-
}>;
|
|
99
|
-
/** Best-effort page-background handling for protected camera cycles. */
|
|
100
|
-
pauseForBackground?(): void;
|
|
101
|
-
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
102
|
-
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
105
|
-
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
106
|
-
* to the integrator via `onCapture` instead of uploading to Incode.
|
|
107
|
-
*
|
|
108
|
-
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
109
|
-
* any reason, including:
|
|
110
|
-
* - the recorder was never started or is already stopped,
|
|
111
|
-
* - video assembly fails.
|
|
112
|
-
*/
|
|
113
|
-
stopAndGetVideo(): Promise<{
|
|
114
|
-
videoBase64: string | undefined;
|
|
115
|
-
}>;
|
|
116
|
-
cleanup(): void;
|
|
117
|
-
};
|
|
118
|
-
//#endregion
|
|
119
159
|
//#region src/internal/faceCapture/faceCaptureSetup.d.ts
|
|
120
160
|
type FaceCaptureConfig = BaseFaceCaptureConfig;
|
|
121
161
|
type FaceCaptureInput = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-D8yZwF3G.esm.js";
|
|
1
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import
|
|
4
|
-
import "./sessionInitializer-BFk33E67.esm.js";
|
|
4
|
+
import "./sessionInitializer-BK5NjMe0.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
7
7
|
import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-EY3_Vx6c.esm.js";
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-BZYHujqz.esm.js";
|
|
12
12
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
13
|
-
import { a as flagFaceManualReview, i as imageFileToDataUrl, n as runProtectedAttempt, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-
|
|
13
|
+
import { a as flagFaceManualReview, i as imageFileToDataUrl, n as runProtectedAttempt, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
|
|
14
14
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
15
15
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
16
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
16
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D6TfVop2.esm.js";
|
|
17
|
+
import { n as CameraCompositor, r as getAdaptiveMediaRecorderOptions, t as MultipartRecordingService } from "./multipartRecordingService-YKu0Bd7S.esm.js";
|
|
17
18
|
import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
|
|
18
|
-
import { n as getAdaptiveMediaRecorderOptions, t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
|
|
19
19
|
//#region src/internal/avatar/concealment.ts
|
|
20
20
|
/**
|
|
21
21
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
|
@@ -496,7 +496,28 @@ var LocalRecordingProvider = class {
|
|
|
496
496
|
recorder?.stream?.getTracks().forEach((track) => track.stop());
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Discards the in-progress recording without producing a result: detaches
|
|
501
|
+
* the recorder's handlers, stops it, releases its cloned tracks and clears
|
|
502
|
+
* the flags. Idempotent, and safe after `stopRecording` or when never
|
|
503
|
+
* started. Mirrors `MultipartRecordingProvider.reset()` so an attempt that is
|
|
504
|
+
* released before finalization cannot leave a live camera clone behind
|
|
505
|
+
* (ENG-56648).
|
|
506
|
+
*/
|
|
499
507
|
reset() {
|
|
508
|
+
this.removeEventListeners();
|
|
509
|
+
const recorder = this.mediaRecorder;
|
|
510
|
+
if (recorder) {
|
|
511
|
+
recorder.ondataavailable = null;
|
|
512
|
+
recorder.onerror = null;
|
|
513
|
+
recorder.onstop = null;
|
|
514
|
+
if (recorder.state !== "inactive") try {
|
|
515
|
+
recorder.stop();
|
|
516
|
+
} catch {}
|
|
517
|
+
recorder.stream?.getTracks().forEach((track) => track.stop());
|
|
518
|
+
this.mediaRecorder = null;
|
|
519
|
+
}
|
|
520
|
+
this.stream = null;
|
|
500
521
|
this._isRecording = false;
|
|
501
522
|
this._error = null;
|
|
502
523
|
this._hasError = false;
|
|
@@ -571,49 +592,146 @@ var LocalRecordingService = class {
|
|
|
571
592
|
* the interview asynchronously by the backend's `selfie` scope consumer, so
|
|
572
593
|
* its upload id must not be forwarded to `/omni/add/face` as a legacy
|
|
573
594
|
* `recordingId`.
|
|
595
|
+
*
|
|
596
|
+
* The recording is scoped to the capture step (ENG-56648). The recorder
|
|
597
|
+
* records a stable `CameraCompositor` stream instead of a raw camera clone, so
|
|
598
|
+
* every attempt can end its own clone before PRC and POC run and the next
|
|
599
|
+
* attempt swaps a fresh clone into the same multipart upload. The owning
|
|
600
|
+
* controller completes the upload once the backend accepts a capture or the
|
|
601
|
+
* step ends without a retry.
|
|
574
602
|
*/
|
|
575
603
|
var MultipartFaceRecordingService = class {
|
|
576
604
|
constructor() {
|
|
577
605
|
this.service = new MultipartRecordingService("selfie");
|
|
606
|
+
this.audioSource = [];
|
|
607
|
+
this.needsVideoSourceReplacement = false;
|
|
578
608
|
this.pausedForAttempt = false;
|
|
609
|
+
this.startInFlight = false;
|
|
610
|
+
this.suspendRequested = false;
|
|
611
|
+
this.stopping = false;
|
|
579
612
|
}
|
|
580
613
|
async start(stream) {
|
|
581
|
-
if (this.
|
|
582
|
-
|
|
583
|
-
this.
|
|
614
|
+
if (this.stopping) throw new Error("Face recording already completed");
|
|
615
|
+
if (this.compositor) {
|
|
616
|
+
await this.resume(stream);
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
const recordingSource = stream.clone();
|
|
620
|
+
const compositor = new CameraCompositor({ fps: 30 });
|
|
621
|
+
this.startInFlight = true;
|
|
622
|
+
try {
|
|
623
|
+
const composite = compositor.start(recordingSource);
|
|
624
|
+
await this.service.start(composite);
|
|
625
|
+
} catch (error) {
|
|
626
|
+
compositor.stop();
|
|
627
|
+
recordingSource.getTracks().forEach((track) => track.stop());
|
|
628
|
+
this.service.cleanup();
|
|
629
|
+
throw error;
|
|
630
|
+
} finally {
|
|
631
|
+
this.startInFlight = false;
|
|
632
|
+
}
|
|
633
|
+
if (this.stopping) {
|
|
634
|
+
compositor.stop();
|
|
635
|
+
recordingSource.getTracks().forEach((track) => track.stop());
|
|
636
|
+
this.service.cleanup();
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
this.compositor = compositor;
|
|
640
|
+
this.recordingSource = recordingSource;
|
|
641
|
+
this.audioSource = recordingSource.getAudioTracks();
|
|
642
|
+
if (this.suspendRequested) {
|
|
643
|
+
this.suspendRequested = false;
|
|
644
|
+
this.suspend();
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Pauses the container and ends the camera clone on the calling thread. The
|
|
649
|
+
* composite stream and the upload stay open for the next attempt.
|
|
650
|
+
*/
|
|
651
|
+
suspend() {
|
|
652
|
+
if (this.stopping) return;
|
|
653
|
+
if (!this.compositor) {
|
|
654
|
+
this.suspendRequested = this.startInFlight;
|
|
584
655
|
return;
|
|
585
656
|
}
|
|
586
|
-
|
|
657
|
+
if (!this.pausedForAttempt) this.pausedForAttempt = this.service.pause();
|
|
658
|
+
this.releaseCameraClone({ keepAudio: true });
|
|
659
|
+
this.needsVideoSourceReplacement = true;
|
|
587
660
|
}
|
|
588
661
|
async prepareUpload() {
|
|
589
|
-
this.
|
|
662
|
+
this.suspend();
|
|
590
663
|
return { recordingId: null };
|
|
591
664
|
}
|
|
592
665
|
async stop() {
|
|
593
|
-
|
|
594
|
-
await this.service.stop();
|
|
595
|
-
} finally {
|
|
596
|
-
this.pausedForAttempt = false;
|
|
597
|
-
}
|
|
666
|
+
await this.complete();
|
|
598
667
|
return { recordingId: null };
|
|
599
668
|
}
|
|
600
669
|
pauseForBackground() {
|
|
601
|
-
this.
|
|
670
|
+
this.suspend();
|
|
602
671
|
}
|
|
603
|
-
async resumeFromBackground() {
|
|
604
|
-
this.
|
|
672
|
+
async resumeFromBackground(stream) {
|
|
673
|
+
if (!this.compositor || this.stopping) return;
|
|
674
|
+
await this.resume(stream);
|
|
605
675
|
}
|
|
606
676
|
async stopAndGetVideo() {
|
|
677
|
+
await this.complete();
|
|
678
|
+
return { videoBase64: void 0 };
|
|
679
|
+
}
|
|
680
|
+
cleanup() {
|
|
681
|
+
this.suspendRequested = false;
|
|
682
|
+
this.pausedForAttempt = false;
|
|
683
|
+
this.needsVideoSourceReplacement = false;
|
|
684
|
+
this.releaseCameraClone({ keepAudio: false });
|
|
685
|
+
this.compositor?.stop();
|
|
686
|
+
this.compositor = void 0;
|
|
687
|
+
this.recordingSource = void 0;
|
|
688
|
+
this.audioSource = [];
|
|
689
|
+
this.service.cleanup();
|
|
690
|
+
}
|
|
691
|
+
/** Swaps this attempt's camera clone into the composite and resumes. */
|
|
692
|
+
async resume(stream) {
|
|
693
|
+
const compositor = this.compositor;
|
|
694
|
+
if (!compositor) return;
|
|
695
|
+
if (this.needsVideoSourceReplacement) {
|
|
696
|
+
const recordingSource = stream.clone();
|
|
697
|
+
recordingSource.getAudioTracks().forEach((track) => track.stop());
|
|
698
|
+
compositor.switchVideo(recordingSource);
|
|
699
|
+
this.needsVideoSourceReplacement = false;
|
|
700
|
+
this.recordingSource = recordingSource;
|
|
701
|
+
const result = await compositor.resume();
|
|
702
|
+
if (result !== "resumed") throw new Error(`Face recording camera did not resume: ${result}`);
|
|
703
|
+
}
|
|
704
|
+
if (this.pausedForAttempt && !this.service.resume()) throw new Error("Face recording did not resume");
|
|
705
|
+
this.pausedForAttempt = false;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Completes the scoped upload. The camera clone ends synchronously before the
|
|
709
|
+
* drain so a step that ends mid-attempt never pins the camera; the composite
|
|
710
|
+
* stays alive until the recorder has emitted its final chunk.
|
|
711
|
+
*/
|
|
712
|
+
async complete() {
|
|
713
|
+
this.stopping = true;
|
|
714
|
+
this.suspendRequested = false;
|
|
715
|
+
this.releaseCameraClone({ keepAudio: false });
|
|
607
716
|
try {
|
|
608
717
|
await this.service.stop();
|
|
609
718
|
} finally {
|
|
719
|
+
this.compositor?.stop();
|
|
720
|
+
this.compositor = void 0;
|
|
721
|
+
this.recordingSource = void 0;
|
|
722
|
+
this.audioSource = [];
|
|
610
723
|
this.pausedForAttempt = false;
|
|
724
|
+
this.needsVideoSourceReplacement = false;
|
|
611
725
|
}
|
|
612
|
-
return { videoBase64: void 0 };
|
|
613
726
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
727
|
+
releaseCameraClone(options) {
|
|
728
|
+
try {
|
|
729
|
+
this.compositor?.pause();
|
|
730
|
+
} catch {}
|
|
731
|
+
const tracks = options.keepAudio ? this.recordingSource?.getVideoTracks() ?? [] : /* @__PURE__ */ new Set([...this.recordingSource?.getTracks() ?? [], ...this.audioSource]);
|
|
732
|
+
for (const track of tracks) try {
|
|
733
|
+
track.stop();
|
|
734
|
+
} catch {}
|
|
617
735
|
}
|
|
618
736
|
};
|
|
619
737
|
/**
|
|
@@ -637,51 +755,88 @@ function createRecordingService(params) {
|
|
|
637
755
|
//#endregion
|
|
638
756
|
//#region src/internal/faceCapture/protectedFaceAttempt.ts
|
|
639
757
|
const ON_DEVICE_MANUAL_CAPTURE_TIMEOUT_MS = 2147483647;
|
|
758
|
+
/**
|
|
759
|
+
* Recorder hooks for one protected face attempt.
|
|
760
|
+
*
|
|
761
|
+
* The recording service comes from the owner of the capture step (the face
|
|
762
|
+
* controller), so a step-scoped service (`suspend` present) is started or
|
|
763
|
+
* resumed by every attempt, paused with its camera clone ended before POC, and
|
|
764
|
+
* suspended again on release; only the controller completes it (ENG-56648).
|
|
765
|
+
* Per-attempt services (local video liveness, capture-only video) keep their
|
|
766
|
+
* stop-before-POC and cleanup-on-release behavior.
|
|
767
|
+
*/
|
|
640
768
|
var ProtectedFaceRecorderHooks = class {
|
|
641
|
-
constructor(config,
|
|
642
|
-
this.config = config;
|
|
643
|
-
this.dependencies = dependencies;
|
|
769
|
+
constructor(config, delivery, getRecordingService) {
|
|
644
770
|
this.delivery = delivery;
|
|
771
|
+
this.getRecordingService = getRecordingService;
|
|
772
|
+
this.disposed = false;
|
|
645
773
|
this.mode = config.onDeviceFaceResultsSubmissionEnabled === true || config.enableFaceRecording !== true && config.deepsightLiveness !== "VIDEOLIVENESS" ? "none" : "finalizeBeforePoc";
|
|
646
774
|
}
|
|
647
775
|
async start(unprotectedStream) {
|
|
648
776
|
if (this.mode === "none") return;
|
|
649
|
-
const
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
|
|
777
|
+
const service = await this.getRecordingService();
|
|
778
|
+
if (!service) return;
|
|
779
|
+
this.service = service;
|
|
780
|
+
if (this.disposed) {
|
|
781
|
+
this.suspendOrCleanup();
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
try {
|
|
785
|
+
await service.start(unprotectedStream);
|
|
786
|
+
} catch (error) {
|
|
787
|
+
if (service.suspend) {
|
|
788
|
+
service.suspend();
|
|
789
|
+
trueSightLog("warning", "recording", "faceScan", "face recording did not resume for this attempt");
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
throw error;
|
|
793
|
+
}
|
|
794
|
+
if (this.disposed) this.suspendOrCleanup();
|
|
657
795
|
}
|
|
658
796
|
async prepareForPoc() {
|
|
659
|
-
|
|
797
|
+
const service = this.service;
|
|
798
|
+
if (!service) return {};
|
|
660
799
|
if (this.delivery === "local") {
|
|
661
800
|
try {
|
|
662
|
-
const result = await
|
|
801
|
+
const result = await service.stopAndGetVideo();
|
|
663
802
|
this.captureOnlyVideoBase64 = result.videoBase64;
|
|
664
803
|
} catch {
|
|
665
804
|
this.captureOnlyVideoBase64 = void 0;
|
|
666
805
|
}
|
|
667
806
|
return {};
|
|
668
807
|
}
|
|
669
|
-
return
|
|
808
|
+
if (service.suspend) return service.prepareUpload();
|
|
809
|
+
return service.stop();
|
|
670
810
|
}
|
|
671
811
|
async resumeAfterPoc() {}
|
|
672
812
|
pauseForBackground() {
|
|
673
813
|
this.service?.pauseForBackground?.();
|
|
674
814
|
}
|
|
675
815
|
async resumeFromBackground(unprotectedStream) {
|
|
676
|
-
|
|
816
|
+
const service = this.service;
|
|
817
|
+
if (!service?.resumeFromBackground || this.disposed) return;
|
|
818
|
+
try {
|
|
819
|
+
await service.resumeFromBackground(unprotectedStream);
|
|
820
|
+
} catch {
|
|
821
|
+
service.suspend?.();
|
|
822
|
+
trueSightLog("warning", "recording", "faceScan", "face recording did not resume after foreground");
|
|
823
|
+
}
|
|
677
824
|
}
|
|
678
825
|
dispose() {
|
|
826
|
+
this.disposed = true;
|
|
679
827
|
try {
|
|
680
|
-
this.
|
|
828
|
+
this.suspendOrCleanup();
|
|
681
829
|
} finally {
|
|
682
830
|
this.service = void 0;
|
|
683
831
|
}
|
|
684
832
|
}
|
|
833
|
+
/** Step-scoped services suspend (the owner completes them); others clean up. */
|
|
834
|
+
suspendOrCleanup() {
|
|
835
|
+
const service = this.service;
|
|
836
|
+
if (!service) return;
|
|
837
|
+
if (service.suspend) service.suspend();
|
|
838
|
+
else service.cleanup();
|
|
839
|
+
}
|
|
685
840
|
takeCaptureOnlyVideo() {
|
|
686
841
|
const video = this.captureOnlyVideoBase64;
|
|
687
842
|
this.captureOnlyVideoBase64 = void 0;
|
|
@@ -705,9 +860,19 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
|
|
|
705
860
|
this.recorderTransferred = false;
|
|
706
861
|
this.pendingSignals = [];
|
|
707
862
|
this.provider = options.faceDetection;
|
|
708
|
-
this.recorder = new ProtectedFaceRecorderHooks(options.config, options.
|
|
863
|
+
this.recorder = new ProtectedFaceRecorderHooks(options.config, options.delivery, options.getRecordingService ?? (() => this.createAttemptRecordingService()));
|
|
709
864
|
this.cycleOwnership = createCameraCycleOwnership(options.cycle);
|
|
710
865
|
}
|
|
866
|
+
/** Per-attempt fallback when no step owner supplies the recording service. */
|
|
867
|
+
async createAttemptRecordingService() {
|
|
868
|
+
const wasmUtil = await this.options.dependencies.getWasmUtil();
|
|
869
|
+
return createRecordingService({
|
|
870
|
+
config: this.options.config,
|
|
871
|
+
wasmUtil,
|
|
872
|
+
sessionToken: getToken(),
|
|
873
|
+
localDelivery: this.options.delivery === "local"
|
|
874
|
+
});
|
|
875
|
+
}
|
|
711
876
|
get delivery() {
|
|
712
877
|
return this.options.delivery;
|
|
713
878
|
}
|
|
@@ -973,6 +1138,8 @@ function createProtectedFaceControllerActor(options) {
|
|
|
973
1138
|
let committedPreview;
|
|
974
1139
|
let pendingAutoPreview;
|
|
975
1140
|
let recording = {};
|
|
1141
|
+
let stepRecording;
|
|
1142
|
+
let stepRecordingPending;
|
|
976
1143
|
let generation = 0;
|
|
977
1144
|
let active = true;
|
|
978
1145
|
let diagnosticAttempt = 0;
|
|
@@ -991,6 +1158,48 @@ function createProtectedFaceControllerActor(options) {
|
|
|
991
1158
|
if (!controllerInput) throw new Error("Protected face controller is not bound");
|
|
992
1159
|
return controllerInput;
|
|
993
1160
|
};
|
|
1161
|
+
/**
|
|
1162
|
+
* One recording service per capture step (ENG-56648). Every attempt of the
|
|
1163
|
+
* step starts or resumes it; `completeStepRecording` completes it when the
|
|
1164
|
+
* backend accepts a capture or the step ends without a retry.
|
|
1165
|
+
*/
|
|
1166
|
+
const getStepRecordingService = () => {
|
|
1167
|
+
if (stepRecording) return Promise.resolve(stepRecording);
|
|
1168
|
+
if (stepRecordingPending) return stepRecordingPending;
|
|
1169
|
+
const input = getControllerInput();
|
|
1170
|
+
const pending = (async () => {
|
|
1171
|
+
const wasmUtil = await input.dependencies.getWasmUtil();
|
|
1172
|
+
if (!active) return;
|
|
1173
|
+
stepRecording ??= createRecordingService({
|
|
1174
|
+
config: input.config,
|
|
1175
|
+
wasmUtil,
|
|
1176
|
+
sessionToken: getToken(),
|
|
1177
|
+
localDelivery: options.delivery === "local"
|
|
1178
|
+
});
|
|
1179
|
+
return stepRecording;
|
|
1180
|
+
})();
|
|
1181
|
+
stepRecordingPending = pending;
|
|
1182
|
+
pending.finally(() => {
|
|
1183
|
+
if (stepRecordingPending === pending) stepRecordingPending = void 0;
|
|
1184
|
+
});
|
|
1185
|
+
return pending;
|
|
1186
|
+
};
|
|
1187
|
+
const completeStepRecording = () => {
|
|
1188
|
+
const service = stepRecording;
|
|
1189
|
+
stepRecording = void 0;
|
|
1190
|
+
if (!service) return;
|
|
1191
|
+
if (!service.suspend) {
|
|
1192
|
+
try {
|
|
1193
|
+
service.cleanup();
|
|
1194
|
+
} catch {}
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
service.stop().catch(() => void 0).finally(() => {
|
|
1198
|
+
try {
|
|
1199
|
+
service.cleanup();
|
|
1200
|
+
} catch {}
|
|
1201
|
+
});
|
|
1202
|
+
};
|
|
994
1203
|
const ensureRuntime = () => {
|
|
995
1204
|
if (!runtime) {
|
|
996
1205
|
const input = getControllerInput();
|
|
@@ -1006,7 +1215,8 @@ function createProtectedFaceControllerActor(options) {
|
|
|
1006
1215
|
acquireCamera: (provider) => initializeCamera({
|
|
1007
1216
|
config: input.config,
|
|
1008
1217
|
provider
|
|
1009
|
-
})
|
|
1218
|
+
}),
|
|
1219
|
+
getRecordingService: getStepRecordingService
|
|
1010
1220
|
});
|
|
1011
1221
|
if (deepsightService) runtime.setDeepsightService(deepsightService);
|
|
1012
1222
|
}
|
|
@@ -1250,12 +1460,16 @@ function createProtectedFaceControllerActor(options) {
|
|
|
1250
1460
|
case "RESET":
|
|
1251
1461
|
releaseCurrent("retry");
|
|
1252
1462
|
return;
|
|
1463
|
+
case "COMPLETE_RECORDING":
|
|
1464
|
+
completeStepRecording();
|
|
1465
|
+
return;
|
|
1253
1466
|
case "RELEASE": releaseCurrent(command.reason);
|
|
1254
1467
|
}
|
|
1255
1468
|
});
|
|
1256
1469
|
return () => {
|
|
1257
1470
|
active = false;
|
|
1258
1471
|
releaseCurrent("externalStop");
|
|
1472
|
+
completeStepRecording();
|
|
1259
1473
|
};
|
|
1260
1474
|
});
|
|
1261
1475
|
}
|
|
@@ -1491,6 +1705,10 @@ const faceCaptureMachine = setup({
|
|
|
1491
1705
|
if (!isProtectedFaceControllerRunning(self)) return;
|
|
1492
1706
|
enqueue.sendTo("protectedFaceController", { type: "RESET" });
|
|
1493
1707
|
}),
|
|
1708
|
+
completeProtectedRecording: enqueueActions(({ enqueue, self }) => {
|
|
1709
|
+
if (!isProtectedFaceControllerRunning(self)) return;
|
|
1710
|
+
enqueue.sendTo("protectedFaceController", { type: "COMPLETE_RECORDING" });
|
|
1711
|
+
}),
|
|
1494
1712
|
sendProtectedAutoCapture: enqueueActions(({ enqueue, self, event }) => {
|
|
1495
1713
|
if (!isProtectedFaceControllerRunning(self)) return;
|
|
1496
1714
|
enqueue.sendTo("protectedFaceController", {
|
|
@@ -1980,7 +2198,7 @@ const faceCaptureMachine = setup({
|
|
|
1980
2198
|
}
|
|
1981
2199
|
] } },
|
|
1982
2200
|
success: {
|
|
1983
|
-
entry: "cleanup",
|
|
2201
|
+
entry: ["completeProtectedRecording", "cleanup"],
|
|
1984
2202
|
after: { 3e3: { target: "#faceCapture.processing" } }
|
|
1985
2203
|
}
|
|
1986
2204
|
}
|
|
@@ -2026,7 +2244,7 @@ const faceCaptureMachine = setup({
|
|
|
2026
2244
|
onError: { target: "finished" }
|
|
2027
2245
|
} },
|
|
2028
2246
|
terminalProcessing: {
|
|
2029
|
-
entry: "cleanup",
|
|
2247
|
+
entry: ["completeProtectedRecording", "cleanup"],
|
|
2030
2248
|
invoke: {
|
|
2031
2249
|
id: "processFace",
|
|
2032
2250
|
src: "processFace",
|
|
@@ -2055,7 +2273,11 @@ const faceCaptureMachine = setup({
|
|
|
2055
2273
|
type: "final"
|
|
2056
2274
|
},
|
|
2057
2275
|
error: {
|
|
2058
|
-
entry: [
|
|
2276
|
+
entry: [
|
|
2277
|
+
"completeProtectedRecording",
|
|
2278
|
+
"stopMediaStream",
|
|
2279
|
+
"releaseAvatarWarmup"
|
|
2280
|
+
],
|
|
2059
2281
|
on: { RESET: {
|
|
2060
2282
|
target: "idle",
|
|
2061
2283
|
actions: ["resetProtectedController", "resetContext"]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-C8OAO_CZ.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-
|
|
1
|
+
import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-DbCVMIBx.esm.js";
|
|
2
2
|
export { createFiscalQrManager, createFiscalQrManagerFromActor, fiscalQrMachine };
|
|
@@ -5,7 +5,7 @@ import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
|
5
5
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
7
7
|
import { o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
|
|
9
9
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
10
10
|
//#region src/modules/fiscal-qr/fiscalQrConstants.ts
|
|
11
11
|
const SUCCESS_DISPLAY_MS = 1500;
|