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