@incodetech/core 0.0.0-dev-20260819-d97c25cd → 0.0.0-dev-20260820-6f816e8f

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 (100) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-C1kB1eB6.esm.js → BrowserDiagnosticsCryptoProvider-tDCuEK44.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-DlY6lEte.esm.js → apiError-CxJjYnCp.esm.js} +1 -1
  4. package/dist/authentication.d.ts +3 -3
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-CG7g38ad.d.ts → authenticationManager-BdJ566eB.d.ts} +1 -1
  7. package/dist/{authenticationManager-C3Pdo3OC.esm.js → authenticationManager-CrBReplX.esm.js} +2 -2
  8. package/dist/{authenticationStateMachine-CpBOgS9i.esm.js → authenticationStateMachine-D_L2mpmc.esm.js} +2 -2
  9. package/dist/curp-validation.d.ts +1 -1
  10. package/dist/{curpValidationManager-DrMLHzVF.d.ts → curpValidationManager-B9kKccLg.d.ts} +1 -1
  11. package/dist/{deepsightLoader-Ct8Fmn7_.esm.js → deepsightLoader-Dyxhphz0.esm.js} +3 -3
  12. package/dist/{deepsightService-Dr7sNZ5r.d.ts → deepsightService-Cr6ns2kj.d.ts} +1 -1
  13. package/dist/document-capture.d.ts +2 -2
  14. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DD0qtFdE.d.ts} +83 -83
  15. package/dist/dynamic-forms.d.ts +2 -2
  16. package/dist/dynamic-forms.esm.js +2 -2
  17. package/dist/{dynamicFormsManager-CWXstugw.esm.js → dynamicFormsManager-4tX9p_AR.esm.js} +1 -1
  18. package/dist/{dynamicFormsManager-DhveFHPS.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +1 -1
  19. package/dist/{dynamicFormsStateMachine-BN5EojBS.esm.js → dynamicFormsStateMachine-CD-hCCWJ.esm.js} +1 -1
  20. package/dist/ekyb.d.ts +1 -1
  21. package/dist/ekyb.esm.js +3 -3
  22. package/dist/{ekybManager-CS2eKYaZ.esm.js → ekybManager-BY4LnUm4.esm.js} +1 -1
  23. package/dist/{ekybStateMachine-CUbUpf93.esm.js → ekybStateMachine-uSJIhzLU.esm.js} +1 -1
  24. package/dist/electronic-signature.esm.js +1 -1
  25. package/dist/{electronicSignatureManager-DAV5Qd7D.esm.js → electronicSignatureManager-Chb8QeFD.esm.js} +1 -1
  26. package/dist/extensibility.d.ts +14 -13
  27. package/dist/extensibility.esm.js +11 -10
  28. package/dist/{faceCaptureManagerFactory-CA_aJRiS.esm.js → faceCaptureManagerFactory-CAW9WNUz.esm.js} +1 -1
  29. package/dist/{faceCaptureManagerFactory-D6qnBVUw.d.ts → faceCaptureManagerFactory-Crm7rmV-.d.ts} +5 -5
  30. package/dist/{faceCaptureSetup-q_Csi0hg.esm.js → faceCaptureSetup-B-N5fin9.esm.js} +2 -2
  31. package/dist/{feature-management-Cl__Mk57.esm.js → feature-management-COvemSkM.esm.js} +1 -1
  32. package/dist/feature-management.esm.js +1 -1
  33. package/dist/flow-events.d.ts +1 -1
  34. package/dist/flow.d.ts +7 -7
  35. package/dist/flow.esm.js +3 -3
  36. package/dist/{flowCompletionService-B0iuFfdZ.esm.js → flowCompletionService-Brp6bkMc.esm.js} +1 -1
  37. package/dist/{flowServices-D6lWadVX.esm.js → flowServices-9HbZB6VW.esm.js} +4 -4
  38. package/dist/geolocation.esm.js +2 -2
  39. package/dist/{geolocationManager-CZJwhj_d.esm.js → geolocationManager-CwAF2Ycc.esm.js} +1 -1
  40. package/dist/{geolocationStateMachine-BOH8p4nS.esm.js → geolocationStateMachine-Clkf_lbg.esm.js} +1 -1
  41. package/dist/home.d.ts +1 -1
  42. package/dist/id-selfie-flow.d.ts +1 -1
  43. package/dist/id-selfie-flow.esm.js +6 -6
  44. package/dist/id.d.ts +3 -3
  45. package/dist/id.esm.js +3 -3
  46. package/dist/{idCaptureManager-CdJ5tIzZ.esm.js → idCaptureManager-CttWuT7D.esm.js} +2 -2
  47. package/dist/{idCaptureManager-CfE4iEi0.d.ts → idCaptureManager-DQEUuleg.d.ts} +4 -4
  48. package/dist/{idCaptureServices-DLNKi_EM.esm.js → idCaptureServices-CBiU_PlE.esm.js} +3 -3
  49. package/dist/{idCaptureStateMachine-C4UMP5JD.esm.js → idCaptureStateMachine-BLyOQZJn.esm.js} +8 -8
  50. package/dist/identity-reuse.d.ts +1 -1
  51. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-DoyR7YC5.d.ts} +4 -4
  52. package/dist/{index-LA6R9BLR.d.ts → index-B_-QIi8y.d.ts} +1 -1
  53. package/dist/index.esm.js +1 -1
  54. package/dist/mandatory-consent.d.ts +2 -2
  55. package/dist/{mandatoryConsentManager-DbGLEuuz.d.ts → mandatoryConsentManager-CaTcQLK6.d.ts} +1 -1
  56. package/dist/{onDeviceFaceResults-RJnRexzw.esm.js → onDeviceFaceResults--kTy4auH.esm.js} +3 -3
  57. package/dist/personhood.d.ts +3 -3
  58. package/dist/personhood.esm.js +3 -3
  59. package/dist/qe-signature.esm.js +1 -1
  60. package/dist/{recordingService-CLsBGwrX.esm.js → recordingService-C1tQcDCc.esm.js} +1 -1
  61. package/dist/{runChildModule-btHrg-mD.esm.js → runChildModule-C7FLYTy_.esm.js} +1 -1
  62. package/dist/{sdkVersion-x6P2avb7.esm.js → sdkVersion-dtU4mowt.esm.js} +1 -1
  63. package/dist/selfie.d.ts +5 -5
  64. package/dist/selfie.esm.js +4 -4
  65. package/dist/{selfieManager-BNRQ9O-F.esm.js → selfieManager-CGmVvPTy.esm.js} +2 -2
  66. package/dist/{selfieManager-dki4G9tK.d.ts → selfieManager-D03ce0Eq.d.ts} +1 -1
  67. package/dist/{selfieStateMachine-BCruqTSI.esm.js → selfieStateMachine-B-VG5ona.esm.js} +2 -2
  68. package/dist/{session-Bgkz0Bl9.esm.js → session-BU3_u0rM.esm.js} +4 -4
  69. package/dist/session.d.ts +1 -1
  70. package/dist/session.esm.js +4 -4
  71. package/dist/{sessionInitializer-BWxNWUni.esm.js → sessionInitializer-BRBkV3AN.esm.js} +4 -4
  72. package/dist/{setup-CXsJAvBD.esm.js → setup-Bs8LIDpu.esm.js} +5 -5
  73. package/dist/trueSight-C-nMi8FV.esm.js +1 -0
  74. package/dist/{trueSightService-C8mkify_.esm.js → trueSightService-C5TjU8TL.esm.js} +2 -2
  75. package/dist/types-BMa0ZqAi.d.ts +6 -0
  76. package/dist/{types-isCyg__O.d.ts → types-B_PW_0Wq2.d.ts} +3 -3
  77. package/dist/{types-C6pPfQxo.d.ts → types-BaDB52_j.d.ts} +1 -1
  78. package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
  79. package/dist/{types-BqezaTnP.d.ts → types-CkrawdOy.d.ts} +3 -2
  80. package/dist/{types-D10PIjOT.d.ts → types-R1jpOcvl.d.ts} +1 -1
  81. package/dist/{types-KeV54Tt6.d.ts → types-jBSE34JY.d.ts} +1 -1
  82. package/dist/video-selfie.d.ts +1 -1
  83. package/dist/video-selfie.esm.js +3 -3
  84. package/dist/{videoSelfieCameraWarmer-BwvCvHQQ.esm.js → videoSelfieCameraWarmer-er0qGFV9.esm.js} +2 -2
  85. package/dist/{videoSelfieStepDetector-tHovquP4.d.ts → videoSelfieStepDetector-g3PJIqyq.d.ts} +3 -3
  86. package/dist/wasm.esm.js +1 -1
  87. package/dist/watchlist-for-business.d.ts +2 -78
  88. package/dist/watchlist-for-business.esm.js +3 -102
  89. package/dist/watchlistForBusinessManager-Bo08PkKo.esm.js +107 -0
  90. package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
  91. package/dist/{watchlistForBusinessStateMachine-BcBMkMvV.esm.js → watchlistForBusinessStateMachine-BAg1B4HF.esm.js} +12 -5
  92. package/dist/workflow.d.ts +1 -1
  93. package/dist/workflow.esm.js +16 -16
  94. package/package.json +3 -8
  95. package/dist/document-upload.d.ts +0 -325
  96. package/dist/document-upload.esm.js +0 -197
  97. package/dist/trueSight-CzaYWY8k.esm.js +0 -1
  98. package/dist/types-DQpi7nkW.d.ts +0 -6
  99. package/dist/types-Vb4P9ovf.d.ts +0 -22
  100. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -2,15 +2,15 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.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 { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-C8mkify_.esm.js";
5
+ import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-C5TjU8TL.esm.js";
6
6
  import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
7
- import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-BWxNWUni.esm.js";
7
+ import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-BRBkV3AN.esm.js";
8
8
  import { t as endpoints } from "./endpoints-CCzL3XD_.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
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
12
12
  import { i as requestPermission, t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
13
- import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-RJnRexzw.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults--kTy4auH.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
@@ -1,4 +1,4 @@
1
- import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-DAV5Qd7D.esm.js";
1
+ import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-Chb8QeFD.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,5 +1,5 @@
1
1
  import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
2
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-RJnRexzw.esm.js";
2
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults--kTy4auH.esm.js";
3
3
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
4
4
  //#region ../infra/src/media/VideoTrimmer.ts
5
5
  async function getDurationBySeek(videoBlob) {
@@ -1,5 +1,5 @@
1
1
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-C8mkify_.esm.js";
2
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-C5TjU8TL.esm.js";
3
3
  import { C as createEventBus } from "./events-DYiyoSlx.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";
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "0.0.0-dev-20260819-d97c25cd";
2
+ const SDK_VERSION = "0.0.0-dev-20260820-6f816e8f";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
package/dist/selfie.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
- import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-D6qnBVUw.js";
3
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
+ import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-Crm7rmV-.js";
4
3
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
5
- import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-KeV54Tt6.js";
6
- import { t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
7
- import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-dki4G9tK.js";
4
+ import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-jBSE34JY.js";
5
+ import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
+ import { t as DeepsightService } from "./deepsightService-Cr6ns2kj.js";
7
+ import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-D03ce0Eq.js";
8
8
  //#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
9
9
  type SelfieCaptureOnlyState = FaceCaptureManagerState;
10
10
  type SelfieCaptureOnlyManager = FaceCaptureManager;
@@ -3,11 +3,11 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.e
3
3
  import { n as eventModuleNames } from "./events-DYiyoSlx.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-q_Csi0hg.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CA_aJRiS.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-B-N5fin9.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CAW9WNUz.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-BCruqTSI.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BNRQ9O-F.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-B-VG5ona.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CGmVvPTy.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CA_aJRiS.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-BCruqTSI.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CAW9WNUz.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-B-VG5ona.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-D6qnBVUw.js";
3
+ import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-Crm7rmV-.js";
4
4
  //#region src/modules/selfie/selfieManager.d.ts
5
5
  type SelfieState = FaceCaptureManagerState;
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
- import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-q_Csi0hg.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-RJnRexzw.esm.js";
3
+ import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-B-N5fin9.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults--kTy4auH.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
7
7
  //#region src/modules/selfie/selfieStateMachine.ts
@@ -1,9 +1,9 @@
1
1
  import { n as getApi } from "./api-Bx3gKW_y.esm.js";
2
- import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-C8mkify_.esm.js";
3
- import "./sessionInitializer-BWxNWUni.esm.js";
2
+ import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-C5TjU8TL.esm.js";
3
+ import "./sessionInitializer-BRBkV3AN.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import "./trueSight-CzaYWY8k.esm.js";
6
- import { r as toIncodeApiError } from "./apiError-DlY6lEte.esm.js";
5
+ import "./trueSight-C-nMi8FV.esm.js";
6
+ import { r as toIncodeApiError } from "./apiError-CxJjYnCp.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
9
9
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
package/dist/session.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as DeviceFingerprintResult } from "./types-C6pPfQxo.js";
1
+ import { t as DeviceFingerprintResult } from "./types-BaDB52_j.js";
2
2
  import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
3
3
  //#region src/internal/session/sessionService.d.ts
4
4
  type CreateSessionOptions = {
@@ -1,5 +1,5 @@
1
- import { i as initializeSession } from "./sessionInitializer-BWxNWUni.esm.js";
2
- import { t as IncodeApiError } from "./apiError-DlY6lEte.esm.js";
3
- import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-Bgkz0Bl9.esm.js";
4
- import { n as getFinishStatus } from "./flowCompletionService-B0iuFfdZ.esm.js";
1
+ import { i as initializeSession } from "./sessionInitializer-BRBkV3AN.esm.js";
2
+ import { t as IncodeApiError } from "./apiError-CxJjYnCp.esm.js";
3
+ import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BU3_u0rM.esm.js";
4
+ import { n as getFinishStatus } from "./flowCompletionService-Brp6bkMc.esm.js";
5
5
  export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
@@ -1,10 +1,10 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-Cl__Mk57.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-COvemSkM.esm.js";
2
2
  import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-C8mkify_.esm.js";
3
+ import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-C5TjU8TL.esm.js";
4
4
  import { v as addEvent, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-x6P2avb7.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-dtU4mowt.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
7
- import "./trueSight-CzaYWY8k.esm.js";
7
+ import "./trueSight-C-nMi8FV.esm.js";
8
8
  import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
9
9
  import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
10
10
  import { a as isIOS } from "./platform-Q4r1nvWX.esm.js";
@@ -2,17 +2,17 @@ import { a as resolveWasmConfig } from "./wasmDefaults-BrwMccqW.esm.js";
2
2
  import { o as setWasmOnDeviceMode, r as WasmUtilProvider, s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
3
3
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
- import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-Cl__Mk57.esm.js";
5
+ import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-COvemSkM.esm.js";
6
6
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
8
- import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-C8mkify_.esm.js";
8
+ import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-C5TjU8TL.esm.js";
9
9
  import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
10
- import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-BWxNWUni.esm.js";
10
+ import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-BRBkV3AN.esm.js";
11
11
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
12
- import "./trueSight-CzaYWY8k.esm.js";
12
+ import "./trueSight-C-nMi8FV.esm.js";
13
13
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
14
14
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
15
- import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-D6lWadVX.esm.js";
15
+ import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-9HbZB6VW.esm.js";
16
16
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
17
17
  var BrowserPageLifecycleProvider = class {
18
18
  sendBeacon(url, body, contentType = "application/json") {
@@ -0,0 +1 @@
1
+ import "./trueSightService-C5TjU8TL.esm.js";
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWa
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { S as subscribeEvent, n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-x6P2avb7.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-dtU4mowt.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
7
7
  //#region ../infra/src/http/createApi.ts
8
8
  var FetchHttpError = class extends Error {
@@ -1320,7 +1320,7 @@ let cryptoProviderPromise = null;
1320
1320
  * the service's prewarm).
1321
1321
  */
1322
1322
  function loadDiagnosticsCryptoProvider() {
1323
- cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-C1kB1eB6.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1323
+ cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-tDCuEK44.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1324
1324
  return cryptoProviderPromise;
1325
1325
  }
1326
1326
  /**
@@ -0,0 +1,6 @@
1
+ import { i as FlowModuleConfig } from "./types-CkrawdOy.js";
2
+ import { t as BaseFaceCaptureConfig } from "./types-jBSE34JY.js";
3
+ //#region src/modules/authentication/types.d.ts
4
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
+ //#endregion
6
+ export { AuthenticationConfig as t };
@@ -1,9 +1,9 @@
1
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
1
  import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
3
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BqezaTnP.js";
2
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-CkrawdOy.js";
4
3
  import { a as IRecordingCapability, i as IStorageCapability, o as RecordingConnection } from "./IWasmUtilCapability-5-Pncgma.js";
5
4
  import { t as PermissionResult } from "./types-BEwVKkLJ.js";
6
- import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
5
+ import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
+ import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Cr6ns2kj.js";
7
7
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
8
8
  //#region src/modules/id/manualUpload/types.d.ts
9
9
  type ManualUploadTab = 'id' | 'passport';
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BqezaTnP.js";
1
+ import { a as RegulationTypes } from "./types-CkrawdOy.js";
2
2
  //#region src/internal/fingerprint/types.d.ts
3
3
  type DeviceFingerprintResult = {
4
4
  success: boolean;
@@ -1,5 +1,5 @@
1
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
1
  import { t as PermissionResult } from "./types-BEwVKkLJ.js";
2
+ import { t as CameraStream } from "./camera-9wWD-pwg.js";
3
3
  //#region src/modules/document-capture/types.d.ts
4
4
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement' | 'processW8BenOcr' | 'processW8BenEOcr' | 'w8Ben' | 'w8BenE';
5
5
  declare const DOCUMENT_CAPTURE_ERROR_CODES: {
@@ -1,4 +1,3 @@
1
- import { t as DocumentUploadConfig } from "./types-Vb4P9ovf.js";
2
1
  import { s as RiskAddon } from "./types-Bk_6dmDa.js";
3
2
  import "./createFaceAvatar-pUEkdk4X.js";
4
3
  //#region src/internal/avatar/concealment.d.ts
@@ -200,7 +199,9 @@ type FlowModuleConfig = {
200
199
  ID: TutorialIdConfig;
201
200
  SECOND_ID: TutorialIdConfig;
202
201
  /** @deprecated Third ID step is deprecated; SDK skips this step and continues flow */
203
- THIRD_ID: DocumentUploadConfig;
202
+ THIRD_ID: {
203
+ documentType: string;
204
+ };
204
205
  ID_OCR: {
205
206
  editableOcr: boolean;
206
207
  cpfOnly?: boolean;
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BqezaTnP.js";
1
+ import { a as RegulationTypes } from "./types-CkrawdOy.js";
2
2
  //#region src/modules/mandatory-consent/types.d.ts
3
3
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
4
4
  type MandatoryConsentConfig = {
@@ -1,5 +1,5 @@
1
1
  import { a as AvatarAssetsOverrides } from "./createFaceAvatar-pUEkdk4X.js";
2
- import { n as Flow, s as SelfieConcealmentOption } from "./types-BqezaTnP.js";
2
+ import { n as Flow, s as SelfieConcealmentOption } from "./types-CkrawdOy.js";
3
3
  import { a as IRecordingCapability, i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-5-Pncgma.js";
4
4
  //#region src/internal/faceCapture/types.d.ts
5
5
  type CameraResolution = {
@@ -4,7 +4,7 @@ import "./StateMachine-EDpYWy0i.js";
4
4
  import "./Actor-iTq7YY48.js";
5
5
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
6
  import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
7
- import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-tHovquP4.js";
7
+ import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-g3PJIqyq.js";
8
8
  //#region ../infra/src/capabilities/ITimerCapability.d.ts
9
9
  type TimerHandle = ReturnType<typeof setTimeout>;
10
10
  type ITimerCapability = {
@@ -1,13 +1,13 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
- import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-CXsJAvBD.esm.js";
2
+ import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-Bs8LIDpu.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
5
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
6
- import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-D6lWadVX.esm.js";
6
+ import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-9HbZB6VW.esm.js";
7
7
  import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
9
9
  import { n as getSupportedMediaRecorderMimeType } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
10
- import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-BwvCvHQQ.esm.js";
10
+ import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-er0qGFV9.esm.js";
11
11
  //#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
12
12
  /**
13
13
  * How often `MediaRecorder` hands us buffered data (incremental blobs).
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
- import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-D6lWadVX.esm.js";
4
+ import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-9HbZB6VW.esm.js";
5
5
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
6
6
  import { t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
7
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-RJnRexzw.esm.js";
7
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults--kTy4auH.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-D30zZBEZ.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
@@ -1,7 +1,7 @@
1
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
- import { i as FlowModuleConfig } from "./types-BqezaTnP.js";
1
+ import { i as FlowModuleConfig } from "./types-CkrawdOy.js";
3
2
  import "./IWasmUtilCapability-5-Pncgma.js";
4
- import { n as DetectionStatus } from "./types-KeV54Tt6.js";
3
+ import { n as DetectionStatus } from "./types-jBSE34JY.js";
4
+ import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
5
  import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
6
6
  //#region src/modules/video-selfie/types.d.ts
7
7
  /**
package/dist/wasm.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as WASM_MODEL_FILES, f as WASM_PIPELINE_LAZY_MODEL_NAMES, m as WASM_PIPELINE_MODEL_NAMES } from "./wasmWebClient-BzFsDjU6.esm.js";
2
2
  import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-BrwMccqW.esm.js";
3
3
  import { s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
4
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-CXsJAvBD.esm.js";
4
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-Bs8LIDpu.esm.js";
5
5
  //#region src/defineWasm.ts
6
6
  function requiredModels(pipelines) {
7
7
  const models = /* @__PURE__ */ new Set();
@@ -1,78 +1,2 @@
1
- import { t as Manager } from "./Manager-CQQ99QOI.js";
2
- //#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
3
- /** Waiting for `load()` to be called. */
4
- type WatchlistForBusinessIdleState = {
5
- status: 'idle';
6
- };
7
- /** Form is ready — use `setCountry()`, `setBusinessName()`, and `submit()`. */
8
- type WatchlistForBusinessFormState = {
9
- status: 'form';
10
- country: string;
11
- businessName: string;
12
- isValid: boolean;
13
- };
14
- /** API request in flight. */
15
- type WatchlistForBusinessSubmittingState = {
16
- status: 'submitting';
17
- };
18
- /**
19
- * API succeeded — success screen visible for ~3 s before transitioning
20
- * to `finished`.
21
- */
22
- type WatchlistForBusinessSuccessState = {
23
- status: 'success';
24
- };
25
- /** Module complete. Fires regardless of API outcome (fire-and-forget). */
26
- type WatchlistForBusinessFinishedState = {
27
- status: 'finished';
28
- };
29
- /**
30
- * Discriminated union of all possible watchlist-for-business manager states.
31
- */
32
- type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBusinessFormState | WatchlistForBusinessSubmittingState | WatchlistForBusinessSuccessState | WatchlistForBusinessFinishedState;
33
- /**
34
- * Creates a watchlist-for-business manager for headless or UI-driven usage.
35
- *
36
- * On API error the module completes silently (fire-and-forget).
37
- *
38
- * @example Headless usage
39
- * ```typescript
40
- * import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
41
- *
42
- * const manager = createWatchlistForBusinessManager();
43
- * manager.subscribe((state) => {
44
- * if (state.status === 'finished') console.log('Done');
45
- * });
46
- * manager.load();
47
- * manager.setCountry('MX');
48
- * manager.setBusinessName('Acme Corp');
49
- * manager.submit();
50
- * manager.stop();
51
- * ```
52
- */
53
- declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
54
- /** Transitions from `idle` to the form. Must be called before any other method. */
55
- load(): void;
56
- /** Updates the selected country code (ISO 3166-1 alpha-2). */
57
- setCountry(country: string): void;
58
- /** Updates the business name field and recomputes validity. */
59
- setBusinessName(value: string): void;
60
- /** Submits the form. Only transitions when `isValid` is true. */
61
- submit(): void;
62
- };
63
- type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
64
- //#endregion
65
- //#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
66
- declare const watchlistForBusinessMachine: any;
67
- //#endregion
68
- //#region src/modules/watchlist-for-business/types.d.ts
69
- /**
70
- * Configuration for the watchlist-for-business module.
71
- *
72
- * No server-side configuration is required — the module collects
73
- * country and business name from the user and submits them to the
74
- * business watchlist endpoint.
75
- */
76
- type WatchlistForBusinessConfig = Record<string, never>;
77
- //#endregion
78
- export { type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, createWatchlistForBusinessManager, watchlistForBusinessMachine };
1
+ import { a as createWatchlistForBusinessManager, c as WatchlistForBusinessValidationErrors, i as WatchlistForBusinessState, l as WatchlistForBusinessActor, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessConfig, t as WatchlistForBusinessFinishedState, u as watchlistForBusinessMachine } from "./watchlistForBusinessManager-CsnJnG-C.js";
2
+ export { type WatchlistForBusinessActor, type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistForBusinessValidationErrors, createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
@@ -1,102 +1,3 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
- import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BcBMkMvV.esm.js";
5
- //#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
6
- function createWatchlistForBusinessActor() {
7
- return createActor(watchlistForBusinessMachine).start();
8
- }
9
- //#endregion
10
- //#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
11
- /**
12
- * Maps a Watchlist-for-Business state-machine snapshot to the exact Figma
13
- * "Tracked Events" screen name. Source: Watchlist for Business Figma
14
- * file (`https://www.figma.com/design/BfHifNPAvPTpBlnMEDfg4J/Watchlist-for-Business---Latest-Design?node-id=3031-82920`).
15
- * Family is `watchlist.*`, shared with global watchlist and custom
16
- * watchlist — each manager keeps its own module token per the
17
- * AdSign/QSign precedent.
18
- *
19
- * `idle` and `finished` are intentionally unmapped — the Figma canvas does
20
- * not define screens for them; `finished` collapses into `moduleClosed`.
21
- */
22
- function getWatchlistForBusinessScreenName(snapshot) {
23
- const stateName = topLevelStateName(snapshot.value);
24
- if (stateName === void 0) return void 0;
25
- switch (stateName) {
26
- case "form": return snapshot.context.isValid ? "watchlist.filled" : "watchlist.default";
27
- case "submitting": return "watchlist.processing";
28
- case "success": return "watchlist.success";
29
- default: return;
30
- }
31
- }
32
- function mapState(snapshot) {
33
- const typedSnapshot = snapshot;
34
- const { context } = typedSnapshot;
35
- if (typedSnapshot.matches("form")) return {
36
- status: "form",
37
- country: context.country,
38
- businessName: context.businessName,
39
- isValid: context.isValid
40
- };
41
- if (typedSnapshot.matches("submitting")) return { status: "submitting" };
42
- if (typedSnapshot.matches("success")) return { status: "success" };
43
- if (typedSnapshot.matches("finished")) return { status: "finished" };
44
- return { status: "idle" };
45
- }
46
- function createApi({ actor, trackElementClicked }) {
47
- return {
48
- /** Transitions from `idle` to the form. Must be called before any other method. */
49
- load() {
50
- actor.send({ type: "LOAD" });
51
- },
52
- /** Updates the selected country code (ISO 3166-1 alpha-2). */
53
- setCountry(country) {
54
- actor.send({
55
- type: "SET_COUNTRY",
56
- country
57
- });
58
- },
59
- /** Updates the business name field and recomputes validity. */
60
- setBusinessName(value) {
61
- actor.send({
62
- type: "SET_BUSINESS_NAME",
63
- value
64
- });
65
- },
66
- /** Submits the form. Only transitions when `isValid` is true. */
67
- submit() {
68
- trackElementClicked?.("submit");
69
- actor.send({ type: "SUBMIT" });
70
- }
71
- };
72
- }
73
- /**
74
- * Creates a watchlist-for-business manager for headless or UI-driven usage.
75
- *
76
- * On API error the module completes silently (fire-and-forget).
77
- *
78
- * @example Headless usage
79
- * ```typescript
80
- * import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
81
- *
82
- * const manager = createWatchlistForBusinessManager();
83
- * manager.subscribe((state) => {
84
- * if (state.status === 'finished') console.log('Done');
85
- * });
86
- * manager.load();
87
- * manager.setCountry('MX');
88
- * manager.setBusinessName('Acme Corp');
89
- * manager.submit();
90
- * manager.stop();
91
- * ```
92
- */
93
- function createWatchlistForBusinessManager() {
94
- return createManager({
95
- actor: createWatchlistForBusinessActor(),
96
- mapState,
97
- createApi,
98
- instrumentation: createManagerInstrumentation(eventModuleNames.watchlistForBusiness, { getEventScreenName: getWatchlistForBusinessScreenName })
99
- });
100
- }
101
- //#endregion
102
- export { createWatchlistForBusinessManager, watchlistForBusinessMachine };
1
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BAg1B4HF.esm.js";
2
+ import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-Bo08PkKo.esm.js";
3
+ export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };