@incodetech/core 2.3.0-rc.10 → 2.3.0-rc.11

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.
Files changed (49) hide show
  1. package/dist/{FaceDetectionProvider-BZYHujqz.esm.js → FaceDetectionProvider-D5FNNkoJ.esm.js} +4 -4
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-iTFZ5fiI.esm.js → apiError-BmktKO7R.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-D22ju23T.esm.js → authenticationManager-CSCtXfWz.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-TyFaCegB.esm.js → authenticationStateMachine-BBPaXbO0.esm.js} +2 -2
  7. package/dist/{deepsightLoader-DamOBrBJ.esm.js → deepsightLoader-U24VrP2r.esm.js} +3 -3
  8. package/dist/dynamic-forms.esm.js +2 -2
  9. package/dist/{dynamicFormsManager-DKgiusbF.esm.js → dynamicFormsManager-DJ9GQ1HY.esm.js} +1 -1
  10. package/dist/{dynamicFormsStateMachine-BV8yR5iN.esm.js → dynamicFormsStateMachine-D6oLfWyM.esm.js} +1 -1
  11. package/dist/ekyb.esm.js +3 -3
  12. package/dist/{ekybManager-8VUBu8VW.esm.js → ekybManager-BDtwhSrQ.esm.js} +1 -1
  13. package/dist/{ekybStateMachine-Bnsefu9M.esm.js → ekybStateMachine-B4qbgC_I.esm.js} +1 -1
  14. package/dist/electronic-signature.esm.js +1 -1
  15. package/dist/{electronicSignatureManager--YFXVldr.esm.js → electronicSignatureManager-i9KSHGcI.esm.js} +1 -1
  16. package/dist/extensibility.esm.js +10 -10
  17. package/dist/{faceCaptureManagerFactory-Bk6pVs6E.esm.js → faceCaptureManagerFactory-Df6oe5Zi.esm.js} +1 -1
  18. package/dist/{faceCaptureSetup-CGQDK97m.esm.js → faceCaptureSetup-DrJvjpVf.esm.js} +3 -3
  19. package/dist/{feature-management-C8OAO_CZ.esm.js → feature-management-CT71kF7K.esm.js} +1 -1
  20. package/dist/feature-management.esm.js +1 -1
  21. package/dist/flow.esm.js +3 -3
  22. package/dist/{flowCompletionService-C0zcPnqK.esm.js → flowCompletionService-DbMQ7zEQ.esm.js} +1 -1
  23. package/dist/{flowServices-G1FDrkLd.esm.js → flowServices-ZXug3wzs.esm.js} +4 -4
  24. package/dist/geolocation.esm.js +2 -2
  25. package/dist/{geolocationManager-DNixQOgf.esm.js → geolocationManager-DbfRyrLW.esm.js} +1 -1
  26. package/dist/{geolocationStateMachine-D1aZJ6eR.esm.js → geolocationStateMachine-CP8_KHBU.esm.js} +1 -1
  27. package/dist/id-selfie-flow.esm.js +7 -7
  28. package/dist/id.esm.js +3 -3
  29. package/dist/{idCaptureDefaults-sJahGQgV.esm.js → idCaptureDefaults-CqdpEg3N.esm.js} +1 -1
  30. package/dist/{idCaptureManager-B8lo-ksK.esm.js → idCaptureManager-Bs6p5LKF.esm.js} +3 -3
  31. package/dist/{idCaptureServices-DLqls7Xv.esm.js → idCaptureServices-xi9Pthk2.esm.js} +3 -3
  32. package/dist/{idCaptureStateMachine-CCPGFPRF.esm.js → idCaptureStateMachine-BYgxfqHv.esm.js} +9 -9
  33. package/dist/index.esm.js +1 -1
  34. package/dist/qe-signature.esm.js +1 -1
  35. package/dist/{runChildModule-B3Z4iJnG.esm.js → runChildModule-BhK3islQ.esm.js} +1 -1
  36. package/dist/{sdkVersion-CD9fJC2Y.esm.js → sdkVersion-B8ok4TX0.esm.js} +1 -1
  37. package/dist/selfie.esm.js +5 -5
  38. package/dist/{selfieManager-DzOPNipB.esm.js → selfieManager-CGWnCp26.esm.js} +3 -3
  39. package/dist/{selfieStateMachine-CidiobBW.esm.js → selfieStateMachine-B27MSUWB.esm.js} +2 -2
  40. package/dist/{session-BABCfUhC.esm.js → session-BRsgJ-Ek.esm.js} +3 -3
  41. package/dist/session.esm.js +4 -4
  42. package/dist/{sessionInitializer-BK5NjMe0.esm.js → sessionInitializer-NKOKaYzH.esm.js} +3 -3
  43. package/dist/{setup-D4YCSH31.esm.js → setup-BqZsYdcN.esm.js} +4 -4
  44. package/dist/{trueSightService-D8yZwF3G.esm.js → trueSightService-CvCQ1O8I.esm.js} +1 -1
  45. package/dist/video-selfie.esm.js +55 -10
  46. package/dist/{videoSelfieCameraWarmer-C80ZPDZ8.esm.js → videoSelfieCameraWarmer-DEwDuHEE.esm.js} +3 -3
  47. package/dist/wasm.esm.js +2 -2
  48. package/dist/workflow.esm.js +14 -14
  49. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { s as wasmRuntime } from "./warmup-ChDwHSel.esm.js";
3
3
  import { i as BaseWasmProvider } from "./safeStorage-BdU9_m2E.esm.js";
4
- import { t as ensureWasmPipelines } from "./setup-D4YCSH31.esm.js";
5
- import "./sessionInitializer-BK5NjMe0.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
5
+ import "./sessionInitializer-NKOKaYzH.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
7
7
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
8
8
  import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
@@ -156,7 +156,7 @@ function startDetection(params) {
156
156
  };
157
157
  }
158
158
  async function initializeDeepsightSession(options) {
159
- const { loadDeepsightSession } = await import("./deepsightLoader-DamOBrBJ.esm.js");
159
+ const { loadDeepsightSession } = await import("./deepsightLoader-U24VrP2r.esm.js");
160
160
  return loadDeepsightSession({
161
161
  ds: options.ds,
162
162
  storage: options.storage
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager--YFXVldr.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-i9KSHGcI.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-TyFaCegB.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-D22ju23T.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BBPaXbO0.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CSCtXfWz.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bk6pVs6E.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-TyFaCegB.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Df6oe5Zi.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BBPaXbO0.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CGQDK97m.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-BZYHujqz.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DrJvjpVf.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
7
7
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,7 +1,7 @@
1
- import { l as trueSightLog } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-BK5NjMe0.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-NKOKaYzH.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-B8ok4TX0.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV8yR5iN.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-DKgiusbF.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D6oLfWyM.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-DJ9GQ1HY.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV8yR5iN.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D6oLfWyM.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BmktKO7R.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-G1FDrkLd.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Bnsefu9M.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-8VUBu8VW.esm.js";
1
+ import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-ZXug3wzs.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-B4qbgC_I.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-BDtwhSrQ.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-Bnsefu9M.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-B4qbgC_I.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-G1FDrkLd.esm.js";
3
+ import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-ZXug3wzs.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DyHGgeX8.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager--YFXVldr.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-i9KSHGcI.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BmktKO7R.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -1,12 +1,12 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-BK5NjMe0.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-NKOKaYzH.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager--YFXVldr.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-i9KSHGcI.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-DNkw66oW.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-CGQDK97m.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D22ju23T.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DrJvjpVf.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CSCtXfWz.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-C3-CI0_s.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-B6E1XJDw.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9XhFVZ5S.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-CzWZTkW-.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DWTED5Ur.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-BRPxqYD2.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DKgiusbF.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-8VUBu8VW.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DJ9GQ1HY.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-BDtwhSrQ.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-BlQ-Qj4E.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-bR1N5rV_.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-DzOPNipB.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-B8lo-ksK.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-CGWnCp26.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Bs6p5LKF.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-IjhSv5XS.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-CixcLNDT.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CIMkpEhu.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-r46XfZGE.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-FLEWJtv8.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-B72np4ZO.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-DNixQOgf.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-DbfRyrLW.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CacFOtKO.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-DT42c77H.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Bmv0HzuY.esm.js";
@@ -1,7 +1,7 @@
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-CGQDK97m.esm.js";
4
+ import { i as concealmentToAvatar } from "./faceCaptureSetup-DrJvjpVf.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-EY3_Vx6c.esm.js";
@@ -1,14 +1,14 @@
1
- import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import "./sessionInitializer-BK5NjMe0.esm.js";
4
+ import "./sessionInitializer-NKOKaYzH.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
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";
11
+ import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
12
12
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
13
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";
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-B8ok4TX0.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-C8OAO_CZ.esm.js";
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-CT71kF7K.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/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
2
- import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-G1FDrkLd.esm.js";
2
+ import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-ZXug3wzs.esm.js";
3
3
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-C0zcPnqK.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B3Z4iJnG.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DbMQ7zEQ.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BhK3islQ.esm.js";
7
7
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
8
8
  //#region src/modules/flow/noOpFlowModuleMachine.ts
9
9
  const noOpFlowModuleMachine = setup({}).createMachine({
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-BmktKO7R.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,10 +1,10 @@
1
1
  import { n as getWasmStatus } from "./warmup-ChDwHSel.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-C8OAO_CZ.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-CT71kF7K.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BK5NjMe0.esm.js";
4
+ import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-NKOKaYzH.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
7
- import "./session-BABCfUhC.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-BmktKO7R.esm.js";
7
+ import "./session-BRsgJ-Ek.esm.js";
8
8
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
9
  //#region src/modules/flow/dashboardConfig.ts
10
10
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-DNixQOgf.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-D1aZJ6eR.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DbfRyrLW.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-CP8_KHBU.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-D1aZJ6eR.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-CP8_KHBU.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
3
  import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
4
- import { n as isConnectivityError } from "./apiError-iTFZ5fiI.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-BmktKO7R.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
@@ -1,18 +1,18 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-D4YCSH31.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-G1FDrkLd.esm.js";
4
+ import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-ZXug3wzs.esm.js";
5
5
  import { i as assign, r as sendTo, 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
- import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-BZYHujqz.esm.js";
7
+ import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
8
8
  import { i as StreamCanvasProcessingSession, n as CameraCompositor } from "./multipartRecordingService-YKu0Bd7S.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
11
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-sJahGQgV.esm.js";
12
- import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-DLqls7Xv.esm.js";
11
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CqdpEg3N.esm.js";
12
+ import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-xi9Pthk2.esm.js";
13
13
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
14
- import { n as getFinishStatus } from "./flowCompletionService-C0zcPnqK.esm.js";
15
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-C80ZPDZ8.esm.js";
14
+ import { n as getFinishStatus } from "./flowCompletionService-DbMQ7zEQ.esm.js";
15
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DEwDuHEE.esm.js";
16
16
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
17
17
  /** Default autocapture window for the selfie step. */
18
18
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
2
2
  import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
4
- import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-CCPGFPRF.esm.js";
5
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B8lo-ksK.esm.js";
6
- import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-DLqls7Xv.esm.js";
4
+ import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-BYgxfqHv.esm.js";
5
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-Bs6p5LKF.esm.js";
6
+ import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-xi9Pthk2.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
8
8
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
2
- import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-D8yZwF3G.esm.js";
2
+ import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-CvCQ1O8I.esm.js";
3
3
  import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-ChDwHSel.esm.js";
4
4
  import { i as BaseWasmProvider } from "./safeStorage-BdU9_m2E.esm.js";
5
5
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DYrLUEII.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-EY3_Vx6c.esm.js";
8
- import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CCPGFPRF.esm.js";
9
- import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-DLqls7Xv.esm.js";
8
+ import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BYgxfqHv.esm.js";
9
+ import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-xi9Pthk2.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) {
@@ -1,5 +1,5 @@
1
- import { t as ensureWasmPipelines } from "./setup-D4YCSH31.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-C8OAO_CZ.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CT71kF7K.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -9,7 +9,7 @@ import { s as queryCameraPermission } from "./permissionServices-EY3_Vx6c.esm.js
9
9
  import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-YKu0Bd7S.esm.js";
10
10
  import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-sJahGQgV.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CqdpEg3N.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,16 +1,16 @@
1
- import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
3
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
3
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
- import { s as exposeExperimentOnce } from "./feature-management-C8OAO_CZ.esm.js";
5
+ import { s as exposeExperimentOnce } from "./feature-management-CT71kF7K.esm.js";
6
6
  import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
8
8
  import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
9
- import { t as getDisableIpify } from "./sessionInitializer-BK5NjMe0.esm.js";
9
+ import { t as getDisableIpify } from "./sessionInitializer-NKOKaYzH.esm.js";
10
10
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
12
12
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
13
- import "./session-BABCfUhC.esm.js";
13
+ import "./session-BRsgJ-Ek.esm.js";
14
14
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
16
16
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
@@ -24,8 +24,8 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
24
24
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
25
25
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
26
26
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-Cjab7FTI.esm.js";
27
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-sJahGQgV.esm.js";
28
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-DLqls7Xv.esm.js";
27
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CqdpEg3N.esm.js";
28
+ import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-xi9Pthk2.esm.js";
29
29
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
30
30
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
31
31
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1781,7 +1781,7 @@ fromPromise(async ({ input }) => {
1781
1781
  });
1782
1782
  fromPromise(async ({ input }) => {
1783
1783
  if (!input.dependencies) return;
1784
- const { loadDeepsightSession } = await import("./deepsightLoader-DamOBrBJ.esm.js");
1784
+ const { loadDeepsightSession } = await import("./deepsightLoader-U24VrP2r.esm.js");
1785
1785
  return loadDeepsightSession({
1786
1786
  ds: input.ds,
1787
1787
  storage: input.dependencies.storage,
@@ -2224,7 +2224,7 @@ function cleanup(service) {
2224
2224
  service.cleanup();
2225
2225
  } catch {}
2226
2226
  }
2227
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DamOBrBJ.esm.js")).loadDeepsightSession(input)) {
2227
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-U24VrP2r.esm.js")).loadDeepsightSession(input)) {
2228
2228
  let disposed = false;
2229
2229
  let preparation;
2230
2230
  let service;
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-D4YCSH31.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-BqZsYdcN.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -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--YFXVldr.esm.js";
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-i9KSHGcI.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "2.3.0-rc.10+899c63f";
2
+ const SDK_VERSION = "2.3.0-rc.11+32dda8c";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
@@ -1,14 +1,14 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CGQDK97m.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bk6pVs6E.esm.js";
6
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DrJvjpVf.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Df6oe5Zi.esm.js";
8
8
  import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
9
9
  import { r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
10
- import { t as selfieMachine } from "./selfieStateMachine-CidiobBW.esm.js";
11
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DzOPNipB.esm.js";
10
+ import { t as selfieMachine } from "./selfieStateMachine-B27MSUWB.esm.js";
11
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CGWnCp26.esm.js";
12
12
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
13
13
  /**
14
14
  * Selfie state machine variant for the captureOnly flow. Shares the full base
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-D4YCSH31.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BqZsYdcN.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bk6pVs6E.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-CidiobBW.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Df6oe5Zi.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-B27MSUWB.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 { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-CGQDK97m.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-BZYHujqz.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-DrJvjpVf.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DnwTl1ad.esm.js";
7
7
  import { i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
@@ -1,8 +1,8 @@
1
- import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { n as getApi } from "./api-Bx3gKW_y.esm.js";
3
- import "./sessionInitializer-BK5NjMe0.esm.js";
3
+ import "./sessionInitializer-NKOKaYzH.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-BmktKO7R.esm.js";
6
6
  //#region src/internal/session/sessionService.ts
7
7
  /**
8
8
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
@@ -1,5 +1,5 @@
1
- import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-BK5NjMe0.esm.js";
2
- import { t as IncodeApiError } from "./apiError-iTFZ5fiI.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-BABCfUhC.esm.js";
4
- import { n as getFinishStatus } from "./flowCompletionService-C0zcPnqK.esm.js";
1
+ import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-NKOKaYzH.esm.js";
2
+ import { t as IncodeApiError } from "./apiError-BmktKO7R.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-BRsgJ-Ek.esm.js";
4
+ import { n as getFinishStatus } from "./flowCompletionService-DbMQ7zEQ.esm.js";
5
5
  export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid, whenSessionFingerprintSettled };
@@ -1,8 +1,8 @@
1
- import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-D8yZwF3G.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-C8OAO_CZ.esm.js";
1
+ import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-CvCQ1O8I.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-CT71kF7K.esm.js";
3
3
  import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-B8ok4TX0.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
7
  import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CZcy2J53.esm.js";
8
8
  import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
@@ -1,16 +1,16 @@
1
- import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-D8yZwF3G.esm.js";
1
+ import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-CvCQ1O8I.esm.js";
2
2
  import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-ChDwHSel.esm.js";
3
3
  import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-BdU9_m2E.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-C8OAO_CZ.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-CT71kF7K.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, t as api } from "./api-Bx3gKW_y.esm.js";
8
8
  import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
9
- import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-BK5NjMe0.esm.js";
9
+ import { a as resetSessionInit, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-NKOKaYzH.esm.js";
10
10
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
11
11
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CZcy2J53.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-G1FDrkLd.esm.js";
13
+ import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-ZXug3wzs.esm.js";
14
14
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
15
15
  var BrowserPageLifecycleProvider = class {
16
16
  sendBeacon(url, body, contentType = "application/json") {
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, f as deriveSiblingJsPath, i as initializeW
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 { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-CD9fJC2Y.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-B8ok4TX0.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
7
  //#region ../infra/src/wasm/wasmDefaults.ts
8
8
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
@@ -1,15 +1,15 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-D4YCSH31.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BqZsYdcN.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
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
- import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-G1FDrkLd.esm.js";
6
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-ZXug3wzs.esm.js";
7
7
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
9
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
10
  import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-YKu0Bd7S.esm.js";
11
11
  import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
12
- import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-C80ZPDZ8.esm.js";
12
+ import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-DEwDuHEE.esm.js";
13
13
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
14
14
  //#region src/modules/video-selfie/videoSelfieWasm.ts
15
15
  function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
@@ -28,6 +28,17 @@ function recordingIdFromEvent(event) {
28
28
  function errorFromEvent(event) {
29
29
  return String(event.error);
30
30
  }
31
+ /**
32
+ * Chromium reports a camera the device cannot open right now as
33
+ * `NotReadableError` ("Could not start video source") or `AbortError`
34
+ * ("Starting videoinput failed") — the same pair the rear-camera acquire
35
+ * retries on. Anything else (permission, no device) will not clear by
36
+ * releasing our own camera.
37
+ */
38
+ function isCameraBusyError(error) {
39
+ const name = typeof error === "object" && error !== null && "name" in error ? error.name : void 0;
40
+ return name === "NotReadableError" || name === "AbortError";
41
+ }
31
42
  function detectionStatusFromEvent(event) {
32
43
  return event.status;
33
44
  }
@@ -47,6 +58,12 @@ function orientationFromEvent(event) {
47
58
  return event.orientation;
48
59
  }
49
60
  const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
61
+ /**
62
+ * How long a just-stopped camera gets to release before another one is
63
+ * opened (see `releasingCamera`). Same settle the rear-camera acquire uses
64
+ * on a busy device; a hardware knob, not a protocol value.
65
+ */
66
+ const CAMERA_RELEASE_SETTLE_MS = 300;
50
67
  const ID_FLIP_DWELL_MS = 4e3;
51
68
  const FINAL_SUCCESS_DWELL_MS = 3e3;
52
69
  const MAX_VIDEO_LENGTH_ERROR_DWELL_MS = 3e3;
@@ -86,6 +103,9 @@ function waitForDwell(ms, signal) {
86
103
  * │
87
104
  * ▼
88
105
  * recording ⇄ switchingCamera
106
+ * │ │ busy camera (ENG-57332)
107
+ * │ ▼
108
+ * │ releasingCamera ─settle▶ retry once
89
109
  * │ (capture validated → DETECTION_DONE,
90
110
  * │ or manual NEXT_STEP)
91
111
  * last step ─▶ finalizing ─▶ finished
@@ -110,7 +130,8 @@ const videoSelfieRecordingSetup = setup({
110
130
  ID_FLIP_DWELL: ID_FLIP_DWELL_MS,
111
131
  FINAL_SUCCESS_DWELL: FINAL_SUCCESS_DWELL_MS,
112
132
  MAX_VIDEO_LENGTH_ERROR_DWELL: MAX_VIDEO_LENGTH_ERROR_DWELL_MS,
113
- VALIDATION_FEEDBACK_DWELL: VALIDATION_FEEDBACK_DWELL_MS
133
+ VALIDATION_FEEDBACK_DWELL: VALIDATION_FEEDBACK_DWELL_MS,
134
+ CAMERA_RELEASE_SETTLE: CAMERA_RELEASE_SETTLE_MS
114
135
  },
115
136
  actors: {
116
137
  prepareWasm: fromPromise(async ({ input }) => input.ensure()),
@@ -219,7 +240,8 @@ const videoSelfieRecordingSetup = setup({
219
240
  advanceStep: assign({
220
241
  stepIndex: ({ context }) => context.stepIndex + 1,
221
242
  attemptsRemaining: ({ context }) => context.attemptsPerStep,
222
- validationFailure: () => void 0
243
+ validationFailure: () => void 0,
244
+ cameraSwitchRetried: () => false
223
245
  }),
224
246
  setDetectionStatus: assign({ detectionStatus: ({ event }) => detectionStatusFromEvent(event) }),
225
247
  setOrientation: assign({ orientation: ({ event }) => orientationFromEvent(event) }),
@@ -263,6 +285,7 @@ const videoSelfieRecordingSetup = setup({
263
285
  }),
264
286
  resetSession: assign(({ context }) => ({
265
287
  stepIndex: 0,
288
+ cameraSwitchRetried: false,
266
289
  stream: void 0,
267
290
  composite: void 0,
268
291
  detectionStatus: void 0,
@@ -299,7 +322,10 @@ const videoSelfieRecordingSetup = setup({
299
322
  setPauseError: assign({
300
323
  error: () => "Recording could not be paused before backgrounding",
301
324
  errorKind: () => "technical"
302
- })
325
+ }),
326
+ releaseCurrentVideo: ({ context }) => {
327
+ context.stream?.getVideoTracks().forEach((track) => track.stop());
328
+ }
303
329
  },
304
330
  guards: {
305
331
  shouldEnterWasmGate: ({ context }) => context.ensureWasmReady !== void 0 && context.errorKind !== "maxVideoLengthReached" && context.errorKind !== "validationAttemptsExhausted",
@@ -311,6 +337,7 @@ const videoSelfieRecordingSetup = setup({
311
337
  maxVideoLengthWasReached: ({ context }) => context.errorKind === "maxVideoLengthReached",
312
338
  validationAttemptsWereExhausted: ({ context }) => context.errorKind === "validationAttemptsExhausted",
313
339
  errorIsRetryable: ({ context }) => context.errorKind !== "maxVideoLengthReached" && context.errorKind !== "validationAttemptsExhausted",
340
+ canRetryCameraSwitchAfterRelease: ({ context, event }) => !context.cameraSwitchRetried && isCameraBusyError(event.error),
314
341
  pageIsHidden: ({ context }) => !context.isPageVisible,
315
342
  pauseFailed: ({ event }) => !event.output,
316
343
  pauseSucceededWhileVisible: ({ context, event }) => context.isPageVisible && event.output,
@@ -371,7 +398,8 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
371
398
  recordingId: null,
372
399
  error: void 0,
373
400
  errorKind: void 0,
374
- switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS
401
+ switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS,
402
+ cameraSwitchRetried: false
375
403
  };
376
404
  },
377
405
  invoke: [{
@@ -542,12 +570,29 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
542
570
  context.compositor.switchVideo(eventOutputStream(event));
543
571
  }, assign({ stream: ({ event }) => eventOutputStream(event) })]
544
572
  },
545
- onError: {
573
+ onError: [{
574
+ target: "releasingCamera",
575
+ guard: "canRetryCameraSwitchAfterRelease"
576
+ }, {
546
577
  target: "error",
547
578
  actions: assign({ error: ({ event }) => errorFromEvent(event) })
548
- }
579
+ }]
549
580
  }
550
581
  },
582
+ releasingCamera: {
583
+ entry: ["releaseCurrentVideo", assign({ cameraSwitchRetried: () => true })],
584
+ on: {
585
+ BACKGROUND: {
586
+ target: "pausing",
587
+ actions: ["markPageHidden", assign({ resumeState: () => "switchingCamera" })]
588
+ },
589
+ MAX_VIDEO_LENGTH_REACHED: {
590
+ target: "finalizing",
591
+ actions: "setMaxVideoLengthReached"
592
+ }
593
+ },
594
+ after: { CAMERA_RELEASE_SETTLE: { target: "switchingCamera" } }
595
+ },
551
596
  pausing: {
552
597
  on: { MAX_VIDEO_LENGTH_REACHED: { actions: "setMaxVideoLengthReached" } },
553
598
  invoke: {
@@ -838,7 +883,7 @@ function createVideoSelfieRecordingActor(visibilityObserver, options = {}) {
838
883
  function mapState(snapshot) {
839
884
  const value = typeof snapshot.value === "string" ? snapshot.value : "idle";
840
885
  const { context } = snapshot;
841
- const status = value === "preparingWasm" || value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value;
886
+ const status = value === "preparingWasm" || value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value === "releasingCamera" ? "switchingCamera" : value;
842
887
  const steps = context.steps;
843
888
  const stepIndex = context.stepIndex;
844
889
  return {
@@ -1,16 +1,16 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
4
- import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-G1FDrkLd.esm.js";
4
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-ZXug3wzs.esm.js";
5
5
  import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
6
6
  import { t as checkPermission } from "./permissionServices-EY3_Vx6c.esm.js";
7
- import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-BZYHujqz.esm.js";
7
+ import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
9
9
  import { i as StreamCanvasProcessingSession } from "./multipartRecordingService-YKu0Bd7S.esm.js";
10
10
  import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
11
11
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
12
12
  import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-UiQ46EBa.esm.js";
13
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-sJahGQgV.esm.js";
13
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CqdpEg3N.esm.js";
14
14
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
15
15
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
16
16
  async function postVideoSelfieCompare(endpoint, base64Image) {
package/dist/wasm.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
2
- import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-D8yZwF3G.esm.js";
2
+ import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-CvCQ1O8I.esm.js";
3
3
  import { o as warmupWasm } from "./warmup-ChDwHSel.esm.js";
4
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-D4YCSH31.esm.js";
4
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
5
5
  //#region src/defineWasm.ts
6
6
  function requiredModels(pipelines) {
7
7
  const models = /* @__PURE__ */ new Set();
@@ -1,29 +1,29 @@
1
- import { l as trueSightLog } from "./trueSightService-D8yZwF3G.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-C8OAO_CZ.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-CvCQ1O8I.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-CT71kF7K.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BK5NjMe0.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-NKOKaYzH.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-iTFZ5fiI.esm.js";
8
- import { v as toEkybConfig } from "./flowServices-G1FDrkLd.esm.js";
7
+ import { i as toIncodeApiError } from "./apiError-BmktKO7R.esm.js";
8
+ import { v as toEkybConfig } from "./flowServices-ZXug3wzs.esm.js";
9
9
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
10
10
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
11
11
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager--YFXVldr.esm.js";
12
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-i9KSHGcI.esm.js";
13
13
  import "./ae-signature.esm.js";
14
14
  import { t as antifraudMachine } from "./antifraudStateMachine-DBeq47D2.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-TyFaCegB.esm.js";
15
+ import { t as authenticationMachine } from "./authenticationStateMachine-BBPaXbO0.esm.js";
16
16
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CxqS_nD-.esm.js";
17
17
  import { t as consentMachine } from "./consentStateMachine-DTSfdGiW.esm.js";
18
18
  import { t as curpValidationMachine } from "./curpValidationStateMachine-g5kMfuLj.esm.js";
19
19
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DOQou6TW.esm.js";
20
20
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-D312sSIu.esm.js";
21
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV8yR5iN.esm.js";
22
- import { t as ekybMachine } from "./ekybStateMachine-Bnsefu9M.esm.js";
21
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D6oLfWyM.esm.js";
22
+ import { t as ekybMachine } from "./ekybStateMachine-B4qbgC_I.esm.js";
23
23
  import { t as ekycMachine } from "./ekycStateMachine-CshSNJhh.esm.js";
24
24
  import { t as emailMachine } from "./emailStateMachine-Bc_6oIYw.esm.js";
25
- import { t as selfieMachine } from "./selfieStateMachine-CidiobBW.esm.js";
26
- import { t as idCaptureMachine } from "./idCaptureStateMachine-CCPGFPRF.esm.js";
25
+ import { t as selfieMachine } from "./selfieStateMachine-B27MSUWB.esm.js";
26
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-BYgxfqHv.esm.js";
27
27
  import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
28
28
  import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
29
29
  import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5
32
32
  import { t as idOcrStateMachine } from "./idOcrStateMachine-ClDEP-VI.esm.js";
33
33
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
34
34
  import { t as signatureMachine } from "./signatureStateMachine-ce_XMA3l.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-D1aZJ6eR.esm.js";
35
+ import { t as geolocationMachine } from "./geolocationStateMachine-CP8_KHBU.esm.js";
36
36
  import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CoaZOSTP.esm.js";
37
37
  import { t as idVerificationMachine } from "./idVerificationStateMachine-DbDVIh9t.esm.js";
38
38
  import { t as faceMatchMachine } from "./faceMatchStateMachine-mRIHQ3dA.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-C0zcPnqK.esm.js";
40
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B3Z4iJnG.esm.js";
39
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DbMQ7zEQ.esm.js";
40
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BhK3islQ.esm.js";
41
41
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
42
42
  import "./qe-signature.esm.js";
43
43
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.3.0-rc.10",
3
+ "version": "2.3.0-rc.11",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",