@incodetech/core 0.0.0-dev-20260320-80a2d6d → 0.0.0-dev-20260323-4991693

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 (35) hide show
  1. package/dist/{addressSearch-BpdtojH_.esm.js → addressSearch-IJq48WDV.esm.js} +2 -2
  2. package/dist/authentication.esm.js +7 -7
  3. package/dist/{authenticationManager-Yjdutfo0.esm.js → authenticationManager-DACsi9Bs.esm.js} +4 -10
  4. package/dist/{backCameraStream-DQY36Tsq.esm.js → backCameraStream-THvMPTG_.esm.js} +1 -1
  5. package/dist/consent.d.ts +53 -58
  6. package/dist/consent.esm.js +4 -13
  7. package/dist/curp-validation.esm.js +18 -59
  8. package/dist/{deepsightLoader-De-U_lRn.esm.js → deepsightLoader-DfXPJe4B.esm.js} +2 -2
  9. package/dist/{deepsightService-PlHPx0yD.esm.js → deepsightService-DaDUTB6Q.esm.js} +1 -1
  10. package/dist/document-capture.d.ts +52 -82
  11. package/dist/document-capture.esm.js +58 -90
  12. package/dist/document-upload.d.ts +46 -46
  13. package/dist/document-upload.esm.js +3 -3
  14. package/dist/ekyb.esm.js +4 -12
  15. package/dist/ekyc.esm.js +48 -92
  16. package/dist/email.esm.js +3 -3
  17. package/dist/{emailManager-B5pmZ3O4.esm.js → emailManager-DPTdyYgi.esm.js} +5 -16
  18. package/dist/{events-BKOSYNaw.esm.js → events-BfIbM5SS.esm.js} +49 -3
  19. package/dist/extensibility.esm.js +11 -11
  20. package/dist/face-match.esm.js +4 -14
  21. package/dist/{faceCaptureSetup-BQ7cV8vo.esm.js → faceCaptureSetup-CW_ZDHuU.esm.js} +8 -113
  22. package/dist/flow.esm.js +2 -2
  23. package/dist/geolocation.esm.js +5 -21
  24. package/dist/government-validation.esm.js +2 -2
  25. package/dist/id.esm.js +6 -6
  26. package/dist/{idCaptureManager-hbqwL7Qt.esm.js → idCaptureManager-Ctn8I9Rf.esm.js} +41 -126
  27. package/dist/index.esm.js +6 -6
  28. package/dist/phone.esm.js +3 -3
  29. package/dist/{phoneManager-CXYPFfUs.esm.js → phoneManager-BzZI460X.esm.js} +5 -16
  30. package/dist/{streamingEvents-BNVENF4-.esm.js → recordingsRepository-D5Tfsc2D.esm.js} +2 -15
  31. package/dist/redirect-to-mobile.esm.js +2 -2
  32. package/dist/selfie.esm.js +7 -7
  33. package/dist/{selfieManager-DMnrP5LU.esm.js → selfieManager-BXRLyPy4.esm.js} +7 -15
  34. package/dist/{src-xUbMTjnz.esm.js → src-D9pJSMO5.esm.js} +12 -0
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { _ as fromCallback } from "./events-BKOSYNaw.esm.js";
2
- import { g as BrowserTimerProvider } from "./src-xUbMTjnz.esm.js";
1
+ import { v as fromCallback } from "./events-BfIbM5SS.esm.js";
2
+ import { g as BrowserTimerProvider } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
@@ -1,12 +1,12 @@
1
- import "./events-BKOSYNaw.esm.js";
2
- import "./backCameraStream-DQY36Tsq.esm.js";
3
- import "./src-xUbMTjnz.esm.js";
4
- import "./streamingEvents-BNVENF4-.esm.js";
5
- import "./deepsightService-PlHPx0yD.esm.js";
1
+ import "./events-BfIbM5SS.esm.js";
2
+ import "./backCameraStream-THvMPTG_.esm.js";
3
+ import "./src-D9pJSMO5.esm.js";
4
+ import "./recordingsRepository-D5Tfsc2D.esm.js";
5
+ import "./deepsightService-DaDUTB6Q.esm.js";
6
6
  import "./api-3fZO5bmj.esm.js";
7
7
  import "./endpoints-Bydn-Ave.esm.js";
8
8
  import "./stats-D76Thmqp.esm.js";
9
- import "./faceCaptureSetup-BQ7cV8vo.esm.js";
10
- import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Yjdutfo0.esm.js";
9
+ import "./faceCaptureSetup-CW_ZDHuU.esm.js";
10
+ import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DACsi9Bs.esm.js";
11
11
 
12
12
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { f as addEvent, g as assign, n as eventModuleNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-xUbMTjnz.esm.js";
3
- import { l as getDeviceClass } from "./streamingEvents-BNVENF4-.esm.js";
1
+ import { _ as assign, b as createActor, n as eventModuleNames, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-D9pJSMO5.esm.js";
3
+ import { c as getDeviceClass } from "./recordingsRepository-D5Tfsc2D.esm.js";
4
4
  import { t as api } from "./api-3fZO5bmj.esm.js";
5
5
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
6
- import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManagerFromActor, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-BQ7cV8vo.esm.js";
6
+ import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-CW_ZDHuU.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationErrorUtils.ts
9
9
  const AUTH_ERROR_MAP = {
@@ -93,12 +93,6 @@ const _authenticationMachine = faceCaptureMachine.provide({
93
93
  processFace: fromPromise(async () => ({}))
94
94
  },
95
95
  actions: {
96
- trackContinue: () => {
97
- addEvent({
98
- code: FACE_CAPTURE_EVENT_CODES.CONTINUE,
99
- module: eventModuleNames.authentication
100
- });
101
- },
102
96
  setUploadErrorFromUploadValidation: assign({ uploadError: ({ context }) => {
103
97
  const resp = context.uploadResponse;
104
98
  return validateAuthUploadResponse(resp) ?? FACE_ERROR_CODES.SERVER;
@@ -1,4 +1,4 @@
1
- import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-xUbMTjnz.esm.js";
1
+ import { B as isSafari, D as enumerateVideoDevices, E as applyTrackConstraints, F as isAndroid, L as isIOS, O as requestCameraAccess, k as stopCameraStream, z as isIPhone14OrHigher } from "./src-D9pJSMO5.esm.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/ITimerCapability.ts
4
4
  function sleep(ms) {
package/dist/consent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-CVDYGoSq.js";
2
- import * as xstate122 from "xstate";
2
+ import * as xstate0 from "xstate";
3
3
 
4
4
  //#region src/modules/consent/types.d.ts
5
5
  type ConsentConfig = {
@@ -35,7 +35,7 @@ type ConsentContext = {
35
35
  type ConsentInput = {
36
36
  config: ConsentConfig;
37
37
  };
38
- declare const consentMachine: xstate122.StateMachine<ConsentContext, {
38
+ declare const consentMachine: xstate0.StateMachine<ConsentContext, {
39
39
  type: "LOAD";
40
40
  } | {
41
41
  type: "TOGGLE_CHECKBOX";
@@ -47,57 +47,53 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
47
47
  } | {
48
48
  type: "RESET";
49
49
  }, {
50
- [x: string]: xstate122.ActorRefFromLogic<xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
50
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
51
51
  consentId: string;
52
- }, xstate122.EventObject>> | xstate122.ActorRefFromLogic<xstate122.PromiseActorLogic<void, {
52
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
53
53
  languageConsentId: string;
54
54
  checkboxes: ConsentCheckbox[];
55
- }, xstate122.EventObject>> | undefined;
56
- }, xstate122.Values<{
55
+ }, xstate0.EventObject>> | undefined;
56
+ }, xstate0.Values<{
57
57
  fetchConsent: {
58
58
  src: "fetchConsent";
59
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
59
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
60
60
  consentId: string;
61
- }, xstate122.EventObject>;
61
+ }, xstate0.EventObject>;
62
62
  id: string | undefined;
63
63
  };
64
64
  submitConsent: {
65
65
  src: "submitConsent";
66
- logic: xstate122.PromiseActorLogic<void, {
66
+ logic: xstate0.PromiseActorLogic<void, {
67
67
  languageConsentId: string;
68
68
  checkboxes: ConsentCheckbox[];
69
- }, xstate122.EventObject>;
69
+ }, xstate0.EventObject>;
70
70
  id: string | undefined;
71
71
  };
72
- }>, xstate122.Values<{
73
- clearError: {
74
- type: "clearError";
75
- params: unknown;
76
- };
77
- setError: {
78
- type: "setError";
79
- params: unknown;
80
- };
72
+ }>, xstate0.Values<{
81
73
  setConsentData: {
82
74
  type: "setConsentData";
83
- params: unknown;
75
+ params: xstate0.NonReducibleUnknown;
84
76
  };
85
77
  toggleCheckbox: {
86
78
  type: "toggleCheckbox";
87
- params: unknown;
79
+ params: xstate0.NonReducibleUnknown;
80
+ };
81
+ setError: {
82
+ type: "setError";
83
+ params: xstate0.NonReducibleUnknown;
84
+ };
85
+ clearError: {
86
+ type: "clearError";
87
+ params: xstate0.NonReducibleUnknown;
88
88
  };
89
89
  resetContext: {
90
90
  type: "resetContext";
91
- params: unknown;
92
- };
93
- trackConsentGiven: {
94
- type: "trackConsentGiven";
95
- params: unknown;
91
+ params: xstate0.NonReducibleUnknown;
96
92
  };
97
93
  }>, {
98
94
  type: "canSubmit";
99
95
  params: unknown;
100
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate122.NonReducibleUnknown, xstate122.EventObject, xstate122.MetaObject, {
96
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
101
97
  readonly id: "consent";
102
98
  readonly initial: "idle";
103
99
  readonly context: ({
@@ -106,70 +102,70 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
106
102
  spawn: {
107
103
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
104
  src: "fetchConsent";
109
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
105
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
110
106
  consentId: string;
111
- }, xstate122.EventObject>;
107
+ }, xstate0.EventObject>;
112
108
  id: string | undefined;
113
109
  } extends infer T ? T extends {
114
110
  src: "fetchConsent";
115
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
111
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
116
112
  consentId: string;
117
- }, xstate122.EventObject>;
113
+ }, xstate0.EventObject>;
118
114
  id: string | undefined;
119
115
  } ? T extends {
120
116
  src: TSrc;
121
- } ? xstate122.ConditionalRequired<[options?: ({
117
+ } ? xstate0.ConditionalRequired<[options?: ({
122
118
  id?: T["id"] | undefined;
123
119
  systemId?: string;
124
- input?: xstate122.InputFrom<T["logic"]> | undefined;
120
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
125
121
  syncSnapshot?: boolean;
126
- } & { [K in xstate122.RequiredActorOptions<T>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredActorOptions<T>>> : never : never : never) | ({
122
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
127
123
  src: "submitConsent";
128
- logic: xstate122.PromiseActorLogic<void, {
124
+ logic: xstate0.PromiseActorLogic<void, {
129
125
  languageConsentId: string;
130
126
  checkboxes: ConsentCheckbox[];
131
- }, xstate122.EventObject>;
127
+ }, xstate0.EventObject>;
132
128
  id: string | undefined;
133
129
  } extends infer T_1 ? T_1 extends {
134
130
  src: "submitConsent";
135
- logic: xstate122.PromiseActorLogic<void, {
131
+ logic: xstate0.PromiseActorLogic<void, {
136
132
  languageConsentId: string;
137
133
  checkboxes: ConsentCheckbox[];
138
- }, xstate122.EventObject>;
134
+ }, xstate0.EventObject>;
139
135
  id: string | undefined;
140
136
  } ? T_1 extends {
141
137
  src: TSrc;
142
- } ? xstate122.ConditionalRequired<[options?: ({
138
+ } ? xstate0.ConditionalRequired<[options?: ({
143
139
  id?: T_1["id"] | undefined;
144
140
  systemId?: string;
145
- input?: xstate122.InputFrom<T_1["logic"]> | undefined;
141
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
146
142
  syncSnapshot?: boolean;
147
- } & { [K_1 in xstate122.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredActorOptions<T_1>>> : never : never : never)): xstate122.ActorRefFromLogic<xstate122.GetConcreteByKey<xstate122.Values<{
143
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
148
144
  fetchConsent: {
149
145
  src: "fetchConsent";
150
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
146
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
151
147
  consentId: string;
152
- }, xstate122.EventObject>;
148
+ }, xstate0.EventObject>;
153
149
  id: string | undefined;
154
150
  };
155
151
  submitConsent: {
156
152
  src: "submitConsent";
157
- logic: xstate122.PromiseActorLogic<void, {
153
+ logic: xstate0.PromiseActorLogic<void, {
158
154
  languageConsentId: string;
159
155
  checkboxes: ConsentCheckbox[];
160
- }, xstate122.EventObject>;
156
+ }, xstate0.EventObject>;
161
157
  id: string | undefined;
162
158
  };
163
159
  }>, "src", TSrc>["logic"]>;
164
- <TLogic extends xstate122.AnyActorLogic>(src: TLogic, ...[options]: xstate122.ConditionalRequired<[options?: ({
160
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
165
161
  id?: never;
166
162
  systemId?: string;
167
- input?: xstate122.InputFrom<TLogic> | undefined;
163
+ input?: xstate0.InputFrom<TLogic> | undefined;
168
164
  syncSnapshot?: boolean;
169
- } & { [K in xstate122.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredLogicInput<TLogic>>>): xstate122.ActorRefFromLogic<TLogic>;
165
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
170
166
  };
171
167
  input: ConsentInput;
172
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
168
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
173
169
  type: "LOAD";
174
170
  } | {
175
171
  type: "TOGGLE_CHECKBOX";
@@ -180,7 +176,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
180
176
  type: "RETRY";
181
177
  } | {
182
178
  type: "RESET";
183
- }, Record<string, xstate122.AnyActorRef | undefined>, xstate122.StateValue, string, unknown, any, any>, {
179
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
184
180
  type: "LOAD";
185
181
  } | {
186
182
  type: "TOGGLE_CHECKBOX";
@@ -191,7 +187,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
191
187
  type: "RETRY";
192
188
  } | {
193
189
  type: "RESET";
194
- }, xstate122.AnyEventObject>;
190
+ }, xstate0.AnyEventObject>;
195
191
  }) => {
196
192
  config: ConsentConfig;
197
193
  title: string;
@@ -229,7 +225,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
229
225
  } | {
230
226
  type: "RESET";
231
227
  };
232
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
228
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
233
229
  type: "LOAD";
234
230
  } | {
235
231
  type: "TOGGLE_CHECKBOX";
@@ -240,7 +236,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
240
236
  type: "RETRY";
241
237
  } | {
242
238
  type: "RESET";
243
- }, Record<string, xstate122.AnyActorRef>, xstate122.StateValue, string, unknown, any, any>, {
239
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
244
240
  type: "LOAD";
245
241
  } | {
246
242
  type: "TOGGLE_CHECKBOX";
@@ -251,7 +247,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
251
247
  type: "RETRY";
252
248
  } | {
253
249
  type: "RESET";
254
- }, xstate122.AnyEventObject>;
250
+ }, xstate0.AnyEventObject>;
255
251
  }) => {
256
252
  consentId: string;
257
253
  };
@@ -300,7 +296,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
300
296
  } | {
301
297
  type: "RESET";
302
298
  };
303
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
299
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
304
300
  type: "LOAD";
305
301
  } | {
306
302
  type: "TOGGLE_CHECKBOX";
@@ -311,7 +307,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
311
307
  type: "RETRY";
312
308
  } | {
313
309
  type: "RESET";
314
- }, Record<string, xstate122.AnyActorRef>, xstate122.StateValue, string, unknown, any, any>, {
310
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
315
311
  type: "LOAD";
316
312
  } | {
317
313
  type: "TOGGLE_CHECKBOX";
@@ -322,14 +318,13 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
322
318
  type: "RETRY";
323
319
  } | {
324
320
  type: "RESET";
325
- }, xstate122.AnyEventObject>;
321
+ }, xstate0.AnyEventObject>;
326
322
  }) => {
327
323
  languageConsentId: string;
328
324
  checkboxes: ConsentCheckbox[];
329
325
  };
330
326
  readonly onDone: {
331
327
  readonly target: "finished";
332
- readonly actions: "trackConsentGiven";
333
328
  };
334
329
  readonly onError: {
335
330
  readonly target: "display";
@@ -1,5 +1,5 @@
1
- import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
@@ -78,13 +78,7 @@ const consentMachine = setup({
78
78
  languageConsentId: "",
79
79
  checkboxes: [],
80
80
  error: void 0
81
- })),
82
- trackConsentGiven: () => {
83
- addEvent({
84
- code: "combinedConsentGiven",
85
- module: eventModuleNames.combinedConsent
86
- });
87
- }
81
+ }))
88
82
  },
89
83
  guards: { canSubmit: ({ context }) => context.checkboxes.filter((checkbox) => checkbox.required).every((checkbox) => checkbox.checked) }
90
84
  }).createMachine({
@@ -134,10 +128,7 @@ const consentMachine = setup({
134
128
  languageConsentId: context.languageConsentId,
135
129
  checkboxes: context.checkboxes
136
130
  }),
137
- onDone: {
138
- target: "finished",
139
- actions: "trackConsentGiven"
140
- },
131
+ onDone: { target: "finished" },
141
132
  onError: {
142
133
  target: "display",
143
134
  actions: "setError"
@@ -1,5 +1,5 @@
1
- import { d as screenOpened, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
- import { A as createManager } from "./src-xUbMTjnz.esm.js";
1
+ import { _ as assign, b as createActor, g as setup, n as eventModuleNames, o as createManagerInstrumentation, y as fromPromise } from "./events-BfIbM5SS.esm.js";
2
+ import { A as createManager } from "./src-D9pJSMO5.esm.js";
3
3
  import { t as api } from "./api-3fZO5bmj.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
@@ -242,22 +242,7 @@ const curpValidationMachine = setup({
242
242
  decrementRetries: assign(({ context }) => ({ retriesLeft: Math.max(0, context.retriesLeft - 1) })),
243
243
  setFromGenerate: assign({ fromGenerate: () => true }),
244
244
  clearFromGenerate: assign({ fromGenerate: () => false }),
245
- setError: assign(({ event }) => ({ error: String(event.error) })),
246
- trackEnterCurp: () => {
247
- screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpEnter);
248
- },
249
- trackGenerateCurp: () => {
250
- screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpGenerate);
251
- },
252
- trackValidationProgress: () => {
253
- screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidation);
254
- },
255
- trackValidationSuccess: () => {
256
- screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidationSuccess);
257
- },
258
- trackValidationFailed: () => {
259
- screenOpened(eventModuleNames.curpValidation, eventScreenNames.curpValidationFailed);
260
- }
245
+ setError: assign(({ event }) => ({ error: String(event.error) }))
261
246
  },
262
247
  guards: {
263
248
  hasPrefillFromOcr: ({ context }) => context.config.prefillFromOcr !== false,
@@ -301,10 +286,7 @@ const curpValidationMachine = setup({
301
286
  LOAD: [{
302
287
  target: "loading",
303
288
  guard: "hasPrefillFromOcr"
304
- }, {
305
- target: "enterCurp",
306
- actions: "trackEnterCurp"
307
- }],
289
+ }, { target: "enterCurp" }],
308
290
  CLOSE: "closed"
309
291
  } },
310
292
  loading: {
@@ -314,15 +296,9 @@ const curpValidationMachine = setup({
314
296
  onDone: [{
315
297
  target: "verifying",
316
298
  guard: "hasOcrCurp",
317
- actions: ["setCurpFromOcr", "trackValidationProgress"]
318
- }, {
319
- target: "enterCurp",
320
- actions: "trackEnterCurp"
321
- }],
322
- onError: {
323
- target: "enterCurp",
324
- actions: "trackEnterCurp"
325
- }
299
+ actions: "setCurpFromOcr"
300
+ }, { target: "enterCurp" }],
301
+ onError: { target: "enterCurp" }
326
302
  },
327
303
  on: { CLOSE: "closed" }
328
304
  },
@@ -330,12 +306,11 @@ const curpValidationMachine = setup({
330
306
  SET_CURP: { actions: "setCurp" },
331
307
  VERIFY: {
332
308
  target: "verifying",
333
- guard: "isValidCurpGuard",
334
- actions: "trackValidationProgress"
309
+ guard: "isValidCurpGuard"
335
310
  },
336
311
  SWITCH_TO_GENERATE: {
337
312
  target: "generateCurp",
338
- actions: ["setFromGenerate", "trackGenerateCurp"]
313
+ actions: "setFromGenerate"
339
314
  },
340
315
  CLOSE: "closed"
341
316
  } },
@@ -349,35 +324,28 @@ const curpValidationMachine = setup({
349
324
  guard: "isVerifySuccess"
350
325
  }, {
351
326
  target: "failure",
352
- actions: ["decrementRetries", "trackValidationFailed"]
327
+ actions: "decrementRetries"
353
328
  }],
354
329
  onError: {
355
330
  target: "failure",
356
- actions: [
357
- "decrementRetries",
358
- "setError",
359
- "trackValidationFailed"
360
- ]
331
+ actions: ["decrementRetries", "setError"]
361
332
  }
362
333
  },
363
334
  on: { CLOSE: "closed" }
364
335
  },
365
336
  success: {
366
- entry: "trackValidationSuccess",
367
337
  after: { 3e3: "finished" },
368
338
  on: { CLOSE: "closed" }
369
339
  },
370
340
  failure: {
371
- entry: "trackValidationFailed",
372
341
  on: {
373
342
  RETRY: [{
374
343
  target: "generateCurp",
375
- guard: ({ context }) => context.retriesLeft > 0 && context.fromGenerate,
376
- actions: "trackGenerateCurp"
344
+ guard: ({ context }) => context.retriesLeft > 0 && context.fromGenerate
377
345
  }, {
378
346
  target: "enterCurp",
379
347
  guard: ({ context }) => context.retriesLeft > 0 && !context.fromGenerate,
380
- actions: ["clearFromGenerate", "trackEnterCurp"]
348
+ actions: "clearFromGenerate"
381
349
  }],
382
350
  CLOSE: "closed"
383
351
  },
@@ -390,8 +358,7 @@ const curpValidationMachine = setup({
390
358
  SET_GENERATE_FORM: { actions: "setGenerateForm" },
391
359
  GENERATE: {
392
360
  target: "generating",
393
- guard: "isGenerateFormValidGuard",
394
- actions: "trackValidationProgress"
361
+ guard: "isGenerateFormValidGuard"
395
362
  },
396
363
  CLOSE: "closed"
397
364
  } },
@@ -416,34 +383,26 @@ const curpValidationMachine = setup({
416
383
  },
417
384
  {
418
385
  target: "generateError",
419
- actions: ["setFromGenerate", "trackValidationFailed"]
386
+ actions: "setFromGenerate"
420
387
  }
421
388
  ],
422
389
  onError: {
423
390
  target: "generateError",
424
- actions: [
425
- "setFromGenerate",
426
- "setError",
427
- "trackValidationFailed"
428
- ]
391
+ actions: ["setFromGenerate", "setError"]
429
392
  }
430
393
  },
431
394
  on: { CLOSE: "closed" }
432
395
  },
433
396
  confirmCurp: { on: {
434
- CONFIRM: {
435
- target: "verifying",
436
- actions: "trackValidationProgress"
437
- },
397
+ CONFIRM: { target: "verifying" },
438
398
  CLOSE: "closed"
439
399
  } },
440
400
  generateError: {
441
- entry: "trackValidationFailed",
442
401
  on: {
443
402
  RETRY: {
444
403
  target: "generateCurp",
445
404
  guard: "canRetry",
446
- actions: ["decrementRetries", "trackGenerateCurp"]
405
+ actions: "decrementRetries"
447
406
  },
448
407
  CLOSE: "closed"
449
408
  },
@@ -1,5 +1,5 @@
1
- import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-xUbMTjnz.esm.js";
2
- import { t as createDeepsightService } from "./deepsightService-PlHPx0yD.esm.js";
1
+ import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-D9pJSMO5.esm.js";
2
+ import { t as createDeepsightService } from "./deepsightService-DaDUTB6Q.esm.js";
3
3
  import "./api-3fZO5bmj.esm.js";
4
4
  import "./stats-D76Thmqp.esm.js";
5
5
 
@@ -1,4 +1,4 @@
1
- import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-xUbMTjnz.esm.js";
1
+ import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-D9pJSMO5.esm.js";
2
2
  import { t as api } from "./api-3fZO5bmj.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
4
4