@incodetech/core 0.0.0-dev-20260508-da43840 → 0.0.0-dev-20260508-4bd5e49

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.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-eqRXuVG-.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./session-CfB7Ki6h.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-CSrf0jcz.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
package/dist/home.d.ts CHANGED
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./camera-B6UAKpM1.js";
3
3
  import "./types-DJSt3Ovt.js";
4
4
  import { t as EmptyConfig } from "./types-BA181GDD.js";
5
- import * as xstate946 from "xstate";
5
+ import * as xstate224 from "xstate";
6
6
 
7
7
  //#region src/modules/home/types.d.ts
8
8
  type HomeConfig = EmptyConfig;
@@ -34,41 +34,41 @@ type HomeContext = {
34
34
  type HomeInput = {
35
35
  config: EmptyConfig;
36
36
  };
37
- declare const homeMachine: xstate946.StateMachine<HomeContext, {
37
+ declare const homeMachine: xstate224.StateMachine<HomeContext, {
38
38
  type: "LOAD";
39
39
  } | {
40
40
  type: "COMPLETE";
41
41
  } | {
42
42
  type: "RESET";
43
- }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate946.NonReducibleUnknown, xstate946.EventObject, xstate946.MetaObject, {
43
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate224.NonReducibleUnknown, xstate224.EventObject, xstate224.MetaObject, {
44
44
  readonly id: "home";
45
45
  readonly initial: "idle";
46
46
  readonly context: ({
47
47
  input
48
48
  }: {
49
49
  spawn: {
50
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate946.ActorRefFromLogic<never>;
51
- <TLogic extends xstate946.AnyActorLogic>(src: TLogic, ...[options]: xstate946.ConditionalRequired<[options?: ({
50
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate224.ActorRefFromLogic<never>;
51
+ <TLogic extends xstate224.AnyActorLogic>(src: TLogic, ...[options]: xstate224.ConditionalRequired<[options?: ({
52
52
  id?: never;
53
53
  systemId?: string;
54
- input?: xstate946.InputFrom<TLogic> | undefined;
54
+ input?: xstate224.InputFrom<TLogic> | undefined;
55
55
  syncSnapshot?: boolean;
56
- } & { [K in xstate946.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate946.IsNotNever<xstate946.RequiredLogicInput<TLogic>>>): xstate946.ActorRefFromLogic<TLogic>;
56
+ } & { [K in xstate224.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate224.IsNotNever<xstate224.RequiredLogicInput<TLogic>>>): xstate224.ActorRefFromLogic<TLogic>;
57
57
  };
58
58
  input: HomeInput;
59
- self: xstate946.ActorRef<xstate946.MachineSnapshot<HomeContext, {
59
+ self: xstate224.ActorRef<xstate224.MachineSnapshot<HomeContext, {
60
60
  type: "LOAD";
61
61
  } | {
62
62
  type: "COMPLETE";
63
63
  } | {
64
64
  type: "RESET";
65
- }, Record<string, xstate946.AnyActorRef | undefined>, xstate946.StateValue, string, unknown, any, any>, {
65
+ }, Record<string, xstate224.AnyActorRef | undefined>, xstate224.StateValue, string, unknown, any, any>, {
66
66
  type: "LOAD";
67
67
  } | {
68
68
  type: "COMPLETE";
69
69
  } | {
70
70
  type: "RESET";
71
- }, xstate946.AnyEventObject>;
71
+ }, xstate224.AnyEventObject>;
72
72
  }) => {
73
73
  config: EmptyConfig;
74
74
  };
package/dist/id-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.js";
3
- import * as xstate547 from "xstate";
3
+ import * as xstate890 from "xstate";
4
4
 
5
5
  //#region src/modules/id-ocr/types.d.ts
6
6
  type IdOcrConfig = {
@@ -177,7 +177,7 @@ type IdOcrContext = {
177
177
  type IdOcrInput = {
178
178
  config: IdOcrConfig;
179
179
  };
180
- declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
180
+ declare const idOcrStateMachine: xstate890.StateMachine<IdOcrContext, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "DATA_CHANGED";
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
191
191
  } | {
192
192
  type: "RETRY";
193
193
  }, {
194
- [x: string]: xstate547.ActorRefFromLogic<xstate547.PromiseActorLogic<OcrData, {
194
+ [x: string]: xstate890.ActorRefFromLogic<xstate890.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate547.EventObject>> | xstate547.ActorRefFromLogic<xstate547.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate890.EventObject>> | xstate890.ActorRefFromLogic<xstate890.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate547.EventObject>> | undefined;
200
- }, xstate547.Values<{
199
+ }, xstate890.EventObject>> | undefined;
200
+ }, xstate890.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate547.PromiseActorLogic<OcrData, {
203
+ logic: xstate890.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate547.EventObject>;
205
+ }, xstate890.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate547.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate547.EventObject>;
213
+ }, xstate890.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate547.Values<{
216
+ }>, xstate890.Values<{
217
217
  setError: {
218
218
  type: "setError";
219
- params: xstate547.NonReducibleUnknown;
219
+ params: xstate890.NonReducibleUnknown;
220
220
  };
221
221
  setInitialData: {
222
222
  type: "setInitialData";
223
- params: xstate547.NonReducibleUnknown;
223
+ params: xstate890.NonReducibleUnknown;
224
224
  };
225
225
  updateField: {
226
226
  type: "updateField";
227
- params: xstate547.NonReducibleUnknown;
227
+ params: xstate890.NonReducibleUnknown;
228
228
  };
229
229
  clearFieldValidationError: {
230
230
  type: "clearFieldValidationError";
231
- params: xstate547.NonReducibleUnknown;
231
+ params: xstate890.NonReducibleUnknown;
232
232
  };
233
233
  setOcrValidationErrors: {
234
234
  type: "setOcrValidationErrors";
235
- params: xstate547.NonReducibleUnknown;
235
+ params: xstate890.NonReducibleUnknown;
236
236
  };
237
237
  validateFormField: {
238
238
  type: "validateFormField";
239
- params: xstate547.NonReducibleUnknown;
239
+ params: xstate890.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate547.NonReducibleUnknown;
243
+ params: xstate890.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate547.NonReducibleUnknown;
247
+ params: xstate890.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate547.NonReducibleUnknown;
251
+ params: xstate890.NonReducibleUnknown;
252
252
  };
253
- }>, xstate547.Values<{
253
+ }>, xstate890.Values<{
254
254
  isOcrEditable: {
255
255
  type: "isOcrEditable";
256
256
  params: unknown;
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
271
271
  type: "shouldProceedWithoutSubmitToSecondId";
272
272
  params: unknown;
273
273
  };
274
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate547.NonReducibleUnknown, xstate547.EventObject, xstate547.MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate890.NonReducibleUnknown, xstate890.EventObject, xstate890.MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
280
280
  spawn: {
281
281
  <TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
282
282
  src: "getOcrData";
283
- logic: xstate547.PromiseActorLogic<OcrData, {
283
+ logic: xstate890.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate547.EventObject>;
285
+ }, xstate890.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate547.PromiseActorLogic<OcrData, {
289
+ logic: xstate890.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate547.EventObject>;
291
+ }, xstate890.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate547.ConditionalRequired<[options?: ({
295
+ } ? xstate890.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate547.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate890.InputFrom<T["logic"]> | undefined;
299
299
  syncSnapshot?: boolean;
300
- } & { [K in xstate547.RequiredActorOptions<T>]: unknown }) | undefined], xstate547.IsNotNever<xstate547.RequiredActorOptions<T>>> : never : never : never) | ({
300
+ } & { [K in xstate890.RequiredActorOptions<T>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate547.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate547.EventObject>;
305
+ }, xstate890.EventObject>;
306
306
  id: string | undefined;
307
307
  } extends infer T_1 ? T_1 extends {
308
308
  src: "updateOcrData";
309
- logic: xstate547.PromiseActorLogic<UpdateOcrResponse, {
309
+ logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate547.EventObject>;
312
+ }, xstate890.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate547.ConditionalRequired<[options?: ({
316
+ } ? xstate890.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate547.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate890.InputFrom<T_1["logic"]> | undefined;
320
320
  syncSnapshot?: boolean;
321
- } & { [K_1 in xstate547.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate547.IsNotNever<xstate547.RequiredActorOptions<T_1>>> : never : never : never)): xstate547.ActorRefFromLogic<xstate547.GetConcreteByKey<xstate547.Values<{
321
+ } & { [K_1 in xstate890.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredActorOptions<T_1>>> : never : never : never)): xstate890.ActorRefFromLogic<xstate890.GetConcreteByKey<xstate890.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate547.PromiseActorLogic<OcrData, {
324
+ logic: xstate890.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate547.EventObject>;
326
+ }, xstate890.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate547.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate547.EventObject>;
334
+ }, xstate890.EventObject>;
335
335
  id: string | undefined;
336
336
  };
337
337
  }>, "src", TSrc>["logic"]>;
338
- <TLogic extends xstate547.AnyActorLogic>(src: TLogic, ...[options]: xstate547.ConditionalRequired<[options?: ({
338
+ <TLogic extends xstate890.AnyActorLogic>(src: TLogic, ...[options]: xstate890.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate547.InputFrom<TLogic> | undefined;
341
+ input?: xstate890.InputFrom<TLogic> | undefined;
342
342
  syncSnapshot?: boolean;
343
- } & { [K in xstate547.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate547.IsNotNever<xstate547.RequiredLogicInput<TLogic>>>): xstate547.ActorRefFromLogic<TLogic>;
343
+ } & { [K in xstate890.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredLogicInput<TLogic>>>): xstate890.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate547.ActorRef<xstate547.MachineSnapshot<IdOcrContext, {
346
+ self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
347
347
  type: "LOAD";
348
348
  } | {
349
349
  type: "DATA_CHANGED";
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
356
356
  type: "CONTINUE";
357
357
  } | {
358
358
  type: "RETRY";
359
- }, Record<string, xstate547.AnyActorRef | undefined>, xstate547.StateValue, string, unknown, any, any>, {
359
+ }, Record<string, xstate890.AnyActorRef | undefined>, xstate890.StateValue, string, unknown, any, any>, {
360
360
  type: "LOAD";
361
361
  } | {
362
362
  type: "DATA_CHANGED";
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
369
369
  type: "CONTINUE";
370
370
  } | {
371
371
  type: "RETRY";
372
- }, xstate547.AnyEventObject>;
372
+ }, xstate890.AnyEventObject>;
373
373
  }) => {
374
374
  config: IdOcrConfig;
375
375
  formData: UpdateOcrDataParams;
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
405
405
  } | {
406
406
  type: "RETRY";
407
407
  };
408
- self: xstate547.ActorRef<xstate547.MachineSnapshot<IdOcrContext, {
408
+ self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
409
409
  type: "LOAD";
410
410
  } | {
411
411
  type: "DATA_CHANGED";
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
418
418
  type: "CONTINUE";
419
419
  } | {
420
420
  type: "RETRY";
421
- }, Record<string, xstate547.AnyActorRef>, xstate547.StateValue, string, unknown, any, any>, {
421
+ }, Record<string, xstate890.AnyActorRef>, xstate890.StateValue, string, unknown, any, any>, {
422
422
  type: "LOAD";
423
423
  } | {
424
424
  type: "DATA_CHANGED";
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
431
431
  type: "CONTINUE";
432
432
  } | {
433
433
  type: "RETRY";
434
- }, xstate547.AnyEventObject>;
434
+ }, xstate890.AnyEventObject>;
435
435
  }) => {
436
436
  isSecondId: boolean;
437
437
  };
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
510
510
  } | {
511
511
  type: "RETRY";
512
512
  };
513
- self: xstate547.ActorRef<xstate547.MachineSnapshot<IdOcrContext, {
513
+ self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
514
514
  type: "LOAD";
515
515
  } | {
516
516
  type: "DATA_CHANGED";
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
523
523
  type: "CONTINUE";
524
524
  } | {
525
525
  type: "RETRY";
526
- }, Record<string, xstate547.AnyActorRef>, xstate547.StateValue, string, unknown, any, any>, {
526
+ }, Record<string, xstate890.AnyActorRef>, xstate890.StateValue, string, unknown, any, any>, {
527
527
  type: "LOAD";
528
528
  } | {
529
529
  type: "DATA_CHANGED";
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate547.StateMachine<IdOcrContext, {
536
536
  type: "CONTINUE";
537
537
  } | {
538
538
  type: "RETRY";
539
- }, xstate547.AnyEventObject>;
539
+ }, xstate890.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
package/dist/id.esm.js CHANGED
@@ -3,7 +3,7 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
3
3
  import "./api-eqRXuVG-.esm.js";
4
4
  import "./events-Bt1azl2B.esm.js";
5
5
  import "./endpoints-B3V1U9Dg.esm.js";
6
- import "./session-CfB7Ki6h.esm.js";
6
+ import "./session-CSrf0jcz.esm.js";
7
7
  import "./IpifyProvider-ByL6JYxg.esm.js";
8
8
  import "./browserSimulation-CAH-V_iE.esm.js";
9
9
  import "./xstate.esm-7GmmAwg6.esm.js";
@@ -19,7 +19,7 @@ import "./platform-Dpzd9p3X.esm.js";
19
19
  import "./ITimerCapability-2pw-S97e.esm.js";
20
20
  import "./backCameraStream-bztcEWzY.esm.js";
21
21
  import "./getDeviceClass-BTVS59zg.esm.js";
22
- import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-C8Ey-cuR.esm.js";
23
- import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-Dl7KHLJ5.esm.js";
22
+ import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-Em0doWas.esm.js";
23
+ import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-BFE_QfGu.esm.js";
24
24
 
25
25
  export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
2
2
  import { o as createActor, s as createManager } from "./xstate.esm-7GmmAwg6.esm.js";
3
3
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
4
- import { m as MANUAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-C8Ey-cuR.esm.js";
4
+ import { m as MANUAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-Em0doWas.esm.js";
5
5
 
6
6
  //#region src/modules/id/idCaptureActor.ts
7
7
  function createIdCaptureActor(options) {
@@ -103,7 +103,7 @@ function getErrorSubtitleKey(errorCode, uploadResponse, currentMode) {
103
103
  }
104
104
  function shouldCaptureBack(context) {
105
105
  if (!(context.currentMode === "front" || context.currentMode === "passport")) return false;
106
- if (context.config.onlyFront || context.config.onlyBack) return false;
106
+ if (context.config.onlyBack) return false;
107
107
  if (context.config.usSmartCapture && context.currentMode === "front") return false;
108
108
  const serverSkipped = context.uploadResponse?.skipBackIdCapture === true;
109
109
  const forceBackForNonPassport = context.config.alwaysCaptureBackOfId === true && context.currentMode !== "passport";
@@ -155,9 +155,8 @@ function mapManualUploadState(snapshot) {
155
155
  * keeps both slots visible once the front has been processed.
156
156
  */
157
157
  const backUploaded = (childCtx?.backUploaded ?? false) || (childCtx?.skipBackFromServer ?? false);
158
- const idTabCanContinue = (childCtx?.frontUploaded ?? false) && (config.onlyFront || backUploaded);
158
+ const idTabCanContinue = (childCtx?.frontUploaded ?? false) && backUploaded;
159
159
  const canContinue = childCtx?.activeTab === "id" ? idTabCanContinue : childCtx?.passportUploaded ?? false;
160
- const showBackSlot = !config.onlyFront;
161
160
  return {
162
161
  status: "manualUpload",
163
162
  phase,
@@ -165,7 +164,7 @@ function mapManualUploadState(snapshot) {
165
164
  activeTab: childCtx?.activeTab ?? "id",
166
165
  showIdTab: config.enableId ?? true,
167
166
  showPassportTab: config.enablePassport ?? false,
168
- showBackSlot,
167
+ showBackSlot: true,
169
168
  frontFileName: childCtx?.frontFile?.name,
170
169
  backFileName: childCtx?.backFile?.name,
171
170
  passportFileName: childCtx?.passportFile?.name,
@@ -387,7 +386,7 @@ function getCaptureErrorScreen(screens, errorCode) {
387
386
  }
388
387
  function getSuccessScreen(snapshot, screens) {
389
388
  const { config } = snapshot.context;
390
- if (config?.onlyFront === true || config?.onlyBack === true || config?.showCaptureButtonInAuto === true) return `${screens.successPrefix}.captureonly`;
389
+ if (config?.onlyBack === true || config?.showCaptureButtonInAuto === true) return `${screens.successPrefix}.captureonly`;
391
390
  return `${screens.successPrefix}.default`;
392
391
  }
393
392
  function getCaptureSubstateScreen(snapshot, screens) {
@@ -3,7 +3,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BZGH3sYJ.esm.j
3
3
  import { r as getToken, t as api } from "./api-eqRXuVG-.esm.js";
4
4
  import { S as revokeObjectURL } from "./events-Bt1azl2B.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
6
- import { t as getDisableIpify } from "./session-CfB7Ki6h.esm.js";
6
+ import { t as getDisableIpify } from "./session-CSrf0jcz.esm.js";
7
7
  import { a as fromPromise, i as fromCallback, n as sendTo, r as assign, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
8
8
  import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-Dc8qrd2u.esm.js";
9
9
  import { n as IncodeCanvas } from "./deepsightService-gNTXZu7Y.esm.js";
@@ -945,7 +945,7 @@ const runDetectionActor = fromCallback(({ input, sendBack }) => {
945
945
  windowInnerWidth: windowDimensions.innerWidth,
946
946
  windowInnerHeight: windowDimensions.innerHeight
947
947
  });
948
- const idType = input.currentMode === "back" ? "BackId" : input.currentMode === "passport" || input.currentMode === "front" && input.config.onlyFront ? "Passport" : "FrontId";
948
+ const idType = input.currentMode === "back" ? "BackId" : input.currentMode === "passport" ? "Passport" : "FrontId";
949
949
  provider.setSettings({
950
950
  isFixedMask: input.config.settings?.isFixedMask ?? false,
951
951
  isIPhone14OrHigher: input.config.settings?.isIPhone14OrHigher ?? false,
@@ -1454,10 +1454,18 @@ const hasUploadValidationErrorGuard = ({ context }) => {
1454
1454
  }) !== void 0;
1455
1455
  };
1456
1456
  const isFrontModeGuard = ({ context }) => context.currentMode === "front" || context.currentMode === "passport";
1457
- const isOnlyFrontGuard = ({ context }) => context.config.onlyFront;
1457
+ /**
1458
+ * `config.onlyFront` from the orchestrated flow JSON is intentionally not
1459
+ * read here: the flow value cannot account for per-document overrides, so the
1460
+ * backend resolves the real policy per document at upload time
1461
+ * (via `skipBackIdCapture` on the upload response). Standalone
1462
+ * `idCaptureManager` consumers that pass `onlyFront: true` directly will
1463
+ * therefore also be ignored — re-wire this guard if that capability is needed
1464
+ * again.
1465
+ */
1466
+ const isOnlyFrontGuard = (_args) => false;
1458
1467
  const shouldContinueToBackGuard = ({ context }) => {
1459
1468
  if (context.currentMode !== "front" && context.currentMode !== "passport") return false;
1460
- if (context.config.onlyFront) return false;
1461
1469
  if (context.config.onlyBack) return false;
1462
1470
  if (context.config.usSmartCapture) return false;
1463
1471
  if (context.uploadResponse?.skipBackIdCapture) {
@@ -2164,7 +2172,7 @@ const _idCaptureMachine = setup({
2164
2172
  deepsightService: context.deepsightService,
2165
2173
  stream: context.stream,
2166
2174
  isSecondId: context.config.isSecondId ?? false,
2167
- onlyFront: context.config.onlyFront,
2175
+ onlyFront: false,
2168
2176
  ageAssurance: context.config.ageAssurance,
2169
2177
  dependencies: context.dependencies,
2170
2178
  captureResolution: context.captureResolution,
@@ -2413,7 +2421,7 @@ const _idCaptureMachine = setup({
2413
2421
  src: "manualUploadMachine",
2414
2422
  input: ({ context }) => ({
2415
2423
  isSecondId: context.config.isSecondId ?? false,
2416
- onlyFront: context.config.onlyFront ?? false
2424
+ onlyFront: false
2417
2425
  }),
2418
2426
  onSnapshot: { actions: () => {} },
2419
2427
  onDone: [{