idmission-web-sdk 2.2.129 → 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.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.129';
206
+ var webSdkVersion = '2.2.131';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11566,29 +11566,31 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11566
11566
  onTimeout = _a.onTimeout,
11567
11567
  onDenied = _a.onDenied,
11568
11568
  onExit = _a.onExit,
11569
- _f = _a.timeoutDurationMs,
11570
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
11571
- _g = _a.silentFallback,
11572
- silentFallback = _g === void 0 ? false : _g,
11569
+ _f = _a.initialCaptureDelayMs,
11570
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
11571
+ _g = _a.timeoutDurationMs,
11572
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
11573
+ _h = _a.silentFallback,
11574
+ silentFallback = _h === void 0 ? false : _h,
11573
11575
  guidesComponent = _a.guidesComponent,
11574
11576
  disableCapturePreview = _a.disableCapturePreview,
11575
- _h = _a.classNames,
11576
- classNames = _h === void 0 ? {} : _h,
11577
- _j = _a.colors,
11578
- colors = _j === void 0 ? {} : _j,
11579
- _k = _a.verbiage,
11580
- rawVerbiage = _k === void 0 ? {} : _k,
11577
+ _j = _a.classNames,
11578
+ classNames = _j === void 0 ? {} : _j,
11579
+ _k = _a.colors,
11580
+ colors = _k === void 0 ? {} : _k,
11581
+ _l = _a.verbiage,
11582
+ rawVerbiage = _l === void 0 ? {} : _l,
11581
11583
  debugMode = _a.debugMode;
11582
- var _l = useContext(SubmissionContext),
11583
- checkLiveness = _l.checkLiveness,
11584
- submissionError = _l.submissionError;
11584
+ var _m = useContext(SubmissionContext),
11585
+ checkLiveness = _m.checkLiveness,
11586
+ submissionError = _m.submissionError;
11585
11587
  var modelError = useContext(SelfieGuidanceModelsContext).error;
11586
- var _m = useReducer(reducer$2, initialState$2),
11587
- state = _m[0],
11588
- dispatch = _m[1];
11589
- var _o = useState(null),
11590
- imageUrl = _o[0],
11591
- setImageUrl = _o[1];
11588
+ var _o = useReducer(reducer$2, initialState$2),
11589
+ state = _o[0],
11590
+ dispatch = _o[1];
11591
+ var _p = useState(null),
11592
+ imageUrl = _p[0],
11593
+ setImageUrl = _p[1];
11592
11594
  var rawCanvas = useRef(null);
11593
11595
  var cropCanvas = useRef(null);
11594
11596
  var resizeCanvas = useRef(null);
@@ -11758,6 +11760,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11758
11760
  type: 'guidanceUnsatisfied'
11759
11761
  });
11760
11762
  }, []);
11763
+ var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
11761
11764
  if (modelError) {
11762
11765
  return /*#__PURE__*/React__default.createElement(SelfieCaptureFallback, {
11763
11766
  key: state.timesLivenessCheckFailed,
@@ -11774,7 +11777,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11774
11777
  }), /*#__PURE__*/React__default.createElement(InvisibleCanvas, {
11775
11778
  ref: resizeCanvas
11776
11779
  }), /*#__PURE__*/React__default.createElement(SelfieCapture, {
11777
- shouldCapture: state.requestState === 'CAPTURING',
11780
+ shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
11778
11781
  onFaceDetected: onFaceDetected,
11779
11782
  onSelfieCaptureStarted: onSelfieCaptureStarted,
11780
11783
  onSelfieCaptured: onSelfieCaptured,
@@ -12253,62 +12256,64 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12253
12256
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
12254
12257
  customOverlayContent = _a.customOverlayContent,
12255
12258
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12256
- _f = _a.timeoutDurationMs,
12257
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
12258
- _g = _a.maxRetries,
12259
- maxRetries = _g === void 0 ? 2 : _g,
12260
- _h = _a.skipSuccessScreen,
12261
- skipSuccessScreen = _h === void 0 ? false : _h,
12262
- _j = _a.renderCameraFeed,
12263
- renderCameraFeed = _j === void 0 ? true : _j,
12264
- _k = _a.releaseCameraAccessOnExit,
12265
- releaseCameraAccessOnExit = _k === void 0 ? true : _k,
12266
- _l = _a.silentFallback,
12267
- silentFallback = _l === void 0 ? false : _l,
12268
- _m = _a.waitForIdCaptureModels,
12269
- waitForIdCaptureModels = _m === void 0 ? false : _m,
12259
+ _f = _a.initialCaptureDelayMs,
12260
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
12261
+ _g = _a.timeoutDurationMs,
12262
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
12263
+ _h = _a.maxRetries,
12264
+ maxRetries = _h === void 0 ? 2 : _h,
12265
+ _j = _a.skipSuccessScreen,
12266
+ skipSuccessScreen = _j === void 0 ? false : _j,
12267
+ _k = _a.renderCameraFeed,
12268
+ renderCameraFeed = _k === void 0 ? true : _k,
12269
+ _l = _a.releaseCameraAccessOnExit,
12270
+ releaseCameraAccessOnExit = _l === void 0 ? true : _l,
12271
+ _m = _a.silentFallback,
12272
+ silentFallback = _m === void 0 ? false : _m,
12273
+ _o = _a.waitForIdCaptureModels,
12274
+ waitForIdCaptureModels = _o === void 0 ? false : _o,
12270
12275
  guidesComponent = _a.guidesComponent,
12271
12276
  disableCapturePreview = _a.disableCapturePreview,
12272
- _o = _a.assets,
12273
- assets = _o === void 0 ? {} : _o,
12274
- _p = _a.classNames,
12275
- classNames = _p === void 0 ? {} : _p,
12276
- _q = _a.colors,
12277
- colors = _q === void 0 ? {} : _q,
12278
- _r = _a.verbiage,
12279
- verbiage = _r === void 0 ? {} : _r,
12280
- _s = _a.debugMode,
12281
- debugMode = _s === void 0 ? false : _s;
12282
- var _t = useContext(SubmissionContext),
12283
- submissionResponse = _t.submissionResponse,
12284
- livenessCheckRequest = _t.livenessCheckRequest,
12285
- setSelfieImage = _t.setSelfieImage,
12286
- logSelfieCaptureAttempt = _t.logSelfieCaptureAttempt;
12287
- var _u = useCameraStore(useShallow(function (state) {
12277
+ _p = _a.assets,
12278
+ assets = _p === void 0 ? {} : _p,
12279
+ _q = _a.classNames,
12280
+ classNames = _q === void 0 ? {} : _q,
12281
+ _r = _a.colors,
12282
+ colors = _r === void 0 ? {} : _r,
12283
+ _s = _a.verbiage,
12284
+ verbiage = _s === void 0 ? {} : _s,
12285
+ _t = _a.debugMode,
12286
+ debugMode = _t === void 0 ? false : _t;
12287
+ var _u = useContext(SubmissionContext),
12288
+ submissionResponse = _u.submissionResponse,
12289
+ livenessCheckRequest = _u.livenessCheckRequest,
12290
+ setSelfieImage = _u.setSelfieImage,
12291
+ logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt;
12292
+ var _v = useCameraStore(useShallow(function (state) {
12288
12293
  return {
12289
12294
  cameraAccessDenied: state.cameraAccessDenied,
12290
12295
  requestCameraAccess: state.requestCameraAccess,
12291
12296
  releaseCameraAccess: state.releaseCameraAccess
12292
12297
  };
12293
12298
  })),
12294
- cameraAccessDenied = _u.cameraAccessDenied,
12295
- requestCameraAccess = _u.requestCameraAccess,
12296
- releaseCameraAccess = _u.releaseCameraAccess;
12297
- var _v = useState(''),
12298
- faceCropImageUrl = _v[0],
12299
- setFaceCropImageUrl = _v[1];
12300
- var _w = useState(0),
12301
- retryCount = _w[0],
12302
- setRetryCount = _w[1];
12303
- var _x = useState('LOADING'),
12304
- captureState = _x[0],
12305
- setCaptureState = _x[1];
12299
+ cameraAccessDenied = _v.cameraAccessDenied,
12300
+ requestCameraAccess = _v.requestCameraAccess,
12301
+ releaseCameraAccess = _v.releaseCameraAccess;
12302
+ var _w = useState(''),
12303
+ faceCropImageUrl = _w[0],
12304
+ setFaceCropImageUrl = _w[1];
12305
+ var _x = useState(0),
12306
+ retryCount = _x[0],
12307
+ setRetryCount = _x[1];
12308
+ var _y = useState('LOADING'),
12309
+ captureState = _y[0],
12310
+ setCaptureState = _y[1];
12306
12311
  var captureStartedAt = useRef();
12307
12312
  var operationStartedAt = useRef();
12308
12313
  var livenessScore = useRef();
12309
- var _y = useContext(SelfieGuidanceModelsContext),
12310
- start = _y.start,
12311
- stop = _y.stop;
12314
+ var _z = useContext(SelfieGuidanceModelsContext),
12315
+ start = _z.start,
12316
+ stop = _z.stop;
12312
12317
  useEffect(function () {
12313
12318
  if (captureState !== 'CAPTURING') return;
12314
12319
  operationStartedAt.current = new Date();
@@ -12368,9 +12373,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12368
12373
  setCaptureState('FAILED');
12369
12374
  onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
12370
12375
  }, [onDenied, submissionResponse, livenessCheckRequest]);
12371
- var _z = useState(0),
12372
- attempt = _z[0],
12373
- setAttempt = _z[1];
12376
+ var _0 = useState(0),
12377
+ attempt = _0[0],
12378
+ setAttempt = _0[1];
12374
12379
  var onExitCallback = useCallback(function () {
12375
12380
  setAttempt(function (n) {
12376
12381
  return n + 1;
@@ -12433,6 +12438,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12433
12438
  onTimeout: onTimeout,
12434
12439
  onDenied: onDeniedCallback,
12435
12440
  onExit: onExitCallback,
12441
+ initialCaptureDelayMs: initialCaptureDelayMs,
12436
12442
  timeoutDurationMs: timeoutDurationMs,
12437
12443
  silentFallback: silentFallback,
12438
12444
  guidesComponent: guidesComponent,
@@ -15377,12 +15383,14 @@ var FaceValidation = function FaceValidation(_a) {
15377
15383
  predictGender = _a.predictGender,
15378
15384
  _d = _a.loadingOverlayMode,
15379
15385
  loadingOverlayMode = _d === void 0 ? 'default' : _d,
15380
- _e = _a.timeoutDurationMs,
15381
- timeoutDurationMs = _e === void 0 ? 15000 : _e,
15382
- _f = _a.modelLoadTimeoutMs,
15383
- modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
15384
- _g = _a.skipSuccessScreen,
15385
- skipSuccessScreen = _g === void 0 ? false : _g,
15386
+ _e = _a.initialCaptureDelayMs,
15387
+ initialCaptureDelayMs = _e === void 0 ? 1000 : _e,
15388
+ _f = _a.timeoutDurationMs,
15389
+ timeoutDurationMs = _f === void 0 ? 15000 : _f,
15390
+ _g = _a.modelLoadTimeoutMs,
15391
+ modelLoadTimeoutMs = _g === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _g,
15392
+ _h = _a.skipSuccessScreen,
15393
+ skipSuccessScreen = _h === void 0 ? false : _h,
15386
15394
  idCardForFaceMatch = _a.idCardForFaceMatch,
15387
15395
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15388
15396
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -15398,23 +15406,24 @@ var FaceValidation = function FaceValidation(_a) {
15398
15406
  onUserCancel = _a.onUserCancel,
15399
15407
  onModelError = _a.onModelError,
15400
15408
  onCameraAccessDenied = _a.onCameraAccessDenied,
15401
- _h = _a.theme,
15402
- theme = _h === void 0 ? 'default' : _h,
15409
+ _j = _a.theme,
15410
+ theme = _j === void 0 ? 'default' : _j,
15403
15411
  assets = _a.assets,
15404
15412
  classNames = _a.classNames,
15405
15413
  colors = _a.colors,
15406
15414
  verbiage = _a.verbiage,
15407
- _j = _a.geolocationEnabled,
15408
- geolocationEnabled = _j === void 0 ? true : _j,
15409
- _k = _a.geolocationRequired,
15410
- geolocationRequired = _k === void 0 ? false : _k,
15411
- _l = _a.debugMode,
15412
- debugMode = _l === void 0 ? false : _l;
15415
+ _k = _a.geolocationEnabled,
15416
+ geolocationEnabled = _k === void 0 ? true : _k,
15417
+ _l = _a.geolocationRequired,
15418
+ geolocationRequired = _l === void 0 ? false : _l,
15419
+ _m = _a.debugMode,
15420
+ debugMode = _m === void 0 ? false : _m;
15413
15421
  useLanguage(lang);
15414
15422
  useDebugLogging(debugMode);
15415
15423
  var faceLivenessProps = useMemo(function () {
15416
15424
  return {
15417
15425
  loadingOverlayMode: loadingOverlayMode,
15426
+ initialCaptureDelayMs: initialCaptureDelayMs,
15418
15427
  timeoutDurationMs: timeoutDurationMs,
15419
15428
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15420
15429
  skipSuccessScreen: skipSuccessScreen,
@@ -15431,7 +15440,7 @@ var FaceValidation = function FaceValidation(_a) {
15431
15440
  verbiage: verbiage,
15432
15441
  debugMode: debugMode
15433
15442
  };
15434
- }, [assets, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
15443
+ }, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
15435
15444
  return /*#__PURE__*/React__default.createElement(AuthProvider, {
15436
15445
  sessionId: sessionId,
15437
15446
  authUrl: authUrl
@@ -15516,35 +15525,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15516
15525
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
15517
15526
  _g = _a.faceLivenessLoadingOverlayMode,
15518
15527
  faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
15519
- _h = _a.faceLivenessTimeoutDurationMs,
15520
- faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
15521
- _j = _a.skipSuccessScreen,
15522
- skipSuccessScreen = _j === void 0 ? false : _j,
15528
+ _h = _a.faceLivenessInitialCaptureDelayMs,
15529
+ faceLivenessInitialCaptureDelayMs = _h === void 0 ? 1000 : _h,
15530
+ _j = _a.faceLivenessTimeoutDurationMs,
15531
+ faceLivenessTimeoutDurationMs = _j === void 0 ? 15000 : _j,
15532
+ _k = _a.skipSuccessScreen,
15533
+ skipSuccessScreen = _k === void 0 ? false : _k,
15523
15534
  idCaptureInstructions = _a.idCaptureInstructions,
15524
- _k = _a.idCaptureGuideType,
15525
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
15526
- _l = _a.idCaptureGuideImages,
15527
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
15528
- _m = _a.idCapturePortraitGuidesOnMobile,
15529
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
15530
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15531
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
15532
- _p = _a.idCaptureModelLoadTimeoutMs,
15533
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
15534
- _q = _a.idCaptureForceFallbackMode,
15535
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
15536
- _r = _a.idCaptureAllowUploadingDocumentsFromStorage,
15537
- idCaptureAllowUploadingDocumentsFromStorage = _r === void 0 ? false : _r,
15538
- _s = _a.separateIdCardCaptureSequence,
15539
- separateIdCardCaptureSequence = _s === void 0 ? false : _s,
15540
- _t = _a.selfieCaptureModelLoadTimeoutMs,
15541
- selfieCaptureModelLoadTimeoutMs = _t === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _t,
15542
- _u = _a.allowIdCardBackToFrontCapture,
15543
- allowIdCardBackToFrontCapture = _u === void 0 ? false : _u,
15544
- _v = _a.enableOverrideWrongDocumentTypeDialog,
15545
- enableOverrideWrongDocumentTypeDialog = _v === void 0 ? false : _v,
15546
- _w = _a.allowOverrideWrongDocumentTypeAfterMs,
15547
- allowOverrideWrongDocumentTypeAfterMs = _w === void 0 ? 8000 : _w,
15535
+ _l = _a.idCaptureGuideType,
15536
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15537
+ _m = _a.idCaptureGuideImages,
15538
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
15539
+ _o = _a.idCapturePortraitGuidesOnMobile,
15540
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
15541
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15542
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
15543
+ _q = _a.idCaptureModelLoadTimeoutMs,
15544
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
15545
+ _r = _a.idCaptureForceFallbackMode,
15546
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
15547
+ _s = _a.idCaptureAllowUploadingDocumentsFromStorage,
15548
+ idCaptureAllowUploadingDocumentsFromStorage = _s === void 0 ? false : _s,
15549
+ _t = _a.separateIdCardCaptureSequence,
15550
+ separateIdCardCaptureSequence = _t === void 0 ? false : _t,
15551
+ _u = _a.selfieCaptureModelLoadTimeoutMs,
15552
+ selfieCaptureModelLoadTimeoutMs = _u === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _u,
15553
+ _v = _a.allowIdCardBackToFrontCapture,
15554
+ allowIdCardBackToFrontCapture = _v === void 0 ? false : _v,
15555
+ _w = _a.enableOverrideWrongDocumentTypeDialog,
15556
+ enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
15557
+ _x = _a.allowOverrideWrongDocumentTypeAfterMs,
15558
+ allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
15548
15559
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15549
15560
  onDocumentUploaded = _a.onDocumentUploaded,
15550
15561
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -15562,28 +15573,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15562
15573
  onIdCaptureModelError = _a.onIdCaptureModelError,
15563
15574
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
15564
15575
  onCameraAccessDenied = _a.onCameraAccessDenied,
15565
- _x = _a.captureSignature,
15566
- captureSignature = _x === void 0 ? false : _x,
15567
- _y = _a.captureSignatureVideo,
15568
- captureSignatureVideo = _y === void 0 ? false : _y,
15569
- _z = _a.captureAdditionalDocuments,
15570
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
15571
- _0 = _a.theme,
15572
- theme = _0 === void 0 ? 'default' : _0,
15573
- _1 = _a.assets,
15574
- assets = _1 === void 0 ? {} : _1,
15575
- _2 = _a.classNames,
15576
- classNames = _2 === void 0 ? {} : _2,
15577
- _3 = _a.colors,
15578
- colors = _3 === void 0 ? {} : _3,
15579
- _4 = _a.verbiage,
15580
- verbiage = _4 === void 0 ? {} : _4,
15581
- _5 = _a.geolocationEnabled,
15582
- geolocationEnabled = _5 === void 0 ? true : _5,
15583
- _6 = _a.geolocationRequired,
15584
- geolocationRequired = _6 === void 0 ? false : _6,
15585
- _7 = _a.debugMode,
15586
- debugMode = _7 === void 0 ? false : _7;
15576
+ _y = _a.captureSignature,
15577
+ captureSignature = _y === void 0 ? false : _y,
15578
+ _z = _a.captureSignatureVideo,
15579
+ captureSignatureVideo = _z === void 0 ? false : _z,
15580
+ _0 = _a.captureAdditionalDocuments,
15581
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
15582
+ _1 = _a.theme,
15583
+ theme = _1 === void 0 ? 'default' : _1,
15584
+ _2 = _a.assets,
15585
+ assets = _2 === void 0 ? {} : _2,
15586
+ _3 = _a.classNames,
15587
+ classNames = _3 === void 0 ? {} : _3,
15588
+ _4 = _a.colors,
15589
+ colors = _4 === void 0 ? {} : _4,
15590
+ _5 = _a.verbiage,
15591
+ verbiage = _5 === void 0 ? {} : _5,
15592
+ _6 = _a.geolocationEnabled,
15593
+ geolocationEnabled = _6 === void 0 ? true : _6,
15594
+ _7 = _a.geolocationRequired,
15595
+ geolocationRequired = _7 === void 0 ? false : _7,
15596
+ _8 = _a.debugMode,
15597
+ debugMode = _8 === void 0 ? false : _8;
15587
15598
  useLanguage(lang);
15588
15599
  useDebugLogging(debugMode);
15589
15600
  var idCaptureProps = useMemo(function () {
@@ -15619,6 +15630,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15619
15630
  var faceLivenessProps = useMemo(function () {
15620
15631
  return {
15621
15632
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
15633
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
15622
15634
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
15623
15635
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
15624
15636
  onDenied: onDenied,
@@ -15633,7 +15645,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15633
15645
  verbiage: verbiage.faceLiveness,
15634
15646
  debugMode: debugMode
15635
15647
  };
15636
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15648
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15637
15649
  var additionalDocumentCaptureProps = useMemo(function () {
15638
15650
  return {
15639
15651
  documents: captureAdditionalDocuments,
@@ -15768,37 +15780,39 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15768
15780
  allowSinglePageIdCapture = _e === void 0 ? false : _e,
15769
15781
  _f = _a.idCaptureThresholds,
15770
15782
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
15771
- _g = _a.faceLivenessTimeoutDurationMs,
15772
- faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
15773
- _h = _a.faceLivenessLoadingOverlayMode,
15774
- faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
15775
- _j = _a.skipSuccessScreen,
15776
- skipSuccessScreen = _j === void 0 ? false : _j,
15783
+ _g = _a.faceLivenessInitialCaptureDelayMs,
15784
+ faceLivenessInitialCaptureDelayMs = _g === void 0 ? 1000 : _g,
15785
+ _h = _a.faceLivenessTimeoutDurationMs,
15786
+ faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
15787
+ _j = _a.faceLivenessLoadingOverlayMode,
15788
+ faceLivenessLoadingOverlayMode = _j === void 0 ? 'default' : _j,
15789
+ _k = _a.skipSuccessScreen,
15790
+ skipSuccessScreen = _k === void 0 ? false : _k,
15777
15791
  idCaptureInstructions = _a.idCaptureInstructions,
15778
- _k = _a.idCaptureGuideType,
15779
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
15780
- _l = _a.idCaptureGuideImages,
15781
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
15782
- _m = _a.idCapturePortraitGuidesOnMobile,
15783
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
15784
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15785
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
15786
- _p = _a.idCaptureModelLoadTimeoutMs,
15787
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
15788
- _q = _a.idCaptureForceFallbackMode,
15789
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
15790
- _r = _a.selfieCaptureModelLoadTimeoutMs,
15791
- selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
15792
- _s = _a.allowIdCardBackToFrontCapture,
15793
- allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
15794
- _t = _a.enableOverrideWrongDocumentTypeDialog,
15795
- enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
15796
- _u = _a.allowOverrideWrongDocumentTypeAfterMs,
15797
- allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
15798
- _v = _a.allowUploadingDocumentsFromStorage,
15799
- allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
15800
- _w = _a.separateIdCardCaptureSequence,
15801
- separateIdCardCaptureSequence = _w === void 0 ? false : _w,
15792
+ _l = _a.idCaptureGuideType,
15793
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15794
+ _m = _a.idCaptureGuideImages,
15795
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
15796
+ _o = _a.idCapturePortraitGuidesOnMobile,
15797
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
15798
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15799
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
15800
+ _q = _a.idCaptureModelLoadTimeoutMs,
15801
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
15802
+ _r = _a.idCaptureForceFallbackMode,
15803
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
15804
+ _s = _a.selfieCaptureModelLoadTimeoutMs,
15805
+ selfieCaptureModelLoadTimeoutMs = _s === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _s,
15806
+ _t = _a.allowIdCardBackToFrontCapture,
15807
+ allowIdCardBackToFrontCapture = _t === void 0 ? false : _t,
15808
+ _u = _a.enableOverrideWrongDocumentTypeDialog,
15809
+ enableOverrideWrongDocumentTypeDialog = _u === void 0 ? false : _u,
15810
+ _v = _a.allowOverrideWrongDocumentTypeAfterMs,
15811
+ allowOverrideWrongDocumentTypeAfterMs = _v === void 0 ? 8000 : _v,
15812
+ _w = _a.allowUploadingDocumentsFromStorage,
15813
+ allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
15814
+ _x = _a.separateIdCardCaptureSequence,
15815
+ separateIdCardCaptureSequence = _x === void 0 ? false : _x,
15802
15816
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15803
15817
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
15804
15818
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -15815,31 +15829,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15815
15829
  onIdCaptureModelError = _a.onIdCaptureModelError,
15816
15830
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
15817
15831
  onCameraAccessDenied = _a.onCameraAccessDenied,
15818
- _x = _a.captureSignature,
15819
- captureSignature = _x === void 0 ? false : _x,
15820
- _y = _a.captureSignatureVideo,
15821
- captureSignatureVideo = _y === void 0 ? false : _y,
15822
- _z = _a.captureAdditionalDocuments,
15823
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
15824
- _0 = _a.captureVideoId,
15825
- captureVideoId = _0 === void 0 ? false : _0,
15832
+ _y = _a.captureSignature,
15833
+ captureSignature = _y === void 0 ? false : _y,
15834
+ _z = _a.captureSignatureVideo,
15835
+ captureSignatureVideo = _z === void 0 ? false : _z,
15836
+ _0 = _a.captureAdditionalDocuments,
15837
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
15838
+ _1 = _a.captureVideoId,
15839
+ captureVideoId = _1 === void 0 ? false : _1,
15826
15840
  captureVideoIdProps = _a.captureVideoIdProps,
15827
- _1 = _a.theme,
15828
- theme = _1 === void 0 ? 'default' : _1,
15829
- _2 = _a.assets,
15830
- assets = _2 === void 0 ? {} : _2,
15831
- _3 = _a.classNames,
15832
- classNames = _3 === void 0 ? {} : _3,
15833
- _4 = _a.colors,
15834
- colors = _4 === void 0 ? {} : _4,
15835
- _5 = _a.verbiage,
15836
- verbiage = _5 === void 0 ? {} : _5,
15837
- _6 = _a.geolocationEnabled,
15838
- geolocationEnabled = _6 === void 0 ? true : _6,
15839
- _7 = _a.geolocationRequired,
15840
- geolocationRequired = _7 === void 0 ? false : _7,
15841
- _8 = _a.debugMode,
15842
- debugMode = _8 === void 0 ? false : _8;
15841
+ _2 = _a.theme,
15842
+ theme = _2 === void 0 ? 'default' : _2,
15843
+ _3 = _a.assets,
15844
+ assets = _3 === void 0 ? {} : _3,
15845
+ _4 = _a.classNames,
15846
+ classNames = _4 === void 0 ? {} : _4,
15847
+ _5 = _a.colors,
15848
+ colors = _5 === void 0 ? {} : _5,
15849
+ _6 = _a.verbiage,
15850
+ verbiage = _6 === void 0 ? {} : _6,
15851
+ _7 = _a.geolocationEnabled,
15852
+ geolocationEnabled = _7 === void 0 ? true : _7,
15853
+ _8 = _a.geolocationRequired,
15854
+ geolocationRequired = _8 === void 0 ? false : _8,
15855
+ _9 = _a.debugMode,
15856
+ debugMode = _9 === void 0 ? false : _9;
15843
15857
  useLanguage(lang);
15844
15858
  useDebugLogging(debugMode);
15845
15859
  var idCaptureProps = useMemo(function () {
@@ -15878,6 +15892,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15878
15892
  onUserCancel: onUserCancel,
15879
15893
  onModelError: onSelfieCaptureModelError,
15880
15894
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
15895
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
15881
15896
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
15882
15897
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
15883
15898
  skipSuccessScreen: skipSuccessScreen,
@@ -15887,7 +15902,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15887
15902
  verbiage: verbiage.faceLiveness,
15888
15903
  debugMode: debugMode
15889
15904
  };
15890
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15905
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15891
15906
  var videoIdCaptureProps = useMemo(function () {
15892
15907
  return _assign({
15893
15908
  onExitCapture: onExitCapture,
@@ -17477,12 +17492,14 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17477
17492
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
17478
17493
  _c = _a.loadingOverlayMode,
17479
17494
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
17480
- _d = _a.timeoutDurationMs,
17481
- timeoutDurationMs = _d === void 0 ? 15000 : _d,
17482
- _e = _a.modelLoadTimeoutMs,
17483
- modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
17484
- _f = _a.skipSuccessScreen,
17485
- skipSuccessScreen = _f === void 0 ? false : _f,
17495
+ _d = _a.initialCaptureDelayMs,
17496
+ initialCaptureDelayMs = _d === void 0 ? 1000 : _d,
17497
+ _e = _a.timeoutDurationMs,
17498
+ timeoutDurationMs = _e === void 0 ? 15000 : _e,
17499
+ _f = _a.modelLoadTimeoutMs,
17500
+ modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
17501
+ _g = _a.skipSuccessScreen,
17502
+ skipSuccessScreen = _g === void 0 ? false : _g,
17486
17503
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
17487
17504
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
17488
17505
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -17498,28 +17515,28 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17498
17515
  onUserCancel = _a.onUserCancel,
17499
17516
  onModelError = _a.onModelError,
17500
17517
  onCameraAccessDenied = _a.onCameraAccessDenied,
17501
- _g = _a.captureAdditionalDocuments,
17502
- captureAdditionalDocuments = _g === void 0 ? [] : _g,
17503
- _h = _a.captureSignature,
17504
- captureSignature = _h === void 0 ? false : _h,
17505
- _j = _a.captureSignatureVideo,
17506
- captureSignatureVideo = _j === void 0 ? false : _j,
17507
- _k = _a.theme,
17508
- theme = _k === void 0 ? 'default' : _k,
17509
- _l = _a.assets,
17510
- assets = _l === void 0 ? {} : _l,
17511
- _m = _a.classNames,
17512
- classNames = _m === void 0 ? {} : _m,
17513
- _o = _a.colors,
17514
- colors = _o === void 0 ? {} : _o,
17515
- _p = _a.verbiage,
17516
- verbiage = _p === void 0 ? {} : _p,
17517
- _q = _a.geolocationEnabled,
17518
- geolocationEnabled = _q === void 0 ? true : _q,
17519
- _r = _a.geolocationRequired,
17520
- geolocationRequired = _r === void 0 ? false : _r,
17521
- _s = _a.debugMode,
17522
- debugMode = _s === void 0 ? false : _s;
17518
+ _h = _a.captureAdditionalDocuments,
17519
+ captureAdditionalDocuments = _h === void 0 ? [] : _h,
17520
+ _j = _a.captureSignature,
17521
+ captureSignature = _j === void 0 ? false : _j,
17522
+ _k = _a.captureSignatureVideo,
17523
+ captureSignatureVideo = _k === void 0 ? false : _k,
17524
+ _l = _a.theme,
17525
+ theme = _l === void 0 ? 'default' : _l,
17526
+ _m = _a.assets,
17527
+ assets = _m === void 0 ? {} : _m,
17528
+ _o = _a.classNames,
17529
+ classNames = _o === void 0 ? {} : _o,
17530
+ _p = _a.colors,
17531
+ colors = _p === void 0 ? {} : _p,
17532
+ _q = _a.verbiage,
17533
+ verbiage = _q === void 0 ? {} : _q,
17534
+ _r = _a.geolocationEnabled,
17535
+ geolocationEnabled = _r === void 0 ? true : _r,
17536
+ _s = _a.geolocationRequired,
17537
+ geolocationRequired = _s === void 0 ? false : _s,
17538
+ _t = _a.debugMode,
17539
+ debugMode = _t === void 0 ? false : _t;
17523
17540
  useLanguage(lang);
17524
17541
  useDebugLogging(debugMode);
17525
17542
  var faceLivenessProps = useMemo(function () {
@@ -17529,6 +17546,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17529
17546
  onExitAfterFailure: onExitAfterFailure,
17530
17547
  onModelError: onModelError,
17531
17548
  timeoutDurationMs: timeoutDurationMs,
17549
+ initialCaptureDelayMs: initialCaptureDelayMs,
17532
17550
  modelLoadTimeoutMs: modelLoadTimeoutMs,
17533
17551
  loadingOverlayMode: loadingOverlayMode,
17534
17552
  skipSuccessScreen: skipSuccessScreen,
@@ -17538,7 +17556,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17538
17556
  verbiage: verbiage.faceLiveness,
17539
17557
  debugMode: debugMode
17540
17558
  };
17541
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
17559
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
17542
17560
  var additionalDocumentCaptureProps = useMemo(function () {
17543
17561
  return {
17544
17562
  documents: captureAdditionalDocuments,