@incodetech/core 2.4.1-agentic.8 → 2.4.1-agentic.9

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 (84) hide show
  1. package/dist/{FaceDetectionProvider-sjGnopcG.esm.js → FaceDetectionProvider-CHpscouN.esm.js} +4 -4
  2. package/dist/{MultipartRecordingProvider-D9mauUdS.esm.js → MultipartRecordingProvider-BfQPSgSO.esm.js} +5 -0
  3. package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CyCrQnZR.esm.js} +1 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-cduF-t6Z.esm.js → apiError-BeWqIYu8.esm.js} +1 -1
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-CnDXQRD6.esm.js → authenticationManager-CTHFl6dl.esm.js} +3 -3
  8. package/dist/{authenticationStateMachine-BZ7ufcHb.esm.js → authenticationStateMachine-D-SOzH8C.esm.js} +2 -2
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-DXetSxcx.d.ts → consentManager-7aHaehwF.d.ts} +4 -4
  11. package/dist/{deepsightLoader-eUHG0SfL.esm.js → deepsightLoader-je1YxHgT.esm.js} +3 -3
  12. package/dist/{definitionSource-1vPLtuXE.esm.js → definitionSource-BHNxbuiv.esm.js} +1 -0
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-DDfviFg0.d.ts} +1 -1
  15. package/dist/dynamic-forms.esm.js +2 -2
  16. package/dist/{dynamicFormsManager-HXJVR9NC.esm.js → dynamicFormsManager-BKWJZfkn.esm.js} +1 -1
  17. package/dist/{dynamicFormsStateMachine-D46vH_nU.esm.js → dynamicFormsStateMachine-CQN8p1ux.esm.js} +1 -1
  18. package/dist/ekyb.esm.js +2 -2
  19. package/dist/{ekybManager-CIZHXJHe.esm.js → ekybManager-BD6HTwFJ.esm.js} +1 -1
  20. package/dist/{ekybStateMachine-Dxq0iatr.esm.js → ekybStateMachine-3kceTymI.esm.js} +2 -2
  21. package/dist/ekyc-prefill.d.ts +1 -1
  22. package/dist/ekyc-prefill.esm.js +2 -2
  23. package/dist/ekyc.esm.js +3 -3
  24. package/dist/{ekycManager-Bwv-qYAZ.esm.js → ekycManager-DawJq3Jo.esm.js} +1 -1
  25. package/dist/{ekycPrefillManager-DHfC1T9s.d.ts → ekycPrefillManager-DLNmToWT.d.ts} +4 -4
  26. package/dist/{ekycPrefillManager-B2U7RK3q.esm.js → ekycPrefillManager-D_8NJzZf.esm.js} +1 -1
  27. package/dist/{ekycPrefillStateMachine-Qa6sV0zR.esm.js → ekycPrefillStateMachine-C-JAvkH3.esm.js} +3 -3
  28. package/dist/{ekycRules-B7vXnbdg.esm.js → ekycRules-BLX7Elcb.esm.js} +1 -1
  29. package/dist/{ekycStateMachine-DlN1RCob.esm.js → ekycStateMachine-qvQ-b4IY.esm.js} +155 -3
  30. package/dist/{ekycUtils-K6VJXnOg.esm.js → ekycUtils-Drx8ImpN.esm.js} +5 -0
  31. package/dist/electronic-signature.esm.js +1 -1
  32. package/dist/{electronicSignatureManager-QQSpto7J.esm.js → electronicSignatureManager-u3UBhWw_.esm.js} +1 -1
  33. package/dist/extensibility.d.ts +5 -5
  34. package/dist/extensibility.esm.js +14 -14
  35. package/dist/{faceCaptureManagerFactory-Bus-PtEJ.esm.js → faceCaptureManagerFactory-DKJUjsV2.esm.js} +1 -1
  36. package/dist/{faceCaptureSetup-Dqqyb80d.esm.js → faceCaptureSetup-CZzv26ip.esm.js} +5 -5
  37. package/dist/{feature-management-B3FoZKze.esm.js → feature-management-BMUPPAzI.esm.js} +1 -1
  38. package/dist/feature-management.esm.js +1 -1
  39. package/dist/flow.d.ts +20 -8
  40. package/dist/flow.esm.js +6 -4
  41. package/dist/{flowCompletionService-BpfYzvW_.esm.js → flowCompletionService-DgA2VEq4.esm.js} +1 -1
  42. package/dist/{flowServices-DB3zK0IG.esm.js → flowServices-aJ5kGxBd.esm.js} +25 -6
  43. package/dist/geolocation.esm.js +2 -2
  44. package/dist/{geolocationManager-CT9R0efO.esm.js → geolocationManager-BA57nCxj.esm.js} +1 -1
  45. package/dist/{geolocationStateMachine-BpS2xhlp.esm.js → geolocationStateMachine-3-d1ECCh.esm.js} +1 -1
  46. package/dist/id-selfie-flow.esm.js +6 -6
  47. package/dist/id.esm.js +3 -3
  48. package/dist/{idCaptureManager-CTS4rByi.esm.js → idCaptureManager-B_TyUA3w.esm.js} +3 -3
  49. package/dist/{idCaptureServices-k1wrDp9O.esm.js → idCaptureServices-C6FUQ76N.esm.js} +4 -4
  50. package/dist/{idCaptureStateMachine-zyVg41Gj.esm.js → idCaptureStateMachine-Cr8WdGyp.esm.js} +8 -8
  51. package/dist/identity-reuse.d.ts +1 -1
  52. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  53. package/dist/index.esm.js +1 -1
  54. package/dist/kyb-checks.esm.js +2 -2
  55. package/dist/{kybChecksManager-CsJyQTui.esm.js → kybChecksManager-x2nBdasv.esm.js} +1 -1
  56. package/dist/{kybChecksStateMachine-Cs476kNX.esm.js → kybChecksStateMachine-DdWSo3jQ.esm.js} +1 -1
  57. package/dist/mandatory-consent.d.ts +2 -2
  58. package/dist/mandatory-consent.esm.js +2 -2
  59. package/dist/{mandatoryConsentManager-BBeOo3Sz.esm.js → mandatoryConsentManager-C9JJGENL.esm.js} +1 -1
  60. package/dist/{mandatoryConsentManager-MhZYQg10.d.ts → mandatoryConsentManager-JNeVXgK8.d.ts} +19 -10
  61. package/dist/{mandatoryConsentStateMachine-BJEyS63E.esm.js → mandatoryConsentStateMachine-DLNIGElA.esm.js} +10 -4
  62. package/dist/{multipartRecordingService-2iVLb-2Y.esm.js → multipartRecordingService-OmSzHBqh.esm.js} +1 -1
  63. package/dist/qe-signature.esm.js +1 -1
  64. package/dist/{recordingService-DKXaaOHO.esm.js → recordingService-BUqAQd8F.esm.js} +2 -2
  65. package/dist/{runChildModule-BTK4WxCz.esm.js → runChildModule-BTMOZdMM.esm.js} +1 -1
  66. package/dist/{sdkVersion-BAShFkdq.esm.js → sdkVersion-CinXzhdk.esm.js} +1 -1
  67. package/dist/selfie.esm.js +6 -6
  68. package/dist/{selfieErrorUtils-mvKkJ0eD.esm.js → selfieErrorUtils-D92PpZGe.esm.js} +1 -1
  69. package/dist/{selfieManager-BLHaOMz3.esm.js → selfieManager-DX9Ejy4x.esm.js} +3 -3
  70. package/dist/{selfieStateMachine-DvgwU2TN.esm.js → selfieStateMachine-BfJ5mJ57.esm.js} +3 -3
  71. package/dist/{session-DOxSWaWq.esm.js → session-CswNE2eZ.esm.js} +3 -3
  72. package/dist/session.esm.js +4 -4
  73. package/dist/{sessionInitializer-BcmGT-EA.esm.js → sessionInitializer-DFtIRfDh.esm.js} +4 -4
  74. package/dist/{setup-DMpxmBra.esm.js → setup-Bl3CRduw.esm.js} +5 -5
  75. package/dist/{tri-B2yL1QzP.esm.js → tri-BUFivnaE.esm.js} +1 -1
  76. package/dist/tri.esm.js +1 -1
  77. package/dist/{trueSightService-9OzRzNLm.esm.js → trueSightService-CDbmG-Mi.esm.js} +1 -1
  78. package/dist/{types-NMBsvLIN.d.ts → types-LA74KylV.d.ts} +2 -1
  79. package/dist/video-selfie.d.ts +2 -1
  80. package/dist/video-selfie.esm.js +5 -5
  81. package/dist/{videoSelfieCameraWarmer-DkJ59_nt.esm.js → videoSelfieCameraWarmer-Dnkiqe0z.esm.js} +11 -9
  82. package/dist/wasm.esm.js +1 -1
  83. package/dist/workflow.esm.js +18 -18
  84. package/package.json +3 -3
@@ -1,12 +1,12 @@
1
- import { u as BrowserStorageProvider } from "./setup-DMpxmBra.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
- import { b as getDeviceFingerprintInfo, y as getFingerprint } from "./sessionInitializer-BcmGT-EA.esm.js";
3
+ import { b as getDeviceFingerprintInfo, y as getFingerprint } from "./sessionInitializer-DFtIRfDh.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-QQSpto7J.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-u3UBhWw_.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-CbIwM35x.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-Dqqyb80d.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CnDXQRD6.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CZzv26ip.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CTHFl6dl.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-CrF3wjCH.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-BD7wwgat.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-CUc1uACE.esm.js";
@@ -14,26 +14,26 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BZhIPyaY.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-B4cmxi__.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-v57klTso.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-HXJVR9NC.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-CIZHXJHe.esm.js";
19
- import { n as createEkycManagerFromActor } from "./ekycManager-Bwv-qYAZ.esm.js";
20
- import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-B2U7RK3q.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BKWJZfkn.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-BD6HTwFJ.esm.js";
19
+ import { n as createEkycManagerFromActor } from "./ekycManager-DawJq3Jo.esm.js";
20
+ import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-D_8NJzZf.esm.js";
21
21
  import { n as createEmailManagerFromActor } from "./emailManager-BSaGg1Gl.esm.js";
22
- import { n as createSelfieManagerFromActor } from "./selfieManager-BLHaOMz3.esm.js";
23
- import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-CTS4rByi.esm.js";
22
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DX9Ejy4x.esm.js";
23
+ import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-B_TyUA3w.esm.js";
24
24
  import { n as createPhoneManagerFromActor } from "./phoneManager-BylOWecM.esm.js";
25
25
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-BJGLRv-x.esm.js";
26
26
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-DOYmIiaj.esm.js";
27
27
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CCZ-ES2E.esm.js";
28
28
  import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-BLLj_Ey1.esm.js";
29
- import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-BBeOo3Sz.esm.js";
29
+ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-C9JJGENL.esm.js";
30
30
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-BMK2oou0.esm.js";
31
31
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DUpLyXsq.esm.js";
32
32
  import { n as createSignatureManagerFromActor } from "./signatureManager-QlegdTo3.esm.js";
33
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-CT9R0efO.esm.js";
33
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-BA57nCxj.esm.js";
34
34
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-D5HkBqfr.esm.js";
35
35
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-4wY-Ee4j.esm.js";
36
36
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-qPJsa5Ac.esm.js";
37
37
  import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-Bh3rxb7Y.esm.js";
38
- import { n as createKybChecksManagerFromActor } from "./kybChecksManager-CsJyQTui.esm.js";
38
+ import { n as createKybChecksManagerFromActor } from "./kybChecksManager-x2nBdasv.esm.js";
39
39
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEkycPrefillManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createKybChecksManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScr
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
5
- import { r as concealmentToAvatar } from "./faceCaptureSetup-Dqqyb80d.esm.js";
5
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-CZzv26ip.esm.js";
6
6
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BtiR5pig.esm.js";
7
7
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
8
8
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-D190ATGD.esm.js";
@@ -1,14 +1,14 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { r as getToken } from "./api-C_P9YXbL.esm.js";
3
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-9OzRzNLm.esm.js";
4
- import "./sessionInitializer-BcmGT-EA.esm.js";
3
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-CDbmG-Mi.esm.js";
4
+ import "./sessionInitializer-DFtIRfDh.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
6
6
  import { c as isIPhone14OrHigher } from "./platform-aPh7gTWh.esm.js";
7
7
  import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
9
9
  import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
10
10
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-D190ATGD.esm.js";
11
- import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-sjGnopcG.esm.js";
11
+ import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CHpscouN.esm.js";
12
12
  import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-m2dAj6Zu.esm.js";
13
13
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
14
14
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -181,7 +181,7 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
181
181
  /** Per-attempt fallback when no step owner supplies the recording service. */
182
182
  async createAttemptRecordingService() {
183
183
  const wasmUtil = await this.options.dependencies.getWasmUtil();
184
- return (await import("./recordingService-DKXaaOHO.esm.js")).createRecordingService({
184
+ return (await import("./recordingService-BUqAQd8F.esm.js")).createRecordingService({
185
185
  config: this.options.config,
186
186
  wasmUtil,
187
187
  sessionToken: getToken(),
@@ -479,7 +479,7 @@ function createProtectedFaceControllerActor(options) {
479
479
  const input = getControllerInput();
480
480
  const pending = (async () => {
481
481
  const wasmUtil = await input.dependencies.getWasmUtil();
482
- const recordingModule = await import("./recordingService-DKXaaOHO.esm.js");
482
+ const recordingModule = await import("./recordingService-BUqAQd8F.esm.js");
483
483
  if (!active) return;
484
484
  stepRecording ??= recordingModule.createRecordingService({
485
485
  config: input.config,
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-BAShFkdq.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-CinXzhdk.esm.js";
3
3
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
4
4
  let currentEnvironment;
5
5
  /** Effective tier: the explicitly-set value, else the default (see note above). */
@@ -1,2 +1,2 @@
1
- import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-B3FoZKze.esm.js";
1
+ import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-BMUPPAzI.esm.js";
2
2
  export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
package/dist/flow.d.ts CHANGED
@@ -9,7 +9,7 @@ import { r as DocumentCaptureConfig } from "./types-CyNndVAT.js";
9
9
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
10
10
  import { t as EkybConfig } from "./types-BgRHw-dR.js";
11
11
  import { u as IdCaptureConfig } from "./types-BpJ21a4T.js";
12
- import { r as MandatoryConsentConfig } from "./types-NMBsvLIN.js";
12
+ import { r as MandatoryConsentConfig } from "./types-LA74KylV.js";
13
13
  import { t as IdOcrConfig } from "./types-Bpo97EOh.js";
14
14
  import { t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
15
15
  import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
@@ -61,6 +61,19 @@ type OrchestratedFlowEvent = {
61
61
  [key: string]: unknown;
62
62
  };
63
63
  //#endregion
64
+ //#region src/modules/flow/dashboardConfig.d.ts
65
+ type DeepPartialValue<T> = T extends Record<string, unknown> ? DeepPartial<T> : T;
66
+ type PreserveArray<T> = T extends readonly unknown[] ? T : DeepPartialValue<T>;
67
+ type DeepPartial<T> = { [K in keyof T]?: PreserveArray<T[K]>; };
68
+ declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPartial<T> | undefined): T;
69
+ /**
70
+ * Partial config per flow module, keyed by the module key of the flow
71
+ * (`ID`, `SECOND_ID`, `SELFIE`, ...). Each entry is merged over the dashboard
72
+ * config of that module. `TUTORIAL_ID` is not a key: the SDK turns that step
73
+ * into `ID` (and `SECOND_ID`) before the merge, so use `ID`.
74
+ */
75
+ type FlowModulesConfig = { [K in Exclude<keyof FlowModuleConfig, 'TUTORIAL_ID'>]?: DeepPartial<FlowModuleConfig[K]>; };
76
+ //#endregion
64
77
  //#region src/modules/flow/orchestratedFlowManager.d.ts
65
78
  type OrchestratedFlowHomeScreen = {
66
79
  visible: boolean;
@@ -128,6 +141,11 @@ type CreateOrchestratedFlowActorOptions = {
128
141
  deferActivation?: OrchestratedFlowInput['deferActivation'];
129
142
  /** A getter: the manager can exist before the session that owns the ID. */
130
143
  getInterviewId?: () => string | undefined;
144
+ /**
145
+ * Partial config per module key, merged over the dashboard config of each
146
+ * module when the flow loads. Values the flow sets at runtime still win.
147
+ */
148
+ modulesConfig?: FlowModulesConfig;
131
149
  };
132
150
  declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
133
151
  /**
@@ -249,12 +267,6 @@ declare function getNextRequiredWasmPipelines(state: Pick<OrchestratedFlowReadyS
249
267
  */
250
268
  declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
251
269
  //#endregion
252
- //#region src/modules/flow/dashboardConfig.d.ts
253
- type DeepPartialValue<T> = T extends Record<string, unknown> ? DeepPartial<T> : T;
254
- type PreserveArray<T> = T extends readonly unknown[] ? T : DeepPartialValue<T>;
255
- type DeepPartial<T> = { [K in keyof T]?: PreserveArray<T[K]>; };
256
- declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPartial<T> | undefined): T;
257
- //#endregion
258
270
  //#region src/modules/flow/flowServices.d.ts
259
271
  type GetFlowOptions = {
260
272
  isDesktop?: boolean;
@@ -448,4 +460,4 @@ interface ModuleLoader {
448
460
  }
449
461
  declare function createModuleLoader(registry: ModuleLoaderRegistry): ModuleLoader;
450
462
  //#endregion
451
- export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
463
+ export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowModulesConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
package/dist/flow.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { y as addEvent } from "./events-kU5WJU4B.esm.js";
2
2
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
3
- import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, d as resolveFlowModuleConfig, h as mergeDashboardConfig, l as loadFlowConfigConverters, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as normalizeFlowModules } from "./flowServices-DB3zK0IG.esm.js";
3
+ import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, d as resolveFlowModuleConfig, g as mergeDashboardConfig, h as applyModulesConfig, l as loadFlowConfigConverters, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as normalizeFlowModules } from "./flowServices-aJ5kGxBd.esm.js";
4
4
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BpfYzvW_.esm.js";
7
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BTK4WxCz.esm.js";
6
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DgA2VEq4.esm.js";
7
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BTMOZdMM.esm.js";
8
8
  import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
9
9
  //#region src/modules/flow/noOpFlowModuleMachine.ts
10
10
  const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
@@ -1083,8 +1083,10 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
1083
1083
  };
1084
1084
  }
1085
1085
  function createOrchestratedFlowActor(options) {
1086
+ const getFlow$1 = options.getFlow ?? getFlow;
1087
+ const { modulesConfig } = options;
1086
1088
  return createActor(orchestratedFlowMachine, { input: {
1087
- getFlow: options.getFlow ?? getFlow,
1089
+ getFlow: modulesConfig ? async (signal) => applyModulesConfig(await getFlow$1(signal), modulesConfig) : getFlow$1,
1088
1090
  modules: options.modules,
1089
1091
  lazyModules: options.lazyModules,
1090
1092
  getFinishStatus: options.getFinishStatus,
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-cduF-t6Z.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
3
3
  //#region src/modules/flow/flowCompletionService.ts
4
4
  const getFinishStatus = async (flowId, signal) => {
5
5
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,9 +1,9 @@
1
1
  import { r as getWasmStatus } from "./warmup-DtB0DJpl.esm.js";
2
2
  import { r as getToken, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
3
- import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-BcmGT-EA.esm.js";
4
- import { E as updateFeatureManagementUser } from "./feature-management-B3FoZKze.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-cduF-t6Z.esm.js";
6
- import "./session-DOxSWaWq.esm.js";
3
+ import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-DFtIRfDh.esm.js";
4
+ import { E as updateFeatureManagementUser } from "./feature-management-BMUPPAzI.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
6
+ import "./session-CswNE2eZ.esm.js";
7
7
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
8
8
  import { a as prefetchStartInfo } from "./phoneServices-Crge7uSV.esm.js";
9
9
  //#region src/modules/flow/dashboardConfig.ts
@@ -22,6 +22,25 @@ function mergeDashboardConfig(dashboardConfig, localConfig) {
22
22
  }
23
23
  return result;
24
24
  }
25
+ /**
26
+ * Merges `modulesConfig` over the dashboard config of each matching module.
27
+ * Runs on the normalized flow, so the keys are the step keys (`TUTORIAL_ID`
28
+ * is already `ID`).
29
+ */
30
+ function applyModulesConfig(flow, modulesConfig) {
31
+ if (!modulesConfig) return flow;
32
+ return {
33
+ ...flow,
34
+ flowModules: flow.flowModules.map((module) => {
35
+ const override = module.key === "TUTORIAL_ID" ? void 0 : modulesConfig[module.key];
36
+ if (!override) return module;
37
+ return {
38
+ ...module,
39
+ configuration: mergeDashboardConfig(module.configuration, override)
40
+ };
41
+ })
42
+ };
43
+ }
25
44
  //#endregion
26
45
  //#region src/modules/video-selfie/videoSelfieSteps.ts
27
46
  /** Steps that use the rear (environment) camera; everything else uses the front (user) camera. */
@@ -95,7 +114,7 @@ let configConverters;
95
114
  async function loadFlowConfigConverters(flow) {
96
115
  const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
97
116
  if (configConverters || !needed) return;
98
- const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-K6VJXnOg.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
117
+ const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-Drx8ImpN.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
99
118
  configConverters = {
100
119
  toEkycConfig: ekyc.toEkycConfig,
101
120
  toEkybConfig: ekyb.toEkybConfig
@@ -569,4 +588,4 @@ async function resolveDashboardModuleConfig(options) {
569
588
  return flowConfig;
570
589
  }
571
590
  //#endregion
572
- export { resolveDashboardModuleConfig as a, getRequiredWasmPipelines as c, resolveFlowModuleConfig as d, facingModeForStep as f, mergeDashboardConfig as h, resetDashboardFlowCache as i, loadFlowConfigConverters as l, videoSelfieWasmPipelines as m, getFlow as n, enrichFlowModuleConfig as o, resolveVideoSelfieSteps as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, normalizeFlowModules as u };
591
+ export { resolveDashboardModuleConfig as a, getRequiredWasmPipelines as c, resolveFlowModuleConfig as d, facingModeForStep as f, mergeDashboardConfig as g, applyModulesConfig as h, resetDashboardFlowCache as i, loadFlowConfigConverters as l, videoSelfieWasmPipelines as m, getFlow as n, enrichFlowModuleConfig as o, resolveVideoSelfieSteps as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, normalizeFlowModules as u };
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-CT9R0efO.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-BpS2xhlp.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-BA57nCxj.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-3-d1ECCh.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-BpS2xhlp.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-3-d1ECCh.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,6 +1,6 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
2
  import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
- import { n as isConnectivityError } from "./apiError-cduF-t6Z.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-BeWqIYu8.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  import { t as carryAttempts } from "./attemptCarry-BaAXPR_w.esm.js";
@@ -1,17 +1,17 @@
1
- import { t as ensureWasmPipelines } from "./setup-DMpxmBra.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, f as facingModeForStep } from "./flowServices-DB3zK0IG.esm.js";
4
+ import { a as resolveDashboardModuleConfig, f as facingModeForStep } from "./flowServices-aJ5kGxBd.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
- import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-sjGnopcG.esm.js";
7
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-CHpscouN.esm.js";
8
8
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dszuq9ng.esm.js";
11
- import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-k1wrDp9O.esm.js";
11
+ import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-C6FUQ76N.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-BpfYzvW_.esm.js";
14
- import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DkJ59_nt.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-DgA2VEq4.esm.js";
14
+ import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-Dnkiqe0z.esm.js";
15
15
  import { t as CameraCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
16
16
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
17
17
  /** Default autocapture window for the selfie step. */
package/dist/id.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-zyVg41Gj.esm.js";
2
- import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CTS4rByi.esm.js";
3
- import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-k1wrDp9O.esm.js";
1
+ import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-Cr8WdGyp.esm.js";
2
+ import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B_TyUA3w.esm.js";
3
+ import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-C6FUQ76N.esm.js";
4
4
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
5
5
  /**
6
6
  * Fail reason → i18n key for the device-wallet error screen (same shape as
@@ -1,4 +1,4 @@
1
- import { u as BrowserStorageProvider } from "./setup-DMpxmBra.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
3
3
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
4
4
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
@@ -9,8 +9,8 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BtiR5pig.esm.js";
9
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
10
  import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-D190ATGD.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
12
- import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-zyVg41Gj.esm.js";
13
- import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-k1wrDp9O.esm.js";
12
+ import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-Cr8WdGyp.esm.js";
13
+ import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-C6FUQ76N.esm.js";
14
14
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BkvXSZfa.esm.js";
15
15
  //#region src/modules/id/digitalUpload/instrumentation.ts
16
16
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1,6 +1,6 @@
1
- import { t as ensureWasmPipelines } from "./setup-DMpxmBra.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
3
- import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-B3FoZKze.esm.js";
3
+ import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BMUPPAzI.esm.js";
4
4
  import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
5
5
  import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
@@ -435,8 +435,8 @@ async function startRecordingSession(params) {
435
435
  }
436
436
  const [compositorModule, recorderModule, serviceModule] = await Promise.all([
437
437
  import("./CameraCompositor-DN7NkJzV.esm.js").then((n) => n.n),
438
- import("./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js").then((n) => n.n),
439
- import("./multipartRecordingService-2iVLb-2Y.esm.js").then((n) => n.n)
438
+ import("./WorkerEncoderRecordingProvider-CyCrQnZR.esm.js").then((n) => n.n),
439
+ import("./multipartRecordingService-OmSzHBqh.esm.js").then((n) => n.n)
440
440
  ]);
441
441
  const recordingSource = params.stream.clone();
442
442
  const compositor = compositorModule.createRecordingCompositor();
@@ -1,15 +1,15 @@
1
1
  import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-DMpxmBra.esm.js";
2
+ import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
3
3
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, y as addEvent } from "./events-kU5WJU4B.esm.js";
5
5
  import { r as getToken, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
6
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-9OzRzNLm.esm.js";
7
- import { n as getDisableIpify } from "./sessionInitializer-BcmGT-EA.esm.js";
6
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-CDbmG-Mi.esm.js";
7
+ import { n as getDisableIpify } from "./sessionInitializer-DFtIRfDh.esm.js";
8
8
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
9
- import { s as exposeExperimentOnce } from "./feature-management-B3FoZKze.esm.js";
9
+ import { s as exposeExperimentOnce } from "./feature-management-BMUPPAzI.esm.js";
10
10
  import { t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
11
11
  import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
12
- import "./session-DOxSWaWq.esm.js";
12
+ import "./session-CswNE2eZ.esm.js";
13
13
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
14
14
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
15
15
  import { r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
@@ -26,7 +26,7 @@ import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
26
26
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
27
27
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
28
28
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dszuq9ng.esm.js";
29
- import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-k1wrDp9O.esm.js";
29
+ import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-C6FUQ76N.esm.js";
30
30
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
31
31
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
32
32
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
@@ -2044,7 +2044,7 @@ fromPromise(async ({ input }) => {
2044
2044
  });
2045
2045
  fromPromise(async ({ input }) => {
2046
2046
  if (!input.dependencies) return;
2047
- const { loadDeepsightSession } = await import("./deepsightLoader-eUHG0SfL.esm.js");
2047
+ const { loadDeepsightSession } = await import("./deepsightLoader-je1YxHgT.esm.js");
2048
2048
  return loadDeepsightSession({
2049
2049
  ds: input.ds,
2050
2050
  storage: input.dependencies.storage,
@@ -2487,7 +2487,7 @@ function cleanup(service) {
2487
2487
  service.cleanup();
2488
2488
  } catch {}
2489
2489
  }
2490
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-eUHG0SfL.esm.js")).loadDeepsightSession(input)) {
2490
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-je1YxHgT.esm.js")).loadDeepsightSession(input)) {
2491
2491
  let disposed = false;
2492
2492
  let preparation;
2493
2493
  let service;
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
1
+ import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-B1birg5X.js";
2
2
  export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -120,10 +120,6 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
120
120
  type: "setError";
121
121
  params: NonReducibleUnknown;
122
122
  };
123
- clearError: {
124
- type: "clearError";
125
- params: NonReducibleUnknown;
126
- };
127
123
  setSelectedDocument: {
128
124
  type: "setSelectedDocument";
129
125
  params: NonReducibleUnknown;
@@ -132,6 +128,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
132
128
  type: "setCompanyName";
133
129
  params: NonReducibleUnknown;
134
130
  };
131
+ clearError: {
132
+ type: "clearError";
133
+ params: NonReducibleUnknown;
134
+ };
135
135
  }>, Values<{
136
136
  hasDocuments: {
137
137
  type: "hasDocuments";
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-DMpxmBra.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-Bl3CRduw.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
- import { t as kybChecksMachine } from "./kybChecksStateMachine-Cs476kNX.esm.js";
2
- import { t as createKybChecksManager } from "./kybChecksManager-CsJyQTui.esm.js";
1
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-DdWSo3jQ.esm.js";
2
+ import { t as createKybChecksManager } from "./kybChecksManager-x2nBdasv.esm.js";
3
3
  export { createKybChecksManager, kybChecksMachine };
@@ -1,5 +1,5 @@
1
1
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
2
- import { t as kybChecksMachine } from "./kybChecksStateMachine-Cs476kNX.esm.js";
2
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-DdWSo3jQ.esm.js";
3
3
  //#region src/modules/kyb-checks/kybChecksActor.ts
4
4
  /** Creates and starts a KYB Checks actor, idle until `LOAD`. */
5
5
  function createKybChecksActor(options = {}) {
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-cduF-t6Z.esm.js";
2
+ import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-BeWqIYu8.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
@@ -1,3 +1,3 @@
1
- import { r as MandatoryConsentConfig } from "./types-NMBsvLIN.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-MhZYQg10.js";
1
+ import { r as MandatoryConsentConfig } from "./types-LA74KylV.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-JNeVXgK8.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,3 +1,3 @@
1
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BJEyS63E.esm.js";
2
- import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-BBeOo3Sz.esm.js";
1
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DLNIGElA.esm.js";
2
+ import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-C9JJGENL.esm.js";
3
3
  export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-kU5WJU4B.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BJEyS63E.esm.js";
3
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DLNIGElA.esm.js";
4
4
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
5
5
  function createMandatoryConsentActor(options) {
6
6
  return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-NMBsvLIN.js";
4
+ import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-LA74KylV.js";
5
5
  //#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
6
6
  type MandatoryConsentContext = {
7
7
  config: MandatoryConsentConfig;
@@ -65,18 +65,24 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
65
65
  type: "setLoadError";
66
66
  params: NonReducibleUnknown;
67
67
  };
68
+ resetContext: {
69
+ type: "resetContext";
70
+ params: NonReducibleUnknown;
71
+ };
68
72
  toggleSigned: {
69
73
  type: "toggleSigned";
70
74
  params: NonReducibleUnknown;
71
75
  };
72
- resetContext: {
73
- type: "resetContext";
74
- params: NonReducibleUnknown;
76
+ }>, Values<{
77
+ canSubmit: {
78
+ type: "canSubmit";
79
+ params: unknown;
80
+ };
81
+ hasConsent: {
82
+ type: "hasConsent";
83
+ params: unknown;
75
84
  };
76
- }>, {
77
- type: "canSubmit";
78
- params: unknown;
79
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
85
+ }>, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
80
86
  readonly id: "mandatoryConsent";
81
87
  readonly initial: "idle";
82
88
  readonly context: ({ input }: {
@@ -234,10 +240,13 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
234
240
  }) => {
235
241
  config: MandatoryConsentConfig;
236
242
  };
237
- readonly onDone: {
243
+ readonly onDone: readonly [{
244
+ readonly guard: "hasConsent";
238
245
  readonly target: "display";
239
246
  readonly actions: "setConsent";
240
- };
247
+ }, {
248
+ readonly target: "finished";
249
+ }];
241
250
  readonly onError: {
242
251
  readonly target: "error";
243
252
  readonly actions: "setLoadError";