@incodetech/core 0.0.0-dev-20261104-d232b34d → 0.0.0-dev-20261104-94160b82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FaceDetectionProvider-BFgw_5eF.esm.js → FaceDetectionProvider-BfSAvrX7.esm.js} +6 -6
- package/dist/{WasmUtilProvider-DZOGC2HE.esm.js → WasmUtilProvider-BP6-08Yn.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-ttIOkGIK.esm.js → apiError-sqBXtr45.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CR_fq5bh.esm.js → authenticationManager-aMEaIyjw.esm.js} +4 -4
- package/dist/{authenticationStateMachine-CBWBTSJj.esm.js → authenticationStateMachine-CaCxBXgo.esm.js} +3 -3
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-sjhjBNVr.d.ts → consentManager-_q9yJUku.d.ts} +8 -8
- package/dist/{deepsightLoader-C3UeZzbt.esm.js → deepsightLoader-Bf1uEoOc.esm.js} +5 -5
- package/dist/{desktopCameraElection-CzF8HsJn.esm.js → desktopCameraElection-CdTFrOLn.esm.js} +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BfXguEU3.esm.js → documentCaptureManager-DaBAUwkL.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-DJPyCwQu.esm.js → documentCaptureStateMachine-C-oz2Xsl.esm.js} +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-3NZBXTG4.esm.js → dynamicFormsManager-J4UsQfkT.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D5NFOAPl.esm.js → dynamicFormsStateMachine-D6HLzP4H.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-Bq8JGTnk.esm.js → ekybManager-hJ__eTsq.esm.js} +1 -1
- package/dist/{ekybStateMachine-DLRhLoV3.esm.js → ekybStateMachine-Nal797Cg.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DDAy3zIV.esm.js → electronicSignatureManager-Dx9PSOH-.esm.js} +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +14 -14
- package/dist/{faceCaptureManagerFactory-Cx_CDFDq.esm.js → faceCaptureManagerFactory-BaMq2ZVo.esm.js} +3 -3
- package/dist/{faceCaptureSetup-DYUtINUM.esm.js → faceCaptureSetup-B_0FgV85.esm.js} +6 -6
- package/dist/{feature-management-C66SZEDL.esm.js → feature-management-BhYs1C34.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-YuqI4azX.esm.js → flowCompletionService-NydFGCBv.esm.js} +1 -1
- package/dist/{flowServices-BWF91GMY.esm.js → flowServices-CdK2Sw3S.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Ca-DEFoF.esm.js → geolocationManager-B42YgR5L.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BTXfrqED.esm.js → geolocationStateMachine-NJzq8xpJ.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BOIM1God.esm.js → idCaptureDefaults-CnAGmc1o.esm.js} +3 -3
- package/dist/{idCaptureManager-BEaYsvNH.esm.js → idCaptureManager-CtuEy0WO.esm.js} +5 -5
- package/dist/{idCaptureServices-RXC9AV7_.esm.js → idCaptureServices-0Q6st4Dn.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-C3SsVzb6.esm.js → idCaptureStateMachine-o0-DES4C.esm.js} +13 -13
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CH67X4Ne.d.ts → mandatoryConsentManager-RhTSUHGL.d.ts} +6 -6
- package/dist/{permissionGuards-Dck-ZReK.esm.js → permissionGuards-s7Qm6q8W.esm.js} +1 -1
- package/dist/{permissionServices-CJSZshmj.esm.js → permissionServices-RawRSsLZ.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-DLFQqWDV.esm.js → phoneManager-DdhJ-J4p.esm.js} +1 -1
- package/dist/{phoneStateMachine-BLFIfxPy.esm.js → phoneStateMachine-Bz9GaUmV.esm.js} +17 -7
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-Dve0WA-K.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-Dzap1AaS.esm.js} +38 -20
- package/dist/{runChildModule-JWt2_UUV.esm.js → runChildModule-DmlUtFxB.esm.js} +1 -1
- package/dist/{sdkVersion-ZxbKb54g.esm.js → sdkVersion-D52utpPm.esm.js} +1 -1
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-DftEGRgi.esm.js → selfieErrorUtils-WAWgBB4X.esm.js} +1 -1
- package/dist/{selfieManager-D5hyl7WE.esm.js → selfieManager-Bk1mTiWh.esm.js} +4 -4
- package/dist/{selfieStateMachine-CGJfSs1u.esm.js → selfieStateMachine-CxdXQtGc.esm.js} +3 -3
- package/dist/{session-oBhUqvZh.esm.js → session-CSvS9Iev.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CaWnG-zE.esm.js → sessionInitializer-BWutvsHw.esm.js} +10 -7
- package/dist/{setup-CMZ289O4.esm.js → setup-bkMJSmH2.esm.js} +22 -19
- package/dist/{trueSightService-DX02VRY8.esm.js → trueSightService-D-s-qcu5.esm.js} +2 -2
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-DEBK3d3D.esm.js → videoSelfieCameraWarmer-Db1s3fcO.esm.js} +5 -5
- package/dist/{warmup-DPfXWeBq.esm.js → warmup-BUnab2eW.esm.js} +24 -17
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-Ck2Lt6OY.esm.js → wasmDsFlagSync-DhJXZ9el.esm.js} +1 -1
- package/dist/{wasmWebClient-DClKyqNR.esm.js → wasmWebClient-CowdFxEv.esm.js} +12 -9
- package/dist/workflow.esm.js +19 -21
- package/package.json +1 -1
package/dist/{idCaptureStateMachine-C3SsVzb6.esm.js → idCaptureStateMachine-o0-DES4C.esm.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
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-
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-bkMJSmH2.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
4
4
|
import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-CQteqXfy.esm.js";
|
|
5
5
|
import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
6
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
7
|
-
import { n as getDisableIpify } from "./sessionInitializer-
|
|
6
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-D-s-qcu5.esm.js";
|
|
7
|
+
import { n as getDisableIpify } from "./sessionInitializer-BWutvsHw.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
9
|
+
import { s as exposeExperimentOnce } from "./feature-management-BhYs1C34.esm.js";
|
|
10
10
|
import { t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
11
11
|
import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
|
|
12
|
-
import "./session-
|
|
12
|
+
import "./session-CSvS9Iev.esm.js";
|
|
13
13
|
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, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
14
14
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
15
15
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-eYiyWjh0.esm.js";
|
|
16
16
|
import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
|
|
17
|
-
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-
|
|
18
|
-
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
17
|
+
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-RawRSsLZ.esm.js";
|
|
18
|
+
import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-CdTFrOLn.esm.js";
|
|
19
19
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
20
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
20
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-s7Qm6q8W.esm.js";
|
|
21
21
|
import { t as carryAttempts } from "./attemptCarry-C8NbkPlt.esm.js";
|
|
22
22
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
23
23
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
@@ -25,8 +25,8 @@ import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
|
25
25
|
import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
26
26
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
27
27
|
import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
|
|
28
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
29
|
-
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-
|
|
28
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CnAGmc1o.esm.js";
|
|
29
|
+
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-0Q6st4Dn.esm.js";
|
|
30
30
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
31
31
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
32
32
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
@@ -2031,7 +2031,7 @@ fromPromise(async ({ input }) => {
|
|
|
2031
2031
|
});
|
|
2032
2032
|
fromPromise(async ({ input }) => {
|
|
2033
2033
|
if (!input.dependencies) return;
|
|
2034
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2034
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Bf1uEoOc.esm.js");
|
|
2035
2035
|
return loadDeepsightSession({
|
|
2036
2036
|
ds: input.ds,
|
|
2037
2037
|
storage: input.dependencies.storage,
|
|
@@ -2474,7 +2474,7 @@ function cleanup(service) {
|
|
|
2474
2474
|
service.cleanup();
|
|
2475
2475
|
} catch {}
|
|
2476
2476
|
}
|
|
2477
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2477
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-Bf1uEoOc.esm.js")).loadDeepsightSession(input)) {
|
|
2478
2478
|
let disposed = false;
|
|
2479
2479
|
let preparation;
|
|
2480
2480
|
let service;
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-
|
|
1
|
+
import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
|
|
2
2
|
export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -120,6 +120,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
120
120
|
type: "setError";
|
|
121
121
|
params: NonReducibleUnknown;
|
|
122
122
|
};
|
|
123
|
+
clearError: {
|
|
124
|
+
type: "clearError";
|
|
125
|
+
params: NonReducibleUnknown;
|
|
126
|
+
};
|
|
123
127
|
setSelectedDocument: {
|
|
124
128
|
type: "setSelectedDocument";
|
|
125
129
|
params: NonReducibleUnknown;
|
|
@@ -128,10 +132,6 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
128
132
|
type: "setCompanyName";
|
|
129
133
|
params: NonReducibleUnknown;
|
|
130
134
|
};
|
|
131
|
-
clearError: {
|
|
132
|
-
type: "clearError";
|
|
133
|
-
params: NonReducibleUnknown;
|
|
134
|
-
};
|
|
135
135
|
}>, Values<{
|
|
136
136
|
hasDocuments: {
|
|
137
137
|
type: "hasDocuments";
|
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-bkMJSmH2.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-bn0ZpYF1.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-RhTSUHGL.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-CH67X4Ne.d.ts → mandatoryConsentManager-RhTSUHGL.d.ts}
RENAMED
|
@@ -57,22 +57,22 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
57
57
|
type: "setError";
|
|
58
58
|
params: NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
|
-
clearError: {
|
|
61
|
-
type: "clearError";
|
|
62
|
-
params: NonReducibleUnknown;
|
|
63
|
-
};
|
|
64
60
|
setLoadError: {
|
|
65
61
|
type: "setLoadError";
|
|
66
62
|
params: NonReducibleUnknown;
|
|
67
63
|
};
|
|
68
|
-
|
|
69
|
-
type: "
|
|
64
|
+
clearError: {
|
|
65
|
+
type: "clearError";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
72
68
|
resetContext: {
|
|
73
69
|
type: "resetContext";
|
|
74
70
|
params: NonReducibleUnknown;
|
|
75
71
|
};
|
|
72
|
+
toggleSigned: {
|
|
73
|
+
type: "toggleSigned";
|
|
74
|
+
params: NonReducibleUnknown;
|
|
75
|
+
};
|
|
76
76
|
}>, {
|
|
77
77
|
type: "canSubmit";
|
|
78
78
|
params: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as isWasmMotionPrimedForModule } from "./permissionServices-
|
|
1
|
+
import { s as isWasmMotionPrimedForModule } from "./permissionServices-RawRSsLZ.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,4 +1,4 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.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
4
|
import { a as stopCameraStream, c as isCameraGrantedInDocument, o as clearCameraGrantedInDocument, r as requestCameraAccess } from "./camera-E_Kcre4O.esm.js";
|
|
@@ -136,20 +136,22 @@ async function requestMotionPermission() {
|
|
|
136
136
|
/**
|
|
137
137
|
* Requests camera permission by attempting to access the camera, then immediately
|
|
138
138
|
* stops the obtained stream. When `requestMotion` is true (deepsight), requests
|
|
139
|
-
* motion OS permission, primes WASM sensors
|
|
140
|
-
* chain,
|
|
139
|
+
* motion OS permission first, then primes WASM sensors while it requests the
|
|
140
|
+
* camera — all in one user gesture chain, as in SDK v1.
|
|
141
141
|
*/
|
|
142
142
|
async function requestPermission(options = {}) {
|
|
143
143
|
try {
|
|
144
|
+
let motionPrimed;
|
|
144
145
|
if (options.requestMotion) {
|
|
145
146
|
const motionSensor = new MotionSensorProvider();
|
|
146
147
|
if (await resolveMotionOsPermission(motionSensor) === "denied") return "denied";
|
|
147
|
-
if (!isWasmMotionPrimedForModule())
|
|
148
|
+
if (!isWasmMotionPrimedForModule()) motionPrimed = primeWasmMotionSensor(motionSensor);
|
|
148
149
|
}
|
|
149
|
-
|
|
150
|
+
const [stream] = await Promise.all([requestCameraAccess({
|
|
150
151
|
video: true,
|
|
151
152
|
audio: options.requestAudio ?? false
|
|
152
|
-
}));
|
|
153
|
+
}), motionPrimed]);
|
|
154
|
+
stopCameraStream(stream);
|
|
153
155
|
return "granted";
|
|
154
156
|
} catch (error) {
|
|
155
157
|
const name = error instanceof Error ? error.name : void 0;
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
2
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import { t as phoneMachine } from "./phoneStateMachine-Bz9GaUmV.esm.js";
|
|
2
|
+
import { t as createPhoneManager } from "./phoneManager-DdhJ-J4p.esm.js";
|
|
3
3
|
export { createPhoneManager, phoneMachine };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
|
|
|
2
2
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
5
|
+
import { t as phoneMachine } from "./phoneStateMachine-Bz9GaUmV.esm.js";
|
|
6
6
|
//#region src/modules/phone/phoneActor.ts
|
|
7
7
|
function createPhoneActor(options) {
|
|
8
8
|
return createActor(phoneMachine, { input: { config: options.config } }).start();
|
|
@@ -99,6 +99,7 @@ const phoneMachine = setup({
|
|
|
99
99
|
setOptInGranted: assign(({ event }) => ({ optInGranted: event.granted })),
|
|
100
100
|
setError: assign(({ event }) => ({ error: getErrorMessage(event.error) })),
|
|
101
101
|
clearError: assign({ error: () => void 0 }),
|
|
102
|
+
settleLoad: assign({ pendingLoads: ({ context }) => context.pendingLoads - 1 }),
|
|
102
103
|
clearPhoneError: assign({ phoneError: () => void 0 }),
|
|
103
104
|
setOtpCode: assign(({ event }) => ({
|
|
104
105
|
otpCode: event.code,
|
|
@@ -141,6 +142,7 @@ const phoneMachine = setup({
|
|
|
141
142
|
prefilledPhone: void 0,
|
|
142
143
|
optInGranted: false,
|
|
143
144
|
startInfo: void 0,
|
|
145
|
+
pendingLoads: 0,
|
|
144
146
|
error: void 0,
|
|
145
147
|
otpCode: "",
|
|
146
148
|
otpError: void 0,
|
|
@@ -152,6 +154,7 @@ const phoneMachine = setup({
|
|
|
152
154
|
},
|
|
153
155
|
guards: {
|
|
154
156
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
157
|
+
areLoadsSettled: ({ context }) => context.pendingLoads === 0,
|
|
155
158
|
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
156
159
|
hasNoValidationErrors: ({ context }) => !context.validationErrors || Object.keys(context.validationErrors).length === 0,
|
|
157
160
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
@@ -174,6 +177,7 @@ const phoneMachine = setup({
|
|
|
174
177
|
prefilledPhone: void 0,
|
|
175
178
|
optInGranted: false,
|
|
176
179
|
startInfo: void 0,
|
|
180
|
+
pendingLoads: 0,
|
|
177
181
|
error: void 0,
|
|
178
182
|
otpCode: "",
|
|
179
183
|
otpError: void 0,
|
|
@@ -197,15 +201,21 @@ const phoneMachine = setup({
|
|
|
197
201
|
{ target: "loadingStartInfo" }
|
|
198
202
|
] } },
|
|
199
203
|
loadingPrefill: {
|
|
200
|
-
entry: "startLoadingPhoneRules",
|
|
201
|
-
invoke: {
|
|
204
|
+
entry: ["startLoadingPhoneRules", assign({ pendingLoads: () => 2 })],
|
|
205
|
+
invoke: [{
|
|
202
206
|
id: "fetchPhone",
|
|
203
207
|
src: "fetchPhone",
|
|
204
|
-
onDone: {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
onDone: { actions: ["setPrefilledPhone", "settleLoad"] },
|
|
209
|
+
onError: { actions: "settleLoad" }
|
|
210
|
+
}, {
|
|
211
|
+
id: "fetchStartInfo",
|
|
212
|
+
src: "fetchStartInfo",
|
|
213
|
+
onDone: { actions: ["setStartInfo", "settleLoad"] },
|
|
214
|
+
onError: { actions: "settleLoad" }
|
|
215
|
+
}],
|
|
216
|
+
always: {
|
|
217
|
+
target: "loadingPhoneRules",
|
|
218
|
+
guard: "areLoadsSettled"
|
|
209
219
|
}
|
|
210
220
|
},
|
|
211
221
|
loadingStartInfo: {
|
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-Dx9PSOH-.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-Dzap1AaS.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-Dve0WA-K.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-Dve0WA-K.esm.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
|
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-
|
|
5
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-Dzap1AaS.esm.js";
|
|
6
6
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
7
7
|
const POLL_INTERVAL_MS = 5e3;
|
|
8
8
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
|
@@ -58,7 +58,7 @@ function mapState(snapshot) {
|
|
|
58
58
|
const typedSnapshot = snapshot;
|
|
59
59
|
const { context } = typedSnapshot;
|
|
60
60
|
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
61
|
-
if (typedSnapshot.matches("generatingUrl")
|
|
61
|
+
if (typedSnapshot.matches("generatingUrl")) return { status: "loading" };
|
|
62
62
|
if (typedSnapshot.matches("showingQr")) return {
|
|
63
63
|
status: "redirecting",
|
|
64
64
|
redirectUrl: context.redirectUrl,
|
|
@@ -210,27 +210,45 @@ const redirectToMobileMachine = setup({
|
|
|
210
210
|
guard: "hasInvalidUrl",
|
|
211
211
|
actions: "setInvalidUrlError"
|
|
212
212
|
}, { target: "generatingUrl" }] } },
|
|
213
|
-
generatingUrl: {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
213
|
+
generatingUrl: {
|
|
214
|
+
type: "parallel",
|
|
215
|
+
states: {
|
|
216
|
+
redirectUrl: {
|
|
217
|
+
initial: "loading",
|
|
218
|
+
states: {
|
|
219
|
+
loading: { invoke: {
|
|
220
|
+
id: "fetchRedirectUrl",
|
|
221
|
+
src: "fetchRedirectUrl",
|
|
222
|
+
onDone: {
|
|
223
|
+
target: "done",
|
|
224
|
+
actions: "setBaseUrl"
|
|
225
|
+
},
|
|
226
|
+
onError: {
|
|
227
|
+
target: "#redirectToMobile.error",
|
|
228
|
+
actions: "setError"
|
|
229
|
+
}
|
|
230
|
+
} },
|
|
231
|
+
done: { type: "final" }
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
startInfo: {
|
|
235
|
+
initial: "loading",
|
|
236
|
+
states: {
|
|
237
|
+
loading: { invoke: {
|
|
238
|
+
id: "fetchStartInfo",
|
|
239
|
+
src: "fetchStartInfo",
|
|
240
|
+
onDone: {
|
|
241
|
+
target: "done",
|
|
242
|
+
actions: "setStartInfo"
|
|
243
|
+
},
|
|
244
|
+
onError: { target: "done" }
|
|
245
|
+
} },
|
|
246
|
+
done: { type: "final" }
|
|
247
|
+
}
|
|
248
|
+
}
|
|
231
249
|
},
|
|
232
|
-
|
|
233
|
-
}
|
|
250
|
+
onDone: { target: "showingQr" }
|
|
251
|
+
},
|
|
234
252
|
showingQr: {
|
|
235
253
|
type: "parallel",
|
|
236
254
|
states: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { w as createEventBus } from "./events-CQteqXfy.esm.js";
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-D-s-qcu5.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-bkMJSmH2.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
8
|
-
import { s as processFace } from "./FaceDetectionProvider-
|
|
9
|
-
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-B_0FgV85.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BaMq2ZVo.esm.js";
|
|
8
|
+
import { s as processFace } from "./FaceDetectionProvider-BfSAvrX7.esm.js";
|
|
9
|
+
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-CdTFrOLn.esm.js";
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-CxdXQtGc.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-Bk1mTiWh.esm.js";
|
|
12
12
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-CXIBwBeE.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* 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-BfSAvrX7.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,9 +1,9 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-bkMJSmH2.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BaMq2ZVo.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-CxdXQtGc.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.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-B_0FgV85.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-BfSAvrX7.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-WAWgBB4X.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-BO8JA7Pf.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-D-s-qcu5.esm.js";
|
|
3
|
+
import "./sessionInitializer-BWutvsHw.esm.js";
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-sqBXtr45.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-BO8JA7Pf.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
3
|
+
import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-BWutvsHw.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 { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-sqBXtr45.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-CSvS9Iev.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-NydFGCBv.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -2,10 +2,10 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
|
|
|
2
2
|
import { n as setWasmMetadataV2Enabled } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
|
|
3
3
|
import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
5
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-D-s-qcu5.esm.js";
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-D52utpPm.esm.js";
|
|
7
7
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
8
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
8
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BhYs1C34.esm.js";
|
|
9
9
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-BpMz-hTP.esm.js";
|
|
10
10
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
11
11
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
@@ -312,7 +312,7 @@ function createFingerprintSignalsReporter(deps) {
|
|
|
312
312
|
}
|
|
313
313
|
const fingerprintSignalsReporter = createFingerprintSignalsReporter({
|
|
314
314
|
getWasmUtil: async () => {
|
|
315
|
-
return (await import("./WasmUtilProvider-
|
|
315
|
+
return (await import("./WasmUtilProvider-BP6-08Yn.esm.js").then((n) => n.n)).WasmUtilProvider.getInstance();
|
|
316
316
|
},
|
|
317
317
|
getToken: () => getToken(),
|
|
318
318
|
post: async (url, body, headers) => (await api.post(url, body, { headers })).data,
|
|
@@ -692,8 +692,11 @@ var FingerprintProvider = class {
|
|
|
692
692
|
}
|
|
693
693
|
async getFingerprint(disableIpify = false) {
|
|
694
694
|
this.visitorIdPromise ??= getThumbmarkId();
|
|
695
|
-
const visitorId = await
|
|
696
|
-
|
|
695
|
+
const [visitorId, deviceInfo, ip] = await Promise.all([
|
|
696
|
+
this.visitorIdPromise,
|
|
697
|
+
getDeviceFingerprintInfo(),
|
|
698
|
+
disableIpify ? Promise.resolve("") : this.ipLookup.getIp()
|
|
699
|
+
]);
|
|
697
700
|
return {
|
|
698
701
|
visitorId,
|
|
699
702
|
ip,
|
|
@@ -908,7 +911,7 @@ function deviceHashSkipReason(activationOptedOut) {
|
|
|
908
911
|
function startSessionWasm(token, config) {
|
|
909
912
|
(async () => {
|
|
910
913
|
try {
|
|
911
|
-
const warmupModule = await import("./warmup-
|
|
914
|
+
const warmupModule = await import("./warmup-BUnab2eW.esm.js").then((n) => n.c);
|
|
912
915
|
const warmup = warmupModule.warmupWasm({
|
|
913
916
|
...config,
|
|
914
917
|
pipelines: []
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { P as setWasmIntegrityObserver, _ as setWasmDiagnosticsHandler, w as resolveWasmConfig, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-
|
|
2
|
-
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, s as warmupWasm } from "./warmup-
|
|
3
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
1
|
+
import { P as setWasmIntegrityObserver, _ as setWasmDiagnosticsHandler, w as resolveWasmConfig, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-CowdFxEv.esm.js";
|
|
2
|
+
import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, m as rearmWasmDiagnostics, n as getWarmupFacts, p as getWasmDiagnosticsMode, s as warmupWasm } from "./warmup-BUnab2eW.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
|
|
4
4
|
import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-CQteqXfy.esm.js";
|
|
5
5
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
6
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import { C as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig, w as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
6
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-D-s-qcu5.esm.js";
|
|
7
|
+
import { C as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig, w as fingerprintSignalsReporter } from "./sessionInitializer-BWutvsHw.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
9
9
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
10
|
-
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-
|
|
10
|
+
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-BhYs1C34.esm.js";
|
|
11
11
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BpMz-hTP.esm.js";
|
|
12
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
13
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-CdK2Sw3S.esm.js";
|
|
14
14
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
15
15
|
/**
|
|
16
16
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
|
@@ -562,19 +562,11 @@ async function setup(options) {
|
|
|
562
562
|
}
|
|
563
563
|
configured = true;
|
|
564
564
|
applyEnvironment(options.environment);
|
|
565
|
-
|
|
566
|
-
await warmupWasm(effectiveWasm);
|
|
567
|
-
await (await WasmUtilProvider.getInstance()).initialize({
|
|
568
|
-
...effectiveWasm,
|
|
569
|
-
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
570
|
-
});
|
|
571
|
-
fingerprintSignalsReporter.onWasmReady();
|
|
572
|
-
if (!options.devMode) startDevtoolsDetector();
|
|
573
|
-
}
|
|
565
|
+
let featureManagementReady;
|
|
574
566
|
if (!getIsFeatureManagementLocked()) if (options.featureManagement === false) optOutFeatureManagement();
|
|
575
567
|
else {
|
|
576
568
|
const featureManagementSetupOptions = typeof options.featureManagement === "object" ? options.featureManagement : {};
|
|
577
|
-
const
|
|
569
|
+
const initialization = initializeFeatureManagement({
|
|
578
570
|
environment: getEnvironment(),
|
|
579
571
|
clientExperimentId: featureManagementSetupOptions.clientExperimentId,
|
|
580
572
|
disableStableId: featureManagementSetupOptions.disableStableId,
|
|
@@ -583,10 +575,21 @@ async function setup(options) {
|
|
|
583
575
|
appVersion: featureManagementSetupOptions.appVersion,
|
|
584
576
|
redactedUserInfo: featureManagementSetupOptions.redactedUserInfo
|
|
585
577
|
});
|
|
586
|
-
if (featureManagementSetupOptions.awaitInitialization === true)
|
|
578
|
+
if (featureManagementSetupOptions.awaitInitialization === true) featureManagementReady = initialization;
|
|
587
579
|
}
|
|
588
580
|
else if (options.featureManagement !== void 0) console.error("[FeatureManagement] Feature management is locked after the first setup() call and cannot be changed (re-enabled, disabled, or reconfigured). Ignoring this change. Call reset() before changing it.");
|
|
589
|
-
|
|
581
|
+
const triReady = options.tri ? initializeTRI(options.tri, { sessionToken: options.token }) : void 0;
|
|
582
|
+
if (effectiveWasm) {
|
|
583
|
+
await warmupWasm(effectiveWasm);
|
|
584
|
+
await (await WasmUtilProvider.getInstance()).initialize({
|
|
585
|
+
...effectiveWasm,
|
|
586
|
+
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
587
|
+
});
|
|
588
|
+
fingerprintSignalsReporter.onWasmReady();
|
|
589
|
+
if (!options.devMode) startDevtoolsDetector();
|
|
590
|
+
}
|
|
591
|
+
await featureManagementReady;
|
|
592
|
+
await triReady;
|
|
590
593
|
}
|
|
591
594
|
/**
|
|
592
595
|
* Sets the WASM configuration without performing warmup.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as setWebApiHttpTransport, g as emitWasmDiagnostic, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError, w as resolveWasmConfig } from "./wasmWebClient-
|
|
1
|
+
import { a as setWebApiHttpTransport, g as emitWasmDiagnostic, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError, w as resolveWasmConfig } from "./wasmWebClient-CowdFxEv.esm.js";
|
|
2
2
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
3
3
|
import { C as subscribeEvent, n as eventModuleNames } from "./events-CQteqXfy.esm.js";
|
|
4
4
|
import { i as isApiConfigured, l as withTiming, n as getApi, o as setClient, r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-D52utpPm.esm.js";
|
|
6
6
|
import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
7
7
|
/** Dirty-timer half of the interrupted-snapshot rebuild debounce (module boundaries + timer). */
|
|
8
8
|
const SNAPSHOT_DIRTY_INTERVAL_MS = 15e3;
|