idmission-web-sdk 2.2.130 → 2.2.131

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.130';
214
+ var webSdkVersion = '2.2.131';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -20690,29 +20690,31 @@
20690
20690
  onTimeout = _a.onTimeout,
20691
20691
  onDenied = _a.onDenied,
20692
20692
  onExit = _a.onExit,
20693
- _f = _a.timeoutDurationMs,
20694
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
20695
- _g = _a.silentFallback,
20696
- silentFallback = _g === void 0 ? false : _g,
20693
+ _f = _a.initialCaptureDelayMs,
20694
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
20695
+ _g = _a.timeoutDurationMs,
20696
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
20697
+ _h = _a.silentFallback,
20698
+ silentFallback = _h === void 0 ? false : _h,
20697
20699
  guidesComponent = _a.guidesComponent,
20698
20700
  disableCapturePreview = _a.disableCapturePreview,
20699
- _h = _a.classNames,
20700
- classNames = _h === void 0 ? {} : _h,
20701
- _j = _a.colors,
20702
- colors = _j === void 0 ? {} : _j,
20703
- _k = _a.verbiage,
20704
- rawVerbiage = _k === void 0 ? {} : _k,
20701
+ _j = _a.classNames,
20702
+ classNames = _j === void 0 ? {} : _j,
20703
+ _k = _a.colors,
20704
+ colors = _k === void 0 ? {} : _k,
20705
+ _l = _a.verbiage,
20706
+ rawVerbiage = _l === void 0 ? {} : _l,
20705
20707
  debugMode = _a.debugMode;
20706
- var _l = React.useContext(SubmissionContext),
20707
- checkLiveness = _l.checkLiveness,
20708
- submissionError = _l.submissionError;
20708
+ var _m = React.useContext(SubmissionContext),
20709
+ checkLiveness = _m.checkLiveness,
20710
+ submissionError = _m.submissionError;
20709
20711
  var modelError = React.useContext(SelfieGuidanceModelsContext).error;
20710
- var _m = React.useReducer(reducer$2, initialState$2),
20711
- state = _m[0],
20712
- dispatch = _m[1];
20713
- var _o = React.useState(null),
20714
- imageUrl = _o[0],
20715
- setImageUrl = _o[1];
20712
+ var _o = React.useReducer(reducer$2, initialState$2),
20713
+ state = _o[0],
20714
+ dispatch = _o[1];
20715
+ var _p = React.useState(null),
20716
+ imageUrl = _p[0],
20717
+ setImageUrl = _p[1];
20716
20718
  var rawCanvas = React.useRef(null);
20717
20719
  var cropCanvas = React.useRef(null);
20718
20720
  var resizeCanvas = React.useRef(null);
@@ -20882,7 +20884,7 @@
20882
20884
  type: 'guidanceUnsatisfied'
20883
20885
  });
20884
20886
  }, []);
20885
- var been1s = useTimeout(1000).timedOut;
20887
+ var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
20886
20888
  if (modelError) {
20887
20889
  return /*#__PURE__*/React.createElement(SelfieCaptureFallback, {
20888
20890
  key: state.timesLivenessCheckFailed,
@@ -20899,7 +20901,7 @@
20899
20901
  }), /*#__PURE__*/React.createElement(InvisibleCanvas, {
20900
20902
  ref: resizeCanvas
20901
20903
  }), /*#__PURE__*/React.createElement(SelfieCapture, {
20902
- shouldCapture: state.requestState === 'CAPTURING' && been1s,
20904
+ shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
20903
20905
  onFaceDetected: onFaceDetected,
20904
20906
  onSelfieCaptureStarted: onSelfieCaptureStarted,
20905
20907
  onSelfieCaptured: onSelfieCaptured,
@@ -21378,62 +21380,64 @@
21378
21380
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
21379
21381
  customOverlayContent = _a.customOverlayContent,
21380
21382
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
21381
- _f = _a.timeoutDurationMs,
21382
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
21383
- _g = _a.maxRetries,
21384
- maxRetries = _g === void 0 ? 2 : _g,
21385
- _h = _a.skipSuccessScreen,
21386
- skipSuccessScreen = _h === void 0 ? false : _h,
21387
- _j = _a.renderCameraFeed,
21388
- renderCameraFeed = _j === void 0 ? true : _j,
21389
- _k = _a.releaseCameraAccessOnExit,
21390
- releaseCameraAccessOnExit = _k === void 0 ? true : _k,
21391
- _l = _a.silentFallback,
21392
- silentFallback = _l === void 0 ? false : _l,
21393
- _m = _a.waitForIdCaptureModels,
21394
- waitForIdCaptureModels = _m === void 0 ? false : _m,
21383
+ _f = _a.initialCaptureDelayMs,
21384
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
21385
+ _g = _a.timeoutDurationMs,
21386
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
21387
+ _h = _a.maxRetries,
21388
+ maxRetries = _h === void 0 ? 2 : _h,
21389
+ _j = _a.skipSuccessScreen,
21390
+ skipSuccessScreen = _j === void 0 ? false : _j,
21391
+ _k = _a.renderCameraFeed,
21392
+ renderCameraFeed = _k === void 0 ? true : _k,
21393
+ _l = _a.releaseCameraAccessOnExit,
21394
+ releaseCameraAccessOnExit = _l === void 0 ? true : _l,
21395
+ _m = _a.silentFallback,
21396
+ silentFallback = _m === void 0 ? false : _m,
21397
+ _o = _a.waitForIdCaptureModels,
21398
+ waitForIdCaptureModels = _o === void 0 ? false : _o,
21395
21399
  guidesComponent = _a.guidesComponent,
21396
21400
  disableCapturePreview = _a.disableCapturePreview,
21397
- _o = _a.assets,
21398
- assets = _o === void 0 ? {} : _o,
21399
- _p = _a.classNames,
21400
- classNames = _p === void 0 ? {} : _p,
21401
- _q = _a.colors,
21402
- colors = _q === void 0 ? {} : _q,
21403
- _r = _a.verbiage,
21404
- verbiage = _r === void 0 ? {} : _r,
21405
- _s = _a.debugMode,
21406
- debugMode = _s === void 0 ? false : _s;
21407
- var _t = React.useContext(SubmissionContext),
21408
- submissionResponse = _t.submissionResponse,
21409
- livenessCheckRequest = _t.livenessCheckRequest,
21410
- setSelfieImage = _t.setSelfieImage,
21411
- logSelfieCaptureAttempt = _t.logSelfieCaptureAttempt;
21412
- var _u = useCameraStore(useShallow(function (state) {
21401
+ _p = _a.assets,
21402
+ assets = _p === void 0 ? {} : _p,
21403
+ _q = _a.classNames,
21404
+ classNames = _q === void 0 ? {} : _q,
21405
+ _r = _a.colors,
21406
+ colors = _r === void 0 ? {} : _r,
21407
+ _s = _a.verbiage,
21408
+ verbiage = _s === void 0 ? {} : _s,
21409
+ _t = _a.debugMode,
21410
+ debugMode = _t === void 0 ? false : _t;
21411
+ var _u = React.useContext(SubmissionContext),
21412
+ submissionResponse = _u.submissionResponse,
21413
+ livenessCheckRequest = _u.livenessCheckRequest,
21414
+ setSelfieImage = _u.setSelfieImage,
21415
+ logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt;
21416
+ var _v = useCameraStore(useShallow(function (state) {
21413
21417
  return {
21414
21418
  cameraAccessDenied: state.cameraAccessDenied,
21415
21419
  requestCameraAccess: state.requestCameraAccess,
21416
21420
  releaseCameraAccess: state.releaseCameraAccess
21417
21421
  };
21418
21422
  })),
21419
- cameraAccessDenied = _u.cameraAccessDenied,
21420
- requestCameraAccess = _u.requestCameraAccess,
21421
- releaseCameraAccess = _u.releaseCameraAccess;
21422
- var _v = React.useState(''),
21423
- faceCropImageUrl = _v[0],
21424
- setFaceCropImageUrl = _v[1];
21425
- var _w = React.useState(0),
21426
- retryCount = _w[0],
21427
- setRetryCount = _w[1];
21428
- var _x = React.useState('LOADING'),
21429
- captureState = _x[0],
21430
- setCaptureState = _x[1];
21423
+ cameraAccessDenied = _v.cameraAccessDenied,
21424
+ requestCameraAccess = _v.requestCameraAccess,
21425
+ releaseCameraAccess = _v.releaseCameraAccess;
21426
+ var _w = React.useState(''),
21427
+ faceCropImageUrl = _w[0],
21428
+ setFaceCropImageUrl = _w[1];
21429
+ var _x = React.useState(0),
21430
+ retryCount = _x[0],
21431
+ setRetryCount = _x[1];
21432
+ var _y = React.useState('LOADING'),
21433
+ captureState = _y[0],
21434
+ setCaptureState = _y[1];
21431
21435
  var captureStartedAt = React.useRef();
21432
21436
  var operationStartedAt = React.useRef();
21433
21437
  var livenessScore = React.useRef();
21434
- var _y = React.useContext(SelfieGuidanceModelsContext),
21435
- start = _y.start,
21436
- stop = _y.stop;
21438
+ var _z = React.useContext(SelfieGuidanceModelsContext),
21439
+ start = _z.start,
21440
+ stop = _z.stop;
21437
21441
  React.useEffect(function () {
21438
21442
  if (captureState !== 'CAPTURING') return;
21439
21443
  operationStartedAt.current = new Date();
@@ -21493,9 +21497,9 @@
21493
21497
  setCaptureState('FAILED');
21494
21498
  onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
21495
21499
  }, [onDenied, submissionResponse, livenessCheckRequest]);
21496
- var _z = React.useState(0),
21497
- attempt = _z[0],
21498
- setAttempt = _z[1];
21500
+ var _0 = React.useState(0),
21501
+ attempt = _0[0],
21502
+ setAttempt = _0[1];
21499
21503
  var onExitCallback = React.useCallback(function () {
21500
21504
  setAttempt(function (n) {
21501
21505
  return n + 1;
@@ -21558,6 +21562,7 @@
21558
21562
  onTimeout: onTimeout,
21559
21563
  onDenied: onDeniedCallback,
21560
21564
  onExit: onExitCallback,
21565
+ initialCaptureDelayMs: initialCaptureDelayMs,
21561
21566
  timeoutDurationMs: timeoutDurationMs,
21562
21567
  silentFallback: silentFallback,
21563
21568
  guidesComponent: guidesComponent,
@@ -25270,12 +25275,14 @@
25270
25275
  predictGender = _a.predictGender,
25271
25276
  _d = _a.loadingOverlayMode,
25272
25277
  loadingOverlayMode = _d === void 0 ? 'default' : _d,
25273
- _e = _a.timeoutDurationMs,
25274
- timeoutDurationMs = _e === void 0 ? 15000 : _e,
25275
- _f = _a.modelLoadTimeoutMs,
25276
- modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
25277
- _g = _a.skipSuccessScreen,
25278
- skipSuccessScreen = _g === void 0 ? false : _g,
25278
+ _e = _a.initialCaptureDelayMs,
25279
+ initialCaptureDelayMs = _e === void 0 ? 1000 : _e,
25280
+ _f = _a.timeoutDurationMs,
25281
+ timeoutDurationMs = _f === void 0 ? 15000 : _f,
25282
+ _g = _a.modelLoadTimeoutMs,
25283
+ modelLoadTimeoutMs = _g === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _g,
25284
+ _h = _a.skipSuccessScreen,
25285
+ skipSuccessScreen = _h === void 0 ? false : _h,
25279
25286
  idCardForFaceMatch = _a.idCardForFaceMatch,
25280
25287
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
25281
25288
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -25291,23 +25298,24 @@
25291
25298
  onUserCancel = _a.onUserCancel,
25292
25299
  onModelError = _a.onModelError,
25293
25300
  onCameraAccessDenied = _a.onCameraAccessDenied,
25294
- _h = _a.theme,
25295
- theme = _h === void 0 ? 'default' : _h,
25301
+ _j = _a.theme,
25302
+ theme = _j === void 0 ? 'default' : _j,
25296
25303
  assets = _a.assets,
25297
25304
  classNames = _a.classNames,
25298
25305
  colors = _a.colors,
25299
25306
  verbiage = _a.verbiage,
25300
- _j = _a.geolocationEnabled,
25301
- geolocationEnabled = _j === void 0 ? true : _j,
25302
- _k = _a.geolocationRequired,
25303
- geolocationRequired = _k === void 0 ? false : _k,
25304
- _l = _a.debugMode,
25305
- debugMode = _l === void 0 ? false : _l;
25307
+ _k = _a.geolocationEnabled,
25308
+ geolocationEnabled = _k === void 0 ? true : _k,
25309
+ _l = _a.geolocationRequired,
25310
+ geolocationRequired = _l === void 0 ? false : _l,
25311
+ _m = _a.debugMode,
25312
+ debugMode = _m === void 0 ? false : _m;
25306
25313
  useLanguage(lang);
25307
25314
  useDebugLogging(debugMode);
25308
25315
  var faceLivenessProps = React.useMemo(function () {
25309
25316
  return {
25310
25317
  loadingOverlayMode: loadingOverlayMode,
25318
+ initialCaptureDelayMs: initialCaptureDelayMs,
25311
25319
  timeoutDurationMs: timeoutDurationMs,
25312
25320
  modelLoadTimeoutMs: modelLoadTimeoutMs,
25313
25321
  skipSuccessScreen: skipSuccessScreen,
@@ -25324,7 +25332,7 @@
25324
25332
  verbiage: verbiage,
25325
25333
  debugMode: debugMode
25326
25334
  };
25327
- }, [assets, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
25335
+ }, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
25328
25336
  return /*#__PURE__*/React.createElement(AuthProvider, {
25329
25337
  sessionId: sessionId,
25330
25338
  authUrl: authUrl
@@ -25409,35 +25417,37 @@
25409
25417
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
25410
25418
  _g = _a.faceLivenessLoadingOverlayMode,
25411
25419
  faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
25412
- _h = _a.faceLivenessTimeoutDurationMs,
25413
- faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
25414
- _j = _a.skipSuccessScreen,
25415
- skipSuccessScreen = _j === void 0 ? false : _j,
25420
+ _h = _a.faceLivenessInitialCaptureDelayMs,
25421
+ faceLivenessInitialCaptureDelayMs = _h === void 0 ? 1000 : _h,
25422
+ _j = _a.faceLivenessTimeoutDurationMs,
25423
+ faceLivenessTimeoutDurationMs = _j === void 0 ? 15000 : _j,
25424
+ _k = _a.skipSuccessScreen,
25425
+ skipSuccessScreen = _k === void 0 ? false : _k,
25416
25426
  idCaptureInstructions = _a.idCaptureInstructions,
25417
- _k = _a.idCaptureGuideType,
25418
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
25419
- _l = _a.idCaptureGuideImages,
25420
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
25421
- _m = _a.idCapturePortraitGuidesOnMobile,
25422
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
25423
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
25424
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
25425
- _p = _a.idCaptureModelLoadTimeoutMs,
25426
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
25427
- _q = _a.idCaptureForceFallbackMode,
25428
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
25429
- _r = _a.idCaptureAllowUploadingDocumentsFromStorage,
25430
- idCaptureAllowUploadingDocumentsFromStorage = _r === void 0 ? false : _r,
25431
- _s = _a.separateIdCardCaptureSequence,
25432
- separateIdCardCaptureSequence = _s === void 0 ? false : _s,
25433
- _t = _a.selfieCaptureModelLoadTimeoutMs,
25434
- selfieCaptureModelLoadTimeoutMs = _t === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _t,
25435
- _u = _a.allowIdCardBackToFrontCapture,
25436
- allowIdCardBackToFrontCapture = _u === void 0 ? false : _u,
25437
- _v = _a.enableOverrideWrongDocumentTypeDialog,
25438
- enableOverrideWrongDocumentTypeDialog = _v === void 0 ? false : _v,
25439
- _w = _a.allowOverrideWrongDocumentTypeAfterMs,
25440
- allowOverrideWrongDocumentTypeAfterMs = _w === void 0 ? 8000 : _w,
25427
+ _l = _a.idCaptureGuideType,
25428
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
25429
+ _m = _a.idCaptureGuideImages,
25430
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
25431
+ _o = _a.idCapturePortraitGuidesOnMobile,
25432
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
25433
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
25434
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
25435
+ _q = _a.idCaptureModelLoadTimeoutMs,
25436
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
25437
+ _r = _a.idCaptureForceFallbackMode,
25438
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
25439
+ _s = _a.idCaptureAllowUploadingDocumentsFromStorage,
25440
+ idCaptureAllowUploadingDocumentsFromStorage = _s === void 0 ? false : _s,
25441
+ _t = _a.separateIdCardCaptureSequence,
25442
+ separateIdCardCaptureSequence = _t === void 0 ? false : _t,
25443
+ _u = _a.selfieCaptureModelLoadTimeoutMs,
25444
+ selfieCaptureModelLoadTimeoutMs = _u === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _u,
25445
+ _v = _a.allowIdCardBackToFrontCapture,
25446
+ allowIdCardBackToFrontCapture = _v === void 0 ? false : _v,
25447
+ _w = _a.enableOverrideWrongDocumentTypeDialog,
25448
+ enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
25449
+ _x = _a.allowOverrideWrongDocumentTypeAfterMs,
25450
+ allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
25441
25451
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
25442
25452
  onDocumentUploaded = _a.onDocumentUploaded,
25443
25453
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -25455,28 +25465,28 @@
25455
25465
  onIdCaptureModelError = _a.onIdCaptureModelError,
25456
25466
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
25457
25467
  onCameraAccessDenied = _a.onCameraAccessDenied,
25458
- _x = _a.captureSignature,
25459
- captureSignature = _x === void 0 ? false : _x,
25460
- _y = _a.captureSignatureVideo,
25461
- captureSignatureVideo = _y === void 0 ? false : _y,
25462
- _z = _a.captureAdditionalDocuments,
25463
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
25464
- _0 = _a.theme,
25465
- theme = _0 === void 0 ? 'default' : _0,
25466
- _1 = _a.assets,
25467
- assets = _1 === void 0 ? {} : _1,
25468
- _2 = _a.classNames,
25469
- classNames = _2 === void 0 ? {} : _2,
25470
- _3 = _a.colors,
25471
- colors = _3 === void 0 ? {} : _3,
25472
- _4 = _a.verbiage,
25473
- verbiage = _4 === void 0 ? {} : _4,
25474
- _5 = _a.geolocationEnabled,
25475
- geolocationEnabled = _5 === void 0 ? true : _5,
25476
- _6 = _a.geolocationRequired,
25477
- geolocationRequired = _6 === void 0 ? false : _6,
25478
- _7 = _a.debugMode,
25479
- debugMode = _7 === void 0 ? false : _7;
25468
+ _y = _a.captureSignature,
25469
+ captureSignature = _y === void 0 ? false : _y,
25470
+ _z = _a.captureSignatureVideo,
25471
+ captureSignatureVideo = _z === void 0 ? false : _z,
25472
+ _0 = _a.captureAdditionalDocuments,
25473
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
25474
+ _1 = _a.theme,
25475
+ theme = _1 === void 0 ? 'default' : _1,
25476
+ _2 = _a.assets,
25477
+ assets = _2 === void 0 ? {} : _2,
25478
+ _3 = _a.classNames,
25479
+ classNames = _3 === void 0 ? {} : _3,
25480
+ _4 = _a.colors,
25481
+ colors = _4 === void 0 ? {} : _4,
25482
+ _5 = _a.verbiage,
25483
+ verbiage = _5 === void 0 ? {} : _5,
25484
+ _6 = _a.geolocationEnabled,
25485
+ geolocationEnabled = _6 === void 0 ? true : _6,
25486
+ _7 = _a.geolocationRequired,
25487
+ geolocationRequired = _7 === void 0 ? false : _7,
25488
+ _8 = _a.debugMode,
25489
+ debugMode = _8 === void 0 ? false : _8;
25480
25490
  useLanguage(lang);
25481
25491
  useDebugLogging(debugMode);
25482
25492
  var idCaptureProps = React.useMemo(function () {
@@ -25512,6 +25522,7 @@
25512
25522
  var faceLivenessProps = React.useMemo(function () {
25513
25523
  return {
25514
25524
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
25525
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
25515
25526
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
25516
25527
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
25517
25528
  onDenied: onDenied,
@@ -25526,7 +25537,7 @@
25526
25537
  verbiage: verbiage.faceLiveness,
25527
25538
  debugMode: debugMode
25528
25539
  };
25529
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
25540
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
25530
25541
  var additionalDocumentCaptureProps = React.useMemo(function () {
25531
25542
  return {
25532
25543
  documents: captureAdditionalDocuments,
@@ -25661,37 +25672,39 @@
25661
25672
  allowSinglePageIdCapture = _e === void 0 ? false : _e,
25662
25673
  _f = _a.idCaptureThresholds,
25663
25674
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
25664
- _g = _a.faceLivenessTimeoutDurationMs,
25665
- faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
25666
- _h = _a.faceLivenessLoadingOverlayMode,
25667
- faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
25668
- _j = _a.skipSuccessScreen,
25669
- skipSuccessScreen = _j === void 0 ? false : _j,
25675
+ _g = _a.faceLivenessInitialCaptureDelayMs,
25676
+ faceLivenessInitialCaptureDelayMs = _g === void 0 ? 1000 : _g,
25677
+ _h = _a.faceLivenessTimeoutDurationMs,
25678
+ faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
25679
+ _j = _a.faceLivenessLoadingOverlayMode,
25680
+ faceLivenessLoadingOverlayMode = _j === void 0 ? 'default' : _j,
25681
+ _k = _a.skipSuccessScreen,
25682
+ skipSuccessScreen = _k === void 0 ? false : _k,
25670
25683
  idCaptureInstructions = _a.idCaptureInstructions,
25671
- _k = _a.idCaptureGuideType,
25672
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
25673
- _l = _a.idCaptureGuideImages,
25674
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
25675
- _m = _a.idCapturePortraitGuidesOnMobile,
25676
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
25677
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
25678
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
25679
- _p = _a.idCaptureModelLoadTimeoutMs,
25680
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
25681
- _q = _a.idCaptureForceFallbackMode,
25682
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
25683
- _r = _a.selfieCaptureModelLoadTimeoutMs,
25684
- selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
25685
- _s = _a.allowIdCardBackToFrontCapture,
25686
- allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
25687
- _t = _a.enableOverrideWrongDocumentTypeDialog,
25688
- enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
25689
- _u = _a.allowOverrideWrongDocumentTypeAfterMs,
25690
- allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
25691
- _v = _a.allowUploadingDocumentsFromStorage,
25692
- allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
25693
- _w = _a.separateIdCardCaptureSequence,
25694
- separateIdCardCaptureSequence = _w === void 0 ? false : _w,
25684
+ _l = _a.idCaptureGuideType,
25685
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
25686
+ _m = _a.idCaptureGuideImages,
25687
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
25688
+ _o = _a.idCapturePortraitGuidesOnMobile,
25689
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
25690
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
25691
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
25692
+ _q = _a.idCaptureModelLoadTimeoutMs,
25693
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
25694
+ _r = _a.idCaptureForceFallbackMode,
25695
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
25696
+ _s = _a.selfieCaptureModelLoadTimeoutMs,
25697
+ selfieCaptureModelLoadTimeoutMs = _s === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _s,
25698
+ _t = _a.allowIdCardBackToFrontCapture,
25699
+ allowIdCardBackToFrontCapture = _t === void 0 ? false : _t,
25700
+ _u = _a.enableOverrideWrongDocumentTypeDialog,
25701
+ enableOverrideWrongDocumentTypeDialog = _u === void 0 ? false : _u,
25702
+ _v = _a.allowOverrideWrongDocumentTypeAfterMs,
25703
+ allowOverrideWrongDocumentTypeAfterMs = _v === void 0 ? 8000 : _v,
25704
+ _w = _a.allowUploadingDocumentsFromStorage,
25705
+ allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
25706
+ _x = _a.separateIdCardCaptureSequence,
25707
+ separateIdCardCaptureSequence = _x === void 0 ? false : _x,
25695
25708
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
25696
25709
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
25697
25710
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -25708,31 +25721,31 @@
25708
25721
  onIdCaptureModelError = _a.onIdCaptureModelError,
25709
25722
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
25710
25723
  onCameraAccessDenied = _a.onCameraAccessDenied,
25711
- _x = _a.captureSignature,
25712
- captureSignature = _x === void 0 ? false : _x,
25713
- _y = _a.captureSignatureVideo,
25714
- captureSignatureVideo = _y === void 0 ? false : _y,
25715
- _z = _a.captureAdditionalDocuments,
25716
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
25717
- _0 = _a.captureVideoId,
25718
- captureVideoId = _0 === void 0 ? false : _0,
25724
+ _y = _a.captureSignature,
25725
+ captureSignature = _y === void 0 ? false : _y,
25726
+ _z = _a.captureSignatureVideo,
25727
+ captureSignatureVideo = _z === void 0 ? false : _z,
25728
+ _0 = _a.captureAdditionalDocuments,
25729
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
25730
+ _1 = _a.captureVideoId,
25731
+ captureVideoId = _1 === void 0 ? false : _1,
25719
25732
  captureVideoIdProps = _a.captureVideoIdProps,
25720
- _1 = _a.theme,
25721
- theme = _1 === void 0 ? 'default' : _1,
25722
- _2 = _a.assets,
25723
- assets = _2 === void 0 ? {} : _2,
25724
- _3 = _a.classNames,
25725
- classNames = _3 === void 0 ? {} : _3,
25726
- _4 = _a.colors,
25727
- colors = _4 === void 0 ? {} : _4,
25728
- _5 = _a.verbiage,
25729
- verbiage = _5 === void 0 ? {} : _5,
25730
- _6 = _a.geolocationEnabled,
25731
- geolocationEnabled = _6 === void 0 ? true : _6,
25732
- _7 = _a.geolocationRequired,
25733
- geolocationRequired = _7 === void 0 ? false : _7,
25734
- _8 = _a.debugMode,
25735
- debugMode = _8 === void 0 ? false : _8;
25733
+ _2 = _a.theme,
25734
+ theme = _2 === void 0 ? 'default' : _2,
25735
+ _3 = _a.assets,
25736
+ assets = _3 === void 0 ? {} : _3,
25737
+ _4 = _a.classNames,
25738
+ classNames = _4 === void 0 ? {} : _4,
25739
+ _5 = _a.colors,
25740
+ colors = _5 === void 0 ? {} : _5,
25741
+ _6 = _a.verbiage,
25742
+ verbiage = _6 === void 0 ? {} : _6,
25743
+ _7 = _a.geolocationEnabled,
25744
+ geolocationEnabled = _7 === void 0 ? true : _7,
25745
+ _8 = _a.geolocationRequired,
25746
+ geolocationRequired = _8 === void 0 ? false : _8,
25747
+ _9 = _a.debugMode,
25748
+ debugMode = _9 === void 0 ? false : _9;
25736
25749
  useLanguage(lang);
25737
25750
  useDebugLogging(debugMode);
25738
25751
  var idCaptureProps = React.useMemo(function () {
@@ -25771,6 +25784,7 @@
25771
25784
  onUserCancel: onUserCancel,
25772
25785
  onModelError: onSelfieCaptureModelError,
25773
25786
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
25787
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
25774
25788
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
25775
25789
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
25776
25790
  skipSuccessScreen: skipSuccessScreen,
@@ -25780,7 +25794,7 @@
25780
25794
  verbiage: verbiage.faceLiveness,
25781
25795
  debugMode: debugMode
25782
25796
  };
25783
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
25797
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
25784
25798
  var videoIdCaptureProps = React.useMemo(function () {
25785
25799
  return _assign({
25786
25800
  onExitCapture: onExitCapture,
@@ -27370,12 +27384,14 @@
27370
27384
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
27371
27385
  _c = _a.loadingOverlayMode,
27372
27386
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
27373
- _d = _a.timeoutDurationMs,
27374
- timeoutDurationMs = _d === void 0 ? 15000 : _d,
27375
- _e = _a.modelLoadTimeoutMs,
27376
- modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
27377
- _f = _a.skipSuccessScreen,
27378
- skipSuccessScreen = _f === void 0 ? false : _f,
27387
+ _d = _a.initialCaptureDelayMs,
27388
+ initialCaptureDelayMs = _d === void 0 ? 1000 : _d,
27389
+ _e = _a.timeoutDurationMs,
27390
+ timeoutDurationMs = _e === void 0 ? 15000 : _e,
27391
+ _f = _a.modelLoadTimeoutMs,
27392
+ modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
27393
+ _g = _a.skipSuccessScreen,
27394
+ skipSuccessScreen = _g === void 0 ? false : _g,
27379
27395
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
27380
27396
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
27381
27397
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -27391,28 +27407,28 @@
27391
27407
  onUserCancel = _a.onUserCancel,
27392
27408
  onModelError = _a.onModelError,
27393
27409
  onCameraAccessDenied = _a.onCameraAccessDenied,
27394
- _g = _a.captureAdditionalDocuments,
27395
- captureAdditionalDocuments = _g === void 0 ? [] : _g,
27396
- _h = _a.captureSignature,
27397
- captureSignature = _h === void 0 ? false : _h,
27398
- _j = _a.captureSignatureVideo,
27399
- captureSignatureVideo = _j === void 0 ? false : _j,
27400
- _k = _a.theme,
27401
- theme = _k === void 0 ? 'default' : _k,
27402
- _l = _a.assets,
27403
- assets = _l === void 0 ? {} : _l,
27404
- _m = _a.classNames,
27405
- classNames = _m === void 0 ? {} : _m,
27406
- _o = _a.colors,
27407
- colors = _o === void 0 ? {} : _o,
27408
- _p = _a.verbiage,
27409
- verbiage = _p === void 0 ? {} : _p,
27410
- _q = _a.geolocationEnabled,
27411
- geolocationEnabled = _q === void 0 ? true : _q,
27412
- _r = _a.geolocationRequired,
27413
- geolocationRequired = _r === void 0 ? false : _r,
27414
- _s = _a.debugMode,
27415
- debugMode = _s === void 0 ? false : _s;
27410
+ _h = _a.captureAdditionalDocuments,
27411
+ captureAdditionalDocuments = _h === void 0 ? [] : _h,
27412
+ _j = _a.captureSignature,
27413
+ captureSignature = _j === void 0 ? false : _j,
27414
+ _k = _a.captureSignatureVideo,
27415
+ captureSignatureVideo = _k === void 0 ? false : _k,
27416
+ _l = _a.theme,
27417
+ theme = _l === void 0 ? 'default' : _l,
27418
+ _m = _a.assets,
27419
+ assets = _m === void 0 ? {} : _m,
27420
+ _o = _a.classNames,
27421
+ classNames = _o === void 0 ? {} : _o,
27422
+ _p = _a.colors,
27423
+ colors = _p === void 0 ? {} : _p,
27424
+ _q = _a.verbiage,
27425
+ verbiage = _q === void 0 ? {} : _q,
27426
+ _r = _a.geolocationEnabled,
27427
+ geolocationEnabled = _r === void 0 ? true : _r,
27428
+ _s = _a.geolocationRequired,
27429
+ geolocationRequired = _s === void 0 ? false : _s,
27430
+ _t = _a.debugMode,
27431
+ debugMode = _t === void 0 ? false : _t;
27416
27432
  useLanguage(lang);
27417
27433
  useDebugLogging(debugMode);
27418
27434
  var faceLivenessProps = React.useMemo(function () {
@@ -27422,6 +27438,7 @@
27422
27438
  onExitAfterFailure: onExitAfterFailure,
27423
27439
  onModelError: onModelError,
27424
27440
  timeoutDurationMs: timeoutDurationMs,
27441
+ initialCaptureDelayMs: initialCaptureDelayMs,
27425
27442
  modelLoadTimeoutMs: modelLoadTimeoutMs,
27426
27443
  loadingOverlayMode: loadingOverlayMode,
27427
27444
  skipSuccessScreen: skipSuccessScreen,
@@ -27431,7 +27448,7 @@
27431
27448
  verbiage: verbiage.faceLiveness,
27432
27449
  debugMode: debugMode
27433
27450
  };
27434
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
27451
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
27435
27452
  var additionalDocumentCaptureProps = React.useMemo(function () {
27436
27453
  return {
27437
27454
  documents: captureAdditionalDocuments,