@incodetech/core 0.0.0-dev-20260806-1622a84b → 0.0.0-dev-20260807-2246039f

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 (74) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-DACTPqHK.esm.js → BrowserDiagnosticsCryptoProvider-DuiIakVk.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-61J1QWrY.esm.js → apiError-BoEMh9ug.esm.js} +1 -1
  4. package/dist/authentication.d.ts +2 -2
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-BNk1zdLY.esm.js → authenticationManager-B1qWiWRS.esm.js} +2 -2
  7. package/dist/{authenticationManager-CiPSTRIN.d.ts → authenticationManager-BBMGTcwW.d.ts} +1 -1
  8. package/dist/{authenticationStateMachine-BTbCV25V.esm.js → authenticationStateMachine-2UQZ1OO0.esm.js} +2 -2
  9. package/dist/{backCameraStream-DvkELZlG.esm.js → backCameraStream-CUeYm5eu.esm.js} +7 -2
  10. package/dist/consent.d.ts +1 -1
  11. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-2h_w6wFc.d.ts} +1 -1
  12. package/dist/{deepsightLoader-BS3KFcHt.esm.js → deepsightLoader-mA1lPpHB.esm.js} +3 -3
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/document-capture.esm.js +2 -2
  15. package/dist/document-upload.d.ts +4 -4
  16. package/dist/document-upload.esm.js +1 -1
  17. package/dist/{documentCaptureManager-CoT-a3Ae.d.ts → documentCaptureManager-CB6Wj8hG.d.ts} +1 -1
  18. package/dist/{documentCaptureManager-Ckt4gvE_.esm.js → documentCaptureManager-D4qOmhP9.esm.js} +1 -1
  19. package/dist/{documentCaptureStateMachine-CaswhdE0.esm.js → documentCaptureStateMachine-CN8EAEff.esm.js} +1 -1
  20. package/dist/dynamic-forms.esm.js +2 -2
  21. package/dist/{dynamicFormsManager-DF6bcZEg.esm.js → dynamicFormsManager-CMG-hpmn.esm.js} +1 -1
  22. package/dist/{dynamicFormsStateMachine-DmrHJVyI.esm.js → dynamicFormsStateMachine-Bu_1wKYm.esm.js} +1 -1
  23. package/dist/ekyb.esm.js +3 -3
  24. package/dist/{ekybManager-BkGMnaxO.esm.js → ekybManager-DFa7lPE6.esm.js} +1 -1
  25. package/dist/{ekybStateMachine-Dr6yPkAw.esm.js → ekybStateMachine-BUxwKjoE.esm.js} +1 -1
  26. package/dist/electronic-signature.esm.js +1 -1
  27. package/dist/{electronicSignatureManager-Bhzea4I2.esm.js → electronicSignatureManager-B_wRf5fK.esm.js} +1 -1
  28. package/dist/extensibility.d.ts +8 -8
  29. package/dist/extensibility.esm.js +10 -10
  30. package/dist/{faceCaptureManagerFactory-BLW6CfOr.d.ts → faceCaptureManagerFactory-BxWPpxyd.d.ts} +11 -1
  31. package/dist/{faceCaptureManagerFactory-Ckomc53O.esm.js → faceCaptureManagerFactory-nYKZ6UZT.esm.js} +2 -1
  32. package/dist/{faceCaptureSetup-DviNSVVQ.esm.js → faceCaptureSetup-Ck3rGv4i.esm.js} +12 -4
  33. package/dist/fiscal-qr.esm.js +1 -1
  34. package/dist/flow.esm.js +3 -3
  35. package/dist/{flowCompletionService-BKTVutmF.esm.js → flowCompletionService-DUxRhZ67.esm.js} +1 -1
  36. package/dist/{flowServices-CDPLiHeh.esm.js → flowServices-IFiP7HL2.esm.js} +3 -3
  37. package/dist/geolocation.esm.js +2 -2
  38. package/dist/{geolocationManager-DuUJyVv6.esm.js → geolocationManager-a-Sdu0Od.esm.js} +1 -1
  39. package/dist/{geolocationStateMachine-B5M0wpkk.esm.js → geolocationStateMachine-D86KBZyx.esm.js} +1 -1
  40. package/dist/id-ocr.d.ts +1 -1
  41. package/dist/id-selfie-flow.esm.js +6 -6
  42. package/dist/id.esm.js +3 -3
  43. package/dist/{idCaptureManager-D8iZJatj.esm.js → idCaptureManager-5AA7UIK_.esm.js} +1 -1
  44. package/dist/{idCaptureServices-uGFsH4MQ.esm.js → idCaptureServices-CcAu89Fz.esm.js} +3 -3
  45. package/dist/{idCaptureStateMachine-7ws3-xfJ.esm.js → idCaptureStateMachine-B3MLQS-E.esm.js} +7 -7
  46. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-dLuxey6y.d.ts} +1 -1
  47. package/dist/identity-reuse.d.ts +1 -1
  48. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
  49. package/dist/index.esm.js +1 -1
  50. package/dist/mandatory-consent.d.ts +1 -1
  51. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-DXlHM88Z.d.ts} +1 -1
  52. package/dist/{onDeviceFaceResults-BOCgu6M2.esm.js → onDeviceFaceResults-C1XCe8La.esm.js} +8 -6
  53. package/dist/personhood.esm.js +3 -3
  54. package/dist/qe-signature.esm.js +1 -1
  55. package/dist/{recordingService-BsDOhy-R.esm.js → recordingService-BSt2vDFp.esm.js} +1 -1
  56. package/dist/{runChildModule-BaUwLBvs.esm.js → runChildModule-D0mcMqZn.esm.js} +1 -1
  57. package/dist/selfie.d.ts +2 -2
  58. package/dist/selfie.esm.js +4 -4
  59. package/dist/{selfieManager-RB6OH_Bi.d.ts → selfieManager-DwlCppg0.d.ts} +1 -1
  60. package/dist/{selfieManager-B9V4N08q.esm.js → selfieManager-WlE8qMwf.esm.js} +2 -2
  61. package/dist/{selfieStateMachine-I6TP6VqN.esm.js → selfieStateMachine-B91zckHm.esm.js} +2 -2
  62. package/dist/{session-BTlOwOiF.esm.js → session-DfRv-FiI.esm.js} +4 -4
  63. package/dist/session.esm.js +4 -4
  64. package/dist/{sessionInitializer-B37CsuOa.esm.js → sessionInitializer-Da81eV4i.esm.js} +2 -2
  65. package/dist/{setup-CfhXNUE7.esm.js → setup-BPrKlL3q.esm.js} +4 -4
  66. package/dist/trueSight-CYvK2pCj.esm.js +1 -0
  67. package/dist/{trueSightService-Dg-cTLRe.esm.js → trueSightService-DvQJ9VE5.esm.js} +2 -2
  68. package/dist/video-selfie.esm.js +3 -3
  69. package/dist/{videoSelfieCameraWarmer-piKZYcjV.esm.js → videoSelfieCameraWarmer-Cp0Ekjzy.esm.js} +3 -3
  70. package/dist/wasm.esm.js +1 -1
  71. package/dist/workflow.d.ts +4 -4
  72. package/dist/workflow.esm.js +15 -15
  73. package/package.json +3 -3
  74. package/dist/trueSight-c8_3AedU.esm.js +0 -1
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
18
18
  */
19
19
  function getTruesightKey() {
20
20
  try {
21
- const key = decodeTruesightKey("ho4eN/BioNC9N1pIvJ09J31uAjmirrGE20T0TTanpDs=", "hLVEZ6DHBSPVTtCZ6Ha8xwIXqUFbmmwMfui9oQ+ze0Y=");
21
+ const key = decodeTruesightKey("oIrHvzoJa3G0JbWhDleay2LG4qvS5mbKik/yVOzvfO0=", "j7Ndvegf0wXRl1hTg70dzhD4QPORPYAT1ggv0UdkNRc=");
22
22
  return key.length === KEY_LENGTH_BYTES ? key : null;
23
23
  } catch {
24
24
  return null;
@@ -1,4 +1,4 @@
1
- import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-Bhzea4I2.esm.js";
1
+ import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-B_wRf5fK.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-Dg-cTLRe.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-DvQJ9VE5.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BLW6CfOr.js";
1
+ import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BxWPpxyd.js";
2
2
  import { t as AuthenticationConfig } from "./types-EELWyWpd.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CiPSTRIN.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BBMGTcwW.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-BTbCV25V.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BNk1zdLY.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-2UQZ1OO0.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B1qWiWRS.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Ckomc53O.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BTbCV25V.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-nYKZ6UZT.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-2UQZ1OO0.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BLW6CfOr.js";
3
+ import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BxWPpxyd.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-B0nFKawG.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-DviNSVVQ.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BOCgu6M2.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-Ck3rGv4i.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-C1XCe8La.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-9y-kbVDw.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,4 +1,4 @@
1
- import { i as isIOS, o as isIPhone14OrHigher, s as isSafari, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
1
+ import { i as isIOS, o as isIPhone14OrHigher, r as isDesktop, s as isSafari, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
2
2
  import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-_2sXMXiF.esm.js";
3
3
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
4
4
  import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
@@ -70,6 +70,11 @@ async function getCameras() {
70
70
  }
71
71
  return cameras;
72
72
  }
73
+ async function hasBackCamera() {
74
+ const devices = await enumerateVideoDevices();
75
+ if (devices.some((d) => isBackCameraLabel(d.label))) return true;
76
+ return devices.length > 1 && !isDesktop();
77
+ }
73
78
  function selectBestBackCamera(backCameras) {
74
79
  if (backCameras.length === 0) return void 0;
75
80
  if (backCameras.length === 1) return backCameras[0];
@@ -434,4 +439,4 @@ async function getBackCameraStream(deviceId) {
434
439
  return { stream: await getDesktopBackCameraStream(deviceId) };
435
440
  }
436
441
  //#endregion
437
- export { getBackCameraStream as n, getDesktopCameraStream as r, ensureFrontCameraStream as t };
442
+ export { hasBackCamera as i, getBackCameraStream as n, getDesktopCameraStream as r, ensureFrontCameraStream as t };
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-3Pbtj-RV.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-2h_w6wFc.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -97,7 +97,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
@@ -1,8 +1,8 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-Dg-cTLRe.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-B37CsuOa.esm.js";
5
- import "./trueSight-c8_3AedU.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-DvQJ9VE5.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-Da81eV4i.esm.js";
5
+ import "./trueSight-CYvK2pCj.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-CxMdPvAy.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-CoT-a3Ae.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-CB6Wj8hG.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,3 +1,3 @@
1
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CaswhdE0.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-Ckt4gvE_.esm.js";
1
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CN8EAEff.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-D4qOmhP9.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -38,6 +38,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: NonReducibleUnknown;
44
+ };
41
45
  setStream: {
42
46
  type: "setStream";
43
47
  params: NonReducibleUnknown;
@@ -50,10 +54,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
50
54
  type: "setProgress";
51
55
  params: NonReducibleUnknown;
52
56
  };
53
- setError: {
54
- type: "setError";
55
- params: NonReducibleUnknown;
56
- };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
@@ -4,7 +4,7 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
4
  import { c as createManager, o as createActor, 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 stopCameraStream } from "./camera-_2sXMXiF.esm.js";
7
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
7
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
8
8
  //#region src/modules/document-upload/documentUploadServices.ts
9
9
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
10
10
  const url = `${endpoints.addDocument}?type=${encodeURIComponent(documentType)}`;
@@ -251,7 +251,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
251
251
  type: "fileSizeOkForNonGallery";
252
252
  params: unknown;
253
253
  };
254
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
254
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "failure" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
255
255
  permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
256
256
  }, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
257
257
  readonly id: "documentCapture";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.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 { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CaswhdE0.esm.js";
4
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CN8EAEff.esm.js";
5
5
  //#region src/modules/document-capture/documentCaptureActor.ts
6
6
  function createDocumentCaptureActor(options) {
7
7
  return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
@@ -4,7 +4,7 @@ import { 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 { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
6
6
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-UvUcOSRb.esm.js";
7
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
7
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
8
8
  import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KINpmKtI.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DmrHJVyI.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-DF6bcZEg.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Bu_1wKYm.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-CMG-hpmn.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.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 dynamicFormsMachine } from "./dynamicFormsStateMachine-DmrHJVyI.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Bu_1wKYm.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-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-61J1QWrY.esm.js";
3
+ import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-BoEMh9ug.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 { t as isoDateToMs } from "./dateUtils-CvG0FvK8.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-CDPLiHeh.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Dr6yPkAw.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BkGMnaxO.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-IFiP7HL2.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-BUxwKjoE.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-DFa7lPE6.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-ethtfu2b.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-Dr6yPkAw.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-BUxwKjoE.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-CCzL3XD_.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-CDPLiHeh.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-IFiP7HL2.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-DQyrvDQj.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-Bhzea4I2.esm.js";
1
+ import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-B_wRf5fK.esm.js";
2
2
  export { AE_CONSENT_KEYS, 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-ethtfu2b.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-61J1QWrY.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-BoEMh9ug.esm.js";
6
6
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -5,16 +5,16 @@ import "./Actor-iTq7YY48.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-DVmXIdzW.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-CcUXQZS7.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
8
- import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BLW6CfOr.js";
8
+ import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BxWPpxyd.js";
9
9
  import { t as IStorageCapability } from "./IStorageCapability-ORkQfK3F.js";
10
10
  import { n as BaseWasmProvider } from "./FaceDetectionProvider-Mh6q3EbA.js";
11
11
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-Hmd7U0JA.js";
12
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-RB6OH_Bi.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CiPSTRIN.js";
14
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
12
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DwlCppg0.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BBMGTcwW.js";
14
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-2h_w6wFc.js";
15
15
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
16
16
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DVGr7Fq7.js";
17
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CoT-a3Ae.js";
17
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CB6Wj8hG.js";
18
18
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-fhK0yINk.js";
19
19
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
20
20
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
@@ -23,10 +23,10 @@ import { n as CaptureIdResponse } from "./types-DT9tqQtP2.js";
23
23
  import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-JWz-mYr-.js";
24
24
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
25
25
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
26
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
26
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
27
27
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
28
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DyPzUmsZ.js";
29
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
28
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DXlHM88Z.js";
29
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
30
30
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
31
31
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
32
32
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
@@ -1,22 +1,22 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-B37CsuOa.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-Da81eV4i.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-Bhzea4I2.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-B_wRf5fK.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-C4_d-1a0.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DviNSVVQ.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BNk1zdLY.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-Ck3rGv4i.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-B1qWiWRS.esm.js";
10
10
  import { n as createConsentManagerFromActor } from "./consentManager-lG6fCXOk.esm.js";
11
11
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-B5bnUpSo.esm.js";
12
12
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CYkSBXCF.esm.js";
13
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-Ckt4gvE_.esm.js";
14
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DF6bcZEg.esm.js";
15
- import { n as createEkybManagerFromActor } from "./ekybManager-BkGMnaxO.esm.js";
13
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-D4qOmhP9.esm.js";
14
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CMG-hpmn.esm.js";
15
+ import { n as createEkybManagerFromActor } from "./ekybManager-DFa7lPE6.esm.js";
16
16
  import { n as createEkycManagerFromActor } from "./ekycManager-BnPKaiV_.esm.js";
17
17
  import { n as createEmailManagerFromActor } from "./emailManager-D-3pYOas.esm.js";
18
- import { n as createSelfieManagerFromActor } from "./selfieManager-B9V4N08q.esm.js";
19
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-D8iZJatj.esm.js";
18
+ import { n as createSelfieManagerFromActor } from "./selfieManager-WlE8qMwf.esm.js";
19
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-5AA7UIK_.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-SONkmpec.esm.js";
21
21
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-QakKGrF0.esm.js";
22
22
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CUVKNTFa.esm.js";
@@ -25,7 +25,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
25
25
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DWGed-91.esm.js";
26
26
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B7EYFwY_.esm.js";
27
27
  import { n as createSignatureManagerFromActor } from "./signatureManager-BpstxH7R.esm.js";
28
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-DuUJyVv6.esm.js";
28
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-a-Sdu0Od.esm.js";
29
29
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-W8v-boCx.esm.js";
30
30
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Dnp-edw5.esm.js";
31
31
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -155,6 +155,7 @@ type FaceCaptureContext = {
155
155
  stream: CameraStream | undefined;
156
156
  provider: FaceDetectionProvider | undefined;
157
157
  frameCapturer: StreamCanvasCapture | undefined;
158
+ usingBackCamera: boolean;
158
159
  error: string | FaceErrorObject | undefined;
159
160
  detectionStatus: DetectionStatus;
160
161
  capturedImage: IncodeCanvas | undefined;
@@ -310,8 +311,17 @@ type FaceCaptureCaptureState = {
310
311
  attemptsRemaining: number;
311
312
  /** Error message from failed upload */
312
313
  uploadError: string | undefined;
313
- /** Whether assisted onboarding mode is active (back camera, no mirror) */
314
+ /**
315
+ * The requested config flag only — it does NOT say which camera is in use,
316
+ * since devices without a rear camera fall back to the front one. Use
317
+ * {@link usingBackCamera} for camera-dependent concerns like mirroring.
318
+ */
314
319
  assistedOnboarding: boolean;
320
+ /**
321
+ * Whether the active `stream` really came from a rear camera. Mirror the
322
+ * preview when this is `false` (selfie view), leave it as-is when `true`.
323
+ */
324
+ usingBackCamera: boolean;
315
325
  ageAssurance?: boolean;
316
326
  /**
317
327
  * Whether on-device face-results submission is enabled
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ethtfu2b.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-DviNSVVQ.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-Ck3rGv4i.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-UvUcOSRb.esm.js";
@@ -57,6 +57,7 @@ function mapState(snapshot) {
57
57
  attemptsRemaining: context.attemptsRemaining ?? 0,
58
58
  uploadError: context.uploadError,
59
59
  assistedOnboarding: context.config?.assistedOnboarding ?? false,
60
+ usingBackCamera: context.usingBackCamera ?? false,
60
61
  ageAssurance: context.config?.ageAssurance === true,
61
62
  onDeviceMode: context.config?.onDeviceFaceResultsSubmissionEnabled === true,
62
63
  obfuscateWithAvatar,
@@ -2,13 +2,13 @@ import { r as getToken } from "./api-Bx3gKW_y.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-UvUcOSRb.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BOCgu6M2.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-C1XCe8La.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-DQKaRise.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-KINpmKtI.esm.js";
10
10
  import { t as flagFaceManualReview } from "./manualReviewService-D4IkipnN.esm.js";
11
- import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-BsDOhy-R.esm.js";
11
+ import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-BSt2vDFp.esm.js";
12
12
  //#region src/internal/avatar/concealment.ts
13
13
  /**
14
14
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
@@ -172,7 +172,8 @@ const faceCaptureMachine = setup({
172
172
  stream: void 0,
173
173
  provider: void 0,
174
174
  frameCapturer: void 0,
175
- avatarCanvas: void 0
175
+ avatarCanvas: void 0,
176
+ usingBackCamera: false
176
177
  };
177
178
  }),
178
179
  setStreamAndCapturer: assign({
@@ -184,6 +185,10 @@ const faceCaptureMachine = setup({
184
185
  },
185
186
  frameCapturer: ({ event }) => {
186
187
  if ("output" in event) return new StreamCanvasCapture(event.output.stream);
188
+ },
189
+ usingBackCamera: ({ event }) => {
190
+ if ("output" in event) return event.output.usingBackCamera;
191
+ return false;
187
192
  }
188
193
  }),
189
194
  trackTutorial: () => void 0,
@@ -192,6 +197,7 @@ const faceCaptureMachine = setup({
192
197
  stream: void 0,
193
198
  provider: void 0,
194
199
  frameCapturer: void 0,
200
+ usingBackCamera: false,
195
201
  error: void 0,
196
202
  detectionStatus: "idle",
197
203
  capturedImage: void 0,
@@ -231,7 +237,8 @@ const faceCaptureMachine = setup({
231
237
  stream: void 0,
232
238
  provider: void 0,
233
239
  frameCapturer: void 0,
234
- avatarCanvas: void 0
240
+ avatarCanvas: void 0,
241
+ usingBackCamera: false
235
242
  };
236
243
  }),
237
244
  decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
@@ -333,6 +340,7 @@ const faceCaptureMachine = setup({
333
340
  stream: void 0,
334
341
  provider: void 0,
335
342
  frameCapturer: void 0,
343
+ usingBackCamera: false,
336
344
  error: void 0,
337
345
  detectionStatus: "idle",
338
346
  capturedImage: void 0,
@@ -5,7 +5,7 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
5
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
8
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
8
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
9
9
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
10
10
  import { BrowserQRCodeReader } from "@zxing/browser";
11
11
  //#region src/modules/fiscal-qr/fiscalQrConstants.ts
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ethtfu2b.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-CDPLiHeh.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-IFiP7HL2.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
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BKTVutmF.esm.js";
6
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BaUwLBvs.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DUxRhZ67.esm.js";
6
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-D0mcMqZn.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
8
8
  const noOpFlowModuleMachine = setup({}).createMachine({
9
9
  id: "noOpFlowModule",
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError } from "./apiError-61J1QWrY.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-BoEMh9ug.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,9 +1,9 @@
1
1
  import { _ as updateFeatureManagementUser } from "./feature-management-CFRmD8Nr.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-B37CsuOa.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-Da81eV4i.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-61J1QWrY.esm.js";
6
- import "./session-BTlOwOiF.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-BoEMh9ug.esm.js";
6
+ import "./session-DfRv-FiI.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) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-DuUJyVv6.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-B5M0wpkk.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-a-Sdu0Od.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-D86KBZyx.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-B5M0wpkk.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-D86KBZyx.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-CCzL3XD_.esm.js";
3
3
  import { i as isIOS, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
4
- import { n as isConnectivityError } from "./apiError-61J1QWrY.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-BoEMh9ug.esm.js";
5
5
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,17 +1,17 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-CfhXNUE7.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BPrKlL3q.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-CDPLiHeh.esm.js";
4
+ import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-IFiP7HL2.esm.js";
5
5
  import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BOCgu6M2.esm.js";
7
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-C1XCe8La.esm.js";
8
8
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
9
9
  import { i as uploadSelfie, r as processFace } from "./selfieErrorUtils-C2PYBVsp.esm.js";
10
10
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
11
11
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DrQe0hWr.esm.js";
12
- import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-uGFsH4MQ.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-BKTVutmF.esm.js";
14
- import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-piKZYcjV.esm.js";
12
+ import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-CcAu89Fz.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-DUxRhZ67.esm.js";
14
+ import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-Cp0Ekjzy.esm.js";
15
15
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
16
  /** Default autocapture window for the selfie step. */
17
17
  const SELFIE_AUTOCAPTURE_MS = 1e4;