idmission-web-sdk 1.0.248 → 1.0.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +2 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -1
- package/dist/sdk2.cjs.development.js +198 -165
- 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 +198 -165
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +198 -165
- 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
|
@@ -107,6 +107,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
107
107
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
108
108
|
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
|
|
109
109
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
110
|
+
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
111
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
110
112
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
111
113
|
onBeforeDocumentUpload?: OnBeforeDocumentUpload;
|
|
112
114
|
/** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
|
|
@@ -104,6 +104,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
104
104
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
105
105
|
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
|
|
106
106
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
107
|
+
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
108
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
107
109
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
108
110
|
onBeforeDocumentUpload?: OnBeforeDocumentUpload;
|
|
109
111
|
/** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
|
|
@@ -86,6 +86,8 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
86
86
|
guideType?: IdCaptureGuideType;
|
|
87
87
|
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
|
|
88
88
|
portraitGuidesOnMobile?: boolean;
|
|
89
|
+
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
90
|
+
rotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
89
91
|
/** Object to allow documents that have been previously captured to be submitted. Valid keys: `idCardFront`, `idCardBack , `passport`.*/
|
|
90
92
|
precapturedDocuments?: CapturedDocuments;
|
|
91
93
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
@@ -122,6 +122,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
122
122
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
123
123
|
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
|
|
124
124
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
125
|
+
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
126
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
125
127
|
/** String containing a base64 image or document service ID pointing to an ID card front image that should be used to match the user's face against. Leave blank to disable face matching. */
|
|
126
128
|
idCardForFaceMatch?: string;
|
|
127
129
|
/** Name of an included theme or object containing theme properties. **/
|
|
@@ -35,9 +35,10 @@ export type IdCaptureLoadingOverlayProps = {
|
|
|
35
35
|
onDismissed?: () => void;
|
|
36
36
|
onUserCancel?: () => void;
|
|
37
37
|
instructions?: ReactNode;
|
|
38
|
+
rotateImage?: boolean;
|
|
38
39
|
assets?: IdCaptureLoadingOverlayAssets;
|
|
39
40
|
classNames?: IdCaptureLoadingOverlayClassNames;
|
|
40
41
|
colors?: IdCaptureLoadingOverlayColors;
|
|
41
42
|
verbiage?: IdCaptureLoadingOverlayVerbiage;
|
|
42
43
|
};
|
|
43
|
-
export declare const IdCaptureLoadingOverlay: ({ onDismissed, onUserCancel, instructions, assets, classNames, colors, verbiage: rawVerbiage, }: IdCaptureLoadingOverlayProps) => ReactElement;
|
|
44
|
+
export declare const IdCaptureLoadingOverlay: ({ onDismissed, onUserCancel, instructions, rotateImage, assets, classNames, colors, verbiage: rawVerbiage, }: IdCaptureLoadingOverlayProps) => ReactElement;
|
|
@@ -64,10 +64,11 @@ export type IdCaptureWizardProps = {
|
|
|
64
64
|
releaseCameraAccessOnExit?: boolean;
|
|
65
65
|
guideType?: IdCaptureGuideType;
|
|
66
66
|
portraitGuidesOnMobile?: boolean;
|
|
67
|
+
rotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
67
68
|
assets?: IdCaptureWizardAssets;
|
|
68
69
|
classNames?: IdCaptureWizardClassNames;
|
|
69
70
|
colors?: IdCaptureWizardColors;
|
|
70
71
|
verbiage?: IdCaptureWizardVerbiage;
|
|
71
72
|
debugMode?: boolean;
|
|
72
73
|
};
|
|
73
|
-
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, precapturedDocuments, captureRequirement, autoCaptureEnabled, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, barcodeScanningEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
74
|
+
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, precapturedDocuments, captureRequirement, autoCaptureEnabled, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, barcodeScanningEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
@@ -49,10 +49,11 @@ export type VideoIdWizardProps = {
|
|
|
49
49
|
skipShowIdCardBack?: boolean | (() => Promise<boolean>);
|
|
50
50
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
51
51
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
52
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
52
53
|
assets?: VideoIdWizardAssets;
|
|
53
54
|
classNames?: VideoIdWizardClassNames;
|
|
54
55
|
colors?: VideoIdWizardColors;
|
|
55
56
|
verbiage?: VideoIdWizardVerbiage;
|
|
56
57
|
debugMode?: boolean;
|
|
57
58
|
};
|
|
58
|
-
export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, idCaptureProps, faceLivenessProps, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureGuideType, idCapturePortraitGuidesOnMobile, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
|
|
59
|
+
export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, idCaptureProps, faceLivenessProps, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
|
|
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
51
51
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
52
52
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
53
53
|
|
|
54
|
-
var webSdkVersion = '1.0.
|
|
54
|
+
var webSdkVersion = '1.0.250';
|
|
55
55
|
|
|
56
56
|
function getPlatform() {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -10483,26 +10483,29 @@ var templateObject_1$t;
|
|
|
10483
10483
|
var ContinuityCameraCheckboxContainer = styled__default['default'].div(templateObject_1$s || (templateObject_1$s = tslib.__makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
|
|
10484
10484
|
var ContinuityCameraCheckbox = styled__default['default'].input(templateObject_2$i || (templateObject_2$i = tslib.__makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
10485
10485
|
var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_a) {
|
|
10486
|
+
var _b, _c, _d, _e;
|
|
10486
10487
|
var onDismissed = _a.onDismissed,
|
|
10487
10488
|
onUserCancel = _a.onUserCancel,
|
|
10488
10489
|
instructions = _a.instructions,
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10490
|
+
_f = _a.rotateImage,
|
|
10491
|
+
rotateImage = _f === void 0 ? false : _f,
|
|
10492
|
+
_g = _a.assets,
|
|
10493
|
+
assets = _g === void 0 ? {} : _g,
|
|
10494
|
+
_h = _a.classNames,
|
|
10495
|
+
classNames = _h === void 0 ? {} : _h,
|
|
10496
|
+
_j = _a.colors,
|
|
10497
|
+
colors = _j === void 0 ? {} : _j,
|
|
10498
|
+
_k = _a.verbiage,
|
|
10499
|
+
rawVerbiage = _k === void 0 ? {} : _k;
|
|
10497
10500
|
var modelsReady = React.useContext(IdCaptureModelsContext).ready;
|
|
10498
|
-
var
|
|
10499
|
-
cameraReady =
|
|
10500
|
-
cameraAccessDenied =
|
|
10501
|
-
iphoneContinuityCameraAvailable =
|
|
10502
|
-
setIphoneContinuityCameraAllowed =
|
|
10503
|
-
var
|
|
10504
|
-
dismissed =
|
|
10505
|
-
setDismissed =
|
|
10501
|
+
var _l = React.useContext(CameraStateContext),
|
|
10502
|
+
cameraReady = _l.cameraReady,
|
|
10503
|
+
cameraAccessDenied = _l.cameraAccessDenied,
|
|
10504
|
+
iphoneContinuityCameraAvailable = _l.iphoneContinuityCameraAvailable,
|
|
10505
|
+
setIphoneContinuityCameraAllowed = _l.setIphoneContinuityCameraAllowed;
|
|
10506
|
+
var _m = React.useState(false),
|
|
10507
|
+
dismissed = _m[0],
|
|
10508
|
+
setDismissed = _m[1];
|
|
10506
10509
|
assets.instructionImageUrl || (assets.instructionImageUrl = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png"));
|
|
10507
10510
|
var verbiage = useTranslations(rawVerbiage, {
|
|
10508
10511
|
headingText: 'Use your device camera to capture your ID',
|
|
@@ -10522,6 +10525,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_a) {
|
|
|
10522
10525
|
clearTimeout(t);
|
|
10523
10526
|
};
|
|
10524
10527
|
}, [cameraReady, modelsReady]);
|
|
10528
|
+
var imageRef = React.useRef(null);
|
|
10525
10529
|
if (dismissed) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
10526
10530
|
if (cameraAccessDenied) {
|
|
10527
10531
|
return /*#__PURE__*/React__default['default'].createElement(CameraAccessDeniedOverlay, {
|
|
@@ -10531,6 +10535,15 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_a) {
|
|
|
10531
10535
|
verbiage: rawVerbiage.cameraAccessDenied
|
|
10532
10536
|
});
|
|
10533
10537
|
}
|
|
10538
|
+
var imageStyle = {};
|
|
10539
|
+
if (rotateImage) {
|
|
10540
|
+
var naturalWidth = (_c = (_b = imageRef.current) === null || _b === void 0 ? void 0 : _b.naturalWidth) !== null && _c !== void 0 ? _c : 0;
|
|
10541
|
+
var naturalHeight = (_e = (_d = imageRef.current) === null || _d === void 0 ? void 0 : _d.naturalHeight) !== null && _e !== void 0 ? _e : 0;
|
|
10542
|
+
var scale = naturalWidth > naturalHeight ? naturalHeight / naturalWidth : 1;
|
|
10543
|
+
imageStyle = {
|
|
10544
|
+
transform: "rotate(-90deg) scale(".concat(scale, ")")
|
|
10545
|
+
};
|
|
10546
|
+
}
|
|
10534
10547
|
return /*#__PURE__*/React__default['default'].createElement(OverlayContainer, {
|
|
10535
10548
|
className: classNames.container
|
|
10536
10549
|
}, /*#__PURE__*/React__default['default'].createElement(OverlayInner, {
|
|
@@ -10546,9 +10559,11 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_a) {
|
|
|
10546
10559
|
pointerEvents: 'none'
|
|
10547
10560
|
}
|
|
10548
10561
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
10562
|
+
ref: imageRef,
|
|
10549
10563
|
alt: verbiage.headingText,
|
|
10550
10564
|
src: assets.instructionImageUrl,
|
|
10551
|
-
className: classNames.image
|
|
10565
|
+
className: classNames.image,
|
|
10566
|
+
style: imageStyle
|
|
10552
10567
|
})), instructions, /*#__PURE__*/React__default['default'].createElement(ContinuityCameraCheckboxContainer, {
|
|
10553
10568
|
className: classNames.continuityCameraCheckboxContainer
|
|
10554
10569
|
}, iphoneContinuityCameraAvailable && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ContinuityCameraCheckbox, {
|
|
@@ -11488,30 +11503,32 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
11488
11503
|
guideType = _5 === void 0 ? 'fit' : _5,
|
|
11489
11504
|
_6 = _a.portraitGuidesOnMobile,
|
|
11490
11505
|
portraitGuidesOnMobile = _6 === void 0 ? false : _6,
|
|
11491
|
-
_7 = _a.
|
|
11492
|
-
|
|
11493
|
-
_8 = _a.
|
|
11494
|
-
|
|
11495
|
-
_9 = _a.
|
|
11496
|
-
|
|
11497
|
-
_10 = _a.
|
|
11498
|
-
|
|
11499
|
-
_11 = _a.
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11506
|
+
_7 = _a.rotateLoadingOverlayImageWhenPortrait,
|
|
11507
|
+
rotateLoadingOverlayImageWhenPortrait = _7 === void 0 ? true : _7,
|
|
11508
|
+
_8 = _a.assets,
|
|
11509
|
+
assets = _8 === void 0 ? {} : _8,
|
|
11510
|
+
_9 = _a.classNames,
|
|
11511
|
+
classNames = _9 === void 0 ? {} : _9,
|
|
11512
|
+
_10 = _a.colors,
|
|
11513
|
+
colors = _10 === void 0 ? {} : _10,
|
|
11514
|
+
_11 = _a.verbiage,
|
|
11515
|
+
verbiage = _11 === void 0 ? {} : _11,
|
|
11516
|
+
_12 = _a.debugMode,
|
|
11517
|
+
debugMode = _12 === void 0 ? false : _12;
|
|
11518
|
+
var _13 = useIdCaptureState(),
|
|
11519
|
+
state = _13[0],
|
|
11520
|
+
dispatch = _13[1];
|
|
11504
11521
|
var releaseCameraAccess = React.useContext(CameraStateContext).releaseCameraAccess;
|
|
11505
|
-
var
|
|
11506
|
-
overlayDismissed =
|
|
11507
|
-
setOverlayDismissed =
|
|
11508
|
-
var
|
|
11509
|
-
submissionStatus =
|
|
11510
|
-
setIdFrontImage =
|
|
11511
|
-
setIdBackImage =
|
|
11512
|
-
setPassportImage =
|
|
11513
|
-
logIdFrontCaptureAttempt =
|
|
11514
|
-
logIdBackCaptureAttempt =
|
|
11522
|
+
var _14 = React.useState(false),
|
|
11523
|
+
overlayDismissed = _14[0],
|
|
11524
|
+
setOverlayDismissed = _14[1];
|
|
11525
|
+
var _15 = React.useContext(SubmissionContext),
|
|
11526
|
+
submissionStatus = _15.submissionStatus,
|
|
11527
|
+
setIdFrontImage = _15.setIdFrontImage,
|
|
11528
|
+
setIdBackImage = _15.setIdBackImage,
|
|
11529
|
+
setPassportImage = _15.setPassportImage,
|
|
11530
|
+
logIdFrontCaptureAttempt = _15.logIdFrontCaptureAttempt,
|
|
11531
|
+
logIdBackCaptureAttempt = _15.logIdBackCaptureAttempt;
|
|
11515
11532
|
var modelsError = React.useContext(IdCaptureModelsContext).error;
|
|
11516
11533
|
var operationStartedAt = React.useRef();
|
|
11517
11534
|
React.useEffect(function () {
|
|
@@ -11576,9 +11593,9 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
11576
11593
|
type: 'resetWizard'
|
|
11577
11594
|
});
|
|
11578
11595
|
}, [dispatch]);
|
|
11579
|
-
var
|
|
11580
|
-
attempt =
|
|
11581
|
-
setAttempt =
|
|
11596
|
+
var _16 = React.useState(0),
|
|
11597
|
+
attempt = _16[0],
|
|
11598
|
+
setAttempt = _16[1];
|
|
11582
11599
|
var onExit = React.useCallback(function () {
|
|
11583
11600
|
setOverlayDismissed(false);
|
|
11584
11601
|
setAttempt(function (n) {
|
|
@@ -11621,12 +11638,12 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
11621
11638
|
})
|
|
11622
11639
|
};
|
|
11623
11640
|
var theme = styled.useTheme();
|
|
11624
|
-
var
|
|
11625
|
-
guideRectX =
|
|
11626
|
-
guideRectY =
|
|
11627
|
-
guideRectWidth =
|
|
11628
|
-
guideRectHeight =
|
|
11629
|
-
imageUrl =
|
|
11641
|
+
var _17 = useIdCaptureState()[0],
|
|
11642
|
+
guideRectX = _17.guideRectX,
|
|
11643
|
+
guideRectY = _17.guideRectY,
|
|
11644
|
+
guideRectWidth = _17.guideRectWidth,
|
|
11645
|
+
guideRectHeight = _17.guideRectHeight,
|
|
11646
|
+
imageUrl = _17.imageUrl;
|
|
11630
11647
|
var idCaptureAssets = assets[state.requestedDocumentType];
|
|
11631
11648
|
var idCaptureVerbiage = idCaptureVerbiages[state.requestedDocumentType];
|
|
11632
11649
|
React.useEffect(function () {
|
|
@@ -11756,7 +11773,8 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
11756
11773
|
onUserCancel: onUserCancel,
|
|
11757
11774
|
onDismissed: function onDismissed() {
|
|
11758
11775
|
setOverlayDismissed(true);
|
|
11759
|
-
}
|
|
11776
|
+
},
|
|
11777
|
+
rotateImage: rotateLoadingOverlayImageWhenPortrait && portraitGuidesOnMobile && window.innerWidth < window.innerHeight
|
|
11760
11778
|
})), state.captureState === 'complete' && showSuccessScreen && ( /*#__PURE__*/React__default['default'].createElement(IdCaptureSuccess, {
|
|
11761
11779
|
capturedDocuments: state.capturedDocuments,
|
|
11762
11780
|
barcodeResult: state.barcodeResult,
|
|
@@ -14527,25 +14545,27 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14527
14545
|
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
14528
14546
|
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
14529
14547
|
idCapturePortraitGuidesOnMobile = _m === void 0 ? false : _m,
|
|
14530
|
-
_o = _a.
|
|
14531
|
-
|
|
14532
|
-
_p = _a.
|
|
14533
|
-
|
|
14534
|
-
_q = _a.
|
|
14535
|
-
|
|
14536
|
-
_r = _a.
|
|
14537
|
-
|
|
14538
|
-
_s = _a.
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14548
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14549
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
14550
|
+
_p = _a.assets,
|
|
14551
|
+
assets = _p === void 0 ? {} : _p,
|
|
14552
|
+
_q = _a.classNames,
|
|
14553
|
+
classNames = _q === void 0 ? {} : _q,
|
|
14554
|
+
_r = _a.colors,
|
|
14555
|
+
colors = _r === void 0 ? {} : _r,
|
|
14556
|
+
_s = _a.verbiage,
|
|
14557
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
14558
|
+
_t = _a.debugMode,
|
|
14559
|
+
debugMode = _t === void 0 ? false : _t;
|
|
14560
|
+
var _u = React.useContext(SubmissionContext),
|
|
14561
|
+
submissionStatus = _u.submissionStatus,
|
|
14562
|
+
idCaptureVideoUrl = _u.idCaptureVideoUrl,
|
|
14563
|
+
setIdCaptureVideoUrl = _u.setIdCaptureVideoUrl,
|
|
14564
|
+
setIdCaptureVideoIdFrontImage = _u.setIdCaptureVideoIdFrontImage,
|
|
14565
|
+
setIdCaptureVideoIdBackImage = _u.setIdCaptureVideoIdBackImage;
|
|
14566
|
+
var _v = React.useState('CAPTURING_ID'),
|
|
14567
|
+
captureState = _v[0],
|
|
14568
|
+
setCaptureState = _v[1];
|
|
14549
14569
|
React.useEffect(function () {
|
|
14550
14570
|
if (skipIdCapture && captureState === 'CAPTURING_ID') setCaptureState('CHECKING_LIVENESS');
|
|
14551
14571
|
}, [captureState, skipIdCapture]);
|
|
@@ -14575,9 +14595,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14575
14595
|
var onVideoCaptureFaceNotDetected = React.useCallback(function () {
|
|
14576
14596
|
setCaptureState('CHECKING_LIVENESS');
|
|
14577
14597
|
}, []);
|
|
14578
|
-
var
|
|
14579
|
-
attempt =
|
|
14580
|
-
setAttempt =
|
|
14598
|
+
var _w = React.useState(0),
|
|
14599
|
+
attempt = _w[0],
|
|
14600
|
+
setAttempt = _w[1];
|
|
14581
14601
|
var userSuppliedExitAfterFailure = onExitAfterFailure !== null && onExitAfterFailure !== void 0 ? onExitAfterFailure : faceLivenessProps.onExitAfterFailure;
|
|
14582
14602
|
var onFaceCaptureExitAfterFailure = React.useCallback(function (resp, req) {
|
|
14583
14603
|
userSuppliedExitAfterFailure === null || userSuppliedExitAfterFailure === void 0 ? void 0 : userSuppliedExitAfterFailure(resp, req);
|
|
@@ -14630,6 +14650,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14630
14650
|
releaseCameraAccessOnExit: false,
|
|
14631
14651
|
guideType: idCaptureGuideType,
|
|
14632
14652
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
14653
|
+
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14633
14654
|
debugMode: debugMode
|
|
14634
14655
|
}))));
|
|
14635
14656
|
case 'CHECKING_LIVENESS':
|
|
@@ -15113,6 +15134,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15113
15134
|
guideType = _k === void 0 ? 'fit' : _k,
|
|
15114
15135
|
_l = _a.portraitGuidesOnMobile,
|
|
15115
15136
|
portraitGuidesOnMobile = _l === void 0 ? false : _l,
|
|
15137
|
+
_m = _a.rotateLoadingOverlayImageWhenPortrait,
|
|
15138
|
+
rotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
|
|
15116
15139
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
15117
15140
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15118
15141
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15124,28 +15147,28 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15124
15147
|
onDenied = _a.onDenied,
|
|
15125
15148
|
onExitCapture = _a.onExitCapture,
|
|
15126
15149
|
onUserCancel = _a.onUserCancel,
|
|
15127
|
-
|
|
15128
|
-
theme =
|
|
15129
|
-
|
|
15130
|
-
assets =
|
|
15131
|
-
|
|
15132
|
-
classNames =
|
|
15133
|
-
|
|
15134
|
-
colors =
|
|
15135
|
-
|
|
15136
|
-
verbiage =
|
|
15137
|
-
|
|
15138
|
-
captureSignature =
|
|
15139
|
-
|
|
15140
|
-
captureSignatureVideo =
|
|
15141
|
-
|
|
15142
|
-
captureAdditionalDocuments =
|
|
15143
|
-
|
|
15144
|
-
geolocationEnabled =
|
|
15145
|
-
|
|
15146
|
-
geolocationRequired =
|
|
15147
|
-
|
|
15148
|
-
debugMode =
|
|
15150
|
+
_o = _a.theme,
|
|
15151
|
+
theme = _o === void 0 ? 'default' : _o,
|
|
15152
|
+
_p = _a.assets,
|
|
15153
|
+
assets = _p === void 0 ? {} : _p,
|
|
15154
|
+
_q = _a.classNames,
|
|
15155
|
+
classNames = _q === void 0 ? {} : _q,
|
|
15156
|
+
_r = _a.colors,
|
|
15157
|
+
colors = _r === void 0 ? {} : _r,
|
|
15158
|
+
_s = _a.verbiage,
|
|
15159
|
+
verbiage = _s === void 0 ? {} : _s,
|
|
15160
|
+
_t = _a.captureSignature,
|
|
15161
|
+
captureSignature = _t === void 0 ? false : _t,
|
|
15162
|
+
_u = _a.captureSignatureVideo,
|
|
15163
|
+
captureSignatureVideo = _u === void 0 ? false : _u,
|
|
15164
|
+
_v = _a.captureAdditionalDocuments,
|
|
15165
|
+
captureAdditionalDocuments = _v === void 0 ? [] : _v,
|
|
15166
|
+
_w = _a.geolocationEnabled,
|
|
15167
|
+
geolocationEnabled = _w === void 0 ? true : _w,
|
|
15168
|
+
_x = _a.geolocationRequired,
|
|
15169
|
+
geolocationRequired = _x === void 0 ? false : _x,
|
|
15170
|
+
_y = _a.debugMode,
|
|
15171
|
+
debugMode = _y === void 0 ? false : _y;
|
|
15149
15172
|
useLanguage(lang);
|
|
15150
15173
|
var idCaptureProps = React.useMemo(function () {
|
|
15151
15174
|
return {
|
|
@@ -15164,13 +15187,14 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15164
15187
|
instructions: instructions,
|
|
15165
15188
|
guideType: guideType,
|
|
15166
15189
|
portraitGuidesOnMobile: portraitGuidesOnMobile,
|
|
15190
|
+
rotateLoadingOverlayImageWhenPortrait: rotateLoadingOverlayImageWhenPortrait,
|
|
15167
15191
|
assets: assets,
|
|
15168
15192
|
classNames: classNames,
|
|
15169
15193
|
colors: colors,
|
|
15170
15194
|
verbiage: verbiage,
|
|
15171
15195
|
debugMode: debugMode
|
|
15172
15196
|
};
|
|
15173
|
-
}, [onExitCapture, onUserCancel, precapturedDocuments, idCaptureRequirement, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, instructions, guideType, portraitGuidesOnMobile, assets, classNames, colors, verbiage, debugMode]);
|
|
15197
|
+
}, [onExitCapture, onUserCancel, precapturedDocuments, idCaptureRequirement, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, assets, classNames, colors, verbiage, debugMode]);
|
|
15174
15198
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
15175
15199
|
return {
|
|
15176
15200
|
documents: captureAdditionalDocuments,
|
|
@@ -15393,6 +15417,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15393
15417
|
idCaptureGuideType = _m === void 0 ? 'fit' : _m,
|
|
15394
15418
|
_o = _a.idCapturePortraitGuidesOnMobile,
|
|
15395
15419
|
idCapturePortraitGuidesOnMobile = _o === void 0 ? false : _o,
|
|
15420
|
+
_p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15421
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
15396
15422
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15397
15423
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
15398
15424
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15406,28 +15432,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15406
15432
|
onExitCapture = _a.onExitCapture,
|
|
15407
15433
|
onExitAfterFailure = _a.onExitAfterFailure,
|
|
15408
15434
|
onUserCancel = _a.onUserCancel,
|
|
15409
|
-
|
|
15410
|
-
captureSignature =
|
|
15411
|
-
|
|
15412
|
-
captureSignatureVideo =
|
|
15413
|
-
|
|
15414
|
-
captureAdditionalDocuments =
|
|
15415
|
-
|
|
15416
|
-
theme =
|
|
15417
|
-
|
|
15418
|
-
assets =
|
|
15419
|
-
|
|
15420
|
-
classNames =
|
|
15421
|
-
|
|
15422
|
-
colors =
|
|
15423
|
-
|
|
15424
|
-
verbiage =
|
|
15425
|
-
|
|
15426
|
-
geolocationEnabled =
|
|
15427
|
-
|
|
15428
|
-
geolocationRequired =
|
|
15429
|
-
|
|
15430
|
-
debugMode =
|
|
15435
|
+
_q = _a.captureSignature,
|
|
15436
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
15437
|
+
_r = _a.captureSignatureVideo,
|
|
15438
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
15439
|
+
_s = _a.captureAdditionalDocuments,
|
|
15440
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
15441
|
+
_t = _a.theme,
|
|
15442
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
15443
|
+
_u = _a.assets,
|
|
15444
|
+
assets = _u === void 0 ? {} : _u,
|
|
15445
|
+
_v = _a.classNames,
|
|
15446
|
+
classNames = _v === void 0 ? {} : _v,
|
|
15447
|
+
_w = _a.colors,
|
|
15448
|
+
colors = _w === void 0 ? {} : _w,
|
|
15449
|
+
_x = _a.verbiage,
|
|
15450
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
15451
|
+
_y = _a.geolocationEnabled,
|
|
15452
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
15453
|
+
_z = _a.geolocationRequired,
|
|
15454
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
15455
|
+
_0 = _a.debugMode,
|
|
15456
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
15431
15457
|
useLanguage(lang);
|
|
15432
15458
|
var idCaptureProps = React.useMemo(function () {
|
|
15433
15459
|
return {
|
|
@@ -15448,10 +15474,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
15448
15474
|
instructions: idCaptureInstructions,
|
|
15449
15475
|
guideType: idCaptureGuideType,
|
|
15450
15476
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
15477
|
+
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15451
15478
|
skipSuccessScreen: skipSuccessScreen,
|
|
15452
15479
|
debugMode: debugMode
|
|
15453
15480
|
};
|
|
15454
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, debugMode, idAutoCaptureEnabled, idCaptureGuideType, idCaptureInstructions, idCapturePortraitGuidesOnMobile, idCaptureRequirement, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, onExitCapture, onUserCancel, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold, precapturedDocuments, skipSuccessScreen, verbiage.idCapture]);
|
|
15481
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, debugMode, idAutoCaptureEnabled, idCaptureGuideType, idCaptureInstructions, idCapturePortraitGuidesOnMobile, idCaptureRequirement, idCaptureRotateLoadingOverlayImageWhenPortrait, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, onExitCapture, onUserCancel, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold, precapturedDocuments, skipSuccessScreen, verbiage.idCapture]);
|
|
15455
15482
|
var faceLivenessProps = React.useMemo(function () {
|
|
15456
15483
|
return {
|
|
15457
15484
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
@@ -15602,6 +15629,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15602
15629
|
idCaptureGuideType = _m === void 0 ? 'fit' : _m,
|
|
15603
15630
|
_o = _a.idCapturePortraitGuidesOnMobile,
|
|
15604
15631
|
idCapturePortraitGuidesOnMobile = _o === void 0 ? false : _o,
|
|
15632
|
+
_p = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15633
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
15605
15634
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15606
15635
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
15607
15636
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -15614,28 +15643,28 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15614
15643
|
onExitCapture = _a.onExitCapture,
|
|
15615
15644
|
onExitAfterFailure = _a.onExitAfterFailure,
|
|
15616
15645
|
onUserCancel = _a.onUserCancel,
|
|
15617
|
-
|
|
15618
|
-
captureSignature =
|
|
15619
|
-
|
|
15620
|
-
captureSignatureVideo =
|
|
15621
|
-
|
|
15622
|
-
captureAdditionalDocuments =
|
|
15623
|
-
|
|
15624
|
-
theme =
|
|
15625
|
-
|
|
15626
|
-
assets =
|
|
15627
|
-
|
|
15628
|
-
classNames =
|
|
15629
|
-
|
|
15630
|
-
colors =
|
|
15631
|
-
|
|
15632
|
-
verbiage =
|
|
15633
|
-
|
|
15634
|
-
geolocationEnabled =
|
|
15635
|
-
|
|
15636
|
-
geolocationRequired =
|
|
15637
|
-
|
|
15638
|
-
debugMode =
|
|
15646
|
+
_q = _a.captureSignature,
|
|
15647
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
15648
|
+
_r = _a.captureSignatureVideo,
|
|
15649
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
15650
|
+
_s = _a.captureAdditionalDocuments,
|
|
15651
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
15652
|
+
_t = _a.theme,
|
|
15653
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
15654
|
+
_u = _a.assets,
|
|
15655
|
+
assets = _u === void 0 ? {} : _u,
|
|
15656
|
+
_v = _a.classNames,
|
|
15657
|
+
classNames = _v === void 0 ? {} : _v,
|
|
15658
|
+
_w = _a.colors,
|
|
15659
|
+
colors = _w === void 0 ? {} : _w,
|
|
15660
|
+
_x = _a.verbiage,
|
|
15661
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
15662
|
+
_y = _a.geolocationEnabled,
|
|
15663
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
15664
|
+
_z = _a.geolocationRequired,
|
|
15665
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
15666
|
+
_0 = _a.debugMode,
|
|
15667
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
15639
15668
|
useLanguage(lang);
|
|
15640
15669
|
var idCaptureProps = React.useMemo(function () {
|
|
15641
15670
|
return {
|
|
@@ -15653,12 +15682,13 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15653
15682
|
instructions: idCaptureInstructions,
|
|
15654
15683
|
guideType: idCaptureGuideType,
|
|
15655
15684
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
15685
|
+
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
15656
15686
|
onExitCapture: onExitCapture,
|
|
15657
15687
|
onUserCancel: onUserCancel,
|
|
15658
15688
|
skipSuccessScreen: skipSuccessScreen,
|
|
15659
15689
|
debugMode: debugMode
|
|
15660
15690
|
};
|
|
15661
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, debugMode, idAutoCaptureEnabled, idCaptureGuideType, idCaptureInstructions, idCapturePortraitGuidesOnMobile, idCaptureRequirement, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, onExitCapture, onUserCancel, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, verbiage.idCapture]);
|
|
15691
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, debugMode, idAutoCaptureEnabled, idCaptureGuideType, idCaptureInstructions, idCapturePortraitGuidesOnMobile, idCaptureRequirement, idCaptureRotateLoadingOverlayImageWhenPortrait, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, onExitCapture, onUserCancel, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, verbiage.idCapture]);
|
|
15662
15692
|
var faceLivenessProps = React.useMemo(function () {
|
|
15663
15693
|
return {
|
|
15664
15694
|
onExitCapture: onExitCapture,
|
|
@@ -16915,29 +16945,31 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16915
16945
|
idCaptureGuideType = _o === void 0 ? 'fit' : _o,
|
|
16916
16946
|
_p = _a.idCapturePortraitGuidesOnMobile,
|
|
16917
16947
|
idCapturePortraitGuidesOnMobile = _p === void 0 ? false : _p,
|
|
16948
|
+
_q = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
16949
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _q === void 0 ? true : _q,
|
|
16918
16950
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
16919
|
-
|
|
16920
|
-
theme =
|
|
16921
|
-
|
|
16922
|
-
assets =
|
|
16923
|
-
|
|
16924
|
-
classNames =
|
|
16925
|
-
|
|
16926
|
-
colors =
|
|
16927
|
-
|
|
16928
|
-
verbiage =
|
|
16929
|
-
|
|
16930
|
-
captureSignature =
|
|
16931
|
-
|
|
16932
|
-
captureSignatureVideo =
|
|
16933
|
-
|
|
16934
|
-
captureAdditionalDocuments =
|
|
16935
|
-
|
|
16936
|
-
geolocationEnabled =
|
|
16937
|
-
|
|
16938
|
-
geolocationRequired =
|
|
16939
|
-
|
|
16940
|
-
debugMode =
|
|
16951
|
+
_r = _a.theme,
|
|
16952
|
+
theme = _r === void 0 ? 'default' : _r,
|
|
16953
|
+
_s = _a.assets,
|
|
16954
|
+
assets = _s === void 0 ? {} : _s,
|
|
16955
|
+
_t = _a.classNames,
|
|
16956
|
+
classNames = _t === void 0 ? {} : _t,
|
|
16957
|
+
_u = _a.colors,
|
|
16958
|
+
colors = _u === void 0 ? {} : _u,
|
|
16959
|
+
_v = _a.verbiage,
|
|
16960
|
+
verbiage = _v === void 0 ? {} : _v,
|
|
16961
|
+
_w = _a.captureSignature,
|
|
16962
|
+
captureSignature = _w === void 0 ? false : _w,
|
|
16963
|
+
_x = _a.captureSignatureVideo,
|
|
16964
|
+
captureSignatureVideo = _x === void 0 ? false : _x,
|
|
16965
|
+
_y = _a.captureAdditionalDocuments,
|
|
16966
|
+
captureAdditionalDocuments = _y === void 0 ? [] : _y,
|
|
16967
|
+
_z = _a.geolocationEnabled,
|
|
16968
|
+
geolocationEnabled = _z === void 0 ? true : _z,
|
|
16969
|
+
_0 = _a.geolocationRequired,
|
|
16970
|
+
geolocationRequired = _0 === void 0 ? false : _0,
|
|
16971
|
+
_1 = _a.debugMode,
|
|
16972
|
+
debugMode = _1 === void 0 ? false : _1;
|
|
16941
16973
|
useLanguage(lang);
|
|
16942
16974
|
var videoIdCaptureProps = React.useMemo(function () {
|
|
16943
16975
|
return {
|
|
@@ -16959,13 +16991,14 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16959
16991
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
16960
16992
|
idCaptureGuideType: idCaptureGuideType,
|
|
16961
16993
|
idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
16994
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
16962
16995
|
assets: assets,
|
|
16963
16996
|
classNames: classNames,
|
|
16964
16997
|
colors: colors,
|
|
16965
16998
|
verbiage: verbiage,
|
|
16966
16999
|
debugMode: debugMode
|
|
16967
17000
|
};
|
|
16968
|
-
}, [assets, classNames, colors, debugMode, faceLivenessProps, goodIdCardBackFramesThreshold, goodIdCardFrontFramesThreshold, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureProps, idCardBackDetectionThreshold, idCardBackFocusThreshold, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, onExitAfterFailure, onExitCapture, onUserCancel, readTextPrompt, readTextTimeoutDurationMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, verbiage]);
|
|
17001
|
+
}, [assets, classNames, colors, debugMode, faceLivenessProps, goodIdCardBackFramesThreshold, goodIdCardFrontFramesThreshold, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureProps, idCaptureRotateLoadingOverlayImageWhenPortrait, idCardBackDetectionThreshold, idCardBackFocusThreshold, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, onExitAfterFailure, onExitCapture, onUserCancel, readTextPrompt, readTextTimeoutDurationMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, verbiage]);
|
|
16969
17002
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
16970
17003
|
return {
|
|
16971
17004
|
documents: captureAdditionalDocuments,
|