@incodetech/core 0.0.0-dev-20260728-ee28c8bd → 0.0.0-dev-20260728-13fa1fcf

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 (40) hide show
  1. package/dist/authentication.esm.js +2 -2
  2. package/dist/{authenticationManager-DhKmbcZh.esm.js → authenticationManager-_ORG1UHc.esm.js} +2 -2
  3. package/dist/{authenticationStateMachine-DrOepYhJ.esm.js → authenticationStateMachine-B6D1-OHs.esm.js} +2 -2
  4. package/dist/consent.d.ts +1 -1
  5. package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-3Pbtj-RV.d.ts} +4 -4
  6. package/dist/{deepsightLoader-ChJdVAcM.esm.js → deepsightLoader-BTaHIFJe.esm.js} +1 -1
  7. package/dist/ekyb.esm.js +3 -3
  8. package/dist/{ekybManager-x5RT5Hit.esm.js → ekybManager-DUFNmJTE.esm.js} +1 -1
  9. package/dist/{ekybStateMachine-D9KpHlgz.esm.js → ekybStateMachine-B_2GynKh.esm.js} +1 -1
  10. package/dist/extensibility.d.ts +4 -4
  11. package/dist/extensibility.esm.js +6 -6
  12. package/dist/{faceCaptureManagerFactory-ysDDYfpc.esm.js → faceCaptureManagerFactory-padlYUpO.esm.js} +1 -1
  13. package/dist/{faceCaptureSetup-BRMhr-XT.esm.js → faceCaptureSetup-D7wL9pqU.esm.js} +2 -2
  14. package/dist/flow.d.ts +1 -1
  15. package/dist/flow.esm.js +1 -1
  16. package/dist/{flowServices-DyZkh-5Q.esm.js → flowServices-DSlnJDz_.esm.js} +2 -2
  17. package/dist/id.d.ts +2 -2
  18. package/dist/id.esm.js +2 -2
  19. package/dist/{idCaptureManager-Dxv7cHUT.d.ts → idCaptureManager-D6fKtXhM.d.ts} +2 -2
  20. package/dist/{idCaptureManager-DrmMKLDi.esm.js → idCaptureManager-iTvQbzxA.esm.js} +4 -1
  21. package/dist/{idCaptureStateMachine-CtqVhBjq.esm.js → idCaptureStateMachine-q4n-6o5I.esm.js} +51 -9
  22. package/dist/index.esm.js +1 -1
  23. package/dist/mandatory-consent.d.ts +1 -1
  24. package/dist/{mandatoryConsentManager-M6QI0nB0.d.ts → mandatoryConsentManager-XOWt-AgD.d.ts} +4 -4
  25. package/dist/{onDeviceFaceResults-BbjULJyT.esm.js → onDeviceFaceResults-BmqIjCbi.esm.js} +1 -1
  26. package/dist/personhood.esm.js +2 -2
  27. package/dist/{recordingService-CqKPwPvN.esm.js → recordingService-yaOQEalD.esm.js} +1 -1
  28. package/dist/selfie.esm.js +4 -4
  29. package/dist/{selfieManager-5QzVKTV3.esm.js → selfieManager-B2_n13LR.esm.js} +2 -2
  30. package/dist/{selfieStateMachine-6SSh-uFp.esm.js → selfieStateMachine-CrEcZaGF.esm.js} +2 -2
  31. package/dist/session-DInWb8_z.esm.js +1 -0
  32. package/dist/session.esm.js +2 -2
  33. package/dist/{sessionInitializer-DuZWsy2u.esm.js → sessionInitializer-D2MRL--r.esm.js} +1 -1
  34. package/dist/{setup-ItZ5fsL_.esm.js → setup-BIxOSpxN.esm.js} +2 -2
  35. package/dist/{types-CfwPB1PL.d.ts → types-DznwkfTc.d.ts} +6 -0
  36. package/dist/video-selfie.esm.js +3 -3
  37. package/dist/wasm.esm.js +1 -1
  38. package/dist/workflow.esm.js +6 -6
  39. package/package.json +1 -1
  40. package/dist/session-BO17OfFa.esm.js +0 -1
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-DrOepYhJ.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DhKmbcZh.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-B6D1-OHs.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-_ORG1UHc.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ysDDYfpc.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-padlYUpO.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DrOepYhJ.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-B6D1-OHs.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BbjULJyT.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D7wL9pqU.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -82,10 +82,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
82
82
  type: "clearError";
83
83
  params: NonReducibleUnknown;
84
84
  };
85
- resetContext: {
86
- type: "resetContext";
87
- params: NonReducibleUnknown;
88
- };
89
85
  setConsentData: {
90
86
  type: "setConsentData";
91
87
  params: NonReducibleUnknown;
@@ -94,6 +90,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
90
  type: "toggleCheckbox";
95
91
  params: NonReducibleUnknown;
96
92
  };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: NonReducibleUnknown;
96
+ };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
4
- import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DuZWsy2u.esm.js";
4
+ import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-D2MRL--r.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
7
7
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-DyZkh-5Q.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-D9KpHlgz.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-x5RT5Hit.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-DSlnJDz_.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-B_2GynKh.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-DUFNmJTE.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-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-D9KpHlgz.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-B_2GynKh.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-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-DyZkh-5Q.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-DSlnJDz_.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.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-DEYnZoez.esm.js";
@@ -9,7 +9,7 @@ import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
9
9
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-BK-v1UYb.js";
10
10
  import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BT7dmOHi.js";
11
11
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B2KZQ9zw.js";
12
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
12
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
13
13
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
14
14
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-BEWD-Lvo.js";
15
15
  import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
@@ -17,12 +17,12 @@ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as D
17
17
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
18
18
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
19
19
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
20
- import { n as CaptureIdResponse } from "./types-CfwPB1PL.js";
21
- import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-Dxv7cHUT.js";
20
+ import { n as CaptureIdResponse } from "./types-DznwkfTc.js";
21
+ import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-D6fKtXhM.js";
22
22
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
23
23
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
24
24
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
25
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-M6QI0nB0.js";
25
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-XOWt-AgD.js";
26
26
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
27
27
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BiVH2Ymm.js";
28
28
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
@@ -1,21 +1,21 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-DuZWsy2u.esm.js";
2
+ import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-D2MRL--r.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-CFsD4BgV.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D7wL9pqU.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DhKmbcZh.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-_ORG1UHc.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-0EiBXYtL.esm.js";
10
10
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-Dw7euiiZ.esm.js";
11
11
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-BGj9U3E0.esm.js";
12
12
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DBRQX16v.esm.js";
13
13
  import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DI0sCyVB.esm.js";
14
- import { n as createEkybManagerFromActor } from "./ekybManager-x5RT5Hit.esm.js";
14
+ import { n as createEkybManagerFromActor } from "./ekybManager-DUFNmJTE.esm.js";
15
15
  import { n as createEkycManagerFromActor } from "./ekycManager-Cl2e4Knv.esm.js";
16
16
  import { n as createEmailManagerFromActor } from "./emailManager-Dmt1YrtS.esm.js";
17
- import { n as createSelfieManagerFromActor } from "./selfieManager-5QzVKTV3.esm.js";
18
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DrmMKLDi.esm.js";
17
+ import { n as createSelfieManagerFromActor } from "./selfieManager-B2_n13LR.esm.js";
18
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-iTvQbzxA.esm.js";
19
19
  import { n as createPhoneManagerFromActor } from "./phoneManager-C3aqq6jS.esm.js";
20
20
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BjMJHKLP.esm.js";
21
21
  import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-USUE9qDr.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-BRMhr-XT.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-D7wL9pqU.esm.js";
5
5
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
6
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.esm.js";
7
7
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BbjULJyT.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-5Cu6a8iN.esm.js";
10
- import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CqKPwPvN.esm.js";
10
+ import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-yaOQEalD.esm.js";
11
11
  //#region src/internal/avatar/concealment.ts
12
12
  /**
13
13
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
package/dist/flow.d.ts CHANGED
@@ -9,7 +9,7 @@ import { t as AuthenticationConfig } from "./types-sK-eGomM.js";
9
9
  import { r as DocumentCaptureConfig } from "./types-B4BObr_7.js";
10
10
  import { t as DynamicFormsConfig } from "./types-xIEGXWk8.js";
11
11
  import { t as EkybConfig } from "./types-BfHiko5D.js";
12
- import { c as IdCaptureConfig } from "./types-CfwPB1PL.js";
12
+ import { c as IdCaptureConfig } from "./types-DznwkfTc.js";
13
13
  import { r as MandatoryConsentConfig } from "./types-DjHL5Wa9.js";
14
14
  import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
15
15
  import { t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
package/dist/flow.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-DyZkh-5Q.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-DSlnJDz_.esm.js";
3
3
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
@@ -1,9 +1,9 @@
1
1
  import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
2
2
  import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
4
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DuZWsy2u.esm.js";
4
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D2MRL--r.esm.js";
5
5
  import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
6
- import "./session-BO17OfFa.esm.js";
6
+ import "./session-DInWb8_z.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
package/dist/id.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
2
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
3
3
  import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
4
- import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-CfwPB1PL.js";
5
- import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-Dxv7cHUT.js";
4
+ import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DznwkfTc.js";
5
+ import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-D6fKtXhM.js";
6
6
  //#region src/modules/id/idCaptureOnlyManager.d.ts
7
7
  type IdCaptureOnlyManager = IdCaptureManager;
8
8
  /**
package/dist/id.esm.js CHANGED
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
5
- import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-CtqVhBjq.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DrmMKLDi.esm.js";
5
+ import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-q4n-6o5I.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-iTvQbzxA.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
8
8
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
9
9
  function buildSubImage(canvas) {
@@ -8,7 +8,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
8
8
  import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
9
9
  import { a as RegulationTypes } from "./types-NSJbROLr.js";
10
10
  import { n as PermissionStatus } from "./types-BT-aiBYV.js";
11
- import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-CfwPB1PL.js";
11
+ import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DznwkfTc.js";
12
12
  //#region src/modules/id/idCaptureStateMachine.d.ts
13
13
  declare const idCaptureMachine: AnyStateMachine;
14
14
  type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
@@ -168,7 +168,7 @@ declare function addBarcode(params: AddBarcodeParams): Promise<AddBarcodeV3Respo
168
168
  type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
169
169
  //#endregion
170
170
  //#region src/internal/idCapture/idCaptureManagerFactory.d.ts
171
- type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'uploading' | 'uploadError' | 'success';
171
+ type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'holdOn' | 'uploading' | 'uploadError' | 'success';
172
172
  type IdCaptureIdleState = {
173
173
  status: 'idle';
174
174
  };
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
4
4
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
5
5
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.esm.js";
6
6
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
7
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CtqVhBjq.esm.js";
7
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-q4n-6o5I.esm.js";
8
8
  //#region src/modules/id/digitalUpload/instrumentation.ts
9
9
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
10
10
  function isHoldingState(value) {
@@ -117,6 +117,8 @@ function getCaptureStatus(snapshot) {
117
117
  manualCaptureWaiting: snapshot.matches({ capture: "manualCaptureWaiting" }),
118
118
  capturing: snapshot.matches({ capture: "capturing" }),
119
119
  capturingManual: snapshot.matches({ capture: "capturingManual" }),
120
+ capturingBarcode: snapshot.matches({ capture: "capturingBarcode" }),
121
+ submittingBarcodePreCapture: snapshot.matches({ capture: "submittingBarcodePreCapture" }),
120
122
  uploading: snapshot.matches({ capture: "uploading" }),
121
123
  uploadCompleted: snapshot.matches({ capture: "uploadCompleted" }),
122
124
  submittingBarcode: snapshot.matches({ capture: "submittingBarcode" }),
@@ -125,6 +127,7 @@ function getCaptureStatus(snapshot) {
125
127
  };
126
128
  if (matches.initializing) return "initializing";
127
129
  if (matches.detecting || matches.manualCaptureWaiting) return "detecting";
130
+ if (matches.capturingBarcode || matches.submittingBarcodePreCapture) return "holdOn";
128
131
  if (matches.capturing || matches.capturingManual) return "capturing";
129
132
  if (matches.uploading || matches.uploadCompleted || matches.submittingBarcode) return "uploading";
130
133
  if (matches.uploadError) return "uploadError";
@@ -3,20 +3,21 @@ import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
6
- import { t as getDisableIpify } from "./sessionInitializer-DuZWsy2u.esm.js";
6
+ import { t as getDisableIpify } from "./sessionInitializer-D2MRL--r.esm.js";
7
7
  import { n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
8
- import "./session-BO17OfFa.esm.js";
8
+ import "./session-DInWb8_z.esm.js";
9
9
  import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
10
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
11
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
12
- import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BbjULJyT.esm.js";
12
+ import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
13
+ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
13
14
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
14
15
  import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
15
16
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
16
17
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
17
18
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
18
19
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-5Cu6a8iN.esm.js";
19
- import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-CqKPwPvN.esm.js";
20
+ import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-yaOQEalD.esm.js";
20
21
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-DCrjeNl5.esm.js";
21
22
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
22
23
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1189,6 +1190,15 @@ const shouldSkipProcessIdGuard = ({ context }) => context.skipProcessId === true
1189
1190
  */
1190
1191
  const shouldSubmitBarcodeGuard = ({ context }) => context.currentMode === "back" && context.config.usSmartCapture === true && !!context.decodedBarcode?.text;
1191
1192
  /**
1193
+ * US Smart Capture pre-capture fast path: submit the decoded PDF417 barcode the
1194
+ * instant it is decoded, before the best-frame auto-capture completes. Reads the
1195
+ * barcode from the EVENT — the guard runs before the store action, so
1196
+ * `context.decodedBarcode` isn't populated yet. One-shot per attempt via
1197
+ * `barcodeFastPathAttempted` (a later best-frame decode falls through to the
1198
+ * regular `shouldSubmitBarcode` path).
1199
+ */
1200
+ const canRunBarcodeFastPathGuard = ({ context, event }) => context.currentMode === "back" && context.config.usSmartCapture === true && !context.barcodeFastPathAttempted && !!event.decoded?.text;
1201
+ /**
1192
1202
  * Bug 4 fix: when `expiredExhausted` is reached via the per-upload-expired
1193
1203
  * exhaustion path with a back side captured (or the entire single-side back
1194
1204
  * flow), we want `processId` to run once on Continue so the backend
@@ -1595,12 +1605,13 @@ const processIdActor = fromPromise(async ({ input, signal }) => {
1595
1605
  return processId(input.isSecondId, "", signal);
1596
1606
  });
1597
1607
  const submitBarcodeActor = fromPromise(async ({ input, signal }) => {
1598
- return addBarcode({
1608
+ const [response] = await Promise.all([addBarcode({
1599
1609
  rawBarcode: input.rawBarcode,
1600
1610
  metrics: input.metrics,
1601
1611
  processId: input.processId,
1602
1612
  signal
1603
- });
1613
+ }), input.minDurationMs ? sleep(input.minDurationMs) : Promise.resolve()]);
1614
+ return response;
1604
1615
  });
1605
1616
  const startRecordingActor = fromPromise(async ({ input }) => {
1606
1617
  if (!input.stream) return;
@@ -1614,7 +1625,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
1614
1625
  });
1615
1626
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1616
1627
  if (!input.dependencies) return;
1617
- const { loadDeepsightSession } = await import("./deepsightLoader-ChJdVAcM.esm.js");
1628
+ const { loadDeepsightSession } = await import("./deepsightLoader-BTaHIFJe.esm.js");
1618
1629
  return loadDeepsightSession({
1619
1630
  ds: input.ds,
1620
1631
  storage: input.dependencies.storage,
@@ -1688,6 +1699,7 @@ function getResetContextValues(context) {
1688
1699
  captureOnlyImages: {},
1689
1700
  uploadResponse: void 0,
1690
1701
  decodedBarcode: null,
1702
+ barcodeFastPathAttempted: false,
1691
1703
  recordingSession: void 0,
1692
1704
  attemptsRemaining: context.config.captureAttempts,
1693
1705
  expiredAttempts: 0,
@@ -2067,6 +2079,7 @@ const idCaptureMachine = setup({
2067
2079
  storeCapturedImage: assign(({ context, event }) => getStoreCapturedImageValues(context, event)),
2068
2080
  storeBarcodeResponse: assign(({ context, event }) => getBarcodeResponseValues(context, event)),
2069
2081
  storeDecodedBarcode: assign({ decodedBarcode: ({ event }) => event.decoded }),
2082
+ setBarcodeFastPathAttempted: assign({ barcodeFastPathAttempted: true }),
2070
2083
  setDetectionStatus: assign({ detectionStatus: ({ event, context }) => getDetectionStatusFromUpdate(context, event) }),
2071
2084
  setCounterValue: assign({ counterValue: ({ event }) => {
2072
2085
  if ("value" in event) return event.value;
@@ -2145,6 +2158,7 @@ const idCaptureMachine = setup({
2145
2158
  wasExpiredFromUpload: wasExpiredFromUploadGuard,
2146
2159
  shouldSkipProcessId: shouldSkipProcessIdGuard,
2147
2160
  shouldSubmitBarcode: shouldSubmitBarcodeGuard,
2161
+ canRunBarcodeFastPath: canRunBarcodeFastPathGuard,
2148
2162
  isProcessingExpiredExhausted: isProcessingExpiredExhaustedGuard,
2149
2163
  shouldProcessAfterExhaustion: shouldProcessAfterExhaustionGuard,
2150
2164
  forceFinishAfterProcessing: forceFinishAfterProcessingGuard,
@@ -2175,6 +2189,7 @@ const idCaptureMachine = setup({
2175
2189
  captureOnlyImages: {},
2176
2190
  uploadResponse: void 0,
2177
2191
  decodedBarcode: null,
2192
+ barcodeFastPathAttempted: false,
2178
2193
  recordingSession: void 0,
2179
2194
  attemptsRemaining: input.config.captureAttempts,
2180
2195
  expiredAttempts: 0,
@@ -2605,7 +2620,11 @@ const idCaptureMachine = setup({
2605
2620
  target: "capturing",
2606
2621
  actions: assign({ qualityElements: ({ event }) => event.qualityElements })
2607
2622
  },
2608
- BARCODE_DECODED: { actions: "storeDecodedBarcode" },
2623
+ BARCODE_DECODED: [{
2624
+ target: "capturingBarcode",
2625
+ guard: "canRunBarcodeFastPath",
2626
+ actions: ["storeDecodedBarcode", "setBarcodeFastPathAttempted"]
2627
+ }, { actions: "storeDecodedBarcode" }],
2609
2628
  MANUAL_CAPTURE: { target: "capturingManual" },
2610
2629
  SWITCH_TO_MANUAL_CAPTURE: {
2611
2630
  target: "manualCaptureWaiting",
@@ -2651,7 +2670,7 @@ const idCaptureMachine = setup({
2651
2670
  input: ({ context }) => ({
2652
2671
  rawBarcode: context.decodedBarcode?.text ?? "",
2653
2672
  metrics: context.decodedBarcode,
2654
- processId: true
2673
+ processId: context.config.skipProcessId !== true
2655
2674
  }),
2656
2675
  onDone: {
2657
2676
  target: "success",
@@ -2659,6 +2678,29 @@ const idCaptureMachine = setup({
2659
2678
  },
2660
2679
  onError: { target: "uploading" }
2661
2680
  } },
2681
+ capturingBarcode: {
2682
+ entry: [
2683
+ "captureImage",
2684
+ "storeCapturedCanvasInProvider",
2685
+ "storeCapturedImage"
2686
+ ],
2687
+ always: [{ target: "submittingBarcodePreCapture" }]
2688
+ },
2689
+ submittingBarcodePreCapture: { invoke: {
2690
+ id: "submitBarcode",
2691
+ src: "submitBarcode",
2692
+ input: ({ context }) => ({
2693
+ rawBarcode: context.decodedBarcode?.text ?? "",
2694
+ metrics: context.decodedBarcode,
2695
+ processId: context.config.skipProcessId !== true,
2696
+ minDurationMs: 1e3
2697
+ }),
2698
+ onDone: {
2699
+ target: "success",
2700
+ actions: "storeBarcodeResponse"
2701
+ },
2702
+ onError: { target: "detecting" }
2703
+ } },
2662
2704
  capturingManual: {
2663
2705
  entry: [
2664
2706
  "captureLatestFrame",
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, o as setup, r as isConfigured } from "./setup-ItZ5fsL_.esm.js";
1
+ import { i as reset, o as setup, r as isConfigured } from "./setup-BIxOSpxN.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-DjHL5Wa9.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-M6QI0nB0.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-XOWt-AgD.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
61
61
  type: "clearError";
62
62
  params: NonReducibleUnknown;
63
63
  };
64
- toggleSigned: {
65
- type: "toggleSigned";
66
- params: NonReducibleUnknown;
67
- };
68
64
  resetContext: {
69
65
  type: "resetContext";
70
66
  params: NonReducibleUnknown;
71
67
  };
68
+ toggleSigned: {
69
+ type: "toggleSigned";
70
+ params: NonReducibleUnknown;
71
+ };
72
72
  }>, {
73
73
  type: "canSubmit";
74
74
  params: unknown;
@@ -516,7 +516,7 @@ async function stopRecording(session) {
516
516
  }
517
517
  }
518
518
  async function initializeDeepsightSession(options) {
519
- const { loadDeepsightSession } = await import("./deepsightLoader-ChJdVAcM.esm.js");
519
+ const { loadDeepsightSession } = await import("./deepsightLoader-BTaHIFJe.esm.js");
520
520
  return loadDeepsightSession({
521
521
  ds: options.ds,
522
522
  storage: options.storage
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
4
4
  import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-BX83zwtT.esm.js";
5
5
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
7
- import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DuZWsy2u.esm.js";
7
+ import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-D2MRL--r.esm.js";
8
8
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
10
10
  import { i as requestPermission, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
11
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
12
12
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
13
- import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-BbjULJyT.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
14
14
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
15
15
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
16
16
  //#region ../infra/src/crypto/randomUUID.ts
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
3
  import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
4
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-BbjULJyT.esm.js";
4
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.esm.js";
6
6
  //#region src/internal/manualReview/manualReviewService.ts
7
7
  async function flagFaceManualReview() {
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ysDDYfpc.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D7wL9pqU.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-padlYUpO.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-5QzVKTV3.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-CrEcZaGF.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-B2_n13LR.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ysDDYfpc.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-padlYUpO.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-CrEcZaGF.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BbjULJyT.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D7wL9pqU.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
7
7
  /**
@@ -0,0 +1 @@
1
+ import "./sessionInitializer-D2MRL--r.esm.js";
@@ -1,8 +1,8 @@
1
1
  import { n as getApi } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
- import { i as initializeSession } from "./sessionInitializer-DuZWsy2u.esm.js";
3
+ import { i as initializeSession } from "./sessionInitializer-D2MRL--r.esm.js";
4
4
  import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B-PkYxln.esm.js";
5
- import "./session-BO17OfFa.esm.js";
5
+ import "./session-DInWb8_z.esm.js";
6
6
  import { n as getFinishStatus } from "./flowCompletionService-D5oIlcza.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
@@ -1614,7 +1614,7 @@ function isBrowserSimulation(browserEnv) {
1614
1614
  }
1615
1615
  //#endregion
1616
1616
  //#region src/internal/version/sdkVersion.ts
1617
- const SDK_VERSION = "0.0.0-dev-20260728-ee28c8bd";
1617
+ const SDK_VERSION = "0.0.0-dev-20260728-13fa1fcf";
1618
1618
  //#endregion
1619
1619
  //#region src/internal/fingerprint/fingerprintService.ts
1620
1620
  function formatOsVersion(os) {
@@ -7,9 +7,9 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
7
7
  import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
8
8
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
9
9
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
10
- import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-DuZWsy2u.esm.js";
10
+ import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-D2MRL--r.esm.js";
11
11
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
12
- import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-DyZkh-5Q.esm.js";
12
+ import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-DSlnJDz_.esm.js";
13
13
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
14
14
  var BrowserPageLifecycleProvider = class {
15
15
  sendBeacon(url, body, contentType = "application/json") {
@@ -514,6 +514,12 @@ type IdCaptureContext = {
514
514
  * submit path; cleared on side flip / retry.
515
515
  */
516
516
  decodedBarcode: Pdf417DecodeResult | null;
517
+ /**
518
+ * Whether the pre-capture barcode fast path has fired this attempt. One-shot:
519
+ * once attempted, a repeat decode falls through to the best-frame submit
520
+ * path. Reset on side flip / retry.
521
+ */
522
+ barcodeFastPathAttempted: boolean;
517
523
  recordingSession: RecordingSession | undefined;
518
524
  attemptsRemaining: number;
519
525
  /**
@@ -1,14 +1,14 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-ItZ5fsL_.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BIxOSpxN.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-BDTZNnca.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
6
- import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-DyZkh-5Q.esm.js";
6
+ import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-DSlnJDz_.esm.js";
7
7
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
9
9
  import { t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
10
10
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
11
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BbjULJyT.esm.js";
11
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BmqIjCbi.esm.js";
12
12
  import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
13
13
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
14
14
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
package/dist/wasm.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as warmupWasm } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-B4DUtYET.esm.js";
3
- import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-ItZ5fsL_.esm.js";
3
+ import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-BIxOSpxN.esm.js";
4
4
  export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
@@ -2,27 +2,27 @@ import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DuZWsy2u.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D2MRL--r.esm.js";
6
6
  import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
7
- import { g as toEkybConfig } from "./flowServices-DyZkh-5Q.esm.js";
7
+ import { g as toEkybConfig } from "./flowServices-DSlnJDz_.esm.js";
8
8
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
9
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
10
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
11
  import { n as electronicSignatureMachine } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
12
12
  import "./ae-signature.esm.js";
13
13
  import { t as antifraudMachine } from "./antifraudStateMachine-VB-aXHct.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-DrOepYhJ.esm.js";
14
+ import { t as authenticationMachine } from "./authenticationStateMachine-B6D1-OHs.esm.js";
15
15
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Di_bLlkP.esm.js";
16
16
  import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
17
17
  import { t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
18
18
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BuQML-pk.esm.js";
19
19
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BXgH9gGq.esm.js";
20
20
  import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BQqAwNQ-.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-D9KpHlgz.esm.js";
21
+ import { t as ekybMachine } from "./ekybStateMachine-B_2GynKh.esm.js";
22
22
  import { t as ekycMachine } from "./ekycStateMachine-9Mm7LBea.esm.js";
23
23
  import { t as emailMachine } from "./emailStateMachine-DQS-QMgQ.esm.js";
24
- import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-CtqVhBjq.esm.js";
24
+ import { t as selfieMachine } from "./selfieStateMachine-CrEcZaGF.esm.js";
25
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-q4n-6o5I.esm.js";
26
26
  import { t as phoneMachine } from "./phoneStateMachine-CLGcLA8t.esm.js";
27
27
  import { n as identityReuseMachine } from "./identityReuseStateMachine-B0IFF3R7.esm.js";
28
28
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BP3npRnI.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260728-ee28c8bd",
3
+ "version": "0.0.0-dev-20260728-13fa1fcf",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -1 +0,0 @@
1
- import "./sessionInitializer-DuZWsy2u.esm.js";