@incodetech/core 2.4.0 → 2.4.1-agentic.1

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 (252) hide show
  1. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  2. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
  3. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
  4. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  5. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  6. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  7. package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
  8. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  9. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
  12. package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
  13. package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
  14. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  19. package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
  20. package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
  21. package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
  22. package/dist/authentication.d.ts +3 -3
  23. package/dist/authentication.esm.js +2 -2
  24. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  25. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
  26. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  29. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  30. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  31. package/dist/camera.d.ts +2 -2
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.esm.js +2 -2
  34. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  35. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
  36. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  37. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
  41. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
  42. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.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-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
  48. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  55. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
  56. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
  57. package/dist/device.esm.js +2 -2
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
  61. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
  62. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
  63. package/dist/dynamic-forms.d.ts +2 -2
  64. package/dist/dynamic-forms.esm.js +2 -2
  65. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  66. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
  67. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
  68. package/dist/ekyb.d.ts +4 -4
  69. package/dist/ekyb.esm.js +3 -3
  70. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  71. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
  72. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
  73. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  74. package/dist/ekyc.d.ts +4 -3
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  77. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
  78. package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
  79. package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
  80. package/dist/electronic-signature.esm.js +1 -1
  81. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
  82. package/dist/email.esm.js +2 -2
  83. package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  84. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
  85. package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
  86. package/dist/events.esm.js +1 -1
  87. package/dist/extensibility.d.ts +37 -22
  88. package/dist/extensibility.esm.js +36 -35
  89. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  90. package/dist/face-match.d.ts +1 -1
  91. package/dist/face-match.esm.js +2 -2
  92. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
  93. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
  94. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
  95. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  96. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  97. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
  98. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
  99. package/dist/feature-management.esm.js +1 -1
  100. package/dist/field-comparison.esm.js +1 -1
  101. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  102. package/dist/fiscal-qr.esm.js +1 -1
  103. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
  104. package/dist/flow-events.d.ts +1 -1
  105. package/dist/flow.d.ts +10 -10
  106. package/dist/flow.esm.js +10 -9
  107. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
  108. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
  109. package/dist/geolocation.d.ts +1 -1
  110. package/dist/geolocation.esm.js +2 -2
  111. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  112. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
  113. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
  114. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  115. package/dist/government-validation.esm.js +2 -2
  116. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  117. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  118. package/dist/home.d.ts +1 -1
  119. package/dist/home.esm.js +1 -1
  120. package/dist/http.esm.js +1 -1
  121. package/dist/id-ocr.d.ts +1 -1
  122. package/dist/id-ocr.esm.js +2 -2
  123. package/dist/id-selfie-flow.d.ts +1 -1
  124. package/dist/id-selfie-flow.esm.js +10 -9
  125. package/dist/id-verification.esm.js +2 -2
  126. package/dist/id.d.ts +3 -16
  127. package/dist/id.esm.js +4 -4
  128. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
  129. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
  130. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
  131. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
  132. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
  133. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  134. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  135. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
  136. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  137. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  138. package/dist/identity-reuse.esm.js +2 -2
  139. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  140. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  141. package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  142. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.esm.js +1 -1
  145. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  146. package/dist/kyb-checks.d.ts +3 -0
  147. package/dist/kyb-checks.esm.js +3 -0
  148. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  149. package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
  150. package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
  154. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
  155. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
  156. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  157. package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
  158. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  159. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
  160. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
  161. package/dist/phone-number.d.ts +7 -1
  162. package/dist/phone-number.esm.js +15 -2
  163. package/dist/phone.d.ts +1 -1
  164. package/dist/phone.esm.js +2 -2
  165. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  166. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  167. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
  168. package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
  169. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
  170. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  171. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  172. package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
  173. package/dist/qe-signature.esm.js +1 -1
  174. package/dist/recordingService-CTko6Cjn.esm.js +397 -0
  175. package/dist/redirect-to-mobile.d.ts +2 -2
  176. package/dist/redirect-to-mobile.esm.js +2 -2
  177. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
  178. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  179. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
  180. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  181. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
  182. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
  183. package/dist/selfie.d.ts +4 -4
  184. package/dist/selfie.esm.js +10 -10
  185. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
  186. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  187. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
  188. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
  189. package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
  190. package/dist/session.d.ts +96 -10
  191. package/dist/session.esm.js +7 -6
  192. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
  193. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  194. package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
  195. package/dist/signature.esm.js +2 -2
  196. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  197. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  198. package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
  199. package/dist/stats.esm.js +1 -1
  200. package/dist/textRules-D4NRinKY.d.ts +41 -0
  201. package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
  202. package/dist/tri.d.ts +1 -1
  203. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  204. package/dist/tri.esm.js +1 -1
  205. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
  206. package/dist/trust-graph.esm.js +1 -1
  207. package/dist/types-B9C8W01q.d.ts +34 -0
  208. package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
  209. package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
  210. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  211. package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
  212. package/dist/types-CTaL0XJz.d.ts +80 -0
  213. package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  214. package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
  215. package/dist/types-CuMJ2M7D.d.ts +210 -0
  216. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  217. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  218. package/dist/types-J6g6iKe_.d.ts +6 -0
  219. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  220. package/dist/video-selfie.d.ts +8 -8
  221. package/dist/video-selfie.esm.js +97 -22
  222. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
  223. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
  224. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  225. package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
  226. package/dist/wasm.d.ts +2 -2
  227. package/dist/wasm.esm.js +3 -3
  228. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
  229. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  230. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
  231. package/dist/watchlist-for-business.d.ts +2 -1
  232. package/dist/watchlist-for-business.esm.js +2 -2
  233. package/dist/watchlist.esm.js +2 -2
  234. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  235. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
  236. package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
  237. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  238. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  239. package/dist/workflow.d.ts +5 -2
  240. package/dist/workflow.esm.js +60 -50
  241. package/package.json +12 -5
  242. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  243. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  244. package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
  245. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  246. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  247. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  248. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  249. package/dist/types-BvLo3U4u.d.ts +0 -134
  250. package/dist/types-zOgZqMni.d.ts +0 -6
  251. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  252. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -1,10 +1,11 @@
1
- import { r as getWasmStatus } from "./warmup-BElYWRh7.esm.js";
2
- import { r as getToken, t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
3
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BTjYgE-V.esm.js";
4
- import { E as updateFeatureManagementUser } from "./feature-management-B5rR10uS.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-DPwFas2f.esm.js";
6
- import "./session-CpwfoVdH.esm.js";
7
- import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
1
+ import { r as getWasmStatus } from "./warmup-DtB0DJpl.esm.js";
2
+ import { r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
3
+ import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-DsL7X2j9.esm.js";
4
+ import { E as updateFeatureManagementUser } from "./feature-management-BbCIA4og.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-DH-CH4Nz.esm.js";
6
+ import "./session-CdSX4wsZ.esm.js";
7
+ import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
8
+ import { a as prefetchStartInfo } from "./phoneServices-DJgyOzU2.esm.js";
8
9
  //#region src/modules/flow/dashboardConfig.ts
9
10
  function isPlainObject(value) {
10
11
  if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
@@ -22,174 +23,6 @@ function mergeDashboardConfig(dashboardConfig, localConfig) {
22
23
  return result;
23
24
  }
24
25
  //#endregion
25
- //#region src/modules/ekyb/ekybConstants.ts
26
- /**
27
- * Countries available in all environments.
28
- * Sorted alphabetically by display name.
29
- */
30
- const SUPPORTED_COUNTRIES = [
31
- "BR",
32
- "CN",
33
- "FR",
34
- "DE",
35
- "IL",
36
- "IT",
37
- "MX",
38
- "ES",
39
- "GB",
40
- "US"
41
- ];
42
- /**
43
- * Additional countries available only in dev/staging environments.
44
- */
45
- const DEV_ONLY_COUNTRIES = [
46
- "CM",
47
- "KE",
48
- "NG"
49
- ];
50
- /**
51
- * Union of all recognized country codes (prod + dev).
52
- */
53
- const ALL_COUNTRIES = [...SUPPORTED_COUNTRIES, ...DEV_ONLY_COUNTRIES];
54
- const ALL_COUNTRIES_SET = new Set(ALL_COUNTRIES);
55
- function isSupportedCountry(code) {
56
- return ALL_COUNTRIES_SET.has(code);
57
- }
58
- const FIELD_ORDER = [
59
- "name-user_input",
60
- "taxId-user_input",
61
- "street-user_input",
62
- "houseNo-user_input",
63
- "address2-user_input",
64
- "city-user_input",
65
- "state-user_input",
66
- "postalCode-user_input"
67
- ];
68
- const FIELD_NAME_MAPPING = {
69
- "name-user_input": "businessName",
70
- "street-user_input": "street",
71
- "houseNo-user_input": "houseNo",
72
- "address2-user_input": "addressLine2",
73
- "city-user_input": "city",
74
- "state-user_input": "state",
75
- "postalCode-user_input": "postalCode",
76
- "taxId-user_input": "taxId"
77
- };
78
- const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
79
- const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
80
- const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
81
- "BR",
82
- "GB",
83
- "FR"
84
- ];
85
- const ADDRESS_FIELDS = [
86
- "street",
87
- "houseNo",
88
- "addressLine2",
89
- "city",
90
- "state",
91
- "postalCode"
92
- ];
93
- const ALL_COUNTRIES_OPTIONAL_FIELDS = ["ubo"];
94
- const UBO_FIELD_LABELS = {
95
- name: "ekyb.uboName",
96
- surname: "ekyb.uboSurname"
97
- };
98
- const INVALID_CNPJ_PATTERNS = [
99
- "00000000000000",
100
- "11111111111111",
101
- "22222222222222",
102
- "33333333333333",
103
- "44444444444444",
104
- "55555555555555",
105
- "66666666666666",
106
- "77777777777777",
107
- "88888888888888",
108
- "99999999999999"
109
- ];
110
- const CNPJ_FIRST_DIGIT_FACTORS = [
111
- 5,
112
- 4,
113
- 3,
114
- 2,
115
- 9,
116
- 8,
117
- 7,
118
- 6,
119
- 5,
120
- 4,
121
- 3,
122
- 2
123
- ];
124
- const CNPJ_SECOND_DIGIT_FACTORS = [
125
- 6,
126
- 5,
127
- 4,
128
- 3,
129
- 2,
130
- 9,
131
- 8,
132
- 7,
133
- 6,
134
- 5,
135
- 4,
136
- 3,
137
- 2
138
- ];
139
- //#endregion
140
- //#region src/modules/ekyb/ekybUtils.ts
141
- /**
142
- * Normalizes any supported eKYB config input into a manager-ready `EkybConfig`.
143
- *
144
- * Accepts either:
145
- * - A manager-ready `EkybConfig` (with `flowId` or `verificationFields`) →
146
- * returned unchanged.
147
- * - A raw backend `EkybFlowConfig` (with `*Source` companions) → stripped to
148
- * the four `check*` fields the manager consumes.
149
- *
150
- * Idempotent: `toEkybConfig(toEkybConfig(x))` equals `toEkybConfig(x)`.
151
- */
152
- function toEkybConfig(config) {
153
- if (config.flowId || config.verificationFields) return config;
154
- return {
155
- checkBusinessName: config.checkBusinessName,
156
- checkAddress: config.checkAddress,
157
- checkTaxId: config.checkTaxId,
158
- checkUniqueBeneficialOwner: config.checkUniqueBeneficialOwner
159
- };
160
- }
161
- /** Sorts modules based on a custom order; items not in order maintain relative position */
162
- function sortModulesByOrder(modules, customOrder) {
163
- return [...modules].sort((a, b) => {
164
- const indexA = customOrder.indexOf(a);
165
- const indexB = customOrder.indexOf(b);
166
- if (indexA !== -1 && indexB !== -1) return indexA - indexB;
167
- if (indexA !== -1) return -1;
168
- if (indexB !== -1) return 1;
169
- return 0;
170
- });
171
- }
172
- /** Determines if a field is optional for the given country */
173
- function isFieldOptional(fieldName, countryCode) {
174
- if (ALL_COUNTRIES_OPTIONAL_FIELDS.includes(fieldName)) return true;
175
- if (fieldName === "businessName") return BUSINESS_NAME_OPTIONAL_COUNTRIES.includes(countryCode);
176
- if (fieldName === "addressLine2") return true;
177
- if (ADDRESS_FIELDS.includes(fieldName)) return false;
178
- if (fieldName === "taxId") return false;
179
- return false;
180
- }
181
- /** Checks if at least one address field has a non-empty value */
182
- function hasAtLeastOneAddressField(formData) {
183
- return ADDRESS_FIELDS.some((field) => {
184
- const value = formData[field];
185
- return value !== void 0 && value.trim() !== "";
186
- });
187
- }
188
- /** Returns false for countries where address is fully optional */
189
- function requiresAddressValidation(countryCode) {
190
- return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
191
- }
192
- //#endregion
193
26
  //#region src/modules/video-selfie/videoSelfieSteps.ts
194
27
  /** Steps that use the rear (environment) camera; everything else uses the front (user) camera. */
195
28
  const REAR_CAMERA_STEPS = [
@@ -253,10 +86,25 @@ function enrichFlowModuleConfig(module, flow) {
253
86
  };
254
87
  return config;
255
88
  }
89
+ let configConverters;
90
+ /**
91
+ * Loads the eKYC/eKYB config converters (the form-definitions catalog index)
92
+ * for a flow that has those steps, so other flows do not download them. The
93
+ * flow machine awaits it with the flow, before it reads any step config.
94
+ */
95
+ async function loadFlowConfigConverters(flow) {
96
+ const needed = flow.flowModules.some((module) => module.key === "EXTERNAL_VERIFICATION" || module.key === "EKYB");
97
+ if (configConverters || !needed) return;
98
+ const [ekyc, ekyb] = await Promise.all([import("./ekycUtils-GRuMELYr.esm.js").then((n) => n.n), import("./ekybUtils-Cw8Ta9Qi.esm.js").then((n) => n.t)]);
99
+ configConverters = {
100
+ toEkycConfig: ekyc.toEkycConfig,
101
+ toEkybConfig: ekyb.toEkybConfig
102
+ };
103
+ }
256
104
  function resolveFlowModuleConfig(module, flow) {
257
105
  const config = enrichFlowModuleConfig(module, flow);
258
- if (module.key === "EXTERNAL_VERIFICATION") return { ...toEkycConfig(module.configuration) };
259
- if (module.key === "EKYB") return { ...toEkybConfig(module.configuration) };
106
+ if (module.key === "EXTERNAL_VERIFICATION") return { ...configConverters?.toEkycConfig(module.configuration) ?? module.configuration };
107
+ if (module.key === "EKYB") return { ...configConverters?.toEkybConfig(module.configuration) ?? module.configuration };
260
108
  if (module.key === "FACE_MATCH" && (config.matchingType === void 0 || config.matchingType === "selfieVsId") && flow.flowModules.some((candidate) => candidate.key === "SECOND_ID")) return {
261
109
  ...config,
262
110
  matchingType: "secondId"
@@ -505,8 +353,18 @@ function toRegulationType(value) {
505
353
  const normalized = value.trim().toLowerCase().replace(/[\s-]+/g, "_");
506
354
  return REGULATION_TYPE_ALIASES[normalized] ?? "Other";
507
355
  }
356
+ /**
357
+ * The consent decision rides on the device-fingerprint response. A flow that
358
+ * never checks for consent doesn't read that response, so its first module
359
+ * doesn't wait for the post, and the post keeps waiting for the device hash in
360
+ * the background. A flow that checks waits for the post, so the post stops
361
+ * waiting for the hash (`endDeviceHashWait`).
362
+ */
363
+ function readsFingerprintResult(flow) {
364
+ return flow.mandatoryConsentCheck !== false;
365
+ }
508
366
  function prependMandatoryConsent(flow) {
509
- if (flow.mandatoryConsentCheck === false) return flow;
367
+ if (!readsFingerprintResult(flow)) return flow;
510
368
  const fingerprintResult = getSessionFingerprintResult();
511
369
  if (!fingerprintResult?.showMandatoryConsent) return flow;
512
370
  if (flow.flowModules.find((module) => module.key === "MANDATORY_CONSENT")) return flow;
@@ -528,12 +386,19 @@ function prependMandatoryConsent(flow) {
528
386
  * everything). Returns the same object when nothing is injected.
529
387
  */
530
388
  async function completeDeferredActivation(flow, signal) {
531
- await initializeSession({ signal }).catch(() => void 0);
389
+ const awaitFingerprint = readsFingerprintResult(flow);
390
+ if (awaitFingerprint) endDeviceHashWait();
391
+ await initializeSession({
392
+ signal,
393
+ awaitFingerprint
394
+ }).catch(() => void 0);
532
395
  throwIfAborted(signal);
533
396
  await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
534
397
  throwIfAborted(signal);
535
- await whenSessionFingerprintSettled();
536
- throwIfAborted(signal);
398
+ if (awaitFingerprint) {
399
+ await whenSessionFingerprintSettled();
400
+ throwIfAborted(signal);
401
+ }
537
402
  const withConsent = prependMandatoryConsent(flow);
538
403
  if (withConsent === flow) return flow;
539
404
  const [consent, ...rest] = withConsent.flowModules;
@@ -609,6 +474,7 @@ function preloadDashboardFlow(signal) {
609
474
  const token = requireActiveToken();
610
475
  if (dashboardFlowCache?.token === token) return waitForSharedPromise(dashboardFlowCache.promise, signal);
611
476
  const request = fetchRawDashboardFlow();
477
+ request.then(warmFirstModule, () => void 0);
612
478
  const cache = {
613
479
  token,
614
480
  promise: request
@@ -628,12 +494,19 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
628
494
  throwIfAborted(signal);
629
495
  let flow = rawFlow;
630
496
  if (options.deferActivation !== true) {
631
- await initializeSession({ signal }).catch(() => void 0);
497
+ const awaitFingerprint = readsFingerprintResult(rawFlow);
498
+ if (awaitFingerprint) endDeviceHashWait();
499
+ await initializeSession({
500
+ signal,
501
+ awaitFingerprint
502
+ }).catch(() => void 0);
632
503
  throwIfAborted(signal);
633
504
  await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
634
505
  throwIfAborted(signal);
635
- await whenSessionFingerprintSettled();
636
- throwIfAborted(signal);
506
+ if (awaitFingerprint) {
507
+ await whenSessionFingerprintSettled();
508
+ throwIfAborted(signal);
509
+ }
637
510
  flow = prependMandatoryConsent(rawFlow);
638
511
  }
639
512
  const normalizedModules = normalizeFlowModules(flow, options);
@@ -643,6 +516,16 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
643
516
  flowModules: normalizedModules
644
517
  };
645
518
  }
519
+ /**
520
+ * Starts what the first module requests before its first screen, while
521
+ * activation still runs, so that screen skips a second round trip.
522
+ */
523
+ function warmFirstModule(flow) {
524
+ if (flow.flowModules[0]?.key === "PHONE") {
525
+ loadPhoneValidation();
526
+ prefetchStartInfo();
527
+ }
528
+ }
646
529
  const getFlow = async (signal, options = {}) => {
647
530
  throwIfAborted(signal);
648
531
  const rawFlowPromise = preloadDashboardFlow(signal);
@@ -680,9 +563,10 @@ async function resolveDashboardModuleConfig(options) {
680
563
  const occurrence = options.occurrence ?? 0;
681
564
  const module = flow.flowModules.filter((module) => moduleKeys.includes(module.key))[occurrence];
682
565
  if (!module) throw new Error(`Module "${options.moduleKey}" is not enabled in the active Flow`);
566
+ await loadFlowConfigConverters(flow);
683
567
  const flowConfig = resolveFlowModuleConfig(module, flow);
684
568
  if (flowPolicy.mergeConfig) return mergeDashboardConfig(flowConfig, options.config);
685
569
  return flowConfig;
686
570
  }
687
571
  //#endregion
688
- export { isSupportedCountry as A, COUNTRIES_WITH_CNPJ_VALIDATION as C, INVALID_CNPJ_PATTERNS as D, FIELD_ORDER as E, SUPPORTED_COUNTRIES as O, CNPJ_SECOND_DIGIT_FACTORS as S, FIELD_NAME_MAPPING as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, mergeDashboardConfig as j, UBO_FIELD_LABELS as k, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, DEV_ONLY_COUNTRIES as w, CNPJ_FIRST_DIGIT_FACTORS as x, ADDRESS_FIELDS as y };
572
+ export { resolveDashboardModuleConfig as a, getRequiredWasmPipelines as c, resolveFlowModuleConfig as d, facingModeForStep as f, mergeDashboardConfig as h, resetDashboardFlowCache as i, loadFlowConfigConverters as l, videoSelfieWasmPipelines as m, getFlow as n, enrichFlowModuleConfig as o, resolveVideoSelfieSteps as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, normalizeFlowModules as u };
@@ -1,2 +1,2 @@
1
- import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-Dn24g1fl.js";
1
+ import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-6e1i9UIR.js";
2
2
  export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-DnONzWL5.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-eWy_G4Os.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-BJJ3m_I8.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-CTI3m4Ie.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,15 +1,7 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
5
- type GeolocationCoords = {
6
- latitude: number;
7
- longitude: number;
8
- };
9
- type IGeolocationCapability = {
10
- getCurrentPosition(): Promise<GeolocationCoords>;
11
- };
12
- //#endregion
4
+ import { n as IGeolocationCapability } from "./IGeolocationCapability-r49Qo7rR.js";
13
5
  //#region src/modules/geolocation/types.d.ts
14
6
  /**
15
7
  * Configuration options for the Geolocation module.
@@ -104,6 +96,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
104
96
  params: NonReducibleUnknown;
105
97
  };
106
98
  }>, Values<{
99
+ isOutOfAttempts: {
100
+ type: "isOutOfAttempts";
101
+ params: unknown;
102
+ };
107
103
  canSkip: {
108
104
  type: "canSkip";
109
105
  params: unknown;
@@ -120,10 +116,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
120
116
  type: "isPermissionDenied";
121
117
  params: unknown;
122
118
  };
123
- }>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired" | "noNetwork", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
119
+ }>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
124
120
  readonly id: "geolocation";
125
121
  readonly initial: "idle";
126
- readonly context: ({ input }: {
122
+ readonly context: ({ input, self }: {
127
123
  spawn: {
128
124
  <TSrc extends "requestPosition" | "submitPosition">(logic: TSrc, ...[options]: ({
129
125
  src: "requestPosition";
@@ -219,9 +215,12 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
219
215
  readonly states: {
220
216
  readonly idle: {
221
217
  readonly on: {
222
- readonly REQUEST: {
218
+ readonly REQUEST: readonly [{
219
+ readonly target: "error";
220
+ readonly guard: "isOutOfAttempts";
221
+ }, {
223
222
  readonly target: "requestingLocation";
224
- };
223
+ }];
225
224
  };
226
225
  };
227
226
  readonly requestingLocation: {
@@ -326,7 +325,7 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
326
325
  readonly actions: "setLocation";
327
326
  };
328
327
  readonly onError: readonly [{
329
- readonly target: "noNetwork";
328
+ readonly target: "error";
330
329
  readonly guard: "isNetworkError";
331
330
  }, {
332
331
  readonly target: "error";
@@ -334,7 +333,6 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
334
333
  }];
335
334
  };
336
335
  };
337
- readonly noNetwork: {};
338
336
  readonly error: {
339
337
  readonly on: {
340
338
  readonly RETRY: {
@@ -409,8 +407,8 @@ type GeolocationErrorState = {
409
407
  canSkip: boolean;
410
408
  };
411
409
  /**
412
- * A backend request failed due to lost connectivity (device offline/network
413
- * error) = the user refreshes once the connection returns.
410
+ * @deprecated Never emitted. A connectivity failure now goes to `error`
411
+ * without using an attempt, and the session boundary shows the offline screen.
414
412
  */
415
413
  type GeolocationNoNetworkState = {
416
414
  status: 'noNetwork';
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-eWy_G4Os.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-CTI3m4Ie.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -38,10 +38,10 @@ function createGeolocationActor(options) {
38
38
  * a transient failure (position unavailable / timeout, e.g. the browser's
39
39
  * `kCLErrorLocationUnknown`) routes to the attempt-limited `error` state so the
40
40
  * user can retry. A backend submit failure (`submitPosition` `onError`) splits
41
- * by cause: a connectivity error routes to `noNetwork`
42
- * (`Geolocation.error.noNetwork`), while a server-side rejection routes to the
43
- * same attempt-limited location-unavailable screen. Both rendered error
44
- * surfaces have their own Figma screen names.
41
+ * by cause: a server-side rejection routes to the same attempt-limited
42
+ * location-unavailable screen, while a connectivity error routes there without
43
+ * using an attempt (the session boundary shows the offline screen). Both
44
+ * rendered error surfaces have their own Figma screen names.
45
45
  */
46
46
  function getGeolocationScreenName(snapshot) {
47
47
  const { value } = snapshot;
@@ -54,7 +54,6 @@ function getGeolocationScreenName(snapshot) {
54
54
  case "finished": return "Geolocation.continue";
55
55
  case "permissionDenied": return "Geolocation.allowLocation";
56
56
  case "error": return "Geolocation.error.locationUnavailable";
57
- case "noNetwork": return "Geolocation.error.noNetwork";
58
57
  default: return;
59
58
  }
60
59
  }
@@ -78,7 +77,6 @@ function mapState(snapshot) {
78
77
  attemptsRemaining: context.attemptsRemaining,
79
78
  canSkip: context.config.allowUserToSkipGeolocation === true
80
79
  };
81
- if (typedSnapshot.matches("noNetwork")) return { status: "noNetwork" };
82
80
  if (typedSnapshot.matches("finished")) return { status: "finished" };
83
81
  if (typedSnapshot.matches("closed")) return { status: "closed" };
84
82
  return { status: "idle" };
@@ -1,8 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
2
- import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
3
- import { n as isConnectivityError } from "./apiError-DPwFas2f.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
+ import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-DH-CH4Nz.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { t as carryAttempts } from "./attemptCarry-WOkfvFMw.esm.js";
6
7
  //#region src/modules/geolocation/geolocationServices.ts
7
8
  async function addGeolocation(params, signal) {
8
9
  const res = await api.post(endpoints.addGeolocation, {
@@ -50,6 +51,7 @@ const geolocationMachine = setup({
50
51
  decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 }))
51
52
  },
52
53
  guards: {
54
+ isOutOfAttempts: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < resolveMaxAttempts(context.config),
53
55
  canSkip: ({ context }) => context.config.allowUserToSkipGeolocation === true,
54
56
  hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
55
57
  isNetworkError: ({ event }) => isConnectivityError(event.error),
@@ -58,16 +60,19 @@ const geolocationMachine = setup({
58
60
  }).createMachine({
59
61
  id: "geolocation",
60
62
  initial: "idle",
61
- context: ({ input }) => ({
63
+ context: ({ input, self }) => ({
62
64
  config: input.config,
63
65
  geolocation: input.geolocation,
64
66
  coords: void 0,
65
67
  location: void 0,
66
68
  deviceType: detectDeviceType(),
67
- attemptsRemaining: resolveMaxAttempts(input.config)
69
+ attemptsRemaining: carryAttempts("geolocation", self, (s) => ({ attemptsRemaining: s.context.attemptsRemaining })).attemptsRemaining ?? resolveMaxAttempts(input.config)
68
70
  }),
69
71
  states: {
70
- idle: { on: { REQUEST: { target: "requestingLocation" } } },
72
+ idle: { on: { REQUEST: [{
73
+ target: "error",
74
+ guard: "isOutOfAttempts"
75
+ }, { target: "requestingLocation" }] } },
71
76
  requestingLocation: { invoke: {
72
77
  id: "requestPosition",
73
78
  src: "requestPosition",
@@ -97,14 +102,13 @@ const geolocationMachine = setup({
97
102
  actions: "setLocation"
98
103
  },
99
104
  onError: [{
100
- target: "noNetwork",
105
+ target: "error",
101
106
  guard: "isNetworkError"
102
107
  }, {
103
108
  target: "error",
104
109
  actions: "decrementAttemptsRemaining"
105
110
  }]
106
111
  } },
107
- noNetwork: {},
108
112
  error: { on: {
109
113
  RETRY: {
110
114
  target: "idle",
@@ -1,5 +1,5 @@
1
1
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
2
- import { f as isTabletWithoutAndroid } from "./platform-DkcRc9JV.esm.js";
2
+ import { p as isTabletWithoutAndroid } from "./platform-aPh7gTWh.esm.js";
3
3
  import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
4
4
  //#region src/internal/device/getDeviceClass.ts
5
5
  function getDeviceClass() {
@@ -1,3 +1,3 @@
1
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
2
- import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-BtXWHICu.esm.js";
1
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-AEbn3Afi.esm.js";
2
+ import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-CjChjZ3C.esm.js";
3
3
  export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
4
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-AEbn3Afi.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,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/government-validation/governmentValidationServices.ts
package/dist/home.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as StateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import { t as EmptyConfig } from "./types-B6HsSzpk.js";
3
+ import { t as EmptyConfig } from "./types-CRaFu6wS.js";
4
4
  //#region src/modules/home/types.d.ts
5
5
  type HomeConfig = EmptyConfig;
6
6
  //#endregion
package/dist/home.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  //#region src/modules/home/homeStateMachine.ts
4
4
  const homeMachine = setup({ types: {
package/dist/http.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getApi, t as api } from "./api-Cz90EHyu.esm.js";
1
+ import { n as getApi, t as api } from "./api-CpP4PS4S.esm.js";
2
2
  export { api, getApi };
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-BTdHlJ9D.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,6 +1,6 @@
1
1
  import { t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
2
- import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
3
- import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-D3-HNMXP.esm.js";
2
+ import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-DNKXh4Rn.esm.js";
3
+ import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-xyEZNOBa.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);
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
5
  import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
6
6
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
7
- import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-CGsTltqB.js";
7
+ import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-Dv3Mgws-.js";
8
8
  //#region src/modules/id-selfie-flow/types.d.ts
9
9
  /**
10
10
  * The capture steps an ID + Selfie flow session can run, in flow order. A
@@ -1,17 +1,18 @@
1
- import { t as ensureWasmPipelines } from "./setup-BInNAvQw.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-roD0oIQL.esm.js";
4
+ import { a as resolveDashboardModuleConfig, f as facingModeForStep } from "./flowServices-Dmnc8Rye.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
- import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-DcPOC2gS.esm.js";
8
- import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-CLwrF5wD.esm.js";
7
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-CAY43vSI.esm.js";
8
+ import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BGsG2OAs.esm.js";
11
- import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-BSj6EH2l.esm.js";
10
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dszuq9ng.esm.js";
11
+ import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-DK0QboqT.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-BDI5QpfR.esm.js";
14
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-D1xA0u8y.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-CcCnPs_T.esm.js";
14
+ import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-e3irGfcO.esm.js";
15
+ import { t as CameraCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
15
16
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
17
  /** Default autocapture window for the selfie step. */
17
18
  const SELFIE_AUTOCAPTURE_MS = 1e4;
@@ -1,3 +1,3 @@
1
- import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
2
- import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-iWz7Avkr.esm.js";
1
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-DtIBCa32.esm.js";
2
+ import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-DdnvYfgN.esm.js";
3
3
  export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };