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