@incodetech/core 0.0.0-dev-20260803-2bd16802 → 0.0.0-dev-20260803-e2b5d35d

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 (67) hide show
  1. package/dist/{3dAvatarProvider-D9H4rR6_.esm.js → 3dAvatarProvider-1zpeX-h8.esm.js} +2 -2
  2. package/dist/Face2DProvider-TLwFIRn4.esm.js +437 -0
  3. package/dist/{PrivacyLensProvider-DA3rp6sf.esm.js → PrivacyLensProvider-D8PS7AJa.esm.js} +3 -325
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-0e7XVmLE.esm.js → apiError-C_08gwg2.esm.js} +1 -1
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-CArZpDf_.esm.js → authenticationManager-D76jxYNX.esm.js} +2 -2
  8. package/dist/{authenticationStateMachine-3w56jRTO.esm.js → authenticationStateMachine-CJILuEbH.esm.js} +2 -2
  9. package/dist/avatar.esm.js +1 -1
  10. package/dist/avatar2dWarm-DqucNFX4.esm.js +1330 -0
  11. package/dist/{avatarStats-BIB3SREM.esm.js → avatarStats-CdUOb3VD.esm.js} +12 -22
  12. package/dist/consent.d.ts +1 -1
  13. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
  14. package/dist/createFaceAvatar-AF92I3xf.esm.js +103 -0
  15. package/dist/{deepsightLoader-DYVd_8gR.esm.js → deepsightLoader-DqEfPplN.esm.js} +3 -3
  16. package/dist/document-upload.d.ts +4 -4
  17. package/dist/dynamic-forms.esm.js +2 -2
  18. package/dist/{dynamicFormsManager-Jgr8OAlG.esm.js → dynamicFormsManager-BHfeedY2.esm.js} +1 -1
  19. package/dist/{dynamicFormsStateMachine-Cm6YJQBA.esm.js → dynamicFormsStateMachine-BeKhow9E.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-DLlenLG2.esm.js → ekybManager-3pPpvD6Z.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-DpaO3WdV.esm.js → ekybStateMachine-BH8TaB7v.esm.js} +1 -1
  23. package/dist/electronic-signature.esm.js +1 -1
  24. package/dist/{electronicSignatureManager-CPWJcuFy.esm.js → electronicSignatureManager-DHC0bqr9.esm.js} +1 -1
  25. package/dist/extensibility.d.ts +2 -2
  26. package/dist/extensibility.esm.js +8 -8
  27. package/dist/{faceCaptureManagerFactory-C58fhn5l.esm.js → faceCaptureManagerFactory-DqQCDsDY.esm.js} +1 -1
  28. package/dist/{faceCaptureSetup-a7dsfqui.esm.js → faceCaptureSetup-5Ye-LXbB.esm.js} +25 -10
  29. package/dist/flow.esm.js +3 -3
  30. package/dist/{flowCompletionService-BZWoO8E3.esm.js → flowCompletionService-DEO2OqAI.esm.js} +1 -1
  31. package/dist/{flowServices-DlsSs-nq.esm.js → flowServices-D6T8fwIf.esm.js} +3 -3
  32. package/dist/geolocation.esm.js +2 -2
  33. package/dist/{geolocationManager-C7LEmSRJ.esm.js → geolocationManager-IbghOO6X.esm.js} +1 -1
  34. package/dist/{geolocationStateMachine-CV2cecNj.esm.js → geolocationStateMachine-B5WkRLnz.esm.js} +1 -1
  35. package/dist/id-selfie-flow.esm.js +6 -6
  36. package/dist/id.esm.js +3 -3
  37. package/dist/{idCaptureManager-DtcaSiRd.esm.js → idCaptureManager-C_q4C_aV.esm.js} +1 -1
  38. package/dist/{idCaptureServices-DcGxxfYS.esm.js → idCaptureServices-DlnEwYJJ.esm.js} +2 -2
  39. package/dist/{idCaptureStateMachine-cWGQatgx.esm.js → idCaptureStateMachine-CKJ_aV6s.esm.js} +7 -7
  40. package/dist/index.esm.js +1 -1
  41. package/dist/mandatory-consent.d.ts +1 -1
  42. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-B29kR0XA.d.ts} +4 -4
  43. package/dist/{mediapipeShared-B0iQQ5k7.esm.js → mediapipeShared-D0syL_Gp.esm.js} +6 -1
  44. package/dist/{onDeviceFaceResults-BuTjLnON.esm.js → onDeviceFaceResults-D53Rr_B1.esm.js} +3 -3
  45. package/dist/personhood.esm.js +3 -3
  46. package/dist/privacyLensWorker-DI-Rg83h.esm.js +355 -0
  47. package/dist/qe-signature.esm.js +1 -1
  48. package/dist/{recordingService-DdljWMN1.esm.js → recordingService-Dv5Ztm5Y.esm.js} +1 -1
  49. package/dist/{runChildModule-BSTzbivl.esm.js → runChildModule-Dh9HjxbH.esm.js} +1 -1
  50. package/dist/selfie.esm.js +4 -4
  51. package/dist/{selfieManager-BzCnteUg.esm.js → selfieManager-CwLK0icS.esm.js} +2 -2
  52. package/dist/{selfieStateMachine-TC6ctOex.esm.js → selfieStateMachine-C1ErWDmF.esm.js} +2 -2
  53. package/dist/{session-DY1mtqPs.esm.js → session-DvCKSn2k.esm.js} +4 -4
  54. package/dist/session.esm.js +4 -4
  55. package/dist/{sessionInitializer-q_Sx6L7L.esm.js → sessionInitializer-DR77TDcE.esm.js} +2 -2
  56. package/dist/{setup-DZLzxBYo.esm.js → setup-DSLbrjHG.esm.js} +4 -4
  57. package/dist/trueSight-CGZ_9YL1.esm.js +1 -0
  58. package/dist/{trueSightService-mUItB6iL.esm.js → trueSightService-PXOP5bS9.esm.js} +1 -1
  59. package/dist/video-selfie.esm.js +3 -3
  60. package/dist/{videoSelfieCameraWarmer-DAG8CmBp.esm.js → videoSelfieCameraWarmer-BLrAyxUW.esm.js} +2 -2
  61. package/dist/wasm.esm.js +1 -1
  62. package/dist/workflow.d.ts +4 -4
  63. package/dist/workflow.esm.js +14 -14
  64. package/package.json +1 -1
  65. package/dist/Face2DProvider-BZCsS_sf.esm.js +0 -824
  66. package/dist/createFaceAvatar-x5aaJwVM.esm.js +0 -42
  67. package/dist/trueSight-CxKqRMOO.esm.js +0 -1
@@ -1,24 +1,3 @@
1
- /** Creates a tolerance-based fps cap. The first frame is always accepted. */
2
- function createFramePacer(maxFps, toleranceMs = 8) {
3
- const intervalMs = 1e3 / Math.max(maxFps, 1);
4
- const minGapMs = Math.max(intervalMs - toleranceMs, 0);
5
- let lastAcceptedAt = Number.NEGATIVE_INFINITY;
6
- let dropped = 0;
7
- return {
8
- shouldRender(nowMs) {
9
- if (nowMs - lastAcceptedAt >= minGapMs) {
10
- lastAcceptedAt = nowMs;
11
- return true;
12
- }
13
- dropped += 1;
14
- return false;
15
- },
16
- get droppedCount() {
17
- return dropped;
18
- }
19
- };
20
- }
21
- //#endregion
22
1
  //#region ../infra/src/avatar/avatarStats.ts
23
2
  /**
24
3
  * Whether stats collection is on. Providers use this to skip the
@@ -142,5 +121,16 @@ function createAvatarStatsReporter(variant, mode) {
142
121
  }
143
122
  };
144
123
  }
124
+ /**
125
+ * Timeline marks for diagnosing time-to-avatar on real devices (ENG-49806):
126
+ * `performance.getEntriesByName('incode:avatar:<point>')` decomposes page
127
+ * boot → tutorial warm → capture-entry create → canvas ready. Marks are
128
+ * near-free and namespaced; never throws on exotic hosts.
129
+ */
130
+ function markAvatarTimeline(point) {
131
+ try {
132
+ performance.mark(`incode:avatar:${point}`);
133
+ } catch {}
134
+ }
145
135
  //#endregion
146
- export { createFramePacer as a, publishAvatarStats as i, createStatsWindow as n, isAvatarStatsEnabled as r, createAvatarStatsReporter as t };
136
+ export { publishAvatarStats as a, markAvatarTimeline as i, createStatsWindow as n, isAvatarStatsEnabled as r, createAvatarStatsReporter as t };
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -82,6 +82,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
82
82
  type: "clearError";
83
83
  params: NonReducibleUnknown;
84
84
  };
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: NonReducibleUnknown;
88
+ };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
91
  params: NonReducibleUnknown;
@@ -90,10 +94,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
90
94
  type: "toggleCheckbox";
91
95
  params: NonReducibleUnknown;
92
96
  };
93
- resetContext: {
94
- type: "resetContext";
95
- params: NonReducibleUnknown;
96
- };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
@@ -0,0 +1,103 @@
1
+ import { i as markAvatarTimeline } from "./avatarStats-CdUOb3VD.esm.js";
2
+ //#region src/internal/avatar/createFaceAvatar.ts
3
+ async function importProviderModule(variant) {
4
+ switch (variant) {
5
+ case "avatar-3d": return import("./3dAvatarProvider-1zpeX-h8.esm.js");
6
+ case "avatar-2d": return import("./Face2DProvider-TLwFIRn4.esm.js");
7
+ case "privacy-lens": return import("./PrivacyLensProvider-D8PS7AJa.esm.js");
8
+ default: throw new Error(`Unknown avatar variant: ${String(variant)}`);
9
+ }
10
+ }
11
+ /**
12
+ * Lazy-load the provider MODULE for an avatar id (each in its own chunk),
13
+ * MEMOIZED per variant: the warm-up (tutorial) and the capture-time
14
+ * `runAvatar` would otherwise race two concurrent dynamic imports of the same
15
+ * specifier — wasteful in browsers and actively wrong under vitest, whose
16
+ * module mocker can serve the REAL module to the second in-flight import. A
17
+ * failed import is evicted so a later attempt can retry (flaky network).
18
+ */
19
+ const providerModuleCache = /* @__PURE__ */ new Map();
20
+ function loadProviderModule(variant) {
21
+ let cached = providerModuleCache.get(variant);
22
+ if (!cached) {
23
+ cached = importProviderModule(variant);
24
+ cached.catch(() => {
25
+ if (providerModuleCache.get(variant) === cached) providerModuleCache.delete(variant);
26
+ });
27
+ providerModuleCache.set(variant, cached);
28
+ }
29
+ return cached;
30
+ }
31
+ /** Lazy-load and instantiate the provider for an avatar id. */
32
+ async function loadProvider(variant) {
33
+ return (await loadProviderModule(variant)).createProvider();
34
+ }
35
+ /**
36
+ * Pre-capture warm-up (ENG-49806 AC#1): fire-and-forget, safe to call from a
37
+ * machine action (e.g. tutorial entry). Preloads the provider chunk for every
38
+ * variant; for `avatar-2d` it additionally boots the tracking worker and runs
39
+ * the MediaPipe bring-up (module + ~3.7MB model download + WASM compile — the
40
+ * seconds-long part on low-tier devices) WITHOUT camera or canvas, so
41
+ * tracking engages near-instantly when capture starts instead of losing the
42
+ * race against a fast capture. Idempotent; never throws; touches no media
43
+ * (cosmetic-only by construction).
44
+ */
45
+ let avatar2dWarmRequested = false;
46
+ function warmFaceAvatar(options) {
47
+ markAvatarTimeline("warm-request");
48
+ loadProviderModule(options.variant).catch(() => {});
49
+ if (options.variant === "avatar-2d") {
50
+ avatar2dWarmRequested = true;
51
+ import("./avatar2dWarm-DqucNFX4.esm.js").then((mod) => mod.warmAvatar2D({
52
+ mediapipeModulePath: options.assets?.mediapipeModulePath,
53
+ mediapipeWasmPath: options.assets?.mediapipeWasmPath,
54
+ faceLandmarkerModelPath: options.assets?.faceLandmarkerModelPath
55
+ })).catch(() => {});
56
+ }
57
+ }
58
+ /**
59
+ * Dispose an un-adopted warm-up (terminal machine states). No-op when the
60
+ * warm worker was already consumed by a capture, or none exists. Gated on a
61
+ * warm having been REQUESTED this session: the terminal-state machine action
62
+ * calls this unconditionally, and importing `avatar2dWarm` here would pull
63
+ * the whole avatar-2d chunk at flow end for every flow — including
64
+ * OPTION_NONE on the low-tier devices the gate exists to protect.
65
+ */
66
+ function releaseFaceAvatarWarmup() {
67
+ if (!avatar2dWarmRequested) return;
68
+ import("./avatar2dWarm-DqucNFX4.esm.js").then((mod) => mod.releaseAvatar2DWarmup()).catch(() => {});
69
+ }
70
+ /**
71
+ * Mounts a cosmetic face avatar: lazy-loads the chosen provider, starts it on the
72
+ * given stream, and returns a handle to mount the canvas + push verdict cues. The
73
+ * avatar is **cosmetic-only** — it never feeds the authoritative
74
+ * detection/quality/liveness/upload pipeline.
75
+ */
76
+ async function createFaceAvatar(options) {
77
+ markAvatarTimeline("create-start");
78
+ const provider = await loadProvider(options.variant);
79
+ try {
80
+ await provider.start(options.stream, {
81
+ assets: options.assets,
82
+ maxFps: options.maxFps
83
+ });
84
+ markAvatarTimeline("create-ready");
85
+ if (options.initialState) provider.setState?.(options.initialState);
86
+ } catch (error) {
87
+ provider.stop();
88
+ throw error;
89
+ }
90
+ return {
91
+ get canvas() {
92
+ return provider.getCanvas();
93
+ },
94
+ setState(state) {
95
+ provider.setState?.(state);
96
+ },
97
+ stop() {
98
+ provider.stop();
99
+ }
100
+ };
101
+ }
102
+ //#endregion
103
+ export { releaseFaceAvatarWarmup as n, warmFaceAvatar as r, createFaceAvatar as t };
@@ -1,8 +1,8 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-mUItB6iL.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-q_Sx6L7L.esm.js";
5
- import "./trueSight-CxKqRMOO.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-PXOP5bS9.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DR77TDcE.esm.js";
5
+ import "./trueSight-CGZ_9YL1.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
@@ -38,10 +38,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
- setError: {
42
- type: "setError";
43
- params: NonReducibleUnknown;
44
- };
45
41
  setStream: {
46
42
  type: "setStream";
47
43
  params: NonReducibleUnknown;
@@ -54,6 +50,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
54
50
  type: "setProgress";
55
51
  params: NonReducibleUnknown;
56
52
  };
53
+ setError: {
54
+ type: "setError";
55
+ params: NonReducibleUnknown;
56
+ };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Cm6YJQBA.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-Jgr8OAlG.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BeKhow9E.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-BHfeedY2.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Cm6YJQBA.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BeKhow9E.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-0e7XVmLE.esm.js";
3
+ import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-C_08gwg2.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-DlsSs-nq.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-DpaO3WdV.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-DLlenLG2.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-D6T8fwIf.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-BH8TaB7v.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-3pPpvD6Z.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-DpaO3WdV.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-BH8TaB7v.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-DlsSs-nq.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-D6T8fwIf.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DQyrvDQj.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-CPWJcuFy.esm.js";
1
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DHC0bqr9.esm.js";
2
2
  export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-0e7XVmLE.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-C_08gwg2.esm.js";
6
6
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -9,7 +9,7 @@ import { n as BaseWasmProvider } from "./FaceDetectionProvider-Mh6q3EbA.js";
9
9
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-Hmd7U0JA.js";
10
10
  import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-tMxWiUk6.js";
11
11
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Y2_MuGXy.js";
12
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
12
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
13
13
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
14
14
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DVGr7Fq7.js";
15
15
  import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
@@ -23,7 +23,7 @@ import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t a
23
23
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
24
24
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
25
25
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
26
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DyPzUmsZ.js";
26
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B29kR0XA.js";
27
27
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
28
28
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
29
29
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
@@ -1,21 +1,21 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-q_Sx6L7L.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-DR77TDcE.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-C4_d-1a0.esm.js";
7
- import { t as faceCaptureMachine } from "./faceCaptureSetup-a7dsfqui.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CArZpDf_.esm.js";
7
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-5Ye-LXbB.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D76jxYNX.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-lG6fCXOk.esm.js";
10
10
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-B5bnUpSo.esm.js";
11
11
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CYkSBXCF.esm.js";
12
12
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-5shMxTaf.esm.js";
13
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-Jgr8OAlG.esm.js";
14
- import { n as createEkybManagerFromActor } from "./ekybManager-DLlenLG2.esm.js";
13
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BHfeedY2.esm.js";
14
+ import { n as createEkybManagerFromActor } from "./ekybManager-3pPpvD6Z.esm.js";
15
15
  import { n as createEkycManagerFromActor } from "./ekycManager-BnPKaiV_.esm.js";
16
16
  import { n as createEmailManagerFromActor } from "./emailManager-D-3pYOas.esm.js";
17
- import { n as createSelfieManagerFromActor } from "./selfieManager-BzCnteUg.esm.js";
18
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DtcaSiRd.esm.js";
17
+ import { n as createSelfieManagerFromActor } from "./selfieManager-CwLK0icS.esm.js";
18
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-C_q4C_aV.esm.js";
19
19
  import { n as createPhoneManagerFromActor } from "./phoneManager-SONkmpec.esm.js";
20
20
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-QakKGrF0.esm.js";
21
21
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CUVKNTFa.esm.js";
@@ -24,7 +24,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
24
24
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DWGed-91.esm.js";
25
25
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B7EYFwY_.esm.js";
26
26
  import { n as createSignatureManagerFromActor } from "./signatureManager-BpstxH7R.esm.js";
27
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-C7LEmSRJ.esm.js";
27
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-IbghOO6X.esm.js";
28
28
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-W8v-boCx.esm.js";
29
29
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Dnp-edw5.esm.js";
30
30
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-a7dsfqui.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-5Ye-LXbB.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-3UAjhmjw.esm.js";
@@ -2,13 +2,13 @@ import { r as getToken } from "./api-Bx3gKW_y.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-3UAjhmjw.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BuTjLnON.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
- import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.esm.js";
7
+ import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-AF92I3xf.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KNkc71eN.esm.js";
10
10
  import { t as flagFaceManualReview } from "./manualReviewService-D4IkipnN.esm.js";
11
- import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-DdljWMN1.esm.js";
11
+ import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-Dv5Ztm5Y.esm.js";
12
12
  //#region src/internal/avatar/concealment.ts
13
13
  /**
14
14
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
@@ -282,6 +282,17 @@ const faceCaptureMachine = setup({
282
282
  preloadRecordingProvider: ({ context }) => {
283
283
  if (context.config.enableFaceRecording === true && context.config.deepsightLiveness !== "VIDEOLIVENESS") preloadOpenViduProvider();
284
284
  },
285
+ warmAvatarProvider: ({ context }) => {
286
+ const { obfuscateWithAvatar, avatarVariant } = concealmentToAvatar(context.config.selfieConcealmentOption);
287
+ if (!obfuscateWithAvatar || !avatarVariant) return;
288
+ warmFaceAvatar({
289
+ variant: avatarVariant,
290
+ assets: context.config.avatarAssets
291
+ });
292
+ },
293
+ releaseAvatarWarmup: () => {
294
+ releaseFaceAvatarWarmup();
295
+ },
285
296
  noOp: () => void 0
286
297
  },
287
298
  guards: {
@@ -355,7 +366,7 @@ const faceCaptureMachine = setup({
355
366
  { target: "loading" }
356
367
  ] } },
357
368
  loading: {
358
- entry: "preloadRecordingProvider",
369
+ entry: ["preloadRecordingProvider", "warmAvatarProvider"],
359
370
  invoke: [{
360
371
  id: "checkPermissionLoading",
361
372
  src: "checkPermission",
@@ -380,7 +391,11 @@ const faceCaptureMachine = setup({
380
391
  },
381
392
  tutorial: {
382
393
  initial: "checkingPermission",
383
- entry: ["trackTutorial", "preloadRecordingProvider"],
394
+ entry: [
395
+ "trackTutorial",
396
+ "preloadRecordingProvider",
397
+ "warmAvatarProvider"
398
+ ],
384
399
  states: {
385
400
  checkingPermission: { invoke: {
386
401
  id: "checkPermissionTutorial",
@@ -499,7 +514,7 @@ const faceCaptureMachine = setup({
499
514
  }
500
515
  },
501
516
  permissions: {
502
- entry: "preloadRecordingProvider",
517
+ entry: ["preloadRecordingProvider", "warmAvatarProvider"],
503
518
  initial: "checkingDeepsight",
504
519
  states: {
505
520
  checkingDeepsight: { always: [{
@@ -592,7 +607,7 @@ const faceCaptureMachine = setup({
592
607
  }
593
608
  },
594
609
  capture: {
595
- entry: "preloadRecordingProvider",
610
+ entry: ["preloadRecordingProvider", "warmAvatarProvider"],
596
611
  initial: "checkingDeepsight",
597
612
  exit: [
598
613
  "stopMediaStream",
@@ -820,15 +835,15 @@ const faceCaptureMachine = setup({
820
835
  }
821
836
  },
822
837
  finished: {
823
- entry: "stopMediaStream",
838
+ entry: ["stopMediaStream", "releaseAvatarWarmup"],
824
839
  type: "final"
825
840
  },
826
841
  closed: {
827
- entry: "stopMediaStream",
842
+ entry: ["stopMediaStream", "releaseAvatarWarmup"],
828
843
  type: "final"
829
844
  },
830
845
  error: {
831
- entry: "stopMediaStream",
846
+ entry: ["stopMediaStream", "releaseAvatarWarmup"],
832
847
  on: { RESET: {
833
848
  target: "idle",
834
849
  actions: "resetContext"
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ethtfu2b.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-DlsSs-nq.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-D6T8fwIf.esm.js";
3
3
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BZWoO8E3.esm.js";
6
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BSTzbivl.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DEO2OqAI.esm.js";
6
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Dh9HjxbH.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
8
8
  const noOpFlowModuleMachine = setup({}).createMachine({
9
9
  id: "noOpFlowModule",
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError } from "./apiError-0e7XVmLE.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-C_08gwg2.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,9 +1,9 @@
1
1
  import { _ as updateFeatureManagementUser } from "./feature-management-CFRmD8Nr.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-q_Sx6L7L.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DR77TDcE.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-0e7XVmLE.esm.js";
6
- import "./session-DY1mtqPs.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-C_08gwg2.esm.js";
6
+ import "./session-DvCKSn2k.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-C7LEmSRJ.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-CV2cecNj.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-IbghOO6X.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-B5WkRLnz.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-CV2cecNj.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-B5WkRLnz.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { r as isIOS, t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
4
- import { n as isConnectivityError } from "./apiError-0e7XVmLE.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-C_08gwg2.esm.js";
5
5
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
@@ -1,17 +1,17 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-DZLzxBYo.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-DSLbrjHG.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-DlsSs-nq.esm.js";
4
+ import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-D6T8fwIf.esm.js";
5
5
  import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BuTjLnON.esm.js";
7
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
8
8
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
9
9
  import { i as uploadSelfie, r as processFace } from "./selfieErrorUtils-DggLa9pg.esm.js";
10
10
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
11
11
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DrQe0hWr.esm.js";
12
- import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-DcGxxfYS.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-BZWoO8E3.esm.js";
14
- import { a as delay, n as defaultAcquireCamera, o as isSelfieValidationError, r as CameraCompositor, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DAG8CmBp.esm.js";
12
+ import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-DlnEwYJJ.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-DEO2OqAI.esm.js";
14
+ import { a as delay, n as defaultAcquireCamera, o as isSelfieValidationError, r as CameraCompositor, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-BLrAyxUW.esm.js";
15
15
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
16
  /** Default autocapture window for the selfie step. */
17
17
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.esm.js CHANGED
@@ -2,9 +2,9 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.e
2
2
  import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
3
3
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-cWGQatgx.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DtcaSiRd.esm.js";
7
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DcGxxfYS.esm.js";
5
+ import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-CKJ_aV6s.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-C_q4C_aV.esm.js";
7
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DlnEwYJJ.esm.js";
8
8
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DVtdZdpI.esm.js";
9
9
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
10
10
  function buildSubImage(canvas) {
@@ -5,7 +5,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
7
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-3UAjhmjw.esm.js";
8
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-cWGQatgx.esm.js";
8
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CKJ_aV6s.esm.js";
9
9
  //#region src/modules/id/digitalUpload/instrumentation.ts
10
10
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
11
11
  function isHoldingState(value) {
@@ -1,10 +1,10 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
4
- import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BuTjLnON.esm.js";
4
+ import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-D53Rr_B1.esm.js";
5
5
  import { n as getBackCameraStream } from "./backCameraStream-BqiXcU28.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
7
- import { n as preloadOpenViduProvider } from "./recordingService-DdljWMN1.esm.js";
7
+ import { n as preloadOpenViduProvider } from "./recordingService-Dv5Ztm5Y.esm.js";
8
8
  import { r as IdCaptureProvider } from "./idCaptureDefaults-DrQe0hWr.esm.js";
9
9
  //#region src/modules/id/idCameraStream.ts
10
10
  async function getIdCameraStream(deviceId) {