@incodetech/core 0.0.0-dev-20261124-bcd99b1e → 0.0.0-dev-20261125-a91bf928

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 (133) hide show
  1. package/dist/{FaceDetectionProvider-D4ncumfe.esm.js → FaceDetectionProvider-D-1rS3WB.esm.js} +4 -4
  2. package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DKdOJ_e-.esm.js} +67 -8
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
  5. package/dist/{apiError-a7tezk_O.esm.js → apiError-CxKf45Ky.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-Cp64l__H.d.ts → authenticationManager-BManpfgb.d.ts} +1 -1
  9. package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-CThxh6EJ.esm.js} +3 -3
  10. package/dist/{authenticationStateMachine-B4CuMBgC.esm.js → authenticationStateMachine-DN122Cii.esm.js} +3 -3
  11. package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
  12. package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
  13. package/dist/cnpj-D5cxwIe-.esm.js +9 -0
  14. package/dist/curp-validation.d.ts +1 -1
  15. package/dist/curp-validation.esm.js +2 -2
  16. package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js} +1 -1
  17. package/dist/{curpValidationManager-Dynwqu2z.d.ts → curpValidationManager-9U7zMZt8.d.ts} +1 -1
  18. package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BPkEZtmd.esm.js} +1 -1
  19. package/dist/custom-fields.esm.js +1 -1
  20. package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-BX3u8VPe.esm.js} +1 -1
  21. package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-B7HX2BKP.esm.js} +2 -2
  22. package/dist/{deepsightLoader-nbl5Dhvf.esm.js → deepsightLoader-C_fdJi9H.esm.js} +4 -4
  23. package/dist/definitionSource-C_pmsYIx.esm.js +12 -0
  24. package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-A7IPW-RU.esm.js} +4 -4
  25. package/dist/document-capture.d.ts +1 -1
  26. package/dist/document-signature.esm.js +1 -1
  27. package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
  28. package/dist/{documentSignatureStateMachine-DoeIrTmr.esm.js → documentSignatureStateMachine-ClNEf1FQ.esm.js} +1 -1
  29. package/dist/dynamic-forms.esm.js +2 -2
  30. package/dist/{dynamicFormsManager-D_QpTKfT.esm.js → dynamicFormsManager-nl9-642J.esm.js} +1 -1
  31. package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-DwjwenOE.esm.js} +2 -2
  32. package/dist/ekyb.d.ts +4 -4
  33. package/dist/ekyb.esm.js +2 -2
  34. package/dist/{ekybManager-BG7eju18.esm.js → ekybManager-B-tbtSFb.esm.js} +1 -1
  35. package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-DZdSXQMK.d.ts} +2 -2
  36. package/dist/{ekybStateMachine-Bc-m_PHQ.esm.js → ekybStateMachine-BC4eZWrb.esm.js} +5 -4
  37. package/dist/ekyc-prefill.d.ts +3 -4
  38. package/dist/ekyc-prefill.esm.js +2 -2
  39. package/dist/ekyc.d.ts +3 -3
  40. package/dist/ekyc.esm.js +2 -2
  41. package/dist/{ekycManager-BPUHoUHy.esm.js → ekycManager-CDxoP5gL.esm.js} +1 -1
  42. package/dist/{ekycManager-BldDiWTJ.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
  43. package/dist/{ekycPrefillManager-qgG_uUKA.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +17 -17
  44. package/dist/{ekycPrefillManager-BaX95xIW.esm.js → ekycPrefillManager-Cu5EAnkQ.esm.js} +6 -7
  45. package/dist/{ekycPrefillStateMachine-C8FEAHbH.esm.js → ekycPrefillStateMachine-DdHdgSaW.esm.js} +567 -165
  46. package/dist/{ekycStateMachine-Cq94FpIm.esm.js → ekycStateMachine-CM1YRW27.esm.js} +483 -155
  47. package/dist/electronic-signature.esm.js +1 -1
  48. package/dist/{electronicSignatureManager-bgoE6nL8.esm.js → electronicSignatureManager-knl_X2jh.esm.js} +1 -1
  49. package/dist/extensibility.d.ts +15 -15
  50. package/dist/extensibility.esm.js +17 -17
  51. package/dist/{faceCaptureManagerFactory-DvH9-zIi.esm.js → faceCaptureManagerFactory-D0eN82qj.esm.js} +2 -2
  52. package/dist/{faceCaptureManagerFactory-BZ2XHhkj.d.ts → faceCaptureManagerFactory-Dm7p3T_t.d.ts} +3 -3
  53. package/dist/{faceCaptureSetup-DuFiwK9F.esm.js → faceCaptureSetup-BfedgErd.esm.js} +7 -7
  54. package/dist/{feature-management-DiL2uBlX.esm.js → feature-management-BD2hrfZ3.esm.js} +1 -1
  55. package/dist/feature-management.esm.js +1 -1
  56. package/dist/flow-events.d.ts +1 -1
  57. package/dist/flow.d.ts +7 -7
  58. package/dist/flow.esm.js +3 -3
  59. package/dist/{flowCompletionService-Bs4oWd_W.esm.js → flowCompletionService-DlXzGwgu.esm.js} +1 -1
  60. package/dist/{flowServices-KLGZ3eWm.esm.js → flowServices-CxTdN-OL.esm.js} +4 -4
  61. package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
  62. package/dist/geolocation.d.ts +1 -1
  63. package/dist/geolocation.esm.js +2 -2
  64. package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
  65. package/dist/{geolocationManager-el4FUmYy.esm.js → geolocationManager-Ch5lOvYH.esm.js} +1 -1
  66. package/dist/{geolocationStateMachine-BnM-qTe3.esm.js → geolocationStateMachine-EN7it_FF.esm.js} +1 -1
  67. package/dist/home.d.ts +1 -1
  68. package/dist/id-ocr.d.ts +1 -1
  69. package/dist/id-ocr.esm.js +2 -2
  70. package/dist/id-selfie-flow.d.ts +1 -1
  71. package/dist/id-selfie-flow.esm.js +6 -6
  72. package/dist/id.d.ts +2 -2
  73. package/dist/id.esm.js +3 -3
  74. package/dist/{idCaptureManager-UnWwLa3I.esm.js → idCaptureManager-CH2bkanx.esm.js} +4 -4
  75. package/dist/{idCaptureManager-Co4ZZ-pd.d.ts → idCaptureManager-jjNknNiP.d.ts} +2 -2
  76. package/dist/{idCaptureServices-DFUdwccM.esm.js → idCaptureServices-BN57-oba.esm.js} +2 -2
  77. package/dist/{idCaptureStateMachine-DGWGB0Tz.esm.js → idCaptureStateMachine-DIM0ZxBY.esm.js} +11 -11
  78. package/dist/{idOcrManager-C3BHGgSb.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
  79. package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-Dl9eNhT8.esm.js} +1 -1
  80. package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-CEkUWxGy.esm.js} +1 -1
  81. package/dist/{index-RghgiJVx.d.ts → index-B-K_tV2Q.d.ts} +1 -1
  82. package/dist/index.esm.js +1 -1
  83. package/dist/kyb-checks.d.ts +3 -3
  84. package/dist/kyb-checks.esm.js +2 -2
  85. package/dist/{kybChecksManager-CbkCctw0.esm.js → kybChecksManager-Bh-oiXei.esm.js} +2 -2
  86. package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
  87. package/dist/{kybChecksStateMachine-BeB_cgk4.esm.js → kybChecksStateMachine-WIdi80Sq.esm.js} +175 -178
  88. package/dist/mandatory-consent.d.ts +2 -2
  89. package/dist/{mandatoryConsentManager-B_eFZmo-.d.ts → mandatoryConsentManager-Bwl0YPwg.d.ts} +1 -1
  90. package/dist/numericRange-zDZFvRb8.esm.js +274 -0
  91. package/dist/qe-signature.esm.js +1 -1
  92. package/dist/{recordingService-PUU8CObN.esm.js → recordingService-5o50qJ9A.esm.js} +1 -1
  93. package/dist/{runChildModule-BOvtfM8r.esm.js → runChildModule-vqgSWeEF.esm.js} +1 -1
  94. package/dist/{sdkVersion-thMGaHAC.esm.js → sdkVersion-C3x7ZDSE.esm.js} +1 -1
  95. package/dist/selfie.d.ts +3 -3
  96. package/dist/selfie.esm.js +7 -7
  97. package/dist/{selfieErrorUtils-CqudCvHN.esm.js → selfieErrorUtils-BB-nxdeJ.esm.js} +1 -1
  98. package/dist/{selfieManager-DWRVOhOE.esm.js → selfieManager-CpV6Lw0q.esm.js} +3 -3
  99. package/dist/{selfieManager-CKm034l4.d.ts → selfieManager-DOwu6Ukf.d.ts} +1 -1
  100. package/dist/{selfieStateMachine-CNELgWFK.esm.js → selfieStateMachine-Bxi31PsA.esm.js} +3 -3
  101. package/dist/{session-pNSU6n3-.esm.js → session-syFGvfFW.esm.js} +4 -4
  102. package/dist/session.d.ts +1 -1
  103. package/dist/session.esm.js +4 -4
  104. package/dist/{sessionInitializer-BzvYgZCQ.esm.js → sessionInitializer-C4cinkbs.esm.js} +4 -4
  105. package/dist/{setup-BQVlJnC0.esm.js → setup-cZWqRr7-.esm.js} +5 -5
  106. package/dist/trueSight-DK2Q1w9z.esm.js +1 -0
  107. package/dist/{trueSightService-DjwNQ37t.esm.js → trueSightService-Bm5K21-R.esm.js} +1 -1
  108. package/dist/types-BTJWXYHA.d.ts +6 -0
  109. package/dist/{types-BgRHw-dR.d.ts → types-BaA0Qscz.d.ts} +1 -1
  110. package/dist/{types-_rJ2GjgK.d.ts → types-BqDc7tER.d.ts} +1 -1
  111. package/dist/{types-DFgJ26nw.d.ts → types-CH9u9ikn.d.ts} +1 -1
  112. package/dist/{types-Dy4XI7jR.d.ts → types-CRzImo5V.d.ts} +1 -1
  113. package/dist/{types-BiUMy0Vp.d.ts → types-CoXJsu1W.d.ts} +1 -1
  114. package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
  115. package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
  116. package/dist/{types-mK4qyHxM.d.ts → types-g3NuVCT9.d.ts} +16 -29
  117. package/dist/{types-aKXf9SVN.d.ts → types-ia31g4VQ.d.ts} +3 -3
  118. package/dist/{types-Bdes6iC1.d.ts → types-tOSLpcSa.d.ts} +10 -2
  119. package/dist/video-selfie.d.ts +1 -1
  120. package/dist/video-selfie.esm.js +3 -3
  121. package/dist/{videoSelfieCameraWarmer-M25qqewS.esm.js → videoSelfieCameraWarmer-B5atbHuu.esm.js} +3 -3
  122. package/dist/{videoSelfieStepDetector-BBXE3DnI.d.ts → videoSelfieStepDetector-Dfj7UUF3.d.ts} +2 -2
  123. package/dist/wasm.esm.js +1 -1
  124. package/dist/watchlist-for-business.esm.js +2 -2
  125. package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-CiSWk1Lh.esm.js} +1 -1
  126. package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-DiQW42sd.esm.js} +3 -2
  127. package/dist/workflow.d.ts +1 -1
  128. package/dist/workflow.esm.js +21 -21
  129. package/package.json +1 -1
  130. package/dist/addressSearch-BKlynuBr.esm.js +0 -71
  131. package/dist/ekycRules-B7kUzSgu.esm.js +0 -598
  132. package/dist/trueSight-CiveOb7r.esm.js +0 -1
  133. package/dist/types-J7D0pbWH.d.ts +0 -6
@@ -1,9 +1,9 @@
1
1
  import { l as wasmRuntime } from "./warmup-O3rAoe1-.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-BQVlJnC0.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-cZWqRr7-.esm.js";
3
3
  import { r as BaseWasmProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
4
4
  import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DjwNQ37t.esm.js";
6
- import "./trueSight-CiveOb7r.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-Bm5K21-R.esm.js";
6
+ import "./trueSight-DK2Q1w9z.esm.js";
7
7
  import { t as addDeviceStats } from "./stats-CrqhpKkP.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
9
9
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -234,7 +234,7 @@ function startDetection(params) {
234
234
  };
235
235
  }
236
236
  async function initializeDeepsightSession(options) {
237
- const { loadDeepsightSession } = await import("./deepsightLoader-nbl5Dhvf.esm.js");
237
+ const { loadDeepsightSession } = await import("./deepsightLoader-C_fdJi9H.esm.js");
238
238
  return loadDeepsightSession({
239
239
  ds: options.ds,
240
240
  storage: options.storage
@@ -1,3 +1,6 @@
1
+ import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
+ import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
1
4
  //#region src/shared/addressSuggestion.ts
2
5
  /** Shown when an autocomplete suggestion has no street (city/region-level result). */
3
6
  const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
@@ -220,15 +223,71 @@ function formatPostalCode(value, country) {
220
223
  return value.slice(0, 8);
221
224
  }
222
225
  //#endregion
223
- //#region src/internal/forms/definitionSource.ts
224
- const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
226
+ //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
225
227
  /**
226
- * The definitions bundled with this build. Matches module, source and country
227
- * exactly, so a pair without its own definition keeps the current builder.
228
+ * The rollout switch for form definitions (ENG-59781): one all-or-nothing
229
+ * answer to "do eKYC and eKYB build their forms from catalog definitions, or
230
+ * with today's builders?". The eKYC and eKYB machines read it once, when
231
+ * they're created, and pass the answer to the module adapters
232
+ * (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
233
+ * (`internal/forms`) knows nothing about it.
234
+ *
235
+ * Off by default, so every source and country keeps today's builder. A
236
+ * catalog-only eKYC source, one today's builder never knew, uses its
237
+ * definition either way, since it has no old path to fall back to.
238
+ *
239
+ * This is Incode's rollout decision, not the integrator's: it is not a
240
+ * `setup()` option. It stays a constant: customers move to definitions only
241
+ * once the migration is done, so it is turned on in code at that point.
228
242
  */
229
- function createBundledDefinitionSource(definitions) {
230
- const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
231
- return { select: (query) => byQuery.get(queryKey(query)) };
243
+ const ENABLED_BY_DEFAULT = false;
244
+ /** Whether sources and countries with a form definition use it. */
245
+ function isFormDefinitionsEnabled() {
246
+ return ENABLED_BY_DEFAULT;
232
247
  }
233
248
  //#endregion
234
- export { getPostalCodeMaxLength as a, fillFromSuggestion as c, getPostalCodeErrorParams as i, getStreetLevelErrorForSuggestion as l, formatPostalCode as n, validatePostalCode as o, getPostalCodeErrorKey as r, STREET_LEVEL_REQUIRED_ERROR as s, createBundledDefinitionSource as t, keepSuggestionInOptions as u };
249
+ //#region src/shared/addressSearch.ts
250
+ /** Searches for address suggestions via the address autocomplete API. */
251
+ async function searchAddress(query, signal) {
252
+ return { apiResponse: { items: ((await api.post(endpoints.addressAutocomplete, { search: query }, { signal })).data.apiResponse?.items ?? []).map((item, i) => {
253
+ const addr = item.address ?? item;
254
+ return {
255
+ id: item.id ?? i,
256
+ label: addr.label ?? item.title ?? "",
257
+ street: addr.street,
258
+ city: addr.city,
259
+ stateCode: addr.stateCode ?? addr.state,
260
+ postalCode: addr.postalCode,
261
+ houseNumber: addr.houseNumber,
262
+ countryCode: addr.countryCode
263
+ };
264
+ }) } };
265
+ }
266
+ const DEBOUNCE_MS = 300;
267
+ /**
268
+ * XState callback actor that debounces address search requests.
269
+ * Cancels in-flight HTTP requests when the actor is stopped.
270
+ */
271
+ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
272
+ const timerProvider = BrowserTimerProvider.getInstance();
273
+ const controller = new AbortController();
274
+ const handle = timerProvider.setTimeout(async () => {
275
+ try {
276
+ sendBack({
277
+ type: "RESULTS",
278
+ suggestions: (await searchAddress(input.query, controller.signal)).apiResponse?.items ?? []
279
+ });
280
+ } catch {
281
+ if (!controller.signal.aborted) sendBack({
282
+ type: "RESULTS",
283
+ suggestions: []
284
+ });
285
+ }
286
+ }, DEBOUNCE_MS);
287
+ return () => {
288
+ timerProvider.clearTimeout(handle);
289
+ controller.abort();
290
+ };
291
+ });
292
+ //#endregion
293
+ export { getPostalCodeErrorKey as a, validatePostalCode as c, getStreetLevelErrorForSuggestion as d, keepSuggestionInOptions as f, formatPostalCode as i, STREET_LEVEL_REQUIRED_ERROR as l, searchAddress as n, getPostalCodeErrorParams as o, isFormDefinitionsEnabled as r, getPostalCodeMaxLength as s, debounceSearchActor as t, fillFromSuggestion as u };
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-bgoE6nL8.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-knl_X2jh.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,3 @@
1
- import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
2
1
  //#region src/internal/forms/checks/allowedCharacters.ts
3
2
  const CLASS_PATTERNS = {
4
3
  letter: "\\p{L}\\p{M}",
@@ -15,13 +14,4 @@ function hasAllowedCharacters(value, classes, extra = "", ascii = false) {
15
14
  return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
16
15
  }
17
16
  //#endregion
18
- //#region src/shared/phoneFormat.ts
19
- /**
20
- * The phone in E.164, or the value as typed when the rules are not loaded
21
- * (`loadPhoneValidation()`) or the number is not valid.
22
- */
23
- function formatPhoneE164(phone, country) {
24
- return getPhoneValidation()?.formatE164(phone, country) ?? phone;
25
- }
26
- //#endregion
27
- export { hasAllowedCharacters as n, formatPhoneE164 as t };
17
+ export { hasAllowedCharacters as n, CLASS_PATTERNS as t };
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-DjwNQ37t.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-Bm5K21-R.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BZ2XHhkj.js";
2
- import { t as AuthenticationConfig } from "./types-J7D0pbWH.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Cp64l__H.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
2
+ import { t as AuthenticationConfig } from "./types-BTJWXYHA.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BManpfgb.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-B4CuMBgC.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-IpVKgxPn.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-DN122Cii.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CThxh6EJ.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-DufwKlav.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BZ2XHhkj.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,10 +1,10 @@
1
- import { u as BrowserStorageProvider } from "./setup-BQVlJnC0.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-cZWqRr7-.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
3
3
  import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
4
4
  import "./events-ChMS-UzR.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DvH9-zIi.esm.js";
7
- import { t as authenticationMachine } from "./authenticationStateMachine-B4CuMBgC.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D0eN82qj.esm.js";
7
+ import { t as authenticationMachine } from "./authenticationStateMachine-DN122Cii.esm.js";
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
10
10
  const dependencies = options.dependencies ?? {
@@ -1,8 +1,8 @@
1
1
  import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DuFiwK9F.esm.js";
4
- import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-D4ncumfe.esm.js";
5
- import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-C2jhy2Fd.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BfedgErd.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-D-1rS3WB.esm.js";
5
+ import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-A7IPW-RU.esm.js";
6
6
  //#region src/modules/authentication/authenticationErrorUtils.ts
7
7
  const AUTH_ERROR_MAP = {
8
8
  SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
@@ -32,4 +32,4 @@ function calendarDateError(value) {
32
32
  return typeof value === "string" && isCalendarDate(value) ? void 0 : INVALID_DATE_ERROR_KEY;
33
33
  }
34
34
  //#endregion
35
- export { calendarDateError as n, INVALID_DATE_ERROR_KEY as t };
35
+ export { calendarDateError as n, isCalendarDate as r, INVALID_DATE_ERROR_KEY as t };
@@ -68,12 +68,4 @@ function validateCNPJ(cnpjInput) {
68
68
  return true;
69
69
  }
70
70
  //#endregion
71
- //#region src/shared/validators/cnpj.ts
72
- /** Countries whose tax ID is a CNPJ and must pass {@link validateCNPJ}. */
73
- const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
74
- /** Returns true when CNPJ validation applies for the given country. */
75
- function requiresCnpjValidation(country) {
76
- return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
77
- }
78
- //#endregion
79
- export { requiresCnpjValidation as n, validateCNPJ as r, COUNTRIES_WITH_CNPJ_VALIDATION as t };
71
+ export { validateCNPJ as t };
@@ -0,0 +1,9 @@
1
+ //#region src/shared/validators/cnpj.ts
2
+ /** Countries whose tax ID is a CNPJ and must pass {@link validateCNPJ}. */
3
+ const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
4
+ /** Returns true when CNPJ validation applies for the given country. */
5
+ function requiresCnpjValidation(country) {
6
+ return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
7
+ }
8
+ //#endregion
9
+ export { requiresCnpjValidation as n, COUNTRIES_WITH_CNPJ_VALIDATION as t };
@@ -1,4 +1,4 @@
1
- import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-Dynwqu2z.js";
1
+ import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-9U7zMZt8.js";
2
2
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
3
3
  type MexicanState = {
4
4
  value: string;
@@ -1,3 +1,3 @@
1
- import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BbJ4YAzE.esm.js";
2
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-C6WmQToS.esm.js";
1
+ import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BPkEZtmd.esm.js";
2
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-4v5qMUXm.esm.js";
3
3
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -4,7 +4,7 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
6
  import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
7
- import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BbJ4YAzE.esm.js";
7
+ import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BPkEZtmd.esm.js";
8
8
  //#region src/modules/curp-validation/curpValidationActor.ts
9
9
  function createCurpValidationActor(options) {
10
10
  return createActor(curpValidationMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
2
  import { t as Manager } from "./Manager-DufwKlav.js";
3
3
  import "./Actor-DqjOqDfU.js";
4
- import { i as FlowModuleConfig } from "./types-aKXf9SVN.js";
4
+ import { i as FlowModuleConfig } from "./types-ia31g4VQ.js";
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
7
7
  /** Maximum validation retries before auto-advancing. @default 1 */
@@ -4,7 +4,7 @@ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
5
  import { t as carryAttempts } from "./attemptCarry-DWM8lV9V.esm.js";
6
6
  import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
7
- import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
7
+ import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
8
8
  //#region src/modules/curp-validation/curpValidationUtils.ts
9
9
  /** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
10
10
  function formatDateForApi(date) {
@@ -1,2 +1,2 @@
1
- import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-BBy6X9nh.esm.js";
1
+ import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-BX3u8VPe.esm.js";
2
2
  export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
@@ -5,7 +5,7 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
5
5
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
6
  import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
- import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
8
+ import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
9
9
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
10
10
  //#region src/modules/custom-fields/customFieldsServices.ts
11
11
  async function submitCustomFields(params, signal) {
@@ -1,5 +1,5 @@
1
- import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-DjwNQ37t.esm.js";
2
- import "./trueSight-CiveOb7r.esm.js";
1
+ import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-Bm5K21-R.esm.js";
2
+ import "./trueSight-DK2Q1w9z.esm.js";
3
3
  import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
4
4
  //#region src/internal/deepsight/deepsightCaptureConfig.ts
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
2
- import { u as trueSightLog } from "./trueSightService-DjwNQ37t.esm.js";
3
- import { t as SDK_VERSION } from "./sdkVersion-thMGaHAC.esm.js";
4
- import "./trueSight-CiveOb7r.esm.js";
5
- import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-BzvYgZCQ.esm.js";
2
+ import { u as trueSightLog } from "./trueSightService-Bm5K21-R.esm.js";
3
+ import { t as SDK_VERSION } from "./sdkVersion-C3x7ZDSE.esm.js";
4
+ import "./trueSight-DK2Q1w9z.esm.js";
5
+ import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-C4cinkbs.esm.js";
6
6
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
7
7
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
8
8
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
@@ -0,0 +1,12 @@
1
+ //#region src/internal/forms/definitionSource.ts
2
+ const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
3
+ /**
4
+ * The definitions bundled with this build. Matches module, source and country
5
+ * exactly, so a pair without its own definition keeps the current builder.
6
+ */
7
+ function createBundledDefinitionSource(definitions) {
8
+ const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
9
+ return { select: (query) => byQuery.get(queryKey(query)) };
10
+ }
11
+ //#endregion
12
+ export { createBundledDefinitionSource as t };
@@ -3,14 +3,14 @@ import { d as CAMERA_CYCLE_OWNERSHIP_DOMAIN, f as getCameraCycleOwnershipDomain,
3
3
  import { r as setWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
4
4
  import { i as utilityWasmApi } from "./WasmUtilProvider-unrmGEHD.esm.js";
5
5
  import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
6
- import { u as trueSightLog } from "./trueSightService-DjwNQ37t.esm.js";
7
- import "./trueSight-CiveOb7r.esm.js";
8
- import { m as getFeatureGate } from "./feature-management-DiL2uBlX.esm.js";
6
+ import { u as trueSightLog } from "./trueSightService-Bm5K21-R.esm.js";
7
+ import "./trueSight-DK2Q1w9z.esm.js";
8
+ import { m as getFeatureGate } from "./feature-management-BD2hrfZ3.esm.js";
9
9
  import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
10
10
  import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
11
11
  import { l as queryCameraPermission } from "./permissionServices-Csq_7Cbg.esm.js";
12
12
  import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
13
- import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-D0PCzVcM.esm.js";
13
+ import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-B7HX2BKP.esm.js";
14
14
  import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
15
15
  //#region ../infra/src/capabilities/ICameraCycleCapability.ts
16
16
  /**
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-Cy6Lx3L6.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DOgJTJ4F.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-sJWgqtUy.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
2
  import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
3
3
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
- import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-DoeIrTmr.esm.js";
5
+ import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-ClNEf1FQ.esm.js";
6
6
  //#region src/modules/document-signature/documentSignatureActor.ts
7
7
  function createDocumentSignatureActor(options) {
8
8
  return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
@@ -102,14 +102,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
102
102
  id: string | undefined;
103
103
  };
104
104
  }>, Values<{
105
- clearError: {
106
- type: "clearError";
107
- params: NonReducibleUnknown;
108
- };
109
105
  decrementAttemptsRemaining: {
110
106
  type: "decrementAttemptsRemaining";
111
107
  params: NonReducibleUnknown;
112
108
  };
109
+ clearError: {
110
+ type: "clearError";
111
+ params: NonReducibleUnknown;
112
+ };
113
113
  setStream: {
114
114
  type: "setStream";
115
115
  params: NonReducibleUnknown;
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
3
3
  import "./events-ChMS-UzR.esm.js";
4
- import { i as toIncodeApiError } from "./apiError-a7tezk_O.esm.js";
4
+ import { i as toIncodeApiError } from "./apiError-CxKf45Ky.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
7
7
  //#region src/modules/document-signature/documentSignatureServices.ts
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D_KmQwDZ.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-D_QpTKfT.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DwjwenOE.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-nl9-642J.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D_KmQwDZ.esm.js";
6
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DwjwenOE.esm.js";
7
7
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
8
8
  function createDynamicFormsActor(options) {
9
9
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,8 +1,8 @@
1
1
  import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-a7tezk_O.esm.js";
2
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-CxKf45Ky.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
- import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
5
+ import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
7
7
  //#region src/modules/dynamic-forms/dynamicFormsFields.ts
8
8
  function getEffectiveType(question) {
package/dist/ekyb.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./xstate.cjs-D6Ur0X1F.js";
2
- import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
3
- import { i as FlowModuleConfig } from "./types-aKXf9SVN.js";
4
- import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
5
- import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BflWuTe4.js";
2
+ import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
3
+ import { i as FlowModuleConfig } from "./types-ia31g4VQ.js";
4
+ import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BaA0Qscz.js";
5
+ import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-DZdSXQMK.js";
6
6
  //#region src/modules/ekyb/ekybServices.d.ts
7
7
  type EkybFlowConfig = FlowModuleConfig['EKYB'];
8
8
  //#endregion
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { h as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-Z9MhFAer.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Bc-m_PHQ.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BG7eju18.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-BC4eZWrb.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-B-tbtSFb.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { t as ekybMachine } from "./ekybStateMachine-Bc-m_PHQ.esm.js";
6
+ import { t as ekybMachine } from "./ekybStateMachine-BC4eZWrb.esm.js";
7
7
  //#region src/modules/ekyb/ekybActor.ts
8
8
  /**
9
9
  * Creates and starts an eKYB actor.
@@ -1,8 +1,8 @@
1
1
  import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
2
  import { t as Manager } from "./Manager-DufwKlav.js";
3
3
  import "./Actor-DqjOqDfU.js";
4
- import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
5
- import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
4
+ import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
5
+ import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BaA0Qscz.js";
6
6
  //#region src/modules/ekyb/ekybStateMachine.d.ts
7
7
  declare const ekybMachine: any;
8
8
  type EkybMachine = typeof ekybMachine;
@@ -1,13 +1,14 @@
1
1
  import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
2
- import { n as getFlow } from "./flowServices-KLGZ3eWm.esm.js";
2
+ import { n as getFlow } from "./flowServices-CxTdN-OL.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
5
  import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, h as isSupportedCountry, i as isFormFieldEntry, l as ALL_COUNTRIES, m as UBO_FIELD_LABELS, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
6
6
  import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
- import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
8
- import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestionInOptions } from "./definitionSource-B-Z2EgJJ.esm.js";
7
+ import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
8
+ import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
9
+ import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-DKdOJ_e-.esm.js";
9
10
  import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
10
- import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BKlynuBr.esm.js";
11
+ import { t as createBundledDefinitionSource } from "./definitionSource-C_pmsYIx.esm.js";
11
12
  //#region src/modules/ekyb/ekybValidators.ts
12
13
  const createValidators = () => ({
13
14
  required: (value, _rule, field) => {
@@ -1,6 +1,5 @@
1
- import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-Bdes6iC1.js";
2
- import { a as EkycPrefillFieldDef, c as EkycPrefillServedField, i as EkycPrefillErrorKind, n as EkycPrefillConfigField, s as EkycPrefillModuleConfig, t as EkycPrefillConfig } from "./types-mK4qyHxM.js";
3
- import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-qgG_uUKA.js";
1
+ import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
2
+ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BwmPXfhY.js";
4
3
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
5
4
  /**
6
5
  * Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
@@ -15,4 +14,4 @@ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSub
15
14
  */
16
15
  declare function toEkycPrefillConfig(raw: EkycPrefillModuleConfig | EkycPrefillConfig | undefined): EkycPrefillConfig;
17
16
  //#endregion
18
- export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycValidationError as EkycPrefillFieldError, type EkycValidationErrors as EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycFormValues as EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
17
+ export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycPrefillFieldError, type EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
@@ -1,3 +1,3 @@
1
- import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-C8FEAHbH.esm.js";
2
- import { t as createEkycPrefillManager } from "./ekycPrefillManager-BaX95xIW.esm.js";
1
+ import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DdHdgSaW.esm.js";
2
+ import { t as createEkycPrefillManager } from "./ekycPrefillManager-Cu5EAnkQ.esm.js";
3
3
  export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
package/dist/ekyc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
2
- import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-Bdes6iC1.js";
3
- import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-BldDiWTJ.js";
1
+ import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
2
+ import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-tOSLpcSa.js";
3
+ import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-DusmB-4j.js";
4
4
  //#region src/modules/ekyc/ekycUtils.d.ts
5
5
  /**
6
6
  * Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { d as toEkycConfig } from "./ekycUtils-C6HZB46m.esm.js";
2
- import { t as ekycMachine } from "./ekycStateMachine-Cq94FpIm.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-BPUHoUHy.esm.js";
2
+ import { t as ekycMachine } from "./ekycStateMachine-CM1YRW27.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-CDxoP5gL.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-Cq94FpIm.esm.js";
6
+ import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-CM1YRW27.esm.js";
7
7
  //#region src/modules/ekyc/ekycActor.ts
8
8
  /**
9
9
  * Creates and starts an eKYC actor.
@@ -1,8 +1,8 @@
1
1
  import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
2
2
  import { t as Manager } from "./Manager-DufwKlav.js";
3
3
  import "./Actor-DqjOqDfU.js";
4
- import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
5
- import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-Bdes6iC1.js";
4
+ import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
5
+ import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-tOSLpcSa.js";
6
6
  //#region src/modules/ekyc/ekycStateMachine.d.ts
7
7
  declare const ekycMachine: any;
8
8
  type EkycMachine = typeof ekycMachine;