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
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.131';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -11566,29 +11566,31 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
11566
11566
|
onTimeout = _a.onTimeout,
|
|
11567
11567
|
onDenied = _a.onDenied,
|
|
11568
11568
|
onExit = _a.onExit,
|
|
11569
|
-
_f = _a.
|
|
11570
|
-
|
|
11571
|
-
_g = _a.
|
|
11572
|
-
|
|
11569
|
+
_f = _a.initialCaptureDelayMs,
|
|
11570
|
+
initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
|
|
11571
|
+
_g = _a.timeoutDurationMs,
|
|
11572
|
+
timeoutDurationMs = _g === void 0 ? 15000 : _g,
|
|
11573
|
+
_h = _a.silentFallback,
|
|
11574
|
+
silentFallback = _h === void 0 ? false : _h,
|
|
11573
11575
|
guidesComponent = _a.guidesComponent,
|
|
11574
11576
|
disableCapturePreview = _a.disableCapturePreview,
|
|
11575
|
-
|
|
11576
|
-
classNames =
|
|
11577
|
-
|
|
11578
|
-
colors =
|
|
11579
|
-
|
|
11580
|
-
rawVerbiage =
|
|
11577
|
+
_j = _a.classNames,
|
|
11578
|
+
classNames = _j === void 0 ? {} : _j,
|
|
11579
|
+
_k = _a.colors,
|
|
11580
|
+
colors = _k === void 0 ? {} : _k,
|
|
11581
|
+
_l = _a.verbiage,
|
|
11582
|
+
rawVerbiage = _l === void 0 ? {} : _l,
|
|
11581
11583
|
debugMode = _a.debugMode;
|
|
11582
|
-
var
|
|
11583
|
-
checkLiveness =
|
|
11584
|
-
submissionError =
|
|
11584
|
+
var _m = useContext(SubmissionContext),
|
|
11585
|
+
checkLiveness = _m.checkLiveness,
|
|
11586
|
+
submissionError = _m.submissionError;
|
|
11585
11587
|
var modelError = useContext(SelfieGuidanceModelsContext).error;
|
|
11586
|
-
var
|
|
11587
|
-
state =
|
|
11588
|
-
dispatch =
|
|
11589
|
-
var
|
|
11590
|
-
imageUrl =
|
|
11591
|
-
setImageUrl =
|
|
11588
|
+
var _o = useReducer(reducer$2, initialState$2),
|
|
11589
|
+
state = _o[0],
|
|
11590
|
+
dispatch = _o[1];
|
|
11591
|
+
var _p = useState(null),
|
|
11592
|
+
imageUrl = _p[0],
|
|
11593
|
+
setImageUrl = _p[1];
|
|
11592
11594
|
var rawCanvas = useRef(null);
|
|
11593
11595
|
var cropCanvas = useRef(null);
|
|
11594
11596
|
var resizeCanvas = useRef(null);
|
|
@@ -11758,6 +11760,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
11758
11760
|
type: 'guidanceUnsatisfied'
|
|
11759
11761
|
});
|
|
11760
11762
|
}, []);
|
|
11763
|
+
var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
|
|
11761
11764
|
if (modelError) {
|
|
11762
11765
|
return /*#__PURE__*/React__default.createElement(SelfieCaptureFallback, {
|
|
11763
11766
|
key: state.timesLivenessCheckFailed,
|
|
@@ -11774,7 +11777,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
11774
11777
|
}), /*#__PURE__*/React__default.createElement(InvisibleCanvas, {
|
|
11775
11778
|
ref: resizeCanvas
|
|
11776
11779
|
}), /*#__PURE__*/React__default.createElement(SelfieCapture, {
|
|
11777
|
-
shouldCapture: state.requestState === 'CAPTURING',
|
|
11780
|
+
shouldCapture: state.requestState === 'CAPTURING' && initialDelayOver,
|
|
11778
11781
|
onFaceDetected: onFaceDetected,
|
|
11779
11782
|
onSelfieCaptureStarted: onSelfieCaptureStarted,
|
|
11780
11783
|
onSelfieCaptured: onSelfieCaptured,
|
|
@@ -12253,62 +12256,64 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12253
12256
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
12254
12257
|
customOverlayContent = _a.customOverlayContent,
|
|
12255
12258
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
12256
|
-
_f = _a.
|
|
12257
|
-
|
|
12258
|
-
_g = _a.
|
|
12259
|
-
|
|
12260
|
-
_h = _a.
|
|
12261
|
-
|
|
12262
|
-
_j = _a.
|
|
12263
|
-
|
|
12264
|
-
_k = _a.
|
|
12265
|
-
|
|
12266
|
-
_l = _a.
|
|
12267
|
-
|
|
12268
|
-
_m = _a.
|
|
12269
|
-
|
|
12259
|
+
_f = _a.initialCaptureDelayMs,
|
|
12260
|
+
initialCaptureDelayMs = _f === void 0 ? 1000 : _f,
|
|
12261
|
+
_g = _a.timeoutDurationMs,
|
|
12262
|
+
timeoutDurationMs = _g === void 0 ? 15000 : _g,
|
|
12263
|
+
_h = _a.maxRetries,
|
|
12264
|
+
maxRetries = _h === void 0 ? 2 : _h,
|
|
12265
|
+
_j = _a.skipSuccessScreen,
|
|
12266
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
12267
|
+
_k = _a.renderCameraFeed,
|
|
12268
|
+
renderCameraFeed = _k === void 0 ? true : _k,
|
|
12269
|
+
_l = _a.releaseCameraAccessOnExit,
|
|
12270
|
+
releaseCameraAccessOnExit = _l === void 0 ? true : _l,
|
|
12271
|
+
_m = _a.silentFallback,
|
|
12272
|
+
silentFallback = _m === void 0 ? false : _m,
|
|
12273
|
+
_o = _a.waitForIdCaptureModels,
|
|
12274
|
+
waitForIdCaptureModels = _o === void 0 ? false : _o,
|
|
12270
12275
|
guidesComponent = _a.guidesComponent,
|
|
12271
12276
|
disableCapturePreview = _a.disableCapturePreview,
|
|
12272
|
-
|
|
12273
|
-
assets =
|
|
12274
|
-
|
|
12275
|
-
classNames =
|
|
12276
|
-
|
|
12277
|
-
colors =
|
|
12278
|
-
|
|
12279
|
-
verbiage =
|
|
12280
|
-
|
|
12281
|
-
debugMode =
|
|
12282
|
-
var
|
|
12283
|
-
submissionResponse =
|
|
12284
|
-
livenessCheckRequest =
|
|
12285
|
-
setSelfieImage =
|
|
12286
|
-
logSelfieCaptureAttempt =
|
|
12287
|
-
var
|
|
12277
|
+
_p = _a.assets,
|
|
12278
|
+
assets = _p === void 0 ? {} : _p,
|
|
12279
|
+
_q = _a.classNames,
|
|
12280
|
+
classNames = _q === void 0 ? {} : _q,
|
|
12281
|
+
_r = _a.colors,
|
|
12282
|
+
colors = _r === void 0 ? {} : _r,
|
|
12283
|
+
_s = _a.verbiage,
|
|
12284
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
12285
|
+
_t = _a.debugMode,
|
|
12286
|
+
debugMode = _t === void 0 ? false : _t;
|
|
12287
|
+
var _u = useContext(SubmissionContext),
|
|
12288
|
+
submissionResponse = _u.submissionResponse,
|
|
12289
|
+
livenessCheckRequest = _u.livenessCheckRequest,
|
|
12290
|
+
setSelfieImage = _u.setSelfieImage,
|
|
12291
|
+
logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt;
|
|
12292
|
+
var _v = useCameraStore(useShallow(function (state) {
|
|
12288
12293
|
return {
|
|
12289
12294
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
12290
12295
|
requestCameraAccess: state.requestCameraAccess,
|
|
12291
12296
|
releaseCameraAccess: state.releaseCameraAccess
|
|
12292
12297
|
};
|
|
12293
12298
|
})),
|
|
12294
|
-
cameraAccessDenied =
|
|
12295
|
-
requestCameraAccess =
|
|
12296
|
-
releaseCameraAccess =
|
|
12297
|
-
var
|
|
12298
|
-
faceCropImageUrl =
|
|
12299
|
-
setFaceCropImageUrl =
|
|
12300
|
-
var
|
|
12301
|
-
retryCount =
|
|
12302
|
-
setRetryCount =
|
|
12303
|
-
var
|
|
12304
|
-
captureState =
|
|
12305
|
-
setCaptureState =
|
|
12299
|
+
cameraAccessDenied = _v.cameraAccessDenied,
|
|
12300
|
+
requestCameraAccess = _v.requestCameraAccess,
|
|
12301
|
+
releaseCameraAccess = _v.releaseCameraAccess;
|
|
12302
|
+
var _w = useState(''),
|
|
12303
|
+
faceCropImageUrl = _w[0],
|
|
12304
|
+
setFaceCropImageUrl = _w[1];
|
|
12305
|
+
var _x = useState(0),
|
|
12306
|
+
retryCount = _x[0],
|
|
12307
|
+
setRetryCount = _x[1];
|
|
12308
|
+
var _y = useState('LOADING'),
|
|
12309
|
+
captureState = _y[0],
|
|
12310
|
+
setCaptureState = _y[1];
|
|
12306
12311
|
var captureStartedAt = useRef();
|
|
12307
12312
|
var operationStartedAt = useRef();
|
|
12308
12313
|
var livenessScore = useRef();
|
|
12309
|
-
var
|
|
12310
|
-
start =
|
|
12311
|
-
stop =
|
|
12314
|
+
var _z = useContext(SelfieGuidanceModelsContext),
|
|
12315
|
+
start = _z.start,
|
|
12316
|
+
stop = _z.stop;
|
|
12312
12317
|
useEffect(function () {
|
|
12313
12318
|
if (captureState !== 'CAPTURING') return;
|
|
12314
12319
|
operationStartedAt.current = new Date();
|
|
@@ -12368,9 +12373,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12368
12373
|
setCaptureState('FAILED');
|
|
12369
12374
|
onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
|
|
12370
12375
|
}, [onDenied, submissionResponse, livenessCheckRequest]);
|
|
12371
|
-
var
|
|
12372
|
-
attempt =
|
|
12373
|
-
setAttempt =
|
|
12376
|
+
var _0 = useState(0),
|
|
12377
|
+
attempt = _0[0],
|
|
12378
|
+
setAttempt = _0[1];
|
|
12374
12379
|
var onExitCallback = useCallback(function () {
|
|
12375
12380
|
setAttempt(function (n) {
|
|
12376
12381
|
return n + 1;
|
|
@@ -12433,6 +12438,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12433
12438
|
onTimeout: onTimeout,
|
|
12434
12439
|
onDenied: onDeniedCallback,
|
|
12435
12440
|
onExit: onExitCallback,
|
|
12441
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
12436
12442
|
timeoutDurationMs: timeoutDurationMs,
|
|
12437
12443
|
silentFallback: silentFallback,
|
|
12438
12444
|
guidesComponent: guidesComponent,
|
|
@@ -15377,12 +15383,14 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15377
15383
|
predictGender = _a.predictGender,
|
|
15378
15384
|
_d = _a.loadingOverlayMode,
|
|
15379
15385
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
15380
|
-
_e = _a.
|
|
15381
|
-
|
|
15382
|
-
_f = _a.
|
|
15383
|
-
|
|
15384
|
-
_g = _a.
|
|
15385
|
-
|
|
15386
|
+
_e = _a.initialCaptureDelayMs,
|
|
15387
|
+
initialCaptureDelayMs = _e === void 0 ? 1000 : _e,
|
|
15388
|
+
_f = _a.timeoutDurationMs,
|
|
15389
|
+
timeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
15390
|
+
_g = _a.modelLoadTimeoutMs,
|
|
15391
|
+
modelLoadTimeoutMs = _g === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _g,
|
|
15392
|
+
_h = _a.skipSuccessScreen,
|
|
15393
|
+
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
15386
15394
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
15387
15395
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15388
15396
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15398,23 +15406,24 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15398
15406
|
onUserCancel = _a.onUserCancel,
|
|
15399
15407
|
onModelError = _a.onModelError,
|
|
15400
15408
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15401
|
-
|
|
15402
|
-
theme =
|
|
15409
|
+
_j = _a.theme,
|
|
15410
|
+
theme = _j === void 0 ? 'default' : _j,
|
|
15403
15411
|
assets = _a.assets,
|
|
15404
15412
|
classNames = _a.classNames,
|
|
15405
15413
|
colors = _a.colors,
|
|
15406
15414
|
verbiage = _a.verbiage,
|
|
15407
|
-
|
|
15408
|
-
geolocationEnabled =
|
|
15409
|
-
|
|
15410
|
-
geolocationRequired =
|
|
15411
|
-
|
|
15412
|
-
debugMode =
|
|
15415
|
+
_k = _a.geolocationEnabled,
|
|
15416
|
+
geolocationEnabled = _k === void 0 ? true : _k,
|
|
15417
|
+
_l = _a.geolocationRequired,
|
|
15418
|
+
geolocationRequired = _l === void 0 ? false : _l,
|
|
15419
|
+
_m = _a.debugMode,
|
|
15420
|
+
debugMode = _m === void 0 ? false : _m;
|
|
15413
15421
|
useLanguage(lang);
|
|
15414
15422
|
useDebugLogging(debugMode);
|
|
15415
15423
|
var faceLivenessProps = useMemo(function () {
|
|
15416
15424
|
return {
|
|
15417
15425
|
loadingOverlayMode: loadingOverlayMode,
|
|
15426
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
15418
15427
|
timeoutDurationMs: timeoutDurationMs,
|
|
15419
15428
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
15420
15429
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -15431,7 +15440,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15431
15440
|
verbiage: verbiage,
|
|
15432
15441
|
debugMode: debugMode
|
|
15433
15442
|
};
|
|
15434
|
-
}, [assets, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
15443
|
+
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
15435
15444
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
15436
15445
|
sessionId: sessionId,
|
|
15437
15446
|
authUrl: authUrl
|
|
@@ -15516,35 +15525,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15516
15525
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
15517
15526
|
_g = _a.faceLivenessLoadingOverlayMode,
|
|
15518
15527
|
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
15519
|
-
_h = _a.
|
|
15520
|
-
|
|
15521
|
-
_j = _a.
|
|
15522
|
-
|
|
15528
|
+
_h = _a.faceLivenessInitialCaptureDelayMs,
|
|
15529
|
+
faceLivenessInitialCaptureDelayMs = _h === void 0 ? 1000 : _h,
|
|
15530
|
+
_j = _a.faceLivenessTimeoutDurationMs,
|
|
15531
|
+
faceLivenessTimeoutDurationMs = _j === void 0 ? 15000 : _j,
|
|
15532
|
+
_k = _a.skipSuccessScreen,
|
|
15533
|
+
skipSuccessScreen = _k === void 0 ? false : _k,
|
|
15523
15534
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
15524
|
-
|
|
15525
|
-
idCaptureGuideType =
|
|
15526
|
-
|
|
15527
|
-
idCaptureGuideImages =
|
|
15528
|
-
|
|
15529
|
-
idCapturePortraitGuidesOnMobile =
|
|
15530
|
-
|
|
15531
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
15532
|
-
|
|
15533
|
-
idCaptureModelLoadTimeoutMs =
|
|
15534
|
-
|
|
15535
|
-
idCaptureForceFallbackMode =
|
|
15536
|
-
|
|
15537
|
-
idCaptureAllowUploadingDocumentsFromStorage =
|
|
15538
|
-
|
|
15539
|
-
separateIdCardCaptureSequence =
|
|
15540
|
-
|
|
15541
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
15542
|
-
|
|
15543
|
-
allowIdCardBackToFrontCapture =
|
|
15544
|
-
|
|
15545
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
15546
|
-
|
|
15547
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
15535
|
+
_l = _a.idCaptureGuideType,
|
|
15536
|
+
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
15537
|
+
_m = _a.idCaptureGuideImages,
|
|
15538
|
+
idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
|
|
15539
|
+
_o = _a.idCapturePortraitGuidesOnMobile,
|
|
15540
|
+
idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
|
|
15541
|
+
_p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15542
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
15543
|
+
_q = _a.idCaptureModelLoadTimeoutMs,
|
|
15544
|
+
idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
|
|
15545
|
+
_r = _a.idCaptureForceFallbackMode,
|
|
15546
|
+
idCaptureForceFallbackMode = _r === void 0 ? false : _r,
|
|
15547
|
+
_s = _a.idCaptureAllowUploadingDocumentsFromStorage,
|
|
15548
|
+
idCaptureAllowUploadingDocumentsFromStorage = _s === void 0 ? false : _s,
|
|
15549
|
+
_t = _a.separateIdCardCaptureSequence,
|
|
15550
|
+
separateIdCardCaptureSequence = _t === void 0 ? false : _t,
|
|
15551
|
+
_u = _a.selfieCaptureModelLoadTimeoutMs,
|
|
15552
|
+
selfieCaptureModelLoadTimeoutMs = _u === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _u,
|
|
15553
|
+
_v = _a.allowIdCardBackToFrontCapture,
|
|
15554
|
+
allowIdCardBackToFrontCapture = _v === void 0 ? false : _v,
|
|
15555
|
+
_w = _a.enableOverrideWrongDocumentTypeDialog,
|
|
15556
|
+
enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
|
|
15557
|
+
_x = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
15558
|
+
allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
|
|
15548
15559
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15549
15560
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
15550
15561
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15562,28 +15573,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15562
15573
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
15563
15574
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
15564
15575
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15565
|
-
|
|
15566
|
-
captureSignature =
|
|
15567
|
-
|
|
15568
|
-
captureSignatureVideo =
|
|
15569
|
-
|
|
15570
|
-
captureAdditionalDocuments =
|
|
15571
|
-
|
|
15572
|
-
theme =
|
|
15573
|
-
|
|
15574
|
-
assets =
|
|
15575
|
-
|
|
15576
|
-
classNames =
|
|
15577
|
-
|
|
15578
|
-
colors =
|
|
15579
|
-
|
|
15580
|
-
verbiage =
|
|
15581
|
-
|
|
15582
|
-
geolocationEnabled =
|
|
15583
|
-
|
|
15584
|
-
geolocationRequired =
|
|
15585
|
-
|
|
15586
|
-
debugMode =
|
|
15576
|
+
_y = _a.captureSignature,
|
|
15577
|
+
captureSignature = _y === void 0 ? false : _y,
|
|
15578
|
+
_z = _a.captureSignatureVideo,
|
|
15579
|
+
captureSignatureVideo = _z === void 0 ? false : _z,
|
|
15580
|
+
_0 = _a.captureAdditionalDocuments,
|
|
15581
|
+
captureAdditionalDocuments = _0 === void 0 ? [] : _0,
|
|
15582
|
+
_1 = _a.theme,
|
|
15583
|
+
theme = _1 === void 0 ? 'default' : _1,
|
|
15584
|
+
_2 = _a.assets,
|
|
15585
|
+
assets = _2 === void 0 ? {} : _2,
|
|
15586
|
+
_3 = _a.classNames,
|
|
15587
|
+
classNames = _3 === void 0 ? {} : _3,
|
|
15588
|
+
_4 = _a.colors,
|
|
15589
|
+
colors = _4 === void 0 ? {} : _4,
|
|
15590
|
+
_5 = _a.verbiage,
|
|
15591
|
+
verbiage = _5 === void 0 ? {} : _5,
|
|
15592
|
+
_6 = _a.geolocationEnabled,
|
|
15593
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
15594
|
+
_7 = _a.geolocationRequired,
|
|
15595
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
15596
|
+
_8 = _a.debugMode,
|
|
15597
|
+
debugMode = _8 === void 0 ? false : _8;
|
|
15587
15598
|
useLanguage(lang);
|
|
15588
15599
|
useDebugLogging(debugMode);
|
|
15589
15600
|
var idCaptureProps = useMemo(function () {
|
|
@@ -15619,6 +15630,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15619
15630
|
var faceLivenessProps = useMemo(function () {
|
|
15620
15631
|
return {
|
|
15621
15632
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
15633
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
15622
15634
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
15623
15635
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
15624
15636
|
onDenied: onDenied,
|
|
@@ -15633,7 +15645,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15633
15645
|
verbiage: verbiage.faceLiveness,
|
|
15634
15646
|
debugMode: debugMode
|
|
15635
15647
|
};
|
|
15636
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
15648
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
15637
15649
|
var additionalDocumentCaptureProps = useMemo(function () {
|
|
15638
15650
|
return {
|
|
15639
15651
|
documents: captureAdditionalDocuments,
|
|
@@ -15768,37 +15780,39 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15768
15780
|
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
15769
15781
|
_f = _a.idCaptureThresholds,
|
|
15770
15782
|
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
15771
|
-
_g = _a.
|
|
15772
|
-
|
|
15773
|
-
_h = _a.
|
|
15774
|
-
|
|
15775
|
-
_j = _a.
|
|
15776
|
-
|
|
15783
|
+
_g = _a.faceLivenessInitialCaptureDelayMs,
|
|
15784
|
+
faceLivenessInitialCaptureDelayMs = _g === void 0 ? 1000 : _g,
|
|
15785
|
+
_h = _a.faceLivenessTimeoutDurationMs,
|
|
15786
|
+
faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
|
|
15787
|
+
_j = _a.faceLivenessLoadingOverlayMode,
|
|
15788
|
+
faceLivenessLoadingOverlayMode = _j === void 0 ? 'default' : _j,
|
|
15789
|
+
_k = _a.skipSuccessScreen,
|
|
15790
|
+
skipSuccessScreen = _k === void 0 ? false : _k,
|
|
15777
15791
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
15778
|
-
|
|
15779
|
-
idCaptureGuideType =
|
|
15780
|
-
|
|
15781
|
-
idCaptureGuideImages =
|
|
15782
|
-
|
|
15783
|
-
idCapturePortraitGuidesOnMobile =
|
|
15784
|
-
|
|
15785
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
15786
|
-
|
|
15787
|
-
idCaptureModelLoadTimeoutMs =
|
|
15788
|
-
|
|
15789
|
-
idCaptureForceFallbackMode =
|
|
15790
|
-
|
|
15791
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
15792
|
-
|
|
15793
|
-
allowIdCardBackToFrontCapture =
|
|
15794
|
-
|
|
15795
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
15796
|
-
|
|
15797
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
15798
|
-
|
|
15799
|
-
allowUploadingDocumentsFromStorage =
|
|
15800
|
-
|
|
15801
|
-
separateIdCardCaptureSequence =
|
|
15792
|
+
_l = _a.idCaptureGuideType,
|
|
15793
|
+
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
15794
|
+
_m = _a.idCaptureGuideImages,
|
|
15795
|
+
idCaptureGuideImages = _m === void 0 ? defaultIdCaptureGuideImages : _m,
|
|
15796
|
+
_o = _a.idCapturePortraitGuidesOnMobile,
|
|
15797
|
+
idCapturePortraitGuidesOnMobile = _o === void 0 ? true : _o,
|
|
15798
|
+
_p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15799
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
15800
|
+
_q = _a.idCaptureModelLoadTimeoutMs,
|
|
15801
|
+
idCaptureModelLoadTimeoutMs = _q === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _q,
|
|
15802
|
+
_r = _a.idCaptureForceFallbackMode,
|
|
15803
|
+
idCaptureForceFallbackMode = _r === void 0 ? false : _r,
|
|
15804
|
+
_s = _a.selfieCaptureModelLoadTimeoutMs,
|
|
15805
|
+
selfieCaptureModelLoadTimeoutMs = _s === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _s,
|
|
15806
|
+
_t = _a.allowIdCardBackToFrontCapture,
|
|
15807
|
+
allowIdCardBackToFrontCapture = _t === void 0 ? false : _t,
|
|
15808
|
+
_u = _a.enableOverrideWrongDocumentTypeDialog,
|
|
15809
|
+
enableOverrideWrongDocumentTypeDialog = _u === void 0 ? false : _u,
|
|
15810
|
+
_v = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
15811
|
+
allowOverrideWrongDocumentTypeAfterMs = _v === void 0 ? 8000 : _v,
|
|
15812
|
+
_w = _a.allowUploadingDocumentsFromStorage,
|
|
15813
|
+
allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
|
|
15814
|
+
_x = _a.separateIdCardCaptureSequence,
|
|
15815
|
+
separateIdCardCaptureSequence = _x === void 0 ? false : _x,
|
|
15802
15816
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15803
15817
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
15804
15818
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -15815,31 +15829,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15815
15829
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
15816
15830
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
15817
15831
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15818
|
-
|
|
15819
|
-
captureSignature =
|
|
15820
|
-
|
|
15821
|
-
captureSignatureVideo =
|
|
15822
|
-
|
|
15823
|
-
captureAdditionalDocuments =
|
|
15824
|
-
|
|
15825
|
-
captureVideoId =
|
|
15832
|
+
_y = _a.captureSignature,
|
|
15833
|
+
captureSignature = _y === void 0 ? false : _y,
|
|
15834
|
+
_z = _a.captureSignatureVideo,
|
|
15835
|
+
captureSignatureVideo = _z === void 0 ? false : _z,
|
|
15836
|
+
_0 = _a.captureAdditionalDocuments,
|
|
15837
|
+
captureAdditionalDocuments = _0 === void 0 ? [] : _0,
|
|
15838
|
+
_1 = _a.captureVideoId,
|
|
15839
|
+
captureVideoId = _1 === void 0 ? false : _1,
|
|
15826
15840
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
15827
|
-
|
|
15828
|
-
theme =
|
|
15829
|
-
|
|
15830
|
-
assets =
|
|
15831
|
-
|
|
15832
|
-
classNames =
|
|
15833
|
-
|
|
15834
|
-
colors =
|
|
15835
|
-
|
|
15836
|
-
verbiage =
|
|
15837
|
-
|
|
15838
|
-
geolocationEnabled =
|
|
15839
|
-
|
|
15840
|
-
geolocationRequired =
|
|
15841
|
-
|
|
15842
|
-
debugMode =
|
|
15841
|
+
_2 = _a.theme,
|
|
15842
|
+
theme = _2 === void 0 ? 'default' : _2,
|
|
15843
|
+
_3 = _a.assets,
|
|
15844
|
+
assets = _3 === void 0 ? {} : _3,
|
|
15845
|
+
_4 = _a.classNames,
|
|
15846
|
+
classNames = _4 === void 0 ? {} : _4,
|
|
15847
|
+
_5 = _a.colors,
|
|
15848
|
+
colors = _5 === void 0 ? {} : _5,
|
|
15849
|
+
_6 = _a.verbiage,
|
|
15850
|
+
verbiage = _6 === void 0 ? {} : _6,
|
|
15851
|
+
_7 = _a.geolocationEnabled,
|
|
15852
|
+
geolocationEnabled = _7 === void 0 ? true : _7,
|
|
15853
|
+
_8 = _a.geolocationRequired,
|
|
15854
|
+
geolocationRequired = _8 === void 0 ? false : _8,
|
|
15855
|
+
_9 = _a.debugMode,
|
|
15856
|
+
debugMode = _9 === void 0 ? false : _9;
|
|
15843
15857
|
useLanguage(lang);
|
|
15844
15858
|
useDebugLogging(debugMode);
|
|
15845
15859
|
var idCaptureProps = useMemo(function () {
|
|
@@ -15878,6 +15892,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15878
15892
|
onUserCancel: onUserCancel,
|
|
15879
15893
|
onModelError: onSelfieCaptureModelError,
|
|
15880
15894
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
15895
|
+
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
15881
15896
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
15882
15897
|
modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
|
|
15883
15898
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -15887,7 +15902,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15887
15902
|
verbiage: verbiage.faceLiveness,
|
|
15888
15903
|
debugMode: debugMode
|
|
15889
15904
|
};
|
|
15890
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
15905
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
15891
15906
|
var videoIdCaptureProps = useMemo(function () {
|
|
15892
15907
|
return _assign({
|
|
15893
15908
|
onExitCapture: onExitCapture,
|
|
@@ -17477,12 +17492,14 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17477
17492
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
17478
17493
|
_c = _a.loadingOverlayMode,
|
|
17479
17494
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
17480
|
-
_d = _a.
|
|
17481
|
-
|
|
17482
|
-
_e = _a.
|
|
17483
|
-
|
|
17484
|
-
_f = _a.
|
|
17485
|
-
|
|
17495
|
+
_d = _a.initialCaptureDelayMs,
|
|
17496
|
+
initialCaptureDelayMs = _d === void 0 ? 1000 : _d,
|
|
17497
|
+
_e = _a.timeoutDurationMs,
|
|
17498
|
+
timeoutDurationMs = _e === void 0 ? 15000 : _e,
|
|
17499
|
+
_f = _a.modelLoadTimeoutMs,
|
|
17500
|
+
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
17501
|
+
_g = _a.skipSuccessScreen,
|
|
17502
|
+
skipSuccessScreen = _g === void 0 ? false : _g,
|
|
17486
17503
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17487
17504
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17488
17505
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17498,28 +17515,28 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17498
17515
|
onUserCancel = _a.onUserCancel,
|
|
17499
17516
|
onModelError = _a.onModelError,
|
|
17500
17517
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
17501
|
-
|
|
17502
|
-
captureAdditionalDocuments =
|
|
17503
|
-
|
|
17504
|
-
captureSignature =
|
|
17505
|
-
|
|
17506
|
-
captureSignatureVideo =
|
|
17507
|
-
|
|
17508
|
-
theme =
|
|
17509
|
-
|
|
17510
|
-
assets =
|
|
17511
|
-
|
|
17512
|
-
classNames =
|
|
17513
|
-
|
|
17514
|
-
colors =
|
|
17515
|
-
|
|
17516
|
-
verbiage =
|
|
17517
|
-
|
|
17518
|
-
geolocationEnabled =
|
|
17519
|
-
|
|
17520
|
-
geolocationRequired =
|
|
17521
|
-
|
|
17522
|
-
debugMode =
|
|
17518
|
+
_h = _a.captureAdditionalDocuments,
|
|
17519
|
+
captureAdditionalDocuments = _h === void 0 ? [] : _h,
|
|
17520
|
+
_j = _a.captureSignature,
|
|
17521
|
+
captureSignature = _j === void 0 ? false : _j,
|
|
17522
|
+
_k = _a.captureSignatureVideo,
|
|
17523
|
+
captureSignatureVideo = _k === void 0 ? false : _k,
|
|
17524
|
+
_l = _a.theme,
|
|
17525
|
+
theme = _l === void 0 ? 'default' : _l,
|
|
17526
|
+
_m = _a.assets,
|
|
17527
|
+
assets = _m === void 0 ? {} : _m,
|
|
17528
|
+
_o = _a.classNames,
|
|
17529
|
+
classNames = _o === void 0 ? {} : _o,
|
|
17530
|
+
_p = _a.colors,
|
|
17531
|
+
colors = _p === void 0 ? {} : _p,
|
|
17532
|
+
_q = _a.verbiage,
|
|
17533
|
+
verbiage = _q === void 0 ? {} : _q,
|
|
17534
|
+
_r = _a.geolocationEnabled,
|
|
17535
|
+
geolocationEnabled = _r === void 0 ? true : _r,
|
|
17536
|
+
_s = _a.geolocationRequired,
|
|
17537
|
+
geolocationRequired = _s === void 0 ? false : _s,
|
|
17538
|
+
_t = _a.debugMode,
|
|
17539
|
+
debugMode = _t === void 0 ? false : _t;
|
|
17523
17540
|
useLanguage(lang);
|
|
17524
17541
|
useDebugLogging(debugMode);
|
|
17525
17542
|
var faceLivenessProps = useMemo(function () {
|
|
@@ -17529,6 +17546,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17529
17546
|
onExitAfterFailure: onExitAfterFailure,
|
|
17530
17547
|
onModelError: onModelError,
|
|
17531
17548
|
timeoutDurationMs: timeoutDurationMs,
|
|
17549
|
+
initialCaptureDelayMs: initialCaptureDelayMs,
|
|
17532
17550
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
17533
17551
|
loadingOverlayMode: loadingOverlayMode,
|
|
17534
17552
|
skipSuccessScreen: skipSuccessScreen,
|
|
@@ -17538,7 +17556,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
17538
17556
|
verbiage: verbiage.faceLiveness,
|
|
17539
17557
|
debugMode: debugMode
|
|
17540
17558
|
};
|
|
17541
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
17559
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
17542
17560
|
var additionalDocumentCaptureProps = useMemo(function () {
|
|
17543
17561
|
return {
|
|
17544
17562
|
documents: captureAdditionalDocuments,
|