idmission-web-sdk 2.3.100 → 2.3.102
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/SignatureKYC.d.ts +0 -2
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts +1 -5
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +1 -2
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +113 -214
- 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 +113 -214
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +150 -2970
- 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
package/dist/sdk2.esm.js
CHANGED
|
@@ -205,7 +205,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
205
205
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
var webSdkVersion = '2.3.
|
|
208
|
+
var webSdkVersion = '2.3.102';
|
|
209
209
|
|
|
210
210
|
function getPlatform() {
|
|
211
211
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14295,23 +14295,6 @@ function inferBlobType(blobPart) {
|
|
|
14295
14295
|
return t.length > 0 ? t : undefined;
|
|
14296
14296
|
}
|
|
14297
14297
|
|
|
14298
|
-
function makeReadChunk(file) {
|
|
14299
|
-
var _this = this;
|
|
14300
|
-
return function (chunkSize, offset) {
|
|
14301
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
14302
|
-
var _a;
|
|
14303
|
-
return __generator(this, function (_b) {
|
|
14304
|
-
switch (_b.label) {
|
|
14305
|
-
case 0:
|
|
14306
|
-
_a = Uint8Array.bind;
|
|
14307
|
-
return [4 /*yield*/, file.slice(offset, offset + chunkSize).arrayBuffer()];
|
|
14308
|
-
case 1:
|
|
14309
|
-
return [2 /*return*/, new (_a.apply(Uint8Array, [void 0, _b.sent()]))()];
|
|
14310
|
-
}
|
|
14311
|
-
});
|
|
14312
|
-
});
|
|
14313
|
-
};
|
|
14314
|
-
}
|
|
14315
14298
|
var signatureRecorder = null;
|
|
14316
14299
|
var signatureChunks = [];
|
|
14317
14300
|
var videoSignatureInitialState = {
|
|
@@ -14392,42 +14375,34 @@ var useVideoSignatureStore = create()(devtools(function (set, get) {
|
|
|
14392
14375
|
signatureRecorder.stop();
|
|
14393
14376
|
signatureRecorder.onstop = function () {
|
|
14394
14377
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14395
|
-
var recordingStoppedAt, inferredType, blob, _a, onSignatureVideoCaptured, recordingStartRequestedAt, recordingStartedAt, firstChunkReceivedAt, signatureStartedAt, signatureEndedAt, recordingStopRequestedAt, lastChunkReceivedAt
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
signatureEndedAt: signatureEndedAt,
|
|
14424
|
-
recordingStopRequestedAt: recordingStopRequestedAt,
|
|
14425
|
-
recordingStoppedAt: recordingStoppedAt,
|
|
14426
|
-
lastChunkReceivedAt: lastChunkReceivedAt
|
|
14427
|
-
}
|
|
14428
|
-
});
|
|
14429
|
-
return [2 /*return*/];
|
|
14430
|
-
}
|
|
14378
|
+
var recordingStoppedAt, inferredType, blob, _a, onSignatureVideoCaptured, recordingStartRequestedAt, recordingStartedAt, firstChunkReceivedAt, signatureStartedAt, signatureEndedAt, recordingStopRequestedAt, lastChunkReceivedAt;
|
|
14379
|
+
return __generator(this, function (_b) {
|
|
14380
|
+
recordingStoppedAt = performance.now();
|
|
14381
|
+
set({
|
|
14382
|
+
recordingStoppedAt: recordingStoppedAt
|
|
14383
|
+
});
|
|
14384
|
+
inferredType = inferBlobType(signatureChunks[0]) || (signatureRecorder === null || signatureRecorder === void 0 ? void 0 : signatureRecorder.mimeType) || 'video/mp4';
|
|
14385
|
+
blob = new Blob(signatureChunks, {
|
|
14386
|
+
type: inferredType
|
|
14387
|
+
});
|
|
14388
|
+
signatureChunks = [];
|
|
14389
|
+
signatureRecorder = null;
|
|
14390
|
+
if (!signatureData) return [2 /*return*/];
|
|
14391
|
+
_a = get(), onSignatureVideoCaptured = _a.onSignatureVideoCaptured, recordingStartRequestedAt = _a.recordingStartRequestedAt, recordingStartedAt = _a.recordingStartedAt, firstChunkReceivedAt = _a.firstChunkReceivedAt, signatureStartedAt = _a.signatureStartedAt, signatureEndedAt = _a.signatureEndedAt, recordingStopRequestedAt = _a.recordingStopRequestedAt, lastChunkReceivedAt = _a.lastChunkReceivedAt;
|
|
14392
|
+
onSignatureVideoCaptured(blob, signatureData, imageUrl !== null && imageUrl !== void 0 ? imageUrl : null, {
|
|
14393
|
+
mimeType: inferredType,
|
|
14394
|
+
timingData: {
|
|
14395
|
+
recordingStartRequestedAt: recordingStartRequestedAt,
|
|
14396
|
+
recordingStartedAt: recordingStartedAt,
|
|
14397
|
+
firstChunkReceivedAt: firstChunkReceivedAt,
|
|
14398
|
+
signatureStartedAt: signatureStartedAt,
|
|
14399
|
+
signatureEndedAt: signatureEndedAt,
|
|
14400
|
+
recordingStopRequestedAt: recordingStopRequestedAt,
|
|
14401
|
+
recordingStoppedAt: recordingStoppedAt,
|
|
14402
|
+
lastChunkReceivedAt: lastChunkReceivedAt
|
|
14403
|
+
}
|
|
14404
|
+
});
|
|
14405
|
+
return [2 /*return*/];
|
|
14431
14406
|
});
|
|
14432
14407
|
});
|
|
14433
14408
|
};
|
|
@@ -14477,9 +14452,7 @@ function waitForOneMoreChunk(timeoutMs) {
|
|
|
14477
14452
|
function VideoSignatureContextProvider(_a) {
|
|
14478
14453
|
var _this = this;
|
|
14479
14454
|
var _b, _c, _d, _e;
|
|
14480
|
-
var children = _a.children
|
|
14481
|
-
_f = _a.captureMediaInfo,
|
|
14482
|
-
captureMediaInfo = _f === void 0 ? false : _f;
|
|
14455
|
+
var children = _a.children;
|
|
14483
14456
|
var videoRef = useCameraStore().videoRef;
|
|
14484
14457
|
var outputCanvas = useRef(null);
|
|
14485
14458
|
useEffect(function () {
|
|
@@ -14489,74 +14462,6 @@ function VideoSignatureContextProvider(_a) {
|
|
|
14489
14462
|
}, []);
|
|
14490
14463
|
var signatureVideoRef = useRef(null);
|
|
14491
14464
|
var frameCheckCanvas = useRef(null);
|
|
14492
|
-
useEffect(function () {
|
|
14493
|
-
if (!captureMediaInfo) return;
|
|
14494
|
-
// Use dynamic import to avoid build-time WASM loading issues
|
|
14495
|
-
var loadMediaInfo = function loadMediaInfo() {
|
|
14496
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
14497
|
-
var mediaInfoFactory, mediaInfo, e_1, mediaInfoFactory, mediaInfo, fallbackError_1;
|
|
14498
|
-
return __generator(this, function (_a) {
|
|
14499
|
-
switch (_a.label) {
|
|
14500
|
-
case 0:
|
|
14501
|
-
_a.trys.push([0, 3,, 9]);
|
|
14502
|
-
return [4 /*yield*/, import('mediainfo.js')];
|
|
14503
|
-
case 1:
|
|
14504
|
-
mediaInfoFactory = _a.sent().mediaInfoFactory;
|
|
14505
|
-
return [4 /*yield*/, mediaInfoFactory({
|
|
14506
|
-
format: 'object',
|
|
14507
|
-
full: true,
|
|
14508
|
-
locateFile: function locateFile(filename) {
|
|
14509
|
-
return "".concat(DEFAULT_CDN_URL, "/").concat(filename);
|
|
14510
|
-
}
|
|
14511
|
-
})];
|
|
14512
|
-
case 2:
|
|
14513
|
-
mediaInfo = _a.sent();
|
|
14514
|
-
useVideoSignatureStore.setState({
|
|
14515
|
-
mediaInfo: mediaInfo
|
|
14516
|
-
});
|
|
14517
|
-
return [3 /*break*/, 9];
|
|
14518
|
-
case 3:
|
|
14519
|
-
e_1 = _a.sent();
|
|
14520
|
-
warn('error loading mediaInfo', e_1);
|
|
14521
|
-
_a.label = 4;
|
|
14522
|
-
case 4:
|
|
14523
|
-
_a.trys.push([4, 7,, 8]);
|
|
14524
|
-
return [4 /*yield*/, import('mediainfo.js')];
|
|
14525
|
-
case 5:
|
|
14526
|
-
mediaInfoFactory = _a.sent().mediaInfoFactory;
|
|
14527
|
-
return [4 /*yield*/, mediaInfoFactory({
|
|
14528
|
-
format: 'object',
|
|
14529
|
-
full: true
|
|
14530
|
-
})];
|
|
14531
|
-
case 6:
|
|
14532
|
-
mediaInfo = _a.sent();
|
|
14533
|
-
useVideoSignatureStore.setState({
|
|
14534
|
-
mediaInfo: mediaInfo
|
|
14535
|
-
});
|
|
14536
|
-
return [3 /*break*/, 8];
|
|
14537
|
-
case 7:
|
|
14538
|
-
fallbackError_1 = _a.sent();
|
|
14539
|
-
warn('fallback mediaInfo loading also failed', fallbackError_1);
|
|
14540
|
-
return [3 /*break*/, 8];
|
|
14541
|
-
case 8:
|
|
14542
|
-
return [3 /*break*/, 9];
|
|
14543
|
-
case 9:
|
|
14544
|
-
return [2 /*return*/];
|
|
14545
|
-
}
|
|
14546
|
-
});
|
|
14547
|
-
});
|
|
14548
|
-
};
|
|
14549
|
-
loadMediaInfo();
|
|
14550
|
-
return function () {
|
|
14551
|
-
var mediaInfo = useVideoSignatureStore.getState().mediaInfo;
|
|
14552
|
-
if (mediaInfo) {
|
|
14553
|
-
mediaInfo.close();
|
|
14554
|
-
useVideoSignatureStore.setState({
|
|
14555
|
-
mediaInfo: undefined
|
|
14556
|
-
});
|
|
14557
|
-
}
|
|
14558
|
-
};
|
|
14559
|
-
}, [captureMediaInfo]);
|
|
14560
14465
|
var signaturePadEmpty = useVideoSignatureStore().signaturePadEmpty;
|
|
14561
14466
|
var blankCheckPassed = useRef(false);
|
|
14562
14467
|
useEffect(function () {
|
|
@@ -14603,9 +14508,9 @@ function VideoSignatureContextProvider(_a) {
|
|
|
14603
14508
|
}, [drawOutputFrame, signatureVideoRef]);
|
|
14604
14509
|
useVideoFrameLoop(signatureVideoRef, checkBlankAndDrawOutputFrame);
|
|
14605
14510
|
useVideoFrameLoop(videoRef, drawOutputFrame);
|
|
14606
|
-
var
|
|
14607
|
-
signaturePad =
|
|
14608
|
-
recordingStartedAt =
|
|
14511
|
+
var _f = useVideoSignatureStore(),
|
|
14512
|
+
signaturePad = _f.signaturePad,
|
|
14513
|
+
recordingStartedAt = _f.recordingStartedAt;
|
|
14609
14514
|
useEffect(function () {
|
|
14610
14515
|
var _a;
|
|
14611
14516
|
if (!signaturePad.current || !recordingStartedAt) return;
|
|
@@ -15290,60 +15195,58 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
15290
15195
|
skipSuccessScreen = _c === void 0 ? false : _c,
|
|
15291
15196
|
_d = _a.captureAudio,
|
|
15292
15197
|
captureAudio = _d === void 0 ? false : _d,
|
|
15293
|
-
_e = _a.
|
|
15294
|
-
|
|
15295
|
-
_f = _a.
|
|
15296
|
-
|
|
15297
|
-
_g = _a.
|
|
15298
|
-
|
|
15299
|
-
_h = _a.
|
|
15300
|
-
|
|
15301
|
-
_j = _a.
|
|
15302
|
-
|
|
15303
|
-
_k = _a.
|
|
15304
|
-
|
|
15305
|
-
_l = _a.
|
|
15306
|
-
|
|
15307
|
-
_m = _a.
|
|
15308
|
-
|
|
15309
|
-
_o = _a.allowManualSelfieCaptureOnLoadingError,
|
|
15310
|
-
allowManualSelfieCaptureOnLoadingError = _o === void 0 ? false : _o,
|
|
15198
|
+
_e = _a.minSignaturePadPoints,
|
|
15199
|
+
minSignaturePadPoints = _e === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _e,
|
|
15200
|
+
_f = _a.headTrackingDisabled,
|
|
15201
|
+
headTrackingDisabled = _f === void 0 ? false : _f,
|
|
15202
|
+
_g = _a.headTrackingBoundaryPercentage,
|
|
15203
|
+
headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
|
|
15204
|
+
_h = _a.headTrackingBoundaryType,
|
|
15205
|
+
headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
|
|
15206
|
+
_j = _a.allowSignatureAfterLivenessCheckFailure,
|
|
15207
|
+
allowSignatureAfterLivenessCheckFailure = _j === void 0 ? false : _j,
|
|
15208
|
+
_k = _a.restartVideoOnSignaturePadCleared,
|
|
15209
|
+
restartVideoOnSignaturePadCleared = _k === void 0 ? true : _k,
|
|
15210
|
+
_l = _a.skipLivenessValidation,
|
|
15211
|
+
skipLivenessValidation = _l === void 0 ? false : _l,
|
|
15212
|
+
_m = _a.allowManualSelfieCaptureOnLoadingError,
|
|
15213
|
+
allowManualSelfieCaptureOnLoadingError = _m === void 0 ? false : _m,
|
|
15311
15214
|
faceLivenessProps = _a.faceLivenessProps,
|
|
15312
15215
|
guidesComponent = _a.guidesComponent,
|
|
15313
|
-
|
|
15314
|
-
showFaceGuideThenSignaturePad =
|
|
15315
|
-
|
|
15316
|
-
assets =
|
|
15317
|
-
|
|
15318
|
-
classNames =
|
|
15319
|
-
|
|
15320
|
-
colors =
|
|
15321
|
-
|
|
15322
|
-
verbiage =
|
|
15323
|
-
|
|
15324
|
-
debugMode =
|
|
15325
|
-
var
|
|
15326
|
-
selfieImage =
|
|
15327
|
-
setSelfieImage =
|
|
15328
|
-
setSignatureData =
|
|
15329
|
-
setSignatureVideoUrl =
|
|
15330
|
-
setSignatureVideoMetadata =
|
|
15331
|
-
logSelfieCaptureAttempt =
|
|
15332
|
-
uploadDocument =
|
|
15216
|
+
_o = _a.showFaceGuideThenSignaturePad,
|
|
15217
|
+
showFaceGuideThenSignaturePad = _o === void 0 ? false : _o,
|
|
15218
|
+
_p = _a.assets,
|
|
15219
|
+
assets = _p === void 0 ? {} : _p,
|
|
15220
|
+
_q = _a.classNames,
|
|
15221
|
+
classNames = _q === void 0 ? {} : _q,
|
|
15222
|
+
_r = _a.colors,
|
|
15223
|
+
colors = _r === void 0 ? {} : _r,
|
|
15224
|
+
_s = _a.verbiage,
|
|
15225
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
15226
|
+
_t = _a.debugMode,
|
|
15227
|
+
debugMode = _t === void 0 ? false : _t;
|
|
15228
|
+
var _u = useSubmissionContext(),
|
|
15229
|
+
selfieImage = _u.selfieImage,
|
|
15230
|
+
setSelfieImage = _u.setSelfieImage,
|
|
15231
|
+
setSignatureData = _u.setSignatureData,
|
|
15232
|
+
setSignatureVideoUrl = _u.setSignatureVideoUrl,
|
|
15233
|
+
setSignatureVideoMetadata = _u.setSignatureVideoMetadata,
|
|
15234
|
+
logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt,
|
|
15235
|
+
uploadDocument = _u.uploadDocument;
|
|
15333
15236
|
var cameraAccessDenied = useCameraStore(useShallow(function (state) {
|
|
15334
15237
|
return {
|
|
15335
15238
|
cameraAccessDenied: state.cameraAccessDenied
|
|
15336
15239
|
};
|
|
15337
15240
|
})).cameraAccessDenied;
|
|
15338
|
-
var
|
|
15339
|
-
captureState =
|
|
15340
|
-
setCaptureState =
|
|
15241
|
+
var _v = useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
|
|
15242
|
+
captureState = _v[0],
|
|
15243
|
+
setCaptureState = _v[1];
|
|
15341
15244
|
var operationStartedAt = useRef();
|
|
15342
15245
|
var captureStartedAt = useRef();
|
|
15343
15246
|
var captureEndedAt = useRef();
|
|
15344
|
-
var
|
|
15345
|
-
start =
|
|
15346
|
-
stop =
|
|
15247
|
+
var _w = useSelfieGuidanceModelsContext(),
|
|
15248
|
+
start = _w.start,
|
|
15249
|
+
stop = _w.stop;
|
|
15347
15250
|
useEffect(function () {
|
|
15348
15251
|
operationStartedAt.current = new Date();
|
|
15349
15252
|
}, []);
|
|
@@ -15394,17 +15297,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
15394
15297
|
setCaptureState('SUCCESS');
|
|
15395
15298
|
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData, metadata);
|
|
15396
15299
|
}, [onVideoCaptured, setSignatureData, setSignatureVideoMetadata, setSignatureVideoUrl]);
|
|
15397
|
-
var
|
|
15398
|
-
showLoadingOverlay =
|
|
15399
|
-
setShowLoadingOverlay =
|
|
15300
|
+
var _x = useState(true),
|
|
15301
|
+
showLoadingOverlay = _x[0],
|
|
15302
|
+
setShowLoadingOverlay = _x[1];
|
|
15400
15303
|
var onSignatureCaptureFacesNotDetected = useCallback(function () {
|
|
15401
15304
|
setShowLoadingOverlay(false);
|
|
15402
15305
|
setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
|
|
15403
15306
|
useVideoSignatureStore.getState().clearRecordedData();
|
|
15404
15307
|
}, [skipLivenessValidation]);
|
|
15405
|
-
var
|
|
15406
|
-
attempt =
|
|
15407
|
-
setAttempt =
|
|
15308
|
+
var _y = useState(0),
|
|
15309
|
+
attempt = _y[0],
|
|
15310
|
+
setAttempt = _y[1];
|
|
15408
15311
|
var onRetry = useCallback(function () {
|
|
15409
15312
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
15410
15313
|
setAttempt(function (n) {
|
|
@@ -15452,8 +15355,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
15452
15355
|
faceLivenessOnLoadingOverlayDismissed === null || faceLivenessOnLoadingOverlayDismissed === void 0 ? void 0 : faceLivenessOnLoadingOverlayDismissed();
|
|
15453
15356
|
}, [faceLivenessOnLoadingOverlayDismissed, onLoadingOverlayDismissed]);
|
|
15454
15357
|
return /*#__PURE__*/React__default.createElement(VideoSignatureContextProvider, {
|
|
15455
|
-
key: "video-signature-context-".concat(attempt)
|
|
15456
|
-
captureMediaInfo: captureMediaInfo
|
|
15358
|
+
key: "video-signature-context-".concat(attempt)
|
|
15457
15359
|
}, /*#__PURE__*/React__default.createElement(CameraVideoTag, {
|
|
15458
15360
|
className: classNames.cameraFeed
|
|
15459
15361
|
}), function () {
|
|
@@ -19508,8 +19410,6 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
19508
19410
|
documentServiceUrl = _a.documentServiceUrl,
|
|
19509
19411
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
19510
19412
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
19511
|
-
_c = _a.captureMediaInfo,
|
|
19512
|
-
captureMediaInfo = _c === void 0 ? false : _c,
|
|
19513
19413
|
onLoadingStarted = _a.onLoadingStarted,
|
|
19514
19414
|
onLoadingProgress = _a.onLoadingProgress,
|
|
19515
19415
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
@@ -19529,48 +19429,48 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
19529
19429
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
19530
19430
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
19531
19431
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
19532
|
-
|
|
19533
|
-
loadingOverlayMode =
|
|
19432
|
+
_c = _a.loadingOverlayMode,
|
|
19433
|
+
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
19534
19434
|
customOverlayContent = _a.customOverlayContent,
|
|
19535
|
-
|
|
19536
|
-
skipSuccessScreen =
|
|
19537
|
-
|
|
19538
|
-
captureAudio =
|
|
19435
|
+
_d = _a.skipSuccessScreen,
|
|
19436
|
+
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
19437
|
+
_e = _a.captureAudio,
|
|
19438
|
+
captureAudio = _e === void 0 ? false : _e,
|
|
19539
19439
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
19540
|
-
|
|
19541
|
-
minSignaturePadPoints =
|
|
19542
|
-
|
|
19543
|
-
headTrackingDisabled =
|
|
19544
|
-
|
|
19545
|
-
headTrackingBoundaryPercentage =
|
|
19546
|
-
|
|
19547
|
-
headTrackingBoundaryType =
|
|
19548
|
-
|
|
19549
|
-
modelLoadTimeoutMs =
|
|
19550
|
-
|
|
19551
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
19552
|
-
|
|
19553
|
-
restartVideoOnSignaturePadCleared =
|
|
19440
|
+
_f = _a.minSignaturePadPoints,
|
|
19441
|
+
minSignaturePadPoints = _f === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _f,
|
|
19442
|
+
_g = _a.headTrackingDisabled,
|
|
19443
|
+
headTrackingDisabled = _g === void 0 ? false : _g,
|
|
19444
|
+
_h = _a.headTrackingBoundaryPercentage,
|
|
19445
|
+
headTrackingBoundaryPercentage = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _h,
|
|
19446
|
+
_j = _a.headTrackingBoundaryType,
|
|
19447
|
+
headTrackingBoundaryType = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _j,
|
|
19448
|
+
_k = _a.modelLoadTimeoutMs,
|
|
19449
|
+
modelLoadTimeoutMs = _k === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _k,
|
|
19450
|
+
_l = _a.allowSignatureAfterLivenessCheckFailure,
|
|
19451
|
+
allowSignatureAfterLivenessCheckFailure = _l === void 0 ? false : _l,
|
|
19452
|
+
_m = _a.restartVideoOnSignaturePadCleared,
|
|
19453
|
+
restartVideoOnSignaturePadCleared = _m === void 0 ? true : _m,
|
|
19554
19454
|
faceLivenessProps = _a.faceLivenessProps,
|
|
19555
|
-
|
|
19556
|
-
skipLivenessValidation =
|
|
19557
|
-
|
|
19558
|
-
allowManualSelfieCaptureOnLoadingError =
|
|
19455
|
+
_o = _a.skipLivenessValidation,
|
|
19456
|
+
skipLivenessValidation = _o === void 0 ? false : _o,
|
|
19457
|
+
_p = _a.allowManualSelfieCaptureOnLoadingError,
|
|
19458
|
+
allowManualSelfieCaptureOnLoadingError = _p === void 0 ? false : _p,
|
|
19559
19459
|
guidesComponent = _a.guidesComponent,
|
|
19560
|
-
|
|
19561
|
-
showFaceGuideThenSignaturePad =
|
|
19460
|
+
_q = _a.showFaceGuideThenSignaturePad,
|
|
19461
|
+
showFaceGuideThenSignaturePad = _q === void 0 ? false : _q,
|
|
19562
19462
|
minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
|
|
19563
19463
|
minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
|
|
19564
19464
|
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
19565
|
-
|
|
19566
|
-
theme =
|
|
19465
|
+
_r = _a.theme,
|
|
19466
|
+
theme = _r === void 0 ? 'default' : _r,
|
|
19567
19467
|
classNames = _a.classNames,
|
|
19568
19468
|
colors = _a.colors,
|
|
19569
19469
|
verbiage = _a.verbiage,
|
|
19570
19470
|
geolocationEnabled = _a.geolocationEnabled,
|
|
19571
19471
|
geolocationRequired = _a.geolocationRequired,
|
|
19572
|
-
|
|
19573
|
-
debugMode =
|
|
19472
|
+
_s = _a.debugMode,
|
|
19473
|
+
debugMode = _s === void 0 ? false : _s;
|
|
19574
19474
|
useLanguage(lang);
|
|
19575
19475
|
useDebugLogging(debugMode);
|
|
19576
19476
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -19620,7 +19520,6 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
19620
19520
|
loadingOverlayMode: loadingOverlayMode,
|
|
19621
19521
|
skipSuccessScreen: skipSuccessScreen,
|
|
19622
19522
|
captureAudio: captureAudio,
|
|
19623
|
-
captureMediaInfo: captureMediaInfo,
|
|
19624
19523
|
minSignaturePadPoints: minSignaturePadPoints,
|
|
19625
19524
|
headTrackingDisabled: headTrackingDisabled,
|
|
19626
19525
|
headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
|
|
@@ -19643,7 +19542,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
19643
19542
|
onModelError: onModelError,
|
|
19644
19543
|
onUserCancel: onUserCancel
|
|
19645
19544
|
};
|
|
19646
|
-
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio,
|
|
19545
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, guidesComponent, showFaceGuideThenSignaturePad, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
19647
19546
|
})))));
|
|
19648
19547
|
};
|
|
19649
19548
|
|