@incodetech/core 2.2.0-rc.6 → 2.2.0

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 (123) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-Ce3rctBe.esm.js → BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js} +1 -1
  2. package/dist/{addressSearch-DQyrvDQj.esm.js → addressSearch-D1XpBdUS.esm.js} +1 -1
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/antifraud.esm.js +2 -2
  5. package/dist/{antifraudManager-BMZvuxv0.esm.js → antifraudManager-CQFNgSPt.esm.js} +2 -2
  6. package/dist/{antifraudStateMachine-r4VxSBS4.esm.js → antifraudStateMachine-Bf_JVNwn.esm.js} +2 -2
  7. package/dist/{apiError-BSXFYi4z.esm.js → apiError-BA1d_au0.esm.js} +1 -1
  8. package/dist/authentication.esm.js +2 -2
  9. package/dist/{authenticationManager-DYqYkfs6.esm.js → authenticationManager-zh9TC62P.esm.js} +3 -3
  10. package/dist/{authenticationStateMachine-9tP0fEe0.esm.js → authenticationStateMachine-xzi-vnvE.esm.js} +4 -4
  11. package/dist/certificate-issuance.esm.js +2 -2
  12. package/dist/{certificateIssuanceStateMachine-COd7_l2T.esm.js → certificateIssuanceStateMachine-D_R92TYu.esm.js} +2 -2
  13. package/dist/consent.esm.js +2 -2
  14. package/dist/{consentManager-DyBXdkFn.esm.js → consentManager-BxjpLZAG.esm.js} +2 -2
  15. package/dist/{consentStateMachine-WD-S-Yhs.esm.js → consentStateMachine-D9D4ON8Z.esm.js} +2 -2
  16. package/dist/cross-document-data-match.esm.js +1 -1
  17. package/dist/{crossDocumentDataMatchManager-pNkutndd.esm.js → crossDocumentDataMatchManager-CGT0V6RV.esm.js} +2 -2
  18. package/dist/curp-validation.esm.js +2 -2
  19. package/dist/{curpValidationManager-DEesnLee.esm.js → curpValidationManager-6Nmkn5u1.esm.js} +2 -2
  20. package/dist/{curpValidationStateMachine-9KwnqeoB.esm.js → curpValidationStateMachine-Ds7KMacK.esm.js} +2 -2
  21. package/dist/custom-fields.esm.js +2 -2
  22. package/dist/custom-watchlist.esm.js +2 -2
  23. package/dist/{customWatchlistStateMachine-B_ey3TFj.esm.js → customWatchlistStateMachine-YWSgKLbF.esm.js} +2 -2
  24. package/dist/{deepsightLoader-CraWVfCs.esm.js → deepsightLoader--wMKWECS.esm.js} +3 -3
  25. package/dist/document-capture.esm.js +2 -2
  26. package/dist/document-upload.esm.js +2 -2
  27. package/dist/{documentCaptureManager-DwM7AmEJ.esm.js → documentCaptureManager-DsQQhWry.esm.js} +2 -2
  28. package/dist/{documentCaptureStateMachine-D2jBwwVb.esm.js → documentCaptureStateMachine-BM4Ex_5x.esm.js} +2 -2
  29. package/dist/dynamic-forms.esm.js +2 -2
  30. package/dist/{dynamicFormsManager-CXkZG8c6.esm.js → dynamicFormsManager-fFVIRBNv.esm.js} +2 -2
  31. package/dist/{dynamicFormsStateMachine-Cl3kW4E7.esm.js → dynamicFormsStateMachine-D6D7oEYk.esm.js} +3 -3
  32. package/dist/ekyb.esm.js +3 -3
  33. package/dist/{ekybManager-BY8ijn3M.esm.js → ekybManager-Y3MkoXpC.esm.js} +2 -2
  34. package/dist/{ekybStateMachine-Cyv8iPyH.esm.js → ekybStateMachine-3nlnqdlr.esm.js} +4 -4
  35. package/dist/ekyc.esm.js +2 -2
  36. package/dist/{ekycManager-CasdX1Ou.esm.js → ekycManager-DgT48ky6.esm.js} +2 -2
  37. package/dist/{ekycStateMachine-DHvksnrr.esm.js → ekycStateMachine-CQwqiR-R.esm.js} +3 -3
  38. package/dist/electronic-signature.esm.js +1 -1
  39. package/dist/{electronicSignatureManager-CAHjq6JR.esm.js → electronicSignatureManager-DGbAJ00W.esm.js} +3 -3
  40. package/dist/email.esm.js +2 -2
  41. package/dist/{emailManager-NLzaP12q.esm.js → emailManager-BY0jeYwR.esm.js} +2 -2
  42. package/dist/{emailStateMachine-Bm894MHB.esm.js → emailStateMachine-Crw8QVmc.esm.js} +2 -2
  43. package/dist/extensibility.d.ts +2 -2
  44. package/dist/extensibility.esm.js +28 -28
  45. package/dist/face-match.esm.js +2 -2
  46. package/dist/{faceCaptureManagerFactory-BdAtEQUX.esm.js → faceCaptureManagerFactory-CVnZ0fa5.esm.js} +2 -2
  47. package/dist/{faceCaptureSetup-BUNskJhm.esm.js → faceCaptureSetup-Cd-04W_X.esm.js} +4 -4
  48. package/dist/{faceMatchManager-DEVhhdf4.esm.js → faceMatchManager-Ri4UbNz0.esm.js} +2 -2
  49. package/dist/{faceMatchStateMachine-CJiO2yLO.esm.js → faceMatchStateMachine-20DdZ3jg.esm.js} +2 -2
  50. package/dist/{feature-management-Bo_xbwQa.esm.js → feature-management-CPQ4qv3F.esm.js} +1 -1
  51. package/dist/feature-management.esm.js +1 -1
  52. package/dist/field-comparison.esm.js +1 -1
  53. package/dist/{fieldComparisonManager-BRYsIi34.esm.js → fieldComparisonManager-Cg6kPQQx.esm.js} +2 -2
  54. package/dist/fiscal-qr.esm.js +2 -2
  55. package/dist/flow.d.ts +1 -1
  56. package/dist/flow.esm.js +5 -5
  57. package/dist/{flowCompletionService-J_2XiDZG.esm.js → flowCompletionService-tfeoGre9.esm.js} +1 -1
  58. package/dist/{flowServices-BydHVxc7.esm.js → flowServices-f5Ruz7R9.esm.js} +4 -4
  59. package/dist/geolocation.esm.js +2 -2
  60. package/dist/{geolocationManager-BF_JcCgS.esm.js → geolocationManager-CH6RfqFH.esm.js} +2 -2
  61. package/dist/{geolocationStateMachine-rYPrOUyM.esm.js → geolocationStateMachine-DmbWFely.esm.js} +3 -3
  62. package/dist/government-validation.esm.js +2 -2
  63. package/dist/{governmentValidationStateMachine-BYKYUdza.esm.js → governmentValidationStateMachine-CK9DrZXX.esm.js} +2 -2
  64. package/dist/home.esm.js +1 -1
  65. package/dist/id-ocr.esm.js +2 -2
  66. package/dist/id-selfie-flow.esm.js +8 -8
  67. package/dist/id-verification.esm.js +2 -2
  68. package/dist/id.d.ts +2 -2
  69. package/dist/id.esm.js +5 -5
  70. package/dist/{idCaptureManager-C5zp-Xje.esm.js → idCaptureManager-BYwTZ2H8.esm.js} +12 -16
  71. package/dist/{idCaptureManager-BjU-Wyow.d.ts → idCaptureManager-CqrqSjJV.d.ts} +20 -10
  72. package/dist/{idCaptureServices-28d5mDGM.esm.js → idCaptureServices-44kwQItl.esm.js} +141 -15
  73. package/dist/{idCaptureStateMachine-3jTqEo76.esm.js → idCaptureStateMachine-kZ5OpdfM.esm.js} +445 -54
  74. package/dist/{idOcrManager-D_2k-6Vv.esm.js → idOcrManager-BIQYQXXj.esm.js} +2 -2
  75. package/dist/{idOcrStateMachine-Bq_e3l4E.esm.js → idOcrStateMachine-cSxzHpHt.esm.js} +2 -2
  76. package/dist/{idVerificationManager-DdlrWSSB.esm.js → idVerificationManager-JpV_SAsl.esm.js} +2 -2
  77. package/dist/{idVerificationStateMachine-GEQWUPU2.esm.js → idVerificationStateMachine-nPeUNyFq.esm.js} +2 -2
  78. package/dist/identity-reuse.esm.js +2 -2
  79. package/dist/{identityReuseManager-CzLZNgdh.esm.js → identityReuseManager-kNCg9AbD.esm.js} +2 -2
  80. package/dist/{identityReuseStateMachine-AubRPhIi.esm.js → identityReuseStateMachine-DyulxDjP.esm.js} +2 -2
  81. package/dist/index.esm.js +1 -1
  82. package/dist/mandatory-consent.esm.js +2 -2
  83. package/dist/{mandatoryConsentManager-CEIkNukS.esm.js → mandatoryConsentManager-B4Niyg_u.esm.js} +2 -2
  84. package/dist/{mandatoryConsentStateMachine-zroQGzwb.esm.js → mandatoryConsentStateMachine-B4-1u-L8.esm.js} +2 -2
  85. package/dist/{onDeviceFaceResults-CTinxa9H.esm.js → onDeviceFaceResults-CUHwyZT4.esm.js} +3 -3
  86. package/dist/personhood.esm.js +5 -5
  87. package/dist/phone.esm.js +2 -2
  88. package/dist/{phoneManager-B_03mKyi.esm.js → phoneManager-FsJ0W2Ei.esm.js} +2 -2
  89. package/dist/{phoneStateMachine-E1fUUcNM.esm.js → phoneStateMachine-Ba0wKHyX.esm.js} +2 -2
  90. package/dist/qe-signature.esm.js +1 -1
  91. package/dist/{recordingService-DtWTn91V.esm.js → recordingService-3NSENVwp.esm.js} +1 -1
  92. package/dist/redirect-to-mobile.esm.js +2 -2
  93. package/dist/{redirectToMobileManager-Bgo6eqri.esm.js → redirectToMobileManager-y4VQB11M.esm.js} +3 -3
  94. package/dist/{redirectToMobileStateMachine-C9SYCJcH.esm.js → redirectToMobileStateMachine-Cyv2x0PP.esm.js} +2 -2
  95. package/dist/{runChildModule-Bl5F16W9.esm.js → runChildModule-Dukuw23X.esm.js} +3 -3
  96. package/dist/{sdkVersion-DEks9mOi.esm.js → sdkVersion-D1Bm59g6.esm.js} +1 -1
  97. package/dist/selfie.esm.js +6 -6
  98. package/dist/{selfieManager-D1jZ1_6k.esm.js → selfieManager-Bj6B2ZVy.esm.js} +3 -3
  99. package/dist/{selfieStateMachine-CW_c5AnO.esm.js → selfieStateMachine-CHV_WNst.esm.js} +4 -4
  100. package/dist/{session-ChIfu6mP.esm.js → session-BFdLgN4i.esm.js} +4 -4
  101. package/dist/session.esm.js +4 -4
  102. package/dist/{sessionInitializer-BFJAT3u0.esm.js → sessionInitializer-dlfDehHk.esm.js} +4 -4
  103. package/dist/{setup-CcxP8TVK.esm.js → setup-BIAtLa8k.esm.js} +5 -5
  104. package/dist/signature.esm.js +2 -2
  105. package/dist/{signatureManager-DoACIR02.esm.js → signatureManager-Ca43yhwk.esm.js} +2 -2
  106. package/dist/{signatureStateMachine-Cf73DGWO.esm.js → signatureStateMachine-K1LMRrxG.esm.js} +2 -2
  107. package/dist/trueSight-B_icM8r2.esm.js +1 -0
  108. package/dist/{trueSightService-B49-Eq-5.esm.js → trueSightService---iW2KKJ.esm.js} +2 -2
  109. package/dist/trust-graph.esm.js +1 -1
  110. package/dist/{types-M6eb82ra2.d.ts → types-Bdf8_LYB2.d.ts} +69 -13
  111. package/dist/video-selfie.esm.js +5 -5
  112. package/dist/{videoSelfieCameraWarmer-qld900rY.esm.js → videoSelfieCameraWarmer-NEhFZvWx.esm.js} +2 -2
  113. package/dist/wasm.esm.js +1 -1
  114. package/dist/watchlist-for-business.esm.js +2 -2
  115. package/dist/watchlist.esm.js +2 -2
  116. package/dist/{watchlistForBusinessStateMachine-BcBMkMvV.esm.js → watchlistForBusinessStateMachine-CxFnlshm.esm.js} +2 -2
  117. package/dist/{watchlistManager-CPBZnFYj.esm.js → watchlistManager-LoNZH9qm.esm.js} +2 -2
  118. package/dist/{watchlistStateMachine-Bl7Wy9Cm.esm.js → watchlistStateMachine-DIKQDoUT.esm.js} +2 -2
  119. package/dist/workflow.esm.js +36 -36
  120. package/dist/{xstate-actors.esm-CtI5S0f4.esm.js → xstate-actors.esm-BXeQ-Ucz.esm.js} +1 -1
  121. package/dist/{xstate.esm-Cf4e0Cfd.esm.js → xstate.esm-BuFLFuzz.esm.js} +1 -1
  122. package/package.json +2 -2
  123. package/dist/trueSight-CAaztf3O.esm.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
- import { t as faceMatchMachine } from "./faceMatchStateMachine-CJiO2yLO.esm.js";
2
+ import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
3
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-20DdZ3jg.esm.js";
4
4
  //#region src/modules/face-match/faceMatchActor.ts
5
5
  function createFaceMatchActor(options) {
6
6
  return createActor(faceMatchMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
5
  //#region src/modules/face-match/constants.ts
6
6
  /**
7
7
  * Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
@@ -1,5 +1,5 @@
1
1
  import { a as __toESM } from "./rolldown-runtime-FZ4Itg2g.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-DEks9mOi.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-D1Bm59g6.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-Bo_xbwQa.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-CPQ4qv3F.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 };
@@ -1,2 +1,2 @@
1
- import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-BRYsIi34.esm.js";
1
+ import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-Cg6kPQQx.esm.js";
2
2
  export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
- import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
+ import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  //#region src/modules/field-comparison/fieldComparisonServices.ts
7
7
  /** Submit first and last name for backend field comparison. Throws on failure. */
8
8
  async function submitFieldComparison(params, signal) {
@@ -2,8 +2,8 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-DYiyoSlx.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
+ import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
6
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
7
  import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
9
9
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
package/dist/flow.d.ts CHANGED
@@ -9,7 +9,7 @@ import { t as AuthenticationConfig } from "./types-EELWyWpd.js";
9
9
  import { r as DocumentCaptureConfig } from "./types-DelMqZLe.js";
10
10
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
11
11
  import { t as EkybConfig } from "./types-BfHiko5D.js";
12
- import { c as IdCaptureConfig } from "./types-M6eb82ra2.js";
12
+ import { c as IdCaptureConfig } from "./types-Bdf8_LYB2.js";
13
13
  import { r as MandatoryConsentConfig } from "./types-BX_XkMsQ2.js";
14
14
  import { t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
15
15
  import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-DYiyoSlx.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-BydHVxc7.esm.js";
3
- import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-J_2XiDZG.esm.js";
6
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Bl5F16W9.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-f5Ruz7R9.esm.js";
3
+ import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-tfeoGre9.esm.js";
6
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Dukuw23X.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
8
8
  const noOpFlowModuleMachine = setup({}).createMachine({
9
9
  id: "noOpFlowModule",
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError } from "./apiError-BSXFYi4z.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-BA1d_au0.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,9 +1,9 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-Bo_xbwQa.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-CPQ4qv3F.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BFJAT3u0.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-dlfDehHk.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-BSXFYi4z.esm.js";
6
- import "./session-ChIfu6mP.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-BA1d_au0.esm.js";
6
+ import "./session-BFdLgN4i.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-BF_JcCgS.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-rYPrOUyM.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-CH6RfqFH.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-DmbWFely.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-rYPrOUyM.esm.js";
2
+ import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-DmbWFely.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,9 +1,9 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { i as isIOS, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
4
- import { n as isConnectivityError } from "./apiError-BSXFYi4z.esm.js";
5
- import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-BA1d_au0.esm.js";
5
+ import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
6
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
8
8
  async function addGeolocation(params, signal) {
9
9
  const res = await api.post(endpoints.addGeolocation, {
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
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 governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
3
+ import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CK9DrZXX.esm.js";
5
5
  //#region src/modules/government-validation/governmentValidationActor.ts
6
6
  function createGovernmentValidationActor(options) {
7
7
  return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
@@ -1,8 +1,8 @@
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 { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
7
7
  //#region src/modules/government-validation/governmentValidationServices.ts
8
8
  async function processGovernmentValidation(signal) {
package/dist/home.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
- import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
+ import { s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
3
3
  //#region src/modules/home/homeStateMachine.ts
4
4
  const homeMachine = setup({ types: {
5
5
  context: {},
@@ -1,6 +1,6 @@
1
1
  import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
2
- import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
3
- import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-D_2k-6Vv.esm.js";
2
+ import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-cSxzHpHt.esm.js";
3
+ import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-BIQYQXXj.esm.js";
4
4
  //#region src/modules/id-ocr/idOcrCpfUtils.ts
5
5
  function formatCPF(value) {
6
6
  const digits = value.replace(/\D/g, "").slice(0, 11);
@@ -1,17 +1,17 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-CcxP8TVK.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BIAtLa8k.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-BydHVxc7.esm.js";
5
- import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-CTinxa9H.esm.js";
4
+ import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-f5Ruz7R9.esm.js";
5
+ import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
6
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-CUHwyZT4.esm.js";
8
8
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
9
9
  import { i as uploadSelfie, r as processFace } from "./selfieErrorUtils-C2PYBVsp.esm.js";
10
10
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
11
11
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-WeHbQM7W.esm.js";
12
- import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-28d5mDGM.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-J_2XiDZG.esm.js";
14
- import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-qld900rY.esm.js";
12
+ import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-44kwQItl.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-tfeoGre9.esm.js";
14
+ import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-NEhFZvWx.esm.js";
15
15
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
16
  /** Default autocapture window for the selfie step. */
17
17
  const SELFIE_AUTOCAPTURE_MS = 1e4;
@@ -1,3 +1,3 @@
1
- import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
2
- import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-DdlrWSSB.esm.js";
1
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-nPeUNyFq.esm.js";
2
+ import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-JpV_SAsl.esm.js";
3
3
  export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
package/dist/id.d.ts CHANGED
@@ -2,8 +2,8 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
2
2
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
3
3
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
4
4
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DHTT3FC2.js";
5
- import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, O as MANUAL_UPLOAD_MAX_RETRIES, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-M6eb82ra2.js";
6
- import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-BjU-Wyow.js";
5
+ import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, O as MANUAL_UPLOAD_MAX_RETRIES, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-Bdf8_LYB2.js";
6
+ import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-CqrqSjJV.js";
7
7
  //#region src/modules/id/idCaptureOnlyManager.d.ts
8
8
  type IdCaptureOnlyManager = IdCaptureManager;
9
9
  /**
package/dist/id.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
2
2
  import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
3
- import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-3jTqEo76.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-C5zp-Xje.esm.js";
7
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-28d5mDGM.esm.js";
3
+ import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
+ import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-kZ5OpdfM.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BYwTZ2H8.esm.js";
7
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-44kwQItl.esm.js";
8
8
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
9
9
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
10
10
  function buildSubImage(canvas) {
@@ -1,12 +1,12 @@
1
1
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
+ import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
7
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-UvUcOSRb.esm.js";
8
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-3jTqEo76.esm.js";
9
- import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-28d5mDGM.esm.js";
8
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-kZ5OpdfM.esm.js";
9
+ import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-44kwQItl.esm.js";
10
10
  //#region src/modules/id/digitalUpload/instrumentation.ts
11
11
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
12
12
  function isHoldingState(value) {
@@ -115,13 +115,13 @@ function getPermissionStatus(snapshot) {
115
115
  function getCaptureStatus(snapshot) {
116
116
  const matches = {
117
117
  initializing: snapshot.matches({ capture: "initializing" }),
118
- detecting: snapshot.matches({ capture: "detecting" }),
118
+ detecting: snapshot.matches({ capture: "detecting" }) || snapshot.matches({ capture: "choosingDetectionStrategy" }) || snapshot.matches({ capture: { detectingWithOptimization: "searching" } }),
119
119
  manualCaptureWaiting: snapshot.matches({ capture: "manualCaptureWaiting" }),
120
120
  capturing: snapshot.matches({ capture: "capturing" }),
121
121
  capturingManual: snapshot.matches({ capture: "capturingManual" }),
122
122
  capturingBarcode: snapshot.matches({ capture: "capturingBarcode" }),
123
123
  submittingBarcodePreCapture: snapshot.matches({ capture: "submittingBarcodePreCapture" }),
124
- resultPreview: snapshot.matches({ capture: "resultPreview" }),
124
+ optimizing: snapshot.matches({ capture: { detectingWithOptimization: "optimizing" } }) || snapshot.matches({ capture: "optimizingHold" }),
125
125
  uploading: snapshot.matches({ capture: "uploading" }),
126
126
  uploadCompleted: snapshot.matches({ capture: "uploadCompleted" }),
127
127
  submittingBarcode: snapshot.matches({ capture: "submittingBarcode" }),
@@ -129,11 +129,11 @@ function getCaptureStatus(snapshot) {
129
129
  success: snapshot.matches({ capture: "success" })
130
130
  };
131
131
  if (matches.initializing) return "initializing";
132
+ if (matches.optimizing) return "optimizing";
132
133
  if (matches.detecting || matches.manualCaptureWaiting) return "detecting";
133
134
  if (matches.capturingBarcode || matches.submittingBarcodePreCapture) return "holdOn";
134
135
  if (matches.capturing || matches.capturingManual) return "capturing";
135
136
  if (matches.uploading || matches.uploadCompleted || matches.submittingBarcode) return "uploading";
136
- if (matches.resultPreview) return "resultPreview";
137
137
  if (matches.uploadError) return "uploadError";
138
138
  if (matches.success) return "success";
139
139
  }
@@ -223,6 +223,8 @@ function mapCaptureState(snapshot, context) {
223
223
  orientation: context.orientation,
224
224
  idType: context.idType,
225
225
  previewImageUrl: context.previewImageUrl,
226
+ candidateImageUrl: context.candidateImageUrl,
227
+ optimizingDwellMs: context.optimizingDwellMs,
226
228
  barcodeFastPathCaptured: context.barcodeFastPathCaptured,
227
229
  uploadProgress: context.uploadProgress ?? 0,
228
230
  ageAssurance: context.config.ageAssurance === true,
@@ -406,14 +408,6 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
406
408
  }
407
409
  actor.send({ type: "NEXT_STEP" });
408
410
  },
409
- /**
410
- * Advances out of `resultPreview`. Deliberately untracked: this fires from
411
- * the UI's own dwell timer / animationend, not a user action, so it must not
412
- * emit an `elementClicked`.
413
- */
414
- completeResultPreview() {
415
- actor.send({ type: "RESULT_PREVIEW_COMPLETE" });
416
- },
417
411
  requestPermission() {
418
412
  trackElementClicked?.("requestPermission");
419
413
  actor.send({ type: "REQUEST_PERMISSION" });
@@ -792,14 +786,16 @@ function createIdCaptureManagerFromActor(actor, visibilityObserver = new Browser
792
786
  //#region src/modules/id/idCaptureActor.ts
793
787
  function createIdCaptureActor(options) {
794
788
  const dependencies = options.dependencies ?? { storage: new BrowserStorageProvider() };
795
- const treatment = resolveCaptureResultPreviewTreatment(options.config);
789
+ const treatment = resolveCaptureOptimizingTreatment(options.config);
796
790
  return createActor(idCaptureMachine, { input: {
797
791
  config: {
798
792
  ...options.config,
799
793
  thresholds: resolveIdCaptureThresholds(options.config, treatment?.framesAggregationInterval)
800
794
  },
801
795
  dependencies,
802
- captureFeedbackMode: treatment?.mode ?? "countdown"
796
+ captureFeedbackMode: treatment?.mode ?? "countdown",
797
+ captureWindowMs: treatment?.captureWindowMs,
798
+ optimizingDwellMs: treatment?.optimizingDwellMs
803
799
  } }).start();
804
800
  }
805
801
  //#endregion
@@ -9,7 +9,7 @@ import { a as RegulationTypes } from "./types-KPvmag_B.js";
9
9
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
10
10
  import { t as DeepsightService } from "./deepsightService-DLVQS_RH.js";
11
11
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DHTT3FC2.js";
12
- import { A as ManualUploadSide, C as RecordingSession, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-M6eb82ra2.js";
12
+ import { A as ManualUploadSide, C as RecordingSession, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-Bdf8_LYB2.js";
13
13
  //#region src/modules/id/idCaptureStateMachine.d.ts
14
14
  declare const idCaptureMachine: AnyStateMachine;
15
15
  type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
@@ -171,7 +171,7 @@ declare function addBarcode(params: AddBarcodeParams): Promise<AddBarcodeV3Respo
171
171
  type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
172
172
  //#endregion
173
173
  //#region src/internal/idCapture/idCaptureManagerFactory.d.ts
174
- type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'holdOn' | 'resultPreview' | 'uploading' | 'uploadError' | 'success';
174
+ type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'holdOn' | 'optimizing' | 'uploading' | 'uploadError' | 'success';
175
175
  type IdCaptureIdleState = {
176
176
  status: 'idle';
177
177
  };
@@ -206,6 +206,23 @@ type IdCaptureCaptureState = {
206
206
  orientation: DetectionOrientation | undefined;
207
207
  idType: string | undefined;
208
208
  previewImageUrl?: string;
209
+ /**
210
+ * IDC-05 auto-capture path, while `captureStatus === 'optimizing'`: WASM's
211
+ * best frame so far, to freeze during the optimizing phase. Display-only — detection is
212
+ * still running and may yet find a better frame, which arrives on
213
+ * `previewImageUrl`.
214
+ *
215
+ * Absent on the manual path, whose phase runs *after* the commit — freeze
216
+ * `previewImageUrl` there. `candidateImageUrl ?? previewImageUrl` covers
217
+ * both without branching on the path.
218
+ */
219
+ candidateImageUrl?: string;
220
+ /**
221
+ * IDC-05 only: how long the optimizing phase lasts. Also the hold the
222
+ * rendering layer applies on the manual-capture path, which has no
223
+ * aggregation window of its own.
224
+ */
225
+ optimizingDwellMs?: number;
209
226
  /**
210
227
  * Barcode fast-path success — render the checkmark "Successfully processed!"
211
228
  * screen with NO captured image (the grabbed frame is a backend signal only;
@@ -215,7 +232,7 @@ type IdCaptureCaptureState = {
215
232
  barcodeFastPathCaptured: boolean;
216
233
  uploadProgress?: number;
217
234
  ageAssurance: boolean;
218
- captureFeedbackMode: 'countdown' | 'result-preview';
235
+ captureFeedbackMode: 'countdown' | 'optimizing';
219
236
  uploadErrorMessage?: string;
220
237
  uploadErrorDescription?: string;
221
238
  /** Whether back capture is needed after front capture completes */
@@ -336,12 +353,6 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
336
353
  load(): void;
337
354
  selectDocument(documentType: IdDocumentType): void;
338
355
  nextStep(): Promise<void>;
339
- /**
340
- * Advances out of `resultPreview`. Deliberately untracked: this fires from
341
- * the UI's own dwell timer / animationend, not a user action, so it must not
342
- * emit an `elementClicked`.
343
- */
344
- completeResultPreview(): void;
345
356
  requestPermission(): void;
346
357
  goToLearnMore(): void;
347
358
  back(): void;
@@ -396,7 +407,6 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
396
407
  load(): void;
397
408
  selectDocument(documentType: IdDocumentType): void;
398
409
  nextStep(): Promise<void>;
399
- completeResultPreview(): void;
400
410
  requestPermission(): void;
401
411
  goToLearnMore(): void;
402
412
  back(): void;