@incodetech/core 0.0.0-dev-20261201-b41183a2 → 0.0.0-dev-20261201-e37652f8

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 (191) hide show
  1. package/dist/{FaceDetectionProvider-DILvXMxQ.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +7 -7
  2. package/dist/{addressSearch-BJ711RHG.esm.js → addressSearch-gginelz3.esm.js} +29 -27
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/antifraud.esm.js +2 -2
  5. package/dist/{antifraudManager-DRMBLSh7.esm.js → antifraudManager-B673OXCo.esm.js} +2 -2
  6. package/dist/{antifraudStateMachine-Bi0m60oV.esm.js → antifraudStateMachine-C_d7-TUA.esm.js} +1 -1
  7. package/dist/{api-B58edv6M.esm.js → api-CsXnB7m6.esm.js} +1 -0
  8. package/dist/{apiError-B80OYJHb.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
  9. package/dist/{attemptCarry-CxiYlUAO.esm.js → attemptCarry-8gUYc3pL.esm.js} +1 -1
  10. package/dist/authentication.d.ts +3 -3
  11. package/dist/authentication.esm.js +2 -2
  12. package/dist/{authenticationManager-CXDKsr-j.esm.js → authenticationManager-CrBlRkAd.esm.js} +4 -4
  13. package/dist/{authenticationManager-C_ttJLGU.d.ts → authenticationManager-Cv_jCMGJ.d.ts} +1 -1
  14. package/dist/{authenticationStateMachine-CjheAavc.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
  15. package/dist/certificate-issuance.esm.js +2 -2
  16. package/dist/{certificateIssuanceManager-DGzHjp2j.esm.js → certificateIssuanceManager-D-Dm90F3.esm.js} +2 -2
  17. package/dist/{certificateIssuanceStateMachine-DpflnS6P.esm.js → certificateIssuanceStateMachine-CBNw9Niu.esm.js} +1 -1
  18. package/dist/consent.d.ts +1 -1
  19. package/dist/consent.esm.js +2 -2
  20. package/dist/{consentManager-Bx_osBME.d.ts → consentManager-Bow34QP_.d.ts} +13 -13
  21. package/dist/{consentManager-CyoeiABc.esm.js → consentManager-DQ1uiNhr.esm.js} +2 -2
  22. package/dist/{consentStateMachine-BTUrAslr.esm.js → consentStateMachine-Cb7dKk_1.esm.js} +1 -1
  23. package/dist/cross-document-data-match.esm.js +1 -1
  24. package/dist/{crossDocumentDataMatchManager-cmQmp7Bi.esm.js → crossDocumentDataMatchManager-CeeEmCV1.esm.js} +2 -2
  25. package/dist/curp-validation.d.ts +1 -1
  26. package/dist/curp-validation.esm.js +2 -2
  27. package/dist/{curpValidationManager-BFPZiliY.d.ts → curpValidationManager-DFWjZq3i.d.ts} +1 -1
  28. package/dist/{curpValidationManager-EW44fVpH.esm.js → curpValidationManager-vgHG8gob.esm.js} +2 -2
  29. package/dist/{curpValidationStateMachine-BFkt90Zs.esm.js → curpValidationStateMachine-DaSzh9OA.esm.js} +2 -2
  30. package/dist/custom-fields.esm.js +1 -1
  31. package/dist/custom-watchlist.esm.js +2 -2
  32. package/dist/{customFieldsManager-DPMBJrcH.esm.js → customFieldsManager-BuEt-nm4.esm.js} +2 -2
  33. package/dist/{customWatchlistManager-DiYpPjZx.esm.js → customWatchlistManager-C1z0B5NU.esm.js} +2 -2
  34. package/dist/{customWatchlistStateMachine-D7VxQggF.esm.js → customWatchlistStateMachine-DvwFHjkC.esm.js} +1 -1
  35. package/dist/{deepsightCaptureConfig-22yGNhzp.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
  36. package/dist/{deepsightLoader-DAvHxEmQ.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
  37. package/dist/{desktopCameraElection-DKHWoXIZ.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +5 -5
  38. package/dist/document-capture.d.ts +1 -1
  39. package/dist/document-capture.esm.js +2 -2
  40. package/dist/document-signature.esm.js +2 -2
  41. package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
  42. package/dist/{documentCaptureManager-ytELw-yO.esm.js → documentCaptureManager-DoHy82WC.esm.js} +2 -2
  43. package/dist/{documentCaptureStateMachine-lKG1IVEM.esm.js → documentCaptureStateMachine-C_HQH7vA.esm.js} +2 -2
  44. package/dist/{documentSignatureStateMachine-BVv6yTDC.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +3 -3
  45. package/dist/dynamic-forms.esm.js +2 -2
  46. package/dist/{dynamicFormsManager-L9BCGhY3.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +2 -2
  47. package/dist/{dynamicFormsStateMachine-UeIgfIgO.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +2 -2
  48. package/dist/ekyb.d.ts +1 -1
  49. package/dist/ekyb.esm.js +2 -2
  50. package/dist/{ekybManager-BNG13W2D.esm.js → ekybManager-xhoOX9O9.esm.js} +2 -2
  51. package/dist/{ekybStateMachine-qSw4IjCe.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +184 -57
  52. package/dist/ekyc-prefill.d.ts +1 -1
  53. package/dist/ekyc-prefill.esm.js +2 -2
  54. package/dist/ekyc.d.ts +3 -0
  55. package/dist/ekyc.esm.js +3 -3
  56. package/dist/{ekycManager-Bt0FZlZO.esm.js → ekycManager-DrGuK0kT.esm.js} +2 -2
  57. package/dist/{ekycPrefillManager-C5DMDJEA.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
  58. package/dist/{ekycPrefillManager-D-8VY48A.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +8 -8
  59. package/dist/{ekycPrefillStateMachine-66IiDSxQ.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +9 -88
  60. package/dist/{ekycStateMachine-lo3GvfpV.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +299 -126
  61. package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
  62. package/dist/electronic-signature.esm.js +1 -1
  63. package/dist/{electronicSignatureManager-Dc0_ymIt.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +3 -3
  64. package/dist/email.esm.js +2 -2
  65. package/dist/{emailManager-BBdRYLtH.esm.js → emailManager-CUX2saAB.esm.js} +2 -2
  66. package/dist/{emailStateMachine-DO7lWYvn.esm.js → emailStateMachine-BzWHKLtW.esm.js} +2 -2
  67. package/dist/{events-PUWyizJn.esm.js → events-Dlkhhx5O.esm.js} +1 -1
  68. package/dist/events.esm.js +1 -1
  69. package/dist/extensibility.d.ts +14 -14
  70. package/dist/extensibility.esm.js +35 -35
  71. package/dist/face-match.esm.js +2 -2
  72. package/dist/{faceCaptureManagerFactory-D0y15MK_.d.ts → faceCaptureManagerFactory-2oqROMSB.d.ts} +3 -3
  73. package/dist/{faceCaptureManagerFactory-DePLuBnT.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +3 -3
  74. package/dist/{faceCaptureSetup-C8qfvh2x.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +10 -10
  75. package/dist/{faceMatchManager-nBvS9z0o.esm.js → faceMatchManager-BzaXiW4H.esm.js} +2 -2
  76. package/dist/{faceMatchStateMachine-48O8j_Lx.esm.js → faceMatchStateMachine-BItwQ_yA.esm.js} +2 -2
  77. package/dist/{feature-management-srznX8Iz.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
  78. package/dist/feature-management.esm.js +1 -1
  79. package/dist/field-comparison.esm.js +1 -1
  80. package/dist/{fieldComparisonManager-B1ipvtnp.esm.js → fieldComparisonManager-CzX6IhGd.esm.js} +2 -2
  81. package/dist/fiscal-qr.esm.js +1 -1
  82. package/dist/{fiscalQrManager-yecjuXV4.esm.js → fiscalQrManager-Dg6Mp58y.esm.js} +2 -2
  83. package/dist/flow-events.d.ts +1 -1
  84. package/dist/flow.d.ts +31 -9
  85. package/dist/flow.esm.js +11 -7
  86. package/dist/{flowCompletionService-Cba59yFV.esm.js → flowCompletionService-L0J63ui-.esm.js} +2 -2
  87. package/dist/{flowServices-B33MhjQM.esm.js → flowServices-3OXrEqDE.esm.js} +25 -21
  88. package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
  89. package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
  90. package/dist/geolocation.d.ts +1 -1
  91. package/dist/geolocation.esm.js +2 -2
  92. package/dist/{geolocationManager-C7cHHTkd.esm.js → geolocationManager-CREfQNgO.esm.js} +2 -2
  93. package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
  94. package/dist/{geolocationStateMachine-QJqoWT7E.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +3 -3
  95. package/dist/government-validation.esm.js +2 -2
  96. package/dist/{governmentValidationManager-0-L21hu6.esm.js → governmentValidationManager-B7lIuL4r.esm.js} +2 -2
  97. package/dist/{governmentValidationStateMachine-BFIcq3UB.esm.js → governmentValidationStateMachine-BuW6l3ah.esm.js} +1 -1
  98. package/dist/home.d.ts +1 -1
  99. package/dist/home.esm.js +1 -1
  100. package/dist/http.esm.js +1 -1
  101. package/dist/id-ocr.d.ts +1 -1
  102. package/dist/id-ocr.esm.js +2 -2
  103. package/dist/id-selfie-flow.d.ts +1 -1
  104. package/dist/id-selfie-flow.esm.js +6 -6
  105. package/dist/id-verification.esm.js +2 -2
  106. package/dist/id.d.ts +2 -2
  107. package/dist/id.esm.js +3 -3
  108. package/dist/{idCaptureManager-3YmXwvvY.esm.js → idCaptureManager-B5ZN7scK.esm.js} +6 -6
  109. package/dist/{idCaptureManager-B72fNOKa.d.ts → idCaptureManager-BMsGPjcf.d.ts} +2 -2
  110. package/dist/{idCaptureServices-j-hB9ROq.esm.js → idCaptureServices-7zZ457LW.esm.js} +4 -4
  111. package/dist/{idCaptureStateMachine-DcQQvjLv.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +15 -15
  112. package/dist/{idOcrManager-CNGVEZ7B.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
  113. package/dist/{idOcrManager-bjBLjrEE.esm.js → idOcrManager-C9C8UaPr.esm.js} +2 -2
  114. package/dist/{idOcrStateMachine-D5ifJ1B8.esm.js → idOcrStateMachine-DANDVn-6.esm.js} +1 -1
  115. package/dist/{idVerificationManager-C8Ja-vKq.esm.js → idVerificationManager-B_6wwpeT.esm.js} +2 -2
  116. package/dist/{idVerificationStateMachine-BMnfZZli.esm.js → idVerificationStateMachine-MjQmD3yQ.esm.js} +1 -1
  117. package/dist/identity-reuse.d.ts +2 -2
  118. package/dist/identity-reuse.esm.js +2 -2
  119. package/dist/identity-search.esm.js +1 -1
  120. package/dist/{identityReuseManager-D_jiHp1n.d.ts → identityReuseManager-BE6LHcuP.d.ts} +157 -21
  121. package/dist/{identityReuseManager-B5BWAleT.esm.js → identityReuseManager-DWECWIiZ.esm.js} +7 -3
  122. package/dist/{identityReuseStateMachine-Cuggm1UP.esm.js → identityReuseStateMachine-nBv0KUJC.esm.js} +73 -5
  123. package/dist/{index-O5g5kKdI.d.ts → index-k1LUfkAo.d.ts} +1 -1
  124. package/dist/index.esm.js +1 -1
  125. package/dist/kyb-checks.esm.js +2 -2
  126. package/dist/{kybChecksManager-BorQeoKZ.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
  127. package/dist/{kybChecksStateMachine-kuV8xPAu.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +4 -4
  128. package/dist/mandatory-consent.d.ts +2 -2
  129. package/dist/mandatory-consent.esm.js +2 -2
  130. package/dist/{mandatoryConsentManager-C6jjFptX.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +10 -10
  131. package/dist/{mandatoryConsentManager-FfgHdPYw.esm.js → mandatoryConsentManager-S8rgqCld.esm.js} +2 -2
  132. package/dist/{mandatoryConsentStateMachine-CXuYC3qR.esm.js → mandatoryConsentStateMachine-BtE4heVc.esm.js} +1 -1
  133. package/dist/{multipartRecordingService-CFmOUGQt.esm.js → multipartRecordingService-C8v02l56.esm.js} +1 -1
  134. package/dist/phone.esm.js +2 -2
  135. package/dist/{phoneManager-oIMdbeLG.esm.js → phoneManager-uQEAWKlO.esm.js} +2 -2
  136. package/dist/{phoneServices-Dk4j3NhI.esm.js → phoneServices-XoT74eS0.esm.js} +1 -1
  137. package/dist/{phoneStateMachine-Cu3y7ewi.esm.js → phoneStateMachine-B4W4CSqf.esm.js} +2 -2
  138. package/dist/{processFaceMatch-CHeI0DEt.esm.js → processFaceMatch-CpQYLU-y.esm.js} +1 -1
  139. package/dist/qe-signature.esm.js +1 -1
  140. package/dist/{recordingService-RHW4CWxh.esm.js → recordingService-OcyZO_w6.esm.js} +3 -3
  141. package/dist/redirect-to-mobile.esm.js +2 -2
  142. package/dist/{redirectToMobileManager-DmrPLTLG.esm.js → redirectToMobileManager-UQZkhZFB.esm.js} +2 -2
  143. package/dist/{redirectToMobileStateMachine-OeQDdgsK.esm.js → redirectToMobileStateMachine-D1wp--wG.esm.js} +1 -1
  144. package/dist/{runChildModule-pJrB5rsq.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
  145. package/dist/{sdkVersion-CiTnubuK.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
  146. package/dist/selfie.d.ts +3 -3
  147. package/dist/selfie.esm.js +8 -8
  148. package/dist/{selfieErrorUtils-UJWNVxvr.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
  149. package/dist/{selfieManager-B9nn8qKH.esm.js → selfieManager-DQ5xB8y6.esm.js} +4 -4
  150. package/dist/{selfieManager-C44cA6cA.d.ts → selfieManager-RgcJwpHg.d.ts} +1 -1
  151. package/dist/{selfieStateMachine-7H38L53x.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
  152. package/dist/{session-BLrEehWj.esm.js → session-DKnCv6zu.esm.js} +5 -5
  153. package/dist/session.d.ts +9 -1
  154. package/dist/session.esm.js +5 -5
  155. package/dist/{sessionInitializer-DAC3I8PG.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +7 -7
  156. package/dist/{setup-BajT35bZ.esm.js → setup-JGwc0kgu.esm.js} +8 -8
  157. package/dist/signature.esm.js +2 -2
  158. package/dist/{signatureManager-DRUflksL.esm.js → signatureManager-3g4_cavt.esm.js} +2 -2
  159. package/dist/{signatureStateMachine-BQZenxel.esm.js → signatureStateMachine-CkES2vVv.esm.js} +1 -1
  160. package/dist/{stats-DHu3li6G.esm.js → stats-D_gJvsTS.esm.js} +1 -1
  161. package/dist/stats.esm.js +1 -1
  162. package/dist/trim-OmrUb6mG.esm.js +297 -0
  163. package/dist/trueSight-9VsfHXFt.esm.js +1 -0
  164. package/dist/{trueSightService-BLyfduve.esm.js → trueSightService-Dx8AqgKD.esm.js} +3 -3
  165. package/dist/trust-graph.esm.js +2 -2
  166. package/dist/{trustGraphStateMachine-0Ehwried.esm.js → trustGraphStateMachine-fuYq0Cxf.esm.js} +1 -1
  167. package/dist/{types-C57lH3a8.d.ts → types-BV2Tl1wE.d.ts} +1 -1
  168. package/dist/{types-CaQV2ksk.d.ts → types-BVgTvWOP.d.ts} +1 -1
  169. package/dist/{types-DDmU-yVM.d.ts → types-DAhpyjuI.d.ts} +1 -1
  170. package/dist/{types-ujAUlvvI.d.ts → types-DH4VaTRC.d.ts} +4 -4
  171. package/dist/types-RLVmm_Hf.d.ts +6 -0
  172. package/dist/{types-ByNCQYE9.d.ts → types-YS7g_P7z.d.ts} +1 -1
  173. package/dist/uppercase-CwlIuiwR.esm.js +115 -0
  174. package/dist/video-selfie.d.ts +1 -1
  175. package/dist/video-selfie.esm.js +6 -6
  176. package/dist/{videoSelfieCameraWarmer-D4nY62Xt.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +4 -4
  177. package/dist/{videoSelfieStepDetector-DAEJDeL3.d.ts → videoSelfieStepDetector-DCOmz3yk.d.ts} +2 -2
  178. package/dist/wasm.esm.js +1 -1
  179. package/dist/watchlist-for-business.esm.js +2 -2
  180. package/dist/watchlist.esm.js +2 -2
  181. package/dist/{watchlistForBusinessManager-d8kdf35n.esm.js → watchlistForBusinessManager-VDu1ypVz.esm.js} +2 -2
  182. package/dist/{watchlistForBusinessStateMachine-Y9wFmuMH.esm.js → watchlistForBusinessStateMachine-Dr85bA22.esm.js} +1 -1
  183. package/dist/{watchlistManager-D1BVrd3H.esm.js → watchlistManager-Dc9sFwZx.esm.js} +2 -2
  184. package/dist/{watchlistStateMachine-Da4p0sTE.esm.js → watchlistStateMachine-BnKGh6Kk.esm.js} +1 -1
  185. package/dist/workflow.d.ts +5 -5
  186. package/dist/workflow.esm.js +40 -40
  187. package/package.json +1 -1
  188. package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
  189. package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
  190. package/dist/trueSight-BdWbgUnZ.esm.js +0 -1
  191. package/dist/types-B_THBzAh.d.ts +0 -6
@@ -1,5 +1,5 @@
1
1
  import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
2
+ import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
3
3
  import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
@@ -7,10 +7,11 @@ import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
7
7
  import { a as hasNameCharacters, c as isEmailFormat, d as resolvePrefill, f as isValidRut, h as isValidEsDni, i as isNotFuture, l as digitCountError, m as isValidFiPersonalIdentityCode, n as hasScriptCharacters, o as isWithinMaxAge, p as isValidInDrivingLicenseNumber, r as isInNumericRange, s as isPoBox, u as hasDigitCount } from "./scriptCharacters-D7swUycV.esm.js";
8
8
  import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
9
9
  import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
10
- import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, n as searchAddress, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-BJ711RHG.esm.js";
11
- import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
12
- import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
13
- import { C as POSTAL_CODE_SOURCES, D as VOCABULARY, E as TAX_ID_SOURCES, S as ONE_OF_REQUIRED_GROUPS, T as STREET_SOURCES, _ as COUNTRY_SELECTOR_DISABLED_SOURCES, a as getEKYCFields, b as MIDDLE_NAME_SOURCES, c as isFieldOptional, d as toEkycConfig, f as withRiskAddonFields, g as COUNTRY_CODE_OMITTED_SOURCES, h as CITY_SOURCES, i as getEKYCDisplayModes, l as mapToEKYCvalue, m as APARTMENT_SOURCES, o as getEkycRiskAddons, p as ADDRESS_STATE_SOURCES, r as getEKYCCountry, s as getRiskAddonFields, t as EKYC_GROUP_KEYS, u as resolveEkycSource, v as EMAIL_SOURCES, w as STATE_CODE_HINTS, x as NAME_SOURCES, y as HOUSE_NO_SOURCES } from "./ekycUtils-BnTyeA-_.esm.js";
10
+ import { a as formatPostalCode, c as getPostalCodeMaxLength, d as fillFromSuggestion, f as getStreetLevelErrorForSuggestion, i as PAYLOAD_TRANSFORMS, l as validatePostalCode, n as searchAddress, o as getPostalCodeErrorKey, p as keepSuggestionInOptions, r as standardDeps, s as getPostalCodeErrorParams, t as debounceSearchActor, u as STREET_LEVEL_REQUIRED_ERROR } from "./addressSearch-gginelz3.esm.js";
11
+ import { a as buildPayload, i as checkSupport, l as DYNAMIC_REQUIRED_KEY, r as resolveForm } from "./trim-OmrUb6mG.esm.js";
12
+ import { o as createBundledDefinitionSource, s as matchesCharTemplate } from "./uppercase-CwlIuiwR.esm.js";
13
+ import { t as isFormDefinitionsEnabled } from "./formDefinitionsRollout-B-c4yO2z.esm.js";
14
+ import { C as ONE_OF_REQUIRED_GROUPS, D as TAX_ID_SOURCES, E as STREET_SOURCES, O as VOCABULARY, S as NAME_SOURCES, T as STATE_CODE_HINTS, _ as COUNTRY_CODE_OMITTED_SOURCES, a as getEKYCFields, b as HOUSE_NO_SOURCES, c as isFieldOptional, f as toEkycConfigFor, g as CITY_SOURCES, h as APARTMENT_SOURCES, i as getEKYCDisplayModes, k as EKYC_INDEX, l as mapToEKYCvalue, m as ADDRESS_STATE_SOURCES, o as getEkycRiskAddons, p as withRiskAddonFields, r as getEKYCCountry, s as getRiskAddonFields, t as EKYC_GROUP_KEYS, u as resolveEkycSource, v as COUNTRY_SELECTOR_DISABLED_SOURCES, w as POSTAL_CODE_SOURCES, x as MIDDLE_NAME_SOURCES, y as EMAIL_SOURCES } from "./ekycUtils-DfBNTcvX.esm.js";
14
15
  import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
15
16
  import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
16
17
  import { n as hasAllowedCharacters } from "./allowedCharacters-Bnir--CN.esm.js";
@@ -674,7 +675,7 @@ const EKYC_DEFINITIONS = {
674
675
  rules: [{ id: "postalCodeFormat" }],
675
676
  payload: { transforms: [{
676
677
  id: "stripSeparators",
677
- params: { chars: "- " }
678
+ params: { chars: "- \n\v\f\r\xA0" }
678
679
  }] },
679
680
  prefill: ["document.postalCode", "poa.postalCode"]
680
681
  }
@@ -852,7 +853,7 @@ const EKYC_DEFINITIONS = {
852
853
  rules: [{ id: "postalCodeFormat" }],
853
854
  payload: { transforms: [{
854
855
  id: "stripSeparators",
855
- params: { chars: "- " }
856
+ params: { chars: "- \n\v\f\r\xA0" }
856
857
  }] },
857
858
  prefill: ["document.postalCode", "poa.postalCode"]
858
859
  }
@@ -1021,7 +1022,7 @@ const EKYC_DEFINITIONS = {
1021
1022
  ],
1022
1023
  payload: { transforms: [{
1023
1024
  id: "stripSeparators",
1024
- params: { chars: "- " }
1025
+ params: { chars: "- \n\v\f\r\xA0" }
1025
1026
  }] },
1026
1027
  prefill: ["document.postalCode", "poa.postalCode"]
1027
1028
  }
@@ -1208,7 +1209,7 @@ const EKYC_DEFINITIONS = {
1208
1209
  rules: [{ id: "postalCodeFormat" }],
1209
1210
  payload: { transforms: [{
1210
1211
  id: "stripSeparators",
1211
- params: { chars: "- " }
1212
+ params: { chars: "- \n\v\f\r\xA0" }
1212
1213
  }] },
1213
1214
  prefill: ["document.postalCode", "poa.postalCode"]
1214
1215
  }
@@ -1400,7 +1401,7 @@ const EKYC_DEFINITIONS = {
1400
1401
  rules: [{ id: "postalCodeFormat" }],
1401
1402
  payload: { transforms: [{
1402
1403
  id: "stripSeparators",
1403
- params: { chars: "- " }
1404
+ params: { chars: "- \n\v\f\r\xA0" }
1404
1405
  }] },
1405
1406
  prefill: ["document.postalCode", "poa.postalCode"]
1406
1407
  }
@@ -1568,7 +1569,7 @@ const EKYC_DEFINITIONS = {
1568
1569
  rules: [{ id: "postalCodeFormat" }],
1569
1570
  payload: { transforms: [{
1570
1571
  id: "stripSeparators",
1571
- params: { chars: "- " }
1572
+ params: { chars: "- \n\v\f\r\xA0" }
1572
1573
  }] },
1573
1574
  prefill: ["document.postalCode", "poa.postalCode"]
1574
1575
  }
@@ -1755,7 +1756,7 @@ const EKYC_DEFINITIONS = {
1755
1756
  }],
1756
1757
  payload: { transforms: [{
1757
1758
  id: "stripSeparators",
1758
- params: { chars: "- " }
1759
+ params: { chars: "- \n\v\f\r\xA0" }
1759
1760
  }] },
1760
1761
  prefill: ["document.postalCode", "poa.postalCode"]
1761
1762
  }
@@ -1902,7 +1903,7 @@ const EKYC_DEFINITIONS = {
1902
1903
  rules: [{ id: "postalCodeFormat" }],
1903
1904
  payload: { transforms: [{
1904
1905
  id: "stripSeparators",
1905
- params: { chars: "- " }
1906
+ params: { chars: "- \n\v\f\r\xA0" }
1906
1907
  }] },
1907
1908
  prefill: ["document.postalCode", "poa.postalCode"]
1908
1909
  }
@@ -2411,7 +2412,7 @@ const EKYC_DEFINITIONS = {
2411
2412
  rules: [{ id: "postalCodeFormat" }],
2412
2413
  payload: { transforms: [{
2413
2414
  id: "stripSeparators",
2414
- params: { chars: "- " }
2415
+ params: { chars: "- \n\v\f\r\xA0" }
2415
2416
  }] },
2416
2417
  prefill: ["document.postalCode", "poa.postalCode"]
2417
2418
  }
@@ -2544,7 +2545,7 @@ const EKYC_DEFINITIONS = {
2544
2545
  rules: [{ id: "postalCodeFormat" }],
2545
2546
  payload: { transforms: [{
2546
2547
  id: "stripSeparators",
2547
- params: { chars: "- " }
2548
+ params: { chars: "- \n\v\f\r\xA0" }
2548
2549
  }] },
2549
2550
  prefill: ["document.postalCode", "poa.postalCode"]
2550
2551
  }
@@ -2729,7 +2730,7 @@ const EKYC_DEFINITIONS = {
2729
2730
  }],
2730
2731
  payload: { transforms: [{
2731
2732
  id: "stripSeparators",
2732
- params: { chars: "- " }
2733
+ params: { chars: "- \n\v\f\r\xA0" }
2733
2734
  }] },
2734
2735
  prefill: ["document.postalCode", "poa.postalCode"]
2735
2736
  }
@@ -2887,7 +2888,7 @@ const EKYC_DEFINITIONS = {
2887
2888
  }],
2888
2889
  payload: { transforms: [{
2889
2890
  id: "stripSeparators",
2890
- params: { chars: "- " }
2891
+ params: { chars: "- \n\v\f\r\xA0" }
2891
2892
  }] },
2892
2893
  prefill: ["document.postalCode", "poa.postalCode"]
2893
2894
  }
@@ -3044,7 +3045,7 @@ const EKYC_DEFINITIONS = {
3044
3045
  }],
3045
3046
  payload: { transforms: [{
3046
3047
  id: "stripSeparators",
3047
- params: { chars: "- " }
3048
+ params: { chars: "- \n\v\f\r\xA0" }
3048
3049
  }] },
3049
3050
  prefill: ["document.postalCode", "poa.postalCode"]
3050
3051
  }
@@ -3205,7 +3206,7 @@ const EKYC_DEFINITIONS = {
3205
3206
  }],
3206
3207
  payload: { transforms: [{
3207
3208
  id: "stripSeparators",
3208
- params: { chars: "- " }
3209
+ params: { chars: "- \n\v\f\r\xA0" }
3209
3210
  }] },
3210
3211
  prefill: ["document.postalCode", "poa.postalCode"]
3211
3212
  }
@@ -3373,7 +3374,7 @@ const EKYC_DEFINITIONS = {
3373
3374
  rules: [{ id: "postalCodeFormat" }],
3374
3375
  payload: { transforms: [{
3375
3376
  id: "stripSeparators",
3376
- params: { chars: "- " }
3377
+ params: { chars: "- \n\v\f\r\xA0" }
3377
3378
  }] },
3378
3379
  prefill: ["document.postalCode", "poa.postalCode"]
3379
3380
  }
@@ -3576,7 +3577,7 @@ const EKYC_DEFINITIONS = {
3576
3577
  }],
3577
3578
  payload: { transforms: [{
3578
3579
  id: "stripSeparators",
3579
- params: { chars: "- " }
3580
+ params: { chars: "- \n\v\f\r\xA0" }
3580
3581
  }] },
3581
3582
  prefill: ["document.postalCode", "poa.postalCode"]
3582
3583
  }
@@ -4044,7 +4045,7 @@ const EKYC_DEFINITIONS = {
4044
4045
  }],
4045
4046
  payload: { transforms: [{
4046
4047
  id: "stripSeparators",
4047
- params: { chars: "- " }
4048
+ params: { chars: "- \n\v\f\r\xA0" }
4048
4049
  }] },
4049
4050
  prefill: ["document.postalCode", "poa.postalCode"]
4050
4051
  }
@@ -4371,7 +4372,7 @@ const EKYC_DEFINITIONS = {
4371
4372
  }],
4372
4373
  payload: { transforms: [{
4373
4374
  id: "stripSeparators",
4374
- params: { chars: "- " }
4375
+ params: { chars: "- \n\v\f\r\xA0" }
4375
4376
  }] },
4376
4377
  prefill: ["document.postalCode", "poa.postalCode"]
4377
4378
  }
@@ -4783,7 +4784,7 @@ const EKYC_DEFINITIONS = {
4783
4784
  rules: [{ id: "postalCodeFormat" }],
4784
4785
  payload: { transforms: [{
4785
4786
  id: "stripSeparators",
4786
- params: { chars: "- " }
4787
+ params: { chars: "- \n\v\f\r\xA0" }
4787
4788
  }] },
4788
4789
  prefill: ["document.postalCode", "poa.postalCode"]
4789
4790
  }
@@ -4937,7 +4938,7 @@ const EKYC_DEFINITIONS = {
4937
4938
  rules: [{ id: "postalCodeFormat" }],
4938
4939
  payload: { transforms: [{
4939
4940
  id: "stripSeparators",
4940
- params: { chars: "- " }
4941
+ params: { chars: "- \n\v\f\r\xA0" }
4941
4942
  }] },
4942
4943
  prefill: ["document.postalCode", "poa.postalCode"]
4943
4944
  }
@@ -5091,7 +5092,7 @@ const EKYC_DEFINITIONS = {
5091
5092
  rules: [{ id: "postalCodeFormat" }],
5092
5093
  payload: { transforms: [{
5093
5094
  id: "stripSeparators",
5094
- params: { chars: "- " }
5095
+ params: { chars: "- \n\v\f\r\xA0" }
5095
5096
  }] },
5096
5097
  prefill: ["document.postalCode", "poa.postalCode"]
5097
5098
  }
@@ -5432,7 +5433,7 @@ const EKYC_DEFINITIONS = {
5432
5433
  }],
5433
5434
  payload: { transforms: [{
5434
5435
  id: "stripSeparators",
5435
- params: { chars: "- " }
5436
+ params: { chars: "- \n\v\f\r\xA0" }
5436
5437
  }] },
5437
5438
  prefill: ["document.postalCode", "poa.postalCode"]
5438
5439
  }
@@ -5593,7 +5594,7 @@ const EKYC_DEFINITIONS = {
5593
5594
  rules: [{ id: "postalCodeFormat" }],
5594
5595
  payload: { transforms: [{
5595
5596
  id: "stripSeparators",
5596
- params: { chars: "- " }
5597
+ params: { chars: "- \n\v\f\r\xA0" }
5597
5598
  }] },
5598
5599
  prefill: ["document.postalCode", "poa.postalCode"]
5599
5600
  }
@@ -5741,7 +5742,7 @@ const EKYC_DEFINITIONS = {
5741
5742
  rules: [{ id: "postalCodeFormat" }],
5742
5743
  payload: { transforms: [{
5743
5744
  id: "stripSeparators",
5744
- params: { chars: "- " }
5745
+ params: { chars: "- \n\v\f\r\xA0" }
5745
5746
  }] },
5746
5747
  prefill: ["document.postalCode", "poa.postalCode"]
5747
5748
  }
@@ -5754,6 +5755,91 @@ const EKYC_DEFINITIONS = {
5754
5755
  }
5755
5756
  }
5756
5757
  },
5758
+ "ekyc/RISK_ADDONS_ONLY": {
5759
+ schemaVersion: 1,
5760
+ vocabulary: "1.2",
5761
+ id: "ekyc/RISK_ADDONS_ONLY",
5762
+ module: "ekyc",
5763
+ source: "RISK_ADDONS_ONLY",
5764
+ fields: [{
5765
+ name: "email",
5766
+ kind: "text",
5767
+ group: "email",
5768
+ requiredWhen: [{ riskAddon: "emailCheck" }],
5769
+ label: { key: "verification.labels.email" },
5770
+ placeholder: { key: "verification.placeholder.email" },
5771
+ input: {
5772
+ keyboard: "email",
5773
+ autofill: "email"
5774
+ },
5775
+ rules: [{ id: "emailFormat" }],
5776
+ prefill: ["emailModule.email"]
5777
+ }, {
5778
+ name: "phone",
5779
+ kind: "phone",
5780
+ group: "phone",
5781
+ requiredWhen: [
5782
+ { riskAddon: "phoneCheck" },
5783
+ { riskAddon: "advancedPhoneCheck" },
5784
+ { riskAddon: "phoneProfile" }
5785
+ ],
5786
+ label: { key: "verification.labels.phone" },
5787
+ input: { autofill: "phone" },
5788
+ phone: { lockCountry: "whenPhoneRisk" },
5789
+ rules: [{ id: "phoneFormat" }],
5790
+ payload: { transforms: [{ id: "e164" }] },
5791
+ prefill: ["phoneModule.phone"]
5792
+ }],
5793
+ submit: {
5794
+ static: { plugins: ["kyc"] },
5795
+ context: {
5796
+ source: "source",
5797
+ countryCode: "country"
5798
+ }
5799
+ }
5800
+ },
5801
+ "ekyc/RISK_ADDONS_ONLY/phoneProfile": {
5802
+ schemaVersion: 1,
5803
+ vocabulary: "1.2",
5804
+ id: "ekyc/RISK_ADDONS_ONLY/phoneProfile",
5805
+ module: "ekyc",
5806
+ source: "RISK_ADDONS_ONLY",
5807
+ riskAddon: "phoneProfile",
5808
+ fields: [{
5809
+ name: "email",
5810
+ kind: "text",
5811
+ group: "email",
5812
+ requiredWhen: [{ riskAddon: "emailCheck" }],
5813
+ label: { key: "verification.labels.email" },
5814
+ placeholder: { key: "verification.placeholder.email" },
5815
+ input: {
5816
+ keyboard: "email",
5817
+ autofill: "email"
5818
+ },
5819
+ rules: [{ id: "emailFormat" }],
5820
+ prefill: ["emailModule.email"]
5821
+ }, {
5822
+ name: "phone",
5823
+ kind: "phone",
5824
+ group: "phone",
5825
+ required: true,
5826
+ requiredWhen: [
5827
+ { riskAddon: "phoneCheck" },
5828
+ { riskAddon: "advancedPhoneCheck" },
5829
+ { riskAddon: "phoneProfile" }
5830
+ ],
5831
+ label: { key: "verification.labels.phone" },
5832
+ input: { autofill: "phone" },
5833
+ phone: { lockCountry: "whenPhoneRisk" },
5834
+ rules: [{ id: "phoneFormat" }],
5835
+ payload: { transforms: [{ id: "e164" }] },
5836
+ prefill: ["phoneModule.phone"]
5837
+ }],
5838
+ submit: { static: {
5839
+ plugins: ["kyc"],
5840
+ source: "PHONE_PROFILE"
5841
+ } }
5842
+ },
5757
5843
  "ekyc/RO/RO_VOTER_REGISTER": {
5758
5844
  schemaVersion: 1,
5759
5845
  vocabulary: "1.3",
@@ -5899,7 +5985,7 @@ const EKYC_DEFINITIONS = {
5899
5985
  }],
5900
5986
  payload: { transforms: [{
5901
5987
  id: "stripSeparators",
5902
- params: { chars: "- " }
5988
+ params: { chars: "- \n\v\f\r\xA0" }
5903
5989
  }] },
5904
5990
  prefill: ["document.postalCode", "poa.postalCode"]
5905
5991
  }
@@ -6066,7 +6152,7 @@ const EKYC_DEFINITIONS = {
6066
6152
  rules: [{ id: "postalCodeFormat" }],
6067
6153
  payload: { transforms: [{
6068
6154
  id: "stripSeparators",
6069
- params: { chars: "- " }
6155
+ params: { chars: "- \n\v\f\r\xA0" }
6070
6156
  }] },
6071
6157
  prefill: ["document.postalCode", "poa.postalCode"]
6072
6158
  }
@@ -6731,7 +6817,7 @@ const EKYC_DEFINITIONS = {
6731
6817
  rules: [{ id: "postalCodeFormat" }],
6732
6818
  payload: { transforms: [{
6733
6819
  id: "stripSeparators",
6734
- params: { chars: "- " }
6820
+ params: { chars: "- \n\v\f\r\xA0" }
6735
6821
  }] },
6736
6822
  prefill: ["document.postalCode", "poa.postalCode"]
6737
6823
  }
@@ -6915,7 +7001,7 @@ const EKYC_DEFINITIONS = {
6915
7001
  rules: [{ id: "postalCodeFormat" }],
6916
7002
  payload: { transforms: [{
6917
7003
  id: "stripSeparators",
6918
- params: { chars: "- " }
7004
+ params: { chars: "- \n\v\f\r\xA0" }
6919
7005
  }] },
6920
7006
  prefill: ["document.postalCode", "poa.postalCode"]
6921
7007
  }
@@ -7100,7 +7186,7 @@ const EKYC_DEFINITIONS = {
7100
7186
  rules: [{ id: "postalCodeFormat" }],
7101
7187
  payload: { transforms: [{
7102
7188
  id: "stripSeparators",
7103
- params: { chars: "- " }
7189
+ params: { chars: "- \n\v\f\r\xA0" }
7104
7190
  }] },
7105
7191
  prefill: ["document.postalCode", "poa.postalCode"]
7106
7192
  }
@@ -7283,7 +7369,7 @@ const EKYC_DEFINITIONS = {
7283
7369
  rules: [{ id: "postalCodeFormat" }],
7284
7370
  payload: { transforms: [{
7285
7371
  id: "stripSeparators",
7286
- params: { chars: "- " }
7372
+ params: { chars: "- \n\v\f\r\xA0" }
7287
7373
  }] },
7288
7374
  prefill: ["document.postalCode", "poa.postalCode"]
7289
7375
  }
@@ -7427,7 +7513,7 @@ const EKYC_DEFINITIONS = {
7427
7513
  rules: [{ id: "postalCodeFormat" }],
7428
7514
  payload: { transforms: [{
7429
7515
  id: "stripSeparators",
7430
- params: { chars: "- " }
7516
+ params: { chars: "- \n\v\f\r\xA0" }
7431
7517
  }] },
7432
7518
  prefill: ["document.postalCode", "poa.postalCode"]
7433
7519
  }
@@ -7888,9 +7974,11 @@ function projectRules(rules, country, required) {
7888
7974
  * Selects the bundled definition for a source and country, resolves it against
7889
7975
  * the verification fields from module configuration, and projects the result
7890
7976
  * to today's public `EkycFieldDef[]` shape, including the `validation` arrays
7891
- * today's validators run. A pair without a definition this projection can
7892
- * express keeps the current builder, and so does a source today's builder
7893
- * knows while the form definitions rollout is off.
7977
+ * today's validators run. The request body comes from the definition itself
7978
+ * (`buildEkycSubmitBody`), so any kernel request transform, `payload.omit`,
7979
+ * key renames and `submit.copies` are fine. A pair without a definition this
7980
+ * projection can express keeps the current builder, and so does a source
7981
+ * today's builder knows while the form definitions rollout is off.
7894
7982
  */
7895
7983
  /**
7896
7984
  * The option lists definitions reference by `optionsRef`. Their values must
@@ -7918,9 +8006,9 @@ const OPTION_LISTS = {
7918
8006
  ]
7919
8007
  };
7920
8008
  /**
7921
- * What the projection can express today. Request-body transforms are listed
7922
- * because `buildSubmitPayload` already applies them, on the fields
7923
- * `legacyPayloadTransforms` names.
8009
+ * What eKYC can use today. The request body is the kernel's, so every
8010
+ * request transform it implements is listed, and `payload.omitWhenEmpty`
8011
+ * (the kernel leaves every empty value out).
7924
8012
  */
7925
8013
  const EKYC_SUPPORTED_IDS = {
7926
8014
  schemaVersions: [1],
@@ -7933,18 +8021,12 @@ const EKYC_SUPPORTED_IDS = {
7933
8021
  ]),
7934
8022
  groups: new Set(Object.keys(EKYC_GROUP_KEYS)),
7935
8023
  rules: new Set(Object.keys(RULES)),
7936
- transforms: /* @__PURE__ */ new Set([
7937
- "stripSeparators",
7938
- "e164",
7939
- "nationalNumber",
7940
- "e164NoPlus",
7941
- "uppercase"
7942
- ]),
8024
+ transforms: new Set(PAYLOAD_TRANSFORMS.transforms.keys()),
7943
8025
  groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
7944
8026
  optionLists: new Set(Object.keys(OPTION_LISTS)),
7945
8027
  conditions: /* @__PURE__ */ new Set(["fieldFilled", "riskAddon"]),
7946
8028
  prefillSources: new Set(EKYC_PREFILL_SOURCES),
7947
- flags: /* @__PURE__ */ new Set()
8029
+ flags: /* @__PURE__ */ new Set(["payload.omitWhenEmpty"])
7948
8030
  };
7949
8031
  /** Today's field shape only flags `middleName` as optional. */
7950
8032
  const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
@@ -7954,30 +8036,6 @@ const UI_SECTIONS = /* @__PURE__ */ new Set(["address", "driverLicense"]);
7954
8036
  const ONE_OF_REQUIRED_FIELDS = ["dateOfBirth", "ssn"];
7955
8037
  /** A Text today's field shape can carry: a key only, or `text` where shown. */
7956
8038
  const plainKey = (text) => !text?.params;
7957
- /**
7958
- * The request-body transforms `buildSubmitPayload` applies to a field. It
7959
- * reads values by field name and transforms them in fixed branches, not from
7960
- * the definition, so until the kernel builds request bodies (P2) a definition
7961
- * must declare exactly these. Otherwise a transform it declares on another
7962
- * field would pass `checkSupport` and then not be applied. Mirrors those
7963
- * branches by hand: change both together.
7964
- */
7965
- function legacyPayloadTransforms(name, country) {
7966
- switch (name) {
7967
- case "phone": return [{ id: "e164" }];
7968
- case "nationality":
7969
- case "state": return [{ id: "uppercase" }];
7970
- case "postalCode": return [{
7971
- id: "stripSeparators",
7972
- params: { chars: "- " }
7973
- }];
7974
- case "ssn": return country === "US" || country === "CA" ? [{
7975
- id: "stripSeparators",
7976
- params: { chars: "-" }
7977
- }] : [];
7978
- default: return [];
7979
- }
7980
- }
7981
8039
  function sameTransforms(declared, expected) {
7982
8040
  return declared.length === expected.length && declared.every((transform, i) => {
7983
8041
  const params = transform.params ?? {};
@@ -7986,15 +8044,15 @@ function sameTransforms(declared, expected) {
7986
8044
  });
7987
8045
  }
7988
8046
  /**
7989
- * Whether today's code handles a field the way its definition says. A rule
7990
- * can name its own message key, without params. The field shape has no hint
7991
- * or suggestions, and only placeholders take params. Input formatting
7992
- * (`processFieldValue`) and the request body's transforms
7993
- * (`buildSubmitPayload`) stay keyed by field name until P2; a field can add
7994
- * the `INPUT_FORMATTERS` formats and rename its request key (`payloadKey`).
8047
+ * Whether today's field shape and UI can show a field the way its definition
8048
+ * says. A rule can name its own message key, without params. The field shape
8049
+ * has no hint or suggestions, and only placeholders take params. Input
8050
+ * formatting (`processFieldValue`) stays keyed by field name until P2; a
8051
+ * field can add the `INPUT_FORMATTERS` formats. Its request key, transforms
8052
+ * and `omit` are the kernel's to apply, so any are fine.
7995
8053
  */
7996
- function isProjectableField(field, country) {
7997
- return !field.hint && !field.suggestionsRef && plainKey(field.label) && plainKey(field.displayLabel) && (field.options ?? []).every((option) => plainKey(option.label)) && (!field.section || UI_SECTIONS.has(field.section)) && (field.rules ?? []).every(isProjectableRule) && (field.input?.format ?? []).every(isInputFormat) && !field.payload?.omit && (sameTransforms(field.payload?.transforms ?? [], legacyPayloadTransforms(field.name, country)) || phoneFormatOf(field) !== void 0);
8054
+ function isProjectableField(field) {
8055
+ return !field.hint && !field.suggestionsRef && plainKey(field.label) && plainKey(field.displayLabel) && (field.options ?? []).every((option) => plainKey(option.label)) && (!field.section || UI_SECTIONS.has(field.section)) && (field.rules ?? []).every(isProjectableRule) && (field.input?.format ?? []).every(isInputFormat);
7998
8056
  }
7999
8057
  /** Input formats `processFieldValue` applies as the user types. */
8000
8058
  const INPUT_FORMATTERS = {
@@ -8010,8 +8068,8 @@ function applyInputFormat(value, formats) {
8010
8068
  }
8011
8069
  /**
8012
8070
  * Phone transforms other than E.164. A phone that declares one of them alone
8013
- * gets it as its `phoneFormat`, which `buildSubmitPayload` reads instead of
8014
- * the field name.
8071
+ * gets it as its `phoneFormat`, part of today's field shape (the legacy body
8072
+ * reads it; a catalog form's body applies the transforms themselves).
8015
8073
  */
8016
8074
  const PHONE_FORMATS = ["nationalNumber", "e164NoPlus"];
8017
8075
  function phoneFormatOf(field) {
@@ -8055,23 +8113,25 @@ function isRulesByOptionParams(params) {
8055
8113
  function isProjectableEkycDefinition(definition) {
8056
8114
  let result = projectable.get(definition);
8057
8115
  if (result === void 0) {
8058
- result = definition.module === "ekyc" && checkSupport(definition, EKYC_SUPPORTED_IDS).supported && definition.fields.every((field) => isProjectableField(field, definition.country ?? "")) && (definition.sections ?? []).every((section) => !section.title && UI_SECTIONS.has(section.id)) && (definition.groupRules ?? []).every(isProjectableGroupRule);
8116
+ result = definition.module === "ekyc" && checkSupport(definition, EKYC_SUPPORTED_IDS).supported && definition.fields.every(isProjectableField) && (definition.sections ?? []).every((section) => !section.title && UI_SECTIONS.has(section.id)) && (definition.groupRules ?? []).every(isProjectableGroupRule);
8059
8117
  projectable.set(definition, result);
8060
8118
  }
8061
8119
  return result;
8062
8120
  }
8063
- const bundled = createBundledDefinitionSource(EKYC_DEFINITIONS);
8121
+ const bundled = createBundledDefinitionSource(EKYC_DEFINITIONS, EKYC_INDEX);
8064
8122
  /**
8065
8123
  * Sources today's builder knows that also have a definition. The form
8066
- * definitions rollout picks between the two for these; any other source with
8067
- * a definition is catalog-only and always uses it. `ekycForm.test.ts` keeps
8068
- * this list equal to the defined sources with a parity fixture.
8124
+ * definitions rollout picks between the two for these, including a risk
8125
+ * add-on's own form (RISK_ADDONS_ONLY's phoneProfile form); any other source
8126
+ * with a definition is catalog-only and always uses it. `ekycForm.test.ts`
8127
+ * keeps this list equal to the defined sources with a parity fixture.
8069
8128
  */
8070
8129
  const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
8071
8130
  "BR_GOVT_1",
8072
8131
  "CA_RES_CREDIT",
8073
8132
  "GR_1",
8074
8133
  "GT_1",
8134
+ "RISK_ADDONS_ONLY",
8075
8135
  "UK_VOTER_REGISTER",
8076
8136
  "US_CREDIT_BUREAU_1",
8077
8137
  "US_CREDIT_TELCO",
@@ -8079,18 +8139,51 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
8079
8139
  "US_TELCO_2"
8080
8140
  ]);
8081
8141
  /**
8082
- * The bundled definition for exactly this source and country, if it is
8083
- * projectable and the rollout lets this source use it. `useDefinitions` is
8084
- * the rollout answer the machine read once, when it was created.
8142
+ * Where eKYC looks for a configuration's form, in order:
8143
+ *
8144
+ * 1. each configured risk add-on, in configuration order: its form for the
8145
+ * source and country, then its form for the source with no country;
8146
+ * 2. the source's form for the country;
8147
+ * 3. the source's form with no country.
8085
8148
  */
8086
- function selectEkycDefinition(source, country, useDefinitions) {
8087
- if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
8088
- const definition = bundled.select({
8089
- module: "ekyc",
8090
- source,
8091
- country
8092
- });
8093
- return definition && isProjectableEkycDefinition(definition) ? definition : void 0;
8149
+ function ekycDefinitionQueries(source, country, riskAddons) {
8150
+ return [
8151
+ ...riskAddons.flatMap((riskAddon) => [{
8152
+ source,
8153
+ country,
8154
+ riskAddon
8155
+ }, {
8156
+ source,
8157
+ riskAddon
8158
+ }]),
8159
+ {
8160
+ source,
8161
+ country
8162
+ },
8163
+ { source }
8164
+ ];
8165
+ }
8166
+ /**
8167
+ * The bundled definition for this configuration, if it is projectable and
8168
+ * the rollout lets this source use it. `useDefinitions` is the rollout answer
8169
+ * the machine read once, when it was created. An alias is resolved to its
8170
+ * source first, so it reaches that source's risk add-on forms too, and an
8171
+ * alias of a migrated source follows the rollout as its source does; the body
8172
+ * still names the configured id. Then the first form found in
8173
+ * `ekycDefinitionQueries` order wins. Prefill and submit pass the same risk
8174
+ * add-ons, and prefill rebuilds a catalog form's fields with them, so fields,
8175
+ * prefill and submit use one form.
8176
+ */
8177
+ function selectEkycDefinition(source, country, useDefinitions, riskAddons = []) {
8178
+ const own = bundled.sourceOf("ekyc", source, country);
8179
+ if (!useDefinitions && (MIGRATED_EKYC_SOURCES.has(source) || MIGRATED_EKYC_SOURCES.has(own))) return;
8180
+ for (const query of ekycDefinitionQueries(own, country, riskAddons)) {
8181
+ const definition = bundled.select({
8182
+ module: "ekyc",
8183
+ ...query
8184
+ });
8185
+ if (definition) return isProjectableEkycDefinition(definition) ? definition : void 0;
8186
+ }
8094
8187
  }
8095
8188
  const PREFILL_ORIGIN_ENTRIES = VOCABULARY.entries.filter((entry) => entry.type === "prefillOrigin");
8096
8189
  /**
@@ -8278,7 +8371,7 @@ function applyOneOfRequiredGroups(defs, configSource) {
8278
8371
  * caller can't swap the two booleans.
8279
8372
  */
8280
8373
  function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false, riskAddons = [] }) {
8281
- const definition = selectEkycDefinition(configSource, country, useDefinitions);
8374
+ const definition = selectEkycDefinition(configSource, country, useDefinitions, riskAddons);
8282
8375
  if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk, {}, riskAddons)), fields, country);
8283
8376
  return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk, riskAddons);
8284
8377
  }
@@ -8488,7 +8581,7 @@ function applyPrefill(fields, ocrData, otpStatus, _country) {
8488
8581
  * the current builder never look one up.
8489
8582
  */
8490
8583
  function prefillAddressOrigin(config) {
8491
- if (!selectEkycDefinition(config.configSource, config.country, config.useDefinitions)) return;
8584
+ if (!selectEkycDefinition(config.configSource, config.country, config.useDefinitions, config.riskAddons)) return;
8492
8585
  const source = config.verificationFields.address;
8493
8586
  if (source === "document_scan") return "document";
8494
8587
  if (source === "poa_document") return "poa";
@@ -8516,7 +8609,7 @@ function ekycPrefillChecks(defs, country) {
8516
8609
  */
8517
8610
  function prefillFromDefinition(config, data) {
8518
8611
  const { verificationFields, configSource, country } = config;
8519
- const definition = selectEkycDefinition(configSource, country, config.useDefinitions);
8612
+ const definition = selectEkycDefinition(configSource, country, config.useDefinitions, config.riskAddons);
8520
8613
  if (!definition) return void 0;
8521
8614
  const context = toEkycResolveContext(verificationFields, config.enablePhoneRisk ?? false, config.displayModes, config.riskAddons);
8522
8615
  const form = resolveForm(definition, context);
@@ -8552,11 +8645,13 @@ const PHONE_FORMATTERS = {
8552
8645
  */
8553
8646
  const isLeftOut = (value) => value === void 0 || value === null || typeof value === "string" && value.trim() === "";
8554
8647
  /**
8555
- * Builds the request body. Keep the per-field transforms below in sync with
8556
- * `legacyPayloadTransforms` in `ekycForm.ts`: definitions are projectable only
8557
- * when they declare exactly these, until P2 builds request bodies from them.
8648
+ * The request body for a source with no form definition (the retired ids,
8649
+ * until ENG-63328 deletes them), and the body the side-by-side runner checks
8650
+ * the kernel against. A catalog form's body comes from the kernel
8651
+ * (`buildEkycSubmitBody` in `ekycSubmit.ts`). Keep the per-field transforms
8652
+ * below in sync with `legacyTransforms` in `ekycKernelConformance.test.ts`.
8558
8653
  */
8559
- function buildSubmitPayload(ctx) {
8654
+ function legacyBuildSubmitPayload(ctx) {
8560
8655
  const payload = {};
8561
8656
  for (const field of ctx.fields) {
8562
8657
  const val = ctx.values[field.name];
@@ -8596,6 +8691,81 @@ function processFieldValueByName(name, value, fieldsCountry) {
8596
8691
  if (name === "panNumber") return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase();
8597
8692
  return value;
8598
8693
  }
8694
+ //#endregion
8695
+ //#region src/modules/ekyc/ekycSubmit.ts
8696
+ /**
8697
+ * eKYC's submit step, shaped like KYB Checks' and Pre-fill's: the
8698
+ * `submitting` state invokes the `submitEkyc` actor with the form and its
8699
+ * values (`toEkycSubmitInput`), and the actor builds the request body
8700
+ * (`buildEkycSubmitBody`) and sends it. Another destination later is another
8701
+ * actor through `ekycMachine.provide()`, with no machine change.
8702
+ *
8703
+ * Nothing new is kept in machine context: the form is selected and resolved
8704
+ * again at submit, from the same context inputs that built `context.fields`.
8705
+ * Internal: not exported from `ekyc/index.ts`.
8706
+ */
8707
+ /**
8708
+ * The inputs eKYC selects and resolves its form from, for prefill and for
8709
+ * submit, so both see the form the fields were built from.
8710
+ */
8711
+ const ekycFormConfig = (context) => ({
8712
+ verificationFields: context.verificationFields,
8713
+ displayModes: context.displayModes,
8714
+ configSource: context.configSource,
8715
+ country: context.fieldsCountry,
8716
+ enablePhoneRisk: context.moduleConfig?.enablePhoneRisk ?? context.config.enablePhoneRisk,
8717
+ riskAddons: getEkycRiskAddons(context),
8718
+ useDefinitions: context._formDefinitions
8719
+ });
8720
+ /**
8721
+ * The form `context.fields` was built from, selected and resolved again as
8722
+ * `buildFieldDefs` and `prefillFromDefinition` do. `undefined` for a source
8723
+ * with no form, which keeps the legacy body.
8724
+ */
8725
+ function resolveEkycSubmitForm(context) {
8726
+ const config = ekycFormConfig(context);
8727
+ const definition = selectEkycDefinition(config.configSource, config.country, config.useDefinitions, config.riskAddons);
8728
+ if (!definition) return void 0;
8729
+ return resolveForm(definition, toEkycResolveContext(config.verificationFields, config.enablePhoneRisk ?? false, config.displayModes, config.riskAddons));
8730
+ }
8731
+ /** The `submitEkyc` actor's input, from the machine context at submit. */
8732
+ function toEkycSubmitInput(context) {
8733
+ const form = resolveEkycSubmitForm(context);
8734
+ const riskAddons = getEkycRiskAddons(context);
8735
+ return {
8736
+ form,
8737
+ values: context.values,
8738
+ env: {
8739
+ source: context.configSource,
8740
+ country: form?.definition.country ?? context.fieldsCountry,
8741
+ ...riskAddons && { riskAddons }
8742
+ },
8743
+ legacy: {
8744
+ configSource: context.configSource,
8745
+ fieldsCountry: context.fieldsCountry,
8746
+ fields: context.fields,
8747
+ values: context.values,
8748
+ hideEmail: context.hideEmail
8749
+ }
8750
+ };
8751
+ }
8752
+ /**
8753
+ * The `POST /omni/externalVerification/ekyc` body. A catalog form's is the kernel's
8754
+ * `buildPayload`: every shown field with a value, after its request
8755
+ * transforms, then the definition's `submit` keys. A source with no form
8756
+ * keeps the legacy body. A served form the compiler never saw can still
8757
+ * repeat a request key; the first writer wins, with a warning.
8758
+ */
8759
+ function buildEkycSubmitBody(input) {
8760
+ if (!input.form) return legacyBuildSubmitPayload(input.legacy);
8761
+ const { body, problems } = buildPayload(input.form, input.values, PAYLOAD_TRANSFORMS, {
8762
+ ...input.env,
8763
+ today: getLocalIsoDate(),
8764
+ deps: standardDeps()
8765
+ });
8766
+ if (problems.length > 0) console.warn("[ekyc] Request body problems", problems);
8767
+ return { ...body };
8768
+ }
8599
8769
  /** Whether the form shows a field: not hidden, and not an email shown elsewhere. */
8600
8770
  const isVisibleEkycField = (field, hideEmail) => field.displayMode !== "hidden" && !(hideEmail && field.name === "email");
8601
8771
  /**
@@ -8725,7 +8895,12 @@ const fetchPrefillDataActor = fromPromise(async ({ input, signal }) => {
8725
8895
  addressMatches: suggestion ? { [origin]: suggestion } : {}
8726
8896
  };
8727
8897
  });
8728
- const submitEkycActor = fromPromise(async ({ input, signal }) => submitEkyc(input, signal));
8898
+ /**
8899
+ * Builds the request body from the form and its values, then sends it. It
8900
+ * doesn't load the phone rules: the fields that need them already waited for
8901
+ * them on load.
8902
+ */
8903
+ const submitEkycActor = fromPromise(async ({ input, signal }) => submitEkyc(buildEkycSubmitBody(input), signal));
8729
8904
  //#endregion
8730
8905
  //#region src/modules/ekyc/ekycStateMachine.ts
8731
8906
  const ADDRESS_AUTOCOMPLETE_KEYS = [
@@ -8739,15 +8914,6 @@ const ADDRESS_AUTOCOMPLETE_KEYS = [
8739
8914
  const isLocked = (field) => field?.readonly === true || field?.displayMode === "hidden";
8740
8915
  /** Every field is hidden, so the form has nothing to show. */
8741
8916
  const showsNoFields = (context) => context.fields.length > 0 && context.fields.every((field) => field.displayMode === "hidden");
8742
- const prefillConfig = (context) => ({
8743
- verificationFields: context.verificationFields,
8744
- displayModes: context.displayModes,
8745
- configSource: context.configSource,
8746
- country: context.fieldsCountry,
8747
- enablePhoneRisk: context.moduleConfig?.enablePhoneRisk ?? context.config.enablePhoneRisk,
8748
- riskAddons: getEkycRiskAddons(context),
8749
- useDefinitions: context._formDefinitions
8750
- });
8751
8917
  const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
8752
8918
  /** The step the user is on, kept within the steps the form has now. */
8753
8919
  const currentStep = (context) => {
@@ -8776,25 +8942,31 @@ const ekycMachine = setup({
8776
8942
  actions: {
8777
8943
  setModuleConfig: assign(({ context, event }) => {
8778
8944
  const config = event.output;
8779
- const source = resolveEkycSource(config.source ?? context.config.source ?? "", config.riskAddons);
8945
+ const useDefinitions = context._formDefinitions;
8946
+ const configured = config.source ?? context.config.source ?? "";
8947
+ const source = useDefinitions ? configured : resolveEkycSource(configured, config.riskAddons);
8780
8948
  const country = context.config.fieldsCountry ?? getEKYCCountry(source);
8781
8949
  const vFields = getEKYCFields(config);
8950
+ const riskAddons = useDefinitions ? getEkycRiskAddons({
8951
+ config: context.config,
8952
+ moduleConfig: config
8953
+ }) : config.riskAddons;
8782
8954
  return {
8783
8955
  moduleConfig: config,
8784
8956
  verificationFields: vFields,
8785
8957
  configSource: source,
8786
8958
  fieldsCountry: country,
8787
8959
  fields: buildFieldDefs(vFields, source, country, {
8788
- useDefinitions: context._formDefinitions,
8960
+ useDefinitions,
8789
8961
  enablePhoneRisk: config.enablePhoneRisk,
8790
- riskAddons: config.riskAddons
8962
+ riskAddons
8791
8963
  }),
8792
8964
  displayModes: getEKYCDisplayModes(config)
8793
8965
  };
8794
8966
  }),
8795
8967
  applyPrefillData: assign(({ context, event }) => {
8796
8968
  const { ocrData, otpStatus, addressMatches } = event.output;
8797
- const fromDefinition = prefillFromDefinition(prefillConfig(context), buildPrefillData(ocrData, otpStatus, addressMatches));
8969
+ const fromDefinition = prefillFromDefinition(ekycFormConfig(context), buildPrefillData(ocrData, otpStatus, addressMatches));
8798
8970
  if (fromDefinition) return {
8799
8971
  values: fromDefinition.values,
8800
8972
  prefilled: fromDefinition.prefilled,
@@ -8813,7 +8985,7 @@ const ekycMachine = setup({
8813
8985
  };
8814
8986
  }),
8815
8987
  applyEmptyPrefill: assign(({ context }) => {
8816
- const fromDefinition = prefillFromDefinition(prefillConfig(context), buildPrefillData(void 0, void 0));
8988
+ const fromDefinition = prefillFromDefinition(ekycFormConfig(context), buildPrefillData(void 0, void 0));
8817
8989
  if (!fromDefinition) return {};
8818
8990
  return {
8819
8991
  values: fromDefinition.values,
@@ -8930,7 +9102,8 @@ const ekycMachine = setup({
8930
9102
  id: "ekyc",
8931
9103
  initial: "idle",
8932
9104
  context: ({ input }) => {
8933
- const config = toEkycConfig(input.config);
9105
+ const formDefinitions = isFormDefinitionsEnabled();
9106
+ const config = toEkycConfigFor(input.config, formDefinitions);
8934
9107
  return {
8935
9108
  config,
8936
9109
  moduleConfig: void 0,
@@ -8947,7 +9120,7 @@ const ekycMachine = setup({
8947
9120
  errorMessage: "",
8948
9121
  submitError: "",
8949
9122
  currentStepIndex: 0,
8950
- _formDefinitions: isFormDefinitionsEnabled(),
9123
+ _formDefinitions: formDefinitions,
8951
9124
  _searchQuery: ""
8952
9125
  };
8953
9126
  },
@@ -9018,7 +9191,7 @@ const ekycMachine = setup({
9018
9191
  invoke: {
9019
9192
  id: "fetchPrefillData",
9020
9193
  src: "fetchPrefillData",
9021
- input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(prefillConfig(context)) }),
9194
+ input: ({ context }) => ({ addressOrigin: prefillAddressOrigin(ekycFormConfig(context)) }),
9022
9195
  onDone: {
9023
9196
  target: "form",
9024
9197
  actions: "applyPrefillData"
@@ -9106,7 +9279,7 @@ const ekycMachine = setup({
9106
9279
  submitting: { invoke: {
9107
9280
  id: "submitEkyc",
9108
9281
  src: "submitEkyc",
9109
- input: ({ context }) => buildSubmitPayload(context),
9282
+ input: ({ context }) => toEkycSubmitInput(context),
9110
9283
  onDone: { target: "success" },
9111
9284
  onError: [
9112
9285
  {