@incodetech/core 0.0.0-dev-20260819-1c04894b → 0.0.0-dev-20260819-588cf821
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-BzL_V7yb.esm.js → BrowserDiagnosticsCryptoProvider-CYEBHxM-.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-jP0cswDJ.esm.js → apiError-DjfnJEmY.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CQsYqM6S.esm.js → authenticationManager-Djd5VRUN.esm.js} +2 -2
- package/dist/{authenticationStateMachine-jNp2tJ6j.esm.js → authenticationStateMachine-CWI30EGE.esm.js} +2 -2
- package/dist/{backCameraStream-BMGalshK.esm.js → backCameraStream-DtkmDQo7.esm.js} +6 -2
- package/dist/camera.esm.js +1 -1
- package/dist/{deepsightLoader-BDlGUqao.esm.js → deepsightLoader-Cx7VIdZs.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-CIQSsmZe.d.ts → documentCaptureManager-B3t0ydtg.d.ts} +4 -4
- package/dist/{documentCaptureManager-2FoxNacZ.esm.js → documentCaptureManager-qEXTbJmQ.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-fk7MDfSZ.esm.js → documentCaptureStateMachine-DXfStru4.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-f7Y9kUiR.esm.js → dynamicFormsManager-7O0OYLKC.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CDmy6eXI.esm.js → dynamicFormsStateMachine-BhxBhuUG.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DQ_SfoWF.esm.js → ekybManager-DU3ehxwx.esm.js} +1 -1
- package/dist/{ekybStateMachine-ZzqtUkd-.esm.js → ekybStateMachine-B5r4Ovj1.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-D633yGbz.esm.js → electronicSignatureManager-eINhsO8o.esm.js} +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureManagerFactory-CPf4an47.esm.js → faceCaptureManagerFactory-CE-6YvEi.esm.js} +2 -2
- package/dist/{faceCaptureSetup-XzhL3jrY.esm.js → faceCaptureSetup-DlttCnYM.esm.js} +4 -4
- package/dist/{feature-management-CkGxQul1.esm.js → feature-management-Cd9XIX1T.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DEgB0YYR.esm.js → fiscalQrManager-CP5XlFP0.esm.js} +1 -1
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-YG3VycUU.esm.js → flowCompletionService-CwmhqmA6.esm.js} +1 -1
- package/dist/{flowServices-C_Z7Pjvd.esm.js → flowServices-BtS-fOVI.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-AmYuocQ3.esm.js → geolocationManager-BqsxPcAd.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DSe6SL-7.esm.js → geolocationStateMachine-BxXAG2Et.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-LCsgD9lb.d.ts → idCaptureManager-BfgptftY.d.ts} +5 -1
- package/dist/{idCaptureManager-CykSLyn3.esm.js → idCaptureManager-Bn1CF1jN.esm.js} +4 -3
- package/dist/{idCaptureServices-DoVKk86g.esm.js → idCaptureServices-CZwsPLMG.esm.js} +187 -5
- package/dist/{idCaptureStateMachine-D4UGjQNy.esm.js → idCaptureStateMachine-CUZyF8Bl.esm.js} +36 -17
- package/dist/index.esm.js +1 -1
- package/dist/{onDeviceFaceResults-BYl2hbuy.esm.js → onDeviceFaceResults-B7628vP4.esm.js} +4 -4
- package/dist/{permissionGuards-BEgOUwwQ.esm.js → permissionGuards-DJNYwEOq.esm.js} +1 -1
- package/dist/{permissionServices-BPUkbztJ.esm.js → permissionServices-Dgtg_4Lv.esm.js} +1 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DxbuJNac.esm.js → recordingService-D8KodYem.esm.js} +1 -1
- package/dist/{runChildModule-CkKzUrQR.esm.js → runChildModule-CL2hhhUD.esm.js} +1 -1
- package/dist/{sdkVersion-_0-FMgKd.esm.js → sdkVersion-BHGhwczw.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DhPMKYxo.esm.js → selfieManager-DDlagDor.esm.js} +2 -2
- package/dist/{selfieStateMachine-DkECDdim.esm.js → selfieStateMachine-CEZ0hvCQ.esm.js} +2 -2
- package/dist/{session-BoCg9kCK.esm.js → session-BDsfrJHD.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-DtcaH34N.esm.js → sessionInitializer-BMj0ulTi.esm.js} +4 -4
- package/dist/{setup-Ccd6xV05.esm.js → setup-6Ab1eT8N.esm.js} +5 -5
- package/dist/trueSight-B-rervIk.esm.js +1 -0
- package/dist/{trueSightService-CTZ8wqNF.esm.js → trueSightService-CFXnK5HX.esm.js} +2 -2
- package/dist/{types-XXfuK9d8.d.ts → types-rpRSIpv4.d.ts} +2 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DxxDSvmQ.esm.js → videoSelfieCameraWarmer-CEFb7dCk.esm.js} +4 -4
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/trueSight-Bl-iCeAC.esm.js +0 -1
|
@@ -4,9 +4,9 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
|
4
4
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Dd7Yj25O.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
|
-
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
7
|
+
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CUZyF8Bl.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-CZwsPLMG.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -215,6 +215,7 @@ function mapCaptureState(snapshot, context) {
|
|
|
215
215
|
status: "capture",
|
|
216
216
|
captureStatus,
|
|
217
217
|
stream: context.stream,
|
|
218
|
+
usingBackCamera: context.usingBackCamera ?? true,
|
|
218
219
|
detectionStatus: context.detectionStatus,
|
|
219
220
|
attemptsRemaining: context.attemptsRemaining,
|
|
220
221
|
uploadError,
|
|
@@ -1,12 +1,192 @@
|
|
|
1
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Cd9XIX1T.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-Q4r1nvWX.esm.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
5
|
+
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
|
+
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
+
import { s as queryCameraPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
8
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-B7628vP4.esm.js";
|
|
9
|
+
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-DtkmDQo7.esm.js";
|
|
7
10
|
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
8
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
11
|
+
import { n as preloadOpenViduProvider } from "./recordingService-D8KodYem.esm.js";
|
|
9
12
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dowxd3J3.esm.js";
|
|
13
|
+
//#region src/internal/camera/cameraServices.ts
|
|
14
|
+
function createCameraServices(camera) {
|
|
15
|
+
return {
|
|
16
|
+
async checkPermission() {
|
|
17
|
+
return queryCameraPermission();
|
|
18
|
+
},
|
|
19
|
+
async requestStream(config) {
|
|
20
|
+
return camera.requestStream({
|
|
21
|
+
facingMode: config.facingMode,
|
|
22
|
+
deviceId: config.deviceId
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
stopStream(stream) {
|
|
26
|
+
camera.stopStream(stream);
|
|
27
|
+
},
|
|
28
|
+
captureFrame(video) {
|
|
29
|
+
return camera.captureFrame(video);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
setup({
|
|
34
|
+
types: {
|
|
35
|
+
context: {},
|
|
36
|
+
events: {},
|
|
37
|
+
input: {}
|
|
38
|
+
},
|
|
39
|
+
actors: {
|
|
40
|
+
checkPermission: fromPromise(async ({ input }) => {
|
|
41
|
+
return createCameraServices(input.camera).checkPermission();
|
|
42
|
+
}),
|
|
43
|
+
requestStream: fromPromise(async ({ input }) => {
|
|
44
|
+
return createCameraServices(input.camera).requestStream(input.config);
|
|
45
|
+
})
|
|
46
|
+
},
|
|
47
|
+
actions: {
|
|
48
|
+
setPermissionResult: assign({ permissionResult: ({ event }) => {
|
|
49
|
+
if ("output" in event) return event.output;
|
|
50
|
+
if (event.type === "PERMISSION_RESULT") return event.result;
|
|
51
|
+
} }),
|
|
52
|
+
setStream: assign({ stream: ({ event }) => {
|
|
53
|
+
if ("output" in event) return event.output;
|
|
54
|
+
if (event.type === "STREAM_READY") return event.stream;
|
|
55
|
+
} }),
|
|
56
|
+
setError: assign({
|
|
57
|
+
error: ({ event }) => {
|
|
58
|
+
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
59
|
+
const err = event.error;
|
|
60
|
+
return err.message || String(err);
|
|
61
|
+
}
|
|
62
|
+
if (event.type === "STREAM_ERROR") return event.error;
|
|
63
|
+
},
|
|
64
|
+
errorType: ({ event }) => {
|
|
65
|
+
if ("error" in event && event.type?.startsWith?.("xstate.error")) {
|
|
66
|
+
const err = event.error;
|
|
67
|
+
if (err.name === "NotAllowedError") return "permission_denied";
|
|
68
|
+
if (err.name === "NotFoundError") return "not_found";
|
|
69
|
+
if (err.name === "NotReadableError") return "not_readable";
|
|
70
|
+
if (err.name === "OverconstrainedError") return "overconstrained";
|
|
71
|
+
if (err.name === "SecurityError") return "security";
|
|
72
|
+
if (err.name === "AbortError") return "abort";
|
|
73
|
+
return "unknown";
|
|
74
|
+
}
|
|
75
|
+
if (event.type === "STREAM_ERROR") return event.errorType;
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
stopStream: ({ context }) => {
|
|
79
|
+
if (context.stream) createCameraServices(context.camera).stopStream(context.stream);
|
|
80
|
+
},
|
|
81
|
+
resetContext: assign(({ context }) => ({
|
|
82
|
+
camera: context.camera,
|
|
83
|
+
config: context.config,
|
|
84
|
+
stream: void 0,
|
|
85
|
+
permissionResult: void 0,
|
|
86
|
+
error: void 0,
|
|
87
|
+
errorType: void 0
|
|
88
|
+
}))
|
|
89
|
+
},
|
|
90
|
+
guards: {
|
|
91
|
+
permissionGranted: ({ context }) => context.permissionResult === "granted",
|
|
92
|
+
permissionDenied: ({ context }) => context.permissionResult === "denied",
|
|
93
|
+
hasStream: ({ context }) => context.stream !== void 0
|
|
94
|
+
}
|
|
95
|
+
}).createMachine({
|
|
96
|
+
id: "camera",
|
|
97
|
+
initial: "idle",
|
|
98
|
+
context: ({ input }) => ({
|
|
99
|
+
camera: input.camera,
|
|
100
|
+
config: input.config ?? {},
|
|
101
|
+
stream: void 0,
|
|
102
|
+
permissionResult: void 0,
|
|
103
|
+
error: void 0,
|
|
104
|
+
errorType: void 0
|
|
105
|
+
}),
|
|
106
|
+
states: {
|
|
107
|
+
idle: { on: { START: "checkingPermission" } },
|
|
108
|
+
checkingPermission: {
|
|
109
|
+
invoke: {
|
|
110
|
+
id: "checkPermission",
|
|
111
|
+
src: "checkPermission",
|
|
112
|
+
input: ({ context }) => ({ camera: context.camera }),
|
|
113
|
+
onDone: {
|
|
114
|
+
target: "routing",
|
|
115
|
+
actions: "setPermissionResult"
|
|
116
|
+
},
|
|
117
|
+
onError: {
|
|
118
|
+
target: "routing",
|
|
119
|
+
actions: assign({ permissionResult: () => "prompt" })
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
on: { STOP: {
|
|
123
|
+
target: "idle",
|
|
124
|
+
actions: "resetContext"
|
|
125
|
+
} }
|
|
126
|
+
},
|
|
127
|
+
routing: { always: [
|
|
128
|
+
{
|
|
129
|
+
target: "requesting",
|
|
130
|
+
guard: "permissionGranted"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
target: "error",
|
|
134
|
+
guard: "permissionDenied",
|
|
135
|
+
actions: assign({
|
|
136
|
+
error: () => "Camera permission denied",
|
|
137
|
+
errorType: () => "permission_denied"
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
{ target: "requesting" }
|
|
141
|
+
] },
|
|
142
|
+
requesting: {
|
|
143
|
+
invoke: {
|
|
144
|
+
id: "requestStream",
|
|
145
|
+
src: "requestStream",
|
|
146
|
+
input: ({ context }) => ({
|
|
147
|
+
camera: context.camera,
|
|
148
|
+
config: context.config
|
|
149
|
+
}),
|
|
150
|
+
onDone: {
|
|
151
|
+
target: "streaming",
|
|
152
|
+
actions: "setStream"
|
|
153
|
+
},
|
|
154
|
+
onError: {
|
|
155
|
+
target: "error",
|
|
156
|
+
actions: "setError"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
on: { STOP: {
|
|
160
|
+
target: "idle",
|
|
161
|
+
actions: "resetContext"
|
|
162
|
+
} }
|
|
163
|
+
},
|
|
164
|
+
streaming: {
|
|
165
|
+
exit: "stopStream",
|
|
166
|
+
on: {
|
|
167
|
+
STOP: {
|
|
168
|
+
target: "idle",
|
|
169
|
+
actions: "resetContext"
|
|
170
|
+
},
|
|
171
|
+
RESET: {
|
|
172
|
+
target: "idle",
|
|
173
|
+
actions: "resetContext"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
error: { on: {
|
|
178
|
+
RESET: {
|
|
179
|
+
target: "idle",
|
|
180
|
+
actions: "resetContext"
|
|
181
|
+
},
|
|
182
|
+
STOP: {
|
|
183
|
+
target: "idle",
|
|
184
|
+
actions: "resetContext"
|
|
185
|
+
}
|
|
186
|
+
} }
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
//#endregion
|
|
10
190
|
//#region src/modules/id/idCameraStream.ts
|
|
11
191
|
async function getIdCameraStream(deviceId) {
|
|
12
192
|
return getBackCameraStream(deviceId);
|
|
@@ -143,11 +323,13 @@ async function initializeIdCapture(params) {
|
|
|
143
323
|
if (typeof settings.width === "number" && typeof settings.height === "number") captureResolution = `${settings.width}x${settings.height}`;
|
|
144
324
|
}
|
|
145
325
|
if (deepsightService && videoTrack) deepsightService.metadata.updateCameraInfo(videoTrack);
|
|
326
|
+
const usingBackCamera = videoTrack ? isBackFacingTrack(videoTrack) : true;
|
|
146
327
|
return {
|
|
147
328
|
stream,
|
|
148
329
|
provider,
|
|
149
330
|
captureResolution,
|
|
150
|
-
cameraFallbackLevel: fallbackLevel
|
|
331
|
+
cameraFallbackLevel: fallbackLevel,
|
|
332
|
+
usingBackCamera
|
|
151
333
|
};
|
|
152
334
|
}
|
|
153
335
|
function stopStream(stream) {
|
package/dist/{idCaptureStateMachine-D4UGjQNy.esm.js → idCaptureStateMachine-CUZyF8Bl.esm.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
2
|
+
import { s as exposeExperimentOnce } from "./feature-management-Cd9XIX1T.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CFXnK5HX.esm.js";
|
|
6
6
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-DYiyoSlx.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-BMj0ulTi.esm.js";
|
|
8
|
+
import "./trueSight-B-rervIk.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-BDsfrJHD.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
14
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-B7628vP4.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
18
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
19
19
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
21
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DJNYwEOq.esm.js";
|
|
22
22
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-CZwsPLMG.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1284,7 +1284,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1284
1284
|
});
|
|
1285
1285
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1286
1286
|
if (!input.dependencies) return;
|
|
1287
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1287
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Cx7VIdZs.esm.js");
|
|
1288
1288
|
return loadDeepsightSession({
|
|
1289
1289
|
ds: input.ds,
|
|
1290
1290
|
storage: input.dependencies.storage,
|
|
@@ -1352,6 +1352,9 @@ function getCaptureResolutionFromEvent(event) {
|
|
|
1352
1352
|
function getCameraFallbackLevelFromEvent(event) {
|
|
1353
1353
|
if ("output" in event) return event.output.cameraFallbackLevel;
|
|
1354
1354
|
}
|
|
1355
|
+
function getUsingBackCameraFromEvent(event) {
|
|
1356
|
+
if ("output" in event) return event.output.usingBackCamera;
|
|
1357
|
+
}
|
|
1355
1358
|
function getFrameCapturerFromEvent(event) {
|
|
1356
1359
|
if ("output" in event) {
|
|
1357
1360
|
const output = event.output;
|
|
@@ -1394,7 +1397,8 @@ function getResetContextValues(context) {
|
|
|
1394
1397
|
selectedDocumentType: void 0,
|
|
1395
1398
|
manualCaptureTriggered: false,
|
|
1396
1399
|
captureResolution: void 0,
|
|
1397
|
-
cameraFallbackLevel: void 0
|
|
1400
|
+
cameraFallbackLevel: void 0,
|
|
1401
|
+
usingBackCamera: void 0
|
|
1398
1402
|
};
|
|
1399
1403
|
}
|
|
1400
1404
|
function getClearUploadFailureValues(context) {
|
|
@@ -1594,6 +1598,8 @@ function getBarcodeResponseValues(context, event) {
|
|
|
1594
1598
|
* other capture option enabled — there is nothing to capture (ENG-43983).
|
|
1595
1599
|
*/
|
|
1596
1600
|
const ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR = "ID capture module has no accepted documents and no capture option enabled";
|
|
1601
|
+
/** Watchdog for `uploading`: give up and surface a retryable error if the upload never settles. */
|
|
1602
|
+
const UPLOAD_TIMEOUT_MS = 25e3;
|
|
1597
1603
|
function getIdErrorCodeFromUnknown(error) {
|
|
1598
1604
|
if (error instanceof Error) {
|
|
1599
1605
|
const message = error.message;
|
|
@@ -1665,7 +1671,8 @@ const idCaptureMachine = setup({
|
|
|
1665
1671
|
exhaustedFromUpload: false,
|
|
1666
1672
|
forceFinishAfterProcessing: false,
|
|
1667
1673
|
captureResolution: void 0,
|
|
1668
|
-
cameraFallbackLevel: void 0
|
|
1674
|
+
cameraFallbackLevel: void 0,
|
|
1675
|
+
usingBackCamera: void 0
|
|
1669
1676
|
};
|
|
1670
1677
|
}),
|
|
1671
1678
|
resetForFrontCapture: assign(({ context }) => {
|
|
@@ -1694,7 +1701,8 @@ const idCaptureMachine = setup({
|
|
|
1694
1701
|
exhaustedFromUpload: false,
|
|
1695
1702
|
forceFinishAfterProcessing: false,
|
|
1696
1703
|
captureResolution: void 0,
|
|
1697
|
-
cameraFallbackLevel: void 0
|
|
1704
|
+
cameraFallbackLevel: void 0,
|
|
1705
|
+
usingBackCamera: void 0
|
|
1698
1706
|
};
|
|
1699
1707
|
}),
|
|
1700
1708
|
clearFlipPreview: assign({ flipPreview: void 0 }),
|
|
@@ -1719,12 +1727,14 @@ const idCaptureMachine = setup({
|
|
|
1719
1727
|
provider: ({ event }) => getProviderFromEvent(event),
|
|
1720
1728
|
frameCapturer: ({ event }) => getFrameCapturerFromEvent(event),
|
|
1721
1729
|
captureResolution: ({ event }) => getCaptureResolutionFromEvent(event),
|
|
1722
|
-
cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event)
|
|
1730
|
+
cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event),
|
|
1731
|
+
usingBackCamera: ({ event }) => getUsingBackCameraFromEvent(event)
|
|
1723
1732
|
}),
|
|
1724
1733
|
setPermissionResultAndStream: assign({
|
|
1725
1734
|
permissionResult: ({ context, event }) => getPermissionResultFromEvent(event) ?? context.permissionResult,
|
|
1726
1735
|
stream: ({ context, event }) => getStreamFromEvent(event) ?? context.stream,
|
|
1727
|
-
cameraFallbackLevel: ({ context, event }) => getCameraFallbackLevelFromEvent(event) ?? context.cameraFallbackLevel
|
|
1736
|
+
cameraFallbackLevel: ({ context, event }) => getCameraFallbackLevelFromEvent(event) ?? context.cameraFallbackLevel,
|
|
1737
|
+
usingBackCamera: ({ context, event }) => getUsingBackCameraFromEvent(event) ?? context.usingBackCamera
|
|
1728
1738
|
}),
|
|
1729
1739
|
trackTutorialId: () => {},
|
|
1730
1740
|
trackContinue: () => {},
|
|
@@ -1757,7 +1767,8 @@ const idCaptureMachine = setup({
|
|
|
1757
1767
|
provider: void 0,
|
|
1758
1768
|
frameCapturer: void 0,
|
|
1759
1769
|
captureResolution: void 0,
|
|
1760
|
-
cameraFallbackLevel: void 0
|
|
1770
|
+
cameraFallbackLevel: void 0,
|
|
1771
|
+
usingBackCamera: void 0
|
|
1761
1772
|
};
|
|
1762
1773
|
}),
|
|
1763
1774
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
|
|
@@ -1920,7 +1931,8 @@ const idCaptureMachine = setup({
|
|
|
1920
1931
|
deepsightInitAttempted: false,
|
|
1921
1932
|
availableDocumentTypes: getAvailableDocumentTypes(input.config),
|
|
1922
1933
|
captureResolution: void 0,
|
|
1923
|
-
cameraFallbackLevel: void 0
|
|
1934
|
+
cameraFallbackLevel: void 0,
|
|
1935
|
+
usingBackCamera: void 0
|
|
1924
1936
|
};
|
|
1925
1937
|
},
|
|
1926
1938
|
on: {
|
|
@@ -2493,6 +2505,13 @@ const idCaptureMachine = setup({
|
|
|
2493
2505
|
}))
|
|
2494
2506
|
}
|
|
2495
2507
|
}],
|
|
2508
|
+
after: { [UPLOAD_TIMEOUT_MS]: {
|
|
2509
|
+
target: "uploadError",
|
|
2510
|
+
actions: assign(({ context }) => ({
|
|
2511
|
+
uploadError: ID_ERROR_CODES.UPLOAD_ERROR,
|
|
2512
|
+
attemptsRemaining: context.attemptsRemaining - 1
|
|
2513
|
+
}))
|
|
2514
|
+
} },
|
|
2496
2515
|
on: {
|
|
2497
2516
|
UPLOAD_PROGRESS: { actions: assign({ uploadProgress: ({ context, event }) => Math.max(context.uploadProgress ?? 0, Math.round(event.progress / 100 * 80)) }) },
|
|
2498
2517
|
UPLOAD_PROGRESS_TICK: { actions: assign({ uploadProgress: ({ context }) => Math.min(95, (context.uploadProgress ?? 0) + 1) }) }
|
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-6Ab1eT8N.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as mlWasmJSApi_default, i as BaseWasmProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
3
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CFXnK5HX.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
5
|
+
import "./trueSight-B-rervIk.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { i as isDesktop, s as isIPhone14OrHigher } from "./platform-Q4r1nvWX.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
9
9
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
10
10
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
11
|
-
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-
|
|
11
|
+
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-DtkmDQo7.esm.js";
|
|
12
12
|
//#region ../infra/src/scheduling/yieldUntilNextPaint.ts
|
|
13
13
|
/**
|
|
14
14
|
* Resolves after the browser has had a chance to commit and paint a queued
|
|
@@ -523,7 +523,7 @@ async function stopRecording(session) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
async function initializeDeepsightSession(options) {
|
|
526
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
526
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Cx7VIdZs.esm.js");
|
|
527
527
|
return loadDeepsightSession({
|
|
528
528
|
ds: options.ds,
|
|
529
529
|
storage: options.storage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { a as isWasmMotionPrimedForModule } from "./permissionServices-Dgtg_4Lv.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;
|
|
@@ -139,4 +139,4 @@ async function invokeRequestPermissionActor(input) {
|
|
|
139
139
|
return requestPermission({ requestMotion: true });
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
|
-
export { isWasmMotionPrimedForModule as a, requestPermission as i, invokeRequestPermissionActor as n, resetWasmMotionPrimedForModule as o, primeMotionFromUserGestureIfNeeded as r, checkPermission as t };
|
|
142
|
+
export { isWasmMotionPrimedForModule as a, requestPermission as i, invokeRequestPermissionActor as n, resetWasmMotionPrimedForModule as o, primeMotionFromUserGestureIfNeeded as r, queryCameraPermission as s, checkPermission as t };
|
package/dist/personhood.esm.js
CHANGED
|
@@ -2,15 +2,15 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-
|
|
5
|
+
import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-CFXnK5HX.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
7
|
-
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-BMj0ulTi.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
12
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
12
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-B7628vP4.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-eINhsO8o.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
2
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
2
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-B7628vP4.esm.js";
|
|
3
3
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
|
|
4
4
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
5
5
|
async function getDurationBySeek(videoBlob) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CFXnK5HX.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.e
|
|
|
3
3
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DlttCnYM.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CE-6YvEi.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-CEZ0hvCQ.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DDlagDor.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CE-6YvEi.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-CEZ0hvCQ.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-DlttCnYM.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-B7628vP4.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieStateMachine.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-CFXnK5HX.esm.js";
|
|
3
|
+
import "./sessionInitializer-BMj0ulTi.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import "./trueSight-B-rervIk.esm.js";
|
|
6
|
+
import { r as toIncodeApiError } from "./apiError-DjfnJEmY.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
9
9
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession } from "./sessionInitializer-BMj0ulTi.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-DjfnJEmY.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BDsfrJHD.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-CwmhqmA6.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Cd9XIX1T.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-
|
|
3
|
+
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-CFXnK5HX.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-BHGhwczw.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
7
|
-
import "./trueSight-
|
|
7
|
+
import "./trueSight-B-rervIk.esm.js";
|
|
8
8
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
|
|
9
9
|
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
10
10
|
import { a as isIOS } from "./platform-Q4r1nvWX.esm.js";
|
|
@@ -2,17 +2,17 @@ import { a as resolveWasmConfig } from "./wasmDefaults-BrwMccqW.esm.js";
|
|
|
2
2
|
import { o as setWasmOnDeviceMode, r as WasmUtilProvider, s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
|
|
3
3
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
5
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-Cd9XIX1T.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-
|
|
8
|
+
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-CFXnK5HX.esm.js";
|
|
9
9
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
|
|
10
|
-
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
10
|
+
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-BMj0ulTi.esm.js";
|
|
11
11
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
12
|
-
import "./trueSight-
|
|
12
|
+
import "./trueSight-B-rervIk.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
15
|
-
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-
|
|
15
|
+
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-BtS-fOVI.esm.js";
|
|
16
16
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
17
17
|
var BrowserPageLifecycleProvider = class {
|
|
18
18
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-CFXnK5HX.esm.js";
|
|
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWa
|
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-BHGhwczw.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
|
@@ -1320,7 +1320,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1320
|
* the service's prewarm).
|
|
1321
1321
|
*/
|
|
1322
1322
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1323
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-CYEBHxM-.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1324
|
return cryptoProviderPromise;
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
|
@@ -423,6 +423,8 @@ type IdCaptureContext = {
|
|
|
423
423
|
captureResolution?: string;
|
|
424
424
|
/** Android camera access fallback level that succeeded */
|
|
425
425
|
cameraFallbackLevel?: number;
|
|
426
|
+
/** Whether the live `stream` is genuinely the rear camera. */
|
|
427
|
+
usingBackCamera?: boolean;
|
|
426
428
|
};
|
|
427
429
|
type IdCaptureEvent = {
|
|
428
430
|
type: 'LOAD';
|