@incodetech/core 0.0.0-dev-20261117-e29ff845 → 0.0.0-dev-20261117-93203978

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 (132) hide show
  1. package/dist/{CameraCompositor-CdfVeSm1.esm.js → CameraCompositor-C7N1N61V.esm.js} +54 -0
  2. package/dist/{FaceDetectionProvider-CauOc5Lm.esm.js → FaceDetectionProvider-DsaFfz7s.esm.js} +5 -5
  3. package/dist/{addressSearch-B0dFbagf.esm.js → addressSearch-BzAy6lhp.esm.js} +1 -3
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-QFHsqOLJ.esm.js → apiError-dpQpDVAa.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-CP-HNswc.esm.js → authenticationManager-DsPek0Nn.esm.js} +3 -3
  9. package/dist/{authenticationManager-B5bDOL1k.d.ts → authenticationManager-eYcurNiS.d.ts} +1 -1
  10. package/dist/{authenticationStateMachine-C1Q71j1O.esm.js → authenticationStateMachine-CC6EnRIr.esm.js} +3 -3
  11. package/dist/{backCameraStream-BwKBqWV1.esm.js → backCameraStream-6qVHvj76.esm.js} +1 -1
  12. package/dist/{camera-BmPyTikf.esm.js → camera-CJKApt0x.esm.js} +9 -1
  13. package/dist/camera.d.ts +2 -2
  14. package/dist/camera.esm.js +1 -1
  15. package/dist/consent.esm.js +2 -2
  16. package/dist/{consentManager-BryqWuTX.esm.js → consentManager-DRMJ3O4r.esm.js} +1 -1
  17. package/dist/{consentStateMachine-BKxCX8RR.esm.js → consentStateMachine-Br0JbW7k.esm.js} +3 -6
  18. package/dist/cross-document-data-match.esm.js +1 -1
  19. package/dist/{crossDocumentDataMatchManager-JpvG0LfN.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +0 -1
  20. package/dist/curp-validation.esm.js +2 -2
  21. package/dist/{curpValidationManager-zB-WC9ff.esm.js → curpValidationManager-BKUDQ55W.esm.js} +1 -1
  22. package/dist/{curpValidationStateMachine-qhl8i8Wt.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +3 -9
  23. package/dist/custom-fields.esm.js +1 -1
  24. package/dist/custom-watchlist.esm.js +2 -2
  25. package/dist/{customFieldsManager-CJGIvO_Y.esm.js → customFieldsManager-CPhONu5i.esm.js} +1 -3
  26. package/dist/{customWatchlistManager-D6_6diPl.esm.js → customWatchlistManager-cN57usIW.esm.js} +1 -1
  27. package/dist/{customWatchlistStateMachine-DomGDHJG.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +1 -3
  28. package/dist/{deepsightLoader-Cx_9zNVz.esm.js → deepsightLoader-BBiI7ZWu.esm.js} +3 -3
  29. package/dist/{desktopCameraElection-C_taHjXy.esm.js → desktopCameraElection-Bu2QTynu.esm.js} +19 -7
  30. package/dist/document-capture.d.ts +1 -1
  31. package/dist/document-capture.esm.js +2 -2
  32. package/dist/document-signature.esm.js +1 -1
  33. package/dist/{documentCaptureManager-DX2zBVSz.esm.js → documentCaptureManager-BRQrsO4M.esm.js} +1 -1
  34. package/dist/{documentCaptureManager-BkaPpoKy.d.ts → documentCaptureManager-D9RrQglb.d.ts} +4 -4
  35. package/dist/{documentCaptureStateMachine-D1gDZKWU.esm.js → documentCaptureStateMachine-CcfpZZfv.esm.js} +4 -4
  36. package/dist/{documentSignatureStateMachine-ClnMu3Fj.esm.js → documentSignatureStateMachine-CJe3ww4s.esm.js} +1 -1
  37. package/dist/dynamic-forms.esm.js +2 -2
  38. package/dist/{dynamicFormsManager-DhKQT_B0.esm.js → dynamicFormsManager-BnjBylBR.esm.js} +1 -1
  39. package/dist/{dynamicFormsStateMachine-DICWLVPl.esm.js → dynamicFormsStateMachine-65sz5QV1.esm.js} +3 -7
  40. package/dist/ekyb.esm.js +2 -2
  41. package/dist/{ekybManager-Cpz3YN8L.esm.js → ekybManager-C_0056G9.esm.js} +1 -1
  42. package/dist/{ekybStateMachine-DSIMPzYn.esm.js → ekybStateMachine-C1_LR9py.esm.js} +3 -5
  43. package/dist/ekyc-prefill.d.ts +1 -1
  44. package/dist/ekyc-prefill.esm.js +2 -2
  45. package/dist/ekyc.esm.js +2 -2
  46. package/dist/{ekycManager-9Go6sWaP.esm.js → ekycManager-DWCL912J.esm.js} +1 -1
  47. package/dist/{ekycPrefillManager-BcLhkpp8.d.ts → ekycPrefillManager-DY3f44kC.d.ts} +5 -5
  48. package/dist/{ekycPrefillManager-DKohlrlQ.esm.js → ekycPrefillManager-DdwwQEXB.esm.js} +1 -1
  49. package/dist/{ekycPrefillStateMachine-CTQ_fVE6.esm.js → ekycPrefillStateMachine-DEh0M7wu.esm.js} +2 -4
  50. package/dist/{ekycStateMachine-BgjkwEXb.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +4 -10
  51. package/dist/electronic-signature.esm.js +1 -1
  52. package/dist/{electronicSignatureManager-Birlyc_W.esm.js → electronicSignatureManager-UmcAv118.esm.js} +5 -13
  53. package/dist/email.esm.js +2 -2
  54. package/dist/{emailManager-BDjoEB76.esm.js → emailManager-CfvR6pQN.esm.js} +1 -1
  55. package/dist/{emailStateMachine-BvY9LBq3.esm.js → emailStateMachine-C4FouMzc.esm.js} +1 -3
  56. package/dist/extensibility.d.ts +7 -7
  57. package/dist/extensibility.esm.js +28 -28
  58. package/dist/{faceCaptureManagerFactory-D55zMPjL.esm.js → faceCaptureManagerFactory-DQton9XS.esm.js} +2 -2
  59. package/dist/{faceCaptureManagerFactory-DA0pZKLe.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +2 -2
  60. package/dist/{faceCaptureSetup-B8yCqvkE.esm.js → faceCaptureSetup-CzG8c3ia.esm.js} +21 -10
  61. package/dist/{feature-management-CroerM3o.esm.js → feature-management-B8vzOUdr.esm.js} +1 -1
  62. package/dist/feature-management.esm.js +1 -1
  63. package/dist/field-comparison.esm.js +1 -1
  64. package/dist/{fieldComparisonManager-CFDm0Pk8.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +1 -3
  65. package/dist/fiscal-qr.esm.js +1 -1
  66. package/dist/{fiscalQrManager-Dr42UNTg.esm.js → fiscalQrManager-8Y1EeyBM.esm.js} +2 -2
  67. package/dist/flow.d.ts +1 -1
  68. package/dist/flow.esm.js +3 -3
  69. package/dist/{flowCompletionService-FLnc6Y8n.esm.js → flowCompletionService-Ee5hxwxn.esm.js} +1 -1
  70. package/dist/{flowServices-CiMliMo1.esm.js → flowServices-BVEZ01Ch.esm.js} +7 -6
  71. package/dist/geolocation.d.ts +1 -1
  72. package/dist/geolocation.esm.js +2 -2
  73. package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
  74. package/dist/{geolocationManager-CfXr_6nz.esm.js → geolocationManager-fXEM62IB.esm.js} +1 -1
  75. package/dist/{geolocationStateMachine-0T8ZFeqW.esm.js → geolocationStateMachine-DRrVV-5-.esm.js} +3 -5
  76. package/dist/government-validation.esm.js +2 -2
  77. package/dist/{governmentValidationManager-yqB7WYMq.esm.js → governmentValidationManager-D2KGYDws.esm.js} +1 -1
  78. package/dist/{governmentValidationStateMachine-E5D3cJsW.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +1 -3
  79. package/dist/id-ocr.d.ts +1 -1
  80. package/dist/id-selfie-flow.d.ts +1 -1
  81. package/dist/id-selfie-flow.esm.js +7 -7
  82. package/dist/id.esm.js +3 -3
  83. package/dist/{idCaptureManager-BIdhElg-.esm.js → idCaptureManager-BIPeziwH.esm.js} +5 -5
  84. package/dist/{idCaptureServices-BXxOv7QU.esm.js → idCaptureServices-AECMPZau.esm.js} +6 -5
  85. package/dist/{idCaptureStateMachine-Chfbkhzz.esm.js → idCaptureStateMachine-BLtw0Hbg.esm.js} +22 -12
  86. package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-C3BHGgSb.d.ts} +1 -1
  87. package/dist/index.esm.js +1 -1
  88. package/dist/kyb-checks.esm.js +2 -2
  89. package/dist/{kybChecksManager-DcsGD2wG.esm.js → kybChecksManager-DXJ83CMC.esm.js} +1 -1
  90. package/dist/{kybChecksStateMachine-DOxQz4kx.esm.js → kybChecksStateMachine-B0RsKx4y.esm.js} +4 -8
  91. package/dist/mandatory-consent.esm.js +2 -2
  92. package/dist/{mandatoryConsentManager-f2PQQ4NW.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +1 -1
  93. package/dist/{mandatoryConsentStateMachine-B1YRihU8.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +3 -6
  94. package/dist/{permissionGuards-C-iYQ3GD.esm.js → permissionGuards-Dkz3FWte.esm.js} +1 -1
  95. package/dist/{permissionServices-DWV-6dsv.esm.js → permissionServices-IayHAnIi.esm.js} +6 -3
  96. package/dist/phone.esm.js +2 -2
  97. package/dist/{phoneManager-B4QkZ77c.esm.js → phoneManager-D8-l6-0y.esm.js} +1 -1
  98. package/dist/{phoneServices-rooti109.esm.js → phoneServices-C9lFIuCM.esm.js} +2 -6
  99. package/dist/{phoneStateMachine-BXveIzDc.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +1 -1
  100. package/dist/qe-signature.esm.js +1 -1
  101. package/dist/{recordingService-DLksyKif.esm.js → recordingService-CLGnDCDl.esm.js} +3 -2
  102. package/dist/{runChildModule-D55jpqYD.esm.js → runChildModule-CYS_6B0t.esm.js} +1 -1
  103. package/dist/{sdkVersion-CXNUpray.esm.js → sdkVersion-DgMJBO6O.esm.js} +1 -1
  104. package/dist/selfie.d.ts +3 -3
  105. package/dist/selfie.esm.js +7 -7
  106. package/dist/{selfieErrorUtils-BB272GDV.esm.js → selfieErrorUtils-BsS0h6Dr.esm.js} +1 -1
  107. package/dist/{selfieManager-CS_S-oEz.d.ts → selfieManager-C5a6Fw6W.d.ts} +1 -1
  108. package/dist/{selfieManager-DNfcl9Ol.esm.js → selfieManager-CDC_eRF0.esm.js} +3 -3
  109. package/dist/{selfieStateMachine-CprOxiUA.esm.js → selfieStateMachine-CCpFOysP.esm.js} +3 -3
  110. package/dist/{session-BKEXaIce.esm.js → session-C61HOdAy.esm.js} +3 -3
  111. package/dist/session.esm.js +4 -4
  112. package/dist/{sessionInitializer-Bd-eCn2s.esm.js → sessionInitializer-Cwi_6ZyJ.esm.js} +3 -3
  113. package/dist/{setup-jFWnUhos.esm.js → setup-xFvpoiXD.esm.js} +4 -4
  114. package/dist/signature.esm.js +2 -2
  115. package/dist/{signatureManager-CSvT7oe0.esm.js → signatureManager-B6dRieBV.esm.js} +1 -1
  116. package/dist/{signatureStateMachine-D37V__5_.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +2 -4
  117. package/dist/{trueSightService-CdFQFUZR.esm.js → trueSightService-Dv2zO2-w.esm.js} +1 -1
  118. package/dist/{types-Bcw8mE-6.d.ts → types-C2uJrJrS.d.ts} +1 -1
  119. package/dist/{types-La_TK2uv.d.ts → types-x5MQKskR.d.ts} +2 -0
  120. package/dist/video-selfie.d.ts +1 -1
  121. package/dist/video-selfie.esm.js +4 -4
  122. package/dist/{videoSelfieCameraWarmer-Ch6fYbNT.esm.js → videoSelfieCameraWarmer-D_LXh2-8.esm.js} +6 -6
  123. package/dist/{videoSelfieStepDetector-CCdwXu_Y.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +14 -1
  124. package/dist/wasm.esm.js +1 -1
  125. package/dist/watchlist-for-business.esm.js +2 -2
  126. package/dist/watchlist.esm.js +2 -2
  127. package/dist/{watchlistForBusinessManager-CmjwV--u.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +1 -1
  128. package/dist/{watchlistForBusinessStateMachine-BYig8gg5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +1 -3
  129. package/dist/{watchlistManager-Ct8XSwNb.esm.js → watchlistManager-CGXbemnp.esm.js} +1 -1
  130. package/dist/{watchlistStateMachine-BC9qoUVd.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +1 -3
  131. package/dist/workflow.esm.js +28 -28
  132. package/package.json +3 -3
@@ -73,6 +73,7 @@ function cameraCompositorWorkerMain(scope) {
73
73
  let videoEncoder = null;
74
74
  let audioEncoder = null;
75
75
  let hasAudioSource = false;
76
+ let activeAudioReader = null;
76
77
  let audioWanted = false;
77
78
  let audioFormat = null;
78
79
  let audioInHeader = false;
@@ -450,14 +451,20 @@ function cameraCompositorWorkerMain(scope) {
450
451
  };
451
452
  const pumpAudio = async (readable) => {
452
453
  const reader = readable.getReader();
454
+ activeAudioReader = reader;
453
455
  try {
454
456
  for (;;) {
455
457
  const { value, done } = await reader.read();
456
458
  if (done) return;
459
+ if (reader !== activeAudioReader) {
460
+ value.close();
461
+ return;
462
+ }
457
463
  if (paused || recording !== "on") value.close();
458
464
  else encodeAudio(value);
459
465
  }
460
466
  } catch (error) {
467
+ if (reader !== activeAudioReader) return;
461
468
  audioWanted = false;
462
469
  scope.postMessage({
463
470
  type: "record-error",
@@ -549,6 +556,15 @@ function cameraCompositorWorkerMain(scope) {
549
556
  case "source":
550
557
  switchSource(message.readable);
551
558
  break;
559
+ case "audio": {
560
+ if (!encodeConfig || !hasAudioSource) break;
561
+ const previous = activeAudioReader;
562
+ activeAudioReader = null;
563
+ previous?.cancel().catch(() => {});
564
+ audio.offsetUs = null;
565
+ pumpAudio(message.readable);
566
+ break;
567
+ }
552
568
  case "pause":
553
569
  paused = true;
554
570
  break;
@@ -708,6 +724,44 @@ var CameraCompositor = class {
708
724
  if (previousVideoTrack) previousVideoTrack.stop();
709
725
  }
710
726
  /**
727
+ * Stops the microphone while no attempt records, so it is not held between
728
+ * attempts. Only the in-worker encoder can take a new microphone later
729
+ * (`switchAudio`); a `MediaRecorder` must keep its tracks, so there the
730
+ * microphone stays until `stop()`.
731
+ */
732
+ releaseAudio() {
733
+ if (!this.encodesInWorker || !this.audioTrack) return;
734
+ this.composite?.removeTrack(this.audioTrack);
735
+ this.audioTrack.stop();
736
+ this.audioTrack = null;
737
+ }
738
+ /**
739
+ * Gives the in-worker encoder the microphone of `stream` after
740
+ * `releaseAudio`. Otherwise the composite keeps its microphone and the audio
741
+ * tracks of `stream` are stopped, because nothing else would end them.
742
+ */
743
+ switchAudio(stream) {
744
+ const [track, ...unused] = stream.getAudioTracks();
745
+ for (const extra of unused) extra.stop();
746
+ if (!track) return;
747
+ if (!this.encodesInWorker || this.audioTrack || !this.composite) {
748
+ track.stop();
749
+ return;
750
+ }
751
+ try {
752
+ const processor = createTrackProcessor(track);
753
+ this.postToWorker({
754
+ type: "audio",
755
+ readable: processor.readable
756
+ }, [processor.readable]);
757
+ } catch {
758
+ track.stop();
759
+ return;
760
+ }
761
+ this.audioTrack = track;
762
+ this.composite.addTrack(track);
763
+ }
764
+ /**
711
765
  * True when this compositor records by itself: the worker transport started
712
766
  * with `encodeInWorker` and the browser has `VideoEncoder`. Use the
713
767
  * `*WorkerRecording` methods instead of a `MediaRecorder` then; the
@@ -1,13 +1,13 @@
1
1
  import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-jFWnUhos.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-xFvpoiXD.esm.js";
3
3
  import { r as BaseWasmProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
4
4
  import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CdFQFUZR.esm.js";
6
- import "./sessionInitializer-Bd-eCn2s.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-Dv2zO2-w.esm.js";
6
+ import "./sessionInitializer-Cwi_6ZyJ.esm.js";
7
7
  import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
8
8
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
- import { r as hasBackCamera } from "./backCameraStream-BwKBqWV1.esm.js";
10
+ import { r as hasBackCamera } from "./backCameraStream-6qVHvj76.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
12
12
  import { n as saveProcessFaceMatch } from "./processFaceMatch-B1Mhqkep.esm.js";
13
13
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
@@ -235,7 +235,7 @@ function startDetection(params) {
235
235
  };
236
236
  }
237
237
  async function initializeDeepsightSession(options) {
238
- const { loadDeepsightSession } = await import("./deepsightLoader-Cx_9zNVz.esm.js");
238
+ const { loadDeepsightSession } = await import("./deepsightLoader-BBiI7ZWu.esm.js");
239
239
  return loadDeepsightSession({
240
240
  ds: options.ds,
241
241
  storage: options.storage
@@ -27,9 +27,7 @@ function isFormDefinitionsEnabled() {
27
27
  //#region src/shared/addressSearch.ts
28
28
  /** Searches for address suggestions via the address autocomplete API. */
29
29
  async function searchAddress(query, signal) {
30
- const res = await api.post(endpoints.addressAutocomplete, { search: query }, { signal });
31
- if (!res.ok) throw new Error(`POST ${endpoints.addressAutocomplete} failed: ${res.status} ${res.statusText}`);
32
- return { apiResponse: { items: (res.data.apiResponse?.items ?? []).map((item, i) => {
30
+ return { apiResponse: { items: ((await api.post(endpoints.addressAutocomplete, { search: query }, { signal })).data.apiResponse?.items ?? []).map((item, i) => {
33
31
  const addr = item.address ?? item;
34
32
  return {
35
33
  id: item.id ?? i,
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Birlyc_W.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-UmcAv118.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 { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-CdFQFUZR.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-Dv2zO2-w.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DA0pZKLe.js";
2
- import { t as AuthenticationConfig } from "./types-Bcw8mE-6.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-B5bDOL1k.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DhDPxxp-.js";
2
+ import { t as AuthenticationConfig } from "./types-C2uJrJrS.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-eYcurNiS.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-C1Q71j1O.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CP-HNswc.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-CC6EnRIr.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DsPek0Nn.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,10 +1,10 @@
1
- import { u as BrowserStorageProvider } from "./setup-jFWnUhos.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-xFvpoiXD.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
3
3
  import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
4
4
  import "./events-CsPmTidH.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D55zMPjL.esm.js";
7
- import { t as authenticationMachine } from "./authenticationStateMachine-C1Q71j1O.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DQton9XS.esm.js";
7
+ import { t as authenticationMachine } from "./authenticationStateMachine-CC6EnRIr.esm.js";
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
10
10
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-DufwKlav.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DA0pZKLe.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-DhDPxxp-.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,8 +1,8 @@
1
1
  import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-B8yCqvkE.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CauOc5Lm.esm.js";
5
- import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-C_taHjXy.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CzG8c3ia.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DsaFfz7s.esm.js";
5
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-Bu2QTynu.esm.js";
6
6
  //#region src/modules/authentication/authenticationErrorUtils.ts
7
7
  const AUTH_ERROR_MAP = {
8
8
  SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
2
  import { i as isIOS, r as isDesktop, s as isIPhone14OrHigher, t as isAndroid, u as isSafari } from "./platform-GIg4uPWe.esm.js";
3
- import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-BmPyTikf.esm.js";
3
+ import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-CJKApt0x.esm.js";
4
4
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
5
5
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
6
6
  import { n as isBackFacingTrack, r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
@@ -135,6 +135,14 @@ async function requestCameraWithFallback(baseConstraints, fallbacks = DEFAULT_RE
135
135
  }
136
136
  throw new Error("All camera resolution fallbacks failed");
137
137
  }
138
+ /**
139
+ * The video tracks of `video` with the audio tracks of `audio`, as one stream.
140
+ * Returns `video` itself when `audio` has no audio track.
141
+ */
142
+ function withAudioTracks(video, audio) {
143
+ const audioTracks = audio?.getAudioTracks() ?? [];
144
+ return audioTracks.length > 0 ? new MediaStream([...video.getVideoTracks(), ...audioTracks]) : video;
145
+ }
138
146
  function stopCameraStream(stream) {
139
147
  for (const track of stream.getTracks()) track.stop();
140
148
  }
@@ -146,4 +154,4 @@ async function applyTrackConstraints(track, constraints) {
146
154
  await track.applyConstraints(constraints);
147
155
  }
148
156
  //#endregion
149
- export { stopCameraStream as a, isCameraGrantedInDocument as c, requestCameraWithFallback as i, markCameraGrantedInDocument as l, enumerateVideoDevices as n, clearCameraGrantedInDocument as o, requestCameraAccess as r, isCameraDenialErrorName as s, applyTrackConstraints as t };
157
+ export { stopCameraStream as a, isCameraDenialErrorName as c, requestCameraWithFallback as i, isCameraGrantedInDocument as l, enumerateVideoDevices as n, withAudioTracks as o, requestCameraAccess as r, clearCameraGrantedInDocument as s, applyTrackConstraints as t, markCameraGrantedInDocument as u };
package/dist/camera.d.ts CHANGED
@@ -4,8 +4,8 @@ type RequestPermissionOptions = {
4
4
  requestMotion?: boolean;
5
5
  /**
6
6
  * Also request microphone access in the same `getUserMedia` call. Used by
7
- * Video Selfie, which records audio alongside video. Defaults to `false` so
8
- * camera-only flows (selfie, ID) keep requesting `{ video: true }` exactly.
7
+ * Video Selfie, and by ID and selfie when they record a merged session with
8
+ * sound. Defaults to `false`, so other flows keep `{ video: true }` exactly.
9
9
  */
10
10
  requestAudio?: boolean;
11
11
  };
@@ -1,2 +1,2 @@
1
- import { a as requestPermission, t as checkPermission } from "./permissionServices-DWV-6dsv.esm.js";
1
+ import { a as requestPermission, t as checkPermission } from "./permissionServices-IayHAnIi.esm.js";
2
2
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,3 +1,3 @@
1
- import { t as consentMachine } from "./consentStateMachine-BKxCX8RR.esm.js";
2
- import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-BryqWuTX.esm.js";
1
+ import { t as consentMachine } from "./consentStateMachine-Br0JbW7k.esm.js";
2
+ import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-DRMJ3O4r.esm.js";
3
3
  export { consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as consentMachine } from "./consentStateMachine-BKxCX8RR.esm.js";
6
+ import { t as consentMachine } from "./consentStateMachine-Br0JbW7k.esm.js";
7
7
  //#region src/modules/consent/consentActor.ts
8
8
  function createConsentActor(options) {
9
9
  return createActor(consentMachine, { input: { config: options.config } }).start();
@@ -4,19 +4,16 @@ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/modules/consent/consentServices.ts
5
5
  async function fetchCombinedConsent(consentId, language, signal) {
6
6
  if (!consentId) throw new Error("Combined consent id is required");
7
- const res = await api.get(endpoints.getCombinedConsent, {
7
+ return (await api.get(endpoints.getCombinedConsent, {
8
8
  signal,
9
9
  query: {
10
10
  id: consentId,
11
11
  language: language ?? "en"
12
12
  }
13
- });
14
- if (!res.ok) throw new Error(`GET ${endpoints.getCombinedConsent} failed: ${res.status} ${res.statusText}`);
15
- return res.data;
13
+ })).data;
16
14
  }
17
15
  async function submitCombinedConsent(params, signal) {
18
- const res = await api.post(endpoints.signCombinedConsent, params, { signal });
19
- if (!res.ok) throw new Error(`POST ${endpoints.signCombinedConsent} failed: ${res.status} ${res.statusText}`);
16
+ await api.post(endpoints.signCombinedConsent, params, { signal });
20
17
  }
21
18
  //#endregion
22
19
  //#region src/modules/consent/consentStateMachine.ts
@@ -1,2 +1,2 @@
1
- import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-JpvG0LfN.esm.js";
1
+ import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-BIQ-SYcR.esm.js";
2
2
  export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
@@ -10,7 +10,6 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
10
10
  const MIN_DISPLAY_MS = 3e3;
11
11
  async function processCrossDocumentDataMatch(signal) {
12
12
  const [res] = await Promise.all([api.post(endpoints.processCrossDocumentDataMatch, {}, { signal }), sleep(MIN_DISPLAY_MS)]);
13
- if (!res.ok) throw new Error(`POST ${endpoints.processCrossDocumentDataMatch} failed: ${res.status} ${res.statusText}`);
14
13
  return res.data;
15
14
  }
16
15
  //#endregion
@@ -1,3 +1,3 @@
1
- import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-qhl8i8Wt.esm.js";
2
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-zB-WC9ff.esm.js";
1
+ import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BwUBkyyi.esm.js";
2
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-BKUDQ55W.esm.js";
3
3
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -4,7 +4,7 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
6
  import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
7
- import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-qhl8i8Wt.esm.js";
7
+ import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BwUBkyyi.esm.js";
8
8
  //#region src/modules/curp-validation/curpValidationActor.ts
9
9
  function createCurpValidationActor(options) {
10
10
  return createActor(curpValidationMachine, { input: { config: options.config } }).start();
@@ -148,14 +148,10 @@ const mexicanStates = [
148
148
  //#endregion
149
149
  //#region src/modules/curp-validation/curpValidationServices.ts
150
150
  async function fetchOcrData(signal) {
151
- const res = await api.get(endpoints.ocrData, { signal });
152
- if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
153
- return res.data;
151
+ return (await api.get(endpoints.ocrData, { signal })).data;
154
152
  }
155
153
  async function addCurp(curp, signal) {
156
- const res = await api.post(endpoints.addCurp, { curp }, { signal });
157
- if (!res.ok) throw new Error(`POST ${endpoints.addCurp} failed: ${res.status} ${res.statusText}`);
158
- return res.data;
154
+ return (await api.post(endpoints.addCurp, { curp }, { signal })).data;
159
155
  }
160
156
  async function addCurpV2(form, signal) {
161
157
  const payload = {
@@ -166,9 +162,7 @@ async function addCurpV2(form, signal) {
166
162
  birthDate: formatDateForApi(form.birthDate),
167
163
  state: form.birthState
168
164
  };
169
- const res = await api.post(endpoints.addCurpV2, payload, { signal });
170
- if (!res.ok) throw new Error(`POST ${endpoints.addCurpV2} failed: ${res.status} ${res.statusText}`);
171
- return res.data;
165
+ return (await api.post(endpoints.addCurpV2, payload, { signal })).data;
172
166
  }
173
167
  //#endregion
174
168
  //#region src/modules/curp-validation/curpFields.ts
@@ -1,2 +1,2 @@
1
- import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-CJGIvO_Y.esm.js";
1
+ import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-CPhONu5i.esm.js";
2
2
  export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
@@ -1,3 +1,3 @@
1
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DomGDHJG.esm.js";
2
- import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-D6_6diPl.esm.js";
1
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-C1Xq1ugl.esm.js";
2
+ import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-cN57usIW.esm.js";
3
3
  export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
@@ -9,9 +9,7 @@ import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
9
9
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
10
10
  //#region src/modules/custom-fields/customFieldsServices.ts
11
11
  async function submitCustomFields(params, signal) {
12
- const res = await api.post(endpoints.addCustomFields, params.fields, { signal });
13
- if (!res.ok) throw new Error(`POST ${endpoints.addCustomFields} failed: ${res.status} ${res.statusText}`);
14
- return res.data;
12
+ return (await api.post(endpoints.addCustomFields, params.fields, { signal })).data;
15
13
  }
16
14
  //#endregion
17
15
  //#region src/modules/custom-fields/customFieldsStateMachine.ts
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DomGDHJG.esm.js";
6
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-C1Xq1ugl.esm.js";
7
7
  //#region src/modules/custom-watchlist/customWatchlistActor.ts
8
8
  function createCustomWatchlistActor() {
9
9
  return createActor(customWatchlistMachine).start();
@@ -3,9 +3,7 @@ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
4
  //#region src/modules/custom-watchlist/customWatchlistServices.ts
5
5
  async function processWatchlist(signal) {
6
- const res = await api.post(endpoints.processWatchlist, {}, { signal });
7
- if (!res.ok) throw new Error(`POST ${endpoints.processWatchlist} failed: ${res.status} ${res.statusText}`);
8
- return res.data;
6
+ return (await api.post(endpoints.processWatchlist, {}, { signal })).data;
9
7
  }
10
8
  //#endregion
11
9
  //#region src/modules/custom-watchlist/customWatchlistStateMachine.ts
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
2
- import { u as trueSightLog } from "./trueSightService-CdFQFUZR.esm.js";
3
- import { t as SDK_VERSION } from "./sdkVersion-CXNUpray.esm.js";
4
- import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-Bd-eCn2s.esm.js";
2
+ import { u as trueSightLog } from "./trueSightService-Dv2zO2-w.esm.js";
3
+ import { t as SDK_VERSION } from "./sdkVersion-DgMJBO6O.esm.js";
4
+ import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-Cwi_6ZyJ.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
@@ -3,8 +3,8 @@ import { d as getCameraCycleOwnershipDomain, l as wasmRuntime, u as CAMERA_CYCLE
3
3
  import { i as utilityWasmApi } from "./WasmUtilProvider-BW_4YKrg.esm.js";
4
4
  import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
- import { l as markCameraGrantedInDocument, n as enumerateVideoDevices, o as clearCameraGrantedInDocument, s as isCameraDenialErrorName } from "./camera-BmPyTikf.esm.js";
7
- import { l as queryCameraPermission } from "./permissionServices-DWV-6dsv.esm.js";
6
+ import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
7
+ import { l as queryCameraPermission } from "./permissionServices-IayHAnIi.esm.js";
8
8
  import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
9
9
  import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
10
10
  //#region ../infra/src/capabilities/ICameraCycleCapability.ts
@@ -295,6 +295,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
295
295
  let pendingDeliveryEvent = null;
296
296
  let visibilityGeneration = 0;
297
297
  let hostStream = null;
298
+ let audioStream = null;
298
299
  let resourcesReleased = false;
299
300
  let cycleTransferred = false;
300
301
  let commandQueue = Promise.resolve();
@@ -343,6 +344,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
343
344
  }
344
345
  });
345
346
  };
347
+ const withMic = (videoStream) => withAudioTracks(videoStream, audioStream);
346
348
  const releaseResources = () => {
347
349
  if (resourcesReleased) return;
348
350
  resourcesReleased = true;
@@ -363,6 +365,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
363
365
  finalizeDeferred = false;
364
366
  stopTracks(hostStream);
365
367
  hostStream = null;
368
+ stopTracks(audioStream);
369
+ audioStream = null;
366
370
  if (cycleTransferred) input.cycleOwnership.releaseByAttempt();
367
371
  else input.cycleOwnership.releaseByController();
368
372
  };
@@ -451,8 +455,8 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
451
455
  onFirstFrame: () => {
452
456
  startupTiming.firstFrameMs ??= Math.max(0, now() - cameraStepStartedAt);
453
457
  },
454
- onCameraReady: (audioStream) => {
455
- stopTracks(audioStream);
458
+ onCameraReady: (claimedAudio) => {
459
+ stopTracks(claimedAudio);
456
460
  step.outcome ??= { ready: true };
457
461
  },
458
462
  onCameraFailed: (error) => {
@@ -484,10 +488,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
484
488
  await input.configureWorkflow();
485
489
  startupTiming.configureMs = Math.max(0, now() - configureStartedAt);
486
490
  if (!active) return;
491
+ if (input.recordAudio) try {
492
+ const mic = await requestCameraAccess({ audio: true });
493
+ if (!active) {
494
+ stopTracks(mic);
495
+ return;
496
+ }
497
+ audioStream = mic;
498
+ } catch {}
487
499
  recorderOperationInFlight = true;
488
500
  const recorderStartedAt = now();
489
501
  try {
490
- await input.recorder.start(displayStream);
502
+ await input.recorder.start(withMic(displayStream));
491
503
  recorderStarted = input.recorder.mode !== "none";
492
504
  } catch {
493
505
  try {
@@ -610,7 +622,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
610
622
  }
611
623
  try {
612
624
  recorderOperationInFlight = true;
613
- await input.recorder.resumeAfterPoc(displayStream);
625
+ await input.recorder.resumeAfterPoc(withMic(displayStream));
614
626
  recorderResumedAfterPoc = true;
615
627
  postPocDisplayStream = displayStream;
616
628
  } catch {
@@ -793,7 +805,7 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
793
805
  }
794
806
  recorderOperationInFlight = true;
795
807
  try {
796
- await input.recorder.resumeFromBackground(resumedStream);
808
+ await input.recorder.resumeFromBackground(withMic(resumedStream));
797
809
  if (!active) return;
798
810
  if (receivedVisibilityGeneration !== visibilityGeneration) {
799
811
  recorderOperationInFlight = false;
@@ -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, u as DocumentUploadStatus } from "./types-CaVUb1DL.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-BkaPpoKy.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-D9RrQglb.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,3 +1,3 @@
1
- import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D1gDZKWU.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DX2zBVSz.esm.js";
1
+ import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CcfpZZfv.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-BRQrsO4M.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
2
  import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
- import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-ClnMu3Fj.esm.js";
5
+ import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-CJe3ww4s.esm.js";
6
6
  //#region src/modules/document-signature/documentSignatureActor.ts
7
7
  function createDocumentSignatureActor(options) {
8
8
  return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D1gDZKWU.esm.js";
6
+ import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CcfpZZfv.esm.js";
7
7
  //#region src/modules/document-capture/documentCaptureActor.ts
8
8
  function createDocumentCaptureActor(options) {
9
9
  return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
@@ -102,14 +102,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
102
102
  id: string | undefined;
103
103
  };
104
104
  }>, Values<{
105
- decrementAttemptsRemaining: {
106
- type: "decrementAttemptsRemaining";
107
- params: NonReducibleUnknown;
108
- };
109
105
  clearError: {
110
106
  type: "clearError";
111
107
  params: NonReducibleUnknown;
112
108
  };
109
+ decrementAttemptsRemaining: {
110
+ type: "decrementAttemptsRemaining";
111
+ params: NonReducibleUnknown;
112
+ };
113
113
  setStream: {
114
114
  type: "setStream";
115
115
  params: NonReducibleUnknown;
@@ -1,11 +1,11 @@
1
1
  import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
4
- import { a as stopCameraStream } from "./camera-BmPyTikf.esm.js";
5
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DWV-6dsv.esm.js";
6
- import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-C-iYQ3GD.esm.js";
4
+ import { a as stopCameraStream } from "./camera-CJKApt0x.esm.js";
5
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-IayHAnIi.esm.js";
6
+ import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-Dkz3FWte.esm.js";
7
7
  import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
8
- import { n as getBackCameraStream } from "./backCameraStream-BwKBqWV1.esm.js";
8
+ import { n as getBackCameraStream } from "./backCameraStream-6qVHvj76.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
11
11
  processV5CLogbook: "v5cMultiPageLogbook",
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
3
3
  import "./events-CsPmTidH.esm.js";
4
- import { i as toIncodeApiError } from "./apiError-QFHsqOLJ.esm.js";
4
+ import { i as toIncodeApiError } from "./apiError-dpQpDVAa.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
7
7
  //#region src/modules/document-signature/documentSignatureServices.ts
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DICWLVPl.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-DhKQT_B0.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-65sz5QV1.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-BnjBylBR.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DICWLVPl.esm.js";
6
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-65sz5QV1.esm.js";
7
7
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
8
8
  function createDynamicFormsActor(options) {
9
9
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();