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