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
|
@@ -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,7 +11790,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
11788
11790
|
type: 'guidanceUnsatisfied'
|
|
11789
11791
|
});
|
|
11790
11792
|
}, []);
|
|
11791
|
-
var
|
|
11793
|
+
var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
|
|
11792
11794
|
if (modelError) {
|
|
11793
11795
|
return /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureFallback, {
|
|
11794
11796
|
key: state.timesLivenessCheckFailed,
|
|
@@ -11805,7 +11807,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
11805
11807
|
}), /*#__PURE__*/React__namespace.default.createElement(InvisibleCanvas, {
|
|
11806
11808
|
ref: resizeCanvas
|
|
11807
11809
|
}), /*#__PURE__*/React__namespace.default.createElement(SelfieCapture, {
|
|
11808
|
-
shouldCapture: state.requestState === 'CAPTURING' &&
|
|
11810
|
+
shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
|
|
11809
11811
|
onFaceDetected: onFaceDetected,
|
|
11810
11812
|
onSelfieCaptureStarted: onSelfieCaptureStarted,
|
|
11811
11813
|
onSelfieCaptured: onSelfieCaptured,
|
|
@@ -12284,62 +12286,64 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12284
12286
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
12285
12287
|
customOverlayContent = _a.customOverlayContent,
|
|
12286
12288
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
12287
|
-
_f = _a.
|
|
12288
|
-
|
|
12289
|
-
_g = _a.
|
|
12290
|
-
|
|
12291
|
-
_h = _a.
|
|
12292
|
-
|
|
12293
|
-
_j = _a.
|
|
12294
|
-
|
|
12295
|
-
_k = _a.
|
|
12296
|
-
|
|
12297
|
-
_l = _a.
|
|
12298
|
-
|
|
12299
|
-
_m = _a.
|
|
12300
|
-
|
|
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,
|
|
12301
12305
|
guidesComponent = _a.guidesComponent,
|
|
12302
12306
|
disableCapturePreview = _a.disableCapturePreview,
|
|
12303
|
-
|
|
12304
|
-
assets =
|
|
12305
|
-
|
|
12306
|
-
classNames =
|
|
12307
|
-
|
|
12308
|
-
colors =
|
|
12309
|
-
|
|
12310
|
-
verbiage =
|
|
12311
|
-
|
|
12312
|
-
debugMode =
|
|
12313
|
-
var
|
|
12314
|
-
submissionResponse =
|
|
12315
|
-
livenessCheckRequest =
|
|
12316
|
-
setSelfieImage =
|
|
12317
|
-
logSelfieCaptureAttempt =
|
|
12318
|
-
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) {
|
|
12319
12323
|
return {
|
|
12320
12324
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
12321
12325
|
requestCameraAccess: state.requestCameraAccess,
|
|
12322
12326
|
releaseCameraAccess: state.releaseCameraAccess
|
|
12323
12327
|
};
|
|
12324
12328
|
})),
|
|
12325
|
-
cameraAccessDenied =
|
|
12326
|
-
requestCameraAccess =
|
|
12327
|
-
releaseCameraAccess =
|
|
12328
|
-
var
|
|
12329
|
-
faceCropImageUrl =
|
|
12330
|
-
setFaceCropImageUrl =
|
|
12331
|
-
var
|
|
12332
|
-
retryCount =
|
|
12333
|
-
setRetryCount =
|
|
12334
|
-
var
|
|
12335
|
-
captureState =
|
|
12336
|
-
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];
|
|
12337
12341
|
var captureStartedAt = React.useRef();
|
|
12338
12342
|
var operationStartedAt = React.useRef();
|
|
12339
12343
|
var livenessScore = React.useRef();
|
|
12340
|
-
var
|
|
12341
|
-
start =
|
|
12342
|
-
stop =
|
|
12344
|
+
var _z = React.useContext(SelfieGuidanceModelsContext),
|
|
12345
|
+
start = _z.start,
|
|
12346
|
+
stop = _z.stop;
|
|
12343
12347
|
React.useEffect(function () {
|
|
12344
12348
|
if (captureState !== 'CAPTURING') return;
|
|
12345
12349
|
operationStartedAt.current = new Date();
|
|
@@ -12399,9 +12403,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12399
12403
|
setCaptureState('FAILED');
|
|
12400
12404
|
onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
|
|
12401
12405
|
}, [onDenied, submissionResponse, livenessCheckRequest]);
|
|
12402
|
-
var
|
|
12403
|
-
attempt =
|
|
12404
|
-
setAttempt =
|
|
12406
|
+
var _0 = React.useState(0),
|
|
12407
|
+
attempt = _0[0],
|
|
12408
|
+
setAttempt = _0[1];
|
|
12405
12409
|
var onExitCallback = React.useCallback(function () {
|
|
12406
12410
|
setAttempt(function (n) {
|
|
12407
12411
|
return n + 1;
|
|
@@ -12464,6 +12468,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12464
12468
|
onTimeout: onTimeout,
|
|
12465
12469
|
onDenied: onDeniedCallback,
|
|
12466
12470
|
onExit: onExitCallback,
|
|
12471
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
12467
12472
|
timeoutDurationMs: timeoutDurationMs,
|
|
12468
12473
|
silentFallback: silentFallback,
|
|
12469
12474
|
guidesComponent: guidesComponent,
|
|
@@ -15408,12 +15413,14 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15408
15413
|
predictGender = _a.predictGender,
|
|
15409
15414
|
_d = _a.loadingOverlayMode,
|
|
15410
15415
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
15411
|
-
_e = _a.
|
|
15412
|
-
|
|
15413
|
-
_f = _a.
|
|
15414
|
-
|
|
15415
|
-
_g = _a.
|
|
15416
|
-
|
|
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,
|
|
15417
15424
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
15418
15425
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15419
15426
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15429,23 +15436,24 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15429
15436
|
onUserCancel = _a.onUserCancel,
|
|
15430
15437
|
onModelError = _a.onModelError,
|
|
15431
15438
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15432
|
-
|
|
15433
|
-
theme =
|
|
15439
|
+
_j = _a.theme,
|
|
15440
|
+
theme = _j === void 0 ? 'default' : _j,
|
|
15434
15441
|
assets = _a.assets,
|
|
15435
15442
|
classNames = _a.classNames,
|
|
15436
15443
|
colors = _a.colors,
|
|
15437
15444
|
verbiage = _a.verbiage,
|
|
15438
|
-
|
|
15439
|
-
geolocationEnabled =
|
|
15440
|
-
|
|
15441
|
-
geolocationRequired =
|
|
15442
|
-
|
|
15443
|
-
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;
|
|
15444
15451
|
useLanguage(lang);
|
|
15445
15452
|
useDebugLogging(debugMode);
|
|
15446
15453
|
var faceLivenessProps = React.useMemo(function () {
|
|
15447
15454
|
return {
|
|
15448
15455
|
loadingOverlayMode: loadingOverlayMode,
|
|
15456
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
15449
15457
|
timeoutDurationMs: timeoutDurationMs,
|
|
15450
15458
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
15451
15459
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -15462,7 +15470,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15462
15470
|
verbiage: verbiage,
|
|
15463
15471
|
debugMode: debugMode
|
|
15464
15472
|
};
|
|
15465
|
-
}, [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]);
|
|
15466
15474
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
15467
15475
|
sessionId: sessionId,
|
|
15468
15476
|
authUrl: authUrl
|
|
@@ -15547,35 +15555,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15547
15555
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
15548
15556
|
_g = _a.faceLivenessLoadingOverlayMode,
|
|
15549
15557
|
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
15550
|
-
_h = _a.
|
|
15551
|
-
|
|
15552
|
-
_j = _a.
|
|
15553
|
-
|
|
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,
|
|
15554
15564
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
15555
|
-
|
|
15556
|
-
idCaptureGuideType =
|
|
15557
|
-
|
|
15558
|
-
idCaptureGuideImages =
|
|
15559
|
-
|
|
15560
|
-
idCapturePortraitGuidesOnMobile =
|
|
15561
|
-
|
|
15562
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
15563
|
-
|
|
15564
|
-
idCaptureModelLoadTimeoutMs =
|
|
15565
|
-
|
|
15566
|
-
idCaptureForceFallbackMode =
|
|
15567
|
-
|
|
15568
|
-
idCaptureAllowUploadingDocumentsFromStorage =
|
|
15569
|
-
|
|
15570
|
-
separateIdCardCaptureSequence =
|
|
15571
|
-
|
|
15572
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
15573
|
-
|
|
15574
|
-
allowIdCardBackToFrontCapture =
|
|
15575
|
-
|
|
15576
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
15577
|
-
|
|
15578
|
-
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,
|
|
15579
15589
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15580
15590
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
15581
15591
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15593,28 +15603,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15593
15603
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
15594
15604
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
15595
15605
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15596
|
-
|
|
15597
|
-
captureSignature =
|
|
15598
|
-
|
|
15599
|
-
captureSignatureVideo =
|
|
15600
|
-
|
|
15601
|
-
captureAdditionalDocuments =
|
|
15602
|
-
|
|
15603
|
-
theme =
|
|
15604
|
-
|
|
15605
|
-
assets =
|
|
15606
|
-
|
|
15607
|
-
classNames =
|
|
15608
|
-
|
|
15609
|
-
colors =
|
|
15610
|
-
|
|
15611
|
-
verbiage =
|
|
15612
|
-
|
|
15613
|
-
geolocationEnabled =
|
|
15614
|
-
|
|
15615
|
-
geolocationRequired =
|
|
15616
|
-
|
|
15617
|
-
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;
|
|
15618
15628
|
useLanguage(lang);
|
|
15619
15629
|
useDebugLogging(debugMode);
|
|
15620
15630
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -15650,6 +15660,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15650
15660
|
var faceLivenessProps = React.useMemo(function () {
|
|
15651
15661
|
return {
|
|
15652
15662
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
15663
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
15653
15664
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
15654
15665
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
15655
15666
|
onDenied: onDenied,
|
|
@@ -15664,7 +15675,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15664
15675
|
verbiage: verbiage.faceLiveness,
|
|
15665
15676
|
debugMode: debugMode
|
|
15666
15677
|
};
|
|
15667
|
-
}, [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]);
|
|
15668
15679
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
15669
15680
|
return {
|
|
15670
15681
|
documents: captureAdditionalDocuments,
|
|
@@ -15799,37 +15810,39 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15799
15810
|
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
15800
15811
|
_f = _a.idCaptureThresholds,
|
|
15801
15812
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
15802
|
-
_g = _a.
|
|
15803
|
-
|
|
15804
|
-
_h = _a.
|
|
15805
|
-
|
|
15806
|
-
_j = _a.
|
|
15807
|
-
|
|
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,
|
|
15808
15821
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
15809
|
-
|
|
15810
|
-
idCaptureGuideType =
|
|
15811
|
-
|
|
15812
|
-
idCaptureGuideImages =
|
|
15813
|
-
|
|
15814
|
-
idCapturePortraitGuidesOnMobile =
|
|
15815
|
-
|
|
15816
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
15817
|
-
|
|
15818
|
-
idCaptureModelLoadTimeoutMs =
|
|
15819
|
-
|
|
15820
|
-
idCaptureForceFallbackMode =
|
|
15821
|
-
|
|
15822
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
15823
|
-
|
|
15824
|
-
allowIdCardBackToFrontCapture =
|
|
15825
|
-
|
|
15826
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
15827
|
-
|
|
15828
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
15829
|
-
|
|
15830
|
-
allowUploadingDocumentsFromStorage =
|
|
15831
|
-
|
|
15832
|
-
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,
|
|
15833
15846
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15834
15847
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
15835
15848
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -15846,31 +15859,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15846
15859
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
15847
15860
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
15848
15861
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15849
|
-
|
|
15850
|
-
captureSignature =
|
|
15851
|
-
|
|
15852
|
-
captureSignatureVideo =
|
|
15853
|
-
|
|
15854
|
-
captureAdditionalDocuments =
|
|
15855
|
-
|
|
15856
|
-
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,
|
|
15857
15870
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
15858
|
-
|
|
15859
|
-
theme =
|
|
15860
|
-
|
|
15861
|
-
assets =
|
|
15862
|
-
|
|
15863
|
-
classNames =
|
|
15864
|
-
|
|
15865
|
-
colors =
|
|
15866
|
-
|
|
15867
|
-
verbiage =
|
|
15868
|
-
|
|
15869
|
-
geolocationEnabled =
|
|
15870
|
-
|
|
15871
|
-
geolocationRequired =
|
|
15872
|
-
|
|
15873
|
-
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;
|
|
15874
15887
|
useLanguage(lang);
|
|
15875
15888
|
useDebugLogging(debugMode);
|
|
15876
15889
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -15909,6 +15922,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15909
15922
|
onUserCancel: onUserCancel,
|
|
15910
15923
|
onModelError: onSelfieCaptureModelError,
|
|
15911
15924
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
15925
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
15912
15926
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
15913
15927
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
15914
15928
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -15918,7 +15932,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15918
15932
|
verbiage: verbiage.faceLiveness,
|
|
15919
15933
|
debugMode: debugMode
|
|
15920
15934
|
};
|
|
15921
|
-
}, [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]);
|
|
15922
15936
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
15923
15937
|
return _assign({
|
|
15924
15938
|
onExitCapture: onExitCapture,
|
|
@@ -17508,12 +17522,14 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17508
17522
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
17509
17523
|
_c = _a.loadingOverlayMode,
|
|
17510
17524
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
17511
|
-
_d = _a.
|
|
17512
|
-
|
|
17513
|
-
_e = _a.
|
|
17514
|
-
|
|
17515
|
-
_f = _a.
|
|
17516
|
-
|
|
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,
|
|
17517
17533
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17518
17534
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17519
17535
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17529,28 +17545,28 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17529
17545
|
onUserCancel = _a.onUserCancel,
|
|
17530
17546
|
onModelError = _a.onModelError,
|
|
17531
17547
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
17532
|
-
|
|
17533
|
-
captureAdditionalDocuments =
|
|
17534
|
-
|
|
17535
|
-
captureSignature =
|
|
17536
|
-
|
|
17537
|
-
captureSignatureVideo =
|
|
17538
|
-
|
|
17539
|
-
theme =
|
|
17540
|
-
|
|
17541
|
-
assets =
|
|
17542
|
-
|
|
17543
|
-
classNames =
|
|
17544
|
-
|
|
17545
|
-
colors =
|
|
17546
|
-
|
|
17547
|
-
verbiage =
|
|
17548
|
-
|
|
17549
|
-
geolocationEnabled =
|
|
17550
|
-
|
|
17551
|
-
geolocationRequired =
|
|
17552
|
-
|
|
17553
|
-
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;
|
|
17554
17570
|
useLanguage(lang);
|
|
17555
17571
|
useDebugLogging(debugMode);
|
|
17556
17572
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -17560,6 +17576,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17560
17576
|
onExitAfterFailure: onExitAfterFailure,
|
|
17561
17577
|
onModelError: onModelError,
|
|
17562
17578
|
timeoutDurationMs: timeoutDurationMs,
|
|
17579
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
17563
17580
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
17564
17581
|
loadingOverlayMode: loadingOverlayMode,
|
|
17565
17582
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -17569,7 +17586,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17569
17586
|
verbiage: verbiage.faceLiveness,
|
|
17570
17587
|
debugMode: debugMode
|
|
17571
17588
|
};
|
|
17572
|
-
}, [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]);
|
|
17573
17590
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
17574
17591
|
return {
|
|
17575
17592
|
documents: captureAdditionalDocuments,
|