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.
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +2 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +2 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +237 -220
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +237 -220
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +237 -220
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
20694
|
-
|
|
20695
|
-
_g = _a.
|
|
20696
|
-
|
|
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
|
-
|
|
20700
|
-
classNames =
|
|
20701
|
-
|
|
20702
|
-
colors =
|
|
20703
|
-
|
|
20704
|
-
rawVerbiage =
|
|
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
|
|
20707
|
-
checkLiveness =
|
|
20708
|
-
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
|
|
20711
|
-
state =
|
|
20712
|
-
dispatch =
|
|
20713
|
-
var
|
|
20714
|
-
imageUrl =
|
|
20715
|
-
setImageUrl =
|
|
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,7 +20884,7 @@
|
|
|
20882
20884
|
type: 'guidanceUnsatisfied'
|
|
20883
20885
|
});
|
|
20884
20886
|
}, []);
|
|
20885
|
-
var
|
|
20887
|
+
var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
|
|
20886
20888
|
if (modelError) {
|
|
20887
20889
|
return /*#__PURE__*/React.createElement(SelfieCaptureFallback, {
|
|
20888
20890
|
key: state.timesLivenessCheckFailed,
|
|
@@ -20899,7 +20901,7 @@
|
|
|
20899
20901
|
}), /*#__PURE__*/React.createElement(InvisibleCanvas, {
|
|
20900
20902
|
ref: resizeCanvas
|
|
20901
20903
|
}), /*#__PURE__*/React.createElement(SelfieCapture, {
|
|
20902
|
-
shouldCapture: state.requestState === 'CAPTURING' &&
|
|
20904
|
+
shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
|
|
20903
20905
|
onFaceDetected: onFaceDetected,
|
|
20904
20906
|
onSelfieCaptureStarted: onSelfieCaptureStarted,
|
|
20905
20907
|
onSelfieCaptured: onSelfieCaptured,
|
|
@@ -21378,62 +21380,64 @@
|
|
|
21378
21380
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
21379
21381
|
customOverlayContent = _a.customOverlayContent,
|
|
21380
21382
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
21381
|
-
_f = _a.
|
|
21382
|
-
|
|
21383
|
-
_g = _a.
|
|
21384
|
-
|
|
21385
|
-
_h = _a.
|
|
21386
|
-
|
|
21387
|
-
_j = _a.
|
|
21388
|
-
|
|
21389
|
-
_k = _a.
|
|
21390
|
-
|
|
21391
|
-
_l = _a.
|
|
21392
|
-
|
|
21393
|
-
_m = _a.
|
|
21394
|
-
|
|
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,
|
|
21395
21399
|
guidesComponent = _a.guidesComponent,
|
|
21396
21400
|
disableCapturePreview = _a.disableCapturePreview,
|
|
21397
|
-
|
|
21398
|
-
assets =
|
|
21399
|
-
|
|
21400
|
-
classNames =
|
|
21401
|
-
|
|
21402
|
-
colors =
|
|
21403
|
-
|
|
21404
|
-
verbiage =
|
|
21405
|
-
|
|
21406
|
-
debugMode =
|
|
21407
|
-
var
|
|
21408
|
-
submissionResponse =
|
|
21409
|
-
livenessCheckRequest =
|
|
21410
|
-
setSelfieImage =
|
|
21411
|
-
logSelfieCaptureAttempt =
|
|
21412
|
-
var
|
|
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) {
|
|
21413
21417
|
return {
|
|
21414
21418
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
21415
21419
|
requestCameraAccess: state.requestCameraAccess,
|
|
21416
21420
|
releaseCameraAccess: state.releaseCameraAccess
|
|
21417
21421
|
};
|
|
21418
21422
|
})),
|
|
21419
|
-
cameraAccessDenied =
|
|
21420
|
-
requestCameraAccess =
|
|
21421
|
-
releaseCameraAccess =
|
|
21422
|
-
var
|
|
21423
|
-
faceCropImageUrl =
|
|
21424
|
-
setFaceCropImageUrl =
|
|
21425
|
-
var
|
|
21426
|
-
retryCount =
|
|
21427
|
-
setRetryCount =
|
|
21428
|
-
var
|
|
21429
|
-
captureState =
|
|
21430
|
-
setCaptureState =
|
|
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];
|
|
21431
21435
|
var captureStartedAt = React.useRef();
|
|
21432
21436
|
var operationStartedAt = React.useRef();
|
|
21433
21437
|
var livenessScore = React.useRef();
|
|
21434
|
-
var
|
|
21435
|
-
start =
|
|
21436
|
-
stop =
|
|
21438
|
+
var _z = React.useContext(SelfieGuidanceModelsContext),
|
|
21439
|
+
start = _z.start,
|
|
21440
|
+
stop = _z.stop;
|
|
21437
21441
|
React.useEffect(function () {
|
|
21438
21442
|
if (captureState !== 'CAPTURING') return;
|
|
21439
21443
|
operationStartedAt.current = new Date();
|
|
@@ -21493,9 +21497,9 @@
|
|
|
21493
21497
|
setCaptureState('FAILED');
|
|
21494
21498
|
onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
|
|
21495
21499
|
}, [onDenied, submissionResponse, livenessCheckRequest]);
|
|
21496
|
-
var
|
|
21497
|
-
attempt =
|
|
21498
|
-
setAttempt =
|
|
21500
|
+
var _0 = React.useState(0),
|
|
21501
|
+
attempt = _0[0],
|
|
21502
|
+
setAttempt = _0[1];
|
|
21499
21503
|
var onExitCallback = React.useCallback(function () {
|
|
21500
21504
|
setAttempt(function (n) {
|
|
21501
21505
|
return n + 1;
|
|
@@ -21558,6 +21562,7 @@
|
|
|
21558
21562
|
onTimeout: onTimeout,
|
|
21559
21563
|
onDenied: onDeniedCallback,
|
|
21560
21564
|
onExit: onExitCallback,
|
|
21565
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
21561
21566
|
timeoutDurationMs: timeoutDurationMs,
|
|
21562
21567
|
silentFallback: silentFallback,
|
|
21563
21568
|
guidesComponent: guidesComponent,
|
|
@@ -25270,12 +25275,14 @@
|
|
|
25270
25275
|
predictGender = _a.predictGender,
|
|
25271
25276
|
_d = _a.loadingOverlayMode,
|
|
25272
25277
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
25273
|
-
_e = _a.
|
|
25274
|
-
|
|
25275
|
-
_f = _a.
|
|
25276
|
-
|
|
25277
|
-
_g = _a.
|
|
25278
|
-
|
|
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,
|
|
25279
25286
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
25280
25287
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
25281
25288
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -25291,23 +25298,24 @@
|
|
|
25291
25298
|
onUserCancel = _a.onUserCancel,
|
|
25292
25299
|
onModelError = _a.onModelError,
|
|
25293
25300
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
25294
|
-
|
|
25295
|
-
theme =
|
|
25301
|
+
_j = _a.theme,
|
|
25302
|
+
theme = _j === void 0 ? 'default' : _j,
|
|
25296
25303
|
assets = _a.assets,
|
|
25297
25304
|
classNames = _a.classNames,
|
|
25298
25305
|
colors = _a.colors,
|
|
25299
25306
|
verbiage = _a.verbiage,
|
|
25300
|
-
|
|
25301
|
-
geolocationEnabled =
|
|
25302
|
-
|
|
25303
|
-
geolocationRequired =
|
|
25304
|
-
|
|
25305
|
-
debugMode =
|
|
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;
|
|
25306
25313
|
useLanguage(lang);
|
|
25307
25314
|
useDebugLogging(debugMode);
|
|
25308
25315
|
var faceLivenessProps = React.useMemo(function () {
|
|
25309
25316
|
return {
|
|
25310
25317
|
loadingOverlayMode: loadingOverlayMode,
|
|
25318
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
25311
25319
|
timeoutDurationMs: timeoutDurationMs,
|
|
25312
25320
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
25313
25321
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -25324,7 +25332,7 @@
|
|
|
25324
25332
|
verbiage: verbiage,
|
|
25325
25333
|
debugMode: debugMode
|
|
25326
25334
|
};
|
|
25327
|
-
}, [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]);
|
|
25328
25336
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
25329
25337
|
sessionId: sessionId,
|
|
25330
25338
|
authUrl: authUrl
|
|
@@ -25409,35 +25417,37 @@
|
|
|
25409
25417
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
25410
25418
|
_g = _a.faceLivenessLoadingOverlayMode,
|
|
25411
25419
|
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
25412
|
-
_h = _a.
|
|
25413
|
-
|
|
25414
|
-
_j = _a.
|
|
25415
|
-
|
|
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,
|
|
25416
25426
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
25417
|
-
|
|
25418
|
-
idCaptureGuideType =
|
|
25419
|
-
|
|
25420
|
-
idCaptureGuideImages =
|
|
25421
|
-
|
|
25422
|
-
idCapturePortraitGuidesOnMobile =
|
|
25423
|
-
|
|
25424
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
25425
|
-
|
|
25426
|
-
idCaptureModelLoadTimeoutMs =
|
|
25427
|
-
|
|
25428
|
-
idCaptureForceFallbackMode =
|
|
25429
|
-
|
|
25430
|
-
idCaptureAllowUploadingDocumentsFromStorage =
|
|
25431
|
-
|
|
25432
|
-
separateIdCardCaptureSequence =
|
|
25433
|
-
|
|
25434
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
25435
|
-
|
|
25436
|
-
allowIdCardBackToFrontCapture =
|
|
25437
|
-
|
|
25438
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
25439
|
-
|
|
25440
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
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,
|
|
25441
25451
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
25442
25452
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
25443
25453
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -25455,28 +25465,28 @@
|
|
|
25455
25465
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
25456
25466
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
25457
25467
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
25458
|
-
|
|
25459
|
-
captureSignature =
|
|
25460
|
-
|
|
25461
|
-
captureSignatureVideo =
|
|
25462
|
-
|
|
25463
|
-
captureAdditionalDocuments =
|
|
25464
|
-
|
|
25465
|
-
theme =
|
|
25466
|
-
|
|
25467
|
-
assets =
|
|
25468
|
-
|
|
25469
|
-
classNames =
|
|
25470
|
-
|
|
25471
|
-
colors =
|
|
25472
|
-
|
|
25473
|
-
verbiage =
|
|
25474
|
-
|
|
25475
|
-
geolocationEnabled =
|
|
25476
|
-
|
|
25477
|
-
geolocationRequired =
|
|
25478
|
-
|
|
25479
|
-
debugMode =
|
|
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;
|
|
25480
25490
|
useLanguage(lang);
|
|
25481
25491
|
useDebugLogging(debugMode);
|
|
25482
25492
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -25512,6 +25522,7 @@
|
|
|
25512
25522
|
var faceLivenessProps = React.useMemo(function () {
|
|
25513
25523
|
return {
|
|
25514
25524
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
25525
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
25515
25526
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
25516
25527
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
25517
25528
|
onDenied: onDenied,
|
|
@@ -25526,7 +25537,7 @@
|
|
|
25526
25537
|
verbiage: verbiage.faceLiveness,
|
|
25527
25538
|
debugMode: debugMode
|
|
25528
25539
|
};
|
|
25529
|
-
}, [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]);
|
|
25530
25541
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
25531
25542
|
return {
|
|
25532
25543
|
documents: captureAdditionalDocuments,
|
|
@@ -25661,37 +25672,39 @@
|
|
|
25661
25672
|
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
25662
25673
|
_f = _a.idCaptureThresholds,
|
|
25663
25674
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
25664
|
-
_g = _a.
|
|
25665
|
-
|
|
25666
|
-
_h = _a.
|
|
25667
|
-
|
|
25668
|
-
_j = _a.
|
|
25669
|
-
|
|
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,
|
|
25670
25683
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
25671
|
-
|
|
25672
|
-
idCaptureGuideType =
|
|
25673
|
-
|
|
25674
|
-
idCaptureGuideImages =
|
|
25675
|
-
|
|
25676
|
-
idCapturePortraitGuidesOnMobile =
|
|
25677
|
-
|
|
25678
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
25679
|
-
|
|
25680
|
-
idCaptureModelLoadTimeoutMs =
|
|
25681
|
-
|
|
25682
|
-
idCaptureForceFallbackMode =
|
|
25683
|
-
|
|
25684
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
25685
|
-
|
|
25686
|
-
allowIdCardBackToFrontCapture =
|
|
25687
|
-
|
|
25688
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
25689
|
-
|
|
25690
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
25691
|
-
|
|
25692
|
-
allowUploadingDocumentsFromStorage =
|
|
25693
|
-
|
|
25694
|
-
separateIdCardCaptureSequence =
|
|
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,
|
|
25695
25708
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
25696
25709
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
25697
25710
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -25708,31 +25721,31 @@
|
|
|
25708
25721
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
25709
25722
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
25710
25723
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
25711
|
-
|
|
25712
|
-
captureSignature =
|
|
25713
|
-
|
|
25714
|
-
captureSignatureVideo =
|
|
25715
|
-
|
|
25716
|
-
captureAdditionalDocuments =
|
|
25717
|
-
|
|
25718
|
-
captureVideoId =
|
|
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,
|
|
25719
25732
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
25720
|
-
|
|
25721
|
-
theme =
|
|
25722
|
-
|
|
25723
|
-
assets =
|
|
25724
|
-
|
|
25725
|
-
classNames =
|
|
25726
|
-
|
|
25727
|
-
colors =
|
|
25728
|
-
|
|
25729
|
-
verbiage =
|
|
25730
|
-
|
|
25731
|
-
geolocationEnabled =
|
|
25732
|
-
|
|
25733
|
-
geolocationRequired =
|
|
25734
|
-
|
|
25735
|
-
debugMode =
|
|
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;
|
|
25736
25749
|
useLanguage(lang);
|
|
25737
25750
|
useDebugLogging(debugMode);
|
|
25738
25751
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -25771,6 +25784,7 @@
|
|
|
25771
25784
|
onUserCancel: onUserCancel,
|
|
25772
25785
|
onModelError: onSelfieCaptureModelError,
|
|
25773
25786
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
25787
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
25774
25788
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
25775
25789
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
25776
25790
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -25780,7 +25794,7 @@
|
|
|
25780
25794
|
verbiage: verbiage.faceLiveness,
|
|
25781
25795
|
debugMode: debugMode
|
|
25782
25796
|
};
|
|
25783
|
-
}, [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]);
|
|
25784
25798
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
25785
25799
|
return _assign({
|
|
25786
25800
|
onExitCapture: onExitCapture,
|
|
@@ -27370,12 +27384,14 @@
|
|
|
27370
27384
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
27371
27385
|
_c = _a.loadingOverlayMode,
|
|
27372
27386
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
27373
|
-
_d = _a.
|
|
27374
|
-
|
|
27375
|
-
_e = _a.
|
|
27376
|
-
|
|
27377
|
-
_f = _a.
|
|
27378
|
-
|
|
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,
|
|
27379
27395
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27380
27396
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27381
27397
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27391,28 +27407,28 @@
|
|
|
27391
27407
|
onUserCancel = _a.onUserCancel,
|
|
27392
27408
|
onModelError = _a.onModelError,
|
|
27393
27409
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
27394
|
-
|
|
27395
|
-
captureAdditionalDocuments =
|
|
27396
|
-
|
|
27397
|
-
captureSignature =
|
|
27398
|
-
|
|
27399
|
-
captureSignatureVideo =
|
|
27400
|
-
|
|
27401
|
-
theme =
|
|
27402
|
-
|
|
27403
|
-
assets =
|
|
27404
|
-
|
|
27405
|
-
classNames =
|
|
27406
|
-
|
|
27407
|
-
colors =
|
|
27408
|
-
|
|
27409
|
-
verbiage =
|
|
27410
|
-
|
|
27411
|
-
geolocationEnabled =
|
|
27412
|
-
|
|
27413
|
-
geolocationRequired =
|
|
27414
|
-
|
|
27415
|
-
debugMode =
|
|
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;
|
|
27416
27432
|
useLanguage(lang);
|
|
27417
27433
|
useDebugLogging(debugMode);
|
|
27418
27434
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -27422,6 +27438,7 @@
|
|
|
27422
27438
|
onExitAfterFailure: onExitAfterFailure,
|
|
27423
27439
|
onModelError: onModelError,
|
|
27424
27440
|
timeoutDurationMs: timeoutDurationMs,
|
|
27441
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
27425
27442
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
27426
27443
|
loadingOverlayMode: loadingOverlayMode,
|
|
27427
27444
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -27431,7 +27448,7 @@
|
|
|
27431
27448
|
verbiage: verbiage.faceLiveness,
|
|
27432
27449
|
debugMode: debugMode
|
|
27433
27450
|
};
|
|
27434
|
-
}, [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]);
|
|
27435
27452
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
27436
27453
|
return {
|
|
27437
27454
|
documents: captureAdditionalDocuments,
|