@incodetech/core 0.0.0-dev-20260617-8a69e08c → 0.0.0-dev-20260617-7cc8f894

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 (159) hide show
  1. package/dist/{OpenViduRecordingProvider-BDIlX9Cq.esm.js → OpenViduRecordingProvider-DF7A4ZNJ.esm.js} +1 -1
  2. package/dist/{StreamCanvasCapture-uQFmjDCE.d.ts → StreamCanvasCapture-CDN2Apbm.d.ts} +1 -1
  3. package/dist/ae-signature.d.ts +3 -3
  4. package/dist/antifraud.d.ts +3 -3
  5. package/dist/{antifraudManager-vkuogwAe.d.ts → antifraudManager-DbrsuESv.d.ts} +2 -2
  6. package/dist/authentication.d.ts +13 -13
  7. package/dist/authentication.esm.js +5 -5
  8. package/dist/{authenticationManager-Dz4IJIrK.esm.js → authenticationManager-DVgli_vD.esm.js} +1 -1
  9. package/dist/{authenticationManager-CDxVMHF1.d.ts → authenticationManager-DnOZ0hIZ.d.ts} +2 -2
  10. package/dist/{authenticationStateMachine-ZqIWl4M4.esm.js → authenticationStateMachine-PtGChFaq.esm.js} +15 -18
  11. package/dist/camera.d.ts +1 -1
  12. package/dist/certificate-issuance.d.ts +30 -30
  13. package/dist/consent.d.ts +3 -3
  14. package/dist/{consentManager-WjRO-QwM.d.ts → consentManager-CDgMJdcr.d.ts} +49 -49
  15. package/dist/cpf-ocr.d.ts +3 -3
  16. package/dist/{cpfOcrManager-DV-v9XjQ.d.ts → cpfOcrManager-D3lUVFbI.d.ts} +19 -19
  17. package/dist/cross-document-data-match.d.ts +1 -1
  18. package/dist/curp-validation.d.ts +7 -7
  19. package/dist/{curpValidationManager-CeXO_2dN.d.ts → curpValidationManager-Cmv2orSI.d.ts} +3 -3
  20. package/dist/custom-fields.d.ts +2 -2
  21. package/dist/custom-watchlist.d.ts +1 -1
  22. package/dist/{deepsightService-BpVpDm2O.d.ts → deepsightService-DpHuyW3G.d.ts} +1 -1
  23. package/dist/document-capture.d.ts +235 -235
  24. package/dist/document-upload.d.ts +47 -47
  25. package/dist/dynamic-forms.d.ts +2 -2
  26. package/dist/dynamic-forms.esm.js +5 -282
  27. package/dist/dynamicFormsStateMachine-p7MuNqYk.esm.js +284 -0
  28. package/dist/ekyb.d.ts +6 -6
  29. package/dist/ekyb.esm.js +5 -5
  30. package/dist/{ekybStateMachine-LYbmoerq.esm.js → ekybStateMachine-CRSuNnsu.esm.js} +2 -2
  31. package/dist/ekyc.d.ts +3 -3
  32. package/dist/ekyc.esm.js +2 -2
  33. package/dist/{ekycStateMachine-dXnYshTa.esm.js → ekycStateMachine-BqzVRrZz.esm.js} +1 -1
  34. package/dist/electronic-signature.d.ts +3 -3
  35. package/dist/email.d.ts +4 -4
  36. package/dist/email.esm.js +3 -3
  37. package/dist/{emailManager-DLFWfHIl.d.ts → emailManager-DbZkzbPP.d.ts} +3 -3
  38. package/dist/{emailManager-DQJIAsix.esm.js → emailManager-DfgCL3O0.esm.js} +2 -2
  39. package/dist/{emailStateMachine-C1DabizS.esm.js → emailStateMachine-DWzBDO0i.esm.js} +1 -1
  40. package/dist/extensibility.d.ts +26 -26
  41. package/dist/extensibility.esm.js +23 -23
  42. package/dist/face-match.d.ts +1 -1
  43. package/dist/face-match.esm.js +1 -1
  44. package/dist/{faceCaptureManagerFactory-BQg4HVQ0.d.ts → faceCaptureManagerFactory-B2Vhybvk.d.ts} +10 -9
  45. package/dist/{faceCaptureSetup-B2H2mNGa.esm.js → faceCaptureSetup-D3yv2HY3.esm.js} +2 -2
  46. package/dist/field-comparison.d.ts +3 -3
  47. package/dist/field-comparison.esm.js +1 -1
  48. package/dist/{fieldComparisonManager-CgJctoEw.d.ts → fieldComparisonManager-6YiDreZW.d.ts} +2 -2
  49. package/dist/fiscal-qr.d.ts +3 -3
  50. package/dist/fiscal-qr.esm.js +1 -1
  51. package/dist/flow-events.d.ts +6 -6
  52. package/dist/flow.d.ts +12 -12
  53. package/dist/flow.esm.js +6 -6
  54. package/dist/{flowServices-D_FMT6Fi.esm.js → flowServices-BLUYSdW9.esm.js} +1 -1
  55. package/dist/geolocation.d.ts +2 -2
  56. package/dist/geolocation.esm.js +1 -1
  57. package/dist/government-validation.d.ts +3 -3
  58. package/dist/government-validation.esm.js +2 -2
  59. package/dist/{governmentValidationStateMachine-DXqbvuKL.esm.js → governmentValidationStateMachine-CC_MEsWI.esm.js} +1 -1
  60. package/dist/home.d.ts +15 -15
  61. package/dist/http.esm.js +1 -1
  62. package/dist/id-ocr.d.ts +2 -2
  63. package/dist/id-ocr.esm.js +1 -1
  64. package/dist/id-verification.d.ts +27 -27
  65. package/dist/id-verification.esm.js +1 -1
  66. package/dist/id.d.ts +12 -12
  67. package/dist/id.esm.js +7 -7
  68. package/dist/{idCaptureManager-k5tfqV1x.esm.js → idCaptureManager-BsyVVBx7.esm.js} +1 -1
  69. package/dist/{idCaptureManager-Wn84cPTa.d.ts → idCaptureManager-CV3Tioi4.d.ts} +8 -8
  70. package/dist/{idCaptureStateMachine-BY5csicv.esm.js → idCaptureStateMachine-DQkygy-A.esm.js} +4 -4
  71. package/dist/identity-reuse.d.ts +3 -3
  72. package/dist/identity-reuse.esm.js +2 -2
  73. package/dist/{identityReuseManager-Bew667Pj.esm.js → identityReuseManager-CqBkUE4l.esm.js} +1 -1
  74. package/dist/{identityReuseManager-ByGgS8ML.d.ts → identityReuseManager-Dei197Hq.d.ts} +33 -33
  75. package/dist/{index-Bna2s_tk.d.ts → index-BFqpqVT2.d.ts} +169 -169
  76. package/dist/{index-cIuvyWMa.d.ts → index-DCwyzc5q.d.ts} +2 -2
  77. package/dist/index.d.ts +3 -3
  78. package/dist/index.esm.js +3 -3
  79. package/dist/mandatory-consent.d.ts +7 -7
  80. package/dist/mandatory-consent.esm.js +2 -2
  81. package/dist/{mandatoryConsentManager-DDs8TlGY.d.ts → mandatoryConsentManager-BJRO5-0a.d.ts} +50 -50
  82. package/dist/{mandatoryConsentManager-kbO0Dr65.esm.js → mandatoryConsentManager-Qub7zBH8.esm.js} +1 -1
  83. package/dist/openviduLazy-B_s6jnEk.esm.js +3 -0
  84. package/dist/{openviduLazy-BapX8Ljx.esm.js → openviduLazy-oAXXI9w_.esm.js} +1 -1
  85. package/dist/phone.d.ts +4 -4
  86. package/dist/phone.esm.js +3 -3
  87. package/dist/{phoneManager-CZA4CST1.esm.js → phoneManager-ApM3CWwR.esm.js} +2 -2
  88. package/dist/{phoneManager-CkEiuAuM.d.ts → phoneManager-h6NgdQCA.d.ts} +3 -3
  89. package/dist/{phoneStateMachine-BQNuJGjq.esm.js → phoneStateMachine-Nn0ifgsM.esm.js} +1 -1
  90. package/dist/qe-signature.d.ts +3 -3
  91. package/dist/qe-signature.esm.js +1 -1
  92. package/dist/{recordingService-Cw3hJgT2.esm.js → recordingService-D6wX1gjP.esm.js} +5 -5
  93. package/dist/redirect-to-mobile.d.ts +3 -3
  94. package/dist/redirect-to-mobile.esm.js +2 -2
  95. package/dist/{redirectToMobileManager-B4PTmB3H.esm.js → redirectToMobileManager-Bw0Dew2v.esm.js} +1 -1
  96. package/dist/{redirectToMobileManager-DYQsXMqo.d.ts → redirectToMobileManager-DYv4-nNn.d.ts} +2 -2
  97. package/dist/{runChildModule-DaOsL9FE.esm.js → runChildModule-BGecSlg0.esm.js} +8 -21
  98. package/dist/selfie.d.ts +13 -13
  99. package/dist/selfie.esm.js +6 -6
  100. package/dist/{selfieManager-CxktnRiy.d.ts → selfieManager-BjwgTTSs.d.ts} +2 -2
  101. package/dist/{selfieManager-MGv9xxlB.esm.js → selfieManager-DgUgks9i.esm.js} +1 -1
  102. package/dist/{selfieStateMachine-DIep8sRA.esm.js → selfieStateMachine-YDCX3Ew4.esm.js} +3 -3
  103. package/dist/session.d.ts +5 -5
  104. package/dist/session.esm.js +3 -3
  105. package/dist/{sessionInitializer-CMFY9E5w.esm.js → sessionInitializer-zHt8j5xW.esm.js} +1 -1
  106. package/dist/{setup-CuLzlVAN.esm.js → setup-BqOF4vbP.esm.js} +2 -2
  107. package/dist/{setup-CbuQnURW.d.ts → setup-DHGBjYDo.d.ts} +2 -2
  108. package/dist/signature.d.ts +2 -2
  109. package/dist/signature.esm.js +1 -1
  110. package/dist/{tri-BO556jKl.esm.js → tri-Dm8DCwTc.esm.js} +1 -1
  111. package/dist/tri.d.ts +1 -1
  112. package/dist/{tri.esm-Drm5tKql.esm.js → tri.esm-Cb1T14_N.esm.js} +1 -1
  113. package/dist/tri.esm.js +1 -1
  114. package/dist/trust-graph.d.ts +3 -3
  115. package/dist/{types-C3Yf5jrM.esm.js → types-BdVOWGGW.esm.js} +2 -1
  116. package/dist/{types-CNiMvUpA.d.ts → types-Cjx73NNd.d.ts} +1 -1
  117. package/dist/{types-D8y52YD5.d.ts → types-Dv-9WPJX.d.ts} +2 -2
  118. package/dist/{types-DR2YKE_o.d.ts → types-Z9wv19v2.d.ts} +1 -1
  119. package/dist/wasm.d.ts +3 -3
  120. package/dist/wasm.esm.js +3 -3
  121. package/dist/watchlist-for-business.d.ts +1 -1
  122. package/dist/watchlist-for-business.esm.js +1 -1
  123. package/dist/watchlist.d.ts +1 -1
  124. package/dist/watchlist.esm.js +1 -1
  125. package/dist/workflow.d.ts +94 -94
  126. package/dist/workflow.esm.js +33 -30
  127. package/package.json +1 -1
  128. package/dist/openviduLazy--VDjpeVq.esm.js +0 -3
  129. /package/dist/{Actor-CeqUTqL9.d.ts → Actor-fIPLXfoi.d.ts} +0 -0
  130. /package/dist/{Manager-CHiHBvMT.d.ts → Manager-Dsj-sPxS.d.ts} +0 -0
  131. /package/dist/{StateMachine-HpHVxl3G.d.ts → StateMachine-BIfEYukU.d.ts} +0 -0
  132. /package/dist/{addressSearch-4xxBiFtH.esm.js → addressSearch-Byq4gwCN.esm.js} +0 -0
  133. /package/dist/{browser-8Za96B1X-CUY3snMa.esm.js → browser-8Za96B1X-2HhouIRF.esm.js} +0 -0
  134. /package/dist/{camera-D0c7ez3w.d.ts → camera-biGPWlmx.d.ts} +0 -0
  135. /package/dist/{deepsightLoader-cR0EgL9O.esm.js → deepsightLoader-D8lOvUfM.esm.js} +0 -0
  136. /package/dist/{faceMatchStateMachine-eQOGyK1R.esm.js → faceMatchStateMachine-BzP_cdwX.esm.js} +0 -0
  137. /package/dist/{fieldComparisonManager-IaJfvmEt.esm.js → fieldComparisonManager-m1j9K66T.esm.js} +0 -0
  138. /package/dist/{flowCompletionService-DSPt5J5M.d.ts → flowCompletionService-BAFssHBk.d.ts} +0 -0
  139. /package/dist/{flowCompletionService-D9l6fDFY.esm.js → flowCompletionService-Y1UICFg1.esm.js} +0 -0
  140. /package/dist/{geolocationStateMachine-CB4yyRz1.esm.js → geolocationStateMachine-BRas1Frw.esm.js} +0 -0
  141. /package/dist/{http-B2UWIXGr.esm.js → http-CfVTgMfU.esm.js} +0 -0
  142. /package/dist/{idOcrStateMachine-BwksZ-bt.esm.js → idOcrStateMachine-DBR2PV3V.esm.js} +0 -0
  143. /package/dist/{idVerificationStateMachine-BMzgkkbQ.esm.js → idVerificationStateMachine-9pEdKmP9.esm.js} +0 -0
  144. /package/dist/{identityReuseStateMachine-CbR5itoo.esm.js → identityReuseStateMachine-Mhf3pwuo.esm.js} +0 -0
  145. /package/dist/{index-B6TAFzyx.d.ts → index-Cu5ZqstL.d.ts} +0 -0
  146. /package/dist/{invokeOnCaptureCallback-DyJrH089.esm.js → invokeOnCaptureCallback-BlFdnfoh.esm.js} +0 -0
  147. /package/dist/{lib-DOI53AqI.esm.js → lib-7ZQ9BdKH.esm.js} +0 -0
  148. /package/dist/{mandatoryConsentStateMachine-DtjGqH2e.esm.js → mandatoryConsentStateMachine-OCd0A55c.esm.js} +0 -0
  149. /package/dist/{otp-BHJnjEEc.d.ts → otp-BwLdGT6f.d.ts} +0 -0
  150. /package/dist/{otp-BcSa5nTM.esm.js → otp-D87RTwrx.esm.js} +0 -0
  151. /package/dist/{qe-signature-BVUV3TE_.esm.js → qe-signature-D6-Qpyfo.esm.js} +0 -0
  152. /package/dist/{redirectToMobileStateMachine-BWrpS_sN.esm.js → redirectToMobileStateMachine-60oeuo-V.esm.js} +0 -0
  153. /package/dist/{session-C_G3d7av.esm.js → session-Da435G0o.esm.js} +0 -0
  154. /package/dist/{signatureStateMachine-B7hxdXio.esm.js → signatureStateMachine-BTkVm04g.esm.js} +0 -0
  155. /package/dist/{types-F0IXbaCB.d.ts → types-D3dxOdyZ.d.ts} +0 -0
  156. /package/dist/{types-C1ixFPzO.d.ts → types-DYZja-k9.d.ts} +0 -0
  157. /package/dist/{warmup-CdT_pVcp.d.ts → warmup--6HA3yUR.d.ts} +0 -0
  158. /package/dist/{watchlistForBusinessStateMachine-D3W0_TEt.esm.js → watchlistForBusinessStateMachine-fEpRdtnj.esm.js} +0 -0
  159. /package/dist/{watchlistStateMachine-D8EXhr5W.esm.js → watchlistStateMachine-C92XRtlP.esm.js} +0 -0
@@ -0,0 +1,284 @@
1
+ import { t as api } from "./api-DUZwyz0o.esm.js";
2
+ import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
3
+ import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CbU9dpcC.esm.js";
4
+ import { t as isoDateToMs } from "./dateUtils-8dCcuArE.esm.js";
5
+
6
+ //#region src/modules/dynamic-forms/dynamicFormsFields.ts
7
+ function getEffectiveType(question) {
8
+ return question.inputType ?? question.overrides ?? "TEXT";
9
+ }
10
+ const FORMAT_ERROR_KEY_BY_TYPE = {
11
+ PHONE: "phone.invalidPhone",
12
+ EMAIL: "verification.errors.emailInvalid",
13
+ CPF: "dynamicForms.invalidCpf"
14
+ };
15
+ function buildQuestionValidation(question) {
16
+ const effectiveType = getEffectiveType(question);
17
+ const rules = [];
18
+ if (!question.isOptional) rules.push({ type: "required" });
19
+ const formatErrorKey = FORMAT_ERROR_KEY_BY_TYPE[effectiveType];
20
+ if (formatErrorKey) rules.push({
21
+ type: "formatViaAnswerValidity",
22
+ errorKey: formatErrorKey
23
+ });
24
+ return rules;
25
+ }
26
+ function buildScreenFields(formScreen) {
27
+ return formScreen.questions.map((q) => ({
28
+ questionId: q.questionId,
29
+ inputType: getEffectiveType(q),
30
+ isOptional: q.isOptional ?? false,
31
+ validation: buildQuestionValidation(q)
32
+ }));
33
+ }
34
+
35
+ //#endregion
36
+ //#region src/modules/dynamic-forms/dynamicFormsValidators.ts
37
+ const VALIDATORS = {
38
+ required: ({ value }) => value.trim().length === 0 ? "dynamicForms.fieldRequired" : void 0,
39
+ formatViaAnswerValidity: ({ questionId, answerValidity }, rule) => answerValidity[questionId] === false ? rule.errorKey : void 0
40
+ };
41
+ const normalizeValue = (value) => typeof value === "string" ? value : String(value ?? "");
42
+ function evaluateRules(input, rules) {
43
+ for (const rule of rules) {
44
+ const error = rule.type === "required" ? VALIDATORS.required(input) : VALIDATORS.formatViaAnswerValidity(input, rule);
45
+ if (error) return error;
46
+ }
47
+ }
48
+ /** Runs full-screen validation. Returns first failing key per field; empty = pass. */
49
+ function validateScreenForm(answers, fields, answerValidity) {
50
+ return fields.reduce((errors, field) => {
51
+ const error = evaluateRules({
52
+ value: normalizeValue(answers[field.questionId]),
53
+ questionId: field.questionId,
54
+ answerValidity
55
+ }, field.validation);
56
+ if (error) errors[field.questionId] = error;
57
+ return errors;
58
+ }, {});
59
+ }
60
+ /** Runs single-field validation (blur). Unknown `questionId` → `undefined`. */
61
+ function validateScreenField(answers, questionId, fields, answerValidity) {
62
+ const field = fields.find((f) => f.questionId === questionId);
63
+ if (!field) return void 0;
64
+ return evaluateRules({
65
+ value: normalizeValue(answers[questionId]),
66
+ questionId,
67
+ answerValidity
68
+ }, field.validation);
69
+ }
70
+
71
+ //#endregion
72
+ //#region src/modules/dynamic-forms/dynamicFormsServices.ts
73
+ async function fetchForms(flowId, signal) {
74
+ const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=DYNAMIC_FORMS`;
75
+ const res = await api.get(url, { signal });
76
+ if (!res.ok) throw new Error(`GET ${endpoints.moduleConfig} failed: ${res.status} ${res.statusText}`);
77
+ return res.data;
78
+ }
79
+ async function submitFormAnswer(params, signal) {
80
+ const res = await api.post(endpoints.dynamicFormsSubmitAnswer, {
81
+ questionId: params.questionId,
82
+ answerDetails: { singleAnswer: params.singleAnswer }
83
+ }, { signal });
84
+ if (!res.ok) throw new Error(`POST ${endpoints.dynamicFormsSubmitAnswer} failed: ${res.status} ${res.statusText}`);
85
+ return res.data;
86
+ }
87
+
88
+ //#endregion
89
+ //#region src/modules/dynamic-forms/dynamicFormsStateMachine.ts
90
+ function transformAnswerValue(inputType, value) {
91
+ switch (inputType) {
92
+ case "CPF": return value.replace(/[-.]/g, "");
93
+ case "DATE": return isoDateToMs(value).toString();
94
+ default: return value;
95
+ }
96
+ }
97
+ const removeKey = (errors, key) => {
98
+ if (!errors?.[key]) return errors;
99
+ const next = { ...errors };
100
+ delete next[key];
101
+ return Object.keys(next).length > 0 ? next : void 0;
102
+ };
103
+ const upsertKey = (errors, key, message) => {
104
+ const next = { ...errors ?? {} };
105
+ if (message) next[key] = message;
106
+ else delete next[key];
107
+ return Object.keys(next).length > 0 ? next : void 0;
108
+ };
109
+ const dynamicFormsMachine = setup({
110
+ types: {
111
+ context: {},
112
+ events: {},
113
+ input: {}
114
+ },
115
+ actors: {
116
+ fetchScreens: fromPromise(async ({ input, signal }) => {
117
+ return fetchForms(input.flowId, signal);
118
+ }),
119
+ submitScreenAnswers: fromPromise(async ({ input, signal }) => {
120
+ const { screen: formScreen, answers } = input;
121
+ for (const question of formScreen.questions) {
122
+ const singleAnswer = transformAnswerValue(question.inputType ?? question.overrides ?? "TEXT", answers[question.questionId] ?? "");
123
+ try {
124
+ await submitFormAnswer({
125
+ questionId: question.questionId,
126
+ singleAnswer
127
+ }, signal);
128
+ } catch {}
129
+ }
130
+ return { success: true };
131
+ })
132
+ },
133
+ actions: {
134
+ setScreens: assign(({ event }) => {
135
+ const screens = event.output.screens;
136
+ const firstScreen = screens[0];
137
+ return {
138
+ screens,
139
+ answers: {},
140
+ currentScreenFields: firstScreen ? buildScreenFields(firstScreen) : []
141
+ };
142
+ }),
143
+ setAnswer: assign(({ context, event }) => {
144
+ const e = event;
145
+ return {
146
+ answers: {
147
+ ...context.answers,
148
+ [e.questionId]: e.value
149
+ },
150
+ validationErrors: removeKey(context.validationErrors, e.questionId)
151
+ };
152
+ }),
153
+ setAnswerValidity: assign(({ context, event }) => {
154
+ const e = event;
155
+ return {
156
+ answerValidity: {
157
+ ...context.answerValidity,
158
+ [e.questionId]: e.isValid
159
+ },
160
+ validationErrors: removeKey(context.validationErrors, e.questionId)
161
+ };
162
+ }),
163
+ validateFormField: assign(({ context, event }) => {
164
+ if (event.type !== "VALIDATE_FIELD") return {};
165
+ const message = validateScreenField(context.answers, event.questionId, context.currentScreenFields, context.answerValidity);
166
+ return { validationErrors: upsertKey(context.validationErrors, event.questionId, message) };
167
+ }),
168
+ computeValidationResult: assign(({ context }) => {
169
+ const errors = validateScreenForm(context.answers, context.currentScreenFields, context.answerValidity);
170
+ return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
171
+ }),
172
+ advanceScreen: assign(({ context }) => {
173
+ const nextIndex = context.currentScreenIndex + 1;
174
+ const nextScreen = context.screens[nextIndex];
175
+ return {
176
+ currentScreenIndex: nextIndex,
177
+ answers: {},
178
+ answerValidity: {},
179
+ currentScreenFields: nextScreen ? buildScreenFields(nextScreen) : [],
180
+ validationErrors: void 0
181
+ };
182
+ }),
183
+ markCompleted: assign({ result: "completed" }),
184
+ markSkipped: assign({ result: "skipped" })
185
+ },
186
+ guards: {
187
+ hasPreloadedScreens: ({ context }) => (context.config.screens?.length ?? 0) > 0,
188
+ hasFlowId: ({ context }) => !!context.config.flowId,
189
+ isLastScreen: ({ context }) => context.currentScreenIndex >= context.screens.length - 1,
190
+ isScreenValid: ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0
191
+ }
192
+ }).createMachine({
193
+ id: "dynamicForms",
194
+ initial: "idle",
195
+ context: ({ input }) => {
196
+ const screens = input.config.screens ?? [];
197
+ const firstScreen = screens[0];
198
+ return {
199
+ config: input.config,
200
+ screens,
201
+ currentScreenIndex: 0,
202
+ answers: {},
203
+ answerValidity: {},
204
+ currentScreenFields: firstScreen ? buildScreenFields(firstScreen) : [],
205
+ result: null
206
+ };
207
+ },
208
+ states: {
209
+ idle: { on: { LOAD: [
210
+ {
211
+ target: "inputting",
212
+ guard: "hasPreloadedScreens"
213
+ },
214
+ {
215
+ target: "loadingScreens",
216
+ guard: "hasFlowId"
217
+ },
218
+ { target: "misconfigured" }
219
+ ] } },
220
+ loadingScreens: { invoke: {
221
+ id: "fetchScreens",
222
+ src: "fetchScreens",
223
+ input: ({ context }) => ({ flowId: context.config.flowId ?? "" }),
224
+ onDone: {
225
+ target: "inputting",
226
+ actions: "setScreens"
227
+ },
228
+ onError: {
229
+ target: "finished",
230
+ actions: "markSkipped"
231
+ }
232
+ } },
233
+ inputting: {
234
+ initial: "editing",
235
+ states: {
236
+ editing: { on: {
237
+ ANSWER_CHANGED: { actions: "setAnswer" },
238
+ ANSWER_VALIDITY_CHANGED: { actions: "setAnswerValidity" },
239
+ VALIDATE_FIELD: { actions: "validateFormField" },
240
+ SUBMIT: { target: "validatingSubmit" }
241
+ } },
242
+ validatingSubmit: {
243
+ entry: "computeValidationResult",
244
+ always: [{
245
+ guard: "isScreenValid",
246
+ target: "#dynamicForms.submitting"
247
+ }, { target: "editing" }]
248
+ }
249
+ }
250
+ },
251
+ submitting: { invoke: {
252
+ id: "submitScreenAnswers",
253
+ src: "submitScreenAnswers",
254
+ input: ({ context }) => ({
255
+ screen: context.screens[context.currentScreenIndex],
256
+ answers: context.answers
257
+ }),
258
+ onDone: [{
259
+ target: "success",
260
+ guard: "isLastScreen"
261
+ }, {
262
+ target: "inputting",
263
+ actions: "advanceScreen"
264
+ }],
265
+ onError: [{
266
+ target: "success",
267
+ guard: "isLastScreen"
268
+ }, {
269
+ target: "inputting",
270
+ actions: "advanceScreen"
271
+ }]
272
+ } },
273
+ success: { after: { 3e3: {
274
+ target: "finished",
275
+ actions: "markCompleted"
276
+ } } },
277
+ finished: { type: "final" },
278
+ misconfigured: { on: { CLOSE: { target: "closed" } } },
279
+ closed: { type: "final" }
280
+ }
281
+ });
282
+
283
+ //#endregion
284
+ export { dynamicFormsMachine as t };
package/dist/ekyb.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { t as Manager } from "./Manager-CHiHBvMT.js";
2
- import "./Actor-CeqUTqL9.js";
3
- import "./camera-D0c7ez3w.js";
4
- import "./types-DR2YKE_o.js";
5
- import { c as AddressSuggestion, l as FieldDef } from "./types-C1ixFPzO.js";
6
- import { i as FlowModuleConfig } from "./types-D8y52YD5.js";
1
+ import { t as Manager } from "./Manager-Dsj-sPxS.js";
2
+ import "./Actor-fIPLXfoi.js";
3
+ import "./camera-biGPWlmx.js";
4
+ import "./types-Z9wv19v2.js";
5
+ import { c as AddressSuggestion, l as FieldDef } from "./types-DYZja-k9.js";
6
+ import { i as FlowModuleConfig } from "./types-Dv-9WPJX.js";
7
7
 
8
8
  //#region src/modules/ekyb/types.d.ts
9
9
  type UboEntry = {
package/dist/ekyb.esm.js CHANGED
@@ -5,15 +5,15 @@ import "./endpoints-B2t80MAM.esm.js";
5
5
  import "./stats-32mOt6D8.esm.js";
6
6
  import "./IpifyProvider-oZf7Ke1O.esm.js";
7
7
  import "./browserSimulation-CGjpdNA1.esm.js";
8
- import "./sessionInitializer-CMFY9E5w.esm.js";
8
+ import "./sessionInitializer-zHt8j5xW.esm.js";
9
9
  import "./platform-BfoqeM61.esm.js";
10
10
  import "./getBrowser-Dv8LZyHE.esm.js";
11
11
  import { c as createManager, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
12
12
  import "./apiError-D-GTvFrH.esm.js";
13
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-LYbmoerq.esm.js";
14
- import "./addressSearch-4xxBiFtH.esm.js";
15
- import "./session-C_G3d7av.esm.js";
16
- import "./flowServices-D_FMT6Fi.esm.js";
13
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-CRSuNnsu.esm.js";
14
+ import "./addressSearch-Byq4gwCN.esm.js";
15
+ import "./session-Da435G0o.esm.js";
16
+ import "./flowServices-BLUYSdW9.esm.js";
17
17
 
18
18
  //#region src/modules/ekyb/ekybActor.ts
19
19
  /**
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-DUZwyz0o.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
3
3
  import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CbU9dpcC.esm.js";
4
- 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-4xxBiFtH.esm.js";
5
- import { t as getFlow } from "./flowServices-D_FMT6Fi.esm.js";
4
+ 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-Byq4gwCN.esm.js";
5
+ import { t as getFlow } from "./flowServices-BLUYSdW9.esm.js";
6
6
 
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  const UBO_INPUT_LIMIT = 8;
package/dist/ekyc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-CHiHBvMT.js";
2
- import "./Actor-CeqUTqL9.js";
3
- import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-C1ixFPzO.js";
1
+ import { t as Manager } from "./Manager-Dsj-sPxS.js";
2
+ import "./Actor-fIPLXfoi.js";
3
+ import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-DYZja-k9.js";
4
4
 
5
5
  //#region src/modules/ekyc/ekycStateMachine.d.ts
6
6
  declare const ekycMachine: any;
package/dist/ekyc.esm.js CHANGED
@@ -4,8 +4,8 @@ import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstru
4
4
  import "./endpoints-B2t80MAM.esm.js";
5
5
  import { c as createManager, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
6
6
  import "./cpf-xBg-DFNn.esm.js";
7
- import "./addressSearch-4xxBiFtH.esm.js";
8
- import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-dXnYshTa.esm.js";
7
+ import "./addressSearch-Byq4gwCN.esm.js";
8
+ import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-BqzVRrZz.esm.js";
9
9
 
10
10
  //#region src/modules/ekyc/ekycActor.ts
11
11
  /**
@@ -2,7 +2,7 @@ import { t as api } from "./api-DUZwyz0o.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
3
3
  import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CbU9dpcC.esm.js";
4
4
  import { t as validateCPF } from "./cpf-xBg-DFNn.esm.js";
5
- 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-4xxBiFtH.esm.js";
5
+ 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-Byq4gwCN.esm.js";
6
6
 
7
7
  //#region src/modules/ekyc/ekycConsts.ts
8
8
  const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
@@ -1,4 +1,4 @@
1
- import "./Manager-CHiHBvMT.js";
2
- import "./Actor-CeqUTqL9.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-Bna2s_tk.js";
1
+ import "./Manager-Dsj-sPxS.js";
2
+ import "./Actor-fIPLXfoi.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-BFqpqVT2.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
package/dist/email.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import "./Manager-CHiHBvMT.js";
2
- import "./Actor-CeqUTqL9.js";
3
- import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-DLFWfHIl.js";
4
- import "./otp-BHJnjEEc.js";
1
+ import "./Manager-Dsj-sPxS.js";
2
+ import "./Actor-fIPLXfoi.js";
3
+ import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-DbZkzbPP.js";
4
+ import "./otp-BwLdGT6f.js";
5
5
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -3,8 +3,8 @@ import "./api-DUZwyz0o.esm.js";
3
3
  import "./events-CmarQoum.esm.js";
4
4
  import "./endpoints-B2t80MAM.esm.js";
5
5
  import "./xstate.esm-CbU9dpcC.esm.js";
6
- import { t as emailMachine } from "./emailStateMachine-C1DabizS.esm.js";
7
- import "./otp-BcSa5nTM.esm.js";
8
- import { t as createEmailManager } from "./emailManager-DQJIAsix.esm.js";
6
+ import { t as emailMachine } from "./emailStateMachine-DWzBDO0i.esm.js";
7
+ import "./otp-D87RTwrx.esm.js";
8
+ import { t as createEmailManager } from "./emailManager-DfgCL3O0.esm.js";
9
9
 
10
10
  export { createEmailManager, emailMachine };
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-CHiHBvMT.js";
2
- import { t as ActorRefFrom } from "./Actor-CeqUTqL9.js";
3
- import { t as OtpValidationErrors } from "./otp-BHJnjEEc.js";
1
+ import { t as Manager } from "./Manager-Dsj-sPxS.js";
2
+ import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
3
+ import { t as OtpValidationErrors } from "./otp-BwLdGT6f.js";
4
4
 
5
5
  //#region src/modules/email/types.d.ts
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-CmarQoum.esm.js";
2
2
  import { c as createManager, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-C1DabizS.esm.js";
4
- import { t as OTP_CODE_LENGTH } from "./otp-BcSa5nTM.esm.js";
3
+ import { t as emailMachine } from "./emailStateMachine-DWzBDO0i.esm.js";
4
+ import { t as OTP_CODE_LENGTH } from "./otp-D87RTwrx.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailActor.ts
7
7
  function createEmailActor(options) {
@@ -2,7 +2,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BVgutW_b.esm.j
2
2
  import { t as api } from "./api-DUZwyz0o.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
4
4
  import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CbU9dpcC.esm.js";
5
- import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-BcSa5nTM.esm.js";
5
+ import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-D87RTwrx.esm.js";
6
6
 
7
7
  //#region src/modules/email/emailServices.ts
8
8
  function getEmailServerFailureReason(error, invalidStatus) {
@@ -1,29 +1,29 @@
1
- import "./warmup-CdT_pVcp.js";
2
- import "./Manager-CHiHBvMT.js";
3
- import { n as createActor } from "./Actor-CeqUTqL9.js";
4
- import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-vkuogwAe.js";
5
- import { i as fromPromise, r as fromCallback } from "./StateMachine-HpHVxl3G.js";
6
- import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-BQg4HVQ0.js";
7
- import "./camera-D0c7ez3w.js";
8
- import "./types-DR2YKE_o.js";
9
- import "./types-C1ixFPzO.js";
10
- import "./types-D8y52YD5.js";
11
- import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, s as IStorageCapability } from "./deepsightService-BpVpDm2O.js";
12
- import "./types-F0IXbaCB.js";
13
- import "./StreamCanvasCapture-uQFmjDCE.js";
14
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CxktnRiy.js";
15
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CDxVMHF1.js";
16
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-WjRO-QwM.js";
17
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-DV-v9XjQ.js";
18
- import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-CeXO_2dN.js";
19
- import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DLFWfHIl.js";
20
- import "./otp-BHJnjEEc.js";
21
- import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-Wn84cPTa.js";
22
- import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CkEiuAuM.js";
23
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ByGgS8ML.js";
24
- import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CgJctoEw.js";
25
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DDs8TlGY.js";
26
- import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-DYQsXMqo.js";
1
+ import "./warmup--6HA3yUR.js";
2
+ import "./Manager-Dsj-sPxS.js";
3
+ import { n as createActor } from "./Actor-fIPLXfoi.js";
4
+ import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DbrsuESv.js";
5
+ import { i as fromPromise, r as fromCallback } from "./StateMachine-BIfEYukU.js";
6
+ import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-B2Vhybvk.js";
7
+ import "./camera-biGPWlmx.js";
8
+ import "./types-Z9wv19v2.js";
9
+ import "./types-DYZja-k9.js";
10
+ import "./types-Dv-9WPJX.js";
11
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, s as IStorageCapability } from "./deepsightService-DpHuyW3G.js";
12
+ import "./types-D3dxOdyZ.js";
13
+ import "./StreamCanvasCapture-CDN2Apbm.js";
14
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BjwgTTSs.js";
15
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DnOZ0hIZ.js";
16
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-CDgMJdcr.js";
17
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-D3lUVFbI.js";
18
+ import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Cmv2orSI.js";
19
+ import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DbZkzbPP.js";
20
+ import "./otp-BwLdGT6f.js";
21
+ import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CV3Tioi4.js";
22
+ import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-h6NgdQCA.js";
23
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-Dei197Hq.js";
24
+ import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-6YiDreZW.js";
25
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BJRO5-0a.js";
26
+ import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-DYv4-nNn.js";
27
27
 
28
28
  //#region src/modules/authentication/authenticationUploadService.d.ts
29
29
  type AuthenticationUploadResponse = {
@@ -6,7 +6,7 @@ import "./endpoints-B2t80MAM.esm.js";
6
6
  import "./stats-32mOt6D8.esm.js";
7
7
  import { t as IpifyProvider } from "./IpifyProvider-oZf7Ke1O.esm.js";
8
8
  import "./browserSimulation-CGjpdNA1.esm.js";
9
- import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-CMFY9E5w.esm.js";
9
+ import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-zHt8j5xW.esm.js";
10
10
  import "./platform-BfoqeM61.esm.js";
11
11
  import "./getBrowser-Dv8LZyHE.esm.js";
12
12
  import { a as fromPromise, i as fromCallback, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
@@ -19,42 +19,42 @@ import "./MotionSensorProvider-C9fPAJdS.esm.js";
19
19
  import "./permissionServices-BApXq7a0.esm.js";
20
20
  import "./camera-x4LjGTjZ.esm.js";
21
21
  import "./faceCaptureManagerFactory-ByC4Qa8y.esm.js";
22
- import "./recordingService-Cw3hJgT2.esm.js";
22
+ import "./recordingService-D6wX1gjP.esm.js";
23
23
  import "./ITimerCapability-BvH0pDwp.esm.js";
24
24
  import "./canvas-7uX2izHb.esm.js";
25
25
  import "./backCameraStream-iftkf3rd.esm.js";
26
26
  import "./deepsightService-40p8oygL.esm.js";
27
27
  import "./getDeviceClass-C0zrM97a.esm.js";
28
28
  import "./getDeviceClass-rXKlXywy.esm.js";
29
- import "./types-C3Yf5jrM.esm.js";
29
+ import "./types-BdVOWGGW.esm.js";
30
30
  import "./StreamCanvasCapture-Dr5n_iK1.esm.js";
31
31
  import "./permissionGuards-MDEdZAXO.esm.js";
32
- import { t as faceCaptureMachine } from "./faceCaptureSetup-B2H2mNGa.esm.js";
33
- import "./authenticationStateMachine-ZqIWl4M4.esm.js";
34
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Dz4IJIrK.esm.js";
32
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D3yv2HY3.esm.js";
33
+ import "./authenticationStateMachine-PtGChFaq.esm.js";
34
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DVgli_vD.esm.js";
35
35
  import "./consentStateMachine-CWypW8J8.esm.js";
36
36
  import { n as createConsentManagerFromActor } from "./consentManager-ChvHt6T_.esm.js";
37
37
  import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-B52QLxQV.esm.js";
38
38
  import "./cpf-xBg-DFNn.esm.js";
39
39
  import "./curpValidationStateMachine-Cx2u6xYU.esm.js";
40
40
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-De6xoNE4.esm.js";
41
- import "./session-C_G3d7av.esm.js";
42
- import "./emailStateMachine-C1DabizS.esm.js";
43
- import "./otp-BcSa5nTM.esm.js";
44
- import { n as createEmailManagerFromActor } from "./emailManager-DQJIAsix.esm.js";
45
- import "./selfieStateMachine-DIep8sRA.esm.js";
46
- import { n as createSelfieManagerFromActor } from "./selfieManager-MGv9xxlB.esm.js";
47
- import "./idCaptureStateMachine-BY5csicv.esm.js";
48
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-k5tfqV1x.esm.js";
49
- import "./phoneStateMachine-BQNuJGjq.esm.js";
50
- import { n as createPhoneManagerFromActor } from "./phoneManager-CZA4CST1.esm.js";
51
- import "./identityReuseStateMachine-CbR5itoo.esm.js";
52
- import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-Bew667Pj.esm.js";
53
- import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-IaJfvmEt.esm.js";
54
- import "./mandatoryConsentStateMachine-DtjGqH2e.esm.js";
55
- import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-kbO0Dr65.esm.js";
56
- import "./redirectToMobileStateMachine-BWrpS_sN.esm.js";
57
- import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B4PTmB3H.esm.js";
41
+ import "./session-Da435G0o.esm.js";
42
+ import "./emailStateMachine-DWzBDO0i.esm.js";
43
+ import "./otp-D87RTwrx.esm.js";
44
+ import { n as createEmailManagerFromActor } from "./emailManager-DfgCL3O0.esm.js";
45
+ import "./selfieStateMachine-YDCX3Ew4.esm.js";
46
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DgUgks9i.esm.js";
47
+ import "./idCaptureStateMachine-DQkygy-A.esm.js";
48
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BsyVVBx7.esm.js";
49
+ import "./phoneStateMachine-Nn0ifgsM.esm.js";
50
+ import { n as createPhoneManagerFromActor } from "./phoneManager-ApM3CWwR.esm.js";
51
+ import "./identityReuseStateMachine-Mhf3pwuo.esm.js";
52
+ import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CqBkUE4l.esm.js";
53
+ import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-m1j9K66T.esm.js";
54
+ import "./mandatoryConsentStateMachine-OCd0A55c.esm.js";
55
+ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-Qub7zBH8.esm.js";
56
+ import "./redirectToMobileStateMachine-60oeuo-V.esm.js";
57
+ import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-Bw0Dew2v.esm.js";
58
58
 
59
59
  //#region src/internal/fingerprint/fingerprintApi.ts
60
60
  async function getFingerprint(disableIpify) {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CHiHBvMT.js";
1
+ import { t as Manager } from "./Manager-Dsj-sPxS.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -2,7 +2,7 @@ import "./api-DUZwyz0o.esm.js";
2
2
  import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-CmarQoum.esm.js";
3
3
  import "./endpoints-B2t80MAM.esm.js";
4
4
  import { c as createManager, s as createActor } from "./xstate.esm-CbU9dpcC.esm.js";
5
- import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-eQOGyK1R.esm.js";
5
+ import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-BzP_cdwX.esm.js";
6
6
 
7
7
  //#region src/modules/face-match/faceMatchActor.ts
8
8
  function createFaceMatchActor(options) {
@@ -1,12 +1,12 @@
1
- import { n as WasmPipeline } from "./warmup-CdT_pVcp.js";
2
- import { t as Manager } from "./Manager-CHiHBvMT.js";
3
- import { t as ActorRefFrom } from "./Actor-CeqUTqL9.js";
4
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-HpHVxl3G.js";
5
- import { t as CameraStream } from "./camera-D0c7ez3w.js";
6
- import { i as FlowModuleConfig, n as Flow } from "./types-D8y52YD5.js";
7
- import { a as IMLProviderCapability, c as IRecordingCapability, n as IWasmUtilCapability, o as MLProviderConfig, s as IStorageCapability, t as DeepsightService } from "./deepsightService-BpVpDm2O.js";
8
- import { n as PermissionStatus, t as PermissionResult } from "./types-F0IXbaCB.js";
9
- import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-uQFmjDCE.js";
1
+ import { n as WasmPipeline } from "./warmup--6HA3yUR.js";
2
+ import { t as Manager } from "./Manager-Dsj-sPxS.js";
3
+ import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
4
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BIfEYukU.js";
5
+ import { t as CameraStream } from "./camera-biGPWlmx.js";
6
+ import { i as FlowModuleConfig, n as Flow } from "./types-Dv-9WPJX.js";
7
+ import { a as IMLProviderCapability, c as IRecordingCapability, n as IWasmUtilCapability, o as MLProviderConfig, s as IStorageCapability, t as DeepsightService } from "./deepsightService-DpHuyW3G.js";
8
+ import { n as PermissionStatus, t as PermissionResult } from "./types-D3dxOdyZ.js";
9
+ import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-CDN2Apbm.js";
10
10
 
11
11
  //#region src/modules/authentication/authenticationStateMachine.d.ts
12
12
  declare const _authenticationMachine: AnyStateMachine;
@@ -115,6 +115,7 @@ declare const FACE_ERROR_CODES: {
115
115
  readonly NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER";
116
116
  readonly HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED";
117
117
  readonly SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY";
118
+ readonly NO_MORE_ATTEMPTS: "NO_MORE_ATTEMPTS";
118
119
  };
119
120
  type FaceErrorCode = (typeof FACE_ERROR_CODES)[keyof typeof FACE_ERROR_CODES];
120
121
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { r as getToken } from "./api-DUZwyz0o.esm.js";
2
2
  import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CbU9dpcC.esm.js";
3
3
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BApXq7a0.esm.js";
4
- import { d as sendLabelInspectionEvent, f as startDetection, l as initializeCamera, n as preloadOpenViduProvider, p as stopStream, r as flagFaceManualReview, t as createRecordingService, u as initializeDeepsightSession } from "./recordingService-Cw3hJgT2.esm.js";
5
- import { t as FACE_ERROR_CODES } from "./types-C3Yf5jrM.esm.js";
4
+ import { d as sendLabelInspectionEvent, f as startDetection, l as initializeCamera, n as preloadOpenViduProvider, p as stopStream, r as flagFaceManualReview, t as createRecordingService, u as initializeDeepsightSession } from "./recordingService-D6wX1gjP.esm.js";
5
+ import { t as FACE_ERROR_CODES } from "./types-BdVOWGGW.esm.js";
6
6
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-Dr5n_iK1.esm.js";
7
7
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-MDEdZAXO.esm.js";
8
8