@incodetech/core 2.4.1 → 2.5.0-rc.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 (312) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  4. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-ppyMYVoY.esm.js} +7 -744
  5. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  6. package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-D0DbKUKC.esm.js} +28 -64
  7. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  8. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  9. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  10. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +33 -6
  11. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  12. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  13. package/dist/MultipartRecordingProvider-CduV32Qa.esm.js +151 -0
  14. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  15. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BOwciHDC.d.ts} +20 -4
  16. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  17. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  18. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +114 -25
  19. package/dist/WorkerEncoderRecordingProvider-CsDED9UU.esm.js +80 -0
  20. package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
  21. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
  22. package/dist/ae-signature.d.ts +2 -2
  23. package/dist/ae-signature.esm.js +1 -1
  24. package/dist/antifraud.d.ts +1 -1
  25. package/dist/antifraud.esm.js +2 -2
  26. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  27. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  28. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  29. package/dist/{api-Cz90EHyu.esm.js → api-CZpuJuZl.esm.js} +11 -6
  30. package/dist/{apiError-9Yi8xMeB.esm.js → apiError-DJHHF70K.esm.js} +1 -1
  31. package/dist/attemptCarry-BecGGZK8.esm.js +45 -0
  32. package/dist/authentication.d.ts +3 -3
  33. package/dist/authentication.esm.js +2 -2
  34. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-B0WPJjvz.d.ts} +2 -2
  35. package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-CkjV81NT.esm.js} +7 -6
  36. package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-BoPwxHAI.esm.js} +50 -18
  37. package/dist/avatar.d.ts +1 -1
  38. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  39. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  40. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  41. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  42. package/dist/camera.d.ts +2 -2
  43. package/dist/camera.esm.js +1 -1
  44. package/dist/certificate-issuance.d.ts +1 -1
  45. package/dist/certificate-issuance.esm.js +2 -2
  46. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  47. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  48. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
  49. package/dist/cnpj-Bl_olpdX.esm.js +79 -0
  50. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  51. package/dist/consent.d.ts +1 -1
  52. package/dist/consent.esm.js +2 -2
  53. package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B2F_VeAo.d.ts} +13 -5
  54. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-BPocwpm2.esm.js} +7 -4
  55. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DgiIcT9q.esm.js} +22 -9
  56. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  57. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  58. package/dist/cross-document-data-match.d.ts +1 -1
  59. package/dist/cross-document-data-match.esm.js +1 -1
  60. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  61. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  62. package/dist/curp-DZGvefg3.esm.js +14 -0
  63. package/dist/curp-validation.d.ts +1 -1
  64. package/dist/curp-validation.esm.js +2 -2
  65. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -3
  66. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  67. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +30 -22
  68. package/dist/custom-fields.d.ts +1 -1
  69. package/dist/custom-fields.esm.js +1 -1
  70. package/dist/custom-watchlist.d.ts +1 -1
  71. package/dist/custom-watchlist.esm.js +2 -2
  72. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  73. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  74. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  75. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  76. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  77. package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-ngnhyO6B.esm.js} +39 -69
  78. package/dist/definitionSource-Nw0YCbpe.esm.js +221 -0
  79. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +178 -41
  80. package/dist/device.esm.js +2 -2
  81. package/dist/document-capture.d.ts +3 -3
  82. package/dist/document-capture.esm.js +2 -2
  83. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +30 -20
  84. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +41 -7
  85. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +107 -58
  86. package/dist/dynamic-forms.d.ts +2 -2
  87. package/dist/dynamic-forms.esm.js +2 -2
  88. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
  89. package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CC3t8bqX.esm.js} +5 -3
  90. package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-Vsn6kszV.esm.js} +4 -4
  91. package/dist/ekyb.d.ts +5 -5
  92. package/dist/ekyb.esm.js +3 -3
  93. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BflWuTe4.d.ts} +5 -5
  94. package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-DgNO6c0e.esm.js} +5 -3
  95. package/dist/{ekybStateMachine-BfgOUZMK.esm.js → ekybStateMachine-DHybwePr.esm.js} +40 -56
  96. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  97. package/dist/ekyc-prefill.d.ts +17 -0
  98. package/dist/ekyc-prefill.esm.js +3 -0
  99. package/dist/ekyc.d.ts +4 -3
  100. package/dist/ekyc.esm.js +3 -3
  101. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BKVQazAb.d.ts} +49 -7
  102. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  103. package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
  104. package/dist/ekycPrefillManager-Drq_nYJ3.esm.js +103 -0
  105. package/dist/ekycPrefillStateMachine-CycO-K3B.esm.js +687 -0
  106. package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
  107. package/dist/ekycStateMachine-nwJRel2s.esm.js +7897 -0
  108. package/dist/ekycUtils-FcqA6oU4.esm.js +1491 -0
  109. package/dist/electronic-signature.d.ts +1 -1
  110. package/dist/electronic-signature.esm.js +1 -1
  111. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  112. package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-hn-_ADP5.esm.js} +8 -6
  113. package/dist/email.d.ts +1 -1
  114. package/dist/email.esm.js +2 -2
  115. package/dist/{emailManager-ButFktRm.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  116. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  117. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-CTEaYncs.esm.js} +34 -22
  118. package/dist/events-CP3yOzAl.esm.js +299 -0
  119. package/dist/events.d.ts +3 -1
  120. package/dist/events.esm.js +2 -1
  121. package/dist/extensibility.d.ts +43 -41
  122. package/dist/extensibility.esm.js +39 -37
  123. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  124. package/dist/face-match.d.ts +1 -1
  125. package/dist/face-match.esm.js +2 -2
  126. package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-B2POCGth.esm.js} +17 -6
  127. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-BZjGT392.d.ts} +84 -72
  128. package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-DCBK1osx.esm.js} +117 -482
  129. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
  130. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  131. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +68 -29
  132. package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-BFfuXr1M.esm.js} +35 -21
  133. package/dist/feature-management.esm.js +1 -1
  134. package/dist/field-comparison.d.ts +1 -1
  135. package/dist/field-comparison.esm.js +1 -1
  136. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  137. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  138. package/dist/fiscal-qr.d.ts +1 -1
  139. package/dist/fiscal-qr.esm.js +1 -1
  140. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-D4G-4xKE.esm.js} +9 -7
  141. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  142. package/dist/flow-events.d.ts +1 -1
  143. package/dist/flow.d.ts +75 -24
  144. package/dist/flow.esm.js +288 -70
  145. package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-Crry_GxY.esm.js} +24 -3
  146. package/dist/{flowServices-X6Rwf_7E.esm.js → flowServices-Cj8SQjQT.esm.js} +447 -183
  147. package/dist/geolocation.d.ts +1 -1
  148. package/dist/geolocation.esm.js +2 -2
  149. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
  150. package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-qpTiVlc6.esm.js} +9 -9
  151. package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-Dk10UW9G.esm.js} +14 -10
  152. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  153. package/dist/government-validation.d.ts +1 -1
  154. package/dist/government-validation.esm.js +2 -2
  155. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  156. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  157. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  158. package/dist/home.d.ts +4 -3
  159. package/dist/home.esm.js +4 -2
  160. package/dist/http.esm.js +1 -1
  161. package/dist/id-ocr.d.ts +2 -2
  162. package/dist/id-ocr.esm.js +3 -19
  163. package/dist/id-selfie-flow.d.ts +6 -5
  164. package/dist/id-selfie-flow.esm.js +14 -12
  165. package/dist/id-verification.d.ts +1 -1
  166. package/dist/id-verification.esm.js +2 -2
  167. package/dist/id.d.ts +4 -17
  168. package/dist/id.esm.js +4 -4
  169. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
  170. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-C4Xk02cS.d.ts} +76 -12
  171. package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-RrDMn2tS.esm.js} +68 -19
  172. package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-BqDlOnzD.esm.js} +29 -198
  173. package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-DFa1GOap.esm.js} +962 -554
  174. package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
  175. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-C0C7lFGd.d.ts} +7 -6
  176. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  177. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B832arAl.esm.js} +11 -10
  178. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  179. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  180. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  181. package/dist/identity-reuse.d.ts +2 -2
  182. package/dist/identity-reuse.esm.js +2 -2
  183. package/dist/identity-search.d.ts +97 -0
  184. package/dist/identity-search.esm.js +97 -0
  185. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  186. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  187. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  188. package/dist/index-DHuAkTe0.d.ts +1 -0
  189. package/dist/{index-CKQ9QBZP.d.ts → index-DxYNO94y.d.ts} +2 -2
  190. package/dist/index.d.ts +1 -1
  191. package/dist/index.esm.js +1 -1
  192. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  193. package/dist/kyb-checks.d.ts +3 -0
  194. package/dist/kyb-checks.esm.js +3 -0
  195. package/dist/kybChecksManager-B7Di9auB.d.ts +95 -0
  196. package/dist/kybChecksManager-CcEXyOlg.esm.js +90 -0
  197. package/dist/kybChecksStateMachine-DEKqDA2G.esm.js +720 -0
  198. package/dist/mandatory-consent.d.ts +2 -2
  199. package/dist/mandatory-consent.esm.js +2 -2
  200. package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +28 -11
  201. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +7 -4
  202. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +32 -13
  203. package/dist/mediaRecorderOptions-g1TwTlhd.esm.js +87 -0
  204. package/dist/multipartRecordingService-WgK8ieRI.esm.js +407 -0
  205. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
  206. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DFJlH7K3.esm.js} +11 -9
  207. package/dist/phone-number.d.ts +7 -1
  208. package/dist/phone-number.esm.js +15 -2
  209. package/dist/phone.d.ts +1 -1
  210. package/dist/phone.esm.js +2 -2
  211. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  212. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-VO1HEoUZ.d.ts} +8 -3
  213. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-rA7updqF.esm.js} +6 -4
  214. package/dist/phoneServices-CFXcwCFr.esm.js +77 -0
  215. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +56 -84
  216. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  217. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  218. package/dist/processFaceMatch-B_DkDTE5.esm.js +21 -0
  219. package/dist/qe-signature.d.ts +2 -2
  220. package/dist/qe-signature.esm.js +1 -1
  221. package/dist/recordingService-DxiwS8TV.esm.js +397 -0
  222. package/dist/redirect-to-mobile.d.ts +2 -2
  223. package/dist/redirect-to-mobile.esm.js +2 -2
  224. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +9 -6
  225. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +6 -4
  226. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +67 -28
  227. package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
  228. package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-CJzb91Cf.esm.js} +9 -7
  229. package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-k-QlBWlU.esm.js} +1 -1
  230. package/dist/selfie.d.ts +4 -4
  231. package/dist/selfie.esm.js +13 -12
  232. package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-F449y_PI.esm.js} +1 -1
  233. package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-Ba2YqjfY.esm.js} +7 -6
  234. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-aPdwxSFt.d.ts} +2 -2
  235. package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-CTjb-Qr4.esm.js} +5 -5
  236. package/dist/{session-CNUfjlRc.esm.js → session-DPL5QWRx.esm.js} +77 -9
  237. package/dist/session.d.ts +96 -10
  238. package/dist/session.esm.js +7 -6
  239. package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-43LQITNU.esm.js} +359 -115
  240. package/dist/{setup-YPKTUCY5.d.ts → setup-DpOr8H_l.d.ts} +2 -2
  241. package/dist/{setup-C5tfWt6W.esm.js → setup-lcBOfaNE.esm.js} +36 -27
  242. package/dist/signature.d.ts +1 -1
  243. package/dist/signature.esm.js +2 -2
  244. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  245. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  246. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  247. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  248. package/dist/{stats-BEvexnKC.esm.js → stats-DoByUnTa.esm.js} +1 -1
  249. package/dist/stats.esm.js +1 -1
  250. package/dist/textRules-D4NRinKY.d.ts +41 -0
  251. package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-Bs6xqUXD.esm.js} +22 -10
  252. package/dist/trust-graph.d.ts +4 -3
  253. package/dist/trust-graph.esm.js +5 -3
  254. package/dist/{types-yPH8lAH-.d.ts → types-9wlf1-GE.d.ts} +3 -3
  255. package/dist/types-B-PIc0en.d.ts +115 -0
  256. package/dist/types-B9C8W01q.d.ts +34 -0
  257. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  258. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  259. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  260. package/dist/types-CE1jkHw3.d.ts +6 -0
  261. package/dist/types-CTaL0XJz.d.ts +80 -0
  262. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  263. package/dist/types-DEa3taWc.d.ts +217 -0
  264. package/dist/{types-CK8Jbjkp.d.ts → types-DFP7eSle.d.ts} +1 -1
  265. package/dist/{types-Ckir_BEs.d.ts → types-DJPU3W2M.d.ts} +3 -2
  266. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  267. package/dist/{events-Du2A4-Qr.esm.js → types-DYYMdAGv.esm.js} +4 -299
  268. package/dist/{types-B6HsSzpk.d.ts → types-Ddc4Tr_f.d.ts} +42 -6
  269. package/dist/{types-BAxn7MpY.d.ts → types-YA7ieDOx.d.ts} +125 -50
  270. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  271. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  272. package/dist/video-selfie.d.ts +16 -14
  273. package/dist/video-selfie.esm.js +100 -24
  274. package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-a7GBfmEZ.esm.js} +27 -28
  275. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  276. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +10 -5
  277. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  278. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  279. package/dist/{warmup-BElYWRh7.esm.js → warmup-BZOMg303.esm.js} +243 -30
  280. package/dist/wasm.d.ts +9 -3
  281. package/dist/wasm.esm.js +3 -3
  282. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
  283. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  284. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-CyLCM31e.esm.js} +45 -26
  285. package/dist/watchlist-for-business.d.ts +2 -1
  286. package/dist/watchlist-for-business.esm.js +2 -2
  287. package/dist/watchlist.d.ts +1 -1
  288. package/dist/watchlist.esm.js +2 -2
  289. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +40 -8
  290. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
  291. package/dist/watchlistForBusinessStateMachine-BMWm5mcP.esm.js +166 -0
  292. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  293. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  294. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  295. package/dist/workflow.d.ts +234 -45
  296. package/dist/workflow.esm.js +194 -80
  297. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  298. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  299. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  300. package/package.json +24 -7
  301. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  302. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  303. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  304. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  305. package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
  306. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  307. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  308. package/dist/index-DpTj5PFb.d.ts +0 -1
  309. package/dist/types-BvLo3U4u.d.ts +0 -134
  310. package/dist/types-zOgZqMni.d.ts +0 -6
  311. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  312. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,1491 @@
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/HK/HK_RESIDENT_REGISTER",
101
+ country: "HK",
102
+ source: "HK_RESIDENT_REGISTER"
103
+ },
104
+ {
105
+ id: "ekyc/IN/IN_DMV",
106
+ country: "IN",
107
+ source: "IN_DMV"
108
+ },
109
+ {
110
+ id: "ekyc/IN/INDIA_PAN_1",
111
+ country: "IN",
112
+ source: "INDIA_PAN_1"
113
+ },
114
+ {
115
+ id: "ekyc/IN/INDIA_PASSPORT_1",
116
+ country: "IN",
117
+ source: "INDIA_PASSPORT_1"
118
+ },
119
+ {
120
+ id: "ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO",
121
+ country: "IT",
122
+ source: "IT_CIVIL_REG_CREDIT_TELCO"
123
+ },
124
+ {
125
+ id: "ekyc/KG/KG_VOTER_REGISTER",
126
+ country: "KG",
127
+ source: "KG_VOTER_REGISTER"
128
+ },
129
+ {
130
+ id: "ekyc/MX/MX_CIVIL_REGISTER_2",
131
+ country: "MX",
132
+ source: "MX_CIVIL_REGISTER_2"
133
+ },
134
+ {
135
+ id: "ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO",
136
+ country: "NL",
137
+ source: "NL_CIVIL_REG_CREDIT_TELCO"
138
+ },
139
+ {
140
+ id: "ekyc/NL/NL_CONSUMER_POP_REG_TELCO",
141
+ country: "NL",
142
+ source: "NL_CONSUMER_POP_REG_TELCO"
143
+ },
144
+ {
145
+ id: "ekyc/NO/NO_CONS_POP_REG",
146
+ country: "NO",
147
+ source: "NO_CONS_POP_REG"
148
+ },
149
+ {
150
+ id: "ekyc/PE/PE_CIVIL_REGISTER_2",
151
+ country: "PE",
152
+ source: "PE_CIVIL_REGISTER_2"
153
+ },
154
+ {
155
+ id: "ekyc/PH/PH_RES_CREDIT",
156
+ country: "PH",
157
+ source: "PH_RES_CREDIT"
158
+ },
159
+ {
160
+ id: "ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO",
161
+ country: "PT",
162
+ source: "PT_CIVIL_REG_CREDIT_TELCO"
163
+ },
164
+ {
165
+ id: "ekyc/RO/RO_VOTER_REGISTER",
166
+ country: "RO",
167
+ source: "RO_VOTER_REGISTER"
168
+ },
169
+ {
170
+ id: "ekyc/SG/SG_PHONE_REGISTER",
171
+ country: "SG",
172
+ source: "SG_PHONE_REGISTER"
173
+ },
174
+ {
175
+ id: "ekyc/US/US_CREDIT_BUREAU_1",
176
+ country: "US",
177
+ source: "US_CREDIT_BUREAU_1"
178
+ },
179
+ {
180
+ id: "ekyc/US/US_CREDIT_BUREAU_3",
181
+ country: "US",
182
+ source: "US_CREDIT_BUREAU_3"
183
+ },
184
+ {
185
+ id: "ekyc/US/US_CREDIT_TELCO",
186
+ country: "US",
187
+ source: "US_CREDIT_TELCO"
188
+ },
189
+ {
190
+ id: "ekyc/US/US_TELCO_1",
191
+ country: "US",
192
+ source: "US_TELCO_1"
193
+ },
194
+ {
195
+ id: "ekyc/US/US_TELCO_2",
196
+ country: "US",
197
+ source: "US_TELCO_2"
198
+ },
199
+ {
200
+ id: "ekyc/VE/VE_CIVIL_REGISTER",
201
+ country: "VE",
202
+ source: "VE_CIVIL_REGISTER"
203
+ }
204
+ ];
205
+ //#endregion
206
+ //#region ../form-definitions/generated/vocabulary.ts
207
+ const VOCABULARY = {
208
+ version: "1.3",
209
+ entries: [
210
+ {
211
+ id: "text",
212
+ type: "kind",
213
+ since: "1.0"
214
+ },
215
+ {
216
+ id: "date",
217
+ type: "kind",
218
+ since: "1.0"
219
+ },
220
+ {
221
+ id: "choice",
222
+ type: "kind",
223
+ since: "1.0"
224
+ },
225
+ {
226
+ id: "phone",
227
+ type: "kind",
228
+ since: "1.0"
229
+ },
230
+ {
231
+ id: "list",
232
+ type: "kind",
233
+ since: "1.3"
234
+ },
235
+ {
236
+ id: "masked",
237
+ type: "widget",
238
+ since: "1.0"
239
+ },
240
+ {
241
+ id: "addressSearch",
242
+ type: "widget",
243
+ since: "1.0"
244
+ },
245
+ {
246
+ id: "select",
247
+ type: "widget",
248
+ since: "1.0"
249
+ },
250
+ {
251
+ id: "radio",
252
+ type: "widget",
253
+ since: "1.0"
254
+ },
255
+ {
256
+ id: "text",
257
+ type: "keyboard",
258
+ since: "1.0"
259
+ },
260
+ {
261
+ id: "numeric",
262
+ type: "keyboard",
263
+ since: "1.0"
264
+ },
265
+ {
266
+ id: "phone",
267
+ type: "keyboard",
268
+ since: "1.0"
269
+ },
270
+ {
271
+ id: "email",
272
+ type: "keyboard",
273
+ since: "1.0"
274
+ },
275
+ {
276
+ id: "url",
277
+ type: "keyboard",
278
+ since: "1.3"
279
+ },
280
+ {
281
+ id: "givenName",
282
+ type: "autofill",
283
+ since: "1.0"
284
+ },
285
+ {
286
+ id: "middleName",
287
+ type: "autofill",
288
+ since: "1.0"
289
+ },
290
+ {
291
+ id: "familyName",
292
+ type: "autofill",
293
+ since: "1.0"
294
+ },
295
+ {
296
+ id: "email",
297
+ type: "autofill",
298
+ since: "1.0"
299
+ },
300
+ {
301
+ id: "phone",
302
+ type: "autofill",
303
+ since: "1.0"
304
+ },
305
+ {
306
+ id: "addressLine1",
307
+ type: "autofill",
308
+ since: "1.0"
309
+ },
310
+ {
311
+ id: "addressLine2",
312
+ type: "autofill",
313
+ since: "1.0"
314
+ },
315
+ {
316
+ id: "addressLevel1",
317
+ type: "autofill",
318
+ since: "1.0"
319
+ },
320
+ {
321
+ id: "addressLevel2",
322
+ type: "autofill",
323
+ since: "1.0"
324
+ },
325
+ {
326
+ id: "postalCode",
327
+ type: "autofill",
328
+ since: "1.0"
329
+ },
330
+ {
331
+ id: "birthday",
332
+ type: "autofill",
333
+ since: "1.0"
334
+ },
335
+ {
336
+ id: "organization",
337
+ type: "autofill",
338
+ since: "1.0"
339
+ },
340
+ {
341
+ id: "ssnFormat",
342
+ type: "rule",
343
+ since: "1.0",
344
+ message: "verification.errors.ssnFormat"
345
+ },
346
+ {
347
+ id: "cpf",
348
+ type: "rule",
349
+ since: "1.0",
350
+ message: "verification.errors.invalidTaxId"
351
+ },
352
+ {
353
+ id: "cnpj",
354
+ type: "rule",
355
+ since: "1.0",
356
+ message: "ekyb.error.invalidTaxId"
357
+ },
358
+ {
359
+ id: "postalCodeFormat",
360
+ type: "rule",
361
+ since: "1.0",
362
+ requiresCountry: true
363
+ },
364
+ {
365
+ id: "phoneFormat",
366
+ type: "rule",
367
+ since: "1.0",
368
+ message: "verification.errors.phoneInvalid"
369
+ },
370
+ {
371
+ id: "emailFormat",
372
+ type: "rule",
373
+ since: "1.0",
374
+ message: "verification.errors.emailInvalid"
375
+ },
376
+ {
377
+ id: "noPoBox",
378
+ type: "rule",
379
+ since: "1.0",
380
+ message: "verification.errors.poBox"
381
+ },
382
+ {
383
+ id: "exactLength",
384
+ type: "rule",
385
+ since: "1.0",
386
+ params: { length: "integer" },
387
+ message: "verification.errors.exactly10Characters"
388
+ },
389
+ {
390
+ id: "nameCharacters",
391
+ type: "rule",
392
+ since: "1.0",
393
+ message: "verification.errors.nameCharacters"
394
+ },
395
+ {
396
+ id: "notFuture",
397
+ type: "rule",
398
+ since: "1.0",
399
+ message: "verification.errors.futureDate"
400
+ },
401
+ {
402
+ id: "maxAge",
403
+ type: "rule",
404
+ since: "1.3",
405
+ params: { years: "integer" },
406
+ message: "verification.errors.dateOfBirthMaxAge"
407
+ },
408
+ {
409
+ id: "digitCount",
410
+ type: "rule",
411
+ since: "1.0",
412
+ params: {
413
+ lengths: "integer[]?",
414
+ min: "integer?",
415
+ max: "integer?"
416
+ }
417
+ },
418
+ {
419
+ id: "allowedCharacters",
420
+ type: "rule",
421
+ since: "1.0",
422
+ message: "verification.errors.invalidCharacters",
423
+ params: {
424
+ classes: "string[]",
425
+ extra: "string?",
426
+ ascii: "boolean?"
427
+ },
428
+ paramsSince: { ascii: "1.3" }
429
+ },
430
+ {
431
+ id: "charTemplate",
432
+ type: "rule",
433
+ since: "1.0",
434
+ message: "verification.errors.invalidFormat",
435
+ params: {
436
+ templates: "string[]",
437
+ ignoreCase: "boolean?"
438
+ }
439
+ },
440
+ {
441
+ id: "numericRange",
442
+ type: "rule",
443
+ since: "1.0",
444
+ message: "verification.errors.numberBetween",
445
+ params: {
446
+ min: "integer",
447
+ max: "integer"
448
+ }
449
+ },
450
+ {
451
+ id: "rut",
452
+ type: "rule",
453
+ since: "1.0",
454
+ message: "verification.errors.invalidIdNumber"
455
+ },
456
+ {
457
+ id: "esDni",
458
+ type: "rule",
459
+ since: "1.0",
460
+ message: "verification.errors.invalidIdNumber"
461
+ },
462
+ {
463
+ id: "fiPersonalIdentityCode",
464
+ type: "rule",
465
+ since: "1.0",
466
+ message: "verification.errors.invalidIdNumber"
467
+ },
468
+ {
469
+ id: "inDrivingLicenseNumber",
470
+ type: "rule",
471
+ since: "1.0",
472
+ message: "verification.errors.invalidIdNumber"
473
+ },
474
+ {
475
+ id: "curp",
476
+ type: "rule",
477
+ since: "1.1",
478
+ message: "verification.errors.invalidIdNumber"
479
+ },
480
+ {
481
+ id: "phoneDigits",
482
+ type: "rule",
483
+ since: "1.0",
484
+ message: "verification.errors.phoneInvalid",
485
+ params: {
486
+ min: "integer",
487
+ max: "integer"
488
+ }
489
+ },
490
+ {
491
+ id: "oneOfRequired",
492
+ type: "groupRule",
493
+ since: "1.0"
494
+ },
495
+ {
496
+ id: "rulesByOption",
497
+ type: "groupRule",
498
+ since: "1.0",
499
+ params: {
500
+ selector: "string",
501
+ target: "string",
502
+ cases: "object"
503
+ }
504
+ },
505
+ {
506
+ id: "uppercase",
507
+ type: "transform",
508
+ since: "1.0"
509
+ },
510
+ {
511
+ id: "stripSeparators",
512
+ type: "transform",
513
+ since: "1.0",
514
+ params: { chars: "string?" }
515
+ },
516
+ {
517
+ id: "e164",
518
+ type: "transform",
519
+ since: "1.0"
520
+ },
521
+ {
522
+ id: "trim",
523
+ type: "transform",
524
+ since: "1.3"
525
+ },
526
+ {
527
+ id: "nationalNumber",
528
+ type: "transform",
529
+ since: "1.0"
530
+ },
531
+ {
532
+ id: "e164NoPlus",
533
+ type: "transform",
534
+ since: "1.0"
535
+ },
536
+ {
537
+ id: "digitGroups",
538
+ type: "transform",
539
+ since: "1.0",
540
+ params: {
541
+ groups: "integer[]",
542
+ separator: "string"
543
+ }
544
+ },
545
+ {
546
+ id: "US_STATES",
547
+ type: "optionList",
548
+ since: "1.0",
549
+ values: [
550
+ "AL",
551
+ "AK",
552
+ "AZ",
553
+ "AR",
554
+ "CA",
555
+ "CO",
556
+ "CT",
557
+ "DE",
558
+ "FL",
559
+ "GA",
560
+ "HI",
561
+ "ID",
562
+ "IL",
563
+ "IN",
564
+ "IA",
565
+ "KS",
566
+ "KY",
567
+ "LA",
568
+ "ME",
569
+ "MD",
570
+ "MA",
571
+ "MI",
572
+ "MN",
573
+ "MS",
574
+ "MO",
575
+ "MT",
576
+ "NE",
577
+ "NV",
578
+ "NH",
579
+ "NJ",
580
+ "NM",
581
+ "NY",
582
+ "NC",
583
+ "ND",
584
+ "OH",
585
+ "OK",
586
+ "OR",
587
+ "PA",
588
+ "RI",
589
+ "SC",
590
+ "SD",
591
+ "TN",
592
+ "TX",
593
+ "UT",
594
+ "VT",
595
+ "VA",
596
+ "WA",
597
+ "WV",
598
+ "WI",
599
+ "WY"
600
+ ]
601
+ },
602
+ {
603
+ id: "CA_PROVINCES",
604
+ type: "optionList",
605
+ since: "1.0",
606
+ values: [
607
+ "AB",
608
+ "BC",
609
+ "MB",
610
+ "NB",
611
+ "NL",
612
+ "NS",
613
+ "ON",
614
+ "PE",
615
+ "QC",
616
+ "SK",
617
+ "NT",
618
+ "NU",
619
+ "YT"
620
+ ]
621
+ },
622
+ {
623
+ id: "BR_STATES",
624
+ type: "optionList",
625
+ since: "1.0",
626
+ values: [
627
+ "AC",
628
+ "AL",
629
+ "AP",
630
+ "AM",
631
+ "BA",
632
+ "CE",
633
+ "DF",
634
+ "ES",
635
+ "GO",
636
+ "MA",
637
+ "MT",
638
+ "MS",
639
+ "MG",
640
+ "PA",
641
+ "PB",
642
+ "PR",
643
+ "PE",
644
+ "PI",
645
+ "RJ",
646
+ "RN",
647
+ "RS",
648
+ "RO",
649
+ "RR",
650
+ "SC",
651
+ "SP",
652
+ "SE",
653
+ "TO"
654
+ ]
655
+ },
656
+ {
657
+ id: "IN_STATES",
658
+ type: "optionList",
659
+ since: "1.0",
660
+ values: [
661
+ "AN",
662
+ "AP",
663
+ "AR",
664
+ "AS",
665
+ "BR",
666
+ "CH",
667
+ "CT",
668
+ "DH",
669
+ "DL",
670
+ "GA",
671
+ "GJ",
672
+ "HR",
673
+ "HP",
674
+ "JK",
675
+ "JH",
676
+ "KA",
677
+ "KL",
678
+ "LA",
679
+ "LD",
680
+ "MP",
681
+ "MH",
682
+ "MN",
683
+ "ML",
684
+ "MZ",
685
+ "NL",
686
+ "OR",
687
+ "PY",
688
+ "PB",
689
+ "RJ",
690
+ "SK",
691
+ "TN",
692
+ "TG",
693
+ "TR",
694
+ "UP",
695
+ "UK",
696
+ "WB"
697
+ ]
698
+ },
699
+ {
700
+ id: "PH_ID_TYPES",
701
+ type: "optionList",
702
+ since: "1.0",
703
+ values: [
704
+ "TIN",
705
+ "SSS",
706
+ "GSIS"
707
+ ]
708
+ },
709
+ {
710
+ id: "riskAddon",
711
+ type: "condition",
712
+ since: "1.0"
713
+ },
714
+ {
715
+ id: "fieldFilled",
716
+ type: "condition",
717
+ since: "1.0"
718
+ },
719
+ {
720
+ id: "name",
721
+ type: "group",
722
+ modules: ["ekyc", "ekycprefill"],
723
+ enabledBy: ["checkName"],
724
+ sourceKey: "nameSource",
725
+ displayModeKey: "nameDisplayMode",
726
+ since: "1.0"
727
+ },
728
+ {
729
+ id: "dateOfBirth",
730
+ type: "group",
731
+ modules: ["ekyc", "ekycprefill"],
732
+ enabledBy: ["checkDob"],
733
+ sourceKey: "dobSource",
734
+ displayModeKey: "dobDisplayMode",
735
+ since: "1.0"
736
+ },
737
+ {
738
+ id: "email",
739
+ type: "group",
740
+ modules: ["ekyc", "kybChecks"],
741
+ enabledBy: ["checkEmail", "riskAddon:emailCheck"],
742
+ sourceKey: "emailSource",
743
+ displayModeKey: "emailDisplayMode",
744
+ since: "1.0"
745
+ },
746
+ {
747
+ id: "phone",
748
+ type: "group",
749
+ modules: [
750
+ "ekyc",
751
+ "kybChecks",
752
+ "ekycprefill"
753
+ ],
754
+ enabledBy: [
755
+ "checkPhone",
756
+ "riskAddon:phoneCheck",
757
+ "riskAddon:advancedPhoneCheck",
758
+ "riskAddon:phoneProfile"
759
+ ],
760
+ sourceKey: "phoneSource",
761
+ displayModeKey: "phoneDisplayMode",
762
+ since: "1.0"
763
+ },
764
+ {
765
+ id: "address",
766
+ type: "group",
767
+ modules: [
768
+ "ekyc",
769
+ "ekyb",
770
+ "kybChecks"
771
+ ],
772
+ enabledBy: ["checkAddress"],
773
+ sourceKey: "addressSource",
774
+ displayModeKey: "addressDisplayMode",
775
+ since: "1.0"
776
+ },
777
+ {
778
+ id: "ssn",
779
+ type: "group",
780
+ modules: ["ekyc", "ekycprefill"],
781
+ enabledBy: ["checkSsn"],
782
+ sourceKey: "ssnSource",
783
+ displayModeKey: "ssnDisplayMode",
784
+ since: "1.0"
785
+ },
786
+ {
787
+ id: "last4SSN",
788
+ type: "group",
789
+ modules: ["ekyc"],
790
+ enabledBy: ["checkLast4SSN"],
791
+ sourceKey: "last4SSNSource",
792
+ displayModeKey: "last4SSNDisplayMode",
793
+ since: "1.0"
794
+ },
795
+ {
796
+ id: "idNumber",
797
+ type: "group",
798
+ modules: ["ekyc"],
799
+ enabledBy: ["checkIdNum"],
800
+ sourceKey: "idNumSource",
801
+ displayModeKey: "idNumDisplayMode",
802
+ since: "1.0"
803
+ },
804
+ {
805
+ id: "idNumber1",
806
+ type: "group",
807
+ modules: ["ekyc"],
808
+ enabledBy: ["checkIdNum1"],
809
+ sourceKey: "idNum1Source",
810
+ displayModeKey: "idNum1DisplayMode",
811
+ since: "1.0"
812
+ },
813
+ {
814
+ id: "nationality",
815
+ type: "group",
816
+ modules: ["ekyc"],
817
+ enabledBy: ["checkNationality"],
818
+ sourceKey: "nationalitySource",
819
+ displayModeKey: "nationalityDisplayMode",
820
+ since: "1.0"
821
+ },
822
+ {
823
+ id: "gender",
824
+ type: "group",
825
+ modules: ["ekyc"],
826
+ enabledBy: ["checkGender"],
827
+ sourceKey: "genderSource",
828
+ displayModeKey: "genderDisplayMode",
829
+ since: "1.0"
830
+ },
831
+ {
832
+ id: "panNumber",
833
+ type: "group",
834
+ modules: ["ekyc"],
835
+ enabledBy: ["checkPanNumber"],
836
+ sourceKey: "panNumberSource",
837
+ displayModeKey: "panNumberDisplayMode",
838
+ since: "1.0"
839
+ },
840
+ {
841
+ id: "dlNumber",
842
+ type: "group",
843
+ modules: ["ekyc"],
844
+ enabledBy: ["checkDlNumber"],
845
+ sourceKey: "dlNumberSource",
846
+ displayModeKey: "dlNumberDisplayMode",
847
+ since: "1.0"
848
+ },
849
+ {
850
+ id: "dlState",
851
+ type: "group",
852
+ modules: ["ekyc"],
853
+ enabledBy: ["checkDlState"],
854
+ sourceKey: "dlStateSource",
855
+ displayModeKey: "dlStateDisplayMode",
856
+ since: "1.0"
857
+ },
858
+ {
859
+ id: "dlExpireAt",
860
+ type: "group",
861
+ modules: ["ekyc"],
862
+ enabledBy: ["checkDlExpireAt"],
863
+ sourceKey: "dlExpireAtSource",
864
+ displayModeKey: "dlExpireAtDisplayMode",
865
+ since: "1.0"
866
+ },
867
+ {
868
+ id: "idType",
869
+ type: "group",
870
+ modules: ["ekyc"],
871
+ enabledBy: ["checkIdType"],
872
+ sourceKey: "idTypeSource",
873
+ displayModeKey: "idTypeDisplayMode",
874
+ since: "1.2"
875
+ },
876
+ {
877
+ id: "issueDate",
878
+ type: "group",
879
+ modules: ["ekyc"],
880
+ enabledBy: ["checkIssueDate"],
881
+ sourceKey: "issueDateSource",
882
+ displayModeKey: "issueDateDisplayMode",
883
+ since: "1.2"
884
+ },
885
+ {
886
+ id: "fileNumber",
887
+ type: "group",
888
+ modules: ["ekyc"],
889
+ enabledBy: ["checkFileNumber"],
890
+ sourceKey: "fileNumberSource",
891
+ displayModeKey: "fileNumberDisplayMode",
892
+ since: "1.2"
893
+ },
894
+ {
895
+ id: "businessName",
896
+ type: "group",
897
+ modules: ["ekyb", "kybChecks"],
898
+ enabledBy: ["checkBusinessName"],
899
+ since: "1.0"
900
+ },
901
+ {
902
+ id: "taxId",
903
+ type: "group",
904
+ modules: ["ekyb", "kybChecks"],
905
+ enabledBy: ["checkTaxId"],
906
+ since: "1.0"
907
+ },
908
+ {
909
+ id: "ubos",
910
+ type: "group",
911
+ modules: ["ekyb"],
912
+ enabledBy: ["checkUniqueBeneficialOwner"],
913
+ since: "1.0"
914
+ },
915
+ {
916
+ id: "country",
917
+ type: "group",
918
+ modules: ["kybChecks"],
919
+ since: "1.3"
920
+ },
921
+ {
922
+ id: "website",
923
+ type: "group",
924
+ modules: ["kybChecks"],
925
+ since: "1.3"
926
+ },
927
+ {
928
+ id: "alternativeNames",
929
+ type: "group",
930
+ modules: ["kybChecks"],
931
+ since: "1.3"
932
+ },
933
+ {
934
+ id: "personNames",
935
+ type: "group",
936
+ modules: ["kybChecks"],
937
+ since: "1.3"
938
+ },
939
+ {
940
+ id: "other",
941
+ type: "group",
942
+ modules: ["kybChecks"],
943
+ since: "1.3"
944
+ },
945
+ {
946
+ id: "editable",
947
+ type: "displayMode",
948
+ since: "1.2"
949
+ },
950
+ {
951
+ id: "readOnly",
952
+ type: "displayMode",
953
+ since: "1.2"
954
+ },
955
+ {
956
+ id: "hidden",
957
+ type: "displayMode",
958
+ since: "1.2"
959
+ },
960
+ {
961
+ id: "userInput",
962
+ type: "prefillOrigin",
963
+ since: "1.2",
964
+ configValues: ["userInput"]
965
+ },
966
+ {
967
+ id: "document",
968
+ type: "prefillOrigin",
969
+ since: "1.2",
970
+ configValues: ["document"]
971
+ },
972
+ {
973
+ id: "poa",
974
+ type: "prefillOrigin",
975
+ since: "1.2",
976
+ configValues: ["poa"]
977
+ },
978
+ {
979
+ id: "phoneModule",
980
+ type: "prefillOrigin",
981
+ since: "1.2",
982
+ configValues: ["phoneModuleInput"],
983
+ riskAddons: ["phoneCheck", "phoneProfile"],
984
+ groups: ["phone"],
985
+ locks: true
986
+ },
987
+ {
988
+ id: "emailModule",
989
+ type: "prefillOrigin",
990
+ since: "1.2",
991
+ configValues: ["emailModuleInput"],
992
+ riskAddons: ["emailCheck"],
993
+ groups: ["email"],
994
+ locks: true
995
+ },
996
+ {
997
+ id: "document.firstName",
998
+ type: "prefillSource",
999
+ origin: "document",
1000
+ since: "1.2"
1001
+ },
1002
+ {
1003
+ id: "document.middleName",
1004
+ type: "prefillSource",
1005
+ origin: "document",
1006
+ since: "1.2"
1007
+ },
1008
+ {
1009
+ id: "document.paternalLastName",
1010
+ type: "prefillSource",
1011
+ origin: "document",
1012
+ since: "1.2"
1013
+ },
1014
+ {
1015
+ id: "document.maternalLastName",
1016
+ type: "prefillSource",
1017
+ origin: "document",
1018
+ since: "1.2"
1019
+ },
1020
+ {
1021
+ id: "document.birthDate",
1022
+ type: "prefillSource",
1023
+ origin: "document",
1024
+ since: "1.2",
1025
+ kinds: ["date"]
1026
+ },
1027
+ {
1028
+ id: "document.issueDate",
1029
+ type: "prefillSource",
1030
+ origin: "document",
1031
+ since: "1.2",
1032
+ kinds: ["date"]
1033
+ },
1034
+ {
1035
+ id: "document.street",
1036
+ type: "prefillSource",
1037
+ origin: "document",
1038
+ since: "1.2"
1039
+ },
1040
+ {
1041
+ id: "document.houseNumber",
1042
+ type: "prefillSource",
1043
+ origin: "document",
1044
+ since: "1.2"
1045
+ },
1046
+ {
1047
+ id: "document.city",
1048
+ type: "prefillSource",
1049
+ origin: "document",
1050
+ since: "1.2"
1051
+ },
1052
+ {
1053
+ id: "document.state",
1054
+ type: "prefillSource",
1055
+ origin: "document",
1056
+ since: "1.2"
1057
+ },
1058
+ {
1059
+ id: "document.postalCode",
1060
+ type: "prefillSource",
1061
+ origin: "document",
1062
+ since: "1.2"
1063
+ },
1064
+ {
1065
+ id: "document.documentNumber",
1066
+ type: "prefillSource",
1067
+ origin: "document",
1068
+ since: "1.2"
1069
+ },
1070
+ {
1071
+ id: "document.personalNumber",
1072
+ type: "prefillSource",
1073
+ origin: "document",
1074
+ since: "1.2"
1075
+ },
1076
+ {
1077
+ id: "document.driversLicenseNumber",
1078
+ type: "prefillSource",
1079
+ origin: "document",
1080
+ since: "1.2"
1081
+ },
1082
+ {
1083
+ id: "document.driversLicenseState",
1084
+ type: "prefillSource",
1085
+ origin: "document",
1086
+ since: "1.2"
1087
+ },
1088
+ {
1089
+ id: "poa.firstName",
1090
+ type: "prefillSource",
1091
+ origin: "poa",
1092
+ since: "1.2"
1093
+ },
1094
+ {
1095
+ id: "poa.lastName",
1096
+ type: "prefillSource",
1097
+ origin: "poa",
1098
+ since: "1.2"
1099
+ },
1100
+ {
1101
+ id: "poa.street",
1102
+ type: "prefillSource",
1103
+ origin: "poa",
1104
+ since: "1.2"
1105
+ },
1106
+ {
1107
+ id: "poa.houseNumber",
1108
+ type: "prefillSource",
1109
+ origin: "poa",
1110
+ since: "1.2"
1111
+ },
1112
+ {
1113
+ id: "poa.city",
1114
+ type: "prefillSource",
1115
+ origin: "poa",
1116
+ since: "1.2"
1117
+ },
1118
+ {
1119
+ id: "poa.state",
1120
+ type: "prefillSource",
1121
+ origin: "poa",
1122
+ since: "1.2"
1123
+ },
1124
+ {
1125
+ id: "poa.postalCode",
1126
+ type: "prefillSource",
1127
+ origin: "poa",
1128
+ since: "1.2"
1129
+ },
1130
+ {
1131
+ id: "phoneModule.phone",
1132
+ type: "prefillSource",
1133
+ origin: "phoneModule",
1134
+ since: "1.2",
1135
+ kinds: ["phone"]
1136
+ },
1137
+ {
1138
+ id: "emailModule.email",
1139
+ type: "prefillSource",
1140
+ origin: "emailModule",
1141
+ since: "1.2"
1142
+ }
1143
+ ]
1144
+ };
1145
+ //#endregion
1146
+ //#region src/modules/ekyc/ekycConsts.ts
1147
+ const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
1148
+ const STATE_CODE_HINTS = {
1149
+ US: "CA, NY",
1150
+ CA: "ON, QC",
1151
+ BR: "RJ, SP",
1152
+ MX: "JAL, NLE",
1153
+ GB: "ENG, SCT",
1154
+ ES: "MD, CT",
1155
+ AR: "B, C, K"
1156
+ };
1157
+ const ADDRESS_FIELDS = [
1158
+ "address",
1159
+ "houseNo",
1160
+ "street",
1161
+ "apartment",
1162
+ "address2",
1163
+ "city",
1164
+ "state",
1165
+ "postalCode"
1166
+ ];
1167
+ const DRIVERS_LICENSE_FIELDS = [
1168
+ "dlNumber",
1169
+ "dlState",
1170
+ "dlExpireAt"
1171
+ ];
1172
+ const NO_STATE_SOURCES = ["GR_1", "UK_VOTER_REGISTER"];
1173
+ const DOB_OPTIONAL_SOURCES = [
1174
+ "US_TELCO_1",
1175
+ "US_CREDIT_TELCO",
1176
+ "UK_VOTER_REGISTER"
1177
+ ];
1178
+ const ADDRESS_OPTIONAL_SOURCES = [
1179
+ "US_TELCO_1",
1180
+ "US_CREDIT_TELCO",
1181
+ "UK_VOTER_REGISTER",
1182
+ "BR_GOVT_1"
1183
+ ];
1184
+ const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO", "BR_GOVT_1"];
1185
+ const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
1186
+ const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
1187
+ const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
1188
+ const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
1189
+ const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
1190
+ const PHONE_OPTIONAL_SOURCES = [
1191
+ "CA_RES_CREDIT",
1192
+ "UK_VOTER_REGISTER",
1193
+ "US_CREDIT_TELCO"
1194
+ ];
1195
+ /**
1196
+ * Groups of fields where at least one member must be filled. Members are
1197
+ * individually optional; the group rule enforces the "one of" requirement.
1198
+ */
1199
+ const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
1200
+ const NAME_SOURCES = [
1201
+ "US_TELCO_1",
1202
+ "US_TELCO_2",
1203
+ "US_TELCO_4",
1204
+ "US_ADDRESS_1",
1205
+ "US_CREDIT_BUREAU_1",
1206
+ "US_CREDIT_TELCO",
1207
+ "US_DRIVERS_LICENSE_1",
1208
+ "CA_RES_CREDIT",
1209
+ "SERPRO",
1210
+ "SE_1",
1211
+ "GR_1",
1212
+ "GT_1",
1213
+ "AR_1",
1214
+ "ES_1",
1215
+ "UK_VOTER_REGISTER",
1216
+ "CL_1",
1217
+ "INDIA_PAN"
1218
+ ];
1219
+ const HOUSE_NO_SOURCES = [
1220
+ "SERPRO",
1221
+ "BR_GOVT_1",
1222
+ "GR_1",
1223
+ "ES_1"
1224
+ ];
1225
+ const STREET_SOURCES = [
1226
+ "US_TELCO_1",
1227
+ "US_TELCO_2",
1228
+ "US_CREDIT_BUREAU_1",
1229
+ "US_CREDIT_TELCO",
1230
+ "CA_RES_CREDIT",
1231
+ "SERPRO",
1232
+ "BR_GOVT_1",
1233
+ "AR_1",
1234
+ "ES_1",
1235
+ "UK_VOTER_REGISTER"
1236
+ ];
1237
+ const CITY_SOURCES = [
1238
+ "US_TELCO_1",
1239
+ "US_TELCO_2",
1240
+ "US_CREDIT_BUREAU_1",
1241
+ "US_CREDIT_TELCO",
1242
+ "CA_RES_CREDIT",
1243
+ "SERPRO",
1244
+ "BR_GOVT_1",
1245
+ "AR_1",
1246
+ "ES_1",
1247
+ "UK_VOTER_REGISTER"
1248
+ ];
1249
+ const ADDRESS_STATE_SOURCES = [
1250
+ "US_TELCO_1",
1251
+ "US_TELCO_2",
1252
+ "US_CREDIT_BUREAU_1",
1253
+ "US_CREDIT_TELCO",
1254
+ "US_DRIVERS_LICENSE_1",
1255
+ "CA_RES_CREDIT",
1256
+ "SERPRO",
1257
+ "BR_GOVT_1",
1258
+ "AR_1",
1259
+ "ES_1"
1260
+ ];
1261
+ const POSTAL_CODE_SOURCES = [
1262
+ "US_TELCO_1",
1263
+ "US_TELCO_2",
1264
+ "US_CREDIT_BUREAU_1",
1265
+ "US_CREDIT_TELCO",
1266
+ "CA_RES_CREDIT",
1267
+ "SERPRO",
1268
+ "BR_GOVT_1",
1269
+ "AR_1",
1270
+ "ES_1",
1271
+ "UK_VOTER_REGISTER"
1272
+ ];
1273
+ const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
1274
+ const TAX_ID_SOURCES = [
1275
+ "GT_1",
1276
+ "ES_1",
1277
+ "CL_1"
1278
+ ];
1279
+ const MIDDLE_NAME_SOURCES = [
1280
+ "US_CREDIT_BUREAU_1",
1281
+ "CA_RES_CREDIT",
1282
+ "UK_VOTER_REGISTER",
1283
+ "GR_1",
1284
+ "AR_1",
1285
+ "ES_1",
1286
+ "CL_1",
1287
+ "INDIA_PAN"
1288
+ ];
1289
+ /** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
1290
+ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
1291
+ /** Sources whose submit payload must not carry `countryCode`. */
1292
+ const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
1293
+ //#endregion
1294
+ //#region src/modules/ekyc/ekycUtils.ts
1295
+ var ekycUtils_exports = /* @__PURE__ */ __exportAll({
1296
+ EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
1297
+ NO_STATE_SOURCES: () => NO_STATE_SOURCES,
1298
+ getEKYCCountry: () => getEKYCCountry,
1299
+ getEKYCDisplayModes: () => getEKYCDisplayModes,
1300
+ getEKYCFields: () => getEKYCFields,
1301
+ indexCountries: () => indexCountries,
1302
+ isFieldOptional: () => isFieldOptional,
1303
+ legacyEkycCountry: () => legacyEkycCountry,
1304
+ mapToEKYCvalue: () => mapToEKYCvalue,
1305
+ resolveEkycSource: () => resolveEkycSource,
1306
+ toEkycConfig: () => toEkycConfig
1307
+ });
1308
+ function mapToEKYCvalue(field) {
1309
+ switch (field) {
1310
+ case "poa": return "poa_document";
1311
+ case "document": return "document_scan";
1312
+ case "phoneModuleInput": return "phone_module_input";
1313
+ case "emailModuleInput": return "email_module_input";
1314
+ default: return "user_input";
1315
+ }
1316
+ }
1317
+ /**
1318
+ * Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
1319
+ * replaced by the first configured addon that defines its own source
1320
+ * (e.g. `phoneProfile` → `PHONE_PROFILE`); any other source is kept.
1321
+ */
1322
+ function resolveEkycSource(source, riskAddons) {
1323
+ if (source !== "RISK_ADDONS_ONLY") return source;
1324
+ return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
1325
+ }
1326
+ /**
1327
+ * eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
1328
+ * the order `getEKYCFields` has always written them.
1329
+ */
1330
+ const EKYC_GROUP_KEYS = {
1331
+ name: "name",
1332
+ ssn: "SSN",
1333
+ address: "address",
1334
+ dateOfBirth: "date of birth",
1335
+ email: "email",
1336
+ phone: "phone",
1337
+ nationality: "nationality",
1338
+ dlNumber: "dlNumber",
1339
+ dlState: "dlState",
1340
+ dlExpireAt: "dlExpireAt",
1341
+ last4SSN: "last4SSN",
1342
+ idNumber: "idNum",
1343
+ idNumber1: "idNum1",
1344
+ gender: "gender",
1345
+ panNumber: "panNumber",
1346
+ idType: "idType",
1347
+ issueDate: "issueDate",
1348
+ fileNumber: "fileNumber"
1349
+ };
1350
+ const RISK_ADDON_PREFIX = "riskAddon:";
1351
+ /**
1352
+ * Each verification field's switches, from its vocabulary group: the config
1353
+ * flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
1354
+ * `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
1355
+ */
1356
+ const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
1357
+ const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
1358
+ if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
1359
+ const enabledBy = group.enabledBy;
1360
+ return [{
1361
+ field,
1362
+ flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
1363
+ riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
1364
+ sourceKey: group.sourceKey
1365
+ }];
1366
+ });
1367
+ /** Maps raw backend module config to a field-source mapping */
1368
+ function getEKYCFields(config) {
1369
+ const values = config;
1370
+ const riskAddons = config.riskAddons;
1371
+ const fields = {};
1372
+ for (const switches of FIELD_SWITCHES) {
1373
+ const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
1374
+ const source = values[switches.sourceKey];
1375
+ fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
1376
+ }
1377
+ return fields;
1378
+ }
1379
+ /**
1380
+ * Each verification field's display-mode key in module configuration, from
1381
+ * the vocabulary's `displayModeKey` on its group.
1382
+ */
1383
+ const DISPLAY_MODE_KEYS = new Map(VOCABULARY.entries.flatMap((entry) => {
1384
+ const field = EKYC_GROUP_KEYS[entry.id];
1385
+ return entry.type === "group" && field && entry.displayModeKey ? [[field, entry.displayModeKey]] : [];
1386
+ }));
1387
+ const DISPLAY_MODES = new Set(VOCABULARY.entries.filter((entry) => entry.type === "displayMode").map((entry) => entry.id));
1388
+ /** Maps raw backend module config to each field's configured display mode. */
1389
+ function getEKYCDisplayModes(config) {
1390
+ const modes = {};
1391
+ const values = config;
1392
+ for (const [field, key] of DISPLAY_MODE_KEYS) {
1393
+ const mode = values[key];
1394
+ if (typeof mode === "string" && DISPLAY_MODES.has(mode)) modes[field] = mode;
1395
+ }
1396
+ return modes;
1397
+ }
1398
+ function indexCountries(entries) {
1399
+ const countries = /* @__PURE__ */ new Map();
1400
+ const ambiguous = /* @__PURE__ */ new Set();
1401
+ for (const entry of entries) {
1402
+ if (!entry.country) continue;
1403
+ for (const id of [entry.source, ...entry.aliases ?? []]) {
1404
+ if (!id || ambiguous.has(id)) continue;
1405
+ const known = countries.get(id);
1406
+ if (known === void 0) countries.set(id, entry.country);
1407
+ else if (known !== entry.country) {
1408
+ countries.delete(id);
1409
+ ambiguous.add(id);
1410
+ }
1411
+ }
1412
+ }
1413
+ return countries;
1414
+ }
1415
+ const INDEXED_COUNTRIES = indexCountries(EKYC_INDEX);
1416
+ /** Maps a verification source string to a country code */
1417
+ function getEKYCCountry(source) {
1418
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
1419
+ }
1420
+ /** Today's source → country switch, the fallback when the index has no entry. */
1421
+ function legacyEkycCountry(source) {
1422
+ switch (source) {
1423
+ case "BR_GOVT_1":
1424
+ case "SERPRO": return "BR";
1425
+ case "MX_CONSUMER_1": return "MX";
1426
+ case "UK_CREDIT_BUREAU_1":
1427
+ case "UK_VOTER_REGISTER": return "GB";
1428
+ case "ES_1": return "ES";
1429
+ case "CL_1": return "CL";
1430
+ case "AR_1": return "AR";
1431
+ case "GR_1": return "GR";
1432
+ case "GT_1": return "GT";
1433
+ case "CO_1": return "CO";
1434
+ case "CR_1": return "CR";
1435
+ case "CA_RES_CREDIT": return "CA";
1436
+ case "INDIA_PAN": return "IN";
1437
+ default: return "US";
1438
+ }
1439
+ }
1440
+ /**
1441
+ * Returns true if the input carries any raw-shape signal — i.e. a non-empty
1442
+ * `source` or at least one `check*` flag set. Used by `toEkycConfig` to
1443
+ * distinguish a raw backend config from an unconfigured / empty input.
1444
+ */
1445
+ function hasRawSignal(c) {
1446
+ 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);
1447
+ }
1448
+ /**
1449
+ * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
1450
+ *
1451
+ * Accepts either:
1452
+ * - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
1453
+ * returned unchanged.
1454
+ * - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
1455
+ * fields, as embedded in a workflow node or returned by
1456
+ * `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
1457
+ * - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
1458
+ * so the machine still lands in `misconfigured` instead of a silent
1459
+ * empty form.
1460
+ *
1461
+ * Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
1462
+ */
1463
+ function toEkycConfig(config) {
1464
+ if (config.flowId || config.verificationFields) return config;
1465
+ if (!hasRawSignal(config)) return config;
1466
+ const source = resolveEkycSource(config.source ?? "", config.riskAddons);
1467
+ const displayModes = getEKYCDisplayModes(config);
1468
+ return {
1469
+ verificationFields: getEKYCFields(config),
1470
+ source,
1471
+ fieldsCountry: getEKYCCountry(source),
1472
+ enablePhoneRisk: config.enablePhoneRisk,
1473
+ ...config.autoExecution === true && { autoExecution: true },
1474
+ ...Object.keys(displayModes).length > 0 && { displayModes }
1475
+ };
1476
+ }
1477
+ /** Determines if a field is optional given the current config source */
1478
+ function isFieldOptional(fieldName, configSource) {
1479
+ if (fieldName === "middleName") return true;
1480
+ if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
1481
+ if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
1482
+ if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
1483
+ if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
1484
+ if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
1485
+ if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
1486
+ if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
1487
+ if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
1488
+ return false;
1489
+ }
1490
+ //#endregion
1491
+ 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 };