idmission-web-sdk 2.2.10 → 2.2.12
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/IdValidation.d.ts +2 -2
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +5 -2
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -2
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +3 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +10 -8
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +0 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -2
- package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +0 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -2
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +7 -10
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +86 -85
- 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 +86 -85
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +86 -85
- 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 +3 -3
|
@@ -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.12';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14807,7 +14807,6 @@
|
|
|
14807
14807
|
var _b, _c, _d, _e, _f, _g;
|
|
14808
14808
|
var onDismissed = _a.onDismissed,
|
|
14809
14809
|
onUserCancel = _a.onUserCancel,
|
|
14810
|
-
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
14811
14810
|
instructions = _a.instructions,
|
|
14812
14811
|
_h = _a.rotateImage,
|
|
14813
14812
|
rotateImage = _h === void 0 ? false : _h,
|
|
@@ -14944,7 +14943,6 @@
|
|
|
14944
14943
|
onClick: function onClick() {
|
|
14945
14944
|
setDismissed(true);
|
|
14946
14945
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
14947
|
-
onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
|
|
14948
14946
|
}
|
|
14949
14947
|
}, verbiage.continueText))))));
|
|
14950
14948
|
};
|
|
@@ -17122,7 +17120,7 @@
|
|
|
17122
17120
|
_h = _a.loadingOverlayMode,
|
|
17123
17121
|
loadingOverlayMode = _h === void 0 ? 'default' : _h,
|
|
17124
17122
|
customOverlayContent = _a.customOverlayContent,
|
|
17125
|
-
|
|
17123
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
17126
17124
|
precapturedDocuments = _a.precapturedDocuments,
|
|
17127
17125
|
_j = _a.captureRequirement,
|
|
17128
17126
|
captureRequirement = _j === void 0 ? 'idCardOrPassport' : _j,
|
|
@@ -17432,7 +17430,6 @@
|
|
|
17432
17430
|
key: "loading".concat(attempt),
|
|
17433
17431
|
mode: loadingOverlayMode,
|
|
17434
17432
|
customOverlayContent: customOverlayContent,
|
|
17435
|
-
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
17436
17433
|
instructions: instructions,
|
|
17437
17434
|
assets: assets.loadingOverlay,
|
|
17438
17435
|
classNames: classNames.loadingOverlay,
|
|
@@ -17441,6 +17438,7 @@
|
|
|
17441
17438
|
onUserCancel: onUserCancel,
|
|
17442
17439
|
onDismissed: function onDismissed() {
|
|
17443
17440
|
setOverlayDismissed(true);
|
|
17441
|
+
onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
|
|
17444
17442
|
},
|
|
17445
17443
|
rotateImage: rotateLoadingOverlayImageWhenPortrait && portraitGuidesOnMobile && window.innerWidth < window.innerHeight
|
|
17446
17444
|
})), state.captureState === 'requestingFlip' && separateIdCardCaptureSequence && ( /*#__PURE__*/React.createElement(IdCaptureSuccess, {
|
|
@@ -18653,7 +18651,9 @@
|
|
|
18653
18651
|
var _b, _c, _d, _e;
|
|
18654
18652
|
var onCapture = _a.onCapture,
|
|
18655
18653
|
onSuccess = _a.onSuccess,
|
|
18654
|
+
onFailure = _a.onFailure,
|
|
18656
18655
|
onTimeout = _a.onTimeout,
|
|
18656
|
+
onDenied = _a.onDenied,
|
|
18657
18657
|
onExit = _a.onExit,
|
|
18658
18658
|
_f = _a.timeoutDurationMs,
|
|
18659
18659
|
timeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
@@ -18764,14 +18764,12 @@
|
|
|
18764
18764
|
return [4 /*yield*/, dataUrlToBase64(imageUrl)];
|
|
18765
18765
|
case 2:
|
|
18766
18766
|
imageData = _b.sent();
|
|
18767
|
-
return [4 /*yield*/, checkLiveness(imageData)
|
|
18768
|
-
// todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
18769
|
-
];
|
|
18767
|
+
return [4 /*yield*/, checkLiveness(imageData)];
|
|
18770
18768
|
case 3:
|
|
18771
18769
|
response = _b.sent();
|
|
18772
|
-
// todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
18773
18770
|
if (((_a = response === null || response === void 0 ? void 0 : response.resultData) === null || _a === void 0 ? void 0 : _a.verificationResult) !== 'Live Face Detected') {
|
|
18774
|
-
|
|
18771
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure();
|
|
18772
|
+
onDenied === null || onDenied === void 0 ? void 0 : onDenied();
|
|
18775
18773
|
}
|
|
18776
18774
|
dispatch({
|
|
18777
18775
|
type: 'livenessChecked',
|
|
@@ -18795,7 +18793,7 @@
|
|
|
18795
18793
|
}
|
|
18796
18794
|
});
|
|
18797
18795
|
});
|
|
18798
|
-
}, [checkLiveness,
|
|
18796
|
+
}, [checkLiveness, onFailure, onDenied]);
|
|
18799
18797
|
React.useEffect(function () {
|
|
18800
18798
|
if (state.requestState === 'FAILED' || state.requestState === 'ERROR') {
|
|
18801
18799
|
setTimeout(function () {
|
|
@@ -18812,10 +18810,15 @@
|
|
|
18812
18810
|
if (modelError) return;
|
|
18813
18811
|
var allowedFailures = 2;
|
|
18814
18812
|
if (state.timesLivenessCheckFailed > allowedFailures) {
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18818
|
-
|
|
18813
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure();
|
|
18814
|
+
onDenied === null || onDenied === void 0 ? void 0 : onDenied();
|
|
18815
|
+
}
|
|
18816
|
+
}, [modelError, onFailure, onDenied, state.timesLivenessCheckFailed]);
|
|
18817
|
+
var callOnTimeoutHooks = React.useCallback(function () {
|
|
18818
|
+
onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
|
|
18819
|
+
onDenied === null || onDenied === void 0 ? void 0 : onDenied();
|
|
18820
|
+
}, [onDenied, onTimeout]);
|
|
18821
|
+
useTimeout(timeoutDurationMs, callOnTimeoutHooks, state.requestState === 'PASSED' || !!modelError, state.requestState === 'IN_PROGRESS');
|
|
18819
18822
|
var verbiage = useTranslations(rawVerbiage, {
|
|
18820
18823
|
guidanceLivenessCheckFailedText: 'Could not verify your face.',
|
|
18821
18824
|
guidanceLivenessCheckErrorText: 'An error occurred while verifying your face.',
|
|
@@ -19118,7 +19121,6 @@
|
|
|
19118
19121
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
19119
19122
|
var onDismissed = _a.onDismissed,
|
|
19120
19123
|
onUserCancel = _a.onUserCancel,
|
|
19121
|
-
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
19122
19124
|
_b = _a.assets,
|
|
19123
19125
|
assets = _b === void 0 ? {} : _b,
|
|
19124
19126
|
_c = _a.classNames,
|
|
@@ -19231,7 +19233,6 @@
|
|
|
19231
19233
|
onClick: function onClick() {
|
|
19232
19234
|
setDismissed(true);
|
|
19233
19235
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
19234
|
-
onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
|
|
19235
19236
|
}
|
|
19236
19237
|
}, verbiage.continueText))))));
|
|
19237
19238
|
};
|
|
@@ -19303,14 +19304,16 @@
|
|
|
19303
19304
|
var _b, _c, _d;
|
|
19304
19305
|
var onComplete = _a.onComplete,
|
|
19305
19306
|
onSuccess = _a.onSuccess,
|
|
19307
|
+
onFailure = _a.onFailure,
|
|
19306
19308
|
onTimeout = _a.onTimeout,
|
|
19309
|
+
onDenied = _a.onDenied,
|
|
19307
19310
|
onExitCapture = _a.onExitCapture,
|
|
19308
19311
|
onExitAfterFailure = _a.onExitAfterFailure,
|
|
19309
19312
|
onUserCancel = _a.onUserCancel,
|
|
19310
19313
|
_e = _a.loadingOverlayMode,
|
|
19311
19314
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
19312
19315
|
customOverlayContent = _a.customOverlayContent,
|
|
19313
|
-
|
|
19316
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
19314
19317
|
_f = _a.timeoutDurationMs,
|
|
19315
19318
|
timeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
19316
19319
|
_g = _a.maxRetries,
|
|
@@ -19401,11 +19404,18 @@
|
|
|
19401
19404
|
});
|
|
19402
19405
|
});
|
|
19403
19406
|
}, [onSuccess, setSelfieImage, livenessCheckRequest, submissionResponse]);
|
|
19404
|
-
|
|
19405
|
-
|
|
19407
|
+
var onFailureCallback = React.useCallback(function () {
|
|
19408
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
19409
|
+
return __generator(this, function (_a) {
|
|
19410
|
+
onFailure === null || onFailure === void 0 ? void 0 : onFailure(submissionResponse, livenessCheckRequest);
|
|
19411
|
+
return [2 /*return*/];
|
|
19412
|
+
});
|
|
19413
|
+
});
|
|
19414
|
+
}, [livenessCheckRequest, onFailure, submissionResponse]);
|
|
19415
|
+
var onDeniedCallback = React.useCallback(function () {
|
|
19406
19416
|
setCaptureState('FAILED');
|
|
19407
|
-
|
|
19408
|
-
}, [
|
|
19417
|
+
onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
|
|
19418
|
+
}, [onDenied, submissionResponse, livenessCheckRequest]);
|
|
19409
19419
|
var _y = React.useState(0),
|
|
19410
19420
|
attempt = _y[0],
|
|
19411
19421
|
setAttempt = _y[1];
|
|
@@ -19446,9 +19456,10 @@
|
|
|
19446
19456
|
setCaptureState('LOADING');
|
|
19447
19457
|
}
|
|
19448
19458
|
}, [cameraAccessDenied]);
|
|
19449
|
-
var
|
|
19459
|
+
var onLoadingOverlayDismissedCallback = React.useCallback(function () {
|
|
19450
19460
|
setCaptureState('CAPTURING');
|
|
19451
|
-
|
|
19461
|
+
onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
|
|
19462
|
+
}, [onLoadingOverlayDismissed]);
|
|
19452
19463
|
var onFailureExitClick = React.useCallback(function () {
|
|
19453
19464
|
releaseCameraAccessOnExit && releaseCameraAccess();
|
|
19454
19465
|
setTimeout(function () {
|
|
@@ -19466,7 +19477,9 @@
|
|
|
19466
19477
|
key: "capture".concat(attempt),
|
|
19467
19478
|
onCapture: onCapture,
|
|
19468
19479
|
onSuccess: onSuccessCallback,
|
|
19469
|
-
|
|
19480
|
+
onFailure: onFailureCallback,
|
|
19481
|
+
onTimeout: onTimeout,
|
|
19482
|
+
onDenied: onDeniedCallback,
|
|
19470
19483
|
onExit: onExitCallback,
|
|
19471
19484
|
timeoutDurationMs: timeoutDurationMs,
|
|
19472
19485
|
silentFallback: silentFallback,
|
|
@@ -19506,13 +19519,12 @@
|
|
|
19506
19519
|
key: attempt,
|
|
19507
19520
|
mode: loadingOverlayMode,
|
|
19508
19521
|
customOverlayContent: customOverlayContent,
|
|
19509
|
-
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
19510
19522
|
assets: assets.loadingOverlay,
|
|
19511
19523
|
classNames: classNames.loadingOverlay,
|
|
19512
19524
|
colors: colors.loadingOverlay,
|
|
19513
19525
|
verbiage: verbiage.loadingOverlay,
|
|
19514
19526
|
onUserCancel: onUserCancel,
|
|
19515
|
-
onDismissed:
|
|
19527
|
+
onDismissed: onLoadingOverlayDismissedCallback
|
|
19516
19528
|
}));
|
|
19517
19529
|
};
|
|
19518
19530
|
|
|
@@ -21188,12 +21200,13 @@
|
|
|
21188
21200
|
onRetryClicked = _a.onRetryClicked,
|
|
21189
21201
|
onExitCapture = _a.onExitCapture,
|
|
21190
21202
|
onUserCancel = _a.onUserCancel,
|
|
21191
|
-
|
|
21203
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
21192
21204
|
_c = _a.loadingOverlayMode,
|
|
21193
21205
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
21194
21206
|
customOverlayContent = _a.customOverlayContent,
|
|
21195
21207
|
_d = _a.skipSuccessScreen,
|
|
21196
21208
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
21209
|
+
faceLivenessProps = _a.faceLivenessProps,
|
|
21197
21210
|
_e = _a.assets,
|
|
21198
21211
|
assets = _e === void 0 ? {} : _e,
|
|
21199
21212
|
_f = _a.classNames,
|
|
@@ -21214,7 +21227,7 @@
|
|
|
21214
21227
|
cameraAccessDenied = _l.cameraAccessDenied,
|
|
21215
21228
|
requestCameraAccess = _l.requestCameraAccess,
|
|
21216
21229
|
releaseCameraAccess = _l.releaseCameraAccess;
|
|
21217
|
-
var _m = React.useState('
|
|
21230
|
+
var _m = React.useState('CHECKING_LIVENESS'),
|
|
21218
21231
|
captureState = _m[0],
|
|
21219
21232
|
setCaptureState = _m[1];
|
|
21220
21233
|
var operationStartedAt = React.useRef();
|
|
@@ -21247,29 +21260,17 @@
|
|
|
21247
21260
|
});
|
|
21248
21261
|
operationStartedAt.current = new Date();
|
|
21249
21262
|
}, [logSelfieCaptureAttempt]);
|
|
21250
|
-
var
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
if (!!selfieImage) return [3 /*break*/, 2];
|
|
21262
|
-
_a = setSelfieImage;
|
|
21263
|
-
return [4 /*yield*/, dataUrlToBase64(faceCropImageUrl)];
|
|
21264
|
-
case 1:
|
|
21265
|
-
_a.apply(void 0, [_b.sent()]);
|
|
21266
|
-
_b.label = 2;
|
|
21267
|
-
case 2:
|
|
21268
|
-
return [2 /*return*/];
|
|
21269
|
-
}
|
|
21270
|
-
});
|
|
21271
|
-
});
|
|
21272
|
-
}, [logCaptureMetadata, selfieImage, setSelfieImage]);
|
|
21263
|
+
var onFaceLivenessSuccessProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onSuccess;
|
|
21264
|
+
var onFaceCaptureSuccess = React.useCallback(function (response, request) {
|
|
21265
|
+
var _a, _b;
|
|
21266
|
+
onFaceLivenessSuccessProp === null || onFaceLivenessSuccessProp === void 0 ? void 0 : onFaceLivenessSuccessProp(response, request);
|
|
21267
|
+
setCaptureState('CAPTURING_SIGNATURE');
|
|
21268
|
+
logCaptureMetadata();
|
|
21269
|
+
var selfieFromRequest = (_b = (_a = request.customerData) === null || _a === void 0 ? void 0 : _a.biometricData) === null || _b === void 0 ? void 0 : _b.selfie;
|
|
21270
|
+
if (!selfieImage && selfieFromRequest) {
|
|
21271
|
+
setSelfieImage(selfieFromRequest);
|
|
21272
|
+
}
|
|
21273
|
+
}, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
|
|
21273
21274
|
var _p = React.useState(null),
|
|
21274
21275
|
signatureImageUrl = _p[0],
|
|
21275
21276
|
setSignatureImageUrl = _p[1];
|
|
@@ -21291,7 +21292,7 @@
|
|
|
21291
21292
|
setAttempt(function (n) {
|
|
21292
21293
|
return n + 1;
|
|
21293
21294
|
});
|
|
21294
|
-
setCaptureState('
|
|
21295
|
+
setCaptureState('CHECKING_LIVENESS');
|
|
21295
21296
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
21296
21297
|
requestCameraAccess();
|
|
21297
21298
|
}, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
|
|
@@ -21305,7 +21306,7 @@
|
|
|
21305
21306
|
setAttempt(function (n) {
|
|
21306
21307
|
return n + 1;
|
|
21307
21308
|
});
|
|
21308
|
-
setCaptureState('
|
|
21309
|
+
setCaptureState('CHECKING_LIVENESS');
|
|
21309
21310
|
}
|
|
21310
21311
|
}, [cameraAccessDenied]);
|
|
21311
21312
|
var guidesComponent = React.useCallback(function (_a) {
|
|
@@ -21320,18 +21321,27 @@
|
|
|
21320
21321
|
className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
|
|
21321
21322
|
}, /*#__PURE__*/React.createElement(CameraVideoTag, {
|
|
21322
21323
|
className: classNames.cameraFeed
|
|
21323
|
-
}),
|
|
21324
|
+
}), function () {
|
|
21324
21325
|
switch (captureState) {
|
|
21325
21326
|
case 'CHECKING_LIVENESS':
|
|
21326
|
-
return /*#__PURE__*/React.createElement(
|
|
21327
|
+
return /*#__PURE__*/React.createElement(FaceLivenessWizard, _assign({
|
|
21328
|
+
key: "face-liveness-".concat(attempt)
|
|
21329
|
+
}, faceLivenessProps, {
|
|
21327
21330
|
onSuccess: onFaceCaptureSuccess,
|
|
21328
|
-
|
|
21331
|
+
onExitCapture: onExit,
|
|
21332
|
+
onUserCancel: onUserCancel,
|
|
21333
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
21334
|
+
customOverlayContent: customOverlayContent,
|
|
21335
|
+
loadingOverlayMode: loadingOverlayMode,
|
|
21329
21336
|
guidesComponent: guidesComponent,
|
|
21337
|
+
assets: assets.faceLiveness,
|
|
21330
21338
|
classNames: classNames.faceLiveness,
|
|
21331
21339
|
colors: colors.faceLiveness,
|
|
21332
21340
|
verbiage: verbiage.faceLiveness,
|
|
21333
|
-
debugMode: debugMode
|
|
21334
|
-
|
|
21341
|
+
debugMode: debugMode,
|
|
21342
|
+
releaseCameraAccessOnExit: false,
|
|
21343
|
+
renderCameraFeed: false
|
|
21344
|
+
}));
|
|
21335
21345
|
case 'CAPTURING_SIGNATURE':
|
|
21336
21346
|
return /*#__PURE__*/React.createElement(VideoSignatureCapture, {
|
|
21337
21347
|
onVideoCaptured: onSignatureCaptureCompleted,
|
|
@@ -21356,18 +21366,7 @@
|
|
|
21356
21366
|
default:
|
|
21357
21367
|
return null;
|
|
21358
21368
|
}
|
|
21359
|
-
}())
|
|
21360
|
-
key: attempt,
|
|
21361
|
-
mode: loadingOverlayMode,
|
|
21362
|
-
assets: assets.loadingOverlay,
|
|
21363
|
-
classNames: classNames.loadingOverlay,
|
|
21364
|
-
colors: colors.loadingOverlay,
|
|
21365
|
-
verbiage: verbiage.loadingOverlay,
|
|
21366
|
-
onDismissed: onLoadingOverlayDismissed,
|
|
21367
|
-
onUserCancel: onUserCancel,
|
|
21368
|
-
customOverlayContent: customOverlayContent,
|
|
21369
|
-
onCustomOverlayDismissed: onCustomOverlayDismissed
|
|
21370
|
-
}));
|
|
21369
|
+
}()));
|
|
21371
21370
|
};
|
|
21372
21371
|
|
|
21373
21372
|
var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
@@ -22185,7 +22184,7 @@
|
|
|
22185
22184
|
_t = _a.idCaptureLoadingOverlayMode,
|
|
22186
22185
|
idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
|
|
22187
22186
|
customOverlayContent = _a.customOverlayContent,
|
|
22188
|
-
|
|
22187
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
22189
22188
|
_u = _a.idCaptureGuideType,
|
|
22190
22189
|
idCaptureGuideType = _u === void 0 ? 'fit' : _u,
|
|
22191
22190
|
_v = _a.idCaptureGuideImages,
|
|
@@ -22342,7 +22341,7 @@
|
|
|
22342
22341
|
key: "id-capture-".concat(attempt),
|
|
22343
22342
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
22344
22343
|
customOverlayContent: customOverlayContent,
|
|
22345
|
-
|
|
22344
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
22346
22345
|
silentFallback: silentFallback,
|
|
22347
22346
|
guideImages: idCaptureGuideImages
|
|
22348
22347
|
}, idCaptureProps, {
|
|
@@ -22365,7 +22364,7 @@
|
|
|
22365
22364
|
key: "face-liveness-".concat(attempt),
|
|
22366
22365
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
22367
22366
|
customOverlayContent: customOverlayContent,
|
|
22368
|
-
|
|
22367
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
22369
22368
|
silentFallback: silentFallback
|
|
22370
22369
|
}, faceLivenessProps, {
|
|
22371
22370
|
onComplete: onFaceCaptureSuccess,
|
|
@@ -22904,7 +22903,7 @@
|
|
|
22904
22903
|
_c = _a.loadingOverlayMode,
|
|
22905
22904
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
22906
22905
|
customOverlayContent = _a.customOverlayContent,
|
|
22907
|
-
|
|
22906
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
22908
22907
|
_d = _a.idCaptureRequirement,
|
|
22909
22908
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
22910
22909
|
_e = _a.separateIdCardCaptureSequence,
|
|
@@ -22981,7 +22980,7 @@
|
|
|
22981
22980
|
skipSuccessScreen: skipSuccessScreen,
|
|
22982
22981
|
loadingOverlayMode: loadingOverlayMode,
|
|
22983
22982
|
customOverlayContent: customOverlayContent,
|
|
22984
|
-
|
|
22983
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
22985
22984
|
forceFallbackMode: forceFallbackMode,
|
|
22986
22985
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
22987
22986
|
instructions: instructions,
|
|
@@ -22998,7 +22997,7 @@
|
|
|
22998
22997
|
verbiage: verbiage,
|
|
22999
22998
|
debugMode: debugMode
|
|
23000
22999
|
};
|
|
23001
|
-
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent,
|
|
23000
|
+
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
|
|
23002
23001
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
23003
23002
|
return {
|
|
23004
23003
|
documents: captureAdditionalDocuments,
|
|
@@ -23143,7 +23142,7 @@
|
|
|
23143
23142
|
skipSuccessScreen: skipSuccessScreen,
|
|
23144
23143
|
onComplete: onComplete,
|
|
23145
23144
|
onSuccess: onApproved,
|
|
23146
|
-
|
|
23145
|
+
onDenied: onDenied,
|
|
23147
23146
|
onExitCapture: onExitCapture,
|
|
23148
23147
|
onExitAfterFailure: onExitAfterFailure,
|
|
23149
23148
|
onModelError: onModelError,
|
|
@@ -23321,7 +23320,7 @@
|
|
|
23321
23320
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
23322
23321
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
23323
23322
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
23324
|
-
|
|
23323
|
+
onDenied: onDenied,
|
|
23325
23324
|
onExitCapture: onExitCapture,
|
|
23326
23325
|
onExitAfterFailure: onExitAfterFailure,
|
|
23327
23326
|
onUserCancel: onUserCancel,
|
|
@@ -24811,7 +24810,7 @@
|
|
|
24811
24810
|
onUserCancel = _a.onUserCancel,
|
|
24812
24811
|
onModelError = _a.onModelError,
|
|
24813
24812
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24814
|
-
|
|
24813
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
24815
24814
|
_c = _a.loadingOverlayMode,
|
|
24816
24815
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
24817
24816
|
customOverlayContent = _a.customOverlayContent,
|
|
@@ -24820,6 +24819,7 @@
|
|
|
24820
24819
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
24821
24820
|
_e = _a.modelLoadTimeoutMs,
|
|
24822
24821
|
modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
|
|
24822
|
+
faceLivenessProps = _a.faceLivenessProps,
|
|
24823
24823
|
_f = _a.theme,
|
|
24824
24824
|
theme = _f === void 0 ? 'default' : _f,
|
|
24825
24825
|
classNames = _a.classNames,
|
|
@@ -24860,10 +24860,11 @@
|
|
|
24860
24860
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
24861
24861
|
return {
|
|
24862
24862
|
customOverlayContent: customOverlayContent,
|
|
24863
|
-
|
|
24863
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
24864
24864
|
loadingOverlayMode: loadingOverlayMode,
|
|
24865
24865
|
skipSuccessScreen: skipSuccessScreen,
|
|
24866
24866
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
24867
|
+
faceLivenessProps: faceLivenessProps,
|
|
24867
24868
|
classNames: classNames,
|
|
24868
24869
|
colors: colors,
|
|
24869
24870
|
debugMode: debugMode,
|
|
@@ -24871,7 +24872,7 @@
|
|
|
24871
24872
|
onModelError: onModelError,
|
|
24872
24873
|
onUserCancel: onUserCancel
|
|
24873
24874
|
};
|
|
24874
|
-
}, [customOverlayContent,
|
|
24875
|
+
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
24875
24876
|
}))));
|
|
24876
24877
|
};
|
|
24877
24878
|
|
|
@@ -24936,7 +24937,7 @@
|
|
|
24936
24937
|
_k = _a.idCaptureLoadingOverlayMode,
|
|
24937
24938
|
idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
|
|
24938
24939
|
customOverlayContent = _a.customOverlayContent,
|
|
24939
|
-
|
|
24940
|
+
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
24940
24941
|
_l = _a.idCaptureGuideType,
|
|
24941
24942
|
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
24942
24943
|
_m = _a.idCaptureGuideImages,
|
|
@@ -24999,7 +25000,7 @@
|
|
|
24999
25000
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
25000
25001
|
idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
25001
25002
|
customOverlayContent: customOverlayContent,
|
|
25002
|
-
|
|
25003
|
+
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
25003
25004
|
idCaptureGuideType: idCaptureGuideType,
|
|
25004
25005
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
25005
25006
|
idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
@@ -25015,7 +25016,7 @@
|
|
|
25015
25016
|
verbiage: verbiage,
|
|
25016
25017
|
debugMode: debugMode
|
|
25017
25018
|
};
|
|
25018
|
-
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent,
|
|
25019
|
+
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
25019
25020
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
25020
25021
|
return {
|
|
25021
25022
|
documents: captureAdditionalDocuments,
|