@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
@@ -0,0 +1,1472 @@
1
+ import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
+ //#region ../form-definitions/generated/ekycIndex.ts
3
+ const EKYC_INDEX = [
4
+ {
5
+ id: "ekyc/AR/AR_CREDIT_BUR_1",
6
+ country: "AR",
7
+ source: "AR_CREDIT_BUR_1"
8
+ },
9
+ {
10
+ id: "ekyc/AR/AR_RES_REGISTER",
11
+ country: "AR",
12
+ source: "AR_RES_REGISTER"
13
+ },
14
+ {
15
+ id: "ekyc/BE/BE_CREDIT_TELCO",
16
+ country: "BE",
17
+ source: "BE_CREDIT_TELCO"
18
+ },
19
+ {
20
+ id: "ekyc/BR/BR_GOVT_1",
21
+ country: "BR",
22
+ source: "BR_GOVT_1"
23
+ },
24
+ {
25
+ id: "ekyc/BR/BR_TAX_PHONE_REGISTER",
26
+ country: "BR",
27
+ source: "BR_TAX_PHONE_REGISTER"
28
+ },
29
+ {
30
+ id: "ekyc/CA/CA_CREDIT_FINTRAC",
31
+ country: "CA",
32
+ source: "CA_CREDIT_FINTRAC"
33
+ },
34
+ {
35
+ id: "ekyc/CA/CA_RES_CREDIT",
36
+ country: "CA",
37
+ source: "CA_RES_CREDIT"
38
+ },
39
+ {
40
+ id: "ekyc/CA/CA_TELCO",
41
+ country: "CA",
42
+ source: "CA_TELCO"
43
+ },
44
+ {
45
+ id: "ekyc/CL/CL_CIVIL_REGISTER_2",
46
+ country: "CL",
47
+ source: "CL_CIVIL_REGISTER_2"
48
+ },
49
+ {
50
+ id: "ekyc/CO/CO_CIVIL_REGISTER_1",
51
+ country: "CO",
52
+ source: "CO_CIVIL_REGISTER_1"
53
+ },
54
+ {
55
+ id: "ekyc/DE/DE_PHONE_MOBILE_REGISTER",
56
+ country: "DE",
57
+ source: "DE_PHONE_MOBILE_REGISTER"
58
+ },
59
+ {
60
+ id: "ekyc/DK/DK_CIVIL_REG_CREDIT_TELCO",
61
+ country: "DK",
62
+ source: "DK_CIVIL_REG_CREDIT_TELCO"
63
+ },
64
+ {
65
+ id: "ekyc/ES/ES_PHONE_REGISTER_2",
66
+ country: "ES",
67
+ source: "ES_PHONE_REGISTER_2"
68
+ },
69
+ {
70
+ id: "ekyc/FI/FI_CONSUMER_POP_REG_TELCO",
71
+ country: "FI",
72
+ source: "FI_CONSUMER_POP_REG_TELCO"
73
+ },
74
+ {
75
+ id: "ekyc/FI/FI_NATIONAL_ID",
76
+ country: "FI",
77
+ source: "FI_NATIONAL_ID"
78
+ },
79
+ {
80
+ id: "ekyc/GB/GB_2X2",
81
+ country: "GB",
82
+ source: "GB_2X2"
83
+ },
84
+ {
85
+ id: "ekyc/GB/UK_VOTER_REGISTER",
86
+ country: "GB",
87
+ source: "UK_VOTER_REGISTER"
88
+ },
89
+ {
90
+ id: "ekyc/GR/GR_1",
91
+ country: "GR",
92
+ source: "GR_1"
93
+ },
94
+ {
95
+ id: "ekyc/GT/GT_1",
96
+ country: "GT",
97
+ source: "GT_1"
98
+ },
99
+ {
100
+ id: "ekyc/IN/IN_DMV",
101
+ country: "IN",
102
+ source: "IN_DMV"
103
+ },
104
+ {
105
+ id: "ekyc/IN/INDIA_PAN_1",
106
+ country: "IN",
107
+ source: "INDIA_PAN_1"
108
+ },
109
+ {
110
+ id: "ekyc/IN/INDIA_PASSPORT_1",
111
+ country: "IN",
112
+ source: "INDIA_PASSPORT_1"
113
+ },
114
+ {
115
+ id: "ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO",
116
+ country: "IT",
117
+ source: "IT_CIVIL_REG_CREDIT_TELCO"
118
+ },
119
+ {
120
+ id: "ekyc/KG/KG_VOTER_REGISTER",
121
+ country: "KG",
122
+ source: "KG_VOTER_REGISTER"
123
+ },
124
+ {
125
+ id: "ekyc/MX/MX_CIVIL_REGISTER_2",
126
+ country: "MX",
127
+ source: "MX_CIVIL_REGISTER_2"
128
+ },
129
+ {
130
+ id: "ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO",
131
+ country: "NL",
132
+ source: "NL_CIVIL_REG_CREDIT_TELCO"
133
+ },
134
+ {
135
+ id: "ekyc/NL/NL_CONSUMER_POP_REG_TELCO",
136
+ country: "NL",
137
+ source: "NL_CONSUMER_POP_REG_TELCO"
138
+ },
139
+ {
140
+ id: "ekyc/NO/NO_CONS_POP_REG",
141
+ country: "NO",
142
+ source: "NO_CONS_POP_REG"
143
+ },
144
+ {
145
+ id: "ekyc/PE/PE_CIVIL_REGISTER_2",
146
+ country: "PE",
147
+ source: "PE_CIVIL_REGISTER_2"
148
+ },
149
+ {
150
+ id: "ekyc/PH/PH_RES_CREDIT",
151
+ country: "PH",
152
+ source: "PH_RES_CREDIT"
153
+ },
154
+ {
155
+ id: "ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO",
156
+ country: "PT",
157
+ source: "PT_CIVIL_REG_CREDIT_TELCO"
158
+ },
159
+ {
160
+ id: "ekyc/SG/SG_PHONE_REGISTER",
161
+ country: "SG",
162
+ source: "SG_PHONE_REGISTER"
163
+ },
164
+ {
165
+ id: "ekyc/US/US_CREDIT_BUREAU_1",
166
+ country: "US",
167
+ source: "US_CREDIT_BUREAU_1"
168
+ },
169
+ {
170
+ id: "ekyc/US/US_CREDIT_BUREAU_3",
171
+ country: "US",
172
+ source: "US_CREDIT_BUREAU_3"
173
+ },
174
+ {
175
+ id: "ekyc/US/US_CREDIT_TELCO",
176
+ country: "US",
177
+ source: "US_CREDIT_TELCO"
178
+ },
179
+ {
180
+ id: "ekyc/US/US_TELCO_1",
181
+ country: "US",
182
+ source: "US_TELCO_1"
183
+ },
184
+ {
185
+ id: "ekyc/US/US_TELCO_2",
186
+ country: "US",
187
+ source: "US_TELCO_2"
188
+ },
189
+ {
190
+ id: "ekyc/VE/VE_CIVIL_REGISTER",
191
+ country: "VE",
192
+ source: "VE_CIVIL_REGISTER"
193
+ }
194
+ ];
195
+ //#endregion
196
+ //#region ../form-definitions/generated/vocabulary.ts
197
+ const VOCABULARY = {
198
+ version: "1.3",
199
+ entries: [
200
+ {
201
+ id: "text",
202
+ type: "kind",
203
+ since: "1.0"
204
+ },
205
+ {
206
+ id: "date",
207
+ type: "kind",
208
+ since: "1.0"
209
+ },
210
+ {
211
+ id: "choice",
212
+ type: "kind",
213
+ since: "1.0"
214
+ },
215
+ {
216
+ id: "phone",
217
+ type: "kind",
218
+ since: "1.0"
219
+ },
220
+ {
221
+ id: "list",
222
+ type: "kind",
223
+ since: "1.3"
224
+ },
225
+ {
226
+ id: "masked",
227
+ type: "widget",
228
+ since: "1.0"
229
+ },
230
+ {
231
+ id: "addressSearch",
232
+ type: "widget",
233
+ since: "1.0"
234
+ },
235
+ {
236
+ id: "select",
237
+ type: "widget",
238
+ since: "1.0"
239
+ },
240
+ {
241
+ id: "radio",
242
+ type: "widget",
243
+ since: "1.0"
244
+ },
245
+ {
246
+ id: "text",
247
+ type: "keyboard",
248
+ since: "1.0"
249
+ },
250
+ {
251
+ id: "numeric",
252
+ type: "keyboard",
253
+ since: "1.0"
254
+ },
255
+ {
256
+ id: "phone",
257
+ type: "keyboard",
258
+ since: "1.0"
259
+ },
260
+ {
261
+ id: "email",
262
+ type: "keyboard",
263
+ since: "1.0"
264
+ },
265
+ {
266
+ id: "url",
267
+ type: "keyboard",
268
+ since: "1.3"
269
+ },
270
+ {
271
+ id: "givenName",
272
+ type: "autofill",
273
+ since: "1.0"
274
+ },
275
+ {
276
+ id: "middleName",
277
+ type: "autofill",
278
+ since: "1.0"
279
+ },
280
+ {
281
+ id: "familyName",
282
+ type: "autofill",
283
+ since: "1.0"
284
+ },
285
+ {
286
+ id: "email",
287
+ type: "autofill",
288
+ since: "1.0"
289
+ },
290
+ {
291
+ id: "phone",
292
+ type: "autofill",
293
+ since: "1.0"
294
+ },
295
+ {
296
+ id: "addressLine1",
297
+ type: "autofill",
298
+ since: "1.0"
299
+ },
300
+ {
301
+ id: "addressLine2",
302
+ type: "autofill",
303
+ since: "1.0"
304
+ },
305
+ {
306
+ id: "addressLevel1",
307
+ type: "autofill",
308
+ since: "1.0"
309
+ },
310
+ {
311
+ id: "addressLevel2",
312
+ type: "autofill",
313
+ since: "1.0"
314
+ },
315
+ {
316
+ id: "postalCode",
317
+ type: "autofill",
318
+ since: "1.0"
319
+ },
320
+ {
321
+ id: "birthday",
322
+ type: "autofill",
323
+ since: "1.0"
324
+ },
325
+ {
326
+ id: "organization",
327
+ type: "autofill",
328
+ since: "1.0"
329
+ },
330
+ {
331
+ id: "ssnFormat",
332
+ type: "rule",
333
+ since: "1.0",
334
+ message: "verification.errors.ssnFormat"
335
+ },
336
+ {
337
+ id: "cpf",
338
+ type: "rule",
339
+ since: "1.0",
340
+ message: "verification.errors.invalidTaxId"
341
+ },
342
+ {
343
+ id: "cnpj",
344
+ type: "rule",
345
+ since: "1.0",
346
+ message: "ekyb.error.invalidTaxId"
347
+ },
348
+ {
349
+ id: "postalCodeFormat",
350
+ type: "rule",
351
+ since: "1.0",
352
+ requiresCountry: true
353
+ },
354
+ {
355
+ id: "phoneFormat",
356
+ type: "rule",
357
+ since: "1.0",
358
+ message: "verification.errors.phoneInvalid"
359
+ },
360
+ {
361
+ id: "emailFormat",
362
+ type: "rule",
363
+ since: "1.0",
364
+ message: "verification.errors.emailInvalid"
365
+ },
366
+ {
367
+ id: "noPoBox",
368
+ type: "rule",
369
+ since: "1.0",
370
+ message: "verification.errors.poBox"
371
+ },
372
+ {
373
+ id: "exactLength",
374
+ type: "rule",
375
+ since: "1.0",
376
+ params: { length: "integer" },
377
+ message: "verification.errors.exactly10Characters"
378
+ },
379
+ {
380
+ id: "nameCharacters",
381
+ type: "rule",
382
+ since: "1.0",
383
+ message: "verification.errors.nameCharacters"
384
+ },
385
+ {
386
+ id: "notFuture",
387
+ type: "rule",
388
+ since: "1.0",
389
+ message: "verification.errors.futureDate"
390
+ },
391
+ {
392
+ id: "digitCount",
393
+ type: "rule",
394
+ since: "1.0",
395
+ params: {
396
+ lengths: "integer[]?",
397
+ min: "integer?",
398
+ max: "integer?"
399
+ }
400
+ },
401
+ {
402
+ id: "allowedCharacters",
403
+ type: "rule",
404
+ since: "1.0",
405
+ message: "verification.errors.invalidCharacters",
406
+ params: {
407
+ classes: "string[]",
408
+ extra: "string?",
409
+ ascii: "boolean?"
410
+ },
411
+ paramsSince: { ascii: "1.3" }
412
+ },
413
+ {
414
+ id: "charTemplate",
415
+ type: "rule",
416
+ since: "1.0",
417
+ message: "verification.errors.invalidFormat",
418
+ params: {
419
+ templates: "string[]",
420
+ ignoreCase: "boolean?"
421
+ }
422
+ },
423
+ {
424
+ id: "numericRange",
425
+ type: "rule",
426
+ since: "1.0",
427
+ message: "verification.errors.numberBetween",
428
+ params: {
429
+ min: "integer",
430
+ max: "integer"
431
+ }
432
+ },
433
+ {
434
+ id: "rut",
435
+ type: "rule",
436
+ since: "1.0",
437
+ message: "verification.errors.invalidIdNumber"
438
+ },
439
+ {
440
+ id: "esDni",
441
+ type: "rule",
442
+ since: "1.0",
443
+ message: "verification.errors.invalidIdNumber"
444
+ },
445
+ {
446
+ id: "fiPersonalIdentityCode",
447
+ type: "rule",
448
+ since: "1.0",
449
+ message: "verification.errors.invalidIdNumber"
450
+ },
451
+ {
452
+ id: "inDrivingLicenseNumber",
453
+ type: "rule",
454
+ since: "1.0",
455
+ message: "verification.errors.invalidIdNumber"
456
+ },
457
+ {
458
+ id: "curp",
459
+ type: "rule",
460
+ since: "1.1",
461
+ message: "verification.errors.invalidIdNumber"
462
+ },
463
+ {
464
+ id: "phoneDigits",
465
+ type: "rule",
466
+ since: "1.0",
467
+ message: "verification.errors.phoneInvalid",
468
+ params: {
469
+ min: "integer",
470
+ max: "integer"
471
+ }
472
+ },
473
+ {
474
+ id: "oneOfRequired",
475
+ type: "groupRule",
476
+ since: "1.0"
477
+ },
478
+ {
479
+ id: "rulesByOption",
480
+ type: "groupRule",
481
+ since: "1.0",
482
+ params: {
483
+ selector: "string",
484
+ target: "string",
485
+ cases: "object"
486
+ }
487
+ },
488
+ {
489
+ id: "uppercase",
490
+ type: "transform",
491
+ since: "1.0"
492
+ },
493
+ {
494
+ id: "stripSeparators",
495
+ type: "transform",
496
+ since: "1.0",
497
+ params: { chars: "string?" }
498
+ },
499
+ {
500
+ id: "e164",
501
+ type: "transform",
502
+ since: "1.0"
503
+ },
504
+ {
505
+ id: "trim",
506
+ type: "transform",
507
+ since: "1.3"
508
+ },
509
+ {
510
+ id: "nationalNumber",
511
+ type: "transform",
512
+ since: "1.0"
513
+ },
514
+ {
515
+ id: "e164NoPlus",
516
+ type: "transform",
517
+ since: "1.0"
518
+ },
519
+ {
520
+ id: "digitGroups",
521
+ type: "transform",
522
+ since: "1.0",
523
+ params: {
524
+ groups: "integer[]",
525
+ separator: "string"
526
+ }
527
+ },
528
+ {
529
+ id: "US_STATES",
530
+ type: "optionList",
531
+ since: "1.0",
532
+ values: [
533
+ "AL",
534
+ "AK",
535
+ "AZ",
536
+ "AR",
537
+ "CA",
538
+ "CO",
539
+ "CT",
540
+ "DE",
541
+ "FL",
542
+ "GA",
543
+ "HI",
544
+ "ID",
545
+ "IL",
546
+ "IN",
547
+ "IA",
548
+ "KS",
549
+ "KY",
550
+ "LA",
551
+ "ME",
552
+ "MD",
553
+ "MA",
554
+ "MI",
555
+ "MN",
556
+ "MS",
557
+ "MO",
558
+ "MT",
559
+ "NE",
560
+ "NV",
561
+ "NH",
562
+ "NJ",
563
+ "NM",
564
+ "NY",
565
+ "NC",
566
+ "ND",
567
+ "OH",
568
+ "OK",
569
+ "OR",
570
+ "PA",
571
+ "RI",
572
+ "SC",
573
+ "SD",
574
+ "TN",
575
+ "TX",
576
+ "UT",
577
+ "VT",
578
+ "VA",
579
+ "WA",
580
+ "WV",
581
+ "WI",
582
+ "WY"
583
+ ]
584
+ },
585
+ {
586
+ id: "CA_PROVINCES",
587
+ type: "optionList",
588
+ since: "1.0",
589
+ values: [
590
+ "AB",
591
+ "BC",
592
+ "MB",
593
+ "NB",
594
+ "NL",
595
+ "NS",
596
+ "ON",
597
+ "PE",
598
+ "QC",
599
+ "SK",
600
+ "NT",
601
+ "NU",
602
+ "YT"
603
+ ]
604
+ },
605
+ {
606
+ id: "BR_STATES",
607
+ type: "optionList",
608
+ since: "1.0",
609
+ values: [
610
+ "AC",
611
+ "AL",
612
+ "AP",
613
+ "AM",
614
+ "BA",
615
+ "CE",
616
+ "DF",
617
+ "ES",
618
+ "GO",
619
+ "MA",
620
+ "MT",
621
+ "MS",
622
+ "MG",
623
+ "PA",
624
+ "PB",
625
+ "PR",
626
+ "PE",
627
+ "PI",
628
+ "RJ",
629
+ "RN",
630
+ "RS",
631
+ "RO",
632
+ "RR",
633
+ "SC",
634
+ "SP",
635
+ "SE",
636
+ "TO"
637
+ ]
638
+ },
639
+ {
640
+ id: "IN_STATES",
641
+ type: "optionList",
642
+ since: "1.0",
643
+ values: [
644
+ "AN",
645
+ "AP",
646
+ "AR",
647
+ "AS",
648
+ "BR",
649
+ "CH",
650
+ "CT",
651
+ "DH",
652
+ "DL",
653
+ "GA",
654
+ "GJ",
655
+ "HR",
656
+ "HP",
657
+ "JK",
658
+ "JH",
659
+ "KA",
660
+ "KL",
661
+ "LA",
662
+ "LD",
663
+ "MP",
664
+ "MH",
665
+ "MN",
666
+ "ML",
667
+ "MZ",
668
+ "NL",
669
+ "OR",
670
+ "PY",
671
+ "PB",
672
+ "RJ",
673
+ "SK",
674
+ "TN",
675
+ "TG",
676
+ "TR",
677
+ "UP",
678
+ "UK",
679
+ "WB"
680
+ ]
681
+ },
682
+ {
683
+ id: "PH_ID_TYPES",
684
+ type: "optionList",
685
+ since: "1.0",
686
+ values: [
687
+ "TIN",
688
+ "SSS",
689
+ "GSIS"
690
+ ]
691
+ },
692
+ {
693
+ id: "riskAddon",
694
+ type: "condition",
695
+ since: "1.0"
696
+ },
697
+ {
698
+ id: "fieldFilled",
699
+ type: "condition",
700
+ since: "1.0"
701
+ },
702
+ {
703
+ id: "name",
704
+ type: "group",
705
+ modules: ["ekyc"],
706
+ enabledBy: ["checkName"],
707
+ sourceKey: "nameSource",
708
+ displayModeKey: "nameDisplayMode",
709
+ since: "1.0"
710
+ },
711
+ {
712
+ id: "dateOfBirth",
713
+ type: "group",
714
+ modules: ["ekyc"],
715
+ enabledBy: ["checkDob"],
716
+ sourceKey: "dobSource",
717
+ displayModeKey: "dobDisplayMode",
718
+ since: "1.0"
719
+ },
720
+ {
721
+ id: "email",
722
+ type: "group",
723
+ modules: ["ekyc", "kybChecks"],
724
+ enabledBy: ["checkEmail", "riskAddon:emailCheck"],
725
+ sourceKey: "emailSource",
726
+ displayModeKey: "emailDisplayMode",
727
+ since: "1.0"
728
+ },
729
+ {
730
+ id: "phone",
731
+ type: "group",
732
+ modules: ["ekyc", "kybChecks"],
733
+ enabledBy: [
734
+ "checkPhone",
735
+ "riskAddon:phoneCheck",
736
+ "riskAddon:advancedPhoneCheck",
737
+ "riskAddon:phoneProfile"
738
+ ],
739
+ sourceKey: "phoneSource",
740
+ displayModeKey: "phoneDisplayMode",
741
+ since: "1.0"
742
+ },
743
+ {
744
+ id: "address",
745
+ type: "group",
746
+ modules: [
747
+ "ekyc",
748
+ "ekyb",
749
+ "kybChecks"
750
+ ],
751
+ enabledBy: ["checkAddress"],
752
+ sourceKey: "addressSource",
753
+ displayModeKey: "addressDisplayMode",
754
+ since: "1.0"
755
+ },
756
+ {
757
+ id: "ssn",
758
+ type: "group",
759
+ modules: ["ekyc"],
760
+ enabledBy: ["checkSsn"],
761
+ sourceKey: "ssnSource",
762
+ displayModeKey: "ssnDisplayMode",
763
+ since: "1.0"
764
+ },
765
+ {
766
+ id: "last4SSN",
767
+ type: "group",
768
+ modules: ["ekyc"],
769
+ enabledBy: ["checkLast4SSN"],
770
+ sourceKey: "last4SSNSource",
771
+ displayModeKey: "last4SSNDisplayMode",
772
+ since: "1.0"
773
+ },
774
+ {
775
+ id: "idNumber",
776
+ type: "group",
777
+ modules: ["ekyc"],
778
+ enabledBy: ["checkIdNum"],
779
+ sourceKey: "idNumSource",
780
+ displayModeKey: "idNumDisplayMode",
781
+ since: "1.0"
782
+ },
783
+ {
784
+ id: "idNumber1",
785
+ type: "group",
786
+ modules: ["ekyc"],
787
+ enabledBy: ["checkIdNum1"],
788
+ sourceKey: "idNum1Source",
789
+ displayModeKey: "idNum1DisplayMode",
790
+ since: "1.0"
791
+ },
792
+ {
793
+ id: "nationality",
794
+ type: "group",
795
+ modules: ["ekyc"],
796
+ enabledBy: ["checkNationality"],
797
+ sourceKey: "nationalitySource",
798
+ displayModeKey: "nationalityDisplayMode",
799
+ since: "1.0"
800
+ },
801
+ {
802
+ id: "gender",
803
+ type: "group",
804
+ modules: ["ekyc"],
805
+ enabledBy: ["checkGender"],
806
+ sourceKey: "genderSource",
807
+ displayModeKey: "genderDisplayMode",
808
+ since: "1.0"
809
+ },
810
+ {
811
+ id: "panNumber",
812
+ type: "group",
813
+ modules: ["ekyc"],
814
+ enabledBy: ["checkPanNumber"],
815
+ sourceKey: "panNumberSource",
816
+ displayModeKey: "panNumberDisplayMode",
817
+ since: "1.0"
818
+ },
819
+ {
820
+ id: "dlNumber",
821
+ type: "group",
822
+ modules: ["ekyc"],
823
+ enabledBy: ["checkDlNumber"],
824
+ sourceKey: "dlNumberSource",
825
+ displayModeKey: "dlNumberDisplayMode",
826
+ since: "1.0"
827
+ },
828
+ {
829
+ id: "dlState",
830
+ type: "group",
831
+ modules: ["ekyc"],
832
+ enabledBy: ["checkDlState"],
833
+ sourceKey: "dlStateSource",
834
+ displayModeKey: "dlStateDisplayMode",
835
+ since: "1.0"
836
+ },
837
+ {
838
+ id: "dlExpireAt",
839
+ type: "group",
840
+ modules: ["ekyc"],
841
+ enabledBy: ["checkDlExpireAt"],
842
+ sourceKey: "dlExpireAtSource",
843
+ displayModeKey: "dlExpireAtDisplayMode",
844
+ since: "1.0"
845
+ },
846
+ {
847
+ id: "idType",
848
+ type: "group",
849
+ modules: ["ekyc"],
850
+ enabledBy: ["checkIdType"],
851
+ sourceKey: "idTypeSource",
852
+ displayModeKey: "idTypeDisplayMode",
853
+ since: "1.2"
854
+ },
855
+ {
856
+ id: "issueDate",
857
+ type: "group",
858
+ modules: ["ekyc"],
859
+ enabledBy: ["checkIssueDate"],
860
+ sourceKey: "issueDateSource",
861
+ displayModeKey: "issueDateDisplayMode",
862
+ since: "1.2"
863
+ },
864
+ {
865
+ id: "fileNumber",
866
+ type: "group",
867
+ modules: ["ekyc"],
868
+ enabledBy: ["checkFileNumber"],
869
+ sourceKey: "fileNumberSource",
870
+ displayModeKey: "fileNumberDisplayMode",
871
+ since: "1.2"
872
+ },
873
+ {
874
+ id: "businessName",
875
+ type: "group",
876
+ modules: ["ekyb", "kybChecks"],
877
+ enabledBy: ["checkBusinessName"],
878
+ since: "1.0"
879
+ },
880
+ {
881
+ id: "taxId",
882
+ type: "group",
883
+ modules: ["ekyb", "kybChecks"],
884
+ enabledBy: ["checkTaxId"],
885
+ since: "1.0"
886
+ },
887
+ {
888
+ id: "ubos",
889
+ type: "group",
890
+ modules: ["ekyb"],
891
+ enabledBy: ["checkUniqueBeneficialOwner"],
892
+ since: "1.0"
893
+ },
894
+ {
895
+ id: "country",
896
+ type: "group",
897
+ modules: ["kybChecks"],
898
+ since: "1.3"
899
+ },
900
+ {
901
+ id: "website",
902
+ type: "group",
903
+ modules: ["kybChecks"],
904
+ since: "1.3"
905
+ },
906
+ {
907
+ id: "alternativeNames",
908
+ type: "group",
909
+ modules: ["kybChecks"],
910
+ since: "1.3"
911
+ },
912
+ {
913
+ id: "personNames",
914
+ type: "group",
915
+ modules: ["kybChecks"],
916
+ since: "1.3"
917
+ },
918
+ {
919
+ id: "other",
920
+ type: "group",
921
+ modules: ["kybChecks"],
922
+ since: "1.3"
923
+ },
924
+ {
925
+ id: "editable",
926
+ type: "displayMode",
927
+ since: "1.2"
928
+ },
929
+ {
930
+ id: "readOnly",
931
+ type: "displayMode",
932
+ since: "1.2"
933
+ },
934
+ {
935
+ id: "hidden",
936
+ type: "displayMode",
937
+ since: "1.2"
938
+ },
939
+ {
940
+ id: "userInput",
941
+ type: "prefillOrigin",
942
+ since: "1.2",
943
+ configValues: ["userInput"]
944
+ },
945
+ {
946
+ id: "document",
947
+ type: "prefillOrigin",
948
+ since: "1.2",
949
+ configValues: ["document"]
950
+ },
951
+ {
952
+ id: "poa",
953
+ type: "prefillOrigin",
954
+ since: "1.2",
955
+ configValues: ["poa"]
956
+ },
957
+ {
958
+ id: "phoneModule",
959
+ type: "prefillOrigin",
960
+ since: "1.2",
961
+ configValues: ["phoneModuleInput"],
962
+ riskAddons: ["phoneCheck", "phoneProfile"],
963
+ groups: ["phone"],
964
+ locks: true
965
+ },
966
+ {
967
+ id: "emailModule",
968
+ type: "prefillOrigin",
969
+ since: "1.2",
970
+ configValues: ["emailModuleInput"],
971
+ riskAddons: ["emailCheck"],
972
+ groups: ["email"],
973
+ locks: true
974
+ },
975
+ {
976
+ id: "document.firstName",
977
+ type: "prefillSource",
978
+ origin: "document",
979
+ since: "1.2"
980
+ },
981
+ {
982
+ id: "document.middleName",
983
+ type: "prefillSource",
984
+ origin: "document",
985
+ since: "1.2"
986
+ },
987
+ {
988
+ id: "document.paternalLastName",
989
+ type: "prefillSource",
990
+ origin: "document",
991
+ since: "1.2"
992
+ },
993
+ {
994
+ id: "document.maternalLastName",
995
+ type: "prefillSource",
996
+ origin: "document",
997
+ since: "1.2"
998
+ },
999
+ {
1000
+ id: "document.birthDate",
1001
+ type: "prefillSource",
1002
+ origin: "document",
1003
+ since: "1.2",
1004
+ kinds: ["date"]
1005
+ },
1006
+ {
1007
+ id: "document.issueDate",
1008
+ type: "prefillSource",
1009
+ origin: "document",
1010
+ since: "1.2",
1011
+ kinds: ["date"]
1012
+ },
1013
+ {
1014
+ id: "document.street",
1015
+ type: "prefillSource",
1016
+ origin: "document",
1017
+ since: "1.2"
1018
+ },
1019
+ {
1020
+ id: "document.houseNumber",
1021
+ type: "prefillSource",
1022
+ origin: "document",
1023
+ since: "1.2"
1024
+ },
1025
+ {
1026
+ id: "document.city",
1027
+ type: "prefillSource",
1028
+ origin: "document",
1029
+ since: "1.2"
1030
+ },
1031
+ {
1032
+ id: "document.state",
1033
+ type: "prefillSource",
1034
+ origin: "document",
1035
+ since: "1.2"
1036
+ },
1037
+ {
1038
+ id: "document.postalCode",
1039
+ type: "prefillSource",
1040
+ origin: "document",
1041
+ since: "1.2"
1042
+ },
1043
+ {
1044
+ id: "document.documentNumber",
1045
+ type: "prefillSource",
1046
+ origin: "document",
1047
+ since: "1.2"
1048
+ },
1049
+ {
1050
+ id: "document.personalNumber",
1051
+ type: "prefillSource",
1052
+ origin: "document",
1053
+ since: "1.2"
1054
+ },
1055
+ {
1056
+ id: "document.driversLicenseNumber",
1057
+ type: "prefillSource",
1058
+ origin: "document",
1059
+ since: "1.2"
1060
+ },
1061
+ {
1062
+ id: "document.driversLicenseState",
1063
+ type: "prefillSource",
1064
+ origin: "document",
1065
+ since: "1.2"
1066
+ },
1067
+ {
1068
+ id: "poa.firstName",
1069
+ type: "prefillSource",
1070
+ origin: "poa",
1071
+ since: "1.2"
1072
+ },
1073
+ {
1074
+ id: "poa.lastName",
1075
+ type: "prefillSource",
1076
+ origin: "poa",
1077
+ since: "1.2"
1078
+ },
1079
+ {
1080
+ id: "poa.street",
1081
+ type: "prefillSource",
1082
+ origin: "poa",
1083
+ since: "1.2"
1084
+ },
1085
+ {
1086
+ id: "poa.houseNumber",
1087
+ type: "prefillSource",
1088
+ origin: "poa",
1089
+ since: "1.2"
1090
+ },
1091
+ {
1092
+ id: "poa.city",
1093
+ type: "prefillSource",
1094
+ origin: "poa",
1095
+ since: "1.2"
1096
+ },
1097
+ {
1098
+ id: "poa.state",
1099
+ type: "prefillSource",
1100
+ origin: "poa",
1101
+ since: "1.2"
1102
+ },
1103
+ {
1104
+ id: "poa.postalCode",
1105
+ type: "prefillSource",
1106
+ origin: "poa",
1107
+ since: "1.2"
1108
+ },
1109
+ {
1110
+ id: "phoneModule.phone",
1111
+ type: "prefillSource",
1112
+ origin: "phoneModule",
1113
+ since: "1.2",
1114
+ kinds: ["phone"]
1115
+ },
1116
+ {
1117
+ id: "emailModule.email",
1118
+ type: "prefillSource",
1119
+ origin: "emailModule",
1120
+ since: "1.2"
1121
+ }
1122
+ ]
1123
+ };
1124
+ //#endregion
1125
+ //#region src/modules/ekyc/ekycConsts.ts
1126
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
1127
+ const STATE_CODE_HINTS = {
1128
+ US: "CA, NY",
1129
+ CA: "ON, QC",
1130
+ BR: "RJ, SP",
1131
+ MX: "JAL, NLE",
1132
+ GB: "ENG, SCT",
1133
+ ES: "MD, CT",
1134
+ AR: "B, C, K"
1135
+ };
1136
+ const ADDRESS_FIELDS = [
1137
+ "address",
1138
+ "houseNo",
1139
+ "street",
1140
+ "apartment",
1141
+ "address2",
1142
+ "city",
1143
+ "state",
1144
+ "postalCode"
1145
+ ];
1146
+ const DRIVERS_LICENSE_FIELDS = [
1147
+ "dlNumber",
1148
+ "dlState",
1149
+ "dlExpireAt"
1150
+ ];
1151
+ const NO_STATE_SOURCES = ["GR_1", "UK_VOTER_REGISTER"];
1152
+ const DOB_OPTIONAL_SOURCES = [
1153
+ "US_TELCO_1",
1154
+ "US_CREDIT_TELCO",
1155
+ "UK_VOTER_REGISTER"
1156
+ ];
1157
+ const ADDRESS_OPTIONAL_SOURCES = [
1158
+ "US_TELCO_1",
1159
+ "US_CREDIT_TELCO",
1160
+ "UK_VOTER_REGISTER"
1161
+ ];
1162
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1163
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1164
+ const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
1165
+ const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
1166
+ const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
1167
+ const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
1168
+ const PHONE_OPTIONAL_SOURCES = [
1169
+ "CA_RES_CREDIT",
1170
+ "UK_VOTER_REGISTER",
1171
+ "US_CREDIT_TELCO"
1172
+ ];
1173
+ /**
1174
+ * Groups of fields where at least one member must be filled. Members are
1175
+ * individually optional; the group rule enforces the "one of" requirement.
1176
+ */
1177
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
1178
+ const NAME_SOURCES = [
1179
+ "US_TELCO_1",
1180
+ "US_TELCO_2",
1181
+ "US_TELCO_4",
1182
+ "US_ADDRESS_1",
1183
+ "US_CREDIT_BUREAU_1",
1184
+ "US_CREDIT_TELCO",
1185
+ "US_DRIVERS_LICENSE_1",
1186
+ "CA_RES_CREDIT",
1187
+ "SERPRO",
1188
+ "SE_1",
1189
+ "GR_1",
1190
+ "GT_1",
1191
+ "AR_1",
1192
+ "ES_1",
1193
+ "UK_VOTER_REGISTER",
1194
+ "CL_1",
1195
+ "INDIA_PAN"
1196
+ ];
1197
+ const HOUSE_NO_SOURCES = [
1198
+ "SERPRO",
1199
+ "BR_GOVT_1",
1200
+ "GR_1",
1201
+ "ES_1"
1202
+ ];
1203
+ const STREET_SOURCES = [
1204
+ "US_TELCO_1",
1205
+ "US_TELCO_2",
1206
+ "US_CREDIT_BUREAU_1",
1207
+ "US_CREDIT_TELCO",
1208
+ "CA_RES_CREDIT",
1209
+ "SERPRO",
1210
+ "BR_GOVT_1",
1211
+ "AR_1",
1212
+ "ES_1",
1213
+ "UK_VOTER_REGISTER"
1214
+ ];
1215
+ const CITY_SOURCES = [
1216
+ "US_TELCO_1",
1217
+ "US_TELCO_2",
1218
+ "US_CREDIT_BUREAU_1",
1219
+ "US_CREDIT_TELCO",
1220
+ "CA_RES_CREDIT",
1221
+ "SERPRO",
1222
+ "BR_GOVT_1",
1223
+ "AR_1",
1224
+ "ES_1",
1225
+ "UK_VOTER_REGISTER"
1226
+ ];
1227
+ const ADDRESS_STATE_SOURCES = [
1228
+ "US_TELCO_1",
1229
+ "US_TELCO_2",
1230
+ "US_CREDIT_BUREAU_1",
1231
+ "US_CREDIT_TELCO",
1232
+ "US_DRIVERS_LICENSE_1",
1233
+ "CA_RES_CREDIT",
1234
+ "SERPRO",
1235
+ "BR_GOVT_1",
1236
+ "AR_1",
1237
+ "ES_1"
1238
+ ];
1239
+ const POSTAL_CODE_SOURCES = [
1240
+ "US_TELCO_1",
1241
+ "US_TELCO_2",
1242
+ "US_CREDIT_BUREAU_1",
1243
+ "US_CREDIT_TELCO",
1244
+ "CA_RES_CREDIT",
1245
+ "SERPRO",
1246
+ "BR_GOVT_1",
1247
+ "AR_1",
1248
+ "ES_1",
1249
+ "UK_VOTER_REGISTER"
1250
+ ];
1251
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
1252
+ const TAX_ID_SOURCES = [
1253
+ "GT_1",
1254
+ "ES_1",
1255
+ "CL_1"
1256
+ ];
1257
+ const MIDDLE_NAME_SOURCES = [
1258
+ "US_CREDIT_BUREAU_1",
1259
+ "CA_RES_CREDIT",
1260
+ "UK_VOTER_REGISTER",
1261
+ "GR_1",
1262
+ "AR_1",
1263
+ "ES_1",
1264
+ "CL_1",
1265
+ "INDIA_PAN"
1266
+ ];
1267
+ const PHONE_RISK_ADDONS = [
1268
+ "phoneCheck",
1269
+ "advancedPhoneCheck",
1270
+ "phoneProfile"
1271
+ ];
1272
+ const EMAIL_RISK_ADDONS = ["emailCheck"];
1273
+ /** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
1274
+ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
1275
+ /** Sources whose submit payload must not carry `countryCode`. */
1276
+ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
1277
+ //#endregion
1278
+ //#region src/modules/ekyc/ekycUtils.ts
1279
+ var ekycUtils_exports = /* @__PURE__ */ __exportAll({
1280
+ EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
1281
+ NO_STATE_SOURCES: () => NO_STATE_SOURCES,
1282
+ getEKYCCountry: () => getEKYCCountry,
1283
+ getEKYCDisplayModes: () => getEKYCDisplayModes,
1284
+ getEKYCFields: () => getEKYCFields,
1285
+ indexCountries: () => indexCountries,
1286
+ isFieldOptional: () => isFieldOptional,
1287
+ legacyEkycCountry: () => legacyEkycCountry,
1288
+ mapToEKYCvalue: () => mapToEKYCvalue,
1289
+ resolveEkycSource: () => resolveEkycSource,
1290
+ toEkycConfig: () => toEkycConfig
1291
+ });
1292
+ function mapToEKYCvalue(field) {
1293
+ switch (field) {
1294
+ case "poa": return "poa_document";
1295
+ case "document": return "document_scan";
1296
+ case "phoneModuleInput": return "phone_module_input";
1297
+ case "emailModuleInput": return "email_module_input";
1298
+ default: return "user_input";
1299
+ }
1300
+ }
1301
+ function hasRiskAddon(riskAddons, allowedAddons) {
1302
+ return allowedAddons.some((addon) => riskAddons?.includes(addon));
1303
+ }
1304
+ /**
1305
+ * Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
1306
+ * replaced by the first configured addon that defines its own source
1307
+ * (e.g. `phoneProfile` → `PHONE_PROFILE`); any other source is kept.
1308
+ */
1309
+ function resolveEkycSource(source, riskAddons) {
1310
+ if (source !== "RISK_ADDONS_ONLY") return source;
1311
+ return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
1312
+ }
1313
+ /** Maps raw backend module config to a field-source mapping */
1314
+ function getEKYCFields(config) {
1315
+ const hasPhoneRiskAddon = hasRiskAddon(config.riskAddons, PHONE_RISK_ADDONS);
1316
+ const hasEmailRiskAddon = hasRiskAddon(config.riskAddons, EMAIL_RISK_ADDONS);
1317
+ const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
1318
+ const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
1319
+ return {
1320
+ name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
1321
+ SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
1322
+ address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
1323
+ "date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
1324
+ email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
1325
+ phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
1326
+ nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
1327
+ dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
1328
+ dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
1329
+ dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
1330
+ last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
1331
+ idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
1332
+ idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
1333
+ gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
1334
+ panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false,
1335
+ idType: config.checkIdType ? mapToEKYCvalue(config.idTypeSource ?? "") : false,
1336
+ issueDate: config.checkIssueDate ? mapToEKYCvalue(config.issueDateSource ?? "") : false,
1337
+ fileNumber: config.checkFileNumber ? mapToEKYCvalue(config.fileNumberSource ?? "") : false
1338
+ };
1339
+ }
1340
+ /** eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`. */
1341
+ const EKYC_GROUP_KEYS = {
1342
+ name: "name",
1343
+ dateOfBirth: "date of birth",
1344
+ email: "email",
1345
+ phone: "phone",
1346
+ address: "address",
1347
+ ssn: "SSN",
1348
+ last4SSN: "last4SSN",
1349
+ idNumber: "idNum",
1350
+ idNumber1: "idNum1",
1351
+ nationality: "nationality",
1352
+ gender: "gender",
1353
+ panNumber: "panNumber",
1354
+ dlNumber: "dlNumber",
1355
+ dlState: "dlState",
1356
+ dlExpireAt: "dlExpireAt",
1357
+ idType: "idType",
1358
+ issueDate: "issueDate",
1359
+ fileNumber: "fileNumber"
1360
+ };
1361
+ /**
1362
+ * Each verification field's display-mode key in module configuration, from
1363
+ * the vocabulary's `displayModeKey` on its group.
1364
+ */
1365
+ const DISPLAY_MODE_KEYS = new Map(VOCABULARY.entries.flatMap((entry) => {
1366
+ const field = EKYC_GROUP_KEYS[entry.id];
1367
+ return entry.type === "group" && field && entry.displayModeKey ? [[field, entry.displayModeKey]] : [];
1368
+ }));
1369
+ const DISPLAY_MODES = new Set(VOCABULARY.entries.filter((entry) => entry.type === "displayMode").map((entry) => entry.id));
1370
+ /** Maps raw backend module config to each field's configured display mode. */
1371
+ function getEKYCDisplayModes(config) {
1372
+ const modes = {};
1373
+ const values = config;
1374
+ for (const [field, key] of DISPLAY_MODE_KEYS) {
1375
+ const mode = values[key];
1376
+ if (typeof mode === "string" && DISPLAY_MODES.has(mode)) modes[field] = mode;
1377
+ }
1378
+ return modes;
1379
+ }
1380
+ function indexCountries(entries) {
1381
+ const countries = /* @__PURE__ */ new Map();
1382
+ const ambiguous = /* @__PURE__ */ new Set();
1383
+ for (const entry of entries) {
1384
+ if (!entry.country) continue;
1385
+ for (const id of [entry.source, ...entry.aliases ?? []]) {
1386
+ if (!id || ambiguous.has(id)) continue;
1387
+ const known = countries.get(id);
1388
+ if (known === void 0) countries.set(id, entry.country);
1389
+ else if (known !== entry.country) {
1390
+ countries.delete(id);
1391
+ ambiguous.add(id);
1392
+ }
1393
+ }
1394
+ }
1395
+ return countries;
1396
+ }
1397
+ const INDEXED_COUNTRIES = indexCountries(EKYC_INDEX);
1398
+ /** Maps a verification source string to a country code */
1399
+ function getEKYCCountry(source) {
1400
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
1401
+ }
1402
+ /** Today's source → country switch, the fallback when the index has no entry. */
1403
+ function legacyEkycCountry(source) {
1404
+ switch (source) {
1405
+ case "BR_GOVT_1":
1406
+ case "SERPRO": return "BR";
1407
+ case "MX_CONSUMER_1": return "MX";
1408
+ case "UK_CREDIT_BUREAU_1":
1409
+ case "UK_VOTER_REGISTER": return "GB";
1410
+ case "ES_1": return "ES";
1411
+ case "CL_1": return "CL";
1412
+ case "AR_1": return "AR";
1413
+ case "GR_1": return "GR";
1414
+ case "GT_1": return "GT";
1415
+ case "CO_1": return "CO";
1416
+ case "CR_1": return "CR";
1417
+ case "CA_RES_CREDIT": return "CA";
1418
+ case "INDIA_PAN": return "IN";
1419
+ default: return "US";
1420
+ }
1421
+ }
1422
+ /**
1423
+ * Returns true if the input carries any raw-shape signal — i.e. a non-empty
1424
+ * `source` or at least one `check*` flag set. Used by `toEkycConfig` to
1425
+ * distinguish a raw backend config from an unconfigured / empty input.
1426
+ */
1427
+ function hasRawSignal(c) {
1428
+ return Boolean(c.source || c.checkName || c.checkEmail || c.checkAddress || c.checkPhone || c.checkSsn || c.checkDob || c.checkNationality || c.checkDlNumber || c.checkDlState || c.checkDlExpireAt || c.checkLast4SSN || c.checkIdNum || c.checkIdNum1 || c.checkGender || c.checkPanNumber || c.checkIdType || c.checkIssueDate || c.checkFileNumber || c.riskAddons?.length);
1429
+ }
1430
+ /**
1431
+ * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
1432
+ *
1433
+ * Accepts either:
1434
+ * - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
1435
+ * returned unchanged.
1436
+ * - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
1437
+ * fields, as embedded in a workflow node or returned by
1438
+ * `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
1439
+ * - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
1440
+ * so the machine still lands in `misconfigured` instead of a silent
1441
+ * empty form.
1442
+ *
1443
+ * Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
1444
+ */
1445
+ function toEkycConfig(config) {
1446
+ if (config.flowId || config.verificationFields) return config;
1447
+ if (!hasRawSignal(config)) return config;
1448
+ const source = resolveEkycSource(config.source ?? "", config.riskAddons);
1449
+ const displayModes = getEKYCDisplayModes(config);
1450
+ return {
1451
+ verificationFields: getEKYCFields(config),
1452
+ source,
1453
+ fieldsCountry: getEKYCCountry(source),
1454
+ enablePhoneRisk: config.enablePhoneRisk,
1455
+ ...Object.keys(displayModes).length > 0 && { displayModes }
1456
+ };
1457
+ }
1458
+ /** Determines if a field is optional given the current config source */
1459
+ function isFieldOptional(fieldName, configSource) {
1460
+ if (fieldName === "middleName") return true;
1461
+ if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
1462
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
1463
+ if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
1464
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
1465
+ if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
1466
+ if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
1467
+ if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
1468
+ if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
1469
+ return false;
1470
+ }
1471
+ //#endregion
1472
+ export { TAX_ID_SOURCES as C, STREET_SOURCES as S, MIDDLE_NAME_SOURCES as _, getEKYCFields as a, POSTAL_CODE_SOURCES as b, resolveEkycSource as c, APARTMENT_SOURCES as d, CITY_SOURCES as f, HOUSE_NO_SOURCES as g, EMAIL_SOURCES as h, getEKYCDisplayModes as i, toEkycConfig as l, COUNTRY_SELECTOR_DISABLED_SOURCES as m, ekycUtils_exports as n, isFieldOptional as o, COUNTRY_CODE_OMITTED_SOURCES as p, getEKYCCountry as r, mapToEKYCvalue as s, EKYC_GROUP_KEYS as t, ADDRESS_STATE_SOURCES as u, NAME_SOURCES as v, VOCABULARY as w, STATE_CODE_HINTS as x, ONE_OF_REQUIRED_GROUPS as y };