idmission-web-sdk 2.3.7 → 2.3.8
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/common/overlay.d.ts +2 -0
- package/dist/components/common/overlay.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +6 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +6 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +6 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +6 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +6 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +6 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +6 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +6 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +4 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts.map +1 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +4 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +3 -0
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +4 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +4 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/lib/models/loadProgressHooks.d.ts +10 -0
- package/dist/lib/models/loadProgressHooks.d.ts.map +1 -0
- package/dist/sdk2.cjs.development.js +203 -84
- 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 +203 -84
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +203 -84
- 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
|
@@ -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.3.
|
|
214
|
+
var webSdkVersion = '2.3.8';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -482,8 +482,8 @@
|
|
|
482
482
|
var OverlayImageContainer = styled.div(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
|
|
483
483
|
var OverlayImageRow = styled.div(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
|
|
484
484
|
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
485
|
-
var ButtonsColumn = styled.div(templateObject_6$
|
|
486
|
-
var WideButton = styled(LoaderButton)(templateObject_7$
|
|
485
|
+
var ButtonsColumn = styled.div(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"])));
|
|
486
|
+
var WideButton = styled(LoaderButton)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n width: 100%;\n border-radius: 30px;\n"], ["\n width: 100%;\n border-radius: 30px;\n"])));
|
|
487
487
|
var WideBorderButton = styled(WideButton)(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"])), function (props) {
|
|
488
488
|
var _a, _b;
|
|
489
489
|
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.textColor) !== null && _b !== void 0 ? _b : 'black';
|
|
@@ -494,8 +494,8 @@
|
|
|
494
494
|
var _a, _b;
|
|
495
495
|
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.borderColor) !== null && _b !== void 0 ? _b : 'var(--idm-color-secondary-500)';
|
|
496
496
|
});
|
|
497
|
-
var LoadingOverlayInner = styled(OverlayInner$2)(templateObject_9$
|
|
498
|
-
var LoadingOverlayHeader = styled.div(templateObject_10$
|
|
497
|
+
var LoadingOverlayInner = styled(OverlayInner$2)(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 0;\n"], ["\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 0;\n"])));
|
|
498
|
+
var LoadingOverlayHeader = styled.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
|
|
499
499
|
var _a;
|
|
500
500
|
return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
|
|
501
501
|
}, function (props) {
|
|
@@ -519,7 +519,9 @@
|
|
|
519
519
|
var LoadingOverlayLoadingList = styled.ul(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: block;\n margin: auto;\n list-style: none;\n padding: 0;\n"], ["\n display: block;\n margin: auto;\n list-style: none;\n padding: 0;\n"])));
|
|
520
520
|
var LoadingOverlayLoadingListItem = styled.li(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n padding: 2px 1.25rem 2px 0;\n line-height: 1rem;\n"], ["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n padding: 2px 1.25rem 2px 0;\n line-height: 1rem;\n"])));
|
|
521
521
|
var LoadingOverlayProgressContainer = styled.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
522
|
-
var
|
|
522
|
+
var LoadingOverlayCustomLoadingGraphic = styled.img(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
523
|
+
var LoadingOverlayContinueButtonContainer = styled.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
524
|
+
var templateObject_1$M, templateObject_2$D, templateObject_3$r, templateObject_4$l, templateObject_5$e, templateObject_6$9, templateObject_7$6, templateObject_8$4, templateObject_9$3, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22;
|
|
523
525
|
|
|
524
526
|
function _extends() {
|
|
525
527
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -16479,6 +16481,42 @@
|
|
|
16479
16481
|
}))))));
|
|
16480
16482
|
}
|
|
16481
16483
|
|
|
16484
|
+
function useLoadProgressHooks(_a) {
|
|
16485
|
+
var ready = _a.ready,
|
|
16486
|
+
modelLoadState = _a.modelLoadState,
|
|
16487
|
+
modelLoadProgress = _a.modelLoadProgress,
|
|
16488
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
16489
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
16490
|
+
onLoadingCompleted = _a.onLoadingCompleted;
|
|
16491
|
+
var onLoadingStartedRef = React.useRef(onLoadingStarted);
|
|
16492
|
+
React.useEffect(function () {
|
|
16493
|
+
onLoadingStartedRef.current = onLoadingStarted;
|
|
16494
|
+
}, [onLoadingStarted]);
|
|
16495
|
+
var onLoadingProgressRef = React.useRef(onLoadingProgress);
|
|
16496
|
+
React.useEffect(function () {
|
|
16497
|
+
onLoadingProgressRef.current = onLoadingProgress;
|
|
16498
|
+
}, [onLoadingProgress]);
|
|
16499
|
+
var onLoadingCompletedRef = React.useRef(onLoadingCompleted);
|
|
16500
|
+
React.useEffect(function () {
|
|
16501
|
+
onLoadingCompletedRef.current = onLoadingCompleted;
|
|
16502
|
+
}, [onLoadingCompleted]);
|
|
16503
|
+
var loadingStarted = modelLoadState !== 'not-started';
|
|
16504
|
+
React.useEffect(function () {
|
|
16505
|
+
var _a;
|
|
16506
|
+
if (loadingStarted) (_a = onLoadingStartedRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingStartedRef);
|
|
16507
|
+
}, [loadingStarted]);
|
|
16508
|
+
React.useEffect(function () {
|
|
16509
|
+
var _a;
|
|
16510
|
+
if (modelLoadProgress > 0) {
|
|
16511
|
+
(_a = onLoadingProgressRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingProgressRef, modelLoadProgress);
|
|
16512
|
+
}
|
|
16513
|
+
}, [modelLoadProgress]);
|
|
16514
|
+
React.useEffect(function () {
|
|
16515
|
+
var _a;
|
|
16516
|
+
if (ready) (_a = onLoadingCompletedRef.current) === null || _a === void 0 ? void 0 : _a.call(onLoadingCompletedRef);
|
|
16517
|
+
}, [ready]);
|
|
16518
|
+
}
|
|
16519
|
+
|
|
16482
16520
|
var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
|
|
16483
16521
|
var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
|
|
16484
16522
|
var _b, _c, _d, _e, _f, _g;
|
|
@@ -16516,6 +16554,7 @@
|
|
|
16516
16554
|
setDismissed = _q[1];
|
|
16517
16555
|
var theme = styled.useTheme();
|
|
16518
16556
|
assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
|
|
16557
|
+
var hasCustomInstructionGraphic = assets.instructionImageUrl !== legacyInstructionImageUrl$1;
|
|
16519
16558
|
var verbiage = useTranslations(rawVerbiage, {
|
|
16520
16559
|
headingText: 'Use your device camera to capture your ID',
|
|
16521
16560
|
useContinuityCameraText: 'Use your iPhone as a webcam',
|
|
@@ -16528,27 +16567,11 @@
|
|
|
16528
16567
|
pleaseWaitText: 'Please wait...',
|
|
16529
16568
|
sessionCheckingText: 'Authenticating...'
|
|
16530
16569
|
});
|
|
16531
|
-
var onLoadingStartedRef = React.useRef(onLoadingStarted);
|
|
16532
|
-
React.useEffect(function () {
|
|
16533
|
-
onLoadingStartedRef.current = onLoadingStarted;
|
|
16534
|
-
}, [onLoadingStarted]);
|
|
16535
|
-
var onLoadingProgressRef = React.useRef(onLoadingProgress);
|
|
16536
|
-
React.useEffect(function () {
|
|
16537
|
-
onLoadingProgressRef.current = onLoadingProgress;
|
|
16538
|
-
}, [onLoadingProgress]);
|
|
16539
|
-
var onLoadingCompletedRef = React.useRef(onLoadingCompleted);
|
|
16540
|
-
React.useEffect(function () {
|
|
16541
|
-
onLoadingCompletedRef.current = onLoadingCompleted;
|
|
16542
|
-
}, [onLoadingCompleted]);
|
|
16543
16570
|
var ready = sessionReady && modelsReady && cameraReady;
|
|
16544
16571
|
React.useEffect(function () {
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
return function () {
|
|
16549
|
-
return null;
|
|
16550
|
-
};
|
|
16551
|
-
}
|
|
16572
|
+
if (ready) return function () {
|
|
16573
|
+
return null;
|
|
16574
|
+
};
|
|
16552
16575
|
var t = setTimeout(function () {
|
|
16553
16576
|
return setDismissed(false);
|
|
16554
16577
|
}, 500);
|
|
@@ -16560,16 +16583,14 @@
|
|
|
16560
16583
|
var timeSinceWarmingStarted = modelWarmingStartedAt ? new Date().getTime() - modelWarmingStartedAt : 0;
|
|
16561
16584
|
var warmingProgress = timeSinceWarmingStarted / 5000.0;
|
|
16562
16585
|
var modelLoadProgress = modelsReady ? 100 : modelDownloadProgress * 0.5 + warmingProgress * 49.0;
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
}
|
|
16572
|
-
}, [modelLoadProgress]);
|
|
16586
|
+
useLoadProgressHooks({
|
|
16587
|
+
ready: ready,
|
|
16588
|
+
modelLoadState: modelLoadState,
|
|
16589
|
+
modelLoadProgress: modelLoadProgress,
|
|
16590
|
+
onLoadingStarted: onLoadingStarted,
|
|
16591
|
+
onLoadingProgress: onLoadingProgress,
|
|
16592
|
+
onLoadingCompleted: onLoadingCompleted
|
|
16593
|
+
});
|
|
16573
16594
|
if (dismissed) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16574
16595
|
if (cameraAccessDenied) {
|
|
16575
16596
|
return /*#__PURE__*/React.createElement(CameraAccessDeniedOverlay, {
|
|
@@ -16599,7 +16620,7 @@
|
|
|
16599
16620
|
className: classNames.heading
|
|
16600
16621
|
}, verbiage.headingText)), /*#__PURE__*/React.createElement(LoadingOverlayImageContainer, {
|
|
16601
16622
|
className: classNames.imageContainer
|
|
16602
|
-
},
|
|
16623
|
+
}, hasCustomInstructionGraphic ? ( /*#__PURE__*/React.createElement(LoadingOverlayCustomLoadingGraphic, {
|
|
16603
16624
|
ref: imageRef,
|
|
16604
16625
|
alt: verbiage.headingText,
|
|
16605
16626
|
src: assets.instructionImageUrl,
|
|
@@ -16647,7 +16668,7 @@
|
|
|
16647
16668
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
16648
16669
|
className: classNames.loadingListItemIndicator,
|
|
16649
16670
|
state: sessionReady && modelsReady ? 'done' : 'running'
|
|
16650
|
-
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelLoadState === 'downloading' ? "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)") : modelLoadState === 'warming' ? verbiage.modelsWarmingUpText : verbiage.modelsReadyText))), /*#__PURE__*/React.createElement(
|
|
16671
|
+
}), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelLoadState === 'downloading' ? "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)") : modelLoadState === 'warming' ? verbiage.modelsWarmingUpText : verbiage.modelsReadyText))), /*#__PURE__*/React.createElement(LoadingOverlayContinueButtonContainer, {
|
|
16651
16672
|
className: classNames.continueBtnContainer
|
|
16652
16673
|
}, (ready || ((_g = (_f = theme.idCapture) === null || _f === void 0 ? void 0 : _f.loadingOverlay) === null || _g === void 0 ? void 0 : _g.displayDisabledContinueBtn)) && ( /*#__PURE__*/React.createElement(ContinueButton$1, {
|
|
16653
16674
|
autoFocus: true,
|
|
@@ -16670,8 +16691,8 @@
|
|
|
16670
16691
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
16671
16692
|
});
|
|
16672
16693
|
var ContinuityCameraCheckboxContainer$1 = styled.div(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n position: absolute;\n bottom: 120px;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n bottom: 120px;\n width: 100%;\n display: flex;\n"])));
|
|
16673
|
-
var ContinuityCameraCheckboxInner = styled(GuidanceMessage)(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"], ["\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])));
|
|
16674
|
-
var ContinuityCameraCheckbox$1 = styled.input(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n margin
|
|
16694
|
+
var ContinuityCameraCheckboxInner = styled(GuidanceMessage)(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"], ["\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 18px;\n margin: 0 auto;\n font-size: 14px;\n font-weight: bold;\n background: white;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])));
|
|
16695
|
+
var ContinuityCameraCheckbox$1 = styled.input(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
16675
16696
|
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n color: ", ";\n ", "\n"], ["\n color: ", ";\n ", "\n"])), function (props) {
|
|
16676
16697
|
var _a, _b, _c, _d;
|
|
16677
16698
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarTextColor) !== null && _d !== void 0 ? _d : 'white';
|
|
@@ -16679,20 +16700,18 @@
|
|
|
16679
16700
|
var _a, _b, _c, _d, _e, _f;
|
|
16680
16701
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
16681
16702
|
});
|
|
16682
|
-
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(templateObject_6$
|
|
16703
|
+
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n background: ", ";\n opacity: ", ";\n"], ["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
16683
16704
|
var _a, _b, _c, _d;
|
|
16684
16705
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
16685
16706
|
}, function (props) {
|
|
16686
16707
|
var _a, _b, _c, _d;
|
|
16687
16708
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundOpacity) !== null && _d !== void 0 ? _d : 0.75;
|
|
16688
16709
|
});
|
|
16689
|
-
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(templateObject_7$
|
|
16710
|
+
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (props) {
|
|
16690
16711
|
var _a, _b, _c, _d;
|
|
16691
16712
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarIndicatorColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-primary-500)';
|
|
16692
16713
|
});
|
|
16693
|
-
var
|
|
16694
|
-
var ContinueButtonContainer$1 = styled.div(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
16695
|
-
var ContinueButton$1 = styled(LoaderButton)(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
16714
|
+
var ContinueButton$1 = styled(LoaderButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
16696
16715
|
var _a, _b, _c, _d, _e, _f;
|
|
16697
16716
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
16698
16717
|
}, function (props) {
|
|
@@ -16711,7 +16730,7 @@
|
|
|
16711
16730
|
var _a, _b, _c, _d;
|
|
16712
16731
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnDisabledBorder) !== null && _d !== void 0 ? _d : 'none';
|
|
16713
16732
|
});
|
|
16714
|
-
var templateObject_1$E, templateObject_2$x, templateObject_3$m, templateObject_4$g, templateObject_5$c, templateObject_6$
|
|
16733
|
+
var templateObject_1$E, templateObject_2$x, templateObject_3$m, templateObject_4$g, templateObject_5$c, templateObject_6$8, templateObject_7$5, templateObject_8$3;
|
|
16715
16734
|
|
|
16716
16735
|
var ContinuityCameraCheckboxContainer = styled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
|
|
16717
16736
|
var ContinuityCameraCheckbox = styled.input(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
@@ -16962,8 +16981,8 @@
|
|
|
16962
16981
|
var ImageRow = styled(OverlayImageRow)(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"], ["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
16963
16982
|
var ImageCol$1 = styled.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"], ["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
16964
16983
|
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
16965
|
-
var DebugPre = styled.pre(templateObject_6$
|
|
16966
|
-
var templateObject_1$B, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$b, templateObject_6$
|
|
16984
|
+
var DebugPre = styled.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n display: block;\n text-align: left;\n width: 100%;\n max-width: 100%;\n overflow-x: auto;\n"], ["\n display: block;\n text-align: left;\n width: 100%;\n max-width: 100%;\n overflow-x: auto;\n"])));
|
|
16985
|
+
var templateObject_1$B, templateObject_2$u, templateObject_3$l, templateObject_4$f, templateObject_5$b, templateObject_6$7;
|
|
16967
16986
|
|
|
16968
16987
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
16969
16988
|
var _this = this;
|
|
@@ -17654,12 +17673,12 @@
|
|
|
17654
17673
|
return props.$minHeight ? "min-height: ".concat(props.$minHeight, "px;") : "";
|
|
17655
17674
|
});
|
|
17656
17675
|
var Spacer = styled(GuideRegion)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n display: block;\n width: auto;\n"], ["\n display: block;\n width: auto;\n"])));
|
|
17657
|
-
var GuideCenterRegion = styled.div(templateObject_6$
|
|
17676
|
+
var GuideCenterRegion = styled.div(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n ", "\n ", "\n transform-style: preserve-3d;\n box-sizing: border-box;\n display: flex;\n flex: 1;\n max-height: 100%;\n height: 100%;\n"], ["\n ", "\n ", "\n transform-style: preserve-3d;\n box-sizing: border-box;\n display: flex;\n flex: 1;\n max-height: 100%;\n height: 100%;\n"])), function (props) {
|
|
17658
17677
|
return props.$minWidth ? "min-width: ".concat(props.$minWidth, "px;") : "";
|
|
17659
17678
|
}, function (props) {
|
|
17660
17679
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
17661
17680
|
});
|
|
17662
|
-
var GuideCenterBorder = styled.div(templateObject_7$
|
|
17681
|
+
var GuideCenterBorder = styled.div(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n box-sizing: border-box;\n border: ", ";\n display: flex;\n flex: 1;\n justify-content: center;\n max-height: 100%;\n min-height: 0;\n position: relative;\n ", "\n"], ["\n box-sizing: border-box;\n border: ", ";\n display: flex;\n flex: 1;\n justify-content: center;\n max-height: 100%;\n min-height: 0;\n position: relative;\n ", "\n"])), function (props) {
|
|
17663
17682
|
var _a, _b;
|
|
17664
17683
|
return "".concat((_a = props.$borderWidth) !== null && _a !== void 0 ? _a : 4, "px solid ").concat((_b = props.$borderColor) !== null && _b !== void 0 ? _b : 'white');
|
|
17665
17684
|
}, function (props) {
|
|
@@ -17667,7 +17686,7 @@
|
|
|
17667
17686
|
});
|
|
17668
17687
|
var GuideText = styled.span(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
|
|
17669
17688
|
var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n"], ["\n position: relative;\n margin: auto;\n"])));
|
|
17670
|
-
var templateObject_1$y, templateObject_2$s, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$
|
|
17689
|
+
var templateObject_1$y, templateObject_2$s, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$6, templateObject_7$4, templateObject_8$2, templateObject_9$2;
|
|
17671
17690
|
|
|
17672
17691
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
|
|
17673
17692
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
@@ -18539,9 +18558,9 @@
|
|
|
18539
18558
|
var _a, _b, _c;
|
|
18540
18559
|
return (_c = (_b = (_a = props.theme.documentCapture) === null || _a === void 0 ? void 0 : _a.instructions) === null || _b === void 0 ? void 0 : _b.maxHeight) !== null && _c !== void 0 ? _c : '8rem';
|
|
18541
18560
|
});
|
|
18542
|
-
var StyledButtonsRow$8 = styled(ButtonsRow$2)(templateObject_6$
|
|
18543
|
-
var PreviewImage = styled.img(templateObject_7$
|
|
18544
|
-
var templateObject_1$r, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$8, templateObject_6$
|
|
18561
|
+
var StyledButtonsRow$8 = styled(ButtonsRow$2)(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n padding-top: 20px;\n"], ["\n padding-top: 20px;\n"])));
|
|
18562
|
+
var PreviewImage = styled.img(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"])));
|
|
18563
|
+
var templateObject_1$r, templateObject_2$n, templateObject_3$h, templateObject_4$b, templateObject_5$8, templateObject_6$5, templateObject_7$3;
|
|
18545
18564
|
|
|
18546
18565
|
var DocumentCaptureWizard = function DocumentCaptureWizard(_a) {
|
|
18547
18566
|
var onSuccess = _a.onSuccess,
|
|
@@ -18817,8 +18836,8 @@
|
|
|
18817
18836
|
var Description$3 = styled.p(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
18818
18837
|
var Instruction = styled.p(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n font-weight: bold;\n"], ["\n font-weight: bold;\n"])));
|
|
18819
18838
|
var ImageCol = styled.div(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"], ["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
|
|
18820
|
-
var StyledButtonsRow$7 = styled(ButtonsRow$2)(templateObject_6$
|
|
18821
|
-
var templateObject_1$q, templateObject_2$m, templateObject_3$g, templateObject_4$a, templateObject_5$7, templateObject_6$
|
|
18839
|
+
var StyledButtonsRow$7 = styled(ButtonsRow$2)(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n margin-top: 32px;\n"], ["\n margin-top: 32px;\n"])));
|
|
18840
|
+
var templateObject_1$q, templateObject_2$m, templateObject_3$g, templateObject_4$a, templateObject_5$7, templateObject_6$4;
|
|
18822
18841
|
|
|
18823
18842
|
function ScalingCameraFeed() {
|
|
18824
18843
|
var _a = useIdCaptureStore(),
|
|
@@ -19178,8 +19197,8 @@
|
|
|
19178
19197
|
var SelectIdCardScreenPanel = styled(ScreenPanel)(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n background: white;\n padding: 80px 0;\n\n @media (max-height: 1000px) {\n padding: 40px 0;\n }\n"], ["\n background: white;\n padding: 80px 0;\n\n @media (max-height: 1000px) {\n padding: 40px 0;\n }\n"])));
|
|
19179
19198
|
var ScreenPanelHeading = styled.h3(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n margin: 0 0 30px;\n"], ["\n margin: 0 0 30px;\n"])));
|
|
19180
19199
|
var ScreenActionsBar = styled.div(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 20px;\n padding: 20px;\n width: 100%;\n box-sizing: border-box;\n border-top: 1px solid #ccc;\n\n @media (max-width: 600px) {\n justify-content: center;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 20px;\n padding: 20px;\n width: 100%;\n box-sizing: border-box;\n border-top: 1px solid #ccc;\n\n @media (max-width: 600px) {\n justify-content: center;\n }\n"])));
|
|
19181
|
-
var DashedSeparator = styled.div(templateObject_6$
|
|
19182
|
-
var OrWrapper = styled.div(templateObject_7$
|
|
19200
|
+
var DashedSeparator = styled.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n width: 100%;\n height: 0;\n border-top: 2px solid #606060;\n border-top-style: dashed;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 100%;\n height: 0;\n border-top: 2px solid #606060;\n border-top-style: dashed;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
19201
|
+
var OrWrapper = styled.div(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n color: #323232;\n font-weight: bold;\n background: white;\n border-radius: 50%;\n top: -2px;\n position: relative;\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n color: #323232;\n font-weight: bold;\n background: white;\n border-radius: 50%;\n top: -2px;\n position: relative;\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
19183
19202
|
var UploadIdBackHelpText = styled.p(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n color: #323232;\n font-style: italic;\n margin: 30px 0 0;\n"], ["\n color: #323232;\n font-style: italic;\n margin: 30px 0 0;\n"])));
|
|
19184
19203
|
var Button = styled(WideBorderButton)(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n width: auto;\n font-weight: 500;\n padding-left: 40px;\n padding-right: 40px;\n transition: background-color 0.3s ease;\n background-color: #ffffff;\n white-space: nowrap;\n\n &:disabled,\n &.disabled {\n background-color: #f1f1f1 !important;\n border-color: #dbdbdb !important;\n color: #323232 !important;\n }\n\n &:hover {\n filter: none;\n background-color: #fafafa !important;\n }\n"], ["\n width: auto;\n font-weight: 500;\n padding-left: 40px;\n padding-right: 40px;\n transition: background-color 0.3s ease;\n background-color: #ffffff;\n white-space: nowrap;\n\n &:disabled,\n &.disabled {\n background-color: #f1f1f1 !important;\n border-color: #dbdbdb !important;\n color: #323232 !important;\n }\n\n &:hover {\n filter: none;\n background-color: #fafafa !important;\n }\n"])));
|
|
19185
19204
|
var Modal = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10000;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
|
|
@@ -19459,7 +19478,7 @@
|
|
|
19459
19478
|
} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
|
|
19460
19479
|
return bytes.toFixed(dp) + ' ' + units[u];
|
|
19461
19480
|
}
|
|
19462
|
-
var templateObject_1$p, templateObject_2$l, templateObject_3$f, templateObject_4$9, templateObject_5$6, templateObject_6$
|
|
19481
|
+
var templateObject_1$p, templateObject_2$l, templateObject_3$f, templateObject_4$9, templateObject_5$6, templateObject_6$3, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
19463
19482
|
|
|
19464
19483
|
var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
19465
19484
|
var _b, _c, _d, _e, _f;
|
|
@@ -21546,7 +21565,10 @@
|
|
|
21546
21565
|
var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
|
|
21547
21566
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
21548
21567
|
var _b, _c;
|
|
21549
|
-
var
|
|
21568
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
21569
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
21570
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
21571
|
+
onDismissed = _a.onDismissed,
|
|
21550
21572
|
onUserCancel = _a.onUserCancel,
|
|
21551
21573
|
customOverlayContent = _a.customOverlayContent,
|
|
21552
21574
|
_d = _a.waitForIdCaptureModels,
|
|
@@ -21572,8 +21594,9 @@
|
|
|
21572
21594
|
cameraAccessDenied = _j.cameraAccessDenied,
|
|
21573
21595
|
microphoneAccessDenied = _j.microphoneAccessDenied;
|
|
21574
21596
|
var _k = useSelfieGuidanceModelsContext(),
|
|
21575
|
-
|
|
21576
|
-
modelDownloadProgress = _k.modelDownloadProgress
|
|
21597
|
+
modelLoadState = _k.modelLoadState,
|
|
21598
|
+
modelDownloadProgress = _k.modelDownloadProgress,
|
|
21599
|
+
modelWarmingStartedAt = _k.modelWarmingStartedAt;
|
|
21577
21600
|
var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
|
|
21578
21601
|
var theme = styled.useTheme();
|
|
21579
21602
|
var verbiage = useTranslations(rawVerbiage, {
|
|
@@ -21600,6 +21623,19 @@
|
|
|
21600
21623
|
});
|
|
21601
21624
|
}, 3000);
|
|
21602
21625
|
}, []);
|
|
21626
|
+
var timeSinceWarmingStarted = modelWarmingStartedAt ? new Date().getTime() - modelWarmingStartedAt : 0;
|
|
21627
|
+
var warmingProgress = timeSinceWarmingStarted / 5000.0;
|
|
21628
|
+
var allModelsReady = modelLoadState === 'ready' && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
21629
|
+
var ready = sessionReady && allModelsReady && cameraReady;
|
|
21630
|
+
var modelLoadProgress = allModelsReady ? 100 : modelDownloadProgress * 0.5 + warmingProgress * 49.0;
|
|
21631
|
+
useLoadProgressHooks({
|
|
21632
|
+
ready: ready,
|
|
21633
|
+
modelLoadState: modelLoadState,
|
|
21634
|
+
modelLoadProgress: modelLoadProgress,
|
|
21635
|
+
onLoadingStarted: onLoadingStarted,
|
|
21636
|
+
onLoadingProgress: onLoadingProgress,
|
|
21637
|
+
onLoadingCompleted: onLoadingCompleted
|
|
21638
|
+
});
|
|
21603
21639
|
var _m = React.useState(false),
|
|
21604
21640
|
dismissed = _m[0],
|
|
21605
21641
|
setDismissed = _m[1];
|
|
@@ -21620,8 +21656,6 @@
|
|
|
21620
21656
|
verbiage: rawVerbiage.microphoneAccessDenied
|
|
21621
21657
|
});
|
|
21622
21658
|
}
|
|
21623
|
-
var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
|
|
21624
|
-
var ready = sessionReady && allModelsReady && cameraReady;
|
|
21625
21659
|
return /*#__PURE__*/React.createElement(OverlayContainer, {
|
|
21626
21660
|
className: classNames.container
|
|
21627
21661
|
}, /*#__PURE__*/React.createElement(OverlayInner, {
|
|
@@ -21635,7 +21669,7 @@
|
|
|
21635
21669
|
className: classNames.heading
|
|
21636
21670
|
}, headingText)), /*#__PURE__*/React.createElement(LoadingOverlayImageContainer, {
|
|
21637
21671
|
className: classNames.imageContainer
|
|
21638
|
-
}, (assets === null || assets === void 0 ? void 0 : assets.instructionImageUrl) && assets.instructionImageUrl !== legacyInstructionImageUrl ? ( /*#__PURE__*/React.createElement(
|
|
21672
|
+
}, (assets === null || assets === void 0 ? void 0 : assets.instructionImageUrl) && assets.instructionImageUrl !== legacyInstructionImageUrl ? ( /*#__PURE__*/React.createElement(LoadingOverlayCustomLoadingGraphic, {
|
|
21639
21673
|
className: classNames.image,
|
|
21640
21674
|
alt: verbiage.headingText,
|
|
21641
21675
|
src: assets.instructionImageUrl
|
|
@@ -21648,7 +21682,7 @@
|
|
|
21648
21682
|
}, /*#__PURE__*/React.createElement(ProgressBarBackground, {
|
|
21649
21683
|
className: classNames.progressBackground
|
|
21650
21684
|
}), /*#__PURE__*/React.createElement(LoadingOverlayProgressBar, {
|
|
21651
|
-
"$progress":
|
|
21685
|
+
"$progress": modelLoadProgress,
|
|
21652
21686
|
className: classNames.progressBar
|
|
21653
21687
|
}, /*#__PURE__*/React.createElement(ProgressIndicator, {
|
|
21654
21688
|
className: classNames.progressIndicator
|
|
@@ -21666,7 +21700,7 @@
|
|
|
21666
21700
|
}, /*#__PURE__*/React.createElement(LoadingListItemIndicator, {
|
|
21667
21701
|
className: classNames.loadingListItemIndicator,
|
|
21668
21702
|
state: sessionReady && allModelsReady ? 'done' : 'running'
|
|
21669
|
-
}), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(
|
|
21703
|
+
}), !sessionReady ? verbiage.sessionCheckingText : allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React.createElement(LoadingOverlayContinueButtonContainer, {
|
|
21670
21704
|
className: classNames.continueBtnContainer
|
|
21671
21705
|
}, (ready || ((_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.displayDisabledContinueBtn)) && ( /*#__PURE__*/React.createElement(ContinueButton, {
|
|
21672
21706
|
autoFocus: true,
|
|
@@ -21706,9 +21740,7 @@
|
|
|
21706
21740
|
var _a, _b, _c, _d;
|
|
21707
21741
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarIndicatorColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
|
|
21708
21742
|
});
|
|
21709
|
-
var
|
|
21710
|
-
var ContinueButtonContainer = styled.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
21711
|
-
var ContinueButton = styled(LoaderButton)(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
|
|
21743
|
+
var ContinueButton = styled(LoaderButton)(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n box-shadow: none;\n }\n"])), function (props) {
|
|
21712
21744
|
var _a, _b, _c, _d, _e, _f;
|
|
21713
21745
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
21714
21746
|
}, function (props) {
|
|
@@ -21727,7 +21759,7 @@
|
|
|
21727
21759
|
var _a, _b, _c, _d;
|
|
21728
21760
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) !== null && _d !== void 0 ? _d : 'none';
|
|
21729
21761
|
});
|
|
21730
|
-
var templateObject_1$g, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4
|
|
21762
|
+
var templateObject_1$g, templateObject_2$d, templateObject_3$b, templateObject_4$6, templateObject_5$4;
|
|
21731
21763
|
|
|
21732
21764
|
var components = {
|
|
21733
21765
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
@@ -21744,7 +21776,10 @@
|
|
|
21744
21776
|
|
|
21745
21777
|
var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
21746
21778
|
var _b;
|
|
21747
|
-
var
|
|
21779
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
21780
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
21781
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
21782
|
+
onComplete = _a.onComplete,
|
|
21748
21783
|
onSuccess = _a.onSuccess,
|
|
21749
21784
|
onFailure = _a.onFailure,
|
|
21750
21785
|
onTimeout = _a.onTimeout,
|
|
@@ -22011,6 +22046,9 @@
|
|
|
22011
22046
|
classNames: classNames.loadingOverlay,
|
|
22012
22047
|
colors: colors.loadingOverlay,
|
|
22013
22048
|
verbiage: verbiage.loadingOverlay,
|
|
22049
|
+
onLoadingStarted: onLoadingStarted,
|
|
22050
|
+
onLoadingProgress: onLoadingProgress,
|
|
22051
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
22014
22052
|
onUserCancel: onUserCancel,
|
|
22015
22053
|
onDismissed: onLoadingOverlayDismissedCallback,
|
|
22016
22054
|
waitForIdCaptureModels: waitForIdCaptureModels
|
|
@@ -23867,7 +23905,10 @@
|
|
|
23867
23905
|
var templateObject_1$9;
|
|
23868
23906
|
|
|
23869
23907
|
var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
23870
|
-
var
|
|
23908
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
23909
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
23910
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
23911
|
+
onComplete = _a.onComplete,
|
|
23871
23912
|
onVideoCaptured = _a.onVideoCaptured,
|
|
23872
23913
|
onRetryClicked = _a.onRetryClicked,
|
|
23873
23914
|
onExitCapture = _a.onExitCapture,
|
|
@@ -24019,6 +24060,9 @@
|
|
|
24019
24060
|
return /*#__PURE__*/React.createElement(FaceLivenessWizard, _assign({
|
|
24020
24061
|
key: "face-liveness-".concat(attempt)
|
|
24021
24062
|
}, faceLivenessProps, {
|
|
24063
|
+
onLoadingStarted: onLoadingStarted,
|
|
24064
|
+
onLoadingProgress: onLoadingProgress,
|
|
24065
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
24022
24066
|
onSuccess: onFaceCaptureSuccess,
|
|
24023
24067
|
onExitCapture: onExitCapture,
|
|
24024
24068
|
onUserCancel: onUserCancel,
|
|
@@ -24964,6 +25008,9 @@
|
|
|
24964
25008
|
_s = _a.idCaptureLoadingOverlayMode,
|
|
24965
25009
|
idCaptureLoadingOverlayMode = _s === void 0 ? 'default' : _s,
|
|
24966
25010
|
customOverlayContent = _a.customOverlayContent,
|
|
25011
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
25012
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
25013
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
24967
25014
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
24968
25015
|
_t = _a.idDocumentType,
|
|
24969
25016
|
idDocumentType = _t === void 0 ? 'idCardOrPassport' : _t,
|
|
@@ -25121,6 +25168,9 @@
|
|
|
25121
25168
|
key: "id-capture-".concat(attempt),
|
|
25122
25169
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
25123
25170
|
customOverlayContent: customOverlayContent,
|
|
25171
|
+
onLoadingStarted: onLoadingStarted,
|
|
25172
|
+
onLoadingProgress: onLoadingProgress,
|
|
25173
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
25124
25174
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
25125
25175
|
silentFallback: silentFallback,
|
|
25126
25176
|
guideImages: idCaptureGuideImages
|
|
@@ -25145,6 +25195,9 @@
|
|
|
25145
25195
|
key: "face-liveness-".concat(attempt),
|
|
25146
25196
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
25147
25197
|
customOverlayContent: customOverlayContent,
|
|
25198
|
+
onLoadingStarted: onLoadingStarted,
|
|
25199
|
+
onLoadingProgress: onLoadingProgress,
|
|
25200
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
25148
25201
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
25149
25202
|
silentFallback: silentFallback
|
|
25150
25203
|
}, faceLivenessProps, {
|
|
@@ -25948,6 +26001,9 @@
|
|
|
25948
26001
|
_h = _a.skipSuccessScreen,
|
|
25949
26002
|
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
25950
26003
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
26004
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
26005
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
26006
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
25951
26007
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
25952
26008
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
25953
26009
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -25984,6 +26040,9 @@
|
|
|
25984
26040
|
timeoutDurationMs: timeoutDurationMs,
|
|
25985
26041
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
25986
26042
|
skipSuccessScreen: skipSuccessScreen,
|
|
26043
|
+
onLoadingStarted: onLoadingStarted,
|
|
26044
|
+
onLoadingProgress: onLoadingProgress,
|
|
26045
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
25987
26046
|
onComplete: onComplete,
|
|
25988
26047
|
onSuccess: onApproved,
|
|
25989
26048
|
onDenied: onDenied,
|
|
@@ -25997,7 +26056,7 @@
|
|
|
25997
26056
|
verbiage: verbiage,
|
|
25998
26057
|
debugMode: debugMode
|
|
25999
26058
|
};
|
|
26000
|
-
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
26059
|
+
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
26001
26060
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26002
26061
|
sessionId: sessionId,
|
|
26003
26062
|
authUrl: authUrl
|
|
@@ -26120,6 +26179,9 @@
|
|
|
26120
26179
|
enableOverrideWrongDocumentTypeDialog = _w === void 0 ? false : _w,
|
|
26121
26180
|
_x = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
26122
26181
|
allowOverrideWrongDocumentTypeAfterMs = _x === void 0 ? 8000 : _x,
|
|
26182
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
26183
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
26184
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26123
26185
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26124
26186
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
26125
26187
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -26164,6 +26226,9 @@
|
|
|
26164
26226
|
useDebugLogging(debugMode);
|
|
26165
26227
|
var idCaptureProps = React.useMemo(function () {
|
|
26166
26228
|
return {
|
|
26229
|
+
onLoadingStarted: onLoadingStarted,
|
|
26230
|
+
onLoadingProgress: onLoadingProgress,
|
|
26231
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
26167
26232
|
onExitCapture: onExitCapture,
|
|
26168
26233
|
onUserCancel: onUserCancel,
|
|
26169
26234
|
onModelError: onIdCaptureModelError,
|
|
@@ -26191,9 +26256,12 @@
|
|
|
26191
26256
|
skipSuccessScreen: skipSuccessScreen,
|
|
26192
26257
|
debugMode: debugMode
|
|
26193
26258
|
};
|
|
26194
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureAllowUploadingDocumentsFromStorage, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, separateIdCardCaptureSequence, skipSuccessScreen, debugMode]);
|
|
26259
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureAllowUploadingDocumentsFromStorage, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, separateIdCardCaptureSequence, skipSuccessScreen, debugMode]);
|
|
26195
26260
|
var faceLivenessProps = React.useMemo(function () {
|
|
26196
26261
|
return {
|
|
26262
|
+
onLoadingStarted: onLoadingStarted,
|
|
26263
|
+
onLoadingProgress: onLoadingProgress,
|
|
26264
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
26197
26265
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
26198
26266
|
initialCaptureDelayMs: faceLivenessInitialCaptureDelayMs,
|
|
26199
26267
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
@@ -26211,7 +26279,7 @@
|
|
|
26211
26279
|
verbiage: verbiage.faceLiveness,
|
|
26212
26280
|
debugMode: debugMode
|
|
26213
26281
|
};
|
|
26214
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
26282
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
26215
26283
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
26216
26284
|
return {
|
|
26217
26285
|
documents: captureAdditionalDocuments,
|
|
@@ -26387,6 +26455,9 @@
|
|
|
26387
26455
|
allowUploadingDocumentsFromStorage = _w === void 0 ? false : _w,
|
|
26388
26456
|
_x = _a.separateIdCardCaptureSequence,
|
|
26389
26457
|
separateIdCardCaptureSequence = _x === void 0 ? false : _x,
|
|
26458
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
26459
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
26460
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26390
26461
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26391
26462
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26392
26463
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26433,6 +26504,9 @@
|
|
|
26433
26504
|
useDebugLogging(debugMode);
|
|
26434
26505
|
var idCaptureProps = React.useMemo(function () {
|
|
26435
26506
|
return {
|
|
26507
|
+
onLoadingStarted: onLoadingStarted,
|
|
26508
|
+
onLoadingProgress: onLoadingProgress,
|
|
26509
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
26436
26510
|
assets: assets.idCapture,
|
|
26437
26511
|
classNames: classNames.idCapture,
|
|
26438
26512
|
colors: colors.idCapture,
|
|
@@ -26460,9 +26534,12 @@
|
|
|
26460
26534
|
skipSuccessScreen: skipSuccessScreen,
|
|
26461
26535
|
debugMode: debugMode
|
|
26462
26536
|
};
|
|
26463
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
26537
|
+
}, [onLoadingCompleted, onLoadingProgress, onLoadingStarted, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
26464
26538
|
var faceLivenessProps = React.useMemo(function () {
|
|
26465
26539
|
return {
|
|
26540
|
+
onLoadingStarted: onLoadingStarted,
|
|
26541
|
+
onLoadingProgress: onLoadingProgress,
|
|
26542
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
26466
26543
|
onExitCapture: onExitCapture,
|
|
26467
26544
|
onExitAfterFailure: onExitAfterFailure,
|
|
26468
26545
|
onUserCancel: onUserCancel,
|
|
@@ -26479,7 +26556,7 @@
|
|
|
26479
26556
|
verbiage: verbiage.faceLiveness,
|
|
26480
26557
|
debugMode: debugMode
|
|
26481
26558
|
};
|
|
26482
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
26559
|
+
}, [onLoadingCompleted, onLoadingProgress, onLoadingStarted, assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, faceLivenessInitialCaptureDelayMs, faceLivenessLoadingOverlayMode, faceLivenessTimeoutDurationMs, onExitAfterFailure, onExitCapture, onSelfieCaptureModelError, onUserCancel, precapturedDocuments, selfieCaptureModelLoadTimeoutMs, skipSuccessScreen, verbiage.faceLiveness]);
|
|
26483
26560
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
26484
26561
|
return _assign({
|
|
26485
26562
|
onExitCapture: onExitCapture,
|
|
@@ -26894,7 +26971,10 @@
|
|
|
26894
26971
|
|
|
26895
26972
|
var ALLOWED_RETRIES$2 = 2;
|
|
26896
26973
|
var CustomerVerificationWizard = function CustomerVerificationWizard(_a) {
|
|
26897
|
-
var
|
|
26974
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
26975
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
26976
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26977
|
+
onComplete = _a.onComplete,
|
|
26898
26978
|
onCustomerMatched = _a.onCustomerMatched,
|
|
26899
26979
|
onCustomerNotMatched = _a.onCustomerNotMatched,
|
|
26900
26980
|
onExitCapture = _a.onExitCapture,
|
|
@@ -27024,7 +27104,7 @@
|
|
|
27024
27104
|
onExitAfterFailure === null || onExitAfterFailure === void 0 ? void 0 : onExitAfterFailure();
|
|
27025
27105
|
},
|
|
27026
27106
|
onRetryClick: function onRetryClick() {
|
|
27027
|
-
setAttempt(function (n) {
|
|
27107
|
+
return setAttempt(function (n) {
|
|
27028
27108
|
return n + 1;
|
|
27029
27109
|
});
|
|
27030
27110
|
}
|
|
@@ -27039,9 +27119,12 @@
|
|
|
27039
27119
|
classNames: classNames.loadingOverlay,
|
|
27040
27120
|
colors: colors.loadingOverlay,
|
|
27041
27121
|
verbiage: verbiage.loadingOverlay,
|
|
27122
|
+
onLoadingStarted: onLoadingStarted,
|
|
27123
|
+
onLoadingProgress: onLoadingProgress,
|
|
27124
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27042
27125
|
onUserCancel: onUserCancel,
|
|
27043
27126
|
onDismissed: function onDismissed() {
|
|
27044
|
-
setCaptureState('CAPTURING');
|
|
27127
|
+
return setCaptureState('CAPTURING');
|
|
27045
27128
|
}
|
|
27046
27129
|
}));
|
|
27047
27130
|
};
|
|
@@ -27083,6 +27166,9 @@
|
|
|
27083
27166
|
classNames = _a.classNames,
|
|
27084
27167
|
colors = _a.colors,
|
|
27085
27168
|
verbiage = _a.verbiage,
|
|
27169
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
27170
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
27171
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27086
27172
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27087
27173
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27088
27174
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27151,6 +27237,9 @@
|
|
|
27151
27237
|
}, /*#__PURE__*/React.createElement(SdkPage, {
|
|
27152
27238
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
27153
27239
|
}, /*#__PURE__*/React.createElement(CustomerVerificationWizard, {
|
|
27240
|
+
onLoadingStarted: onLoadingStarted,
|
|
27241
|
+
onLoadingProgress: onLoadingProgress,
|
|
27242
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27154
27243
|
onComplete: onComplete,
|
|
27155
27244
|
onCustomerMatched: onCustomerMatched,
|
|
27156
27245
|
onCustomerNotMatched: onCustomerNotMatched,
|
|
@@ -27464,7 +27553,10 @@
|
|
|
27464
27553
|
|
|
27465
27554
|
var ALLOWED_RETRIES = 2;
|
|
27466
27555
|
var CustomerIdentificationWizard = function CustomerIdentificationWizard(_a) {
|
|
27467
|
-
var
|
|
27556
|
+
var onLoadingStarted = _a.onLoadingStarted,
|
|
27557
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
27558
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27559
|
+
onComplete = _a.onComplete,
|
|
27468
27560
|
onCustomerMatched = _a.onCustomerMatched,
|
|
27469
27561
|
onCustomerNotMatched = _a.onCustomerNotMatched,
|
|
27470
27562
|
onExitCapture = _a.onExitCapture,
|
|
@@ -27609,6 +27701,9 @@
|
|
|
27609
27701
|
classNames: classNames.loadingOverlay,
|
|
27610
27702
|
colors: colors.loadingOverlay,
|
|
27611
27703
|
verbiage: verbiage.loadingOverlay,
|
|
27704
|
+
onLoadingStarted: onLoadingStarted,
|
|
27705
|
+
onLoadingProgress: onLoadingProgress,
|
|
27706
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27612
27707
|
onUserCancel: onUserCancel,
|
|
27613
27708
|
onDismissed: function onDismissed() {
|
|
27614
27709
|
setCaptureState('CAPTURING');
|
|
@@ -27646,6 +27741,9 @@
|
|
|
27646
27741
|
modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
|
|
27647
27742
|
_f = _a.skipSuccessScreen,
|
|
27648
27743
|
skipSuccessScreen = _f === void 0 ? false : _f,
|
|
27744
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
27745
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
27746
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27649
27747
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27650
27748
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27651
27749
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27719,6 +27817,9 @@
|
|
|
27719
27817
|
}, /*#__PURE__*/React.createElement(SdkPage, {
|
|
27720
27818
|
className: classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
27721
27819
|
}, /*#__PURE__*/React.createElement(CustomerIdentificationWizard, {
|
|
27820
|
+
onLoadingStarted: onLoadingStarted,
|
|
27821
|
+
onLoadingProgress: onLoadingProgress,
|
|
27822
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27722
27823
|
onComplete: onComplete,
|
|
27723
27824
|
onCustomerMatched: onCustomerMatched,
|
|
27724
27825
|
onCustomerNotMatched: onCustomerNotMatched,
|
|
@@ -27750,6 +27851,9 @@
|
|
|
27750
27851
|
documentServiceUrl = _a.documentServiceUrl,
|
|
27751
27852
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
27752
27853
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
27854
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
27855
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
27856
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27753
27857
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27754
27858
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27755
27859
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27829,6 +27933,9 @@
|
|
|
27829
27933
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
27830
27934
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
27831
27935
|
return {
|
|
27936
|
+
onLoadingStarted: onLoadingStarted,
|
|
27937
|
+
onLoadingProgress: onLoadingProgress,
|
|
27938
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27832
27939
|
customOverlayContent: customOverlayContent,
|
|
27833
27940
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
27834
27941
|
loadingOverlayMode: loadingOverlayMode,
|
|
@@ -27847,7 +27954,7 @@
|
|
|
27847
27954
|
onModelError: onModelError,
|
|
27848
27955
|
onUserCancel: onUserCancel
|
|
27849
27956
|
};
|
|
27850
|
-
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
27957
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
27851
27958
|
})))));
|
|
27852
27959
|
};
|
|
27853
27960
|
|
|
@@ -27885,6 +27992,9 @@
|
|
|
27885
27992
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
27886
27993
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
27887
27994
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
27995
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
27996
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
27997
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27888
27998
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27889
27999
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27890
28000
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27969,6 +28079,9 @@
|
|
|
27969
28079
|
useDebugLogging(debugMode);
|
|
27970
28080
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
27971
28081
|
return {
|
|
28082
|
+
onLoadingStarted: onLoadingStarted,
|
|
28083
|
+
onLoadingProgress: onLoadingProgress,
|
|
28084
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
27972
28085
|
idCaptureProps: idCaptureProps,
|
|
27973
28086
|
faceLivenessProps: faceLivenessProps,
|
|
27974
28087
|
idCaptureModelsEnabled: idCaptureModelsEnabled,
|
|
@@ -28001,7 +28114,7 @@
|
|
|
28001
28114
|
verbiage: verbiage,
|
|
28002
28115
|
debugMode: debugMode
|
|
28003
28116
|
};
|
|
28004
|
-
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idDocumentType, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
28117
|
+
}, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idDocumentType, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
28005
28118
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
28006
28119
|
return {
|
|
28007
28120
|
documents: captureAdditionalDocuments,
|
|
@@ -28124,6 +28237,9 @@
|
|
|
28124
28237
|
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
28125
28238
|
_g = _a.skipSuccessScreen,
|
|
28126
28239
|
skipSuccessScreen = _g === void 0 ? false : _g,
|
|
28240
|
+
onLoadingStarted = _a.onLoadingStarted,
|
|
28241
|
+
onLoadingProgress = _a.onLoadingProgress,
|
|
28242
|
+
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28127
28243
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28128
28244
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28129
28245
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28166,6 +28282,9 @@
|
|
|
28166
28282
|
useDebugLogging(debugMode);
|
|
28167
28283
|
var faceLivenessProps = React.useMemo(function () {
|
|
28168
28284
|
return {
|
|
28285
|
+
onLoadingStarted: onLoadingStarted,
|
|
28286
|
+
onLoadingProgress: onLoadingProgress,
|
|
28287
|
+
onLoadingCompleted: onLoadingCompleted,
|
|
28169
28288
|
onExitCapture: onExitCapture,
|
|
28170
28289
|
onUserCancel: onUserCancel,
|
|
28171
28290
|
onExitAfterFailure: onExitAfterFailure,
|
|
@@ -28181,7 +28300,7 @@
|
|
|
28181
28300
|
verbiage: verbiage.faceLiveness,
|
|
28182
28301
|
debugMode: debugMode
|
|
28183
28302
|
};
|
|
28184
|
-
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
28303
|
+
}, [assets.faceLiveness, classNames.faceLiveness, colors.faceLiveness, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage.faceLiveness]);
|
|
28185
28304
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
28186
28305
|
return {
|
|
28187
28306
|
documents: captureAdditionalDocuments,
|