idmission-web-sdk 2.3.55 → 2.3.57

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.3.55';
214
+ var webSdkVersion = '2.3.57';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -19749,6 +19749,7 @@
19749
19749
  onExitCapture = _a.onExitCapture,
19750
19750
  onUserCancel = _a.onUserCancel,
19751
19751
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
19752
+ onDocumentCaptured = _a.onDocumentCaptured,
19752
19753
  _g = _a.loadingOverlayMode,
19753
19754
  loadingOverlayMode = _g === void 0 ? 'default' : _g,
19754
19755
  customOverlayContent = _a.customOverlayContent,
@@ -19888,6 +19889,7 @@
19888
19889
  }, [state.captureState, stop]);
19889
19890
  var onCapture = React.useCallback(function (imageData, width, height, documentType, metadata) {
19890
19891
  logCaptureMetadata(metadata);
19892
+ onDocumentCaptured === null || onDocumentCaptured === void 0 ? void 0 : onDocumentCaptured(metadata);
19891
19893
  dispatchIdCaptureAction({
19892
19894
  type: 'documentCaptured',
19893
19895
  payload: {
@@ -23967,21 +23969,23 @@
23967
23969
  guidesComponent = _a.guidesComponent,
23968
23970
  _c = _a.minSignaturePadPoints,
23969
23971
  minSignaturePadPoints = _c === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _c,
23970
- _d = _a.headTrackingBoundaryPercentage,
23971
- headTrackingBoundaryPercentage = _d === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _d,
23972
- _e = _a.headTrackingBoundaryType,
23973
- headTrackingBoundaryType = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _e,
23974
- _f = _a.captureAudio,
23975
- captureAudio = _f === void 0 ? false : _f,
23976
- _g = _a.classNames,
23977
- classNames = _g === void 0 ? {} : _g,
23978
- _h = _a.colors,
23979
- colors = _h === void 0 ? {} : _h,
23980
- _j = _a.verbiage,
23981
- rawVerbiage = _j === void 0 ? {} : _j,
23982
- _k = _a.debugMode,
23983
- debugMode = _k === void 0 ? false : _k;
23984
- var _l = useCameraStore(useShallow(function (state) {
23972
+ _d = _a.headTrackingDisabled,
23973
+ headTrackingDisabled = _d === void 0 ? false : _d,
23974
+ _e = _a.headTrackingBoundaryPercentage,
23975
+ headTrackingBoundaryPercentage = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _e,
23976
+ _f = _a.headTrackingBoundaryType,
23977
+ headTrackingBoundaryType = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _f,
23978
+ _g = _a.captureAudio,
23979
+ captureAudio = _g === void 0 ? false : _g,
23980
+ _h = _a.classNames,
23981
+ classNames = _h === void 0 ? {} : _h,
23982
+ _j = _a.colors,
23983
+ colors = _j === void 0 ? {} : _j,
23984
+ _k = _a.verbiage,
23985
+ rawVerbiage = _k === void 0 ? {} : _k,
23986
+ _l = _a.debugMode,
23987
+ debugMode = _l === void 0 ? false : _l;
23988
+ var _m = useCameraStore(useShallow(function (state) {
23985
23989
  return {
23986
23990
  camera: state.camera,
23987
23991
  audioStream: state.audioStream,
@@ -23989,19 +23993,19 @@
23989
23993
  videoHeight: state.videoHeight
23990
23994
  };
23991
23995
  })),
23992
- camera = _l.camera,
23993
- audioStream = _l.audioStream,
23994
- videoWidth = _l.videoWidth,
23995
- videoHeight = _l.videoHeight;
23996
- var _m = useSelfieGuidanceModelsContext(),
23997
- onHeadTrackingPredictionMade = _m.onPredictionMade,
23998
- startHeadTracking = _m.start,
23999
- stopHeadTracking = _m.stop;
24000
- var _o = useVideoSignatureStore(),
24001
- startRecording = _o.startRecording,
24002
- stopRecording = _o.stopRecording,
24003
- clearRecordedData = _o.clearRecordedData,
24004
- isRecording = _o.isRecording;
23996
+ camera = _m.camera,
23997
+ audioStream = _m.audioStream,
23998
+ videoWidth = _m.videoWidth,
23999
+ videoHeight = _m.videoHeight;
24000
+ var _o = useSelfieGuidanceModelsContext(),
24001
+ onHeadTrackingPredictionMade = _o.onPredictionMade,
24002
+ startHeadTracking = _o.start,
24003
+ stopHeadTracking = _o.stop;
24004
+ var _p = useVideoSignatureStore(),
24005
+ startRecording = _p.startRecording,
24006
+ stopRecording = _p.stopRecording,
24007
+ clearRecordedData = _p.clearRecordedData,
24008
+ isRecording = _p.isRecording;
24005
24009
  React.useEffect(function () {
24006
24010
  useVideoSignatureStore.setState({
24007
24011
  onSignatureVideoCaptured: onSignatureVideoCaptured
@@ -24021,18 +24025,18 @@
24021
24025
  var verbiage = useTranslations(rawVerbiage, {
24022
24026
  guidanceMessageText: 'Please sign the box below'
24023
24027
  });
24024
- var _p = React.useState(true),
24025
- headTrackingSatisfied = _p[0],
24026
- setHeadTrackingSatisfied = _p[1];
24027
- var _q = React.useState(null),
24028
- lastFace = _q[0],
24029
- setLastFace = _q[1];
24030
- var _r = React.useState(0),
24031
- numFramesWithoutFaces = _r[0],
24032
- setNumFramesWithoutFaces = _r[1];
24028
+ var _q = React.useState(true),
24029
+ headTrackingSatisfied = _q[0],
24030
+ setHeadTrackingSatisfied = _q[1];
24031
+ var _r = React.useState(null),
24032
+ lastFace = _r[0],
24033
+ setLastFace = _r[1];
24034
+ var _s = React.useState(0),
24035
+ numFramesWithoutFaces = _s[0],
24036
+ setNumFramesWithoutFaces = _s[1];
24033
24037
  onHeadTrackingPredictionMade(f(React.useCallback(function (_a) {
24034
24038
  var face = _a.face;
24035
- if (!camera) return;
24039
+ if (!camera || headTrackingDisabled) return;
24036
24040
  var leftEdge = videoWidth * headTrackingBoundaryPercentage;
24037
24041
  var rightEdge = videoWidth * (1 - headTrackingBoundaryPercentage);
24038
24042
  var topEdge = videoHeight * headTrackingBoundaryPercentage;
@@ -24043,13 +24047,13 @@
24043
24047
  setNumFramesWithoutFaces(face ? 0 : function (n) {
24044
24048
  return n + 1;
24045
24049
  });
24046
- }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, videoHeight, videoWidth]), 16));
24047
- var _s = useResizeObserver(),
24048
- ref = _s.ref,
24049
- _t = _s.width,
24050
- width = _t === void 0 ? 1 : _t,
24051
- _u = _s.height,
24052
- height = _u === void 0 ? 1 : _u;
24050
+ }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, headTrackingDisabled, videoHeight, videoWidth]), 16));
24051
+ var _t = useResizeObserver(),
24052
+ ref = _t.ref,
24053
+ _u = _t.width,
24054
+ width = _u === void 0 ? 1 : _u,
24055
+ _v = _t.height,
24056
+ height = _v === void 0 ? 1 : _v;
24053
24057
  var debugScalingDetails = useDebugScalingDetails({
24054
24058
  enabled: debugMode,
24055
24059
  pageWidth: width,
@@ -24345,49 +24349,51 @@
24345
24349
  captureAudio = _d === void 0 ? false : _d,
24346
24350
  _e = _a.minSignaturePadPoints,
24347
24351
  minSignaturePadPoints = _e === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _e,
24348
- _f = _a.headTrackingBoundaryPercentage,
24349
- headTrackingBoundaryPercentage = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _f,
24350
- _g = _a.headTrackingBoundaryType,
24351
- headTrackingBoundaryType = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _g,
24352
- _h = _a.allowSignatureAfterLivenessCheckFailure,
24353
- allowSignatureAfterLivenessCheckFailure = _h === void 0 ? false : _h,
24354
- _j = _a.restartVideoOnSignaturePadCleared,
24355
- restartVideoOnSignaturePadCleared = _j === void 0 ? true : _j,
24356
- _k = _a.skipLivenessValidation,
24357
- skipLivenessValidation = _k === void 0 ? false : _k,
24352
+ _f = _a.headTrackingDisabled,
24353
+ headTrackingDisabled = _f === void 0 ? false : _f,
24354
+ _g = _a.headTrackingBoundaryPercentage,
24355
+ headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
24356
+ _h = _a.headTrackingBoundaryType,
24357
+ headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
24358
+ _j = _a.allowSignatureAfterLivenessCheckFailure,
24359
+ allowSignatureAfterLivenessCheckFailure = _j === void 0 ? false : _j,
24360
+ _k = _a.restartVideoOnSignaturePadCleared,
24361
+ restartVideoOnSignaturePadCleared = _k === void 0 ? true : _k,
24362
+ _l = _a.skipLivenessValidation,
24363
+ skipLivenessValidation = _l === void 0 ? false : _l,
24358
24364
  faceLivenessProps = _a.faceLivenessProps,
24359
24365
  guidesComponent = _a.guidesComponent,
24360
- _l = _a.assets,
24361
- assets = _l === void 0 ? {} : _l,
24362
- _m = _a.classNames,
24363
- classNames = _m === void 0 ? {} : _m,
24364
- _o = _a.colors,
24365
- colors = _o === void 0 ? {} : _o,
24366
- _p = _a.verbiage,
24367
- verbiage = _p === void 0 ? {} : _p,
24368
- _q = _a.debugMode,
24369
- debugMode = _q === void 0 ? false : _q;
24370
- var _r = useSubmissionContext(),
24371
- selfieImage = _r.selfieImage,
24372
- setSelfieImage = _r.setSelfieImage,
24373
- setSignatureData = _r.setSignatureData,
24374
- setSignatureVideoUrl = _r.setSignatureVideoUrl,
24375
- logSelfieCaptureAttempt = _r.logSelfieCaptureAttempt,
24376
- uploadDocument = _r.uploadDocument;
24366
+ _m = _a.assets,
24367
+ assets = _m === void 0 ? {} : _m,
24368
+ _o = _a.classNames,
24369
+ classNames = _o === void 0 ? {} : _o,
24370
+ _p = _a.colors,
24371
+ colors = _p === void 0 ? {} : _p,
24372
+ _q = _a.verbiage,
24373
+ verbiage = _q === void 0 ? {} : _q,
24374
+ _r = _a.debugMode,
24375
+ debugMode = _r === void 0 ? false : _r;
24376
+ var _s = useSubmissionContext(),
24377
+ selfieImage = _s.selfieImage,
24378
+ setSelfieImage = _s.setSelfieImage,
24379
+ setSignatureData = _s.setSignatureData,
24380
+ setSignatureVideoUrl = _s.setSignatureVideoUrl,
24381
+ logSelfieCaptureAttempt = _s.logSelfieCaptureAttempt,
24382
+ uploadDocument = _s.uploadDocument;
24377
24383
  var cameraAccessDenied = useCameraStore(useShallow(function (state) {
24378
24384
  return {
24379
24385
  cameraAccessDenied: state.cameraAccessDenied
24380
24386
  };
24381
24387
  })).cameraAccessDenied;
24382
- var _s = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
24383
- captureState = _s[0],
24384
- setCaptureState = _s[1];
24388
+ var _t = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
24389
+ captureState = _t[0],
24390
+ setCaptureState = _t[1];
24385
24391
  var operationStartedAt = React.useRef();
24386
24392
  var captureStartedAt = React.useRef();
24387
24393
  var captureEndedAt = React.useRef();
24388
- var _t = useSelfieGuidanceModelsContext(),
24389
- start = _t.start,
24390
- stop = _t.stop;
24394
+ var _u = useSelfieGuidanceModelsContext(),
24395
+ start = _u.start,
24396
+ stop = _u.stop;
24391
24397
  React.useEffect(function () {
24392
24398
  operationStartedAt.current = new Date();
24393
24399
  }, []);
@@ -24431,9 +24437,9 @@
24431
24437
  filetype: 'image/jpeg'
24432
24438
  }).then(onSelfieCaptured);
24433
24439
  }, [logCaptureMetadata, onSelfieCaptured, setSelfieImage, uploadDocument]);
24434
- var _u = React.useState(null),
24435
- signatureImageUrl = _u[0],
24436
- setSignatureImageUrl = _u[1];
24440
+ var _v = React.useState(null),
24441
+ signatureImageUrl = _v[0],
24442
+ setSignatureImageUrl = _v[1];
24437
24443
  var onSignatureCaptureCompleted = React.useCallback(function (videoData, signatureData, signatureImageData) {
24438
24444
  setSignatureData(signatureData);
24439
24445
  setSignatureVideoUrl(URL.createObjectURL(videoData));
@@ -24441,17 +24447,17 @@
24441
24447
  setCaptureState('SUCCESS');
24442
24448
  onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
24443
24449
  }, [onVideoCaptured, setSignatureData, setSignatureVideoUrl]);
24444
- var _v = React.useState(true),
24445
- showLoadingOverlay = _v[0],
24446
- setShowLoadingOverlay = _v[1];
24450
+ var _w = React.useState(true),
24451
+ showLoadingOverlay = _w[0],
24452
+ setShowLoadingOverlay = _w[1];
24447
24453
  var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
24448
24454
  setShowLoadingOverlay(false);
24449
24455
  setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
24450
24456
  useVideoSignatureStore.getState().clearRecordedData();
24451
24457
  }, [skipLivenessValidation]);
24452
- var _w = React.useState(0),
24453
- attempt = _w[0],
24454
- setAttempt = _w[1];
24458
+ var _x = React.useState(0),
24459
+ attempt = _x[0],
24460
+ setAttempt = _x[1];
24455
24461
  var onRetry = React.useCallback(function () {
24456
24462
  onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
24457
24463
  setAttempt(function (n) {
@@ -24555,6 +24561,7 @@
24555
24561
  onFaceNotDetected: onSignatureCaptureFacesNotDetected,
24556
24562
  onExit: onExitSignatureCapture,
24557
24563
  minSignaturePadPoints: minSignaturePadPoints,
24564
+ headTrackingDisabled: headTrackingDisabled,
24558
24565
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
24559
24566
  headTrackingBoundaryType: headTrackingBoundaryType,
24560
24567
  restartVideoOnSignaturePadCleared: restartVideoOnSignaturePadCleared,
@@ -26291,14 +26298,16 @@
26291
26298
  modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
26292
26299
  _q = _a.forceFallbackMode,
26293
26300
  forceFallbackMode = _q === void 0 ? false : _q,
26294
- _r = _a.allowIdCardBackToFrontCapture,
26295
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
26296
- _s = _a.enableOverrideWrongDocumentTypeDialog,
26297
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
26298
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
26299
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
26300
- _u = _a.allowUploadingDocumentsFromStorage,
26301
- allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
26301
+ _r = _a.silentFallback,
26302
+ silentFallback = _r === void 0 ? false : _r,
26303
+ _s = _a.allowIdCardBackToFrontCapture,
26304
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
26305
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
26306
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
26307
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
26308
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
26309
+ _v = _a.allowUploadingDocumentsFromStorage,
26310
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
26302
26311
  onLoadingStarted = _a.onLoadingStarted,
26303
26312
  onLoadingProgress = _a.onLoadingProgress,
26304
26313
  onLoadingCompleted = _a.onLoadingCompleted,
@@ -26318,28 +26327,29 @@
26318
26327
  onModelError = _a.onModelError,
26319
26328
  onCameraAccessDenied = _a.onCameraAccessDenied,
26320
26329
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
26321
- _v = _a.theme,
26322
- theme = _v === void 0 ? 'default' : _v,
26323
- _w = _a.assets,
26324
- assets = _w === void 0 ? {} : _w,
26325
- _x = _a.classNames,
26326
- classNames = _x === void 0 ? {} : _x,
26327
- _y = _a.colors,
26328
- colors = _y === void 0 ? {} : _y,
26329
- _z = _a.verbiage,
26330
- verbiage = _z === void 0 ? {} : _z,
26331
- _0 = _a.captureSignature,
26332
- captureSignature = _0 === void 0 ? false : _0,
26333
- _1 = _a.captureSignatureVideo,
26334
- captureSignatureVideo = _1 === void 0 ? false : _1,
26335
- _2 = _a.captureAdditionalDocuments,
26336
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
26337
- _3 = _a.geolocationEnabled,
26338
- geolocationEnabled = _3 === void 0 ? true : _3,
26339
- _4 = _a.geolocationRequired,
26340
- geolocationRequired = _4 === void 0 ? false : _4,
26341
- _5 = _a.debugMode,
26342
- debugMode = _5 === void 0 ? false : _5;
26330
+ onDocumentCaptured = _a.onDocumentCaptured,
26331
+ _w = _a.theme,
26332
+ theme = _w === void 0 ? 'default' : _w,
26333
+ _x = _a.assets,
26334
+ assets = _x === void 0 ? {} : _x,
26335
+ _y = _a.classNames,
26336
+ classNames = _y === void 0 ? {} : _y,
26337
+ _z = _a.colors,
26338
+ colors = _z === void 0 ? {} : _z,
26339
+ _0 = _a.verbiage,
26340
+ verbiage = _0 === void 0 ? {} : _0,
26341
+ _1 = _a.captureSignature,
26342
+ captureSignature = _1 === void 0 ? false : _1,
26343
+ _2 = _a.captureSignatureVideo,
26344
+ captureSignatureVideo = _2 === void 0 ? false : _2,
26345
+ _3 = _a.captureAdditionalDocuments,
26346
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
26347
+ _4 = _a.geolocationEnabled,
26348
+ geolocationEnabled = _4 === void 0 ? true : _4,
26349
+ _5 = _a.geolocationRequired,
26350
+ geolocationRequired = _5 === void 0 ? false : _5,
26351
+ _6 = _a.debugMode,
26352
+ debugMode = _6 === void 0 ? false : _6;
26343
26353
  useLanguage(lang);
26344
26354
  useDebugLogging(debugMode);
26345
26355
  var idCaptureProps = React.useMemo(function () {
@@ -26350,6 +26360,7 @@
26350
26360
  onExitCapture: onExitCapture,
26351
26361
  onUserCancel: onUserCancel,
26352
26362
  onModelError: onModelError,
26363
+ onDocumentCaptured: onDocumentCaptured,
26353
26364
  precapturedDocuments: precapturedDocuments,
26354
26365
  captureRequirement: idCaptureRequirement,
26355
26366
  allowSinglePageIdCapture: allowSinglePageIdCapture,
@@ -26360,6 +26371,7 @@
26360
26371
  customOverlayContent: customOverlayContent,
26361
26372
  onLoadingOverlayDismissed: onLoadingOverlayDismissed,
26362
26373
  forceFallbackMode: forceFallbackMode,
26374
+ silentFallback: silentFallback,
26363
26375
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
26364
26376
  allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
26365
26377
  instructions: instructions,
@@ -26376,7 +26388,7 @@
26376
26388
  verbiage: verbiage,
26377
26389
  debugMode: debugMode
26378
26390
  };
26379
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
26391
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, onDocumentCaptured, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, silentFallback, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
26380
26392
  var additionalDocumentCaptureProps = React.useMemo(function () {
26381
26393
  return {
26382
26394
  documents: captureAdditionalDocuments,
@@ -28394,29 +28406,31 @@
28394
28406
  idCardForFaceMatch = _a.idCardForFaceMatch,
28395
28407
  _f = _a.minSignaturePadPoints,
28396
28408
  minSignaturePadPoints = _f === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _f,
28397
- _g = _a.headTrackingBoundaryPercentage,
28398
- headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
28399
- _h = _a.headTrackingBoundaryType,
28400
- headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
28401
- _j = _a.modelLoadTimeoutMs,
28402
- modelLoadTimeoutMs = _j === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _j,
28403
- _k = _a.allowSignatureAfterLivenessCheckFailure,
28404
- allowSignatureAfterLivenessCheckFailure = _k === void 0 ? false : _k,
28405
- _l = _a.restartVideoOnSignaturePadCleared,
28406
- restartVideoOnSignaturePadCleared = _l === void 0 ? true : _l,
28409
+ _g = _a.headTrackingDisabled,
28410
+ headTrackingDisabled = _g === void 0 ? false : _g,
28411
+ _h = _a.headTrackingBoundaryPercentage,
28412
+ headTrackingBoundaryPercentage = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _h,
28413
+ _j = _a.headTrackingBoundaryType,
28414
+ headTrackingBoundaryType = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _j,
28415
+ _k = _a.modelLoadTimeoutMs,
28416
+ modelLoadTimeoutMs = _k === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _k,
28417
+ _l = _a.allowSignatureAfterLivenessCheckFailure,
28418
+ allowSignatureAfterLivenessCheckFailure = _l === void 0 ? false : _l,
28419
+ _m = _a.restartVideoOnSignaturePadCleared,
28420
+ restartVideoOnSignaturePadCleared = _m === void 0 ? true : _m,
28407
28421
  faceLivenessProps = _a.faceLivenessProps,
28408
- _m = _a.skipLivenessValidation,
28409
- skipLivenessValidation = _m === void 0 ? false : _m,
28422
+ _o = _a.skipLivenessValidation,
28423
+ skipLivenessValidation = _o === void 0 ? false : _o,
28410
28424
  guidesComponent = _a.guidesComponent,
28411
- _o = _a.theme,
28412
- theme = _o === void 0 ? 'default' : _o,
28425
+ _p = _a.theme,
28426
+ theme = _p === void 0 ? 'default' : _p,
28413
28427
  classNames = _a.classNames,
28414
28428
  colors = _a.colors,
28415
28429
  verbiage = _a.verbiage,
28416
28430
  geolocationEnabled = _a.geolocationEnabled,
28417
28431
  geolocationRequired = _a.geolocationRequired,
28418
- _p = _a.debugMode,
28419
- debugMode = _p === void 0 ? false : _p;
28432
+ _q = _a.debugMode,
28433
+ debugMode = _q === void 0 ? false : _q;
28420
28434
  useLanguage(lang);
28421
28435
  useDebugLogging(debugMode);
28422
28436
  return /*#__PURE__*/React.createElement(AuthProvider, {
@@ -28466,6 +28480,7 @@
28466
28480
  skipSuccessScreen: skipSuccessScreen,
28467
28481
  captureAudio: captureAudio,
28468
28482
  minSignaturePadPoints: minSignaturePadPoints,
28483
+ headTrackingDisabled: headTrackingDisabled,
28469
28484
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
28470
28485
  headTrackingBoundaryType: headTrackingBoundaryType,
28471
28486
  modelLoadTimeoutMs: modelLoadTimeoutMs,
@@ -28481,7 +28496,7 @@
28481
28496
  onModelError: onModelError,
28482
28497
  onUserCancel: onUserCancel
28483
28498
  };
28484
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
28499
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
28485
28500
  })))));
28486
28501
  };
28487
28502