@incodetech/core 0.0.0-dev-20260729-e2dda0b0 → 0.0.0-dev-20260729-9e7b030a

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 (114) hide show
  1. package/dist/ae-signature.esm.js +1 -1
  2. package/dist/antifraud.esm.js +1 -1
  3. package/dist/{antifraudManager-COYh4O_y.esm.js → antifraudManager-Cj_80kXY.esm.js} +1 -1
  4. package/dist/{apiError-GA6MbJpI.esm.js → apiError-CzR7Y6Ua.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-B7v0Jy-x.esm.js → authenticationManager-CmkHvt7_.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-DAh9ziFC.esm.js → authenticationStateMachine-O3acuOqq.esm.js} +2 -2
  8. package/dist/{backCameraStream-6XQp9RxG.esm.js → backCameraStream-BqiXcU28.esm.js} +11 -1
  9. package/dist/camera.esm.js +1 -1
  10. package/dist/certificate-issuance.esm.js +1 -1
  11. package/dist/consent.d.ts +1 -1
  12. package/dist/consent.esm.js +1 -1
  13. package/dist/{consentManager-CWEAhAJ5.esm.js → consentManager-CbYlnsM-.esm.js} +1 -1
  14. package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
  15. package/dist/cross-document-data-match.esm.js +1 -1
  16. package/dist/{crossDocumentDataMatchManager-Bk4W2TDJ.esm.js → crossDocumentDataMatchManager-D4w4_crz.esm.js} +1 -1
  17. package/dist/curp-validation.esm.js +1 -1
  18. package/dist/{curpValidationManager-B6gYKygj.esm.js → curpValidationManager-KjzGK3MT.esm.js} +1 -1
  19. package/dist/custom-fields.esm.js +1 -1
  20. package/dist/custom-watchlist.esm.js +1 -1
  21. package/dist/{deepsightLoader-CHG26pOB.esm.js → deepsightLoader-CaUpu0Dy.esm.js} +3 -3
  22. package/dist/device.esm.js +1 -15
  23. package/dist/document-capture.d.ts +1 -1
  24. package/dist/document-capture.esm.js +2 -2
  25. package/dist/document-upload.d.ts +4 -4
  26. package/dist/document-upload.esm.js +2 -2
  27. package/dist/{documentCaptureManager-FvcNYpkS.esm.js → documentCaptureManager-DiZWStP_.esm.js} +2 -2
  28. package/dist/{documentCaptureManager-BK_4RbHt.d.ts → documentCaptureManager-pEqMY_Oo.d.ts} +69 -69
  29. package/dist/{documentCaptureStateMachine-BlzN0-mU.esm.js → documentCaptureStateMachine-DAR7pkTk.esm.js} +3 -3
  30. package/dist/dynamic-forms.esm.js +2 -2
  31. package/dist/{dynamicFormsManager-CfJixpOW.esm.js → dynamicFormsManager-BxUgij0L.esm.js} +2 -2
  32. package/dist/{dynamicFormsStateMachine-DrPO1i45.esm.js → dynamicFormsStateMachine-D0cEsDMH.esm.js} +1 -1
  33. package/dist/ekyb.esm.js +3 -3
  34. package/dist/{ekybManager-DVCqaSzz.esm.js → ekybManager-LicVPYug.esm.js} +2 -2
  35. package/dist/{ekybStateMachine-C3y-Qx1a.esm.js → ekybStateMachine-IgLa1nXx.esm.js} +1 -1
  36. package/dist/ekyc.esm.js +1 -1
  37. package/dist/{ekycManager-dimNksoE.esm.js → ekycManager-JibqQLH-.esm.js} +1 -1
  38. package/dist/electronic-signature.esm.js +1 -1
  39. package/dist/{electronicSignatureManager-D0X7P-de.esm.js → electronicSignatureManager-DqPJCXMG.esm.js} +2 -2
  40. package/dist/email.esm.js +1 -1
  41. package/dist/{emailManager-BqJMritP.esm.js → emailManager-DRBVGjai.esm.js} +1 -1
  42. package/dist/{events-CMFCCu1H.esm.js → events-ethtfu2b.esm.js} +36 -1
  43. package/dist/events.d.ts +27 -1
  44. package/dist/events.esm.js +2 -2
  45. package/dist/extensibility.d.ts +5 -5
  46. package/dist/extensibility.esm.js +24 -24
  47. package/dist/face-match.esm.js +1 -1
  48. package/dist/{faceCaptureManagerFactory-D2pR3ZnX.esm.js → faceCaptureManagerFactory-2W_XduCs.esm.js} +3 -3
  49. package/dist/{faceCaptureSetup-DbhDPMjb.esm.js → faceCaptureSetup-D-9s0vUS.esm.js} +4 -4
  50. package/dist/{faceMatchManager-XxTEAj9C.esm.js → faceMatchManager-ZlPuKqfF.esm.js} +1 -1
  51. package/dist/{feature-management-Dw96qEMs.esm.js → feature-management-CFRmD8Nr.esm.js} +14 -1
  52. package/dist/feature-management.d.ts +14 -1
  53. package/dist/feature-management.esm.js +2 -2
  54. package/dist/field-comparison.esm.js +1 -1
  55. package/dist/{fieldComparisonManager-BzaX4TvX.esm.js → fieldComparisonManager-C4eefgNT.esm.js} +1 -1
  56. package/dist/fiscal-qr.esm.js +2 -2
  57. package/dist/flow.d.ts +1 -1
  58. package/dist/flow.esm.js +4 -4
  59. package/dist/{flowCompletionService-BdZR6HyE.esm.js → flowCompletionService-D_DJ1dNA.esm.js} +1 -1
  60. package/dist/{flowServices-CPti9am-.esm.js → flowServices-ZgW3UGcz.esm.js} +4 -4
  61. package/dist/geolocation.esm.js +2 -2
  62. package/dist/{geolocationManager-DW27-LTL.esm.js → geolocationManager-oLdeMbdy.esm.js} +2 -2
  63. package/dist/{geolocationStateMachine-Cz3Q6az0.esm.js → geolocationStateMachine-CSDKlrHE.esm.js} +1 -1
  64. package/dist/getBrowser-DNrQeL4T.esm.js +16 -0
  65. package/dist/government-validation.esm.js +1 -1
  66. package/dist/home.esm.js +1 -1
  67. package/dist/id-ocr.esm.js +1 -1
  68. package/dist/id-verification.esm.js +1 -1
  69. package/dist/id.d.ts +2 -2
  70. package/dist/id.esm.js +4 -4
  71. package/dist/{idCaptureManager-C-WjmsN4.d.ts → idCaptureManager-B2w2CGuV.d.ts} +12 -3
  72. package/dist/{idCaptureManager-CPzgzVu8.esm.js → idCaptureManager-DAsfVDWq.esm.js} +15 -5
  73. package/dist/{idCaptureStateMachine-CAKztWBq.esm.js → idCaptureStateMachine-BMZCf9M7.esm.js} +90 -28
  74. package/dist/{idOcrManager-Drs6frVO.esm.js → idOcrManager-HuMeVQrh.esm.js} +1 -1
  75. package/dist/{idVerificationManager-Df97Bf0n.esm.js → idVerificationManager-6R_G7Y-3.esm.js} +1 -1
  76. package/dist/identity-reuse.esm.js +1 -1
  77. package/dist/{identityReuseManager-0ZHGWr9T.esm.js → identityReuseManager-CNbGch_H.esm.js} +1 -1
  78. package/dist/index.esm.js +1 -1
  79. package/dist/{invokeOnCaptureCallback-Cgl54qED.esm.js → invokeOnCaptureCallback-DVtdZdpI.esm.js} +1 -1
  80. package/dist/mandatory-consent.d.ts +1 -1
  81. package/dist/mandatory-consent.esm.js +1 -1
  82. package/dist/{mandatoryConsentManager-DaKK7S4q.esm.js → mandatoryConsentManager-D7C9v5sI.esm.js} +1 -1
  83. package/dist/{mandatoryConsentManager-CzsVFG33.d.ts → mandatoryConsentManager-DOZSFZA2.d.ts} +4 -4
  84. package/dist/{onDeviceFaceResults-CVhk1BWp.esm.js → onDeviceFaceResults-D8FzOXsM.esm.js} +4 -4
  85. package/dist/{permissionGuards-UMiLlPfq.esm.js → permissionGuards-D0cdQjk6.esm.js} +1 -1
  86. package/dist/{permissionServices-C4qKxOl4.esm.js → permissionServices-GFikEK6S.esm.js} +2 -17
  87. package/dist/personhood.esm.js +5 -5
  88. package/dist/phone.esm.js +1 -1
  89. package/dist/{phoneManager-WImoAp4i.esm.js → phoneManager-Dus4Ddb9.esm.js} +1 -1
  90. package/dist/qe-signature.esm.js +1 -1
  91. package/dist/{recordingService-BGPq5vGr.esm.js → recordingService-D6Hbc408.esm.js} +1 -1
  92. package/dist/redirect-to-mobile.esm.js +1 -1
  93. package/dist/{redirectToMobileManager-CxEu6KnV.esm.js → redirectToMobileManager-D1WymLy1.esm.js} +1 -1
  94. package/dist/{runChildModule-fagPe5Ct.esm.js → runChildModule-CVKUUVl2.esm.js} +2 -2
  95. package/dist/selfie.esm.js +6 -6
  96. package/dist/{selfieManager-DTiBsQNn.esm.js → selfieManager-Cnw55Hp_.esm.js} +3 -3
  97. package/dist/{selfieStateMachine-CxabK5_3.esm.js → selfieStateMachine-D-wolitw.esm.js} +2 -2
  98. package/dist/{session-Ccob4IUP.esm.js → session-XugVyrIq.esm.js} +4 -4
  99. package/dist/session.esm.js +4 -4
  100. package/dist/{sessionInitializer-DEd0CQ74.esm.js → sessionInitializer-B3g2uAsl.esm.js} +4 -4
  101. package/dist/{setup-BR4G3NHV.esm.js → setup-BVuwm-QH.esm.js} +7 -6
  102. package/dist/signature.esm.js +1 -1
  103. package/dist/trueSight-DWfPmAL_.esm.js +1 -0
  104. package/dist/{trueSightService-DKC-gmQC.esm.js → trueSightService-DGkNMx-E.esm.js} +2 -2
  105. package/dist/trust-graph.esm.js +1 -1
  106. package/dist/{types-C2n-6lCx.d.ts → types-4-pU2Nhm.d.ts} +7 -0
  107. package/dist/video-selfie.esm.js +5 -5
  108. package/dist/wasm.esm.js +1 -1
  109. package/dist/watchlist-for-business.esm.js +1 -1
  110. package/dist/watchlist.esm.js +1 -1
  111. package/dist/{watchlistManager-DnVfNc1v.esm.js → watchlistManager-BLf37wLN.esm.js} +1 -1
  112. package/dist/workflow.esm.js +17 -17
  113. package/package.json +1 -1
  114. package/dist/trueSight-4L5GCqKy.esm.js +0 -1
package/dist/id.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
2
- import { n as eventModuleNames } from "./events-CMFCCu1H.esm.js";
2
+ import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
3
3
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-CAKztWBq.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CPzgzVu8.esm.js";
7
- import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-Cgl54qED.esm.js";
5
+ import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-BMZCf9M7.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DAsfVDWq.esm.js";
7
+ import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DVtdZdpI.esm.js";
8
8
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
9
9
  function buildSubImage(canvas) {
10
10
  if (!canvas) return void 0;
@@ -8,7 +8,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
8
8
  import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
9
9
  import { a as RegulationTypes } from "./types-KPvmag_B.js";
10
10
  import { n as PermissionStatus } from "./types-BT-aiBYV.js";
11
- import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-C2n-6lCx.js";
11
+ import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-4-pU2Nhm.js";
12
12
  //#region src/modules/id/idCaptureStateMachine.d.ts
13
13
  declare const idCaptureMachine: AnyStateMachine;
14
14
  type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
@@ -52,6 +52,8 @@ type IdCaptureInitResult = {
52
52
  type InitializeIdCaptureParams = {
53
53
  config: IdCaptureConfig;
54
54
  deepsightService?: DeepsightService;
55
+ stream?: CameraStream;
56
+ cameraFallbackLevel?: number;
55
57
  };
56
58
  declare function initializeIdCapture(params: InitializeIdCaptureParams): Promise<IdCaptureInitResult>;
57
59
  declare function stopStream(stream: CameraStream): void;
@@ -219,10 +221,17 @@ type IdCaptureMandatoryConsentState = {
219
221
  status: 'mandatoryConsent';
220
222
  regulationType: RegulationTypes;
221
223
  };
222
- type IdCaptureFrontFinishedState = {
224
+ type IdCaptureSideFinishedState = {
225
+ /** Just-captured photo (uxp_idc_exp07), preserved across the side-switch
226
+ * reset so the flip screen can render it. Undefined if none was stashed. */
227
+ previewImageUrl?: string;
228
+ orientation: DetectionOrientation | undefined;
229
+ mode: 'id' | 'passport';
230
+ };
231
+ type IdCaptureFrontFinishedState = IdCaptureSideFinishedState & {
223
232
  status: 'frontFinished';
224
233
  };
225
- type IdCaptureBackFinishedState = {
234
+ type IdCaptureBackFinishedState = IdCaptureSideFinishedState & {
226
235
  status: 'backFinished';
227
236
  };
228
237
  type IdCaptureProcessingState = {
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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 { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
- import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-C4qKxOl4.esm.js";
7
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CAKztWBq.esm.js";
6
+ import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-GFikEK6S.esm.js";
7
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BMZCf9M7.esm.js";
8
8
  //#region src/modules/id/digitalUpload/instrumentation.ts
9
9
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
10
10
  function isHoldingState(value) {
@@ -327,8 +327,18 @@ function mapState(snapshot) {
327
327
  status: "mandatoryConsent",
328
328
  regulationType: context.uploadResponse?.regulationType ?? "Other"
329
329
  };
330
- if (snapshot.matches("frontFinished")) return { status: "frontFinished" };
331
- if (snapshot.matches("backFinished")) return { status: "backFinished" };
330
+ if (snapshot.matches("frontFinished")) return {
331
+ status: "frontFinished",
332
+ previewImageUrl: context.flipPreview?.url,
333
+ orientation: context.flipPreview?.orientation,
334
+ mode: context.flipPreview?.mode ?? "id"
335
+ };
336
+ if (snapshot.matches("backFinished")) return {
337
+ status: "backFinished",
338
+ previewImageUrl: context.flipPreview?.url,
339
+ orientation: context.flipPreview?.orientation,
340
+ mode: context.flipPreview?.mode ?? "id"
341
+ };
332
342
  if (snapshot.matches("processing")) return { status: "processing" };
333
343
  if (snapshot.matches("expiredExhausted")) return { status: "expiredExhausted" };
334
344
  if (snapshot.matches("expired")) {
@@ -1,25 +1,26 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-DKC-gmQC.esm.js";
5
- import { t as getDisableIpify } from "./sessionInitializer-DEd0CQ74.esm.js";
4
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-DGkNMx-E.esm.js";
5
+ import { t as getDisableIpify } from "./sessionInitializer-B3g2uAsl.esm.js";
6
6
  import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
7
- import "./trueSight-4L5GCqKy.esm.js";
7
+ import "./trueSight-DWfPmAL_.esm.js";
8
8
  import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
9
- import { n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
10
- import "./session-Ccob4IUP.esm.js";
9
+ import { n as isDesktop, t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
10
+ import "./session-XugVyrIq.esm.js";
11
11
  import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
12
12
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
13
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-C4qKxOl4.esm.js";
14
- import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-CVhk1BWp.esm.js";
13
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
14
+ import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-D8FzOXsM.esm.js";
15
15
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
16
16
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
17
- import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
17
+ import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
18
+ import { n as getBackCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
18
19
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
19
20
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
20
21
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
21
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-UMiLlPfq.esm.js";
22
- import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-BGPq5vGr.esm.js";
22
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D0cdQjk6.esm.js";
23
+ import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-D6Hbc408.esm.js";
23
24
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-BDS43fFL.esm.js";
24
25
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
25
26
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -490,10 +491,13 @@ async function initializeIdCapture(params) {
490
491
  ...DEFAULT_ID_CAPTURE_SETTINGS,
491
492
  ...config.settings
492
493
  });
493
- if (deepsightService) try {
494
+ if (deepsightService && !params.stream) try {
494
495
  await deepsightService.performPrcCheck({ constraints: getPrcCameraConstraints() });
495
496
  } catch {}
496
- const { stream, fallbackLevel } = await getIdCameraStream();
497
+ const { stream, fallbackLevel } = params.stream ? {
498
+ stream: params.stream,
499
+ fallbackLevel: params.cameraFallbackLevel
500
+ } : await getIdCameraStream();
497
501
  const videoTrack = stream.getVideoTracks()[0];
498
502
  let captureResolution;
499
503
  if (videoTrack) {
@@ -1101,18 +1105,23 @@ const manualUploadMachine = setup({
1101
1105
  });
1102
1106
  //#endregion
1103
1107
  //#region src/modules/id/idCaptureGuards.ts
1108
+ function getPermissionOutput(event) {
1109
+ if (!("output" in event)) return;
1110
+ const { output } = event;
1111
+ if (typeof output === "object" && output !== null && "permissionResult" in output) return output.permissionResult;
1112
+ return output;
1113
+ }
1104
1114
  const hasShowTutorialGuard = ({ context }) => context.config.showTutorial;
1105
1115
  const hasAgeAssuranceGuard = ({ context }) => context.config.ageAssurance === true;
1106
1116
  const hasShowDocumentChooserGuard = ({ context }) => !context.config.onlyBack && (context.config.showDocumentChooserScreen ?? false);
1107
1117
  const isPermissionGrantedGuard = ({ event }) => {
1108
- if ("output" in event) return event.output === "granted";
1109
- return false;
1118
+ return getPermissionOutput(event) === "granted";
1110
1119
  };
1111
1120
  const isReadyForCaptureGuard = ({ context, event }) => {
1112
- return isReadyForCaptureFromPermission(resolveStoredPermissionResult("output" in event ? event.output : void 0, context.permissionResult), context.config.ds);
1121
+ return isReadyForCaptureFromPermission(resolveStoredPermissionResult(getPermissionOutput(event), context.permissionResult), context.config.ds);
1113
1122
  };
1114
1123
  const needsMotionPrimeOnlyGuard = ({ context, event }) => {
1115
- return needsMotionPrimeOnlyFromPermission(resolveStoredPermissionResult("output" in event ? event.output : void 0, context.permissionResult), context.config.ds);
1124
+ return needsMotionPrimeOnlyFromPermission(resolveStoredPermissionResult(getPermissionOutput(event), context.permissionResult), context.config.ds);
1116
1125
  };
1117
1126
  const isPermissionDeniedErrorGuard = ({ event }) => {
1118
1127
  if ("error" in event) {
@@ -1122,6 +1131,7 @@ const isPermissionDeniedErrorGuard = ({ event }) => {
1122
1131
  return false;
1123
1132
  };
1124
1133
  const hasStreamGuard = ({ context }) => context.stream !== void 0;
1134
+ const hasInitializedCameraGuard = ({ context }) => context.stream !== void 0 && context.provider !== void 0;
1125
1135
  const hasAttemptsRemainingGuard = ({ context }) => context.attemptsRemaining > 0;
1126
1136
  const hasCapturedImageGuard = ({ context }) => {
1127
1137
  return context.provider?.getCapturedCanvas() !== null;
@@ -1312,8 +1322,24 @@ function computeIdCaptureOutput(context) {
1312
1322
  const checkPermissionActor = fromPromise(async () => {
1313
1323
  return checkPermission();
1314
1324
  });
1325
+ async function requestIdCapturePermission(input) {
1326
+ if (!isAndroid() || getBrowser() !== "firefox") return invokeRequestPermissionActor(input);
1327
+ if (input.requestMotionPermission) {
1328
+ const motionResult = await invokeRequestPermissionActor({
1329
+ ...input,
1330
+ permissionResult: "granted"
1331
+ });
1332
+ if (motionResult !== "granted") return motionResult;
1333
+ }
1334
+ const { stream, fallbackLevel } = await getIdCameraStream();
1335
+ return {
1336
+ permissionResult: "granted",
1337
+ stream,
1338
+ cameraFallbackLevel: fallbackLevel
1339
+ };
1340
+ }
1315
1341
  const requestPermissionActor = fromPromise(async ({ input }) => {
1316
- return invokeRequestPermissionActor(input);
1342
+ return requestIdCapturePermission(input);
1317
1343
  });
1318
1344
  const initializeCameraActor = fromPromise(async ({ input }) => {
1319
1345
  return initializeIdCapture(input);
@@ -1636,7 +1662,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
1636
1662
  });
1637
1663
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1638
1664
  if (!input.dependencies) return;
1639
- const { loadDeepsightSession } = await import("./deepsightLoader-CHG26pOB.esm.js");
1665
+ const { loadDeepsightSession } = await import("./deepsightLoader-CaUpu0Dy.esm.js");
1640
1666
  return loadDeepsightSession({
1641
1667
  ds: input.ds,
1642
1668
  storage: input.dependencies.storage,
@@ -1680,6 +1706,15 @@ function performStopMediaRecording(context) {
1680
1706
  function getStreamFromEvent(event) {
1681
1707
  if ("output" in event) return event.output.stream;
1682
1708
  }
1709
+ function getPermissionResultFromEvent(event) {
1710
+ if (!("output" in event)) return;
1711
+ const { output } = event;
1712
+ if (output === "granted" || output === "denied" || output === "prompt") return output;
1713
+ if (typeof output === "object" && output !== null && "permissionResult" in output) {
1714
+ const result = output.permissionResult;
1715
+ if (result === "granted" || result === "denied" || result === "prompt") return result;
1716
+ }
1717
+ }
1683
1718
  function getProviderFromEvent(event) {
1684
1719
  if ("output" in event) return event.output.provider;
1685
1720
  }
@@ -1988,6 +2023,11 @@ const idCaptureMachine = setup({
1988
2023
  qualityElements: void 0,
1989
2024
  frameRect: void 0,
1990
2025
  previewImageUrl: void 0,
2026
+ flipPreview: context.previewImageUrl ? {
2027
+ url: context.previewImageUrl,
2028
+ orientation: context.orientation,
2029
+ mode: context.currentMode === "passport" ? "passport" : "id"
2030
+ } : context.flipPreview,
1991
2031
  uploadProgress: void 0,
1992
2032
  manualCaptureTriggered: false,
1993
2033
  attemptsRemaining: context.config.captureAttempts,
@@ -2012,6 +2052,11 @@ const idCaptureMachine = setup({
2012
2052
  qualityElements: void 0,
2013
2053
  frameRect: void 0,
2014
2054
  previewImageUrl: void 0,
2055
+ flipPreview: context.previewImageUrl ? {
2056
+ url: context.previewImageUrl,
2057
+ orientation: context.orientation,
2058
+ mode: context.currentMode === "passport" ? "passport" : "id"
2059
+ } : context.flipPreview,
2015
2060
  uploadProgress: void 0,
2016
2061
  manualCaptureTriggered: false,
2017
2062
  attemptsRemaining: context.config.captureAttempts,
@@ -2023,6 +2068,7 @@ const idCaptureMachine = setup({
2023
2068
  cameraFallbackLevel: void 0
2024
2069
  };
2025
2070
  }),
2071
+ clearFlipPreview: assign({ flipPreview: void 0 }),
2026
2072
  prepareForBackCapture: assign(({ context }) => {
2027
2073
  context.provider?.reset();
2028
2074
  return {
@@ -2046,6 +2092,11 @@ const idCaptureMachine = setup({
2046
2092
  captureResolution: ({ event }) => getCaptureResolutionFromEvent(event),
2047
2093
  cameraFallbackLevel: ({ event }) => getCameraFallbackLevelFromEvent(event)
2048
2094
  }),
2095
+ setPermissionResultAndStream: assign({
2096
+ permissionResult: ({ context, event }) => getPermissionResultFromEvent(event) ?? context.permissionResult,
2097
+ stream: ({ context, event }) => getStreamFromEvent(event) ?? context.stream,
2098
+ cameraFallbackLevel: ({ context, event }) => getCameraFallbackLevelFromEvent(event) ?? context.cameraFallbackLevel
2099
+ }),
2049
2100
  trackTutorialId: () => {},
2050
2101
  trackContinue: () => {},
2051
2102
  trackCameraId: ({ context }) => {},
@@ -2147,6 +2198,7 @@ const idCaptureMachine = setup({
2147
2198
  needsMotionPrimeOnly: needsMotionPrimeOnlyGuard,
2148
2199
  isPermissionDeniedError: isPermissionDeniedErrorGuard,
2149
2200
  hasStream: hasStreamGuard,
2201
+ hasInitializedCamera: hasInitializedCameraGuard,
2150
2202
  hasAttemptsRemaining: hasAttemptsRemainingGuard,
2151
2203
  hasCapturedImage: hasCapturedImageGuard,
2152
2204
  hasUploadValidationError: hasUploadValidationErrorGuard,
@@ -2519,16 +2571,16 @@ const idCaptureMachine = setup({
2519
2571
  {
2520
2572
  target: "#idCapture.capture",
2521
2573
  guard: "isReadyForCapture",
2522
- actions: assign({ permissionResult: ({ event }) => event.output })
2574
+ actions: "setPermissionResultAndStream"
2523
2575
  },
2524
2576
  {
2525
2577
  target: "denied",
2526
- guard: ({ event }) => event.output === "denied",
2527
- actions: assign({ permissionResult: ({ event }) => event.output })
2578
+ guard: ({ event }) => getPermissionResultFromEvent(event) === "denied",
2579
+ actions: "setPermissionResultAndStream"
2528
2580
  },
2529
2581
  {
2530
2582
  target: "waitingForUser",
2531
- actions: assign({ permissionResult: ({ event }) => event.output })
2583
+ actions: "setPermissionResultAndStream"
2532
2584
  }
2533
2585
  ],
2534
2586
  onError: { target: "denied" }
@@ -2549,7 +2601,7 @@ const idCaptureMachine = setup({
2549
2601
  },
2550
2602
  {
2551
2603
  target: "detecting",
2552
- guard: "hasStream"
2604
+ guard: "hasInitializedCamera"
2553
2605
  },
2554
2606
  { target: "initializing" }
2555
2607
  ] },
@@ -2578,7 +2630,9 @@ const idCaptureMachine = setup({
2578
2630
  src: "initializeCamera",
2579
2631
  input: ({ context }) => ({
2580
2632
  config: context.config,
2581
- deepsightService: context.deepsightService
2633
+ deepsightService: context.deepsightService,
2634
+ stream: context.stream,
2635
+ cameraFallbackLevel: context.cameraFallbackLevel
2582
2636
  }),
2583
2637
  onDone: {
2584
2638
  target: "detecting",
@@ -2920,8 +2974,12 @@ const idCaptureMachine = setup({
2920
2974
  },
2921
2975
  onDone: [{
2922
2976
  target: "#idCapture.capture.detecting",
2923
- guard: "hasStream"
2924
- }, { target: "#idCapture.capture" }]
2977
+ guard: "hasStream",
2978
+ actions: "clearFlipPreview"
2979
+ }, {
2980
+ target: "#idCapture.capture",
2981
+ actions: "clearFlipPreview"
2982
+ }]
2925
2983
  },
2926
2984
  backFinished: {
2927
2985
  entry: ["stopMediaRecording", "resetForFrontCapture"],
@@ -2968,8 +3026,12 @@ const idCaptureMachine = setup({
2968
3026
  },
2969
3027
  onDone: [{
2970
3028
  target: "#idCapture.capture.detecting",
2971
- guard: "hasStream"
2972
- }, { target: "#idCapture.capture" }]
3029
+ guard: "hasStream",
3030
+ actions: "clearFlipPreview"
3031
+ }, {
3032
+ target: "#idCapture.capture",
3033
+ actions: "clearFlipPreview"
3034
+ }]
2973
3035
  },
2974
3036
  processing: {
2975
3037
  entry: "stopMediaStream",
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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
3
  import { t as idOcrStateMachine } from "./idOcrStateMachine-s08FLvEh.esm.js";
4
4
  //#region src/modules/id-ocr/idOcrActor.ts
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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
3
  import { t as idVerificationMachine } from "./idVerificationStateMachine-tAF7pvC8.esm.js";
4
4
  //#region src/modules/id-verification/idVerificationActor.ts
@@ -1,3 +1,3 @@
1
1
  import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-DG8kbKuy.esm.js";
2
- import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-0ZHGWr9T.esm.js";
2
+ import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CNbGch_H.esm.js";
3
3
  export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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
3
  import { n as identityReuseMachine } from "./identityReuseStateMachine-DG8kbKuy.esm.js";
4
4
  //#region src/modules/identity-reuse/identityReuseActor.ts
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, o as setup, r as isConfigured } from "./setup-BR4G3NHV.esm.js";
1
+ import { i as reset, o as setup, r as isConfigured } from "./setup-BVuwm-QH.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,4 +1,4 @@
1
- import { m as addEvent } from "./events-CMFCCu1H.esm.js";
1
+ import { v as addEvent } from "./events-ethtfu2b.esm.js";
2
2
  //#region src/internal/captureOnly/invokeOnCaptureCallback.ts
3
3
  /**
4
4
  * Invokes an integrator-provided `onCapture` callback with the assembled
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-BX_XkMsQ.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CzsVFG33.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-DOZSFZA2.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,3 +1,3 @@
1
1
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CjKpOQXU.esm.js";
2
- import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-DaKK7S4q.esm.js";
2
+ import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-D7C9v5sI.esm.js";
3
3
  export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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
3
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CjKpOQXU.esm.js";
4
4
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
61
61
  type: "clearError";
62
62
  params: NonReducibleUnknown;
63
63
  };
64
- resetContext: {
65
- type: "resetContext";
66
- params: NonReducibleUnknown;
67
- };
68
64
  toggleSigned: {
69
65
  type: "toggleSigned";
70
66
  params: NonReducibleUnknown;
71
67
  };
68
+ resetContext: {
69
+ type: "resetContext";
70
+ params: NonReducibleUnknown;
71
+ };
72
72
  }>, {
73
73
  type: "canSubmit";
74
74
  params: unknown;
@@ -1,14 +1,14 @@
1
1
  import { n as BaseWasmProvider, o as mlWasmJSApi_default } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-DKC-gmQC.esm.js";
3
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-DGkNMx-E.esm.js";
4
4
  import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
5
- import "./trueSight-4L5GCqKy.esm.js";
5
+ import "./trueSight-DWfPmAL_.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
7
7
  import { a as isIPhone14OrHigher, n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
8
8
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
9
9
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
10
10
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
11
- import { n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
11
+ import { n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
12
12
  //#region ../infra/src/scheduling/yieldUntilNextPaint.ts
13
13
  /**
14
14
  * Resolves after the browser has had a chance to commit and paint a queued
@@ -521,7 +521,7 @@ async function stopRecording(session) {
521
521
  }
522
522
  }
523
523
  async function initializeDeepsightSession(options) {
524
- const { loadDeepsightSession } = await import("./deepsightLoader-CHG26pOB.esm.js");
524
+ const { loadDeepsightSession } = await import("./deepsightLoader-CaUpu0Dy.esm.js");
525
525
  return loadDeepsightSession({
526
526
  ds: options.ds,
527
527
  storage: options.storage
@@ -1,4 +1,4 @@
1
- import { a as isWasmMotionPrimedForModule } from "./permissionServices-C4qKxOl4.esm.js";
1
+ import { a as isWasmMotionPrimedForModule } from "./permissionServices-GFikEK6S.esm.js";
2
2
  //#region src/internal/permissions/permissionGuards.ts
3
3
  function resolveStoredPermissionResult(fromEvent, fromContext) {
4
4
  if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
@@ -1,17 +1,6 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
3
3
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
4
- //#region ../infra/src/media/cameraPermissionSession.ts
5
- const CAMERA_PERMISSIONS_GRANTED_KEY = "cameraPermissionsGranted";
6
- function isCameraGrantedInSession() {
7
- if (typeof sessionStorage === "undefined") return false;
8
- return sessionStorage.getItem(CAMERA_PERMISSIONS_GRANTED_KEY) === "true";
9
- }
10
- function markCameraPermissionsGrantedInSession() {
11
- if (typeof sessionStorage === "undefined") return;
12
- sessionStorage.setItem(CAMERA_PERMISSIONS_GRANTED_KEY, String(true));
13
- }
14
- //#endregion
15
4
  //#region ../infra/src/media/permissions.ts
16
5
  async function queryPermission(name) {
17
6
  try {
@@ -39,7 +28,7 @@ function isWasmMotionPrimedForModule() {
39
28
  //#endregion
40
29
  //#region src/internal/permissions/permissionServices.ts
41
30
  function isCameraGrantedForMotionPrime(options) {
42
- return options.cameraGranted === true || isCameraGrantedInSession();
31
+ return options.cameraGranted === true;
43
32
  }
44
33
  async function resolveMotionOsPermission(motionSensor) {
45
34
  if (motionSensor.hasBeenRequestedThisSession()) return "granted";
@@ -64,10 +53,7 @@ async function primeMotionFromUserGestureIfNeeded(options) {
64
53
  }
65
54
  async function checkPermission() {
66
55
  const queryResult = await queryCameraPermission();
67
- if (queryResult === "granted") {
68
- markCameraPermissionsGrantedInSession();
69
- return "granted";
70
- }
56
+ if (queryResult === "granted") return "granted";
71
57
  if (queryResult === "denied") return "denied";
72
58
  return "prompt";
73
59
  }
@@ -104,7 +90,6 @@ async function requestPermission(options = {}) {
104
90
  video: true,
105
91
  audio: options.requestAudio ?? false
106
92
  }));
107
- markCameraPermissionsGrantedInSession();
108
93
  return "granted";
109
94
  } catch (error) {
110
95
  const name = error instanceof Error ? error.name : void 0;
@@ -2,15 +2,15 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-Bx3gKW_y.esm.js";
5
- import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-DKC-gmQC.esm.js";
6
- import { n as eventModuleNames } from "./events-CMFCCu1H.esm.js";
7
- import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DEd0CQ74.esm.js";
5
+ import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-DGkNMx-E.esm.js";
6
+ import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
7
+ import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-B3g2uAsl.esm.js";
8
8
  import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
9
9
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
10
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
- import { i as requestPermission, t as checkPermission } from "./permissionServices-C4qKxOl4.esm.js";
11
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-GFikEK6S.esm.js";
12
12
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
13
- import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-CVhk1BWp.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-D8FzOXsM.esm.js";
14
14
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
15
15
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
16
16
  //#region src/modules/personhood/personhoodServices.ts
package/dist/phone.esm.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as phoneMachine } from "./phoneStateMachine-FJ-_x1G4.esm.js";
2
- import { t as createPhoneManager } from "./phoneManager-WImoAp4i.esm.js";
2
+ import { t as createPhoneManager } from "./phoneManager-Dus4Ddb9.esm.js";
3
3
  export { createPhoneManager, phoneMachine };
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
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
3
  import { t as phoneMachine } from "./phoneStateMachine-FJ-_x1G4.esm.js";
4
4
  //#region src/modules/phone/phoneActor.ts
@@ -1,4 +1,4 @@
1
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-D0X7P-de.esm.js";
1
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DqPJCXMG.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
4
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-CVhk1BWp.esm.js";
4
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-D8FzOXsM.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.esm.js";
6
6
  //#region src/internal/manualReview/manualReviewService.ts
7
7
  async function flagFaceManualReview() {
@@ -1,3 +1,3 @@
1
1
  import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-jI5XPtZJ.esm.js";
2
- import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-CxEu6KnV.esm.js";
2
+ import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-D1WymLy1.esm.js";
3
3
  export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
@@ -1,5 +1,5 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-jI5XPtZJ.esm.js";
@@ -1,6 +1,6 @@
1
1
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-DKC-gmQC.esm.js";
3
- import { y as createEventBus } from "./events-CMFCCu1H.esm.js";
2
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-DGkNMx-E.esm.js";
3
+ import { C as createEventBus } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
@@ -1,14 +1,14 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
3
- import { n as eventModuleNames } from "./events-CMFCCu1H.esm.js";
3
+ import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor, 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-DbhDPMjb.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D2pR3ZnX.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D-9s0vUS.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-2W_XduCs.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-DCRRRj38.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-CxabK5_3.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DTiBsQNn.esm.js";
11
- import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-Cgl54qED.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-D-wolitw.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-Cnw55Hp_.esm.js";
11
+ import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DVtdZdpI.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
14
14
  * Performs local finalization of a captured face frame: stops local video