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

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 (239) hide show
  1. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  2. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  3. package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
  4. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  5. package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
  6. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  7. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  8. package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
  9. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
  12. package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
  13. package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
  14. package/dist/ae-signature.esm.js +1 -1
  15. package/dist/antifraud.esm.js +2 -2
  16. package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
  17. package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
  18. package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
  19. package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
  20. package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
  24. package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
  25. package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
  26. package/dist/avatar.d.ts +1 -1
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
  29. package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
  30. package/dist/camera.d.ts +2 -2
  31. package/dist/camera.esm.js +1 -1
  32. package/dist/certificate-issuance.esm.js +2 -2
  33. package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
  34. package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
  35. package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
  36. package/dist/consent.d.ts +1 -1
  37. package/dist/consent.esm.js +2 -2
  38. package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
  39. package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
  40. package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
  41. package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
  42. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
  48. package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
  55. package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
  56. package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
  57. package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
  61. package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
  62. package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
  63. package/dist/dynamic-forms.esm.js +2 -2
  64. package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
  65. package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
  66. package/dist/ekyb.d.ts +4 -4
  67. package/dist/ekyb.esm.js +3 -3
  68. package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  69. package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
  70. package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
  71. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  72. package/dist/ekyc-prefill.d.ts +17 -0
  73. package/dist/ekyc-prefill.esm.js +3 -0
  74. package/dist/ekyc.d.ts +3 -2
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
  77. package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
  78. package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
  79. package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
  80. package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
  81. package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
  82. package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
  83. package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
  84. package/dist/electronic-signature.esm.js +1 -1
  85. package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
  86. package/dist/email.esm.js +2 -2
  87. package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
  88. package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
  89. package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
  90. package/dist/events.esm.js +1 -1
  91. package/dist/extensibility.d.ts +20 -18
  92. package/dist/extensibility.esm.js +37 -35
  93. package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
  94. package/dist/face-match.d.ts +1 -1
  95. package/dist/face-match.esm.js +2 -2
  96. package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
  97. package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
  98. package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
  99. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
  100. package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
  101. package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
  102. package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
  103. package/dist/feature-management.esm.js +1 -1
  104. package/dist/field-comparison.esm.js +1 -1
  105. package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
  106. package/dist/fiscal-qr.esm.js +1 -1
  107. package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
  108. package/dist/flow-events.d.ts +1 -1
  109. package/dist/flow.d.ts +33 -18
  110. package/dist/flow.esm.js +82 -17
  111. package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
  112. package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
  113. package/dist/geolocation.esm.js +2 -2
  114. package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
  115. package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
  116. package/dist/government-validation.esm.js +2 -2
  117. package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
  118. package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
  119. package/dist/home.d.ts +1 -1
  120. package/dist/home.esm.js +1 -1
  121. package/dist/http.esm.js +1 -1
  122. package/dist/id-ocr.d.ts +2 -2
  123. package/dist/id-ocr.esm.js +3 -19
  124. package/dist/id-selfie-flow.d.ts +3 -3
  125. package/dist/id-selfie-flow.esm.js +10 -9
  126. package/dist/id-verification.esm.js +2 -2
  127. package/dist/id.d.ts +4 -4
  128. package/dist/id.esm.js +4 -4
  129. package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
  130. package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
  131. package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
  132. package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
  133. package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
  134. package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
  135. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
  136. package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
  137. package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
  138. package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
  139. package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
  140. package/dist/identity-reuse.esm.js +2 -2
  141. package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
  142. package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
  143. package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
  144. package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
  145. package/dist/index.d.ts +1 -1
  146. package/dist/index.esm.js +1 -1
  147. package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
  148. package/dist/kyb-checks.d.ts +3 -0
  149. package/dist/kyb-checks.esm.js +3 -0
  150. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  151. package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
  152. package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
  153. package/dist/mandatory-consent.d.ts +2 -2
  154. package/dist/mandatory-consent.esm.js +2 -2
  155. package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
  156. package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
  157. package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
  158. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  159. package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
  160. package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
  161. package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
  162. package/dist/phone.esm.js +2 -2
  163. package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
  164. package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
  165. package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
  166. package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
  167. package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
  168. package/dist/qe-signature.esm.js +1 -1
  169. package/dist/recordingService-BVSCo0ac.esm.js +397 -0
  170. package/dist/redirect-to-mobile.esm.js +2 -2
  171. package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
  172. package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
  173. package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
  174. package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
  175. package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
  176. package/dist/selfie.d.ts +4 -4
  177. package/dist/selfie.esm.js +10 -10
  178. package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
  179. package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
  180. package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
  181. package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
  182. package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
  183. package/dist/session.d.ts +2 -2
  184. package/dist/session.esm.js +6 -6
  185. package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
  186. package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
  187. package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
  188. package/dist/signature.esm.js +2 -2
  189. package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
  190. package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
  191. package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/step-up.d.ts +378 -0
  194. package/dist/step-up.esm.js +639 -0
  195. package/dist/textRules-D4NRinKY.d.ts +41 -0
  196. package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
  197. package/dist/tri.d.ts +2 -2
  198. package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
  199. package/dist/tri.esm.js +2 -2
  200. package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
  201. package/dist/trust-graph.esm.js +1 -1
  202. package/dist/types-B-PIc0en.d.ts +115 -0
  203. package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
  204. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  205. package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
  206. package/dist/types-CTaL0XJz.d.ts +80 -0
  207. package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
  208. package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
  209. package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
  210. package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
  211. package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
  212. package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
  213. package/dist/types-kLsU6Jkt.d.ts +6 -0
  214. package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
  215. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  216. package/dist/video-selfie.d.ts +5 -4
  217. package/dist/video-selfie.esm.js +9 -7
  218. package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
  219. package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
  220. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  221. package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
  222. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  223. package/dist/wasm.d.ts +9 -3
  224. package/dist/wasm.esm.js +3 -3
  225. package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
  226. package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
  227. package/dist/watchlist-for-business.esm.js +2 -2
  228. package/dist/watchlist.esm.js +2 -2
  229. package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
  230. package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
  231. package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
  232. package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
  233. package/dist/workflow.d.ts +226 -41
  234. package/dist/workflow.esm.js +163 -67
  235. package/package.json +21 -5
  236. package/dist/addressSearch-41sMcnJk.esm.js +0 -604
  237. package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
  238. package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
  239. package/dist/types-D9r3zRfY.d.ts +0 -6
@@ -1,5 +1,5 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
3
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  //#region src/modules/field-comparison/fieldComparisonServices.ts
@@ -1,2 +1,2 @@
1
- import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-Be-r4oZj.esm.js";
1
+ import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-ji0qDaTW.esm.js";
2
2
  export { createFiscalQrManager, createFiscalQrManagerFromActor, fiscalQrMachine };
@@ -1,10 +1,10 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-CQteqXfy.esm.js";
2
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-C7h7oaTE.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.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, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  import { a as stopCameraStream } from "./camera-E_Kcre4O.esm.js";
7
- import { t as getBackCameraStream } from "./backCameraStream-C5_NNfUN.esm.js";
7
+ import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
9
9
  import "./http.esm.js";
10
10
  //#region src/modules/fiscal-qr/fiscalQrConstants.ts
@@ -1,2 +1,2 @@
1
- import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-DMDAk85K.js";
1
+ import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-CSPOoqah.js";
2
2
  export type { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
package/dist/flow.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { c as WasmPipeline } from "./warmup-BO57syF6.js";
1
+ import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
2
2
  import { A as StateMachine, _ as MachineContext, c as AnyEventObject, l as AnyStateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
3
3
  import { t as Manager } from "./Manager-C9T5amUN.js";
4
4
  import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
5
- import { t as EkycConfig } from "./types-B2FK_wYb.js";
6
- import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DuD8TRJU.js";
7
- import { t as AuthenticationConfig } from "./types-D9r3zRfY.js";
8
- import { r as DocumentCaptureConfig } from "./types-ZTZelfbM.js";
5
+ import { t as EkycConfig } from "./types-DEa3taWc.js";
6
+ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-TisHEbBg.js";
7
+ import { t as AuthenticationConfig } from "./types-kLsU6Jkt.js";
8
+ import { r as DocumentCaptureConfig } from "./types-CyNndVAT.js";
9
9
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
10
- import { t as EkybConfig } from "./types-C397LhmN.js";
11
- import { u as IdCaptureConfig } from "./types-xEEWCx1j.js";
12
- import { r as MandatoryConsentConfig } from "./types-PTZHRhGX.js";
13
- import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
10
+ import { t as EkybConfig } from "./types-BgRHw-dR.js";
11
+ import { u as IdCaptureConfig } from "./types-BqlZSoZ-.js";
12
+ import { r as MandatoryConsentConfig } from "./types-P9LzsfRo.js";
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";
16
- import { o as FlowEventSubscribable } from "./index-DMDAk85K.js";
16
+ import { o as FlowEventSubscribable } from "./index-CSPOoqah.js";
17
17
  import { n as ModuleRegistry } from "./types-BQA7lRDV.js";
18
18
  //#region src/modules/flow/orchestratedFlowStateMachine.d.ts
19
19
  type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
@@ -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;
@@ -100,6 +113,8 @@ type OrchestratedFlowReadyState = {
100
113
  type OrchestratedFlowFinishedState = {
101
114
  status: 'finished';
102
115
  flow: Flow;
116
+ /** The originating browser observed completion on the linked mobile device. */
117
+ completedOnMobile?: boolean;
103
118
  finishStatus: {
104
119
  redirectionUrl: string;
105
120
  action: 'approved' | 'rejected' | 'none';
@@ -128,6 +143,11 @@ type CreateOrchestratedFlowActorOptions = {
128
143
  deferActivation?: OrchestratedFlowInput['deferActivation'];
129
144
  /** A getter: the manager can exist before the session that owns the ID. */
130
145
  getInterviewId?: () => string | undefined;
146
+ /**
147
+ * Partial config per module key, merged over the dashboard config of each
148
+ * module when the flow loads. Values the flow sets at runtime still win.
149
+ */
150
+ modulesConfig?: FlowModulesConfig;
131
151
  };
132
152
  declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowActorOptions): Manager<OrchestratedFlowState> & {
133
153
  /**
@@ -249,12 +269,6 @@ declare function getNextRequiredWasmPipelines(state: Pick<OrchestratedFlowReadyS
249
269
  */
250
270
  declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
251
271
  //#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
272
  //#region src/modules/flow/flowServices.d.ts
259
273
  type GetFlowOptions = {
260
274
  isDesktop?: boolean;
@@ -420,8 +434,9 @@ declare function createFlowManager(options?: CreateFlowActorOptions): Manager<Fl
420
434
  readonly canPrev: boolean;
421
435
  /**
422
436
  * Gets the configuration for a specific module by its key.
437
+ * Returns the active occurrence when the current step has that key.
423
438
  * Useful for accessing config of modules other than the current one.
424
- * @param moduleKey - The unique key identifier of the module
439
+ * @param moduleKey - The module key
425
440
  * @returns The module configuration or `undefined` if not found or not in `ready` state
426
441
  */
427
442
  getModuleConfig: <T = unknown>(moduleKey: string) => T | undefined;
@@ -447,4 +462,4 @@ interface ModuleLoader {
447
462
  }
448
463
  declare function createModuleLoader(registry: ModuleLoaderRegistry): ModuleLoader;
449
464
  //#endregion
450
- 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 };
465
+ 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
- import { y as addEvent } from "./events-CQteqXfy.esm.js";
2
- import { i as retryAfterReconnect } from "./connectivity-HSl0diCx.esm.js";
3
- import { D as mergeDashboardConfig, a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-g2tVWsJl.esm.js";
1
+ import { y as addEvent } from "./events-C7h7oaTE.esm.js";
2
+ 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
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-ChMU2v79.esm.js";
7
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DPHTqSdF.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
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({
@@ -13,6 +13,37 @@ const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
13
13
  states: { finished: { type: "final" } }
14
14
  }))();
15
15
  //#endregion
16
+ //#region src/modules/flow/flowOcrSteps.ts
17
+ /** Prepare the standard two-ID journey without changing standalone dashboard configuration. */
18
+ function prepareFlowOcrSteps(flow) {
19
+ const modules = flow.flowModules;
20
+ const firstIds = modules.filter((module) => module.key === "ID" || module.key === "TUTORIAL_ID");
21
+ const secondIds = modules.filter((module) => module.key === "SECOND_ID");
22
+ const reviews = modules.filter((module) => module.key === "ID_OCR");
23
+ if (firstIds.length !== 1 || secondIds.length !== 1 || reviews.length !== 1) return flow;
24
+ const [first] = firstIds;
25
+ const [second] = secondIds;
26
+ const [review] = reviews;
27
+ if (review.configuration.ocrDocument !== void 0 || modules.indexOf(first) >= modules.indexOf(second) || modules.indexOf(review) < modules.indexOf(first)) return flow;
28
+ const reviewFor = (ocrDocument) => ({
29
+ ...review,
30
+ configuration: {
31
+ ...review.configuration,
32
+ ocrDocument,
33
+ secondId: false
34
+ }
35
+ });
36
+ return {
37
+ ...flow,
38
+ flowModules: modules.flatMap((module) => {
39
+ if (module === review) return [];
40
+ if (module === first) return [module, reviewFor("first")];
41
+ if (module === second && review.configuration.secondId !== false) return [module, reviewFor("second")];
42
+ return [module];
43
+ })
44
+ };
45
+ }
46
+ //#endregion
16
47
  //#region src/modules/flow/flowStateMachine.ts
17
48
  /**
18
49
  * Flow-level `ds` (Deepsight) lives on the flow, not on the module, so it has
@@ -47,7 +78,7 @@ const flowMachine = /* @__PURE__ */ (() => setup({
47
78
  getFlow: context.getFlow
48
79
  })),
49
80
  setFlowData: assign(({ event }) => {
50
- const flow = event.output;
81
+ const flow = prepareFlowOcrSteps(event.output);
51
82
  return {
52
83
  flow,
53
84
  steps: (flow.flowModules ?? []).map((m) => m.key),
@@ -190,7 +221,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
190
221
  function getModuleConfig(moduleKey) {
191
222
  const snapshot = getSnapshot();
192
223
  if (!snapshot.matches("ready")) return;
193
- return (snapshot.context.flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
224
+ const { flow, currentStepIndex } = snapshot.context;
225
+ const activeModule = flow?.flowModules[currentStepIndex];
226
+ return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
194
227
  }
195
228
  function isModuleEnabled(moduleKey) {
196
229
  const snapshot = getSnapshot();
@@ -255,8 +288,9 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
255
288
  },
256
289
  /**
257
290
  * Gets the configuration for a specific module by its key.
291
+ * Returns the active occurrence when the current step has that key.
258
292
  * Useful for accessing config of modules other than the current one.
259
- * @param moduleKey - The unique key identifier of the module
293
+ * @param moduleKey - The module key
260
294
  * @returns The module configuration or `undefined` if not found or not in `ready` state
261
295
  */
262
296
  getModuleConfig,
@@ -363,6 +397,7 @@ function createBaseContext(context, isHomeContinueLoading) {
363
397
  getFinishStatus: context.getFinishStatus,
364
398
  enableHome: context.enableHome,
365
399
  finishStatus: void 0,
400
+ completedOnMobile: false,
366
401
  isHomeContinueLoading,
367
402
  deferActivation: context.deferActivation,
368
403
  activationResolved: false,
@@ -412,7 +447,12 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
412
447
  input: {}
413
448
  },
414
449
  actors: {
415
- fetchFlow: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFlow(signal), signal)),
450
+ resolveHandoffCompletion: fromPromise(({ signal }) => getHandoffFinishStatus(signal)),
451
+ fetchFlow: fromPromise(async ({ input, signal }) => {
452
+ const flow = await retryAfterReconnect(() => input.getFlow(signal), signal);
453
+ await loadFlowConfigConverters(flow);
454
+ return flow;
455
+ }),
416
456
  notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
417
457
  runChildModule,
418
458
  resolveActivation: fromPromise(async ({ input, signal }) => {
@@ -436,7 +476,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
436
476
  setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
437
477
  clearHomeContinueLoading: assign({ isHomeContinueLoading: false }),
438
478
  setFlowData: assign(({ event }) => {
439
- const flow = event.output;
479
+ const flow = prepareFlowOcrSteps(event.output);
440
480
  const flowModules = flow.flowModules ?? [];
441
481
  const firstModule = flowModules[0];
442
482
  const config = getModuleConfig(firstModule, flow);
@@ -450,7 +490,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
450
490
  };
451
491
  }),
452
492
  setActivatedFlow: assign(({ context, event }) => {
453
- const flow = event.output;
493
+ const flow = prepareFlowOcrSteps(event.output);
454
494
  const flowModules = flow.flowModules ?? [];
455
495
  const steps = flowModules.map((m) => m.key);
456
496
  let insertedAt = steps.findIndex((key, i) => key !== context.steps[i]);
@@ -520,6 +560,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
520
560
  isAdvanceableModuleErrorOnLastStep: ({ context, event }) => isAdvanceableError(event.moduleErrorCode) && context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
521
561
  isLastStep: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex === context.steps.length - 1,
522
562
  canGoNext: ({ context }) => context.currentStepIndex >= 0 && context.currentStepIndex < context.steps.length - 1,
563
+ isRedirectToMobileStep: ({ context }) => context.currentStep === "REDIRECT_TO_MOBILE",
523
564
  isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
524
565
  shouldEnterHome: ({ context }) => shouldEnterHome(context),
525
566
  needsActivation: ({ context }) => context.deferActivation && !context.activationResolved && context.currentStep !== "REDIRECT_TO_MOBILE",
@@ -698,7 +739,7 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
698
739
  on: {
699
740
  MODULE_COMPLETE: [
700
741
  {
701
- target: "finished",
742
+ target: "resolvingHandoffCompletion",
702
743
  guard: "isOnboardingFinishedSignal"
703
744
  },
704
745
  {
@@ -734,13 +775,32 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
734
775
  }
735
776
  ],
736
777
  COMPLETE_FLOW: { target: "completing" },
737
- FINISH_FLOW: { target: "finished" },
778
+ FINISH_FLOW: [{
779
+ guard: "isRedirectToMobileStep",
780
+ target: "resolvingHandoffCompletion"
781
+ }, { target: "finished" }],
738
782
  RESET: {
739
783
  target: "idle",
740
784
  actions: "resetContext"
741
785
  }
742
786
  }
743
787
  },
788
+ resolvingHandoffCompletion: {
789
+ entry: assign({ completedOnMobile: true }),
790
+ after: { [HANDOFF_COMPLETION_TIMEOUT_MS]: "finished" },
791
+ invoke: {
792
+ src: "resolveHandoffCompletion",
793
+ onDone: {
794
+ target: "finished",
795
+ actions: "setFinishStatus"
796
+ },
797
+ onError: { target: "finished" }
798
+ },
799
+ on: { RESET: {
800
+ target: "idle",
801
+ actions: "resetContext"
802
+ } }
803
+ },
744
804
  completing: {
745
805
  invoke: {
746
806
  id: "notifyBackend",
@@ -781,7 +841,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
781
841
  const effectiveEnableHome = enableHome === true && serverDisablesLaunch === false;
782
842
  const isTerminal = mappedStatus === "finished" || mappedStatus === "error";
783
843
  const awaitingOrchestrator = mappedStatus === "idle" || mappedStatus === "loading";
784
- const isCompletingPhase = snapshot.value === "completing";
844
+ const isCompletingPhase = mappedStatus === "completing";
785
845
  const firstRealIndex = snapshot.context.steps[0] === "REDIRECT_TO_MOBILE" ? 1 : 0;
786
846
  const isAtFirstRealModule = snapshot.context.currentStepIndex === firstRealIndex;
787
847
  const isResolvingHomeAnchor = (snapshot.value === "resolvingModule" || snapshot.value === "resolvingActivation") && effectiveEnableHome && isAtFirstRealModule;
@@ -805,7 +865,7 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
805
865
  function getMappedStatus(snapshot) {
806
866
  const { value } = snapshot;
807
867
  if (value === "idle") return "idle";
808
- if (value === "completing") return "completing";
868
+ if (value === "completing" || value === "resolvingHandoffCompletion") return "completing";
809
869
  if (value === "loading" || value === "resolvingModule" || value === "resolvingActivation" || typeof value === "object") return "loading";
810
870
  if (value === "finished") return "finished";
811
871
  if (value === "error") return "error";
@@ -833,6 +893,7 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
833
893
  if (mappedStatus === "finished") return {
834
894
  status: "finished",
835
895
  flow: context.flow ?? {},
896
+ ...context.completedOnMobile ? { completedOnMobile: true } : {},
836
897
  finishStatus: context.finishStatus ?? {
837
898
  redirectionUrl: "",
838
899
  action: "none",
@@ -907,7 +968,9 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
907
968
  function getModuleConfig(moduleKey) {
908
969
  const snapshot = getSnapshot();
909
970
  if (snapshot.value !== "runningModule") return;
910
- return (snapshot.context.flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
971
+ const { flow, currentStepIndex } = snapshot.context;
972
+ const activeModule = flow?.flowModules[currentStepIndex];
973
+ return (activeModule?.key === moduleKey ? activeModule : flow?.flowModules.find((m) => m.key === moduleKey))?.configuration;
911
974
  }
912
975
  function isModuleEnabled(moduleKey) {
913
976
  const snapshot = getSnapshot();
@@ -1043,8 +1106,10 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
1043
1106
  };
1044
1107
  }
1045
1108
  function createOrchestratedFlowActor(options) {
1109
+ const getFlow$1 = options.getFlow ?? getFlow;
1110
+ const { modulesConfig } = options;
1046
1111
  return createActor(orchestratedFlowMachine, { input: {
1047
- getFlow: options.getFlow ?? getFlow,
1112
+ getFlow: modulesConfig ? async (signal) => applyModulesConfig(await getFlow$1(signal), modulesConfig) : getFlow$1,
1048
1113
  modules: options.modules,
1049
1114
  lazyModules: options.lazyModules,
1050
1115
  getFinishStatus: options.getFinishStatus,
@@ -1,5 +1,5 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-CfuIvnUy.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-Bmwy1Fa7.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}` : ""}`;
@@ -13,6 +13,27 @@ const getFinishStatus = async (flowId, signal) => {
13
13
  toIncodeApiError(endpoints.finishStatus, error);
14
14
  }
15
15
  };
16
+ const HANDOFF_COMPLETION_TIMEOUT_MS = 1e4;
17
+ /** Mobile already finished the session; read its redirect without finishing again. */
18
+ async function getHandoffFinishStatus(signal) {
19
+ try {
20
+ const data = (await api.get(endpoints.redirectionUrl, {
21
+ signal,
22
+ timeout: HANDOFF_COMPLETION_TIMEOUT_MS
23
+ })).data;
24
+ let redirectionUrl = "";
25
+ if (typeof data === "object" && data !== null && "redirectionUrl" in data && typeof data.redirectionUrl === "string") redirectionUrl = data.redirectionUrl;
26
+ return {
27
+ redirectionUrl,
28
+ action: "none",
29
+ scoreStatus: "UNKNOWN",
30
+ endScreenTitle: null,
31
+ endScreenText: null
32
+ };
33
+ } catch (error) {
34
+ toIncodeApiError(endpoints.redirectionUrl, error);
35
+ }
36
+ }
16
37
  const SCORE_VARIANTS = {
17
38
  OK: "success",
18
39
  WARN: "success",
@@ -36,4 +57,4 @@ async function getTotalScoreStatus(signal) {
36
57
  }
37
58
  }
38
59
  //#endregion
39
- export { getFinishStatus as n, getTotalScoreStatus as r, classifyScoreStatus as t };
60
+ export { getTotalScoreStatus as a, getHandoffFinishStatus as i, classifyScoreStatus as n, getFinishStatus as r, HANDOFF_COMPLETION_TIMEOUT_MS as t };