@incodetech/core 0.0.0-dev-20260414-db434be → 0.0.0-dev-20260415-a311a6e

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.
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BzPNdMJn.js";
2
2
  import "./Actor-iMyH_hBY.js";
3
- import * as xstate96 from "xstate";
3
+ import * as xstate689 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -36,7 +36,7 @@ type ConsentContext = {
36
36
  type ConsentInput = {
37
37
  config: ConsentConfig;
38
38
  };
39
- declare const consentMachine: xstate96.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate689.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate689.ActorRefFromLogic<xstate689.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate96.EventObject>> | xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<void, {
53
+ }, xstate689.EventObject>> | xstate689.ActorRefFromLogic<xstate689.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate96.EventObject>> | undefined;
57
- }, xstate96.Values<{
56
+ }, xstate689.EventObject>> | undefined;
57
+ }, xstate689.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate689.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate96.EventObject>;
62
+ }, xstate689.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate96.PromiseActorLogic<void, {
67
+ logic: xstate689.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate96.EventObject>;
70
+ }, xstate689.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate96.Values<{
73
+ }>, xstate689.Values<{
74
+ setError: {
75
+ type: "setError";
76
+ params: xstate689.NonReducibleUnknown;
77
+ };
74
78
  clearError: {
75
79
  type: "clearError";
76
- params: xstate96.NonReducibleUnknown;
80
+ params: xstate689.NonReducibleUnknown;
81
+ };
82
+ resetContext: {
83
+ type: "resetContext";
84
+ params: xstate689.NonReducibleUnknown;
77
85
  };
78
86
  setConsentData: {
79
87
  type: "setConsentData";
80
- params: xstate96.NonReducibleUnknown;
88
+ params: xstate689.NonReducibleUnknown;
81
89
  };
82
90
  toggleCheckbox: {
83
91
  type: "toggleCheckbox";
84
- params: xstate96.NonReducibleUnknown;
85
- };
86
- setError: {
87
- type: "setError";
88
- params: xstate96.NonReducibleUnknown;
89
- };
90
- resetContext: {
91
- type: "resetContext";
92
- params: xstate96.NonReducibleUnknown;
92
+ params: xstate689.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate96.NonReducibleUnknown, xstate96.EventObject, xstate96.MetaObject, {
97
+ }, never, "error" | "idle" | "loading" | "finished" | "display" | "submitting", string, ConsentInput, xstate689.NonReducibleUnknown, xstate689.EventObject, xstate689.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate689.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate96.EventObject>;
108
+ }, xstate689.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate689.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate96.EventObject>;
114
+ }, xstate689.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate96.ConditionalRequired<[options?: ({
118
+ } ? xstate689.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate96.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate689.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate96.RequiredActorOptions<T>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate689.RequiredActorOptions<T>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate96.PromiseActorLogic<void, {
125
+ logic: xstate689.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate96.EventObject>;
128
+ }, xstate689.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate96.PromiseActorLogic<void, {
132
+ logic: xstate689.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate96.EventObject>;
135
+ }, xstate689.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate96.ConditionalRequired<[options?: ({
139
+ } ? xstate689.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate96.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate689.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate96.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T_1>>> : never : never : never)): xstate96.ActorRefFromLogic<xstate96.GetConcreteByKey<xstate96.Values<{
144
+ } & { [K_1 in xstate689.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredActorOptions<T_1>>> : never : never : never)): xstate689.ActorRefFromLogic<xstate689.GetConcreteByKey<xstate689.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate689.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate96.EventObject>;
149
+ }, xstate689.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate96.PromiseActorLogic<void, {
154
+ logic: xstate689.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate96.EventObject>;
157
+ }, xstate689.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate96.AnyActorLogic>(src: TLogic, ...[options]: xstate96.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate689.AnyActorLogic>(src: TLogic, ...[options]: xstate689.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate96.InputFrom<TLogic> | undefined;
164
+ input?: xstate689.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate96.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredLogicInput<TLogic>>>): xstate96.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate689.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate689.IsNotNever<xstate689.RequiredLogicInput<TLogic>>>): xstate689.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
169
+ self: xstate689.ActorRef<xstate689.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate96.AnyActorRef | undefined>, xstate96.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate689.AnyActorRef | undefined>, xstate689.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate96.AnyEventObject>;
191
+ }, xstate689.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
229
+ self: xstate689.ActorRef<xstate689.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate689.AnyActorRef>, xstate689.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate96.AnyEventObject>;
251
+ }, xstate689.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
300
+ self: xstate689.ActorRef<xstate689.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate689.AnyActorRef>, xstate689.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate96.AnyEventObject>;
322
+ }, xstate689.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
@@ -1,7 +1,7 @@
1
1
  import { t as Manager } from "./Manager-BzPNdMJn.js";
2
2
  import "./Actor-iMyH_hBY.js";
3
3
  import { t as CameraStream } from "./camera-DdgjYGQh.js";
4
- import * as xstate0 from "xstate";
4
+ import * as xstate592 from "xstate";
5
5
 
6
6
  //#region src/modules/document-capture/types.d.ts
7
7
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -84,7 +84,7 @@ type DocumentCaptureInput = {
84
84
  };
85
85
  //#endregion
86
86
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
87
- declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
87
+ declare const documentCaptureMachine: xstate592.StateMachine<DocumentCaptureContext, {
88
88
  type: "CAPTURE";
89
89
  } | {
90
90
  type: "FILE_SELECTED";
@@ -113,105 +113,105 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
113
113
  } | {
114
114
  type: "CLOSE";
115
115
  }, {
116
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
116
+ [x: string]: xstate592.ActorRefFromLogic<xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>> | xstate592.ActorRefFromLogic<xstate592.PromiseActorLogic<DocumentUploadResponse, {
117
117
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
118
118
  processingType: string;
119
119
  onProgress: (progress: number) => void;
120
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
120
+ }, xstate592.EventObject>> | xstate592.ActorRefFromLogic<xstate592.PromiseActorLogic<FinalizeDocumentResponse, {
121
121
  processingType: string;
122
- }, xstate0.EventObject>> | undefined;
123
- }, xstate0.Values<{
122
+ }, xstate592.EventObject>> | undefined;
123
+ }, xstate592.Values<{
124
124
  initCamera: {
125
125
  src: "initCamera";
126
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
126
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
127
127
  id: string | undefined;
128
128
  };
129
129
  uploadDocument: {
130
130
  src: "uploadDocument";
131
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
131
+ logic: xstate592.PromiseActorLogic<DocumentUploadResponse, {
132
132
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
133
133
  processingType: string;
134
134
  onProgress: (progress: number) => void;
135
- }, xstate0.EventObject>;
135
+ }, xstate592.EventObject>;
136
136
  id: string | undefined;
137
137
  };
138
138
  finalizeDocumentRequest: {
139
139
  src: "finalizeDocumentRequest";
140
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
140
+ logic: xstate592.PromiseActorLogic<FinalizeDocumentResponse, {
141
141
  processingType: string;
142
- }, xstate0.EventObject>;
142
+ }, xstate592.EventObject>;
143
143
  id: string | undefined;
144
144
  };
145
- }>, xstate0.Values<{
145
+ }>, xstate592.Values<{
146
146
  setStream: {
147
147
  type: "setStream";
148
- params: xstate0.NonReducibleUnknown;
148
+ params: xstate592.NonReducibleUnknown;
149
+ };
150
+ setProgress: {
151
+ type: "setProgress";
152
+ params: xstate592.NonReducibleUnknown;
153
+ };
154
+ clearError: {
155
+ type: "clearError";
156
+ params: xstate592.NonReducibleUnknown;
157
+ };
158
+ stopStream: {
159
+ type: "stopStream";
160
+ params: xstate592.NonReducibleUnknown;
149
161
  };
150
162
  setCapturedDocument: {
151
163
  type: "setCapturedDocument";
152
- params: xstate0.NonReducibleUnknown;
164
+ params: xstate592.NonReducibleUnknown;
153
165
  };
154
166
  setFileTooLargeError: {
155
167
  type: "setFileTooLargeError";
156
- params: xstate0.NonReducibleUnknown;
157
- };
158
- setProgress: {
159
- type: "setProgress";
160
- params: xstate0.NonReducibleUnknown;
168
+ params: xstate592.NonReducibleUnknown;
161
169
  };
162
170
  setUploadError: {
163
171
  type: "setUploadError";
164
- params: xstate0.NonReducibleUnknown;
172
+ params: xstate592.NonReducibleUnknown;
165
173
  };
166
174
  setFinalizeError: {
167
175
  type: "setFinalizeError";
168
- params: xstate0.NonReducibleUnknown;
176
+ params: xstate592.NonReducibleUnknown;
169
177
  };
170
178
  decrementAttemptsRemaining: {
171
179
  type: "decrementAttemptsRemaining";
172
- params: xstate0.NonReducibleUnknown;
180
+ params: xstate592.NonReducibleUnknown;
173
181
  };
174
182
  setCaptureMethodFile: {
175
183
  type: "setCaptureMethodFile";
176
- params: xstate0.NonReducibleUnknown;
184
+ params: xstate592.NonReducibleUnknown;
177
185
  };
178
186
  setCaptureMethodCamera: {
179
187
  type: "setCaptureMethodCamera";
180
- params: xstate0.NonReducibleUnknown;
188
+ params: xstate592.NonReducibleUnknown;
181
189
  };
182
190
  setCaptureMethodGallery: {
183
191
  type: "setCaptureMethodGallery";
184
- params: xstate0.NonReducibleUnknown;
192
+ params: xstate592.NonReducibleUnknown;
185
193
  };
186
194
  clearCapturedDocument: {
187
195
  type: "clearCapturedDocument";
188
- params: xstate0.NonReducibleUnknown;
196
+ params: xstate592.NonReducibleUnknown;
189
197
  };
190
198
  clearCapturedDocumentGalleryRetake: {
191
199
  type: "clearCapturedDocumentGalleryRetake";
192
- params: xstate0.NonReducibleUnknown;
200
+ params: xstate592.NonReducibleUnknown;
193
201
  };
194
202
  setNextPageType: {
195
203
  type: "setNextPageType";
196
- params: xstate0.NonReducibleUnknown;
204
+ params: xstate592.NonReducibleUnknown;
197
205
  };
198
206
  clearForNextPage: {
199
207
  type: "clearForNextPage";
200
- params: xstate0.NonReducibleUnknown;
201
- };
202
- clearError: {
203
- type: "clearError";
204
- params: xstate0.NonReducibleUnknown;
208
+ params: xstate592.NonReducibleUnknown;
205
209
  };
206
210
  resetProgress: {
207
211
  type: "resetProgress";
208
- params: xstate0.NonReducibleUnknown;
209
- };
210
- stopStream: {
211
- type: "stopStream";
212
- params: xstate0.NonReducibleUnknown;
212
+ params: xstate592.NonReducibleUnknown;
213
213
  };
214
- }>, xstate0.Values<{
214
+ }>, xstate592.Values<{
215
215
  allowSkip: {
216
216
  type: "allowSkip";
217
217
  params: unknown;
@@ -228,10 +228,6 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
228
228
  type: "canRetryFile";
229
229
  params: unknown;
230
230
  };
231
- canRetryNextDocumentCapture: {
232
- type: "canRetryNextDocumentCapture";
233
- params: unknown;
234
- };
235
231
  attemptsExhausted: {
236
232
  type: "attemptsExhausted";
237
233
  params: unknown;
@@ -272,7 +268,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
272
268
  type: "fileSizeOkForNonGallery";
273
269
  params: unknown;
274
270
  };
275
- }>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
271
+ }>, never, "finished" | "closed" | "initCamera" | "capturing" | "uploading" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate592.NonReducibleUnknown, xstate592.EventObject, xstate592.MetaObject, {
276
272
  readonly id: "documentCapture";
277
273
  readonly initial: "tutorial";
278
274
  readonly context: ({
@@ -281,93 +277,93 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
281
277
  spawn: {
282
278
  <TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
283
279
  src: "initCamera";
284
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
280
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
285
281
  id: string | undefined;
286
282
  } extends infer T ? T extends {
287
283
  src: "initCamera";
288
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
284
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
289
285
  id: string | undefined;
290
286
  } ? T extends {
291
287
  src: TSrc;
292
- } ? xstate0.ConditionalRequired<[options?: ({
288
+ } ? xstate592.ConditionalRequired<[options?: ({
293
289
  id?: T["id"] | undefined;
294
290
  systemId?: string;
295
- input?: xstate0.InputFrom<T["logic"]> | undefined;
291
+ input?: xstate592.InputFrom<T["logic"]> | undefined;
296
292
  syncSnapshot?: boolean;
297
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
293
+ } & { [K in xstate592.RequiredActorOptions<T>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredActorOptions<T>>> : never : never : never) | ({
298
294
  src: "uploadDocument";
299
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
295
+ logic: xstate592.PromiseActorLogic<DocumentUploadResponse, {
300
296
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
301
297
  processingType: string;
302
298
  onProgress: (progress: number) => void;
303
- }, xstate0.EventObject>;
299
+ }, xstate592.EventObject>;
304
300
  id: string | undefined;
305
301
  } extends infer T_1 ? T_1 extends {
306
302
  src: "uploadDocument";
307
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
303
+ logic: xstate592.PromiseActorLogic<DocumentUploadResponse, {
308
304
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
309
305
  processingType: string;
310
306
  onProgress: (progress: number) => void;
311
- }, xstate0.EventObject>;
307
+ }, xstate592.EventObject>;
312
308
  id: string | undefined;
313
309
  } ? T_1 extends {
314
310
  src: TSrc;
315
- } ? xstate0.ConditionalRequired<[options?: ({
311
+ } ? xstate592.ConditionalRequired<[options?: ({
316
312
  id?: T_1["id"] | undefined;
317
313
  systemId?: string;
318
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
314
+ input?: xstate592.InputFrom<T_1["logic"]> | undefined;
319
315
  syncSnapshot?: boolean;
320
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
316
+ } & { [K_1 in xstate592.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredActorOptions<T_1>>> : never : never : never) | ({
321
317
  src: "finalizeDocumentRequest";
322
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
318
+ logic: xstate592.PromiseActorLogic<FinalizeDocumentResponse, {
323
319
  processingType: string;
324
- }, xstate0.EventObject>;
320
+ }, xstate592.EventObject>;
325
321
  id: string | undefined;
326
322
  } extends infer T_2 ? T_2 extends {
327
323
  src: "finalizeDocumentRequest";
328
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
324
+ logic: xstate592.PromiseActorLogic<FinalizeDocumentResponse, {
329
325
  processingType: string;
330
- }, xstate0.EventObject>;
326
+ }, xstate592.EventObject>;
331
327
  id: string | undefined;
332
328
  } ? T_2 extends {
333
329
  src: TSrc;
334
- } ? xstate0.ConditionalRequired<[options?: ({
330
+ } ? xstate592.ConditionalRequired<[options?: ({
335
331
  id?: T_2["id"] | undefined;
336
332
  systemId?: string;
337
- input?: xstate0.InputFrom<T_2["logic"]> | undefined;
333
+ input?: xstate592.InputFrom<T_2["logic"]> | undefined;
338
334
  syncSnapshot?: boolean;
339
- } & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
335
+ } & { [K_2 in xstate592.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredActorOptions<T_2>>> : never : never : never)): xstate592.ActorRefFromLogic<xstate592.GetConcreteByKey<xstate592.Values<{
340
336
  initCamera: {
341
337
  src: "initCamera";
342
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
338
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
343
339
  id: string | undefined;
344
340
  };
345
341
  uploadDocument: {
346
342
  src: "uploadDocument";
347
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
343
+ logic: xstate592.PromiseActorLogic<DocumentUploadResponse, {
348
344
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
349
345
  processingType: string;
350
346
  onProgress: (progress: number) => void;
351
- }, xstate0.EventObject>;
347
+ }, xstate592.EventObject>;
352
348
  id: string | undefined;
353
349
  };
354
350
  finalizeDocumentRequest: {
355
351
  src: "finalizeDocumentRequest";
356
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
352
+ logic: xstate592.PromiseActorLogic<FinalizeDocumentResponse, {
357
353
  processingType: string;
358
- }, xstate0.EventObject>;
354
+ }, xstate592.EventObject>;
359
355
  id: string | undefined;
360
356
  };
361
357
  }>, "src", TSrc>["logic"]>;
362
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
358
+ <TLogic extends xstate592.AnyActorLogic>(src: TLogic, ...[options]: xstate592.ConditionalRequired<[options?: ({
363
359
  id?: never;
364
360
  systemId?: string;
365
- input?: xstate0.InputFrom<TLogic> | undefined;
361
+ input?: xstate592.InputFrom<TLogic> | undefined;
366
362
  syncSnapshot?: boolean;
367
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
363
+ } & { [K in xstate592.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredLogicInput<TLogic>>>): xstate592.ActorRefFromLogic<TLogic>;
368
364
  };
369
365
  input: DocumentCaptureInput;
370
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
366
+ self: xstate592.ActorRef<xstate592.MachineSnapshot<DocumentCaptureContext, {
371
367
  type: "CAPTURE";
372
368
  } | {
373
369
  type: "FILE_SELECTED";
@@ -395,7 +391,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
395
391
  type: "SKIP";
396
392
  } | {
397
393
  type: "CLOSE";
398
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
394
+ }, Record<string, xstate592.AnyActorRef | undefined>, xstate592.StateValue, string, unknown, any, any>, {
399
395
  type: "CAPTURE";
400
396
  } | {
401
397
  type: "FILE_SELECTED";
@@ -423,7 +419,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
423
419
  type: "SKIP";
424
420
  } | {
425
421
  type: "CLOSE";
426
- }, xstate0.AnyEventObject>;
422
+ }, xstate592.AnyEventObject>;
427
423
  }) => {
428
424
  config: {
429
425
  processingType: DocumentType;
@@ -574,7 +570,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
574
570
  } | {
575
571
  type: "CLOSE";
576
572
  };
577
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
573
+ self: xstate592.ActorRef<xstate592.MachineSnapshot<DocumentCaptureContext, {
578
574
  type: "CAPTURE";
579
575
  } | {
580
576
  type: "FILE_SELECTED";
@@ -602,7 +598,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
602
598
  type: "SKIP";
603
599
  } | {
604
600
  type: "CLOSE";
605
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
601
+ }, Record<string, xstate592.AnyActorRef>, xstate592.StateValue, string, unknown, any, any>, {
606
602
  type: "CAPTURE";
607
603
  } | {
608
604
  type: "FILE_SELECTED";
@@ -630,7 +626,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
630
626
  type: "SKIP";
631
627
  } | {
632
628
  type: "CLOSE";
633
- }, xstate0.AnyEventObject>;
629
+ }, xstate592.AnyEventObject>;
634
630
  }) => {
635
631
  capturedDocument: CapturedDocument;
636
632
  processingType: DocumentType;
@@ -725,7 +721,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
725
721
  } | {
726
722
  type: "CLOSE";
727
723
  };
728
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
724
+ self: xstate592.ActorRef<xstate592.MachineSnapshot<DocumentCaptureContext, {
729
725
  type: "CAPTURE";
730
726
  } | {
731
727
  type: "FILE_SELECTED";
@@ -753,7 +749,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
753
749
  type: "SKIP";
754
750
  } | {
755
751
  type: "CLOSE";
756
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
752
+ }, Record<string, xstate592.AnyActorRef>, xstate592.StateValue, string, unknown, any, any>, {
757
753
  type: "CAPTURE";
758
754
  } | {
759
755
  type: "FILE_SELECTED";
@@ -781,7 +777,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
781
777
  type: "SKIP";
782
778
  } | {
783
779
  type: "CLOSE";
784
- }, xstate0.AnyEventObject>;
780
+ }, xstate592.AnyEventObject>;
785
781
  }) => {
786
782
  processingType: DocumentType;
787
783
  };
@@ -797,10 +793,6 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
797
793
  readonly failure: {
798
794
  readonly on: {
799
795
  readonly RETRY: readonly [{
800
- readonly target: "nextPage";
801
- readonly guard: "canRetryNextDocumentCapture";
802
- readonly actions: readonly ["clearError", "clearCapturedDocument"];
803
- }, {
804
796
  readonly target: "initCamera";
805
797
  readonly guard: "canRetryCamera";
806
798
  readonly actions: readonly ["clearError", "clearCapturedDocument"];
@@ -5,7 +5,7 @@ import "./camera-C4T2nh2F.esm.js";
5
5
  import "./platform-B81QvKKx.esm.js";
6
6
  import "./ITimerCapability-_YySEUj7.esm.js";
7
7
  import "./backCameraStream-amVBjSd6.esm.js";
8
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CFNsZHSs.esm.js";
8
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BC4PZVY_.esm.js";
9
9
 
10
10
  //#region src/modules/document-capture/documentCaptureActor.ts
11
11
  function createDocumentCaptureActor(options) {