@incodetech/core 2.4.1-agentic.10 → 2.4.1-agentic.12

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 (290) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  3. package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
  4. package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
  5. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  6. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  7. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  8. package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
  9. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  10. package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +47 -4
  11. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  12. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-BzAy6lhp.esm.js} +6 -7
  13. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  14. package/dist/ae-signature.d.ts +2 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.d.ts +1 -1
  17. package/dist/antifraud.esm.js +2 -2
  18. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-Bw5nw5fh.esm.js} +5 -3
  19. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  20. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +4 -6
  21. package/dist/{api-BSnbg4HO.esm.js → api-DSZSaaWr.esm.js} +3 -1
  22. package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
  23. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
  24. package/dist/authentication.d.ts +3 -3
  25. package/dist/authentication.esm.js +2 -2
  26. package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-B0SioAdd.esm.js} +7 -6
  27. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-eYcurNiS.d.ts} +2 -2
  28. package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +50 -18
  29. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  30. package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  31. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  32. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  33. package/dist/camera-9yYDUOsO.d.ts +5 -0
  34. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  35. package/dist/camera.d.ts +2 -2
  36. package/dist/camera.esm.js +1 -1
  37. package/dist/certificate-issuance.d.ts +1 -1
  38. package/dist/certificate-issuance.esm.js +2 -2
  39. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  40. package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +5 -3
  41. package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +3 -3
  42. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  43. package/dist/consent.d.ts +1 -1
  44. package/dist/consent.esm.js +2 -2
  45. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -8
  46. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-DRMJ3O4r.esm.js} +5 -3
  47. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-Br0JbW7k.esm.js} +6 -9
  48. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  49. package/dist/cross-document-data-match.d.ts +1 -1
  50. package/dist/cross-document-data-match.esm.js +1 -1
  51. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +6 -5
  52. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  53. package/dist/curp-DZGvefg3.esm.js +14 -0
  54. package/dist/curp-validation.d.ts +1 -1
  55. package/dist/curp-validation.esm.js +2 -2
  56. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-BKUDQ55W.esm.js} +6 -4
  57. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-DgUZySoq.d.ts} +4 -4
  58. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +16 -17
  59. package/dist/custom-fields.d.ts +1 -1
  60. package/dist/custom-fields.esm.js +1 -1
  61. package/dist/custom-watchlist.d.ts +1 -1
  62. package/dist/custom-watchlist.esm.js +2 -2
  63. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-CPhONu5i.esm.js} +15 -17
  64. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  65. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-cN57usIW.esm.js} +5 -3
  66. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  67. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +4 -6
  68. package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
  69. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  70. package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-btFONYx6.esm.js} +23 -11
  71. package/dist/device.d.ts +3 -3
  72. package/dist/device.esm.js +15 -15
  73. package/dist/document-capture.d.ts +2 -2
  74. package/dist/document-capture.esm.js +2 -2
  75. package/dist/document-signature.d.ts +123 -0
  76. package/dist/document-signature.esm.js +149 -0
  77. package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +5 -3
  78. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +6 -5
  79. package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +9 -12
  80. package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
  81. package/dist/dynamic-forms.d.ts +1 -1
  82. package/dist/dynamic-forms.esm.js +2 -2
  83. package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +5 -3
  84. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  85. package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +12 -13
  86. package/dist/ekyb.d.ts +3 -3
  87. package/dist/ekyb.esm.js +2 -2
  88. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  89. package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-wi135kG-.esm.js} +5 -3
  90. package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +19 -23
  91. package/dist/ekyc-prefill.d.ts +1 -1
  92. package/dist/ekyc-prefill.esm.js +2 -2
  93. package/dist/ekyc.d.ts +2 -2
  94. package/dist/ekyc.esm.js +3 -3
  95. package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
  96. package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-DWCL912J.esm.js} +39 -16
  97. package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -3
  98. package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +3 -2
  99. package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +12 -13
  100. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-1hyjJ6bw.esm.js} +201 -38
  101. package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +478 -73
  102. package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-D9ui9Ztp.esm.js} +49 -43
  103. package/dist/electronic-signature.d.ts +1 -1
  104. package/dist/electronic-signature.esm.js +1 -1
  105. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  106. package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +11 -17
  107. package/dist/email.d.ts +1 -1
  108. package/dist/email.esm.js +2 -2
  109. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-CfvR6pQN.esm.js} +5 -3
  110. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  111. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-C4FouMzc.esm.js} +5 -7
  112. package/dist/events-CsPmTidH.esm.js +299 -0
  113. package/dist/events.d.ts +4 -1
  114. package/dist/events.esm.js +2 -1
  115. package/dist/extensibility.d.ts +41 -41
  116. package/dist/extensibility.esm.js +38 -38
  117. package/dist/face-match.d.ts +1 -1
  118. package/dist/face-match.esm.js +2 -2
  119. package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +17 -6
  120. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +23 -10
  121. package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +61 -42
  122. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  123. package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CsPFaja4.esm.js} +5 -3
  124. package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +24 -23
  125. package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
  126. package/dist/feature-management.esm.js +1 -1
  127. package/dist/field-comparison.d.ts +1 -1
  128. package/dist/field-comparison.esm.js +1 -1
  129. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +7 -7
  130. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  131. package/dist/fiscal-qr.d.ts +1 -1
  132. package/dist/fiscal-qr.esm.js +1 -1
  133. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +9 -8
  134. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  135. package/dist/flow-events.d.ts +1 -1
  136. package/dist/flow.d.ts +48 -12
  137. package/dist/flow.esm.js +214 -58
  138. package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
  139. package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-C23o7MqO.esm.js} +375 -13
  140. package/dist/geolocation.d.ts +1 -1
  141. package/dist/geolocation.esm.js +2 -2
  142. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  143. package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-dgMVi0ed.esm.js} +5 -3
  144. package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +8 -10
  145. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  146. package/dist/government-validation.d.ts +1 -1
  147. package/dist/government-validation.esm.js +2 -2
  148. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-D2KGYDws.esm.js} +5 -3
  149. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  150. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +4 -6
  151. package/dist/home.d.ts +4 -3
  152. package/dist/home.esm.js +4 -2
  153. package/dist/http.esm.js +1 -1
  154. package/dist/id-ocr.d.ts +1 -1
  155. package/dist/id-ocr.esm.js +3 -3
  156. package/dist/id-selfie-flow.d.ts +5 -4
  157. package/dist/id-selfie-flow.esm.js +13 -12
  158. package/dist/id-verification.d.ts +1 -1
  159. package/dist/id-verification.esm.js +2 -2
  160. package/dist/id.d.ts +3 -3
  161. package/dist/id.esm.js +3 -3
  162. package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
  163. package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-B_deOVCC.esm.js} +15 -15
  164. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-DzAMWmRO.d.ts} +17 -9
  165. package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
  166. package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +52 -57
  167. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  168. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-C-_bzBSX.esm.js} +5 -3
  169. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  170. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +13 -10
  171. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  172. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-CdvGdtg2.esm.js} +5 -3
  173. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +4 -6
  174. package/dist/identity-reuse.d.ts +2 -2
  175. package/dist/identity-reuse.esm.js +2 -2
  176. package/dist/identity-search.d.ts +97 -0
  177. package/dist/identity-search.esm.js +96 -0
  178. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  179. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +9 -4
  180. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +24 -31
  181. package/dist/{index-CSPOoqah.d.ts → index-C0WIMlJE.d.ts} +2 -2
  182. package/dist/{index-Btj1EhiM.d.ts → index-CNck5TLp.d.ts} +1 -1
  183. package/dist/index-DHuAkTe0.d.ts +1 -0
  184. package/dist/index.d.ts +1 -1
  185. package/dist/index.esm.js +1 -1
  186. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  187. package/dist/kyb-checks.d.ts +1 -1
  188. package/dist/kyb-checks.esm.js +2 -2
  189. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  190. package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-D-mVF14T.esm.js} +3 -2
  191. package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +11 -14
  192. package/dist/mandatory-consent.d.ts +2 -2
  193. package/dist/mandatory-consent.esm.js +2 -2
  194. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +5 -3
  195. package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +10 -9
  196. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +6 -9
  197. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +21 -4
  198. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
  199. package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
  200. package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
  201. package/dist/phone.d.ts +1 -1
  202. package/dist/phone.esm.js +2 -2
  203. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  204. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-D8-l6-0y.esm.js} +5 -3
  205. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  206. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
  207. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +4 -4
  208. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  209. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
  210. package/dist/qe-signature.d.ts +2 -2
  211. package/dist/qe-signature.esm.js +1 -1
  212. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
  213. package/dist/redirect-to-mobile.d.ts +1 -1
  214. package/dist/redirect-to-mobile.esm.js +2 -2
  215. package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-Djb_daci.esm.js} +6 -4
  216. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  217. package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +9 -19
  218. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  219. package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-DF2c6TxC.esm.js} +8 -6
  220. package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
  221. package/dist/selfie.d.ts +5 -5
  222. package/dist/selfie.esm.js +13 -12
  223. package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
  224. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-C5a6Fw6W.d.ts} +2 -2
  225. package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dnb5h3qV.esm.js} +7 -6
  226. package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BT69FLFb.esm.js} +5 -5
  227. package/dist/{session-D0DWDKp9.esm.js → session-OCc4b-Iv.esm.js} +4 -4
  228. package/dist/session.d.ts +1 -1
  229. package/dist/session.esm.js +5 -5
  230. package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -12
  231. package/dist/{setup-CG6oLkAa.d.ts → setup-BpD7lYSf.d.ts} +5 -4
  232. package/dist/{setup-BpjzWqR1.esm.js → setup-CJMohzTE.esm.js} +10 -9
  233. package/dist/signature.d.ts +1 -1
  234. package/dist/signature.esm.js +2 -2
  235. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-B6dRieBV.esm.js} +5 -3
  236. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  237. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +5 -7
  238. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  239. package/dist/{stats-C2sigf9p.esm.js → stats-VqHbD5rn.esm.js} +1 -1
  240. package/dist/stats.esm.js +1 -1
  241. package/dist/step-up.d.ts +3 -2
  242. package/dist/step-up.esm.js +2 -1
  243. package/dist/{tri-DaUNvo-o.esm.js → tri-B5Yh5glk.esm.js} +2 -2
  244. package/dist/tri.d.ts +1 -1
  245. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  246. package/dist/tri.esm.js +1 -1
  247. package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-D9D2IdEj.esm.js} +8 -6
  248. package/dist/trust-graph.d.ts +4 -3
  249. package/dist/trust-graph.esm.js +5 -3
  250. package/dist/{types-TisHEbBg.d.ts → types-B2DGXHe6.d.ts} +30 -1
  251. package/dist/{types-BqlZSoZ-.d.ts → types-BBHnkH6S.d.ts} +4 -4
  252. package/dist/types-BNkzXOXE.d.ts +45 -0
  253. package/dist/{types-P9LzsfRo.d.ts → types-BkWUNheX.d.ts} +1 -1
  254. package/dist/types-C2uJrJrS.d.ts +6 -0
  255. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  256. package/dist/{events-C7h7oaTE.esm.js → types-CBQN04Rh.esm.js} +5 -299
  257. package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
  258. package/dist/{types-Cbm9J2yF.d.ts → types-Crg7oL-l.d.ts} +1 -1
  259. package/dist/{types-CgihAhT_.d.ts → types-x5MQKskR.d.ts} +4 -2
  260. package/dist/video-selfie.d.ts +6 -5
  261. package/dist/video-selfie.esm.js +14 -13
  262. package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
  263. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  264. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
  265. package/dist/wasm.d.ts +1 -1
  266. package/dist/wasm.esm.js +1 -1
  267. package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
  268. package/dist/watchlist-for-business.d.ts +1 -1
  269. package/dist/watchlist-for-business.esm.js +2 -2
  270. package/dist/watchlist.d.ts +1 -1
  271. package/dist/watchlist.esm.js +2 -2
  272. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +5 -3
  273. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  274. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +12 -9
  275. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-CGXbemnp.esm.js} +5 -3
  276. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  277. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +4 -6
  278. package/dist/workflow.d.ts +6 -5
  279. package/dist/workflow.esm.js +53 -43
  280. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  281. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  282. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  283. package/package.json +11 -1
  284. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  285. package/dist/camera-9wWD-pwg.d.ts +0 -4
  286. package/dist/index-DpTj5PFb.d.ts +0 -1
  287. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  288. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  289. package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
  290. package/dist/types-kLsU6Jkt.d.ts +0 -6
package/dist/flow.esm.js CHANGED
@@ -1,11 +1,13 @@
1
- import { y as addEvent } from "./events-C7h7oaTE.esm.js";
1
+ import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-CBQN04Rh.esm.js";
2
+ import "./events-CsPmTidH.esm.js";
2
3
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.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-Ca2vKNt2.esm.js";
4
- import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-DvcH16XO.esm.js";
7
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BmteMhR7.esm.js";
8
- import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
4
+ import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-C23o7MqO.esm.js";
5
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
+ import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
+ import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-E_6ChYsV.esm.js";
9
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DF2c6TxC.esm.js";
10
+ import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
9
11
  //#region src/modules/flow/noOpFlowModuleMachine.ts
10
12
  const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
11
13
  id: "noOpFlowModule",
@@ -376,6 +378,15 @@ function createModuleLoader(registry) {
376
378
  }
377
379
  //#endregion
378
380
  //#region src/modules/flow/orchestratedFlowStateMachine.ts
381
+ /**
382
+ * Whether only the step's own machine can end it: a host's `completeModule()`,
383
+ * or a continuable `errorModule()`, is dropped while it runs (owner decision
384
+ * 12). Today that is the identity search, whose answer the reuse step after it
385
+ * reads.
386
+ */
387
+ function endsOnlyThroughItsMachine(step) {
388
+ return step === "IDENTITY_SEARCH";
389
+ }
379
390
  function getModuleConfig(module, flow) {
380
391
  if (!module || !flow) return {};
381
392
  return resolveFlowModuleConfig(module, flow);
@@ -401,7 +412,8 @@ function createBaseContext(context, isHomeContinueLoading) {
401
412
  isHomeContinueLoading,
402
413
  deferActivation: context.deferActivation,
403
414
  activationResolved: false,
404
- skipFaceMatch: false
415
+ skipFaceMatch: false,
416
+ armedPresets: []
405
417
  };
406
418
  }
407
419
  function createInitialContext(input) {
@@ -423,22 +435,41 @@ function createInitialContext(input) {
423
435
  function homeScreenEnabled(context, flow) {
424
436
  return context.enableHome === true && flow?.disableLaunchScreen !== true && context.isHomeContinueLoading !== true;
425
437
  }
438
+ /**
439
+ * Whether a machine is registered for a module key, eagerly or lazily. Reads
440
+ * the registries when it is called: `<incode-flow>` fills its lazy registry
441
+ * inside `getFlow`, so a check made after `getFlow` sees the keys it added.
442
+ */
443
+ function canResolveModule(context, key) {
444
+ return context.registeredModules[key] != null || context.lazyRegisteredModules[key] != null;
445
+ }
426
446
  function shouldEnterHome(context) {
427
447
  if (!homeScreenEnabled(context, context.flow)) return false;
428
448
  const firstRealIndex = context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
429
449
  return context.currentStepIndex === firstRealIndex;
430
450
  }
431
451
  const prefetchedLazyModules = /* @__PURE__ */ new WeakSet();
432
- function prefetchNextLazyModule(context) {
433
- const nextStep = context.steps[context.currentStepIndex + 1];
434
- if (!nextStep) return;
435
- const nextLazyModule = context.lazyRegisteredModules[nextStep];
436
- if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) return;
437
- prefetchedLazyModules.add(nextLazyModule);
438
- nextLazyModule().catch(() => {
439
- prefetchedLazyModules.delete(nextLazyModule);
452
+ /**
453
+ * The steps that can run after the current one: the next step, or, on a
454
+ * step where a preset decides the path, the next step on each path.
455
+ */
456
+ function getStepsThatMayRunNext(context) {
457
+ return stepsThatMayRunNext({
458
+ armedPresets: context.armedPresets,
459
+ steps: context.steps,
460
+ currentStepIndex: context.currentStepIndex
440
461
  });
441
462
  }
463
+ function prefetchNextLazyModules(context) {
464
+ for (const nextStep of getStepsThatMayRunNext(context)) {
465
+ const nextLazyModule = context.lazyRegisteredModules[nextStep];
466
+ if (!nextLazyModule || prefetchedLazyModules.has(nextLazyModule)) continue;
467
+ prefetchedLazyModules.add(nextLazyModule);
468
+ nextLazyModule().catch(() => {
469
+ prefetchedLazyModules.delete(nextLazyModule);
470
+ });
471
+ }
472
+ }
442
473
  const homeContinueOn = { HOME_CONTINUE: { actions: "setHomeContinueLoading" } };
443
474
  const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
444
475
  types: {
@@ -449,9 +480,21 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
449
480
  actors: {
450
481
  resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
451
482
  fetchFlow: fromPromise(async ({ input, signal }) => {
452
- const flow = await retryAfterReconnect(() => input.getFlow(signal), signal);
483
+ const served = prepareFlowOcrSteps(await retryAfterReconnect(() => input.getFlow(signal), signal));
484
+ const arming = armFlowPresets(served, input.canResolve);
485
+ if (arming.status === "misconfigured") return {
486
+ flow: served,
487
+ arming
488
+ };
489
+ const flow = arming.armedPresets.length > 0 ? {
490
+ ...served,
491
+ flowModules: arming.modules
492
+ } : served;
453
493
  await loadFlowConfigConverters(flow);
454
- return flow;
494
+ return {
495
+ flow,
496
+ arming
497
+ };
455
498
  }),
456
499
  notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
457
500
  runChildModule,
@@ -476,7 +519,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
476
519
  setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
477
520
  clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
478
521
  setFlowData: assign(({ event }) => {
479
- const flow = prepareFlowOcrSteps(event.output);
522
+ const { flow, arming } = event.output;
480
523
  const flowModules = flow.flowModules ?? [];
481
524
  const firstModule = flowModules[0];
482
525
  const config = getModuleConfig(firstModule, flow);
@@ -486,7 +529,84 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
486
529
  currentStepIndex: flowModules.length > 0 ? 0 : -1,
487
530
  currentStep: firstModule?.key,
488
531
  config,
489
- currentModuleMachine: void 0
532
+ currentModuleMachine: void 0,
533
+ armedPresets: arming.status === "armed" ? arming.armedPresets : []
534
+ };
535
+ }),
536
+ setMisconfiguredFlowError: assign(({ event }) => {
537
+ const { arming } = event.output;
538
+ if (arming.status !== "misconfigured") return {};
539
+ return {
540
+ error: arming.message,
541
+ moduleErrorCode: arming.moduleErrorCode
542
+ };
543
+ }),
544
+ reportArmedPresets: ({ event }) => {
545
+ const { flow, arming } = event.output;
546
+ if (arming.status !== "armed") return;
547
+ const steps = flow.flowModules.map((module) => module.key);
548
+ for (const preset of arming.armedPresets) {
549
+ const module = flowPresetAnalyticsModule(preset);
550
+ const screenName = `${module}.started`;
551
+ screenOpened(module, screenName, { steps });
552
+ screenClosed(module, screenName);
553
+ }
554
+ },
555
+ reportMisconfiguredFlow: ({ event }) => {
556
+ const { arming } = event.output;
557
+ if (arming.status !== "misconfigured") return;
558
+ addEvent({
559
+ code: "errorTriggered",
560
+ module: flowPresetAnalyticsModule(arming.preset),
561
+ payload: {
562
+ errorCode: arming.moduleErrorCode,
563
+ advanced: false,
564
+ missing: arming.missing,
565
+ unsupported: arming.unsupported,
566
+ unregistered: arming.unregistered
567
+ }
568
+ });
569
+ },
570
+ reportPresetDecisions: ({ context, event }) => {
571
+ const ending = event;
572
+ const decisions = decideFlowPresets({
573
+ armedPresets: context.armedPresets,
574
+ steps: context.steps,
575
+ currentStepIndex: context.currentStepIndex,
576
+ ending: {
577
+ output: ending.output,
578
+ moduleErrorCode: ending.moduleErrorCode
579
+ }
580
+ });
581
+ for (const decision of decisions) {
582
+ const screenName = `${decision.analyticsModule}.${decision.outcome}`;
583
+ screenOpened(decision.analyticsModule, screenName, {
584
+ decidedAfter: context.currentStep,
585
+ errorCode: ending.moduleErrorCode,
586
+ skippedModules: decision.skipped.map((index) => context.steps[index])
587
+ });
588
+ screenClosed(decision.analyticsModule, screenName);
589
+ }
590
+ },
591
+ removeSkippedPresetMembers: assign(({ context, event }) => {
592
+ const ending = event;
593
+ const removed = applyFlowPresets({
594
+ armedPresets: context.armedPresets,
595
+ steps: context.steps,
596
+ currentStepIndex: context.currentStepIndex,
597
+ ending: {
598
+ output: ending.output,
599
+ moduleErrorCode: ending.moduleErrorCode
600
+ }
601
+ });
602
+ if (removed.length === 0 || !context.flow) return {};
603
+ const kept = (_, index) => !removed.includes(index);
604
+ return {
605
+ steps: context.steps.filter(kept),
606
+ flow: {
607
+ ...context.flow,
608
+ flowModules: context.flow.flowModules.filter(kept)
609
+ }
490
610
  };
491
611
  }),
492
612
  setActivatedFlow: assign(({ context, event }) => {
@@ -539,11 +659,22 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
539
659
  }),
540
660
  setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
541
661
  prefetchNextModule: ({ context }) => {
542
- prefetchNextLazyModule(context);
662
+ prefetchNextLazyModules(context);
543
663
  },
544
664
  setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
545
665
  setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
546
666
  setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
667
+ trackFailingModuleError: ({ context, event }) => {
668
+ const { moduleErrorCode } = event;
669
+ addEvent({
670
+ code: "errorTriggered",
671
+ module: context.currentStep,
672
+ payload: moduleErrorCode === void 0 ? { advanced: false } : {
673
+ errorCode: moduleErrorCode,
674
+ advanced: false
675
+ }
676
+ });
677
+ },
547
678
  trackAdvanceableModuleError: ({ context, event }) => {
548
679
  addEvent({
549
680
  code: "errorTriggered",
@@ -557,7 +688,9 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
557
688
  },
558
689
  guards: {
559
690
  isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
560
- isAdvanceableModuleErrorOnLastStep: ({ context, event }) => isAdvanceableError(event.moduleErrorCode) && context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
691
+ isEarlySearchCompletion: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && event.fromChild !== true,
692
+ isAdvanceableSearchError: ({ context, event }) => endsOnlyThroughItsMachine(context.currentStep) && isAdvanceableError(event.moduleErrorCode),
693
+ isMisconfiguredFlow: ({ event }) => "output" in event && event.output.arming.status === "misconfigured",
561
694
  isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
562
695
  canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
563
696
  isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
@@ -567,17 +700,18 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
567
700
  activatesBeforeFirstModule: ({ context, event }) => {
568
701
  if (!("output" in event)) return false;
569
702
  if (!context.deferActivation || context.activationResolved) return false;
570
- const flow = event.output;
703
+ const { flow } = event.output;
571
704
  const firstModuleKey = flow.flowModules?.[0]?.key;
572
705
  if (!firstModuleKey || firstModuleKey === "REDIRECT_TO_MOBILE") return false;
573
- if (!(context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null)) return false;
706
+ if (!canResolveModule(context, firstModuleKey)) return false;
574
707
  return !homeScreenEnabled(context, flow);
575
708
  },
576
709
  hasModule: ({ context, event }) => {
577
710
  if (!("output" in event)) return false;
578
- const firstModuleKey = event.output.flowModules?.[0]?.key;
711
+ const { flow } = event.output;
712
+ const firstModuleKey = flow.flowModules?.[0]?.key;
579
713
  if (!firstModuleKey) return false;
580
- return context.registeredModules[firstModuleKey] != null || context.lazyRegisteredModules[firstModuleKey] != null;
714
+ return canResolveModule(context, firstModuleKey);
581
715
  },
582
716
  hasCurrentModuleMachine: ({ event }) => {
583
717
  if (!("output" in event)) return false;
@@ -600,22 +734,31 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
600
734
  invoke: {
601
735
  id: "fetchFlow",
602
736
  src: "fetchFlow",
603
- input: ({ context }) => ({ getFlow: context.getFlow }),
737
+ input: ({ context }) => ({
738
+ getFlow: context.getFlow,
739
+ canResolve: (key) => canResolveModule(context, key)
740
+ }),
604
741
  onDone: [
742
+ {
743
+ target: "error",
744
+ guard: "isMisconfiguredFlow",
745
+ actions: ["setMisconfiguredFlowError", "reportMisconfiguredFlow"]
746
+ },
605
747
  {
606
748
  target: "resolvingActivation",
607
749
  guard: "activatesBeforeFirstModule",
608
- actions: "setFlowData"
750
+ actions: ["setFlowData", "reportArmedPresets"]
609
751
  },
610
752
  {
611
753
  target: "resolvingModule",
612
754
  guard: "hasModule",
613
- actions: "setFlowData"
755
+ actions: ["setFlowData", "reportArmedPresets"]
614
756
  },
615
757
  {
616
758
  target: "error",
617
759
  actions: assign({ error: ({ event }) => {
618
- const firstModuleKey = event.output.flowModules?.[0]?.key;
760
+ const { flow } = event.output;
761
+ const firstModuleKey = flow.flowModules?.[0]?.key;
619
762
  return firstModuleKey ? `No registered module found for: ${firstModuleKey}` : "No registered module found: flow has no modules";
620
763
  } })
621
764
  }
@@ -724,13 +867,6 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
724
867
  config: context.config
725
868
  };
726
869
  },
727
- onDone: [{
728
- target: "completing",
729
- guard: "isLastStep"
730
- }, {
731
- target: "resolvingModule",
732
- actions: "incrementStep"
733
- }],
734
870
  onError: {
735
871
  target: "error",
736
872
  actions: "setError"
@@ -738,40 +874,42 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
738
874
  },
739
875
  on: {
740
876
  MODULE_COMPLETE: [
877
+ { guard: "isEarlySearchCompletion" },
741
878
  {
742
879
  target: "resolvingHandoffCompletion",
743
880
  guard: "isOnboardingFinishedSignal"
744
881
  },
745
882
  {
746
- target: "completing",
747
- guard: "isLastStep"
748
- },
749
- {
750
- target: "resolvingModule",
751
- actions: ["persistSkipFaceMatch", "incrementStep"]
883
+ target: "advancing",
884
+ actions: [
885
+ "persistSkipFaceMatch",
886
+ "reportPresetDecisions",
887
+ "removeSkippedPresetMembers"
888
+ ]
752
889
  }
753
890
  ],
754
891
  MODULE_ERROR: [
755
- {
756
- guard: "isAdvanceableModuleErrorOnLastStep",
757
- target: "completing",
758
- actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
759
- },
892
+ { guard: "isAdvanceableSearchError" },
760
893
  {
761
894
  guard: "isAdvanceableModuleError",
762
- target: "resolvingModule",
895
+ target: "advancing",
763
896
  actions: [
764
897
  "setModuleErrorCode",
765
898
  "trackAdvanceableModuleError",
766
- "incrementStep"
899
+ "reportPresetDecisions",
900
+ "removeSkippedPresetMembers"
767
901
  ]
768
902
  },
769
903
  {
770
904
  target: "error",
771
- actions: ["setModuleErrorCode", assign(({ event }) => {
772
- const rawError = event.error;
773
- return { error: rawError === void 0 ? void 0 : String(rawError) };
774
- })]
905
+ actions: [
906
+ "setModuleErrorCode",
907
+ "trackFailingModuleError",
908
+ assign(({ event }) => {
909
+ const rawError = event.error;
910
+ return { error: rawError === void 0 ? void 0 : String(rawError) };
911
+ })
912
+ ]
775
913
  }
776
914
  ],
777
915
  COMPLETE_FLOW: { target: "completing" },
@@ -785,6 +923,13 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
785
923
  }
786
924
  }
787
925
  },
926
+ advancing: { always: [{
927
+ target: "completing",
928
+ guard: "isLastStep"
929
+ }, {
930
+ target: "resolvingModule",
931
+ actions: "incrementStep"
932
+ }] },
788
933
  resolvingHandoffCompletion: {
789
934
  entry: assign({ completedOnMobile: true }),
790
935
  after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
@@ -858,7 +1003,8 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
858
1003
  presentation: {
859
1004
  isAwaitingReady: awaitingOrchestrator,
860
1005
  lazyModuleKey,
861
- shouldPrefetchHome
1006
+ shouldPrefetchHome,
1007
+ prefetchModuleKeys: lazyModuleKey === void 0 ? [] : getStepsThatMayRunNext(snapshot.context)
862
1008
  }
863
1009
  };
864
1010
  }
@@ -866,7 +1012,7 @@ function getMappedStatus(snapshot) {
866
1012
  const { value } = snapshot;
867
1013
  if (value === "idle") return "idle";
868
1014
  if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
869
- if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
1015
+ if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || value === "advancing" || typeof value === "object") return "loading";
870
1016
  if (value === "finished") return "finished";
871
1017
  if (value === "error") return "error";
872
1018
  return "ready";
@@ -963,7 +1109,7 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
963
1109
  function getCanNext() {
964
1110
  const snapshot = getSnapshot();
965
1111
  const { currentStepIndex, steps } = snapshot.context;
966
- return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1;
1112
+ return snapshot.value === "runningModule" && currentStepIndex >= 0 && currentStepIndex < steps.length - 1 && !endsOnlyThroughItsMachine(snapshot.context.currentStep);
967
1113
  }
968
1114
  function getModuleConfig(moduleKey) {
969
1115
  const snapshot = getSnapshot();
@@ -1061,8 +1207,18 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
1061
1207
  * Prefer using the typed methods (completeModule, errorModule) when possible.
1062
1208
  */
1063
1209
  send(event) {
1210
+ if ("fromChild" in event) {
1211
+ const { fromChild: _fromChild, ...rest } = event;
1212
+ actor.send(rest);
1213
+ return;
1214
+ }
1064
1215
  actor.send(event);
1065
1216
  },
1217
+ /**
1218
+ * True while a step runs that `completeModule()` would move past to
1219
+ * another step. False on the last step, and on a step only its own machine
1220
+ * can end, such as the identity search.
1221
+ */
1066
1222
  get canNext() {
1067
1223
  return getCanNext();
1068
1224
  },
@@ -1128,4 +1284,4 @@ function createOrchestratedFlowManager(options) {
1128
1284
  }), { getInterviewId: options.getInterviewId });
1129
1285
  }
1130
1286
  //#endregion
1131
- export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
1287
+ export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFirstFlowModuleKey, getFlow, getNextRequiredWasmPipelines, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
@@ -1,5 +1,5 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-Bmwy1Fa7.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-BDuL1wTs.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}` : ""}`;