@incodetech/core 0.0.0-dev-20260507-df83b23 → 0.0.0-dev-20260507-78f2d13

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 (168) hide show
  1. package/dist/{OpenViduRecordingProvider-VSC4Wgmh.esm.js → OpenViduRecordingProvider-DnYd4TKr.esm.js} +1 -1
  2. package/dist/{WasmUtilProvider-DsAa3yqJ.esm.js → WasmUtilProvider-Cj17GAox.esm.js} +1 -1
  3. package/dist/{addressSearch-1EhIahE5.esm.js → addressSearch-DGVL5bWp.esm.js} +4 -4
  4. package/dist/{ae-signature-BPAhuail.esm.js → ae-signature-CW0Y3VGK.esm.js} +1 -1
  5. package/dist/ae-signature.d.ts +3 -3
  6. package/dist/ae-signature.esm.js +6 -6
  7. package/dist/antifraud.d.ts +1 -1
  8. package/dist/antifraud.esm.js +5 -5
  9. package/dist/{antifraudStateMachine-CaTkXzvS.esm.js → antifraudStateMachine-D4G28SI4.esm.js} +3 -3
  10. package/dist/authentication.d.ts +11 -11
  11. package/dist/authentication.esm.js +23 -23
  12. package/dist/{authenticationManager-BmRvJPaH.esm.js → authenticationManager-BMGIFm3Y.esm.js} +6 -6
  13. package/dist/{authenticationManager-ii8ZNmw2.d.ts → authenticationManager-BuChl5GH.d.ts} +2 -2
  14. package/dist/{authenticationStateMachine-wCMzEk11.esm.js → authenticationStateMachine-Dd9HMJiq.esm.js} +6 -6
  15. package/dist/{backCameraStream-5ADnns4R.esm.js → backCameraStream-bztcEWzY.esm.js} +3 -3
  16. package/dist/camera.d.ts +1 -1
  17. package/dist/camera.esm.js +3 -3
  18. package/dist/consent.d.ts +55 -55
  19. package/dist/consent.esm.js +5 -5
  20. package/dist/{consentStateMachine-KnKYoONj.esm.js → consentStateMachine-Bda2QqSh.esm.js} +3 -3
  21. package/dist/cpf-ocr.d.ts +21 -21
  22. package/dist/cpf-ocr.esm.js +5 -5
  23. package/dist/cross-document-data-match.d.ts +1 -1
  24. package/dist/cross-document-data-match.esm.js +5 -5
  25. package/dist/curp-validation.d.ts +5 -5
  26. package/dist/curp-validation.esm.js +5 -5
  27. package/dist/{curpValidationStateMachine-C5h4uWTM.esm.js → curpValidationStateMachine-CYXt-Why.esm.js} +3 -3
  28. package/dist/custom-fields.d.ts +2 -2
  29. package/dist/custom-fields.esm.js +5 -26
  30. package/dist/custom-watchlist.d.ts +1 -1
  31. package/dist/custom-watchlist.esm.js +5 -5
  32. package/dist/dateUtils-DuJi5-S5.esm.js +23 -0
  33. package/dist/{deepsightLoader-Czuy5gmc.esm.js → deepsightLoader-C1UShQg2.esm.js} +10 -10
  34. package/dist/{deepsightService-DljAhyUS.d.ts → deepsightService-CGSDjjBz.d.ts} +2 -2
  35. package/dist/{deepsightService-Bcszplg_.esm.js → deepsightService-gNTXZu7Y.esm.js} +5 -5
  36. package/dist/device.esm.js +3 -3
  37. package/dist/document-capture.d.ts +80 -80
  38. package/dist/document-capture.esm.js +9 -9
  39. package/dist/document-upload.d.ts +53 -53
  40. package/dist/document-upload.esm.js +8 -8
  41. package/dist/{documentCaptureStateMachine-CCXTJumz.esm.js → documentCaptureStateMachine-SQ3AsME6.esm.js} +5 -5
  42. package/dist/dynamic-forms.d.ts +178 -0
  43. package/dist/dynamic-forms.esm.js +323 -0
  44. package/dist/ekyb.d.ts +3 -3
  45. package/dist/ekyb.esm.js +11 -11
  46. package/dist/{ekybStateMachine-B5BNo1Mw.esm.js → ekybStateMachine-of_oFZ3p.esm.js} +5 -5
  47. package/dist/ekyc.d.ts +3 -3
  48. package/dist/ekyc.esm.js +8 -8
  49. package/dist/{ekycStateMachine-DBW6AZE4.esm.js → ekycStateMachine-B-R_nMk9.esm.js} +5 -5
  50. package/dist/electronic-signature.d.ts +3 -3
  51. package/dist/electronic-signature.esm.js +5 -5
  52. package/dist/{electronicSignatureManager-CO2GTZLe.esm.js → electronicSignatureManager-W3dYg32m.esm.js} +4 -4
  53. package/dist/email.d.ts +3 -3
  54. package/dist/email.esm.js +7 -7
  55. package/dist/{emailManager-4RL2kin0.esm.js → emailManager-Dcdv3r8N.esm.js} +3 -3
  56. package/dist/{emailManager-CveAxTDP.d.ts → emailManager-DsYl45qf.d.ts} +2 -2
  57. package/dist/{emailStateMachine-D2rWFesQ.esm.js → emailStateMachine-CfL8um8y.esm.js} +4 -4
  58. package/dist/{endpoints-DNtRS0G7.esm.js → endpoints-B3V1U9Dg.esm.js} +2 -1
  59. package/dist/{events-uIxiN9N7.esm.js → events-Bt1azl2B.esm.js} +1 -1
  60. package/dist/events.esm.js +2 -2
  61. package/dist/extensibility.d.ts +15 -15
  62. package/dist/extensibility.esm.js +34 -34
  63. package/dist/face-match.d.ts +1 -1
  64. package/dist/face-match.esm.js +5 -5
  65. package/dist/{faceCaptureManagerFactory-trA9Rn6f.d.ts → faceCaptureManagerFactory-FX5Lw2Q5.d.ts} +8 -8
  66. package/dist/{faceCaptureManagerFactory-BmFLgwZH.esm.js → faceCaptureManagerFactory-bM8uVQhs.esm.js} +2 -2
  67. package/dist/{faceCaptureSetup-9eFWtwWI.esm.js → faceCaptureSetup-n0z3bm3G.esm.js} +4 -4
  68. package/dist/{faceMatchStateMachine-hMwJymwg.esm.js → faceMatchStateMachine-o_4FAl-g.esm.js} +3 -3
  69. package/dist/flow-events.d.ts +5 -5
  70. package/dist/flow.d.ts +9 -9
  71. package/dist/flow.esm.js +10 -10
  72. package/dist/{flowCompletionService-BWnQnePV.esm.js → flowCompletionService-BuVIVPT_.esm.js} +2 -2
  73. package/dist/{flowServices-CVA1Qt0E.esm.js → flowServices-BNMNk6sc.esm.js} +3 -3
  74. package/dist/geolocation.d.ts +2 -2
  75. package/dist/geolocation.esm.js +6 -6
  76. package/dist/{geolocationStateMachine-Do1_kljB.esm.js → geolocationStateMachine-Oj4giZl6.esm.js} +4 -4
  77. package/dist/{getDeviceClass-DheTn1ak.esm.js → getDeviceClass-BTVS59zg.esm.js} +1 -1
  78. package/dist/government-validation.d.ts +2 -2
  79. package/dist/government-validation.esm.js +6 -6
  80. package/dist/{governmentValidationStateMachine-BssAqWED.esm.js → governmentValidationStateMachine-DwZUuGG9.esm.js} +4 -4
  81. package/dist/home.d.ts +14 -14
  82. package/dist/home.esm.js +3 -3
  83. package/dist/http.esm.js +1 -1
  84. package/dist/id-ocr.d.ts +54 -54
  85. package/dist/id-ocr.esm.js +6 -6
  86. package/dist/id.d.ts +10 -10
  87. package/dist/id.esm.js +23 -23
  88. package/dist/{idCaptureManager-C4r9_xsU.esm.js → idCaptureManager-C3qcCILu.esm.js} +4 -4
  89. package/dist/{idCaptureManager-DcGzjbMw.d.ts → idCaptureManager-xbLvlmaw.d.ts} +7 -7
  90. package/dist/{idCaptureStateMachine-CoaY0n7f.esm.js → idCaptureStateMachine-CgZiukTi.esm.js} +17 -17
  91. package/dist/{idOcrStateMachine-BpMmG450.esm.js → idOcrStateMachine-Bh_LFdKk.esm.js} +5 -5
  92. package/dist/identity-reuse.d.ts +46 -46
  93. package/dist/identity-reuse.esm.js +4 -4
  94. package/dist/{index-BpTtY0jy.d.ts → index-CmFkidgy.d.ts} +2 -2
  95. package/dist/{index-CciEmEkD.d.ts → index-P6znUbAD.d.ts} +120 -120
  96. package/dist/index.d.ts +2 -2
  97. package/dist/index.esm.js +10 -10
  98. package/dist/{lib-e9A3TaUp.esm.js → lib-KUTgonKm.esm.js} +1 -1
  99. package/dist/mandatory-consent.d.ts +57 -57
  100. package/dist/mandatory-consent.esm.js +5 -5
  101. package/dist/{mandatoryConsentStateMachine-u2Dejbsq.esm.js → mandatoryConsentStateMachine-b5d37Xvb.esm.js} +3 -3
  102. package/dist/openviduLazy-DYsQwkcJ.esm.js +3 -0
  103. package/dist/{openviduLazy-CH1qVdk4.esm.js → openviduLazy-yJ7zb0TW.esm.js} +2 -2
  104. package/dist/{permissionServices-eL_s8LM6.esm.js → permissionServices-DIxFacTA.esm.js} +2 -2
  105. package/dist/phone.d.ts +3 -3
  106. package/dist/phone.esm.js +7 -7
  107. package/dist/{phoneManager-DTsFubQ_.esm.js → phoneManager-CBupL3Zp.esm.js} +3 -3
  108. package/dist/{phoneManager-CXU5qAEp.d.ts → phoneManager-CeAs-QB1.d.ts} +2 -2
  109. package/dist/{phoneStateMachine-QEx9QC81.esm.js → phoneStateMachine-B0KqPCut.esm.js} +4 -4
  110. package/dist/{qe-signature-C5aBKDWr.esm.js → qe-signature-CLobj5mQ.esm.js} +1 -1
  111. package/dist/qe-signature.d.ts +3 -3
  112. package/dist/qe-signature.esm.js +6 -6
  113. package/dist/{recordingService-DmAnFiD_.esm.js → recordingService-DkKKvn0o.esm.js} +13 -13
  114. package/dist/redirect-to-mobile.d.ts +2 -2
  115. package/dist/redirect-to-mobile.esm.js +6 -6
  116. package/dist/{redirectToMobileStateMachine-CcwBfjQG.esm.js → redirectToMobileStateMachine-Dvias_ax.esm.js} +4 -4
  117. package/dist/{runChildModule-DKpZakUb.esm.js → runChildModule-BpsyjQ6x.esm.js} +2 -2
  118. package/dist/selfie.d.ts +11 -11
  119. package/dist/selfie.esm.js +23 -23
  120. package/dist/{selfieManager-BfsykqaD.esm.js → selfieManager-Bh9G13aS.esm.js} +6 -6
  121. package/dist/{selfieManager-BM3gX8wt.d.ts → selfieManager-DPQzO4ua.d.ts} +2 -2
  122. package/dist/{selfieStateMachine-CzExLyb6.esm.js → selfieStateMachine-DPHgsHPA.esm.js} +3 -3
  123. package/dist/{session-D703R287.esm.js → session-CEQEqTvJ.esm.js} +6 -6
  124. package/dist/session.d.ts +1 -1
  125. package/dist/session.esm.js +7 -7
  126. package/dist/{setup-DmpirIL4.esm.js → setup-BVz1gFkj.esm.js} +7 -7
  127. package/dist/{setup-DR-GXYcF.d.ts → setup-DKabjTK6.d.ts} +1 -1
  128. package/dist/signature.d.ts +2 -2
  129. package/dist/signature.esm.js +5 -5
  130. package/dist/{signatureStateMachine-Bs0_U_Lo.esm.js → signatureStateMachine-PoXfqqBQ.esm.js} +4 -4
  131. package/dist/{stats-B8cIMClD.esm.js → stats-KJxmByg8.esm.js} +1 -1
  132. package/dist/stats.esm.js +2 -2
  133. package/dist/{types-BYfGowzf.d.ts → types-BA181GDD.d.ts} +2 -1
  134. package/dist/{types-CB9HxtLU.d.ts → types-DJSt3Ovt.d.ts} +1 -1
  135. package/dist/{types-BRSrJ9_B.d.ts → types-WKAQ7Ai4.d.ts} +1 -1
  136. package/dist/wasm.d.ts +2 -2
  137. package/dist/wasm.esm.js +10 -10
  138. package/dist/watchlist-for-business.d.ts +1 -1
  139. package/dist/watchlist-for-business.esm.js +4 -4
  140. package/dist/watchlist.d.ts +1 -1
  141. package/dist/watchlist.esm.js +5 -5
  142. package/dist/{watchlistServices-CyOZaglV.esm.js → watchlistServices-DwhjRlRl.esm.js} +2 -2
  143. package/dist/workflow.d.ts +93 -93
  144. package/dist/workflow.esm.js +47 -47
  145. package/package.json +6 -1
  146. package/dist/openviduLazy-C35XN0G5.esm.js +0 -3
  147. /package/dist/{Actor-DPJ2L-q1.d.ts → Actor-YjWTo26u.d.ts} +0 -0
  148. /package/dist/{BaseWasmProvider-CkIHbYdx.esm.js → BaseWasmProvider-QTXpU_qs.esm.js} +0 -0
  149. /package/dist/{BrowserStorageProvider-DVqF8tnD.esm.js → BrowserStorageProvider-CoUfuy0u.esm.js} +0 -0
  150. /package/dist/{BrowserTimerProvider-OUipjf3B.esm.js → BrowserTimerProvider-BZGH3sYJ.esm.js} +0 -0
  151. /package/dist/{ITimerCapability-CSQe9nqt.esm.js → ITimerCapability-2pw-S97e.esm.js} +0 -0
  152. /package/dist/{IpifyProvider-wp6qqO1v.esm.js → IpifyProvider-ByL6JYxg.esm.js} +0 -0
  153. /package/dist/{Manager-D09zXsjJ.d.ts → Manager-D9pehGyp.d.ts} +0 -0
  154. /package/dist/{MotionSensorProvider-CzLW8Zb8.esm.js → MotionSensorProvider-DuErU0Pn.esm.js} +0 -0
  155. /package/dist/{StateMachine-Dg9ghlLh.d.ts → StateMachine-CJG7thvx.d.ts} +0 -0
  156. /package/dist/{api-DZdHZLhE.esm.js → api-eqRXuVG-.esm.js} +0 -0
  157. /package/dist/{browserSimulation-B5_Amlr4.esm.js → browserSimulation-CAH-V_iE.esm.js} +0 -0
  158. /package/dist/{camera-DV8Ep-_K.d.ts → camera-B6UAKpM1.d.ts} +0 -0
  159. /package/dist/{camera-3XOyIO-y.esm.js → camera-PA2Ljri3.esm.js} +0 -0
  160. /package/dist/{chunk-B0Z3lHdK.esm.js → chunk-DnCz0mJK.esm.js} +0 -0
  161. /package/dist/{cpf-Dalbmi8t.esm.js → cpf-DTvbZfOI.esm.js} +0 -0
  162. /package/dist/{displayErrors-Qx-DuMvI.d.ts → displayErrors-DO0TIjQ-.d.ts} +0 -0
  163. /package/dist/{flowCompletionService-B4VbRg-J.d.ts → flowCompletionService-C376JZwA.d.ts} +0 -0
  164. /package/dist/{getBrowser-FtGDQirD.esm.js → getBrowser-jTObqSyg.esm.js} +0 -0
  165. /package/dist/{platform-C3jlX5mh.esm.js → platform-Dpzd9p3X.esm.js} +0 -0
  166. /package/dist/{types--DdSD2gk.d.ts → types-CarMMtoz.d.ts} +0 -0
  167. /package/dist/{warmup-Br1UnuWP.d.ts → warmup-DHGg8wQZ.d.ts} +0 -0
  168. /package/dist/{xstate.esm-COokXZK9.esm.js → xstate.esm-C19_S3_9.esm.js} +0 -0
@@ -0,0 +1,323 @@
1
+ import { t as api } from "./api-eqRXuVG-.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
3
+ import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
5
+ import { t as validateCPF } from "./cpf-DTvbZfOI.esm.js";
6
+ import { t as isoDateToMs } from "./dateUtils-DuJi5-S5.esm.js";
7
+
8
+ //#region src/modules/dynamic-forms/dynamicFormsServices.ts
9
+ async function fetchForms(flowId, signal) {
10
+ const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=DYNAMIC_FORMS`;
11
+ const res = await api.get(url, { signal });
12
+ if (!res.ok) throw new Error(`GET ${endpoints.moduleConfig} failed: ${res.status} ${res.statusText}`);
13
+ return res.data;
14
+ }
15
+ async function submitFormAnswer(params, signal) {
16
+ const res = await api.post(endpoints.dynamicFormsSubmitAnswer, {
17
+ questionId: params.questionId,
18
+ answerDetails: { singleAnswer: params.singleAnswer }
19
+ }, { signal });
20
+ if (!res.ok) throw new Error(`POST ${endpoints.dynamicFormsSubmitAnswer} failed: ${res.status} ${res.statusText}`);
21
+ return res.data;
22
+ }
23
+
24
+ //#endregion
25
+ //#region src/modules/dynamic-forms/dynamicFormsStateMachine.ts
26
+ /**
27
+ * Returns default answers for a screen, seeding 'NO' for every YESNO question.
28
+ * An untouched checkbox must submit a value — this is a domain rule, not a UI concern.
29
+ */
30
+ function seedDefaultAnswers(formScreen) {
31
+ if (!formScreen) return {};
32
+ const defaults = {};
33
+ for (const q of formScreen.questions) if ((q.inputType ?? q.overrides) === "YESNO") defaults[q.questionId] = "NO";
34
+ return defaults;
35
+ }
36
+ /**
37
+ * Transforms a raw answer value before submission based on question type.
38
+ * - CPF: strips formatting characters (dots and dash)
39
+ * - DATE: converts ISO date string (YYYY-MM-DD) to Unix milliseconds string
40
+ * - All others: pass through as-is
41
+ */
42
+ function transformAnswerValue(inputType, value) {
43
+ switch (inputType) {
44
+ case "CPF": return value.replace(/[-.]/g, "");
45
+ case "DATE": return isoDateToMs(value).toString();
46
+ default: return value;
47
+ }
48
+ }
49
+ const dynamicFormsMachine = setup({
50
+ types: {
51
+ context: {},
52
+ events: {},
53
+ input: {}
54
+ },
55
+ actors: {
56
+ fetchScreens: fromPromise(async ({ input, signal }) => {
57
+ return fetchForms(input.flowId, signal);
58
+ }),
59
+ submitScreenAnswers: fromPromise(async ({ input, signal }) => {
60
+ const { screen: formScreen, answers } = input;
61
+ for (const question of formScreen.questions) {
62
+ const singleAnswer = transformAnswerValue(question.inputType ?? question.overrides ?? "TEXT", answers[question.questionId] ?? "");
63
+ try {
64
+ await submitFormAnswer({
65
+ questionId: question.questionId,
66
+ singleAnswer
67
+ }, signal);
68
+ } catch {}
69
+ }
70
+ return { success: true };
71
+ })
72
+ },
73
+ actions: {
74
+ setScreens: assign(({ event }) => {
75
+ const screens = event.output.screens;
76
+ return {
77
+ screens,
78
+ answers: seedDefaultAnswers(screens[0])
79
+ };
80
+ }),
81
+ setAnswer: assign(({ context, event }) => {
82
+ const e = event;
83
+ const question = context.screens[context.currentScreenIndex]?.questions.find((q) => q.questionId === e.questionId);
84
+ const effectiveType = question?.inputType ?? question?.overrides;
85
+ const newAnswerValidity = { ...context.answerValidity };
86
+ if (effectiveType === "CPF") newAnswerValidity[e.questionId] = validateCPF(e.value);
87
+ return {
88
+ answers: {
89
+ ...context.answers,
90
+ [e.questionId]: e.value
91
+ },
92
+ answerValidity: newAnswerValidity
93
+ };
94
+ }),
95
+ setAnswerValidity: assign(({ context, event }) => {
96
+ const e = event;
97
+ return { answerValidity: {
98
+ ...context.answerValidity,
99
+ [e.questionId]: e.isValid
100
+ } };
101
+ }),
102
+ advanceScreen: assign(({ context }) => {
103
+ const nextIndex = context.currentScreenIndex + 1;
104
+ return {
105
+ currentScreenIndex: nextIndex,
106
+ answers: seedDefaultAnswers(context.screens[nextIndex]),
107
+ answerValidity: {}
108
+ };
109
+ }),
110
+ markCompleted: assign({ result: "completed" }),
111
+ markSkipped: assign({ result: "skipped" })
112
+ },
113
+ guards: {
114
+ hasPreloadedScreens: ({ context }) => (context.config.screens?.length ?? 0) > 0,
115
+ hasFlowId: ({ context }) => !!context.config.flowId,
116
+ isLastScreen: ({ context }) => context.currentScreenIndex >= context.screens.length - 1
117
+ }
118
+ }).createMachine({
119
+ id: "dynamicForms",
120
+ initial: "idle",
121
+ context: ({ input }) => {
122
+ const screens = input.config.screens ?? [];
123
+ return {
124
+ config: input.config,
125
+ screens,
126
+ currentScreenIndex: 0,
127
+ answers: seedDefaultAnswers(screens[0]),
128
+ answerValidity: {},
129
+ result: null
130
+ };
131
+ },
132
+ states: {
133
+ idle: { on: { LOAD: [
134
+ {
135
+ target: "inputting",
136
+ guard: "hasPreloadedScreens"
137
+ },
138
+ {
139
+ target: "loadingScreens",
140
+ guard: "hasFlowId"
141
+ },
142
+ { target: "misconfigured" }
143
+ ] } },
144
+ loadingScreens: { invoke: {
145
+ id: "fetchScreens",
146
+ src: "fetchScreens",
147
+ input: ({ context }) => ({ flowId: context.config.flowId ?? "" }),
148
+ onDone: {
149
+ target: "inputting",
150
+ actions: "setScreens"
151
+ },
152
+ onError: {
153
+ target: "finished",
154
+ actions: "markSkipped"
155
+ }
156
+ } },
157
+ inputting: { on: {
158
+ ANSWER_CHANGED: { actions: "setAnswer" },
159
+ ANSWER_VALIDITY_CHANGED: { actions: "setAnswerValidity" },
160
+ SUBMIT: { target: "submitting" }
161
+ } },
162
+ submitting: { invoke: {
163
+ id: "submitScreenAnswers",
164
+ src: "submitScreenAnswers",
165
+ input: ({ context }) => ({
166
+ screen: context.screens[context.currentScreenIndex],
167
+ answers: context.answers
168
+ }),
169
+ onDone: [{
170
+ target: "success",
171
+ guard: "isLastScreen"
172
+ }, {
173
+ target: "inputting",
174
+ actions: "advanceScreen"
175
+ }],
176
+ onError: [{
177
+ target: "success",
178
+ guard: "isLastScreen"
179
+ }, {
180
+ target: "inputting",
181
+ actions: "advanceScreen"
182
+ }]
183
+ } },
184
+ success: { after: { 3e3: {
185
+ target: "finished",
186
+ actions: "markCompleted"
187
+ } } },
188
+ finished: { type: "final" },
189
+ misconfigured: { on: { CLOSE: { target: "closed" } } },
190
+ closed: { type: "final" }
191
+ }
192
+ });
193
+
194
+ //#endregion
195
+ //#region src/modules/dynamic-forms/dynamicFormsActor.ts
196
+ function createDynamicFormsActor(options) {
197
+ return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
198
+ }
199
+
200
+ //#endregion
201
+ //#region src/modules/dynamic-forms/dynamicFormsManager.ts
202
+ /**
203
+ * @module @incodetech/core/dynamic-forms
204
+ *
205
+ * Dynamic Forms module for the Incode Web SDK.
206
+ * Drives multi-screen forms defined by backend configuration.
207
+ *
208
+ * @example Headless usage
209
+ * ```typescript
210
+ * import { createDynamicFormsManager } from '@incodetech/core/dynamic-forms';
211
+ * import { setup } from '@incodetech/core';
212
+ *
213
+ * setup({ apiURL: 'https://api.example.com', token: 'your-token' });
214
+ *
215
+ * const manager = createDynamicFormsManager({
216
+ * config: { flowId: 'flow-123' },
217
+ * });
218
+ *
219
+ * manager.subscribe((state) => {
220
+ * if (state.status === 'inputting') {
221
+ * console.log('Screen:', state.currentScreen.title);
222
+ * }
223
+ * if (state.status === 'finished') {
224
+ * console.log('Result:', state.result); // 'completed' | 'skipped'
225
+ * }
226
+ * });
227
+ *
228
+ * manager.load();
229
+ * manager.stop();
230
+ * ```
231
+ */
232
+ function isScreenComplete(answers, formScreen) {
233
+ return formScreen.questions.every((q) => {
234
+ if (q.isOptional) return true;
235
+ if ((q.inputType ?? q.overrides) === "YESNO") return true;
236
+ const value = answers[q.questionId];
237
+ return value !== void 0 && value !== "";
238
+ });
239
+ }
240
+ function mapState(snapshot) {
241
+ const typedSnapshot = snapshot;
242
+ const { context } = typedSnapshot;
243
+ if (typedSnapshot.matches("idle")) return { status: "idle" };
244
+ if (typedSnapshot.matches("loadingScreens")) return { status: "loadingScreens" };
245
+ if (typedSnapshot.matches("inputting")) {
246
+ const currentScreen = context.screens[context.currentScreenIndex];
247
+ const allFormatsValid = !Object.values(context.answerValidity).some((v) => v === false);
248
+ return {
249
+ status: "inputting",
250
+ currentScreen,
251
+ screenIndex: context.currentScreenIndex,
252
+ totalScreens: context.screens.length,
253
+ answers: context.answers,
254
+ answerValidity: context.answerValidity,
255
+ canSubmit: currentScreen ? isScreenComplete(context.answers, currentScreen) && allFormatsValid : false
256
+ };
257
+ }
258
+ if (typedSnapshot.matches("submitting")) {
259
+ const currentScreen = context.screens[context.currentScreenIndex];
260
+ return {
261
+ status: "submitting",
262
+ screenIndex: context.currentScreenIndex,
263
+ totalScreens: context.screens.length,
264
+ currentScreen,
265
+ answers: context.answers,
266
+ answerValidity: context.answerValidity
267
+ };
268
+ }
269
+ if (typedSnapshot.matches("success")) return { status: "success" };
270
+ if (typedSnapshot.matches("finished")) return {
271
+ status: "finished",
272
+ result: context.result
273
+ };
274
+ if (typedSnapshot.matches("misconfigured")) return { status: "misconfigured" };
275
+ if (typedSnapshot.matches("closed")) return { status: "closed" };
276
+ return { status: "idle" };
277
+ }
278
+ function createApi({ actor }) {
279
+ return {
280
+ load() {
281
+ actor.send({ type: "LOAD" });
282
+ },
283
+ setAnswer(questionId, value) {
284
+ actor.send({
285
+ type: "ANSWER_CHANGED",
286
+ questionId,
287
+ value
288
+ });
289
+ },
290
+ setAnswerValidity(questionId, isValid) {
291
+ actor.send({
292
+ type: "ANSWER_VALIDITY_CHANGED",
293
+ questionId,
294
+ isValid
295
+ });
296
+ },
297
+ submit() {
298
+ actor.send({ type: "SUBMIT" });
299
+ },
300
+ close() {
301
+ actor.send({ type: "CLOSE" });
302
+ }
303
+ };
304
+ }
305
+ /**
306
+ * Creates a dynamic forms manager for headless or UI-driven usage.
307
+ *
308
+ * @param options - Configuration options
309
+ * @param options.config - Dynamic forms configuration (flowId or pre-loaded screens)
310
+ *
311
+ * @returns Dynamic forms manager with state, API methods, and subscription
312
+ */
313
+ function createDynamicFormsManager(options) {
314
+ return createManager({
315
+ actor: createDynamicFormsActor(options),
316
+ mapState,
317
+ createApi,
318
+ instrumentation: createManagerInstrumentation(eventModuleNames.forms)
319
+ });
320
+ }
321
+
322
+ //#endregion
323
+ export { createDynamicFormsManager, dynamicFormsMachine };
package/dist/ekyb.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-D09zXsjJ.js";
2
- import "./Actor-DPJ2L-q1.js";
3
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-Qx-DuMvI.js";
1
+ import { t as Manager } from "./Manager-D9pehGyp.js";
2
+ import "./Actor-YjWTo26u.js";
3
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DO0TIjQ-.js";
4
4
 
5
5
  //#region src/modules/ekyb/types.d.ts
6
6
  type UboEntry = {
package/dist/ekyb.esm.js CHANGED
@@ -1,14 +1,14 @@
1
- import "./BrowserTimerProvider-OUipjf3B.esm.js";
2
- import "./api-DZdHZLhE.esm.js";
3
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
4
- import "./endpoints-DNtRS0G7.esm.js";
5
- import "./session-D703R287.esm.js";
6
- import "./IpifyProvider-wp6qqO1v.esm.js";
7
- import "./browserSimulation-B5_Amlr4.esm.js";
8
- import { a as createActor, o as createManager } from "./xstate.esm-COokXZK9.esm.js";
9
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-B5BNo1Mw.esm.js";
10
- import "./addressSearch-1EhIahE5.esm.js";
11
- import "./flowServices-CVA1Qt0E.esm.js";
1
+ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
2
+ import "./api-eqRXuVG-.esm.js";
3
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
4
+ import "./endpoints-B3V1U9Dg.esm.js";
5
+ import "./session-CEQEqTvJ.esm.js";
6
+ import "./IpifyProvider-ByL6JYxg.esm.js";
7
+ import "./browserSimulation-CAH-V_iE.esm.js";
8
+ import { a as createActor, o as createManager } from "./xstate.esm-C19_S3_9.esm.js";
9
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-of_oFZ3p.esm.js";
10
+ import "./addressSearch-DGVL5bWp.esm.js";
11
+ import "./flowServices-BNMNk6sc.esm.js";
12
12
 
13
13
  //#region src/modules/ekyb/ekybActor.ts
14
14
  /**
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-DZdHZLhE.esm.js";
2
- import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-COokXZK9.esm.js";
4
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-1EhIahE5.esm.js";
5
- import { t as getFlow } from "./flowServices-CVA1Qt0E.esm.js";
1
+ import { t as api } from "./api-eqRXuVG-.esm.js";
2
+ import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
4
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DGVL5bWp.esm.js";
5
+ import { t as getFlow } from "./flowServices-BNMNk6sc.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-D09zXsjJ.js";
2
- import "./Actor-DPJ2L-q1.js";
3
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-Qx-DuMvI.js";
1
+ import { t as Manager } from "./Manager-D9pehGyp.js";
2
+ import "./Actor-YjWTo26u.js";
3
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-DO0TIjQ-.js";
4
4
 
5
5
  //#region src/modules/ekyc/types.d.ts
6
6
  type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
package/dist/ekyc.esm.js CHANGED
@@ -1,11 +1,11 @@
1
- import "./BrowserTimerProvider-OUipjf3B.esm.js";
2
- import "./api-DZdHZLhE.esm.js";
3
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
4
- import "./endpoints-DNtRS0G7.esm.js";
5
- import { a as createActor, o as createManager } from "./xstate.esm-COokXZK9.esm.js";
6
- import "./cpf-Dalbmi8t.esm.js";
7
- import "./addressSearch-1EhIahE5.esm.js";
8
- import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-DBW6AZE4.esm.js";
1
+ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
2
+ import "./api-eqRXuVG-.esm.js";
3
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
4
+ import "./endpoints-B3V1U9Dg.esm.js";
5
+ import { a as createActor, o as createManager } from "./xstate.esm-C19_S3_9.esm.js";
6
+ import "./cpf-DTvbZfOI.esm.js";
7
+ import "./addressSearch-DGVL5bWp.esm.js";
8
+ import { n as computeDisplayErrors, t as ekycMachine } from "./ekycStateMachine-B-R_nMk9.esm.js";
9
9
 
10
10
  //#region src/modules/ekyc/ekycActor.ts
11
11
  /**
@@ -1,8 +1,8 @@
1
- import { t as api } from "./api-DZdHZLhE.esm.js";
2
- import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-COokXZK9.esm.js";
4
- import { t as validateCPF } from "./cpf-Dalbmi8t.esm.js";
5
- import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-1EhIahE5.esm.js";
1
+ import { t as api } from "./api-eqRXuVG-.esm.js";
2
+ import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
4
+ import { t as validateCPF } from "./cpf-DTvbZfOI.esm.js";
5
+ import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DGVL5bWp.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-D09zXsjJ.js";
2
- import "./Actor-DPJ2L-q1.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-CciEmEkD.js";
1
+ import "./Manager-D9pehGyp.js";
2
+ import "./Actor-YjWTo26u.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-P6znUbAD.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,7 +1,7 @@
1
- import "./api-DZdHZLhE.esm.js";
2
- import "./events-uIxiN9N7.esm.js";
3
- import "./endpoints-DNtRS0G7.esm.js";
4
- import "./xstate.esm-COokXZK9.esm.js";
5
- 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-CO2GTZLe.esm.js";
1
+ import "./api-eqRXuVG-.esm.js";
2
+ import "./events-Bt1azl2B.esm.js";
3
+ import "./endpoints-B3V1U9Dg.esm.js";
4
+ import "./xstate.esm-C19_S3_9.esm.js";
5
+ 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-W3dYg32m.esm.js";
6
6
 
7
7
  export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-DZdHZLhE.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
3
- import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
4
- import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-COokXZK9.esm.js";
1
+ import { t as api } from "./api-eqRXuVG-.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
3
+ import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
5
5
 
6
6
  //#region ../infra/src/http/externalFetch.ts
7
7
  async function externalFetch(config) {
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "./Manager-D09zXsjJ.js";
2
- import "./Actor-DPJ2L-q1.js";
3
- import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-CveAxTDP.js";
1
+ import "./Manager-D9pehGyp.js";
2
+ import "./Actor-YjWTo26u.js";
3
+ import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-DsYl45qf.js";
4
4
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import "./BrowserTimerProvider-OUipjf3B.esm.js";
2
- import "./api-DZdHZLhE.esm.js";
3
- import "./events-uIxiN9N7.esm.js";
4
- import "./endpoints-DNtRS0G7.esm.js";
5
- import "./xstate.esm-COokXZK9.esm.js";
6
- import { t as emailMachine } from "./emailStateMachine-D2rWFesQ.esm.js";
7
- import { t as createEmailManager } from "./emailManager-4RL2kin0.esm.js";
1
+ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
2
+ import "./api-eqRXuVG-.esm.js";
3
+ import "./events-Bt1azl2B.esm.js";
4
+ import "./endpoints-B3V1U9Dg.esm.js";
5
+ import "./xstate.esm-C19_S3_9.esm.js";
6
+ import { t as emailMachine } from "./emailStateMachine-CfL8um8y.esm.js";
7
+ import { t as createEmailManager } from "./emailManager-Dcdv3r8N.esm.js";
8
8
 
9
9
  export { createEmailManager, emailMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
2
- import { a as createActor, o as createManager } from "./xstate.esm-COokXZK9.esm.js";
3
- import { t as emailMachine } from "./emailStateMachine-D2rWFesQ.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
2
+ import { a as createActor, o as createManager } from "./xstate.esm-C19_S3_9.esm.js";
3
+ import { t as emailMachine } from "./emailStateMachine-CfL8um8y.esm.js";
4
4
 
5
5
  //#region src/modules/email/emailActor.ts
6
6
  function createEmailActor(options) {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-D09zXsjJ.js";
2
- import { t as ActorRefFrom } from "./Actor-DPJ2L-q1.js";
1
+ import { t as Manager } from "./Manager-D9pehGyp.js";
2
+ import { t as ActorRefFrom } from "./Actor-YjWTo26u.js";
3
3
 
4
4
  //#region src/modules/email/types.d.ts
5
5
 
@@ -1,7 +1,7 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-OUipjf3B.esm.js";
2
- import { t as api } from "./api-DZdHZLhE.esm.js";
3
- import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
4
- import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-COokXZK9.esm.js";
1
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BZGH3sYJ.esm.js";
2
+ import { t as api } from "./api-eqRXuVG-.esm.js";
3
+ import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
4
+ import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
5
5
 
6
6
  //#region src/modules/email/emailServices.ts
7
7
  function getEmailServerFailureReason(error, invalidStatus) {
@@ -79,7 +79,8 @@ const endpoints = {
79
79
  workflowProcessNode: "/omni/workflow/process/node",
80
80
  workflowInfo: "/omni/workflow/info",
81
81
  customModuleExecution: "/omni/custom-module/execution",
82
- processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process"
82
+ processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process",
83
+ dynamicFormsSubmitAnswer: "/omni/form-answer/submit"
83
84
  };
84
85
 
85
86
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as api } from "./api-DZdHZLhE.esm.js";
1
+ import { t as api } from "./api-eqRXuVG-.esm.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
4
4
  function getTimestamp() {
@@ -1,4 +1,4 @@
1
- import "./api-DZdHZLhE.esm.js";
2
- import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, h as addEvent, i as tutorialScreenNamesMapper, l as moduleClosed, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened, y as subscribeEvent } from "./events-uIxiN9N7.esm.js";
1
+ import "./api-eqRXuVG-.esm.js";
2
+ import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, h as addEvent, i as tutorialScreenNamesMapper, l as moduleClosed, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened, y as subscribeEvent } from "./events-Bt1azl2B.esm.js";
3
3
 
4
4
  export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -1,18 +1,18 @@
1
- import "./warmup-Br1UnuWP.js";
2
- import "./Manager-D09zXsjJ.js";
3
- import { n as createActor } from "./Actor-DPJ2L-q1.js";
4
- import { r as fromPromise } from "./StateMachine-Dg9ghlLh.js";
5
- import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-trA9Rn6f.js";
6
- import "./camera-DV8Ep-_K.js";
7
- import "./types-CB9HxtLU.js";
8
- import "./types-BYfGowzf.js";
9
- import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-DljAhyUS.js";
10
- import "./types--DdSD2gk.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BM3gX8wt.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-ii8ZNmw2.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CveAxTDP.js";
14
- import { T as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-DcGzjbMw.js";
15
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CXU5qAEp.js";
1
+ import "./warmup-DHGg8wQZ.js";
2
+ import "./Manager-D9pehGyp.js";
3
+ import { n as createActor } from "./Actor-YjWTo26u.js";
4
+ import { r as fromPromise } from "./StateMachine-CJG7thvx.js";
5
+ import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-FX5Lw2Q5.js";
6
+ import "./camera-B6UAKpM1.js";
7
+ import "./types-DJSt3Ovt.js";
8
+ import "./types-BA181GDD.js";
9
+ import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-CGSDjjBz.js";
10
+ import "./types-CarMMtoz.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DPQzO4ua.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BuChl5GH.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DsYl45qf.js";
14
+ import { T as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-xbLvlmaw.js";
15
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CeAs-QB1.js";
16
16
 
17
17
  //#region src/modules/authentication/authenticationUploadService.d.ts
18
18
  type AuthenticationUploadResponse = {