@incodetech/core 0.0.0-dev-20260826-e81bd6f9 → 0.0.0-dev-20260826-80a51538

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 (93) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-DroaGhav.esm.js → BrowserDiagnosticsCryptoProvider-DfkPafSO.esm.js} +1 -1
  2. package/dist/{BrowserStorageProvider-C8847M9W.esm.js → BrowserStorageProvider-DC___749.esm.js} +1 -1
  3. package/dist/{IWasmUtilCapability-5-Pncgma.d.ts → IWasmUtilCapability-SNPhmIwB.d.ts} +0 -1
  4. package/dist/{MotionSensorProvider-CxTjgXe6.esm.js → MotionSensorProvider-Dq6GJ-ke.esm.js} +1 -1
  5. package/dist/ae-signature.esm.js +1 -1
  6. package/dist/{apiError-BbJ7ewMs.esm.js → apiError-C_90i3vV.esm.js} +1 -1
  7. package/dist/authentication.d.ts +3 -3
  8. package/dist/authentication.esm.js +2 -2
  9. package/dist/{authenticationManager-BXZfUKaI.esm.js → authenticationManager-7ec9wEfD.esm.js} +4 -4
  10. package/dist/{authenticationManager-QbR9ezH3.d.ts → authenticationManager-DFA73BWw.d.ts} +1 -1
  11. package/dist/{authenticationStateMachine-DS9N05Mj.esm.js → authenticationStateMachine-d7NM3jSI.esm.js} +2 -2
  12. package/dist/camera.esm.js +1 -1
  13. package/dist/consent.d.ts +1 -1
  14. package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-DLOyIZzt.d.ts} +1 -1
  15. package/dist/{deepsightLoader-D_pTgevT.esm.js → deepsightLoader-CQ8p6f3n.esm.js} +6 -6
  16. package/dist/{deepsightService-BQO1pV6B.d.ts → deepsightService-MZOpj7Vp.d.ts} +1 -1
  17. package/dist/document-capture.esm.js +2 -2
  18. package/dist/{documentCaptureManager-BbdImodx.esm.js → documentCaptureManager-BsgEpSEe.esm.js} +1 -1
  19. package/dist/{documentCaptureStateMachine-BjBgWp7z.esm.js → documentCaptureStateMachine-BmcBWiUz.esm.js} +2 -2
  20. package/dist/dynamic-forms.esm.js +2 -2
  21. package/dist/{dynamicFormsManager-CBVWDFYZ.esm.js → dynamicFormsManager-BD78xRhz.esm.js} +1 -1
  22. package/dist/{dynamicFormsStateMachine-Cc_mw7BP.esm.js → dynamicFormsStateMachine-CQ8uFClH.esm.js} +1 -1
  23. package/dist/ekyb.esm.js +3 -3
  24. package/dist/{ekybManager-DQy8cwae.esm.js → ekybManager-Ce6FEncZ.esm.js} +1 -1
  25. package/dist/{ekybStateMachine-DvRr4p-k.esm.js → ekybStateMachine-mfXIl5v-.esm.js} +1 -1
  26. package/dist/electronic-signature.esm.js +1 -1
  27. package/dist/{electronicSignatureManager-5cwtDmd5.esm.js → electronicSignatureManager-q0-iMmIE.esm.js} +1 -1
  28. package/dist/extensibility.d.ts +11 -12
  29. package/dist/extensibility.esm.js +12 -12
  30. package/dist/{faceCaptureManagerFactory-ZRoAAJ-9.esm.js → faceCaptureManagerFactory-BQn2gK5B.esm.js} +3 -3
  31. package/dist/{faceCaptureManagerFactory-B0Ce6p_p.d.ts → faceCaptureManagerFactory-D-eOL-h6.d.ts} +4 -4
  32. package/dist/{faceCaptureSetup-CThWhLbH.esm.js → faceCaptureSetup-Civi4sX0.esm.js} +4 -4
  33. package/dist/{feature-management-BdXv1wdg.esm.js → feature-management-VVeaOPVH.esm.js} +1 -1
  34. package/dist/feature-management.esm.js +1 -1
  35. package/dist/flow.d.ts +2 -2
  36. package/dist/flow.esm.js +3 -3
  37. package/dist/{flowCompletionService-8LZdgnFO.esm.js → flowCompletionService-BeGI43Sa.esm.js} +1 -1
  38. package/dist/{flowServices-0Unj1i_g.esm.js → flowServices-B8KjJDqC.esm.js} +4 -4
  39. package/dist/geolocation.esm.js +2 -2
  40. package/dist/{geolocationManager-njjgkoz_.esm.js → geolocationManager-ZACmKzTE.esm.js} +1 -1
  41. package/dist/{geolocationStateMachine-ChxMczVf.esm.js → geolocationStateMachine-MsxfZhyZ.esm.js} +1 -1
  42. package/dist/id-ocr.d.ts +1 -1
  43. package/dist/id-selfie-flow.d.ts +1 -1
  44. package/dist/id-selfie-flow.esm.js +8 -8
  45. package/dist/id.d.ts +2 -2
  46. package/dist/id.esm.js +4 -4
  47. package/dist/idCaptureDefaults-SJH6Td2K.esm.js +276 -0
  48. package/dist/{idCaptureManager-w0XxDand.d.ts → idCaptureManager-C-ef1D5r.d.ts} +2 -2
  49. package/dist/{idCaptureManager-B7Hdyqoc.esm.js → idCaptureManager-kkVWhnDe.esm.js} +5 -5
  50. package/dist/{idCaptureServices-BSZquQ6d.esm.js → idCaptureServices-CLserSrT.esm.js} +5 -5
  51. package/dist/{idCaptureStateMachine-D7ms1UTC.esm.js → idCaptureStateMachine-DtGemWtA.esm.js} +11 -11
  52. package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-CFlDwUvN.d.ts} +1 -1
  53. package/dist/identity-reuse.d.ts +1 -1
  54. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BXEBBI3N.d.ts} +5 -5
  55. package/dist/index.esm.js +1 -1
  56. package/dist/mandatory-consent.d.ts +1 -1
  57. package/dist/{mandatoryConsentManager-BG3ZPM3f.d.ts → mandatoryConsentManager-CohPXtwL.d.ts} +5 -5
  58. package/dist/{onDeviceFaceResults-BxRVRs9-.esm.js → onDeviceFaceResults-B6Gtw21L.esm.js} +75 -12
  59. package/dist/{permissionGuards-DCzi2X20.esm.js → permissionGuards-DKnCqOsF.esm.js} +1 -1
  60. package/dist/{permissionServices-Ct-QgtAi.esm.js → permissionServices-QCFFUVkj.esm.js} +2 -2
  61. package/dist/personhood.d.ts +3 -3
  62. package/dist/personhood.esm.js +6 -6
  63. package/dist/qe-signature.esm.js +1 -1
  64. package/dist/{recordingService-CN3rO3Rl.esm.js → recordingService-DBxMZwD9.esm.js} +1 -1
  65. package/dist/{runChildModule-CWYUt6Eb.esm.js → runChildModule-BVRBfQKD.esm.js} +1 -1
  66. package/dist/{safeStorage-2nOSCCnG.esm.js → safeStorage-7CmStgyt.esm.js} +348 -363
  67. package/dist/{sdkVersion-CBs-fcJT.esm.js → sdkVersion-DayEIYK-.esm.js} +1 -1
  68. package/dist/selfie.d.ts +4 -4
  69. package/dist/selfie.esm.js +6 -6
  70. package/dist/{selfieManager-DeSGiO2o.esm.js → selfieManager-DZcXrdkt.esm.js} +4 -4
  71. package/dist/{selfieManager-BRb_-wHE.d.ts → selfieManager-DpU8kDro.d.ts} +1 -1
  72. package/dist/{selfieStateMachine-q9zW90MX.esm.js → selfieStateMachine-BJiFfV1Q.esm.js} +2 -2
  73. package/dist/{session-nsNphgUa.esm.js → session-Bat4R9kV.esm.js} +4 -4
  74. package/dist/session.esm.js +4 -4
  75. package/dist/{sessionInitializer-bq_60unZ.esm.js → sessionInitializer-DcdeBlD1.esm.js} +4 -4
  76. package/dist/{setup-FUYImQXy.esm.js → setup-P7NmS-XX.esm.js} +8 -8
  77. package/dist/trueSight-CpKAW400.esm.js +1 -0
  78. package/dist/{trueSightService-DA5Bt2s3.esm.js → trueSightService-CYxmF608.esm.js} +3 -3
  79. package/dist/{types-lw5kpZ0i2.d.ts → types-CyoB7Hym2.d.ts} +2 -2
  80. package/dist/{types-BMa0ZqAi.d.ts → types-DQ-TrzPk.d.ts} +1 -1
  81. package/dist/{types-jBSE34JY.d.ts → types-EDqrHgXD.d.ts} +1 -1
  82. package/dist/video-selfie.d.ts +1 -1
  83. package/dist/video-selfie.esm.js +4 -4
  84. package/dist/{videoSelfieCameraWarmer-DlYZA78k.esm.js → videoSelfieCameraWarmer-B6q6lWkk.esm.js} +4 -4
  85. package/dist/{videoSelfieStepDetector-g3PJIqyq.d.ts → videoSelfieStepDetector-DVXE0upL.d.ts} +2 -2
  86. package/dist/wasm.esm.js +4 -4
  87. package/dist/{wasmDefaults-BrwMccqW.esm.js → wasmDefaults-DEOK0oAq.esm.js} +1 -1
  88. package/dist/{wasmDsFlagSync-Dd7Yj25O.esm.js → wasmDsFlagSync-BTc8xI86.esm.js} +2 -2
  89. package/dist/{wasmWebClient-BzFsDjU6.esm.js → wasmWebClient-BJCaFeBL.esm.js} +55 -6
  90. package/dist/workflow.esm.js +16 -16
  91. package/package.json +3 -3
  92. package/dist/idCaptureDefaults-Dowxd3J3.esm.js +0 -226
  93. package/dist/trueSight-Cw9ktWo0.esm.js +0 -1
package/dist/id.d.ts CHANGED
@@ -2,8 +2,8 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
2
2
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
4
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
5
- import { A as RedirectReturnParams, C as IdErrorCode, E as UploadIdResponse, F as ManualUploadSide, I as ManualUploadTab, M as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, N as MANUAL_UPLOAD_MAX_RETRIES, O as DigitalIdProviderId, P as ManualUploadContext, S as IdError, T as RecordingSession, _ as IdCaptureOnlyConfig, a as DetectionArea, b as IdCapturedImageData, c as IdCaptureConfig, d as IdCaptureDigitalIdFlowType, f as IdCaptureDigitalIdMethod, g as IdCaptureMode, h as IdCaptureInput, i as CapturedImage, j as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, l as IdCaptureContext, m as IdCaptureGeometry, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureEvent, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCaptureOutput, w as IdFlowStep, x as IdDocumentType, y as IdCaptureThresholds } from "./types-lw5kpZ0i2.js";
6
- import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-w0XxDand.js";
5
+ import { A as RedirectReturnParams, C as IdErrorCode, E as UploadIdResponse, F as ManualUploadSide, I as ManualUploadTab, M as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, N as MANUAL_UPLOAD_MAX_RETRIES, O as DigitalIdProviderId, P as ManualUploadContext, S as IdError, T as RecordingSession, _ as IdCaptureOnlyConfig, a as DetectionArea, b as IdCapturedImageData, c as IdCaptureConfig, d as IdCaptureDigitalIdFlowType, f as IdCaptureDigitalIdMethod, g as IdCaptureMode, h as IdCaptureInput, i as CapturedImage, j as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, l as IdCaptureContext, m as IdCaptureGeometry, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureEvent, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCaptureOutput, w as IdFlowStep, x as IdDocumentType, y as IdCaptureThresholds } from "./types-CyoB7Hym2.js";
6
+ import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-C-ef1D5r.js";
7
7
  //#region src/modules/id/idCaptureOnlyManager.d.ts
8
8
  type IdCaptureOnlyManager = IdCaptureManager;
9
9
  /**
package/dist/id.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
1
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DC___749.esm.js";
2
2
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
3
3
  import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
- import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-D7ms1UTC.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B7Hdyqoc.esm.js";
7
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-BSZquQ6d.esm.js";
5
+ import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-DtGemWtA.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-kkVWhnDe.esm.js";
7
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-CLserSrT.esm.js";
8
8
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
9
9
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
10
10
  function buildSubImage(canvas) {
@@ -0,0 +1,276 @@
1
+ import { _ as resolveWasmSource, f as WASM_MODEL_FILES } from "./wasmWebClient-BJCaFeBL.esm.js";
2
+ import { i as getBarcodeEnhanceModelUrl } from "./wasmDefaults-DEOK0oAq.esm.js";
3
+ import { i as BaseWasmProvider, l as wasmRuntime, o as getResolvedModelSource } from "./safeStorage-7CmStgyt.esm.js";
4
+ import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
5
+ //#region ../infra/src/wasm/idCaptureWasmApi.ts
6
+ var IdCaptureWasmApi = class {
7
+ constructor(runtime = wasmRuntime) {
8
+ this.runtime = runtime;
9
+ }
10
+ async setIdCaptureThresholds(type, blurThreshold, blurChangeThreshold, glareThreshold, clsThreshold, sideThreshold, iouThreshold, idDetectedTimeout, autocaptureTimeout, framesAggregationInterval) {
11
+ this.runtime.requireIdCaptureApi("Unable to set thresholds, cpp API hasn't been initialized").setIdCaptureThresholds(this.runtime.pipelineTypeToWasmEnum(type), blurThreshold, blurChangeThreshold, glareThreshold, clsThreshold, sideThreshold, iouThreshold, idDetectedTimeout, autocaptureTimeout, framesAggregationInterval);
12
+ }
13
+ async setIdCaptureCallbacks(type, onFarAway, onDetectionStarted, onMaskChange, onBlur, onGlare, onCapturing, onCapture, onBestFrame, onIDNotDetected, onSwitchToManualCapture, onIDTypeChange, onIDSideChange, onCapturingCounterValueChange) {
14
+ this.runtime.requireIdCaptureApi("Unable to set callbacks, cpp API hasn't been initialized").setIdCaptureCallbacks(this.runtime.pipelineTypeToWasmEnum(type), onFarAway, onDetectionStarted, onMaskChange, onBlur, onGlare, onCapturing, onCapture, onBestFrame, onIDNotDetected, onSwitchToManualCapture, onIDTypeChange, onIDSideChange, onCapturingCounterValueChange);
15
+ }
16
+ async setIdCaptureGeometryParams(type, areaDown, areaUp, areaIOSPassportUp, areaIOSPassportDown, widthIOSUp, widthIOSDown, widthDown, widthUp, windowOuterWidth, windowOuterHeight, windowInnerWidth, windowInnerHeight) {
17
+ this.runtime.requireIdCaptureApi("Unable to set geometry params, cpp API hasn't been initialized").setIdCaptureGeometryParams(this.runtime.pipelineTypeToWasmEnum(type), areaDown, areaUp, areaIOSPassportUp, areaIOSPassportDown, widthIOSUp, widthIOSDown, widthDown, widthUp, windowOuterWidth, windowOuterHeight, windowInnerWidth, windowInnerHeight);
18
+ }
19
+ async setIdCaptureConfigParams(type, isFixedMask, isIPhone14OrHigher, idType, isBlurCheckEnabled, isGlareCheckEnabled, _isIdFaceQualityCheckEnabled, isIouCheckEnabled, isFPSLimitEnabled) {
20
+ this.runtime.requireIdCaptureApi("Unable to set config params, cpp API hasn't been initialized").setIdCaptureConfigParams(this.runtime.pipelineTypeToWasmEnum(type), isFixedMask, isIPhone14OrHigher, idType, isBlurCheckEnabled, isGlareCheckEnabled, isIouCheckEnabled, isFPSLimitEnabled);
21
+ }
22
+ setIdCaptureModelType(pipelineType, modelType) {
23
+ this.runtime.requireIdCaptureApi("Unable to set model type, cpp API hasn't been initialized").setIdCaptureModelType(this.runtime.pipelineTypeToWasmEnum(pipelineType), this.runtime.IdCaptureModelTypeToWasmEnum(modelType));
24
+ }
25
+ setIdBarcodeCaptureEnabled(pipelineType, enabled) {
26
+ this.runtime.requireIdCaptureApi("Unable to set barcode capture enabled, cpp API hasn't been initialized").setIdBarcodeCaptureEnabled(this.runtime.pipelineTypeToWasmEnum(pipelineType), enabled);
27
+ }
28
+ setIdBarcodeAutoCaptureOnDecode(pipelineType, enabled) {
29
+ this.runtime.requireIdCaptureApi("Unable to set barcode auto-capture-on-decode, cpp API hasn't been initialized").setIdBarcodeAutoCaptureOnDecode(this.runtime.pipelineTypeToWasmEnum(pipelineType), enabled);
30
+ }
31
+ setIdBarcodeDecodedCallback(pipelineType, onBarcodeDecoded) {
32
+ this.runtime.requireIdCaptureApi("Unable to set barcode decoded callback, cpp API hasn't been initialized").setIdBarcodeDecodedCallback(this.runtime.pipelineTypeToWasmEnum(pipelineType), onBarcodeDecoded);
33
+ }
34
+ async setIdBarcodeEnhancementModel(pipelineType, modelPath) {
35
+ const message = "Unable to set barcode enhancement model, cpp API hasn't been initialized";
36
+ this.runtime.requireIdCaptureApi(message);
37
+ const buffer = await resolveWasmSource(modelPath, "barcode model");
38
+ return this.runtime.requireIdCaptureApi(message).setBarcodeEnhancementModel(this.runtime.pipelineTypeToWasmEnum(pipelineType), buffer);
39
+ }
40
+ IdPerspectiveTransform(image, frameRect) {
41
+ return this.runtime.requireIdCaptureApi("Unable to perform perspective transform, cpp API hasn't been initialized").IdPerspectiveTransform(image, frameRect);
42
+ }
43
+ /**
44
+ * Kept-dead: mirrors upstream `wasmApi.runIdCapture`. Nothing in the SDK calls
45
+ * it; it exists so the mirror stays 1:1 with upstream at the pinned tag.
46
+ */
47
+ async runIdCapture(image) {
48
+ const idCaptureWasmApi = this.runtime.requireIdCaptureApi("Unable to run Id Capture, cpp API hasn't been initialized");
49
+ this.runtime.writeFrame(image);
50
+ return idCaptureWasmApi.runIdCapture();
51
+ }
52
+ };
53
+ const idCaptureWasmApi = new IdCaptureWasmApi();
54
+ //#endregion
55
+ //#region ../infra/src/providers/wasm/IdCaptureProvider.ts
56
+ var IdCaptureProvider = class extends BaseWasmProvider {
57
+ constructor() {
58
+ super(0);
59
+ this.lastProcessResult = null;
60
+ this.capturedCanvas = null;
61
+ this.originalCapturedCanvas = null;
62
+ this.lastDecodedBarcode = null;
63
+ this.barcodeEnhancementModelLoaded = false;
64
+ }
65
+ async initialize(config) {
66
+ if (config.videoSelfie === true) {
67
+ this.pipelineType = 2;
68
+ await this.initializeBase(config, "videoSelfieId");
69
+ } else await this.initializeBase(config, "idCapture");
70
+ }
71
+ setCallbacks(callbacks) {
72
+ this.ensureInitialized();
73
+ const onCaptureWrapper = () => {
74
+ callbacks.onCapture?.();
75
+ };
76
+ idCaptureWasmApi.setIdCaptureCallbacks(this.getPipelineType(), callbacks.onFarAway ?? (() => {}), callbacks.onDetectionStarted ?? (() => {}), callbacks.onMaskChange ? (show, mask, top, orientation) => callbacks.onMaskChange?.(show, mask, top, orientation) : () => {}, callbacks.onBlur ?? (() => {}), callbacks.onGlare ?? (() => {}), callbacks.onCapturing ?? (() => {}), callbacks.onCapture ? onCaptureWrapper : () => {}, callbacks.onBestFrame ? (blur, glare, orientation) => callbacks.onBestFrame?.(blur, glare, orientation) : () => {}, callbacks.onIdNotDetected ?? (() => {}), callbacks.onSwitchToManualCapture ?? (() => {}), callbacks.onIdTypeChange ? (idType) => callbacks.onIdTypeChange?.(idType) : () => {}, callbacks.onIdSideChange ? (side) => callbacks.onIdSideChange?.(side) : () => {}, callbacks.onCapturingCounterValueChange ? (value) => callbacks.onCapturingCounterValueChange?.(value) : () => {});
77
+ if (callbacks.onBarcodeDecoded) {
78
+ const onBarcodeDecoded = callbacks.onBarcodeDecoded;
79
+ idCaptureWasmApi.setIdBarcodeDecodedCallback(this.getPipelineType(), (decoded) => {
80
+ this.lastDecodedBarcode = decoded;
81
+ onBarcodeDecoded(decoded);
82
+ });
83
+ } else idCaptureWasmApi.setIdBarcodeDecodedCallback(this.getPipelineType(), () => {});
84
+ }
85
+ setThresholds(thresholds) {
86
+ this.ensureInitialized();
87
+ idCaptureWasmApi.setIdCaptureThresholds(this.getPipelineType(), thresholds.blurThreshold, thresholds.blurChangeThreshold, thresholds.glareThreshold, thresholds.clsThreshold, thresholds.sideThreshold, thresholds.iouThreshold, thresholds.idDetectedTimeout, thresholds.autocaptureTimeout, thresholds.framesAggregationInterval);
88
+ }
89
+ setGeometry(geometry) {
90
+ this.ensureInitialized();
91
+ idCaptureWasmApi.setIdCaptureGeometryParams(this.getPipelineType(), geometry.areaDown, geometry.areaUp, geometry.areaIOSPassportUp, geometry.areaIOSPassportDown, geometry.widthIOSUp, geometry.widthIOSDown, geometry.widthDown, geometry.widthUp, geometry.windowOuterWidth, geometry.windowOuterHeight, geometry.windowInnerWidth, geometry.windowInnerHeight);
92
+ }
93
+ setSettings(settings) {
94
+ this.ensureInitialized();
95
+ idCaptureWasmApi.setIdCaptureConfigParams(this.getPipelineType(), settings.isFixedMask, settings.isIPhone14OrHigher, settings.idType, settings.blurCheckEnabled, settings.glareCheckEnabled, settings.faceQualityCheckEnabled, settings.iouCheckEnabled, settings.fpsLimitEnabled);
96
+ }
97
+ setModelType(modelType) {
98
+ this.ensureInitialized();
99
+ let wasmModelType;
100
+ switch (modelType) {
101
+ case "v1":
102
+ wasmModelType = 0;
103
+ break;
104
+ case "v2":
105
+ wasmModelType = 1;
106
+ break;
107
+ case "v3":
108
+ wasmModelType = 2;
109
+ break;
110
+ default: throw new Error(`Unknown model type: ${modelType}`);
111
+ }
112
+ idCaptureWasmApi.setIdCaptureModelType(this.getPipelineType(), wasmModelType);
113
+ }
114
+ setBarcodeCaptureEnabled(enabled) {
115
+ this.ensureInitialized();
116
+ idCaptureWasmApi.setIdBarcodeCaptureEnabled(this.getPipelineType(), enabled);
117
+ }
118
+ setBarcodeAutoCaptureOnDecode(enabled) {
119
+ this.ensureInitialized();
120
+ idCaptureWasmApi.setIdBarcodeAutoCaptureOnDecode(this.getPipelineType(), enabled);
121
+ }
122
+ async setBarcodeEnhancementModel() {
123
+ this.ensureInitialized();
124
+ if (this.barcodeEnhancementModelLoaded) return true;
125
+ const modelUrl = getResolvedModelSource(WASM_MODEL_FILES.barcode, "idCapture") ?? getBarcodeEnhanceModelUrl();
126
+ const applied = await idCaptureWasmApi.setIdBarcodeEnhancementModel(this.getPipelineType(), modelUrl);
127
+ this.barcodeEnhancementModelLoaded = applied;
128
+ return applied;
129
+ }
130
+ getLastDecodedBarcode() {
131
+ return this.lastDecodedBarcode;
132
+ }
133
+ /**
134
+ * Processes a frame through the WASM pipeline and stores the result.
135
+ */
136
+ async processFrame(image) {
137
+ const result = await this.processFrameWasm(image);
138
+ const pipelineType = this.getPipelineType();
139
+ if (result && (pipelineType === 0 || pipelineType === 2)) this.lastProcessResult = result;
140
+ else this.lastProcessResult = null;
141
+ }
142
+ /**
143
+ * Gets the last process result from the most recent frame processing.
144
+ * @returns The last process result with quad coordinates, or null if not available
145
+ */
146
+ getLastProcessResult() {
147
+ return this.lastProcessResult;
148
+ }
149
+ transformPerspective(canvas, frameRect) {
150
+ this.ensureInitialized();
151
+ const originalWidth = canvas.width();
152
+ const originalHeight = canvas.height();
153
+ try {
154
+ const imageData = canvas.getImageData();
155
+ if (!imageData) return canvas;
156
+ const transformedCanvas = idCaptureWasmApi.IdPerspectiveTransform(imageData, frameRect);
157
+ if (transformedCanvas) {
158
+ const wrappedCanvas = new IncodeCanvas(transformedCanvas);
159
+ const wrappedWidth = wrappedCanvas.width();
160
+ const wrappedHeight = wrappedCanvas.height();
161
+ if (wrappedWidth === originalWidth && wrappedHeight === originalHeight) {
162
+ const croppedCanvas = this.cropCanvasToRect(wrappedCanvas, {
163
+ x: Math.round(frameRect.x),
164
+ y: Math.round(frameRect.y),
165
+ w: Math.round(frameRect.w),
166
+ h: Math.round(frameRect.h)
167
+ });
168
+ if (croppedCanvas) return croppedCanvas;
169
+ }
170
+ return wrappedCanvas;
171
+ }
172
+ return canvas;
173
+ } catch (_error) {
174
+ return canvas;
175
+ }
176
+ }
177
+ /**
178
+ * Crops a canvas to the specified rectangle region.
179
+ * @param canvas - The canvas to crop
180
+ * @param rect - The rectangle to crop to (x, y, w, h)
181
+ * @returns A new IncodeCanvas with the cropped region, or null if cropping fails
182
+ */
183
+ cropCanvasToRect(canvas, rect) {
184
+ const canvasWidth = canvas.width();
185
+ const canvasHeight = canvas.height();
186
+ if (!canvasWidth || !canvasHeight) return null;
187
+ const x = Math.max(0, Math.min(rect.x, canvasWidth));
188
+ const y = Math.max(0, Math.min(rect.y, canvasHeight));
189
+ const w = Math.max(1, Math.min(rect.w, canvasWidth - x));
190
+ const h = Math.max(1, Math.min(rect.h, canvasHeight - y));
191
+ const croppedCanvasElement = document.createElement("canvas");
192
+ croppedCanvasElement.width = w;
193
+ croppedCanvasElement.height = h;
194
+ const ctx = croppedCanvasElement.getContext("2d");
195
+ if (!ctx) return null;
196
+ ctx.drawImage(canvas.canvas, x, y, w, h, 0, 0, w, h);
197
+ return new IncodeCanvas(croppedCanvasElement);
198
+ }
199
+ /**
200
+ * Gets the captured canvas (transformed for preview).
201
+ * @returns The captured canvas, or null if not available
202
+ */
203
+ getCapturedCanvas() {
204
+ return this.capturedCanvas;
205
+ }
206
+ /**
207
+ * Gets the original captured canvas (full frame for upload).
208
+ * @returns The original captured canvas, or null if not available
209
+ */
210
+ getOriginalCapturedCanvas() {
211
+ return this.originalCapturedCanvas;
212
+ }
213
+ /**
214
+ * Sets the captured canvases (original and transformed).
215
+ * @param original - The original full-frame canvas (for upload)
216
+ * @param transformed - The transformed canvas (for preview)
217
+ */
218
+ setCapturedCanvases(original, transformed) {
219
+ this.originalCapturedCanvas = original;
220
+ this.capturedCanvas = transformed;
221
+ }
222
+ /**
223
+ * Re-arms WASM detection without discarding the captured result.
224
+ *
225
+ * Detection-session teardown runs immediately after a successful capture.
226
+ * The captured canvases must remain available for the subsequent upload and
227
+ * are only replaced by `setCapturedCanvases()` or cleared by a full reset.
228
+ */
229
+ resetDetectionState() {
230
+ super.reset();
231
+ this.lastProcessResult = null;
232
+ this.lastDecodedBarcode = null;
233
+ }
234
+ reset() {
235
+ this.resetDetectionState();
236
+ this.capturedCanvas = null;
237
+ this.originalCapturedCanvas = null;
238
+ }
239
+ async dispose() {
240
+ await super.dispose();
241
+ this.barcodeEnhancementModelLoaded = false;
242
+ }
243
+ };
244
+ //#endregion
245
+ //#region ../infra/src/wasm/idCaptureDefaults.ts
246
+ /**
247
+ * Default WASM thresholds for ID capture quality checks.
248
+ * Based on legacy pipelinesConfig.ts values.
249
+ */
250
+ const DEFAULT_ID_CAPTURE_THRESHOLDS = {
251
+ blurThreshold: .2,
252
+ blurChangeThreshold: .2,
253
+ glareThreshold: .3,
254
+ clsThreshold: .98,
255
+ sideThreshold: .8,
256
+ iouThreshold: .8,
257
+ idDetectedTimeout: 1e4,
258
+ autocaptureTimeout: 5e3,
259
+ framesAggregationInterval: 3e3
260
+ };
261
+ /**
262
+ * Default geometry parameters for ID detection.
263
+ * Window dimensions must be provided at runtime.
264
+ */
265
+ const DEFAULT_ID_CAPTURE_GEOMETRY = {
266
+ areaDown: 25e3,
267
+ areaUp: 55e3,
268
+ areaIOSPassportUp: 3e4,
269
+ areaIOSPassportDown: 2e4,
270
+ widthIOSUp: 160,
271
+ widthIOSDown: 85,
272
+ widthDown: 110,
273
+ widthUp: 205
274
+ };
275
+ //#endregion
276
+ export { DEFAULT_ID_CAPTURE_THRESHOLDS as n, IdCaptureProvider as r, DEFAULT_ID_CAPTURE_GEOMETRY as t };
@@ -7,9 +7,9 @@ import "./index-B8weJxmL.js";
7
7
  import { a as RegulationTypes } from "./types-CkrawdOy.js";
8
8
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
9
9
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
10
- import { t as DeepsightService } from "./deepsightService-BQO1pV6B.js";
10
+ import { t as DeepsightService } from "./deepsightService-MZOpj7Vp.js";
11
11
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
12
- import { C as IdErrorCode, D as IAnalyticsCapability, E as UploadIdResponse, F as ManualUploadSide, I as ManualUploadTab, O as DigitalIdProviderId, T as RecordingSession, _ as IdCaptureOnlyConfig, a as DetectionArea, c as IdCaptureConfig, g as IdCaptureMode, h as IdCaptureInput, k as FailureReason, l as IdCaptureContext, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureEvent, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCaptureOutput, x as IdDocumentType } from "./types-lw5kpZ0i2.js";
12
+ import { C as IdErrorCode, D as IAnalyticsCapability, E as UploadIdResponse, F as ManualUploadSide, I as ManualUploadTab, O as DigitalIdProviderId, T as RecordingSession, _ as IdCaptureOnlyConfig, a as DetectionArea, c as IdCaptureConfig, g as IdCaptureMode, h as IdCaptureInput, k as FailureReason, l as IdCaptureContext, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureEvent, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCaptureOutput, x as IdDocumentType } from "./types-CyoB7Hym2.js";
13
13
  //#region src/modules/id/idCaptureStateMachine.d.ts
14
14
  declare const idCaptureMachine: AnyStateMachine;
15
15
  type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
@@ -1,12 +1,12 @@
1
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
1
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DC___749.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Dd7Yj25O.esm.js";
5
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BTc8xI86.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
- import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Ct-QgtAi.esm.js";
8
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-D7ms1UTC.esm.js";
9
- import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BSZquQ6d.esm.js";
7
+ import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-QCFFUVkj.esm.js";
8
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DtGemWtA.esm.js";
9
+ import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-CLserSrT.esm.js";
10
10
  //#region src/modules/id/digitalUpload/instrumentation.ts
11
11
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
12
12
  function isHoldingState(value) {
@@ -1,15 +1,15 @@
1
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BdXv1wdg.esm.js";
1
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-VVeaOPVH.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-DmVOhy8C.esm.js";
4
4
  import { i as isDesktop } from "./platform-BtKmqD_U.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
- import { s as queryCameraPermission } from "./permissionServices-Ct-QgtAi.esm.js";
8
- import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BxRVRs9-.esm.js";
7
+ import { s as queryCameraPermission } from "./permissionServices-QCFFUVkj.esm.js";
8
+ import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-B6Gtw21L.esm.js";
9
9
  import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-B1fulX20.esm.js";
10
10
  import { t as getDeviceClass } from "./getDeviceClass-CHfFphdD.esm.js";
11
- import { n as preloadOpenViduProvider } from "./recordingService-CN3rO3Rl.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dowxd3J3.esm.js";
11
+ import { n as preloadOpenViduProvider } from "./recordingService-DBxMZwD9.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-SJH6Td2K.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,28 +1,28 @@
1
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
1
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DC___749.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { s as exposeExperimentOnce } from "./feature-management-BdXv1wdg.esm.js";
3
+ import { s as exposeExperimentOnce } from "./feature-management-VVeaOPVH.esm.js";
4
4
  import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
5
5
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
6
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-DA5Bt2s3.esm.js";
6
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CYxmF608.esm.js";
7
7
  import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
8
- import { t as getDisableIpify } from "./sessionInitializer-bq_60unZ.esm.js";
8
+ import { t as getDisableIpify } from "./sessionInitializer-DcdeBlD1.esm.js";
9
9
  import { t as endpoints } from "./endpoints-DmVOhy8C.esm.js";
10
- import "./trueSight-Cw9ktWo0.esm.js";
10
+ import "./trueSight-CpKAW400.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-yk8Pi9sH.esm.js";
12
12
  import { t as isAndroid } from "./platform-BtKmqD_U.esm.js";
13
- import "./session-nsNphgUa.esm.js";
13
+ import "./session-Bat4R9kV.esm.js";
14
14
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
16
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Ct-QgtAi.esm.js";
17
- import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-BxRVRs9-.esm.js";
16
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-QCFFUVkj.esm.js";
17
+ import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-B6Gtw21L.esm.js";
18
18
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
19
19
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
20
20
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
21
21
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
22
22
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
23
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DCzi2X20.esm.js";
23
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DKnCqOsF.esm.js";
24
24
  import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DNR8S1M2.esm.js";
25
- import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-BSZquQ6d.esm.js";
25
+ import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-CLserSrT.esm.js";
26
26
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
27
27
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
28
28
  function isKnownFailReason(reason) {
@@ -1772,7 +1772,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
1772
1772
  });
1773
1773
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1774
1774
  if (!input.dependencies) return;
1775
- const { loadDeepsightSession } = await import("./deepsightLoader-D_pTgevT.esm.js");
1775
+ const { loadDeepsightSession } = await import("./deepsightLoader-CQ8p6f3n.esm.js");
1776
1776
  return loadDeepsightSession({
1777
1777
  ds: input.ds,
1778
1778
  storage: input.dependencies.storage,
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
110
110
  type: "shouldProceedWithoutSubmitToSecondId";
111
111
  params: unknown;
112
112
  };
113
- }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
114
114
  readonly id: "idOcr";
115
115
  readonly initial: "idle";
116
116
  readonly context: ({ input }: {
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-v2TH5g7e.js";
1
+ import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BXEBBI3N.js";
2
2
  export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -108,14 +108,14 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
108
108
  type: "setError";
109
109
  params: NonReducibleUnknown;
110
110
  };
111
- clearError: {
112
- type: "clearError";
113
- params: NonReducibleUnknown;
114
- };
115
111
  setSelectedDocument: {
116
112
  type: "setSelectedDocument";
117
113
  params: NonReducibleUnknown;
118
114
  };
115
+ clearError: {
116
+ type: "clearError";
117
+ params: NonReducibleUnknown;
118
+ };
119
119
  }>, Values<{
120
120
  hasDocuments: {
121
121
  type: "hasDocuments";
@@ -125,7 +125,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
125
125
  type: "hasSelection";
126
126
  params: unknown;
127
127
  };
128
- }>, never, "error" | "idle" | "finished" | "submitting" | "loading" | "documentsFound", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
128
+ }>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
129
129
  readonly id: "identityReuse";
130
130
  readonly initial: "idle";
131
131
  readonly context: ({ input }: {
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-FUYImQXy.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-P7NmS-XX.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-R1jpOcvl.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-BG3ZPM3f.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CohPXtwL.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -57,14 +57,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
57
57
  type: "setError";
58
58
  params: NonReducibleUnknown;
59
59
  };
60
- toggleSigned: {
61
- type: "toggleSigned";
62
- params: NonReducibleUnknown;
63
- };
64
60
  clearError: {
65
61
  type: "clearError";
66
62
  params: NonReducibleUnknown;
67
63
  };
64
+ toggleSigned: {
65
+ type: "toggleSigned";
66
+ params: NonReducibleUnknown;
67
+ };
68
68
  resetContext: {
69
69
  type: "resetContext";
70
70
  params: NonReducibleUnknown;
@@ -72,7 +72,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
72
72
  }>, {
73
73
  type: "canSubmit";
74
74
  params: unknown;
75
- }, never, "error" | "idle" | "closed" | "finished" | "submitting" | "loading" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
75
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
76
76
  readonly id: "mandatoryConsent";
77
77
  readonly initial: "idle";
78
78
  readonly context: ({ input }: {