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.
@@ -233,7 +233,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
233
233
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
234
234
  };
235
235
 
236
- var webSdkVersion = '2.2.130';
236
+ var webSdkVersion = '2.2.131';
237
237
 
238
238
  function getPlatform() {
239
239
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11596,29 +11596,31 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11596
11596
  onTimeout = _a.onTimeout,
11597
11597
  onDenied = _a.onDenied,
11598
11598
  onExit = _a.onExit,
11599
- _f = _a.timeoutDurationMs,
11600
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
11601
- _g = _a.silentFallback,
11602
- silentFallback = _g === void 0 ? false : _g,
11599
+ _f = _a.initialCaptureDelayMs,
11600
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
11601
+ _g = _a.timeoutDurationMs,
11602
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
11603
+ _h = _a.silentFallback,
11604
+ silentFallback = _h === void 0 ? false : _h,
11603
11605
  guidesComponent = _a.guidesComponent,
11604
11606
  disableCapturePreview = _a.disableCapturePreview,
11605
- _h = _a.classNames,
11606
- classNames = _h === void 0 ? {} : _h,
11607
- _j = _a.colors,
11608
- colors = _j === void 0 ? {} : _j,
11609
- _k = _a.verbiage,
11610
- rawVerbiage = _k === void 0 ? {} : _k,
11607
+ _j = _a.classNames,
11608
+ classNames = _j === void 0 ? {} : _j,
11609
+ _k = _a.colors,
11610
+ colors = _k === void 0 ? {} : _k,
11611
+ _l = _a.verbiage,
11612
+ rawVerbiage = _l === void 0 ? {} : _l,
11611
11613
  debugMode = _a.debugMode;
11612
- var _l = React.useContext(SubmissionContext),
11613
- checkLiveness = _l.checkLiveness,
11614
- submissionError = _l.submissionError;
11614
+ var _m = React.useContext(SubmissionContext),
11615
+ checkLiveness = _m.checkLiveness,
11616
+ submissionError = _m.submissionError;
11615
11617
  var modelError = React.useContext(SelfieGuidanceModelsContext).error;
11616
- var _m = React.useReducer(reducer$2, initialState$2),
11617
- state = _m[0],
11618
- dispatch = _m[1];
11619
- var _o = React.useState(null),
11620
- imageUrl = _o[0],
11621
- setImageUrl = _o[1];
11618
+ var _o = React.useReducer(reducer$2, initialState$2),
11619
+ state = _o[0],
11620
+ dispatch = _o[1];
11621
+ var _p = React.useState(null),
11622
+ imageUrl = _p[0],
11623
+ setImageUrl = _p[1];
11622
11624
  var rawCanvas = React.useRef(null);
11623
11625
  var cropCanvas = React.useRef(null);
11624
11626
  var resizeCanvas = React.useRef(null);
@@ -11788,7 +11790,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11788
11790
  type: 'guidanceUnsatisfied'
11789
11791
  });
11790
11792
  }, []);
11791
- var been1s = useTimeout(1000).timedOut;
11793
+ var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
11792
11794
  if (modelError) {
11793
11795
  return /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureFallback, {
11794
11796
  key: state.timesLivenessCheckFailed,
@@ -11805,7 +11807,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
11805
11807
  }), /*#__PURE__*/React__namespace.default.createElement(InvisibleCanvas, {
11806
11808
  ref: resizeCanvas
11807
11809
  }), /*#__PURE__*/React__namespace.default.createElement(SelfieCapture, {
11808
- shouldCapture: state.requestState === 'CAPTURING' && been1s,
11810
+ shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
11809
11811
  onFaceDetected: onFaceDetected,
11810
11812
  onSelfieCaptureStarted: onSelfieCaptureStarted,
11811
11813
  onSelfieCaptured: onSelfieCaptured,
@@ -12284,62 +12286,64 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12284
12286
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
12285
12287
  customOverlayContent = _a.customOverlayContent,
12286
12288
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12287
- _f = _a.timeoutDurationMs,
12288
- timeoutDurationMs = _f === void 0 ? 15000 : _f,
12289
- _g = _a.maxRetries,
12290
- maxRetries = _g === void 0 ? 2 : _g,
12291
- _h = _a.skipSuccessScreen,
12292
- skipSuccessScreen = _h === void 0 ? false : _h,
12293
- _j = _a.renderCameraFeed,
12294
- renderCameraFeed = _j === void 0 ? true : _j,
12295
- _k = _a.releaseCameraAccessOnExit,
12296
- releaseCameraAccessOnExit = _k === void 0 ? true : _k,
12297
- _l = _a.silentFallback,
12298
- silentFallback = _l === void 0 ? false : _l,
12299
- _m = _a.waitForIdCaptureModels,
12300
- waitForIdCaptureModels = _m === void 0 ? false : _m,
12289
+ _f = _a.initialCaptureDelayMs,
12290
+ initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
12291
+ _g = _a.timeoutDurationMs,
12292
+ timeoutDurationMs = _g === void 0 ? 15000 : _g,
12293
+ _h = _a.maxRetries,
12294
+ maxRetries = _h === void 0 ? 2 : _h,
12295
+ _j = _a.skipSuccessScreen,
12296
+ skipSuccessScreen = _j === void 0 ? false : _j,
12297
+ _k = _a.renderCameraFeed,
12298
+ renderCameraFeed = _k === void 0 ? true : _k,
12299
+ _l = _a.releaseCameraAccessOnExit,
12300
+ releaseCameraAccessOnExit = _l === void 0 ? true : _l,
12301
+ _m = _a.silentFallback,
12302
+ silentFallback = _m === void 0 ? false : _m,
12303
+ _o = _a.waitForIdCaptureModels,
12304
+ waitForIdCaptureModels = _o === void 0 ? false : _o,
12301
12305
  guidesComponent = _a.guidesComponent,
12302
12306
  disableCapturePreview = _a.disableCapturePreview,
12303
- _o = _a.assets,
12304
- assets = _o === void 0 ? {} : _o,
12305
- _p = _a.classNames,
12306
- classNames = _p === void 0 ? {} : _p,
12307
- _q = _a.colors,
12308
- colors = _q === void 0 ? {} : _q,
12309
- _r = _a.verbiage,
12310
- verbiage = _r === void 0 ? {} : _r,
12311
- _s = _a.debugMode,
12312
- debugMode = _s === void 0 ? false : _s;
12313
- var _t = React.useContext(SubmissionContext),
12314
- submissionResponse = _t.submissionResponse,
12315
- livenessCheckRequest = _t.livenessCheckRequest,
12316
- setSelfieImage = _t.setSelfieImage,
12317
- logSelfieCaptureAttempt = _t.logSelfieCaptureAttempt;
12318
- var _u = useCameraStore(shallow.useShallow(function (state) {
12307
+ _p = _a.assets,
12308
+ assets = _p === void 0 ? {} : _p,
12309
+ _q = _a.classNames,
12310
+ classNames = _q === void 0 ? {} : _q,
12311
+ _r = _a.colors,
12312
+ colors = _r === void 0 ? {} : _r,
12313
+ _s = _a.verbiage,
12314
+ verbiage = _s === void 0 ? {} : _s,
12315
+ _t = _a.debugMode,
12316
+ debugMode = _t === void 0 ? false : _t;
12317
+ var _u = React.useContext(SubmissionContext),
12318
+ submissionResponse = _u.submissionResponse,
12319
+ livenessCheckRequest = _u.livenessCheckRequest,
12320
+ setSelfieImage = _u.setSelfieImage,
12321
+ logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt;
12322
+ var _v = useCameraStore(shallow.useShallow(function (state) {
12319
12323
  return {
12320
12324
  cameraAccessDenied: state.cameraAccessDenied,
12321
12325
  requestCameraAccess: state.requestCameraAccess,
12322
12326
  releaseCameraAccess: state.releaseCameraAccess
12323
12327
  };
12324
12328
  })),
12325
- cameraAccessDenied = _u.cameraAccessDenied,
12326
- requestCameraAccess = _u.requestCameraAccess,
12327
- releaseCameraAccess = _u.releaseCameraAccess;
12328
- var _v = React.useState(''),
12329
- faceCropImageUrl = _v[0],
12330
- setFaceCropImageUrl = _v[1];
12331
- var _w = React.useState(0),
12332
- retryCount = _w[0],
12333
- setRetryCount = _w[1];
12334
- var _x = React.useState('LOADING'),
12335
- captureState = _x[0],
12336
- setCaptureState = _x[1];
12329
+ cameraAccessDenied = _v.cameraAccessDenied,
12330
+ requestCameraAccess = _v.requestCameraAccess,
12331
+ releaseCameraAccess = _v.releaseCameraAccess;
12332
+ var _w = React.useState(''),
12333
+ faceCropImageUrl = _w[0],
12334
+ setFaceCropImageUrl = _w[1];
12335
+ var _x = React.useState(0),
12336
+ retryCount = _x[0],
12337
+ setRetryCount = _x[1];
12338
+ var _y = React.useState('LOADING'),
12339
+ captureState = _y[0],
12340
+ setCaptureState = _y[1];
12337
12341
  var captureStartedAt = React.useRef();
12338
12342
  var operationStartedAt = React.useRef();
12339
12343
  var livenessScore = React.useRef();
12340
- var _y = React.useContext(SelfieGuidanceModelsContext),
12341
- start = _y.start,
12342
- stop = _y.stop;
12344
+ var _z = React.useContext(SelfieGuidanceModelsContext),
12345
+ start = _z.start,
12346
+ stop = _z.stop;
12343
12347
  React.useEffect(function () {
12344
12348
  if (captureState !== 'CAPTURING') return;
12345
12349
  operationStartedAt.current = new Date();
@@ -12399,9 +12403,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12399
12403
  setCaptureState('FAILED');
12400
12404
  onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
12401
12405
  }, [onDenied, submissionResponse, livenessCheckRequest]);
12402
- var _z = React.useState(0),
12403
- attempt = _z[0],
12404
- setAttempt = _z[1];
12406
+ var _0 = React.useState(0),
12407
+ attempt = _0[0],
12408
+ setAttempt = _0[1];
12405
12409
  var onExitCallback = React.useCallback(function () {
12406
12410
  setAttempt(function (n) {
12407
12411
  return n + 1;
@@ -12464,6 +12468,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12464
12468
  onTimeout: onTimeout,
12465
12469
  onDenied: onDeniedCallback,
12466
12470
  onExit: onExitCallback,
12471
+ initialCaptureDelayMs: initialCaptureDelayMs,
12467
12472
  timeoutDurationMs: timeoutDurationMs,
12468
12473
  silentFallback: silentFallback,
12469
12474
  guidesComponent: guidesComponent,
@@ -15408,12 +15413,14 @@ var FaceValidation = function FaceValidation(_a) {
15408
15413
  predictGender = _a.predictGender,
15409
15414
  _d = _a.loadingOverlayMode,
15410
15415
  loadingOverlayMode = _d === void 0 ? 'default' : _d,
15411
- _e = _a.timeoutDurationMs,
15412
- timeoutDurationMs = _e === void 0 ? 15000 : _e,
15413
- _f = _a.modelLoadTimeoutMs,
15414
- modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
15415
- _g = _a.skipSuccessScreen,
15416
- skipSuccessScreen = _g === void 0 ? false : _g,
15416
+ _e = _a.initialCaptureDelayMs,
15417
+ initialCaptureDelayMs = _e === void 0 ? 1000 : _e,
15418
+ _f = _a.timeoutDurationMs,
15419
+ timeoutDurationMs = _f === void 0 ? 15000 : _f,
15420
+ _g = _a.modelLoadTimeoutMs,
15421
+ modelLoadTimeoutMs = _g === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _g,
15422
+ _h = _a.skipSuccessScreen,
15423
+ skipSuccessScreen = _h === void 0 ? false : _h,
15417
15424
  idCardForFaceMatch = _a.idCardForFaceMatch,
15418
15425
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15419
15426
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -15429,23 +15436,24 @@ var FaceValidation = function FaceValidation(_a) {
15429
15436
  onUserCancel = _a.onUserCancel,
15430
15437
  onModelError = _a.onModelError,
15431
15438
  onCameraAccessDenied = _a.onCameraAccessDenied,
15432
- _h = _a.theme,
15433
- theme = _h === void 0 ? 'default' : _h,
15439
+ _j = _a.theme,
15440
+ theme = _j === void 0 ? 'default' : _j,
15434
15441
  assets = _a.assets,
15435
15442
  classNames = _a.classNames,
15436
15443
  colors = _a.colors,
15437
15444
  verbiage = _a.verbiage,
15438
- _j = _a.geolocationEnabled,
15439
- geolocationEnabled = _j === void 0 ? true : _j,
15440
- _k = _a.geolocationRequired,
15441
- geolocationRequired = _k === void 0 ? false : _k,
15442
- _l = _a.debugMode,
15443
- debugMode = _l === void 0 ? false : _l;
15445
+ _k = _a.geolocationEnabled,
15446
+ geolocationEnabled = _k === void 0 ? true : _k,
15447
+ _l = _a.geolocationRequired,
15448
+ geolocationRequired = _l === void 0 ? false : _l,
15449
+ _m = _a.debugMode,
15450
+ debugMode = _m === void 0 ? false : _m;
15444
15451
  useLanguage(lang);
15445
15452
  useDebugLogging(debugMode);
15446
15453
  var faceLivenessProps = React.useMemo(function () {
15447
15454
  return {
15448
15455
  loadingOverlayMode: loadingOverlayMode,
15456
+ initialCaptureDelayMs: initialCaptureDelayMs,
15449
15457
  timeoutDurationMs: timeoutDurationMs,
15450
15458
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15451
15459
  skipSuccessScreen: skipSuccessScreen,
@@ -15462,7 +15470,7 @@ var FaceValidation = function FaceValidation(_a) {
15462
15470
  verbiage: verbiage,
15463
15471
  debugMode: debugMode
15464
15472
  };
15465
- }, [assets, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
15473
+ }, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
15466
15474
  return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
15467
15475
  sessionId: sessionId,
15468
15476
  authUrl: authUrl
@@ -15547,35 +15555,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15547
15555
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
15548
15556
  _g = _a.faceLivenessLoadingOverlayMode,
15549
15557
  faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
15550
- _h = _a.faceLivenessTimeoutDurationMs,
15551
- faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
15552
- _j = _a.skipSuccessScreen,
15553
- skipSuccessScreen = _j === void 0 ? false : _j,
15558
+ _h = _a.faceLivenessInitialCaptureDelayMs,
15559
+ faceLivenessInitialCaptureDelayMs = _h === void 0 ? 1000 : _h,
15560
+ _j = _a.faceLivenessTimeoutDurationMs,
15561
+ faceLivenessTimeoutDurationMs = _j === void 0 ? 15000 : _j,
15562
+ _k = _a.skipSuccessScreen,
15563
+ skipSuccessScreen = _k === void 0 ? false : _k,
15554
15564
  idCaptureInstructions = _a.idCaptureInstructions,
15555
- _k = _a.idCaptureGuideType,
15556
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
15557
- _l = _a.idCaptureGuideImages,
15558
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
15559
- _m = _a.idCapturePortraitGuidesOnMobile,
15560
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
15561
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15562
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
15563
- _p = _a.idCaptureModelLoadTimeoutMs,
15564
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
15565
- _q = _a.idCaptureForceFallbackMode,
15566
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
15567
- _r = _a.idCaptureAllowUploadingDocumentsFromStorage,
15568
- idCaptureAllowUploadingDocumentsFromStorage = _r === void 0 ? false : _r,
15569
- _s = _a.separateIdCardCaptureSequence,
15570
- separateIdCardCaptureSequence = _s === void 0 ? false : _s,
15571
- _t = _a.selfieCaptureModelLoadTimeoutMs,
15572
- selfieCaptureModelLoadTimeoutMs = _t === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _t,
15573
- _u = _a.allowIdCardBackToFrontCapture,
15574
- allowIdCardBackToFrontCapture = _u === void 0 ? false : _u,
15575
- _v = _a.enableOverrideWrongDocumentTypeDialog,
15576
- enableOverrideWrongDocumentTypeDialog = _v === void 0 ? false : _v,
15577
- _w = _a.allowOverrideWrongDocumentTypeAfterMs,
15578
- allowOverrideWrongDocumentTypeAfterMs = _w === void 0 ? 8000 : _w,
15565
+ _l = _a.idCaptureGuideType,
15566
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15567
+ _m = _a.idCaptureGuideImages,
15568
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
15569
+ _o = _a.idCapturePortraitGuidesOnMobile,
15570
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
15571
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15572
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
15573
+ _q = _a.idCaptureModelLoadTimeoutMs,
15574
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
15575
+ _r = _a.idCaptureForceFallbackMode,
15576
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
15577
+ _s = _a.idCaptureAllowUploadingDocumentsFromStorage,
15578
+ idCaptureAllowUploadingDocumentsFromStorage = _s === void 0 ? false : _s,
15579
+ _t = _a.separateIdCardCaptureSequence,
15580
+ separateIdCardCaptureSequence = _t === void 0 ? false : _t,
15581
+ _u = _a.selfieCaptureModelLoadTimeoutMs,
15582
+ selfieCaptureModelLoadTimeoutMs = _u === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _u,
15583
+ _v = _a.allowIdCardBackToFrontCapture,
15584
+ allowIdCardBackToFrontCapture = _v === void 0 ? false : _v,
15585
+ _w = _a.enableOverrideWrongDocumentTypeDialog,
15586
+ enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
15587
+ _x = _a.allowOverrideWrongDocumentTypeAfterMs,
15588
+ allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
15579
15589
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15580
15590
  onDocumentUploaded = _a.onDocumentUploaded,
15581
15591
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -15593,28 +15603,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15593
15603
  onIdCaptureModelError = _a.onIdCaptureModelError,
15594
15604
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
15595
15605
  onCameraAccessDenied = _a.onCameraAccessDenied,
15596
- _x = _a.captureSignature,
15597
- captureSignature = _x === void 0 ? false : _x,
15598
- _y = _a.captureSignatureVideo,
15599
- captureSignatureVideo = _y === void 0 ? false : _y,
15600
- _z = _a.captureAdditionalDocuments,
15601
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
15602
- _0 = _a.theme,
15603
- theme = _0 === void 0 ? 'default' : _0,
15604
- _1 = _a.assets,
15605
- assets = _1 === void 0 ? {} : _1,
15606
- _2 = _a.classNames,
15607
- classNames = _2 === void 0 ? {} : _2,
15608
- _3 = _a.colors,
15609
- colors = _3 === void 0 ? {} : _3,
15610
- _4 = _a.verbiage,
15611
- verbiage = _4 === void 0 ? {} : _4,
15612
- _5 = _a.geolocationEnabled,
15613
- geolocationEnabled = _5 === void 0 ? true : _5,
15614
- _6 = _a.geolocationRequired,
15615
- geolocationRequired = _6 === void 0 ? false : _6,
15616
- _7 = _a.debugMode,
15617
- debugMode = _7 === void 0 ? false : _7;
15606
+ _y = _a.captureSignature,
15607
+ captureSignature = _y === void 0 ? false : _y,
15608
+ _z = _a.captureSignatureVideo,
15609
+ captureSignatureVideo = _z === void 0 ? false : _z,
15610
+ _0 = _a.captureAdditionalDocuments,
15611
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
15612
+ _1 = _a.theme,
15613
+ theme = _1 === void 0 ? 'default' : _1,
15614
+ _2 = _a.assets,
15615
+ assets = _2 === void 0 ? {} : _2,
15616
+ _3 = _a.classNames,
15617
+ classNames = _3 === void 0 ? {} : _3,
15618
+ _4 = _a.colors,
15619
+ colors = _4 === void 0 ? {} : _4,
15620
+ _5 = _a.verbiage,
15621
+ verbiage = _5 === void 0 ? {} : _5,
15622
+ _6 = _a.geolocationEnabled,
15623
+ geolocationEnabled = _6 === void 0 ? true : _6,
15624
+ _7 = _a.geolocationRequired,
15625
+ geolocationRequired = _7 === void 0 ? false : _7,
15626
+ _8 = _a.debugMode,
15627
+ debugMode = _8 === void 0 ? false : _8;
15618
15628
  useLanguage(lang);
15619
15629
  useDebugLogging(debugMode);
15620
15630
  var idCaptureProps = React.useMemo(function () {
@@ -15650,6 +15660,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15650
15660
  var faceLivenessProps = React.useMemo(function () {
15651
15661
  return {
15652
15662
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
15663
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
15653
15664
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
15654
15665
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
15655
15666
  onDenied: onDenied,
@@ -15664,7 +15675,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
15664
15675
  verbiage: verbiage.faceLiveness,
15665
15676
  debugMode: debugMode
15666
15677
  };
15667
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15678
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15668
15679
  var additionalDocumentCaptureProps = React.useMemo(function () {
15669
15680
  return {
15670
15681
  documents: captureAdditionalDocuments,
@@ -15799,37 +15810,39 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15799
15810
  allowSinglePageIdCapture = _e === void 0 ? false : _e,
15800
15811
  _f = _a.idCaptureThresholds,
15801
15812
  idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
15802
- _g = _a.faceLivenessTimeoutDurationMs,
15803
- faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
15804
- _h = _a.faceLivenessLoadingOverlayMode,
15805
- faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
15806
- _j = _a.skipSuccessScreen,
15807
- skipSuccessScreen = _j === void 0 ? false : _j,
15813
+ _g = _a.faceLivenessInitialCaptureDelayMs,
15814
+ faceLivenessInitialCaptureDelayMs = _g === void 0 ? 1000 : _g,
15815
+ _h = _a.faceLivenessTimeoutDurationMs,
15816
+ faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
15817
+ _j = _a.faceLivenessLoadingOverlayMode,
15818
+ faceLivenessLoadingOverlayMode = _j === void 0 ? 'default' : _j,
15819
+ _k = _a.skipSuccessScreen,
15820
+ skipSuccessScreen = _k === void 0 ? false : _k,
15808
15821
  idCaptureInstructions = _a.idCaptureInstructions,
15809
- _k = _a.idCaptureGuideType,
15810
- idCaptureGuideType = _k === void 0 ? 'fit' : _k,
15811
- _l = _a.idCaptureGuideImages,
15812
- idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
15813
- _m = _a.idCapturePortraitGuidesOnMobile,
15814
- idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
15815
- _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15816
- idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
15817
- _p = _a.idCaptureModelLoadTimeoutMs,
15818
- idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
15819
- _q = _a.idCaptureForceFallbackMode,
15820
- idCaptureForceFallbackMode = _q === void 0 ? false : _q,
15821
- _r = _a.selfieCaptureModelLoadTimeoutMs,
15822
- selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
15823
- _s = _a.allowIdCardBackToFrontCapture,
15824
- allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
15825
- _t = _a.enableOverrideWrongDocumentTypeDialog,
15826
- enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
15827
- _u = _a.allowOverrideWrongDocumentTypeAfterMs,
15828
- allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
15829
- _v = _a.allowUploadingDocumentsFromStorage,
15830
- allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
15831
- _w = _a.separateIdCardCaptureSequence,
15832
- separateIdCardCaptureSequence = _w === void 0 ? false : _w,
15822
+ _l = _a.idCaptureGuideType,
15823
+ idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15824
+ _m = _a.idCaptureGuideImages,
15825
+ idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
15826
+ _o = _a.idCapturePortraitGuidesOnMobile,
15827
+ idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
15828
+ _p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
15829
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
15830
+ _q = _a.idCaptureModelLoadTimeoutMs,
15831
+ idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
15832
+ _r = _a.idCaptureForceFallbackMode,
15833
+ idCaptureForceFallbackMode = _r === void 0 ? false : _r,
15834
+ _s = _a.selfieCaptureModelLoadTimeoutMs,
15835
+ selfieCaptureModelLoadTimeoutMs = _s === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _s,
15836
+ _t = _a.allowIdCardBackToFrontCapture,
15837
+ allowIdCardBackToFrontCapture = _t === void 0 ? false : _t,
15838
+ _u = _a.enableOverrideWrongDocumentTypeDialog,
15839
+ enableOverrideWrongDocumentTypeDialog = _u === void 0 ? false : _u,
15840
+ _v = _a.allowOverrideWrongDocumentTypeAfterMs,
15841
+ allowOverrideWrongDocumentTypeAfterMs = _v === void 0 ? 8000 : _v,
15842
+ _w = _a.allowUploadingDocumentsFromStorage,
15843
+ allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
15844
+ _x = _a.separateIdCardCaptureSequence,
15845
+ separateIdCardCaptureSequence = _x === void 0 ? false : _x,
15833
15846
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15834
15847
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
15835
15848
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -15846,31 +15859,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15846
15859
  onIdCaptureModelError = _a.onIdCaptureModelError,
15847
15860
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
15848
15861
  onCameraAccessDenied = _a.onCameraAccessDenied,
15849
- _x = _a.captureSignature,
15850
- captureSignature = _x === void 0 ? false : _x,
15851
- _y = _a.captureSignatureVideo,
15852
- captureSignatureVideo = _y === void 0 ? false : _y,
15853
- _z = _a.captureAdditionalDocuments,
15854
- captureAdditionalDocuments = _z === void 0 ? [] : _z,
15855
- _0 = _a.captureVideoId,
15856
- captureVideoId = _0 === void 0 ? false : _0,
15862
+ _y = _a.captureSignature,
15863
+ captureSignature = _y === void 0 ? false : _y,
15864
+ _z = _a.captureSignatureVideo,
15865
+ captureSignatureVideo = _z === void 0 ? false : _z,
15866
+ _0 = _a.captureAdditionalDocuments,
15867
+ captureAdditionalDocuments = _0 === void 0 ? [] : _0,
15868
+ _1 = _a.captureVideoId,
15869
+ captureVideoId = _1 === void 0 ? false : _1,
15857
15870
  captureVideoIdProps = _a.captureVideoIdProps,
15858
- _1 = _a.theme,
15859
- theme = _1 === void 0 ? 'default' : _1,
15860
- _2 = _a.assets,
15861
- assets = _2 === void 0 ? {} : _2,
15862
- _3 = _a.classNames,
15863
- classNames = _3 === void 0 ? {} : _3,
15864
- _4 = _a.colors,
15865
- colors = _4 === void 0 ? {} : _4,
15866
- _5 = _a.verbiage,
15867
- verbiage = _5 === void 0 ? {} : _5,
15868
- _6 = _a.geolocationEnabled,
15869
- geolocationEnabled = _6 === void 0 ? true : _6,
15870
- _7 = _a.geolocationRequired,
15871
- geolocationRequired = _7 === void 0 ? false : _7,
15872
- _8 = _a.debugMode,
15873
- debugMode = _8 === void 0 ? false : _8;
15871
+ _2 = _a.theme,
15872
+ theme = _2 === void 0 ? 'default' : _2,
15873
+ _3 = _a.assets,
15874
+ assets = _3 === void 0 ? {} : _3,
15875
+ _4 = _a.classNames,
15876
+ classNames = _4 === void 0 ? {} : _4,
15877
+ _5 = _a.colors,
15878
+ colors = _5 === void 0 ? {} : _5,
15879
+ _6 = _a.verbiage,
15880
+ verbiage = _6 === void 0 ? {} : _6,
15881
+ _7 = _a.geolocationEnabled,
15882
+ geolocationEnabled = _7 === void 0 ? true : _7,
15883
+ _8 = _a.geolocationRequired,
15884
+ geolocationRequired = _8 === void 0 ? false : _8,
15885
+ _9 = _a.debugMode,
15886
+ debugMode = _9 === void 0 ? false : _9;
15874
15887
  useLanguage(lang);
15875
15888
  useDebugLogging(debugMode);
15876
15889
  var idCaptureProps = React.useMemo(function () {
@@ -15909,6 +15922,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15909
15922
  onUserCancel: onUserCancel,
15910
15923
  onModelError: onSelfieCaptureModelError,
15911
15924
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
15925
+ initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
15912
15926
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
15913
15927
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
15914
15928
  skipSuccessScreen: skipSuccessScreen,
@@ -15918,7 +15932,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15918
15932
  verbiage: verbiage.faceLiveness,
15919
15933
  debugMode: debugMode
15920
15934
  };
15921
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15935
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
15922
15936
  var videoIdCaptureProps = React.useMemo(function () {
15923
15937
  return _assign({
15924
15938
  onExitCapture: onExitCapture,
@@ -17508,12 +17522,14 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17508
17522
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
17509
17523
  _c = _a.loadingOverlayMode,
17510
17524
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
17511
- _d = _a.timeoutDurationMs,
17512
- timeoutDurationMs = _d === void 0 ? 15000 : _d,
17513
- _e = _a.modelLoadTimeoutMs,
17514
- modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
17515
- _f = _a.skipSuccessScreen,
17516
- skipSuccessScreen = _f === void 0 ? false : _f,
17525
+ _d = _a.initialCaptureDelayMs,
17526
+ initialCaptureDelayMs = _d === void 0 ? 1000 : _d,
17527
+ _e = _a.timeoutDurationMs,
17528
+ timeoutDurationMs = _e === void 0 ? 15000 : _e,
17529
+ _f = _a.modelLoadTimeoutMs,
17530
+ modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
17531
+ _g = _a.skipSuccessScreen,
17532
+ skipSuccessScreen = _g === void 0 ? false : _g,
17517
17533
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
17518
17534
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
17519
17535
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -17529,28 +17545,28 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17529
17545
  onUserCancel = _a.onUserCancel,
17530
17546
  onModelError = _a.onModelError,
17531
17547
  onCameraAccessDenied = _a.onCameraAccessDenied,
17532
- _g = _a.captureAdditionalDocuments,
17533
- captureAdditionalDocuments = _g === void 0 ? [] : _g,
17534
- _h = _a.captureSignature,
17535
- captureSignature = _h === void 0 ? false : _h,
17536
- _j = _a.captureSignatureVideo,
17537
- captureSignatureVideo = _j === void 0 ? false : _j,
17538
- _k = _a.theme,
17539
- theme = _k === void 0 ? 'default' : _k,
17540
- _l = _a.assets,
17541
- assets = _l === void 0 ? {} : _l,
17542
- _m = _a.classNames,
17543
- classNames = _m === void 0 ? {} : _m,
17544
- _o = _a.colors,
17545
- colors = _o === void 0 ? {} : _o,
17546
- _p = _a.verbiage,
17547
- verbiage = _p === void 0 ? {} : _p,
17548
- _q = _a.geolocationEnabled,
17549
- geolocationEnabled = _q === void 0 ? true : _q,
17550
- _r = _a.geolocationRequired,
17551
- geolocationRequired = _r === void 0 ? false : _r,
17552
- _s = _a.debugMode,
17553
- debugMode = _s === void 0 ? false : _s;
17548
+ _h = _a.captureAdditionalDocuments,
17549
+ captureAdditionalDocuments = _h === void 0 ? [] : _h,
17550
+ _j = _a.captureSignature,
17551
+ captureSignature = _j === void 0 ? false : _j,
17552
+ _k = _a.captureSignatureVideo,
17553
+ captureSignatureVideo = _k === void 0 ? false : _k,
17554
+ _l = _a.theme,
17555
+ theme = _l === void 0 ? 'default' : _l,
17556
+ _m = _a.assets,
17557
+ assets = _m === void 0 ? {} : _m,
17558
+ _o = _a.classNames,
17559
+ classNames = _o === void 0 ? {} : _o,
17560
+ _p = _a.colors,
17561
+ colors = _p === void 0 ? {} : _p,
17562
+ _q = _a.verbiage,
17563
+ verbiage = _q === void 0 ? {} : _q,
17564
+ _r = _a.geolocationEnabled,
17565
+ geolocationEnabled = _r === void 0 ? true : _r,
17566
+ _s = _a.geolocationRequired,
17567
+ geolocationRequired = _s === void 0 ? false : _s,
17568
+ _t = _a.debugMode,
17569
+ debugMode = _t === void 0 ? false : _t;
17554
17570
  useLanguage(lang);
17555
17571
  useDebugLogging(debugMode);
17556
17572
  var faceLivenessProps = React.useMemo(function () {
@@ -17560,6 +17576,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17560
17576
  onExitAfterFailure: onExitAfterFailure,
17561
17577
  onModelError: onModelError,
17562
17578
  timeoutDurationMs: timeoutDurationMs,
17579
+ initialCaptureDelayMs: initialCaptureDelayMs,
17563
17580
  modelLoadTimeoutMs: modelLoadTimeoutMs,
17564
17581
  loadingOverlayMode: loadingOverlayMode,
17565
17582
  skipSuccessScreen: skipSuccessScreen,
@@ -17569,7 +17586,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
17569
17586
  verbiage: verbiage.faceLiveness,
17570
17587
  debugMode: debugMode
17571
17588
  };
17572
- }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
17589
+ }, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
17573
17590
  var additionalDocumentCaptureProps = React.useMemo(function () {
17574
17591
  return {
17575
17592
  documents: captureAdditionalDocuments,