idmission-web-sdk 2.2.93 → 2.2.95
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/CompositeWizard.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureGuidesCommon.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +127 -101
- 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 +127 -101
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +127 -101
- 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/themes/index.d.ts +2 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.95';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -16372,29 +16372,29 @@
|
|
|
16372
16372
|
return props.$isInvisible ? 'opacity: 0;' : '';
|
|
16373
16373
|
});
|
|
16374
16374
|
function IdCardBorder(_a) {
|
|
16375
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
16375
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
16376
16376
|
var children = _a.children,
|
|
16377
|
-
|
|
16378
|
-
status =
|
|
16379
|
-
|
|
16380
|
-
borderWidth =
|
|
16381
|
-
|
|
16382
|
-
borderRadius =
|
|
16383
|
-
|
|
16384
|
-
borderColor =
|
|
16377
|
+
_s = _a.status,
|
|
16378
|
+
status = _s === void 0 ? 'ready' : _s,
|
|
16379
|
+
_t = _a.borderWidth,
|
|
16380
|
+
borderWidth = _t === void 0 ? 20 : _t,
|
|
16381
|
+
_u = _a.borderRadius,
|
|
16382
|
+
borderRadius = _u === void 0 ? 25 : _u,
|
|
16383
|
+
_v = _a.borderColor,
|
|
16384
|
+
borderColor = _v === void 0 ? 'white' : _v,
|
|
16385
16385
|
aspectRatio = _a.aspectRatio,
|
|
16386
|
-
|
|
16387
|
-
progress =
|
|
16386
|
+
_w = _a.progress,
|
|
16387
|
+
progress = _w === void 0 ? 0 : _w,
|
|
16388
16388
|
props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
|
|
16389
|
-
var
|
|
16390
|
-
ref =
|
|
16391
|
-
|
|
16392
|
-
width =
|
|
16393
|
-
|
|
16394
|
-
height =
|
|
16395
|
-
var
|
|
16396
|
-
progressResets =
|
|
16397
|
-
setProgressResets =
|
|
16389
|
+
var _x = useResizeObserver(),
|
|
16390
|
+
ref = _x.ref,
|
|
16391
|
+
_y = _x.width,
|
|
16392
|
+
width = _y === void 0 ? 0 : _y,
|
|
16393
|
+
_z = _x.height,
|
|
16394
|
+
height = _z === void 0 ? 0 : _z;
|
|
16395
|
+
var _0 = React.useState(0),
|
|
16396
|
+
progressResets = _0[0],
|
|
16397
|
+
setProgressResets = _0[1];
|
|
16398
16398
|
React.useEffect(function () {
|
|
16399
16399
|
if (progress === 0 && status === 'capturing') {
|
|
16400
16400
|
setProgressResets(function (n) {
|
|
@@ -16405,8 +16405,9 @@
|
|
|
16405
16405
|
var theme = styled.useTheme();
|
|
16406
16406
|
var wavesDisabled = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
|
|
16407
16407
|
var wavesColor = (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
|
|
16408
|
-
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k :
|
|
16409
|
-
var
|
|
16408
|
+
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : borderColor;
|
|
16409
|
+
var progressBarIndicatorColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarIndicatorColor) !== null && _o !== void 0 ? _o : '#287ec6';
|
|
16410
|
+
var progressBarWidth = (_r = (_q = (_p = theme.idCapture) === null || _p === void 0 ? void 0 : _p.guideBox) === null || _q === void 0 ? void 0 : _q.progressBarWidth) !== null && _r !== void 0 ? _r : borderWidth;
|
|
16410
16411
|
return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
|
|
16411
16412
|
ref: ref,
|
|
16412
16413
|
style: {
|
|
@@ -16440,7 +16441,7 @@
|
|
|
16440
16441
|
width: width,
|
|
16441
16442
|
height: height,
|
|
16442
16443
|
borderRadius: borderRadius,
|
|
16443
|
-
borderColor:
|
|
16444
|
+
borderColor: progressBarColor,
|
|
16444
16445
|
borderWidth: progressBarWidth,
|
|
16445
16446
|
className: "idmSdkWavesOrigin"
|
|
16446
16447
|
}), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React.createElement(IdCardBorderSvg, {
|
|
@@ -16448,8 +16449,8 @@
|
|
|
16448
16449
|
width: width,
|
|
16449
16450
|
height: height,
|
|
16450
16451
|
borderRadius: borderRadius,
|
|
16451
|
-
borderColor:
|
|
16452
|
-
borderWidth:
|
|
16452
|
+
borderColor: progressBarIndicatorColor,
|
|
16453
|
+
borderWidth: progressBarWidth,
|
|
16453
16454
|
isProgressBar: true,
|
|
16454
16455
|
progress: progress,
|
|
16455
16456
|
progressPaused: progress > 0 && status !== 'capturing'
|
|
@@ -22537,35 +22538,39 @@
|
|
|
22537
22538
|
var VideoSignatureContext = /*#__PURE__*/React.createContext(videoSignatureInitialState);
|
|
22538
22539
|
function VideoSignatureContextProvider(_a) {
|
|
22539
22540
|
var _this = this;
|
|
22540
|
-
var children = _a.children
|
|
22541
|
+
var children = _a.children,
|
|
22542
|
+
_b = _a.captureAudio,
|
|
22543
|
+
captureAudio = _b === void 0 ? false : _b;
|
|
22541
22544
|
var signaturePad = React.useRef(null);
|
|
22542
|
-
var _b = React.useState(null),
|
|
22543
|
-
signatureData = _b[0],
|
|
22544
|
-
setSignatureData = _b[1];
|
|
22545
22545
|
var _c = React.useState(null),
|
|
22546
|
-
|
|
22547
|
-
|
|
22546
|
+
signatureData = _c[0],
|
|
22547
|
+
setSignatureData = _c[1];
|
|
22548
22548
|
var _d = React.useState(null),
|
|
22549
|
-
|
|
22550
|
-
|
|
22549
|
+
signatureDataUrl = _d[0],
|
|
22550
|
+
setSignatureDataUrl = _d[1];
|
|
22551
22551
|
var _e = React.useState(null),
|
|
22552
|
-
|
|
22553
|
-
|
|
22552
|
+
signatureVideoData = _e[0],
|
|
22553
|
+
setSignatureVideoData = _e[1];
|
|
22554
|
+
var _f = React.useState(null),
|
|
22555
|
+
signatureVideoUrl = _f[0],
|
|
22556
|
+
setSignatureVideoUrl = _f[1];
|
|
22554
22557
|
var signatureRecorder = React.useRef(null);
|
|
22555
22558
|
var recordedChunks = React.useRef([]);
|
|
22556
|
-
var
|
|
22557
|
-
camera =
|
|
22558
|
-
videoRef =
|
|
22559
|
-
|
|
22560
|
-
|
|
22561
|
-
|
|
22562
|
-
|
|
22563
|
-
|
|
22559
|
+
var _g = useCameraStore(),
|
|
22560
|
+
camera = _g.camera,
|
|
22561
|
+
videoRef = _g.videoRef,
|
|
22562
|
+
audioStream = _g.audioStream;
|
|
22563
|
+
var _h = useVideoRecorder(camera, audioStream, captureAudio),
|
|
22564
|
+
isRecordingVideo = _h.isRecordingVideo,
|
|
22565
|
+
startRecordingVideo = _h.startRecordingVideo,
|
|
22566
|
+
stopRecordingVideo = _h.stopRecordingVideo,
|
|
22567
|
+
startRecordingAudio = _h.startRecordingAudio,
|
|
22568
|
+
stopRecordingAudio = _h.stopRecordingAudio;
|
|
22564
22569
|
var outputCanvas = React.useRef(null);
|
|
22565
22570
|
var recordingLock = React.useRef(false);
|
|
22566
|
-
var
|
|
22567
|
-
isRecording =
|
|
22568
|
-
setIsRecording =
|
|
22571
|
+
var _j = React.useState(false),
|
|
22572
|
+
isRecording = _j[0],
|
|
22573
|
+
setIsRecording = _j[1];
|
|
22569
22574
|
var startRecording = React.useCallback(function () {
|
|
22570
22575
|
setIsRecording(true);
|
|
22571
22576
|
}, []);
|
|
@@ -22578,7 +22583,7 @@
|
|
|
22578
22583
|
recordingLock.current = true;
|
|
22579
22584
|
(function () {
|
|
22580
22585
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22581
|
-
var stream;
|
|
22586
|
+
var stream, tracks, audioTrack;
|
|
22582
22587
|
return __generator(this, function (_a) {
|
|
22583
22588
|
switch (_a.label) {
|
|
22584
22589
|
case 0:
|
|
@@ -22596,8 +22601,12 @@
|
|
|
22596
22601
|
_a.label = 2;
|
|
22597
22602
|
case 2:
|
|
22598
22603
|
startRecordingVideo();
|
|
22604
|
+
if (captureAudio) startRecordingAudio();
|
|
22599
22605
|
stream = outputCanvas.current.captureStream(24 /* fps */);
|
|
22600
|
-
|
|
22606
|
+
tracks = [stream.getVideoTracks()[0]];
|
|
22607
|
+
audioTrack = audioStream.getAudioTracks()[0];
|
|
22608
|
+
if (audioTrack) tracks.push(audioTrack);
|
|
22609
|
+
signatureRecorder.current = new MediaRecorder(new MediaStream(tracks), {
|
|
22601
22610
|
videoBitsPerSecond: 270000
|
|
22602
22611
|
});
|
|
22603
22612
|
signatureRecorder.current.start();
|
|
@@ -22620,7 +22629,7 @@
|
|
|
22620
22629
|
});
|
|
22621
22630
|
});
|
|
22622
22631
|
})();
|
|
22623
|
-
}, [isRecording,
|
|
22632
|
+
}, [audioStream, captureAudio, isRecording, startRecordingAudio, startRecordingVideo]);
|
|
22624
22633
|
var animationFrame = React.useRef(0);
|
|
22625
22634
|
React.useEffect(function () {
|
|
22626
22635
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current || !camera || !isRecording || !isRecordingVideo) return;
|
|
@@ -22668,12 +22677,13 @@
|
|
|
22668
22677
|
setSignatureDataUrl(imageUrl);
|
|
22669
22678
|
setSignatureData(signatureDataToIdmissionFormat(signaturePad.current, imageUrl));
|
|
22670
22679
|
stopRecordingVideo();
|
|
22680
|
+
stopRecordingAudio();
|
|
22671
22681
|
(_a = signatureRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
|
|
22672
22682
|
return [2 /*return*/];
|
|
22673
22683
|
}
|
|
22674
22684
|
});
|
|
22675
22685
|
});
|
|
22676
|
-
}, [stopRecordingVideo]);
|
|
22686
|
+
}, [stopRecordingAudio, stopRecordingVideo]);
|
|
22677
22687
|
var value = React.useMemo(function () {
|
|
22678
22688
|
return {
|
|
22679
22689
|
startRecording: startRecording,
|
|
@@ -22925,44 +22935,50 @@
|
|
|
22925
22935
|
customOverlayContent = _a.customOverlayContent,
|
|
22926
22936
|
_d = _a.skipSuccessScreen,
|
|
22927
22937
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
22928
|
-
_e = _a.
|
|
22929
|
-
|
|
22938
|
+
_e = _a.captureAudio,
|
|
22939
|
+
captureAudio = _e === void 0 ? false : _e,
|
|
22940
|
+
_f = _a.allowSignatureAfterLivenessCheckFailure,
|
|
22941
|
+
allowSignatureAfterLivenessCheckFailure = _f === void 0 ? false : _f,
|
|
22930
22942
|
faceLivenessProps = _a.faceLivenessProps,
|
|
22931
|
-
|
|
22932
|
-
assets =
|
|
22933
|
-
|
|
22934
|
-
classNames =
|
|
22935
|
-
|
|
22936
|
-
colors =
|
|
22937
|
-
|
|
22938
|
-
verbiage =
|
|
22939
|
-
|
|
22940
|
-
debugMode =
|
|
22941
|
-
var
|
|
22942
|
-
selfieImage =
|
|
22943
|
-
setSelfieImage =
|
|
22944
|
-
setSignatureData =
|
|
22945
|
-
setSignatureVideoUrl =
|
|
22946
|
-
logSelfieCaptureAttempt =
|
|
22947
|
-
var
|
|
22943
|
+
_g = _a.assets,
|
|
22944
|
+
assets = _g === void 0 ? {} : _g,
|
|
22945
|
+
_h = _a.classNames,
|
|
22946
|
+
classNames = _h === void 0 ? {} : _h,
|
|
22947
|
+
_j = _a.colors,
|
|
22948
|
+
colors = _j === void 0 ? {} : _j,
|
|
22949
|
+
_k = _a.verbiage,
|
|
22950
|
+
verbiage = _k === void 0 ? {} : _k,
|
|
22951
|
+
_l = _a.debugMode,
|
|
22952
|
+
debugMode = _l === void 0 ? false : _l;
|
|
22953
|
+
var _m = React.useContext(SubmissionContext),
|
|
22954
|
+
selfieImage = _m.selfieImage,
|
|
22955
|
+
setSelfieImage = _m.setSelfieImage,
|
|
22956
|
+
setSignatureData = _m.setSignatureData,
|
|
22957
|
+
setSignatureVideoUrl = _m.setSignatureVideoUrl,
|
|
22958
|
+
logSelfieCaptureAttempt = _m.logSelfieCaptureAttempt;
|
|
22959
|
+
var _o = useCameraStore(useShallow(function (state) {
|
|
22948
22960
|
return {
|
|
22949
22961
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
22950
22962
|
requestCameraAccess: state.requestCameraAccess,
|
|
22951
|
-
releaseCameraAccess: state.releaseCameraAccess
|
|
22963
|
+
releaseCameraAccess: state.releaseCameraAccess,
|
|
22964
|
+
requestMicrophoneAccess: state.requestMicrophoneAccess,
|
|
22965
|
+
releaseMicrophoneAccess: state.releaseMicrophoneAccess
|
|
22952
22966
|
};
|
|
22953
22967
|
})),
|
|
22954
|
-
cameraAccessDenied =
|
|
22955
|
-
requestCameraAccess =
|
|
22956
|
-
releaseCameraAccess =
|
|
22957
|
-
|
|
22958
|
-
|
|
22959
|
-
|
|
22968
|
+
cameraAccessDenied = _o.cameraAccessDenied,
|
|
22969
|
+
requestCameraAccess = _o.requestCameraAccess,
|
|
22970
|
+
releaseCameraAccess = _o.releaseCameraAccess,
|
|
22971
|
+
requestMicrophoneAccess = _o.requestMicrophoneAccess,
|
|
22972
|
+
releaseMicrophoneAccess = _o.releaseMicrophoneAccess;
|
|
22973
|
+
var _p = React.useState('CHECKING_LIVENESS'),
|
|
22974
|
+
captureState = _p[0],
|
|
22975
|
+
setCaptureState = _p[1];
|
|
22960
22976
|
var operationStartedAt = React.useRef();
|
|
22961
22977
|
var captureStartedAt = React.useRef();
|
|
22962
22978
|
var captureEndedAt = React.useRef();
|
|
22963
|
-
var
|
|
22964
|
-
start =
|
|
22965
|
-
stop =
|
|
22979
|
+
var _q = React.useContext(SelfieGuidanceModelsContext),
|
|
22980
|
+
start = _q.start,
|
|
22981
|
+
stop = _q.stop;
|
|
22966
22982
|
React.useEffect(function () {
|
|
22967
22983
|
operationStartedAt.current = new Date();
|
|
22968
22984
|
}, []);
|
|
@@ -22998,9 +23014,9 @@
|
|
|
22998
23014
|
setSelfieImage(selfieFromRequest);
|
|
22999
23015
|
}
|
|
23000
23016
|
}, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
|
|
23001
|
-
var
|
|
23002
|
-
signatureImageUrl =
|
|
23003
|
-
setSignatureImageUrl =
|
|
23017
|
+
var _r = React.useState(null),
|
|
23018
|
+
signatureImageUrl = _r[0],
|
|
23019
|
+
setSignatureImageUrl = _r[1];
|
|
23004
23020
|
var onSignatureCaptureCompleted = React.useCallback(function (videoData, signatureData, signatureImageData) {
|
|
23005
23021
|
setSignatureData(signatureData);
|
|
23006
23022
|
setSignatureVideoUrl(URL.createObjectURL(videoData));
|
|
@@ -23011,18 +23027,20 @@
|
|
|
23011
23027
|
var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
|
|
23012
23028
|
setCaptureState('CHECKING_LIVENESS');
|
|
23013
23029
|
}, []);
|
|
23014
|
-
var
|
|
23015
|
-
attempt =
|
|
23016
|
-
setAttempt =
|
|
23030
|
+
var _s = React.useState(0),
|
|
23031
|
+
attempt = _s[0],
|
|
23032
|
+
setAttempt = _s[1];
|
|
23017
23033
|
var onExit = React.useCallback(function () {
|
|
23018
23034
|
releaseCameraAccess();
|
|
23035
|
+
releaseMicrophoneAccess();
|
|
23019
23036
|
setAttempt(function (n) {
|
|
23020
23037
|
return n + 1;
|
|
23021
23038
|
});
|
|
23022
23039
|
setCaptureState('CHECKING_LIVENESS');
|
|
23023
23040
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
23024
|
-
requestCameraAccess();
|
|
23025
|
-
|
|
23041
|
+
void requestCameraAccess();
|
|
23042
|
+
if (captureAudio) void requestMicrophoneAccess();
|
|
23043
|
+
}, [captureAudio, onExitCapture, releaseCameraAccess, releaseMicrophoneAccess, requestCameraAccess, requestMicrophoneAccess]);
|
|
23026
23044
|
var onRetry = React.useCallback(function () {
|
|
23027
23045
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
23028
23046
|
onExit();
|
|
@@ -23056,7 +23074,9 @@
|
|
|
23056
23074
|
onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
|
|
23057
23075
|
faceLivenessOnLoadingOverlayDismissed === null || faceLivenessOnLoadingOverlayDismissed === void 0 ? void 0 : faceLivenessOnLoadingOverlayDismissed();
|
|
23058
23076
|
}, [faceLivenessOnLoadingOverlayDismissed, onLoadingOverlayDismissed]);
|
|
23059
|
-
return /*#__PURE__*/React.createElement(VideoSignatureContextProvider,
|
|
23077
|
+
return /*#__PURE__*/React.createElement(VideoSignatureContextProvider, {
|
|
23078
|
+
captureAudio: captureAudio
|
|
23079
|
+
}, /*#__PURE__*/React.createElement(PageContainer, {
|
|
23060
23080
|
className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
|
|
23061
23081
|
}, /*#__PURE__*/React.createElement(CameraVideoTag, {
|
|
23062
23082
|
className: classNames.cameraFeed
|
|
@@ -24339,15 +24359,16 @@
|
|
|
24339
24359
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
24340
24360
|
}
|
|
24341
24361
|
}
|
|
24362
|
+
var shouldLoadIdCaptureModels = !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.forceFallbackMode) && !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.allowUploadingDocumentsFromStorage);
|
|
24342
24363
|
switch (checks[checkIndex]) {
|
|
24343
24364
|
case 'IdCapture':
|
|
24344
24365
|
return /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
24345
24366
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24346
24367
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
24347
|
-
requestAccessAutomatically:
|
|
24368
|
+
requestAccessAutomatically: shouldLoadIdCaptureModels
|
|
24348
24369
|
}, /*#__PURE__*/React.createElement(IdCaptureModelsProvider, {
|
|
24349
24370
|
autoStart: false,
|
|
24350
|
-
shouldLoadModels:
|
|
24371
|
+
shouldLoadModels: shouldLoadIdCaptureModels,
|
|
24351
24372
|
documentDetectionModelUrl: (_d = (_c = idCaptureProps.assets) === null || _c === void 0 ? void 0 : _c.documentDetectionModelUrl) !== null && _d !== void 0 ? _d : '',
|
|
24352
24373
|
focusModelUrl: (_f = (_e = idCaptureProps.assets) === null || _e === void 0 ? void 0 : _e.focusModelUrl) !== null && _f !== void 0 ? _f : '',
|
|
24353
24374
|
onModelError: idCaptureProps.onModelError,
|
|
@@ -24383,6 +24404,7 @@
|
|
|
24383
24404
|
return /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
24384
24405
|
preferIphoneContinuityCamera: false,
|
|
24385
24406
|
preferFrontFacingCamera: true,
|
|
24407
|
+
requireMicrophoneAccess: videoSignatureCaptureProps.captureAudio,
|
|
24386
24408
|
maxVideoWidth: 1280,
|
|
24387
24409
|
maxFps: 30,
|
|
24388
24410
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
@@ -24552,7 +24574,8 @@
|
|
|
24552
24574
|
imagePadding: 50,
|
|
24553
24575
|
wavesDisabled: false,
|
|
24554
24576
|
wavesColor: '#287ec6',
|
|
24555
|
-
progressBarColor: '
|
|
24577
|
+
progressBarColor: 'white',
|
|
24578
|
+
progressBarIndicatorColor: '#287ec6',
|
|
24556
24579
|
progressBarWidth: '2.5%'
|
|
24557
24580
|
}
|
|
24558
24581
|
},
|
|
@@ -26638,21 +26661,23 @@
|
|
|
26638
26661
|
customOverlayContent = _a.customOverlayContent,
|
|
26639
26662
|
_d = _a.skipSuccessScreen,
|
|
26640
26663
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
26664
|
+
_e = _a.captureAudio,
|
|
26665
|
+
captureAudio = _e === void 0 ? false : _e,
|
|
26641
26666
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
26642
|
-
|
|
26643
|
-
modelLoadTimeoutMs =
|
|
26644
|
-
|
|
26645
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
26667
|
+
_f = _a.modelLoadTimeoutMs,
|
|
26668
|
+
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
26669
|
+
_g = _a.allowSignatureAfterLivenessCheckFailure,
|
|
26670
|
+
allowSignatureAfterLivenessCheckFailure = _g === void 0 ? false : _g,
|
|
26646
26671
|
faceLivenessProps = _a.faceLivenessProps,
|
|
26647
|
-
|
|
26648
|
-
theme =
|
|
26672
|
+
_h = _a.theme,
|
|
26673
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
26649
26674
|
classNames = _a.classNames,
|
|
26650
26675
|
colors = _a.colors,
|
|
26651
26676
|
verbiage = _a.verbiage,
|
|
26652
26677
|
geolocationEnabled = _a.geolocationEnabled,
|
|
26653
26678
|
geolocationRequired = _a.geolocationRequired,
|
|
26654
|
-
|
|
26655
|
-
debugMode =
|
|
26679
|
+
_j = _a.debugMode,
|
|
26680
|
+
debugMode = _j === void 0 ? false : _j;
|
|
26656
26681
|
useLanguage(lang);
|
|
26657
26682
|
useDebugLogging(debugMode);
|
|
26658
26683
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -26689,6 +26714,7 @@
|
|
|
26689
26714
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
26690
26715
|
loadingOverlayMode: loadingOverlayMode,
|
|
26691
26716
|
skipSuccessScreen: skipSuccessScreen,
|
|
26717
|
+
captureAudio: captureAudio,
|
|
26692
26718
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
26693
26719
|
faceLivenessProps: faceLivenessProps,
|
|
26694
26720
|
allowSignatureAfterLivenessCheckFailure: allowSignatureAfterLivenessCheckFailure,
|
|
@@ -26699,7 +26725,7 @@
|
|
|
26699
26725
|
onModelError: onModelError,
|
|
26700
26726
|
onUserCancel: onUserCancel
|
|
26701
26727
|
};
|
|
26702
|
-
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
26728
|
+
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
26703
26729
|
}))));
|
|
26704
26730
|
};
|
|
26705
26731
|
|