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

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 (272) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
  3. package/dist/{FaceDetectionProvider-BSLpXAGx.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +8 -8
  4. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  5. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  6. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
  7. package/dist/{WasmUtilProvider-C_puwvVn.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +40 -4
  8. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
  9. package/dist/{addressSearch-B_4JYKa-.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
  10. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  11. package/dist/ae-signature.d.ts +2 -2
  12. package/dist/ae-signature.esm.js +1 -1
  13. package/dist/antifraud.d.ts +1 -1
  14. package/dist/antifraud.esm.js +2 -2
  15. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  16. package/dist/{antifraudManager-BWCVkSu2.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  17. package/dist/{antifraudStateMachine-CX9I2f3s.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  18. package/dist/{api-BSnbg4HO.esm.js → api-CZpuJuZl.esm.js} +1 -1
  19. package/dist/{apiError-Bmwy1Fa7.esm.js → apiError-BamZ815u.esm.js} +1 -1
  20. package/dist/{attemptCarry-zQH85Elh.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-CISxaY6N.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  24. package/dist/{authenticationManager-BoiOaB0m.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
  25. package/dist/{authenticationStateMachine-BMD1JLwr.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
  26. package/dist/{browser-pQZA35G2-PIj2uGBm.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
  27. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  28. package/dist/camera.esm.js +1 -1
  29. package/dist/certificate-issuance.d.ts +1 -1
  30. package/dist/certificate-issuance.esm.js +2 -2
  31. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  32. package/dist/{certificateIssuanceManager-DzDuQTsK.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
  33. package/dist/{certificateIssuanceStateMachine-BAOYLACb.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +3 -3
  34. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  35. package/dist/consent.d.ts +1 -1
  36. package/dist/consent.esm.js +2 -2
  37. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-B2F_VeAo.d.ts} +8 -7
  38. package/dist/{consentManager-DFSKQTcR.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  39. package/dist/{consentStateMachine-4nZIH2O8.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  40. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  41. package/dist/cross-document-data-match.d.ts +1 -1
  42. package/dist/cross-document-data-match.esm.js +1 -1
  43. package/dist/{crossDocumentDataMatchManager-D7ka2qOC.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  44. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  45. package/dist/curp-DZGvefg3.esm.js +14 -0
  46. package/dist/curp-validation.d.ts +1 -1
  47. package/dist/curp-validation.esm.js +2 -2
  48. package/dist/{curpValidationManager-BVTt7IgC.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
  49. package/dist/{curpValidationManager-DEqTUWdu.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  50. package/dist/{curpValidationStateMachine-FB_MRbZQ.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
  51. package/dist/custom-fields.d.ts +1 -1
  52. package/dist/custom-fields.esm.js +1 -1
  53. package/dist/custom-watchlist.d.ts +1 -1
  54. package/dist/custom-watchlist.esm.js +2 -2
  55. package/dist/{customFieldsManager-gbsq53p6.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  56. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  57. package/dist/{customWatchlistManager-50APwk4Z.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  58. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  59. package/dist/{customWatchlistStateMachine-CpEVPzuT.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  60. package/dist/{deepsightLoader-BKCT8UT1.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
  61. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  62. package/dist/{desktopCameraElection-Dvvw7PRY.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +4 -4
  63. package/dist/document-capture.d.ts +1 -1
  64. package/dist/document-capture.esm.js +2 -2
  65. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +5 -4
  66. package/dist/{documentCaptureManager-BG5TuqJz.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
  67. package/dist/{documentCaptureStateMachine-C7PW_Ah9.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
  68. package/dist/dynamic-forms.d.ts +1 -1
  69. package/dist/dynamic-forms.esm.js +2 -2
  70. package/dist/{dynamicFormsManager-B0bpHhhJ.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
  71. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  72. package/dist/{dynamicFormsStateMachine-2ZHyejBc.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
  73. package/dist/ekyb.d.ts +3 -3
  74. package/dist/ekyb.esm.js +2 -2
  75. package/dist/{ekybManager-P9mC7W9J.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
  76. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  77. package/dist/{ekybStateMachine-C7HKaeVr.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +18 -20
  78. package/dist/ekyc-prefill.d.ts +1 -1
  79. package/dist/ekyc-prefill.esm.js +2 -2
  80. package/dist/ekyc.d.ts +2 -2
  81. package/dist/ekyc.esm.js +3 -3
  82. package/dist/{ekycManager-q1fos6IY.d.ts → ekycManager-BKVQazAb.d.ts} +47 -6
  83. package/dist/{ekycManager-CeeJoRFY.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  84. package/dist/{ekycPrefillManager-C6BFFKxc.esm.js → ekycPrefillManager-CCtbmrFd.esm.js} +3 -2
  85. package/dist/{ekycPrefillManager-PPGVZbWk.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +8 -7
  86. package/dist/{ekycPrefillStateMachine-Dku90kZL.esm.js → ekycPrefillStateMachine-XpxgCAoC.esm.js} +11 -10
  87. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
  88. package/dist/{ekycStateMachine-DBTczgGE.esm.js → ekycStateMachine-nwJRel2s.esm.js} +333 -64
  89. package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-FcqA6oU4.esm.js} +44 -43
  90. package/dist/electronic-signature.d.ts +1 -1
  91. package/dist/electronic-signature.esm.js +1 -1
  92. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  93. package/dist/{electronicSignatureManager-BKQuhJm_.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +7 -5
  94. package/dist/email.d.ts +1 -1
  95. package/dist/email.esm.js +2 -2
  96. package/dist/{emailManager-CGmKbsBL.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  97. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  98. package/dist/{emailStateMachine-CGY1UGs2.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  99. package/dist/events-CP3yOzAl.esm.js +299 -0
  100. package/dist/events.d.ts +3 -1
  101. package/dist/events.esm.js +2 -1
  102. package/dist/extensibility.d.ts +39 -39
  103. package/dist/extensibility.esm.js +38 -38
  104. package/dist/face-match.d.ts +1 -1
  105. package/dist/face-match.esm.js +2 -2
  106. package/dist/{faceCaptureManagerFactory-ClFsByZc.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
  107. package/dist/{faceCaptureManagerFactory-BVwVGa3z.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +14 -7
  108. package/dist/{faceCaptureSetup-9hv5GC_H.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
  109. package/dist/{faceMatchManager-BZtEw6bB.d.ts → faceMatchManager-C5b5WtcY.d.ts} +3 -2
  110. package/dist/{faceMatchManager-CRe7Nvm6.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  111. package/dist/{faceMatchStateMachine-EX9QhxFE.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +18 -6
  112. package/dist/{feature-management-CmKTG_T5.esm.js → feature-management-DG016L6E.esm.js} +1 -1
  113. package/dist/feature-management.esm.js +1 -1
  114. package/dist/field-comparison.d.ts +1 -1
  115. package/dist/field-comparison.esm.js +1 -1
  116. package/dist/{fieldComparisonManager-DuosZJso.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  117. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  118. package/dist/fiscal-qr.d.ts +1 -1
  119. package/dist/fiscal-qr.esm.js +1 -1
  120. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  121. package/dist/{fiscalQrManager-ji0qDaTW.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  122. package/dist/flow-events.d.ts +1 -1
  123. package/dist/flow.d.ts +47 -11
  124. package/dist/flow.esm.js +214 -58
  125. package/dist/{flowCompletionService-DvcH16XO.esm.js → flowCompletionService-BpeAbbXc.esm.js} +2 -2
  126. package/dist/{flowServices-Ca2vKNt2.esm.js → flowServices-rDg1bAMs.esm.js} +373 -12
  127. package/dist/geolocation.d.ts +1 -1
  128. package/dist/geolocation.esm.js +2 -2
  129. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  130. package/dist/{geolocationManager-CiG32lIm.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
  131. package/dist/{geolocationStateMachine-5rnTEOuw.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
  132. package/dist/government-validation.d.ts +1 -1
  133. package/dist/government-validation.esm.js +2 -2
  134. package/dist/{governmentValidationManager-BivVZNVe.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  135. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  136. package/dist/{governmentValidationStateMachine-CeSDNgha.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  137. package/dist/home.d.ts +4 -3
  138. package/dist/home.esm.js +4 -2
  139. package/dist/http.esm.js +1 -1
  140. package/dist/id-ocr.d.ts +1 -1
  141. package/dist/id-ocr.esm.js +3 -3
  142. package/dist/id-selfie-flow.d.ts +4 -3
  143. package/dist/id-selfie-flow.esm.js +12 -11
  144. package/dist/id-verification.d.ts +1 -1
  145. package/dist/id-verification.esm.js +2 -2
  146. package/dist/id.d.ts +2 -2
  147. package/dist/id.esm.js +3 -3
  148. package/dist/{idCaptureDefaults-DBnOC28H.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +1 -1
  149. package/dist/{idCaptureManager-B5xqok0L.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
  150. package/dist/{idCaptureManager-CG8zbAp0.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +7 -6
  151. package/dist/{idCaptureServices-BIF_7rub.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
  152. package/dist/{idCaptureStateMachine-B5cfgKvn.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +21 -19
  153. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  154. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-C0C7lFGd.d.ts} +4 -3
  155. package/dist/{idOcrManager-DNbVTMIu.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  156. package/dist/{idOcrStateMachine-MAGnpWkb.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
  157. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  158. package/dist/{idVerificationManager-BEAkamNm.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  159. package/dist/{idVerificationStateMachine-D5mBN2Ye.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  160. package/dist/identity-reuse.d.ts +2 -2
  161. package/dist/identity-reuse.esm.js +2 -2
  162. package/dist/identity-search.d.ts +97 -0
  163. package/dist/identity-search.esm.js +97 -0
  164. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  165. package/dist/{identityReuseManager-M8-BTjar.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  166. package/dist/{identityReuseStateMachine-D5bXgw9h.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  167. package/dist/index-DHuAkTe0.d.ts +1 -0
  168. package/dist/{index-Btj1EhiM.d.ts → index-DM43R87x.d.ts} +1 -1
  169. package/dist/{index-CSPOoqah.d.ts → index-DxYNO94y.d.ts} +2 -2
  170. package/dist/index.d.ts +1 -1
  171. package/dist/index.esm.js +1 -1
  172. package/dist/{invokeOnCaptureCallback-C1-j4fsq.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  173. package/dist/kyb-checks.d.ts +1 -1
  174. package/dist/kyb-checks.esm.js +2 -2
  175. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  176. package/dist/{kybChecksManager-CnqwgKoV.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
  177. package/dist/{kybChecksStateMachine-Be41K_NS.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +8 -7
  178. package/dist/mandatory-consent.d.ts +2 -2
  179. package/dist/mandatory-consent.esm.js +2 -2
  180. package/dist/{mandatoryConsentManager-CYOJd_IZ.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +9 -8
  181. package/dist/{mandatoryConsentManager-LFhUlLvO.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  182. package/dist/{mandatoryConsentStateMachine-DTSyDqQs.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
  183. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
  184. package/dist/{multipartRecordingService-CCiRpByl.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
  185. package/dist/{permissionGuards-DjQUR1du.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
  186. package/dist/{permissionServices-CZpORUWY.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
  187. package/dist/phone.d.ts +1 -1
  188. package/dist/phone.esm.js +2 -2
  189. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  190. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  191. package/dist/{phoneManager-C-qD3p3N.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  192. package/dist/{phoneServices-BdR1nmSO.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  193. package/dist/{phoneStateMachine-2FMTdjtJ.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  194. package/dist/{processFaceMatch-B1YnoBer.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  195. package/dist/qe-signature.d.ts +2 -2
  196. package/dist/qe-signature.esm.js +1 -1
  197. package/dist/{recordingService-BVSCo0ac.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
  198. package/dist/redirect-to-mobile.d.ts +1 -1
  199. package/dist/redirect-to-mobile.esm.js +2 -2
  200. package/dist/{redirectToMobileManager-CqyDfDxs.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
  201. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  202. package/dist/{redirectToMobileStateMachine-CXqfo2Gd.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +3 -3
  203. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  204. package/dist/{runChildModule-BmteMhR7.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
  205. package/dist/{sdkVersion-KZROt6l3.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
  206. package/dist/selfie.d.ts +3 -3
  207. package/dist/selfie.esm.js +13 -12
  208. package/dist/{selfieErrorUtils-fqxp645p.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
  209. package/dist/{selfieManager-DREuBhXZ.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  210. package/dist/{selfieManager-A-n3k9Tu.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
  211. package/dist/{selfieStateMachine-48PKdKrw.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
  212. package/dist/{session-D0DWDKp9.esm.js → session-C7x_iJ-p.esm.js} +4 -4
  213. package/dist/session.d.ts +1 -1
  214. package/dist/session.esm.js +5 -5
  215. package/dist/{sessionInitializer-I92b2dmL.esm.js → sessionInitializer-k-hKIBg8.esm.js} +9 -8
  216. package/dist/{setup-BpjzWqR1.esm.js → setup-BRbhjHiU.esm.js} +10 -9
  217. package/dist/{setup-CG6oLkAa.d.ts → setup-CpXbdA1X.d.ts} +1 -1
  218. package/dist/signature.d.ts +1 -1
  219. package/dist/signature.esm.js +2 -2
  220. package/dist/{signatureManager-M9vQBj19.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  221. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  222. package/dist/{signatureStateMachine-0_frzAN5.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  223. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  224. package/dist/{stats-C2sigf9p.esm.js → stats-DoByUnTa.esm.js} +1 -1
  225. package/dist/stats.esm.js +1 -1
  226. package/dist/step-up.d.ts +3 -2
  227. package/dist/step-up.esm.js +2 -1
  228. package/dist/{tri-DaUNvo-o.esm.js → tri-CI2exudk.esm.js} +2 -2
  229. package/dist/tri.d.ts +1 -1
  230. package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
  231. package/dist/tri.esm.js +1 -1
  232. package/dist/{trueSightService-DHYTBCIn.esm.js → trueSightService-DhW2O8mB.esm.js} +6 -3
  233. package/dist/trust-graph.d.ts +4 -3
  234. package/dist/trust-graph.esm.js +5 -3
  235. package/dist/{types-CgihAhT_.d.ts → types-9wlf1-GE.d.ts} +1 -1
  236. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  237. package/dist/types-CE1jkHw3.d.ts +6 -0
  238. package/dist/{types-BqlZSoZ-.d.ts → types-Cpdum4vi.d.ts} +1 -1
  239. package/dist/{types-Cbm9J2yF.d.ts → types-DFP7eSle.d.ts} +1 -1
  240. package/dist/{types-P9LzsfRo.d.ts → types-DJPU3W2M.d.ts} +1 -1
  241. package/dist/{events-C7h7oaTE.esm.js → types-DYYMdAGv.esm.js} +3 -298
  242. package/dist/{types-TisHEbBg.d.ts → types-Ddc4Tr_f.d.ts} +28 -1
  243. package/dist/video-selfie.d.ts +5 -4
  244. package/dist/video-selfie.esm.js +14 -13
  245. package/dist/{videoSelfieCameraWarmer-CTOpqhov.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +6 -6
  246. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  247. package/dist/{videoSelfieStepDetector-4XE2QI5q.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +2 -2
  248. package/dist/wasm.d.ts +1 -1
  249. package/dist/wasm.esm.js +1 -1
  250. package/dist/{wasmDsFlagSync-lRIgn5Ic.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
  251. package/dist/watchlist-for-business.d.ts +1 -1
  252. package/dist/watchlist-for-business.esm.js +2 -2
  253. package/dist/watchlist.d.ts +1 -1
  254. package/dist/watchlist.esm.js +2 -2
  255. package/dist/{watchlistForBusinessManager-C1S5y5yj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
  256. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  257. package/dist/{watchlistForBusinessStateMachine-Bj_hnoK5.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
  258. package/dist/{watchlistManager-BpegtZbc.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  259. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  260. package/dist/{watchlistStateMachine-Bgkh1gra.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  261. package/dist/workflow.d.ts +6 -5
  262. package/dist/workflow.esm.js +51 -43
  263. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  264. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  265. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  266. package/package.json +6 -1
  267. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  268. package/dist/index-DpTj5PFb.d.ts +0 -1
  269. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  270. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  271. package/dist/tri.esm-Df5eKLsY.esm.js +0 -2165
  272. package/dist/types-kLsU6Jkt.d.ts +0 -6
@@ -1,6 +1,6 @@
1
- import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
+ import { t as Manager } from "./Manager-DufwKlav.js";
3
+ import "./Actor-DqjOqDfU.js";
4
4
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
5
5
  import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
6
6
  //#region src/modules/ekyb/ekybStateMachine.d.ts
@@ -1,21 +1,14 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { n as getFlow } from "./flowServices-Ca2vKNt2.esm.js";
3
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { n as getFlow } from "./flowServices-rDg1bAMs.esm.js";
3
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
5
  import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
6
6
  import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
- import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Co1ottYN.esm.js";
8
- import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorKey, l as getStreetLevelErrorForSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
9
- import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
10
- import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-B_4JYKa-.esm.js";
7
+ import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
8
+ import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
9
+ import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
10
+ import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
11
11
  //#region src/modules/ekyb/ekybValidators.ts
12
- const buildPostalCodeParams = (country) => {
13
- const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
14
- if (fixedLen !== void 0) return { length: fixedLen };
15
- let maxLen = getPostalCodeMaxLength(country);
16
- if (country === "US" || country === "BR") maxLen = maxLen - 1;
17
- return { maxLength: maxLen };
18
- };
19
12
  const createValidators = () => ({
20
13
  required: (value, _rule, field) => {
21
14
  if (value.trim().length > 0) return void 0;
@@ -39,7 +32,7 @@ const createValidators = () => ({
39
32
  if (validatePostalCode(value, rule.country)) return void 0;
40
33
  return {
41
34
  key: getPostalCodeErrorKey(rule.country),
42
- params: buildPostalCodeParams(rule.country)
35
+ params: getPostalCodeErrorParams(rule.country)
43
36
  };
44
37
  }
45
38
  });
@@ -344,7 +337,8 @@ const EKYB_SUPPORTED_IDS = {
344
337
  groupRules: /* @__PURE__ */ new Set(),
345
338
  optionLists: new Set(Object.keys(OPTION_LISTS)),
346
339
  conditions: /* @__PURE__ */ new Set(),
347
- prefillSources: /* @__PURE__ */ new Set()
340
+ prefillSources: /* @__PURE__ */ new Set(),
341
+ flags: /* @__PURE__ */ new Set()
348
342
  };
349
343
  /** Today's UBO actions use a fixed limit and a single collection. */
350
344
  const UBO_COLLECTION = "ubos";
@@ -415,8 +409,10 @@ const bundled = createBundledDefinitionSource(EKYB_DEFINITIONS);
415
409
  /**
416
410
  * The resolved definition for this country and configuration, if one applies
417
411
  * and the rollout is on. Every country has a builder today, so none is exempt.
412
+ * `useDefinitions` is the rollout answer the machine read once, when it was
413
+ * created.
418
414
  */
419
- function selectEkybForm(config, verificationFields, country, useDefinitions = isFormDefinitionsEnabled()) {
415
+ function selectEkybForm(config, verificationFields, country, useDefinitions) {
420
416
  if (!useDefinitions) return void 0;
421
417
  const context = toEkybResolveContext(config, verificationFields);
422
418
  if (!context) return void 0;
@@ -758,7 +754,8 @@ const ekybMachine = setup({
758
754
  fillAddressFields: assign(({ context, event }) => {
759
755
  const { suggestion } = event;
760
756
  const activeFields = new Set(context.fields.map((f) => f.name));
761
- const { values: newValues } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
757
+ const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
758
+ const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
762
759
  const errs = context.validationErrors;
763
760
  let newErrors = errs;
764
761
  if (errs) {
@@ -851,7 +848,8 @@ const ekybMachine = setup({
851
848
  RESULTS: {
852
849
  target: "inputting",
853
850
  actions: "setAddressSuggestions"
854
- }
851
+ },
852
+ SUBMIT: { target: "validatingSubmit" }
855
853
  }
856
854
  },
857
855
  validatingSubmit: {
@@ -1,6 +1,6 @@
1
1
  import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
2
2
  import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
3
- import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-PPGVZbWk.js";
3
+ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-DOTl3Y2w.js";
4
4
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
5
5
  /**
6
6
  * Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
@@ -1,3 +1,3 @@
1
- import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
2
- import { t as createEkycPrefillManager } from "./ekycPrefillManager-C6BFFKxc.esm.js";
1
+ import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-XpxgCAoC.esm.js";
2
+ import { t as createEkycPrefillManager } from "./ekycPrefillManager-CCtbmrFd.esm.js";
3
3
  export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
package/dist/ekyc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
2
2
  import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-DEa3taWc.js";
3
- import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-q1fos6IY.js";
3
+ import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-BKVQazAb.js";
4
4
  //#region src/modules/ekyc/ekycUtils.d.ts
5
5
  /**
6
6
  * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
@@ -19,4 +19,4 @@ import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycMana
19
19
  */
20
20
  declare function toEkycConfig(config: Partial<EkycModuleConfig> & Partial<EkycConfig>): EkycConfig;
21
21
  //#endregion
22
- export { type AddressSuggestion, type EkycConfig, type EkycDisplayModes, type EkycFieldDisplayMode, type EkycManager, type EkycModuleConfig, type EkycState, type EkycValidationError, type EkycValidationErrors, createEkycManager, ekycMachine, toEkycConfig };
22
+ export { type AddressSuggestion, type EkycConfig, type EkycDisplayModes, type EkycFieldDisplayMode, type EkycManager, type EkycModuleConfig, type EkycState, type EkycStep, type EkycValidationError, type EkycValidationErrors, createEkycManager, ekycMachine, toEkycConfig };
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
2
- import { l as toEkycConfig } from "./ekycUtils-Dcff8BOD.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-CeeJoRFY.esm.js";
1
+ import { t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
2
+ import { l as toEkycConfig } from "./ekycUtils-FcqA6oU4.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-nRT0rxei.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -1,6 +1,6 @@
1
- import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
+ import { t as Manager } from "./Manager-DufwKlav.js";
3
+ import "./Actor-DqjOqDfU.js";
4
4
  import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
5
5
  import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-DEa3taWc.js";
6
6
  //#region src/modules/ekyc/ekycStateMachine.d.ts
@@ -13,6 +13,17 @@ type CreateEkycActorOptions = {
13
13
  config: EkycConfig;
14
14
  };
15
15
  //#endregion
16
+ //#region src/modules/ekyc/ekycSteps.d.ts
17
+ /**
18
+ * One screen of the eKYC form: a run of visible fields that share a section.
19
+ * `id` is `'personal'` for fields without a section, otherwise the section
20
+ * (`'driverLicense'` or `'address'` today).
21
+ */
22
+ type EkycStep = {
23
+ id: string;
24
+ fieldNames: string[];
25
+ };
26
+ //#endregion
16
27
  //#region src/modules/ekyc/ekycManager.d.ts
17
28
  type EkycLoadingState = {
18
29
  status: 'loading';
@@ -29,6 +40,16 @@ type EkycFormState = {
29
40
  hideEmail: boolean;
30
41
  fieldsCountry: string;
31
42
  submitError: string;
43
+ /**
44
+ * The form's screens, one per run of visible fields that share a section
45
+ * (`'personal'` for fields without one). A form with one step has a single
46
+ * screen.
47
+ */
48
+ steps: EkycStep[];
49
+ /** Index into `steps` of the screen the user is on. */
50
+ currentStepIndex: number;
51
+ /** True iff the current step's fields have no validation errors. */
52
+ isStepValid: boolean;
32
53
  };
33
54
  type EkycSubmittingState = {
34
55
  status: 'submitting';
@@ -64,7 +85,17 @@ declare function createEkycManagerFromActor(actor: EkycActor): Manager<EkycState
64
85
  searchAddress(query: string): void;
65
86
  /** Selects an address suggestion and populates address fields */
66
87
  selectAddress(suggestion: AddressSuggestion): void;
67
- /** Submits the form. Runs full-form validation; advances only when no errors. */
88
+ /**
89
+ * Continues from the current step: validates its fields and moves to the
90
+ * next step when they pass. On the last step it submits, like `submit()`.
91
+ */
92
+ next(): void;
93
+ /** Returns to the previous step. Keeps values and errors; does not validate. */
94
+ back(): void;
95
+ /**
96
+ * Submits the form. Runs full-form validation whatever the current step;
97
+ * advances only when no errors, otherwise moves to the first step with one.
98
+ */
68
99
  submit(): void;
69
100
  /** Retries from failure state, returning to the form */
70
101
  retry(): void;
@@ -84,7 +115,17 @@ declare function createEkycManager(options: CreateEkycActorOptions): Manager<Eky
84
115
  searchAddress(query: string): void;
85
116
  /** Selects an address suggestion and populates address fields */
86
117
  selectAddress(suggestion: AddressSuggestion): void;
87
- /** Submits the form. Runs full-form validation; advances only when no errors. */
118
+ /**
119
+ * Continues from the current step: validates its fields and moves to the
120
+ * next step when they pass. On the last step it submits, like `submit()`.
121
+ */
122
+ next(): void;
123
+ /** Returns to the previous step. Keeps values and errors; does not validate. */
124
+ back(): void;
125
+ /**
126
+ * Submits the form. Runs full-form validation whatever the current step;
127
+ * advances only when no errors, otherwise moves to the first step with one.
128
+ */
88
129
  submit(): void;
89
130
  /** Retries from failure state, returning to the form */
90
131
  retry(): void;
@@ -95,4 +136,4 @@ declare function createEkycManager(options: CreateEkycActorOptions): Manager<Eky
95
136
  };
96
137
  type EkycManager = ReturnType<typeof createEkycManager>;
97
138
  //#endregion
98
- export { EkycActor as a, createEkycManagerFromActor as i, EkycState as n, ekycMachine as o, createEkycManager as r, EkycManager as t };
139
+ export { EkycStep as a, createEkycManagerFromActor as i, EkycState as n, EkycActor as o, createEkycManager as r, ekycMachine as s, EkycManager as t };
@@ -1,7 +1,9 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-C7h7oaTE.esm.js";
1
+ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
2
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as ekycMachine } from "./ekycStateMachine-DBTczgGE.esm.js";
4
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
+ import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
5
7
  //#region src/modules/ekyc/ekycActor.ts
6
8
  /**
7
9
  * Creates and starts an eKYC actor.
@@ -44,18 +46,25 @@ function mapState(snapshot) {
44
46
  const typedSnapshot = snapshot;
45
47
  const { context } = typedSnapshot;
46
48
  if (typedSnapshot.matches("idle") || typedSnapshot.matches("loading") || typedSnapshot.matches("prefilling")) return { status: "loading" };
47
- if (typedSnapshot.matches("form")) return {
48
- status: "form",
49
- fields: context.fields,
50
- values: context.values,
51
- validationErrors: context.validationErrors,
52
- isValid: Object.keys(context.validationErrors ?? {}).length === 0,
53
- addressSuggestions: context.addressSuggestions,
54
- prefilled: context.prefilled,
55
- hideEmail: context.hideEmail,
56
- fieldsCountry: context.fieldsCountry,
57
- submitError: context.submitError
58
- };
49
+ if (typedSnapshot.matches("form")) {
50
+ const steps = buildEkycSteps(context.fields, context.hideEmail);
51
+ const currentStepIndex = clampStepIndex(context.currentStepIndex, steps);
52
+ return {
53
+ status: "form",
54
+ fields: context.fields,
55
+ values: context.values,
56
+ validationErrors: context.validationErrors,
57
+ isValid: Object.keys(context.validationErrors ?? {}).length === 0,
58
+ addressSuggestions: context.addressSuggestions,
59
+ prefilled: context.prefilled,
60
+ hideEmail: context.hideEmail,
61
+ fieldsCountry: context.fieldsCountry,
62
+ submitError: context.submitError,
63
+ steps,
64
+ currentStepIndex,
65
+ isStepValid: isStepValid(steps[currentStepIndex], context.validationErrors)
66
+ };
67
+ }
59
68
  if (typedSnapshot.matches("submitting")) return { status: "submitting" };
60
69
  if (typedSnapshot.matches("success")) return { status: "success" };
61
70
  if (typedSnapshot.matches("error")) return {
@@ -102,7 +111,21 @@ function createApi({ actor, trackElementClicked }) {
102
111
  suggestion
103
112
  });
104
113
  },
105
- /** Submits the form. Runs full-form validation; advances only when no errors. */
114
+ /**
115
+ * Continues from the current step: validates its fields and moves to the
116
+ * next step when they pass. On the last step it submits, like `submit()`.
117
+ */
118
+ next() {
119
+ actor.send({ type: "NEXT_STEP" });
120
+ },
121
+ /** Returns to the previous step. Keeps values and errors; does not validate. */
122
+ back() {
123
+ actor.send({ type: "PREVIOUS_STEP" });
124
+ },
125
+ /**
126
+ * Submits the form. Runs full-form validation whatever the current step;
127
+ * advances only when no errors, otherwise moves to the first step with one.
128
+ */
106
129
  submit() {
107
130
  trackElementClicked?.("submit");
108
131
  actor.send({ type: "SUBMIT" });
@@ -1,5 +1,6 @@
1
- import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
2
- import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Dku90kZL.esm.js";
1
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
2
+ import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
3
+ import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-XpxgCAoC.esm.js";
3
4
  //#region src/modules/ekyc-prefill/ekycPrefillActor.ts
4
5
  /** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
5
6
  function createEkycPrefillActor(options = {}) {
@@ -1,6 +1,7 @@
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
- import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import "./Actor-DpTj5PFb.js";
1
+ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput, T as Values, _ as IsNotNever, a as ActorRefFromLogic, b as NonReducibleUnknown, c as AnyEventObject, g as InputFrom, h as GetConcreteByKey, i as ActorRefFrom, j as StateMachine, m as EventObject, o as AnyActorLogic, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, w as StateValue, x as RequiredActorOptions, y as MetaObject } from "./spawn-COZKetCS.js";
2
+ import "./xstate.cjs-D6Ur0X1F.js";
3
+ import { t as Manager } from "./Manager-DufwKlav.js";
4
+ import "./Actor-DqjOqDfU.js";
4
5
  import { a as EkycFormValues, c as EkycValidationErrors } from "./types-DEa3taWc.js";
5
6
  import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, d as EkycPrefillSubmitResponse, i as EkycPrefillErrorKind, o as EkycPrefillInput, r as EkycPrefillContext, t as EkycPrefillConfig, u as EkycPrefillSubmitPlan } from "./types-B-PIc0en.js";
6
7
  //#region src/modules/ekyc-prefill/ekycPrefillStateMachine.d.ts
@@ -44,6 +45,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
44
45
  id: string | undefined;
45
46
  };
46
47
  }>, Values<{
48
+ clearError: {
49
+ type: "clearError";
50
+ params: NonReducibleUnknown;
51
+ };
47
52
  applyForm: {
48
53
  type: "applyForm";
49
54
  params: NonReducibleUnknown;
@@ -76,10 +81,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
76
81
  type: "setSubmitError";
77
82
  params: NonReducibleUnknown;
78
83
  };
79
- clearError: {
80
- type: "clearError";
81
- params: NonReducibleUnknown;
82
- };
83
84
  }>, Values<{
84
85
  isValid: {
85
86
  type: "isValid";
@@ -1,13 +1,13 @@
1
- import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-Bmwy1Fa7.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-BamZ815u.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
- import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
7
- import { n as checkSupport, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
8
- import { t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
9
- import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-BLX7Elcb.esm.js";
10
- import { t as formatCPF } from "./idOcrCpfUtils-Nfln1Psb.esm.js";
4
+ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
+ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
+ import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-DXP2hqVw.esm.js";
7
+ import { t as createBundledDefinitionSource } from "./definitionSource-Nw0YCbpe.esm.js";
8
+ import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
9
+ import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
10
+ import { t as formatCPF } from "./idOcrCpfUtils-D5Gwskxu.esm.js";
11
11
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.ts
12
12
  const isString = (value) => typeof value === "string" && value !== "";
13
13
  function toConfigField(raw) {
@@ -180,7 +180,8 @@ const EKYC_PREFILL_SUPPORTED_IDS = {
180
180
  groupRules: /* @__PURE__ */ new Set(["oneOfRequired"]),
181
181
  optionLists: /* @__PURE__ */ new Set(),
182
182
  conditions: /* @__PURE__ */ new Set(),
183
- prefillSources: /* @__PURE__ */ new Set()
183
+ prefillSources: /* @__PURE__ */ new Set(),
184
+ flags: /* @__PURE__ */ new Set()
184
185
  };
185
186
  const bundled = createBundledDefinitionSource(EKYCPREFILL_DEFINITIONS);
186
187
  /** The catalog definition for a country, or `undefined` when it has none. */
@@ -1,10 +1,201 @@
1
1
  import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
3
- import { a as isValidRut, i as isValidInDrivingLicenseNumber, n as isValidEsDni, r as isValidFiPersonalIdentityCode, t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
4
- import { a as getPostalCodeMaxLength, i as getPostalCodeErrorKey, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-BHNxbuiv.esm.js";
5
- import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-f9PhUo9j.esm.js";
6
- import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
7
- import { a as hasNameCharacters, c as isWithinMaxAge, i as hasDigitCount, l as matchesCharTemplate, o as isInNumericRange, r as hasAllowedCharacters, s as isNotFuture } from "./phoneFormat-DEpESpz2.esm.js";
3
+ import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
4
+ import { i as getPostalCodeErrorParams, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-Nw0YCbpe.esm.js";
5
+ import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-DaaQSVWp.esm.js";
6
+ import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
7
+ import { n as hasAllowedCharacters } from "./phoneFormat-C3q0Ukh4.esm.js";
8
+ //#region src/internal/forms/checks/esDni.ts
9
+ const DNI_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE";
10
+ /**
11
+ * Spanish DNI: 8 digits and the check letter for their value modulo 23
12
+ * (`12345678Z`). A space or hyphen before the letter is ignored. NIEs, the
13
+ * foreigners' IDs, are not DNIs and fail.
14
+ */
15
+ function isValidEsDni(value) {
16
+ const dni = value.replace(/[\s-]/g, "").toUpperCase();
17
+ const match = /^([0-9]{8})([A-Z])$/.exec(dni);
18
+ if (!match) return false;
19
+ const [, digits, letter] = match;
20
+ return DNI_LETTERS[Number(digits) % 23] === letter;
21
+ }
22
+ //#endregion
23
+ //#region src/internal/forms/checks/fiPersonalIdentityCode.ts
24
+ const FI_CHECK_CHARACTERS = "0123456789ABCDEFHJKLMNPRSTUVWXY";
25
+ /** The first year of each century sign; the 2023 reform added Y-U and B-F. */
26
+ const FI_CENTURY = {
27
+ "+": 1800,
28
+ "-": 1900,
29
+ Y: 1900,
30
+ X: 1900,
31
+ W: 1900,
32
+ V: 1900,
33
+ U: 1900,
34
+ A: 2e3,
35
+ B: 2e3,
36
+ C: 2e3,
37
+ D: 2e3,
38
+ E: 2e3,
39
+ F: 2e3
40
+ };
41
+ const isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
42
+ const daysInMonth = (year, month) => month === 2 ? isLeapYear(year) ? 29 : 28 : [
43
+ 4,
44
+ 6,
45
+ 9,
46
+ 11
47
+ ].includes(month) ? 30 : 31;
48
+ /**
49
+ * Finnish personal identity code (henkilötunnus): `DDMMYY`, a century sign,
50
+ * a 3-digit individual number and a check character for the 9 digits modulo
51
+ * 31 (`131052-308T`). The date must exist.
52
+ */
53
+ function isValidFiPersonalIdentityCode(value) {
54
+ const match = /^([0-9]{2})([0-9]{2})([0-9]{2})([-+A-FU-Y])([0-9]{3})([0-9A-Y])$/.exec(value.trim().toUpperCase());
55
+ if (!match) return false;
56
+ const [, dd, mm, yy, sign, individual, check] = match;
57
+ const year = FI_CENTURY[sign] + Number(yy);
58
+ const month = Number(mm);
59
+ const day = Number(dd);
60
+ if (month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) return false;
61
+ return FI_CHECK_CHARACTERS[Number(`${dd}${mm}${yy}${individual}`) % 31] === check;
62
+ }
63
+ //#endregion
64
+ //#region src/internal/forms/checks/inDrivingLicenseNumber.ts
65
+ const IN_DRIVING_LICENSE_REGEX = /^[A-Z]{2}[-\s]?[0-9]{2}(?:[0-9]{2})?[-\s]?(?:19|20)[0-9]{2}[-\s]?[0-9]{7}$/i;
66
+ /**
67
+ * Indian driving licence number format, `SS-RR[RR]-YYYY-NNNNNNN`, with or
68
+ * without hyphens (`MH-12-2011-0012345`, `MH1220110012345`). Format only:
69
+ * the number has no check digit.
70
+ */
71
+ function isValidInDrivingLicenseNumber(value) {
72
+ return IN_DRIVING_LICENSE_REGEX.test(value.trim());
73
+ }
74
+ //#endregion
75
+ //#region src/internal/forms/checks/rut.ts
76
+ /**
77
+ * Chilean RUT/RUN: a 7- or 8-digit body and a check character, 0-9 or K,
78
+ * computed modulo 11. Dots, a hyphen and spaces are ignored
79
+ * (`12.345.678-5`, `12345678-5`, `123456785`).
80
+ */
81
+ function isValidRut(value) {
82
+ const rut = value.replace(/[.\s-]/g, "").toUpperCase();
83
+ const match = /^([0-9]{7,8})([0-9K])$/.exec(rut);
84
+ if (!match) return false;
85
+ const [, body, check] = match;
86
+ let sum = 0;
87
+ let factor = 2;
88
+ for (let i = body.length - 1; i >= 0; i--) {
89
+ sum += Number(body[i]) * factor;
90
+ factor = factor === 7 ? 2 : factor + 1;
91
+ }
92
+ const rest = 11 - sum % 11;
93
+ return check === (rest === 11 ? "0" : rest === 10 ? "K" : String(rest));
94
+ }
95
+ //#endregion
96
+ //#region src/internal/forms/checks/digitCount.ts
97
+ /** `digitCount`: only the digits 0-9, with a count in `lengths` or between `min` and `max`. */
98
+ function hasDigitCount(value, count) {
99
+ if (!/^[0-9]+$/.test(value)) return false;
100
+ const { length } = value;
101
+ if (count.lengths) return count.lengths.includes(length);
102
+ return (count.min === void 0 || length >= count.min) && (count.max === void 0 || length <= count.max);
103
+ }
104
+ /**
105
+ * The `digitCount` message: one length (`exactDigits`), a list of lengths
106
+ * (`digitsOneOf`), or a range (`digitsBetween`), with the counts as params.
107
+ */
108
+ function digitCountError(count) {
109
+ if (count.lengths?.length === 1) return {
110
+ key: "verification.errors.exactDigits",
111
+ params: { length: count.lengths[0] }
112
+ };
113
+ if (count.lengths) return {
114
+ key: "verification.errors.digitsOneOf",
115
+ params: { lengths: [...count.lengths] }
116
+ };
117
+ return {
118
+ key: "verification.errors.digitsBetween",
119
+ params: {
120
+ min: count.min ?? 0,
121
+ max: count.max ?? 0
122
+ }
123
+ };
124
+ }
125
+ //#endregion
126
+ //#region src/internal/forms/checks/emailFormat.ts
127
+ /** One `@`, no whitespace, and a dot inside the domain. */
128
+ const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
129
+ /** Whether a value has an email's shape: one `@`, no spaces, a dot in the domain. */
130
+ function isEmailFormat(value) {
131
+ return EMAIL_PATTERN.test(value);
132
+ }
133
+ //#endregion
134
+ //#region src/internal/forms/checks/noPoBox.ts
135
+ const PO_BOX_PATTERN = /POBox|P\.O\.Box|pobox|postofficebox|postbox|po\.box|p\.o\.box/i;
136
+ /** Whether an address describes a P.O. box, ignoring whitespace and case. */
137
+ function isPoBox(address) {
138
+ return PO_BOX_PATTERN.test(address.replace(/\s/g, ""));
139
+ }
140
+ //#endregion
141
+ //#region src/internal/forms/checks/charTemplate.ts
142
+ const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
143
+ /**
144
+ * `charTemplate`: the whole value matches one template, where `9` is a digit,
145
+ * `A` an uppercase letter A-Z and any other character stands for itself.
146
+ * `ignoreCase` also accepts lowercase letters and literals in either case.
147
+ */
148
+ function matchesCharTemplate(value, templates, ignoreCase = false) {
149
+ return templates.some((template) => {
150
+ const pattern = [...template].map((char) => {
151
+ if (char === "9") return "[0-9]";
152
+ if (char === "A") return "[A-Z]";
153
+ return escapeForPattern(char);
154
+ }).join("");
155
+ return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
156
+ });
157
+ }
158
+ //#endregion
159
+ //#region src/internal/forms/checks/maxAge.ts
160
+ /**
161
+ * `maxAge`: an ISO `YYYY-MM-DD` date of birth at most `years` full years
162
+ * before `today`, also ISO, in the user's calendar. As in SDK1, someone turns
163
+ * a year older on their birthday. A value that isn't an ISO date passes; the
164
+ * date input owns that.
165
+ */
166
+ function isWithinMaxAge(value, today, years) {
167
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
168
+ const [birthYear, birthMonthDay] = [value.slice(0, 4), value.slice(5)];
169
+ const [todayYear, todayMonthDay] = [today.slice(0, 4), today.slice(5)];
170
+ return Number(todayYear) - Number(birthYear) - (todayMonthDay < birthMonthDay ? 1 : 0) <= years;
171
+ }
172
+ //#endregion
173
+ //#region src/internal/forms/checks/nameCharacters.ts
174
+ const NAME_REGEX = /^[\p{L}\p{M} '’-]+$/u;
175
+ /** `nameCharacters`: letters from any script, spaces, hyphens and apostrophes. */
176
+ function hasNameCharacters(value) {
177
+ return NAME_REGEX.test(value);
178
+ }
179
+ //#endregion
180
+ //#region src/internal/forms/checks/notFuture.ts
181
+ /**
182
+ * `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
183
+ * the user's calendar. A value that isn't an ISO date passes; the date input
184
+ * owns that.
185
+ */
186
+ function isNotFuture(value, today) {
187
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
188
+ return value <= today;
189
+ }
190
+ //#endregion
191
+ //#region src/internal/forms/checks/numericRange.ts
192
+ /** `numericRange`: a whole number from `min` to `max`. */
193
+ function isInNumericRange(value, min, max) {
194
+ if (!/^-?[0-9]+$/.test(value)) return false;
195
+ const number = Number(value);
196
+ return number >= min && number <= max;
197
+ }
198
+ //#endregion
8
199
  //#region src/modules/ekyc/ekycValidators.ts
9
200
  async function loadPhoneValidator() {
10
201
  if (!await loadPhoneValidation()) throw new Error("Failed to load the phone validation rules");
@@ -25,11 +216,6 @@ function formatSSN(value) {
25
216
  function cleanName(name) {
26
217
  return (name ?? "").replace(/[^\p{L}\p{M}\s,'’´-]/gu, "").slice(0, 100);
27
218
  }
28
- const PO_BOX_REGEX = /POBox|P\.O\.Box|pobox|postofficebox|postbox|po\.box|p\.o\.box/i;
29
- /** Returns true if the address looks like a P.O. Box */
30
- function isPoBox(address) {
31
- return PO_BOX_REGEX.test(address.replace(/\s/g, ""));
32
- }
33
219
  function validatePhone(phone, country) {
34
220
  return getPhoneValidation()?.isValid(phone, country) ?? false;
35
221
  }
@@ -42,24 +228,6 @@ const ONE_OF_REQUIRED_ERROR_KEY = "verification.errors.dobOrSsnRequired";
42
228
  const oneOfRequiredErrorKey = (rule) => rule.message ?? "verification.errors.dobOrSsnRequired";
43
229
  const PHONE_INVALID_KEY = "verification.errors.phoneInvalid";
44
230
  const INVALID_ID_NUMBER_KEY = "verification.errors.invalidIdNumber";
45
- /** The digitCount message: one length, a list of lengths, or a range. */
46
- const digitCountError = (rule) => {
47
- if (rule.lengths?.length === 1) return {
48
- key: "verification.errors.exactDigits",
49
- params: { length: rule.lengths[0] }
50
- };
51
- if (rule.lengths) return {
52
- key: "verification.errors.digitsOneOf",
53
- params: { lengths: rule.lengths }
54
- };
55
- return {
56
- key: "verification.errors.digitsBetween",
57
- params: {
58
- min: rule.min ?? 0,
59
- max: rule.max ?? 0
60
- }
61
- };
62
- };
63
231
  /**
64
232
  * A national ID check: blank passes, anything else must satisfy `isValid`.
65
233
  * The error is the vocabulary's message for these rules; a definition names
@@ -72,14 +240,6 @@ const idNumberValidator = (isValid) => (value) => {
72
240
  };
73
241
  const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
74
242
  const SSN_FORMAT_REGEX = /^\d{3}-\d{2}-\d{4}$/;
75
- const EMAIL_FORMAT_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
76
- const buildPostalCodeParams = (country) => {
77
- const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
78
- if (fixedLen !== void 0) return { length: fixedLen };
79
- let maxLen = getPostalCodeMaxLength(country);
80
- if (country === "US" || country === "BR") maxLen = maxLen - 1;
81
- return { maxLength: maxLen };
82
- };
83
243
  const requiredError = (field) => {
84
244
  const fieldName = field.displayLabel ?? field.label;
85
245
  return fieldName ? {
@@ -128,7 +288,7 @@ const createValidators = () => {
128
288
  if (validatePostalCode(value, rule.country)) return void 0;
129
289
  return {
130
290
  key: getPostalCodeErrorKey(rule.country),
131
- params: buildPostalCodeParams(rule.country)
291
+ params: getPostalCodeErrorParams(rule.country)
132
292
  };
133
293
  },
134
294
  phoneFormat: (value, rule) => {
@@ -139,7 +299,7 @@ const createValidators = () => {
139
299
  },
140
300
  emailFormat: (value) => {
141
301
  if (value.trim().length === 0) return void 0;
142
- return EMAIL_FORMAT_REGEX.test(value) ? void 0 : { key: "verification.errors.emailInvalid" };
302
+ return isEmailFormat(value) ? void 0 : { key: "verification.errors.emailInvalid" };
143
303
  },
144
304
  exactLength: (value, rule) => {
145
305
  if (rule.type !== "exactLength") return void 0;