idmission-web-sdk 1.0.87 → 1.0.89
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/id_capture/DocumentCaptureGuideOverlay.d.ts +3 -1
- package/dist/components/id_capture/FlipIdPrompt.d.ts +5 -1
- package/dist/sdk2.cjs.development.js +88 -90
- 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 +88 -90
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +88 -90
- 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/stories/Components/DocumentCaptureGuideOverlay/FlipIdPrompt.stories.d.ts +10 -0
- package/dist/stories/Components/DocumentCaptureGuideOverlay/LicenseFront.stories.d.ts +5 -0
- package/dist/themes/index.d.ts +5 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -829,6 +829,7 @@ export declare const GuideText: import("styled-components").IStyledComponent<"we
|
|
|
829
829
|
export declare const GuideImage: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
830
830
|
$width?: number | undefined;
|
|
831
831
|
$height?: number | undefined;
|
|
832
|
+
$padding: number;
|
|
832
833
|
}>>;
|
|
833
834
|
export type DocumentCaptureGuideOverlayClassNames = {
|
|
834
835
|
container?: string;
|
|
@@ -849,6 +850,7 @@ export type DocumentCaptureGuideOverlayProps = {
|
|
|
849
850
|
width?: number;
|
|
850
851
|
height?: number;
|
|
851
852
|
padding?: number;
|
|
853
|
+
imagePadding?: number;
|
|
852
854
|
borderWidth?: number;
|
|
853
855
|
borderColor?: string;
|
|
854
856
|
isMirrored?: boolean;
|
|
@@ -857,4 +859,4 @@ export type DocumentCaptureGuideOverlayProps = {
|
|
|
857
859
|
landscapeGuidesImageUrl?: string;
|
|
858
860
|
onClick?: () => void;
|
|
859
861
|
};
|
|
860
|
-
export declare const DocumentCaptureGuideOverlay: ({ classNames, width, height, padding, borderWidth, borderColor, isMirrored, instruction, portraitGuidesImageUrl, landscapeGuidesImageUrl, onClick, }: DocumentCaptureGuideOverlayProps) => ReactElement;
|
|
862
|
+
export declare const DocumentCaptureGuideOverlay: ({ classNames, width, height, padding: userSuppliedPadding, imagePadding: userSuppliedImagePadding, borderWidth, borderColor, isMirrored, instruction, portraitGuidesImageUrl, landscapeGuidesImageUrl, onClick, }: DocumentCaptureGuideOverlayProps) => ReactElement;
|
|
@@ -23,8 +23,12 @@ export type FlipIdPromptVerbiage = {
|
|
|
23
23
|
instructionText?: CustomerSuppliedVerbiage;
|
|
24
24
|
};
|
|
25
25
|
export type FlipIdPromptProps = {
|
|
26
|
+
padding?: number;
|
|
27
|
+
imagePadding?: number;
|
|
28
|
+
borderWidth?: number;
|
|
29
|
+
borderColor?: string;
|
|
26
30
|
assets?: FlipIdPromptAssets;
|
|
27
31
|
classNames?: FlipIdPromptClassNames;
|
|
28
32
|
verbiage?: FlipIdPromptVerbiage;
|
|
29
33
|
};
|
|
30
|
-
export declare const FlipIdPrompt: ({ assets, classNames, verbiage, }: FlipIdPromptProps) => ReactElement;
|
|
34
|
+
export declare const FlipIdPrompt: ({ padding: userSuppliedPadding, imagePadding: userSuppliedImagePadding, borderWidth, borderColor, assets, classNames, verbiage, }: FlipIdPromptProps) => ReactElement;
|
|
@@ -46,7 +46,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
46
46
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
47
47
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
48
48
|
|
|
49
|
-
var webSdkVersion = '1.0.
|
|
49
|
+
var webSdkVersion = '1.0.89';
|
|
50
50
|
|
|
51
51
|
function getPlatform() {
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1357,44 +1357,46 @@ var GuideRegion = styled__default['default'].div(templateObject_3$c || (template
|
|
|
1357
1357
|
var GuideCenterRegion = styled__default['default'].div(templateObject_4$8 || (templateObject_4$8 = tslib.__makeTemplateObject(["\n ", "\n box-sizing: border-box;\n"], ["\n ", "\n box-sizing: border-box;\n"])), function (props) {
|
|
1358
1358
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
1359
1359
|
});
|
|
1360
|
-
var GuideCenterBorder = styled__default['default'].div(templateObject_5$3 || (templateObject_5$3 = tslib.__makeTemplateObject(["\n position: relative;\n border: ", ";\n"], ["\n position: relative;\n border: ", ";\n"])), function (props) {
|
|
1360
|
+
var GuideCenterBorder = styled__default['default'].div(templateObject_5$3 || (templateObject_5$3 = tslib.__makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n border: ", ";\n"], ["\n box-sizing: border-box;\n position: relative;\n border: ", ";\n"])), function (props) {
|
|
1361
1361
|
var _a, _b;
|
|
1362
1362
|
return "".concat((_a = props.$borderWidth) !== null && _a !== void 0 ? _a : 4, "px solid ").concat((_b = props.$borderColor) !== null && _b !== void 0 ? _b : 'white');
|
|
1363
1363
|
});
|
|
1364
1364
|
var GuideText = styled__default['default'].span(templateObject_6$2 || (templateObject_6$2 = tslib.__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"])));
|
|
1365
|
-
var GuideImage = styled__default['default'].img(templateObject_7 || (templateObject_7 = tslib.__makeTemplateObject(["\n display: block;\n ", "\n ", "\n"], ["\n display: block;\n ", "\n ", "\n"])), function (props) {
|
|
1366
|
-
return props.$
|
|
1365
|
+
var GuideImage = styled__default['default'].img(templateObject_7 || (templateObject_7 = tslib.__makeTemplateObject(["\n display: block;\n padding: ", "px;\n box-sizing: border-box;\n ", "\n ", "\n"], ["\n display: block;\n padding: ", "px;\n box-sizing: border-box;\n ", "\n ", "\n"])), function (props) {
|
|
1366
|
+
return props.$padding;
|
|
1367
1367
|
}, function (props) {
|
|
1368
|
-
return props.$
|
|
1368
|
+
return props.$width ? "width: ".concat(props.$width, "px;\n max-width: ").concat(props.$width, "px;") : "max-width: none;";
|
|
1369
|
+
}, function (props) {
|
|
1370
|
+
return props.$height ? "height: ".concat(props.$height, "px;\n max-height: ").concat(props.$height, "px;") : "max-height: none;";
|
|
1369
1371
|
});
|
|
1370
1372
|
var DocumentCaptureGuideOverlay = function DocumentCaptureGuideOverlay(_a) {
|
|
1371
|
-
var _b, _c, _d;
|
|
1372
|
-
var
|
|
1373
|
-
classNames =
|
|
1374
|
-
|
|
1375
|
-
width =
|
|
1376
|
-
|
|
1377
|
-
height =
|
|
1378
|
-
|
|
1379
|
-
|
|
1373
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1374
|
+
var _p = _a.classNames,
|
|
1375
|
+
classNames = _p === void 0 ? {} : _p,
|
|
1376
|
+
_q = _a.width,
|
|
1377
|
+
width = _q === void 0 ? 0 : _q,
|
|
1378
|
+
_r = _a.height,
|
|
1379
|
+
height = _r === void 0 ? 0 : _r,
|
|
1380
|
+
userSuppliedPadding = _a.padding,
|
|
1381
|
+
userSuppliedImagePadding = _a.imagePadding,
|
|
1380
1382
|
borderWidth = _a.borderWidth,
|
|
1381
1383
|
borderColor = _a.borderColor,
|
|
1382
|
-
|
|
1383
|
-
isMirrored =
|
|
1384
|
-
|
|
1385
|
-
instruction =
|
|
1384
|
+
_s = _a.isMirrored,
|
|
1385
|
+
isMirrored = _s === void 0 ? false : _s,
|
|
1386
|
+
_t = _a.instruction,
|
|
1387
|
+
instruction = _t === void 0 ? '' : _t,
|
|
1386
1388
|
portraitGuidesImageUrl = _a.portraitGuidesImageUrl,
|
|
1387
1389
|
landscapeGuidesImageUrl = _a.landscapeGuidesImageUrl,
|
|
1388
1390
|
onClick = _a.onClick;
|
|
1389
|
-
var
|
|
1390
|
-
orientation =
|
|
1391
|
-
wrapperRef =
|
|
1392
|
-
wrapperWidth =
|
|
1393
|
-
wrapperHeight =
|
|
1394
|
-
imageAspectRatio =
|
|
1395
|
-
wrapperAspectRatio =
|
|
1396
|
-
onImageLoaded =
|
|
1397
|
-
setDimensions =
|
|
1391
|
+
var _u = React.useContext(GuideOrientationContext),
|
|
1392
|
+
orientation = _u.orientation,
|
|
1393
|
+
wrapperRef = _u.wrapperRef,
|
|
1394
|
+
wrapperWidth = _u.wrapperWidth,
|
|
1395
|
+
wrapperHeight = _u.wrapperHeight,
|
|
1396
|
+
imageAspectRatio = _u.imageAspectRatio,
|
|
1397
|
+
wrapperAspectRatio = _u.wrapperAspectRatio,
|
|
1398
|
+
onImageLoaded = _u.onImageLoaded,
|
|
1399
|
+
setDimensions = _u.setDimensions;
|
|
1398
1400
|
var theme = styled.useTheme();
|
|
1399
1401
|
if (borderWidth === undefined) borderWidth = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.borderWidth) !== null && _d !== void 0 ? _d : 4;
|
|
1400
1402
|
if (width == 0) width = wrapperWidth;
|
|
@@ -1405,8 +1407,10 @@ var DocumentCaptureGuideOverlay = function DocumentCaptureGuideOverlay(_a) {
|
|
|
1405
1407
|
height: height
|
|
1406
1408
|
});
|
|
1407
1409
|
}, [height, setDimensions, width]);
|
|
1410
|
+
var padding = (userSuppliedPadding !== null && userSuppliedPadding !== void 0 ? userSuppliedPadding : isMobile()) ? (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.mobilePadding) !== null && _g !== void 0 ? _g : 0 : (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.desktopPadding) !== null && _k !== void 0 ? _k : 50;
|
|
1408
1411
|
var paddingAndBorderPx = padding * 2 + borderWidth * 2;
|
|
1409
1412
|
var imgSrc = orientation === 'portrait' ? portraitGuidesImageUrl : landscapeGuidesImageUrl;
|
|
1413
|
+
var imagePadding = (_o = userSuppliedImagePadding !== null && userSuppliedImagePadding !== void 0 ? userSuppliedImagePadding : (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.imagePadding) !== null && _o !== void 0 ? _o : 0;
|
|
1410
1414
|
var imageWidth = undefined,
|
|
1411
1415
|
imageHeight = undefined;
|
|
1412
1416
|
if (imageAspectRatio >= wrapperAspectRatio) {
|
|
@@ -1443,7 +1447,8 @@ var DocumentCaptureGuideOverlay = function DocumentCaptureGuideOverlay(_a) {
|
|
|
1443
1447
|
onLoad: onImageLoaded,
|
|
1444
1448
|
className: classNames.image,
|
|
1445
1449
|
"$width": imageWidth,
|
|
1446
|
-
"$height": imageHeight
|
|
1450
|
+
"$height": imageHeight,
|
|
1451
|
+
"$padding": imagePadding
|
|
1447
1452
|
}))), /*#__PURE__*/React__default['default'].createElement(GuideRegion, {
|
|
1448
1453
|
"$minWidth": padding,
|
|
1449
1454
|
className: regionClsx$1(classNames, 'Right')
|
|
@@ -1593,22 +1598,6 @@ function getBlobDimensions(blob) {
|
|
|
1593
1598
|
});
|
|
1594
1599
|
}
|
|
1595
1600
|
|
|
1596
|
-
function iOS() {
|
|
1597
|
-
return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) ||
|
|
1598
|
-
// iPad on iOS 13 detection
|
|
1599
|
-
navigator.userAgent.includes('Mac') && 'ontouchend' in document;
|
|
1600
|
-
}
|
|
1601
|
-
function wideAngleIsBetter() {
|
|
1602
|
-
if (!iOS()) return false;
|
|
1603
|
-
var smallerSide = smallerSideIos();
|
|
1604
|
-
var realWidth = window.screen.width * window.devicePixelRatio;
|
|
1605
|
-
var realHeight = window.screen.height * window.devicePixelRatio;
|
|
1606
|
-
return realWidth == 1179 && realHeight == 2556 || realWidth == 1290 && realHeight == 2796 && (smallerSide == 393 || smallerSide == 430);
|
|
1607
|
-
}
|
|
1608
|
-
function smallerSideIos() {
|
|
1609
|
-
return window.screen.width < window.screen.height ? window.screen.width : window.screen.height;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
1601
|
function listAvailableCameras(facingMode, requestMicAccess) {
|
|
1613
1602
|
if (requestMicAccess === void 0) {
|
|
1614
1603
|
requestMicAccess = false;
|
|
@@ -1771,15 +1760,15 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
|
|
|
1771
1760
|
return labelMatches(deviceInfo, frontLabels);
|
|
1772
1761
|
});
|
|
1773
1762
|
}
|
|
1774
|
-
if (wideAngleIsBetter()) {
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
} else {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
}
|
|
1763
|
+
// if (wideAngleIsBetter()) {
|
|
1764
|
+
// selectedCamera ||= availableCameras.find((deviceInfo) =>
|
|
1765
|
+
// labelMatches(deviceInfo, backUltraWideLabels),
|
|
1766
|
+
// )
|
|
1767
|
+
// } else {
|
|
1768
|
+
selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
|
|
1769
|
+
return labelMatches(deviceInfo, rearLabels) && !labelMatches(deviceInfo, backUltraWideLabels);
|
|
1770
|
+
}));
|
|
1771
|
+
// }
|
|
1783
1772
|
selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
|
|
1784
1773
|
return labelMatches(deviceInfo, rearLabels);
|
|
1785
1774
|
}));
|
|
@@ -10279,38 +10268,42 @@ var FlippingImage = styled__default['default'](GuideImage)(templateObject_1$k ||
|
|
|
10279
10268
|
});
|
|
10280
10269
|
var FlippingImageBack = styled__default['default'](FlippingImage)(templateObject_2$b || (templateObject_2$b = tslib.__makeTemplateObject(["\n position: absolute;\n"], ["\n position: absolute;\n"])));
|
|
10281
10270
|
var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
10282
|
-
var _b, _c;
|
|
10283
|
-
var
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10271
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
10272
|
+
var userSuppliedPadding = _a.padding,
|
|
10273
|
+
userSuppliedImagePadding = _a.imagePadding,
|
|
10274
|
+
borderWidth = _a.borderWidth,
|
|
10275
|
+
borderColor = _a.borderColor,
|
|
10276
|
+
_q = _a.assets,
|
|
10277
|
+
assets = _q === void 0 ? {} : _q,
|
|
10278
|
+
_r = _a.classNames,
|
|
10279
|
+
classNames = _r === void 0 ? {} : _r,
|
|
10280
|
+
_s = _a.verbiage,
|
|
10281
|
+
verbiage = _s === void 0 ? {} : _s;
|
|
10282
|
+
var _t = useResizeObserver__default['default'](),
|
|
10283
|
+
ref = _t.ref,
|
|
10284
|
+
_u = _t.width,
|
|
10285
|
+
width = _u === void 0 ? 1 : _u,
|
|
10286
|
+
_v = _t.height,
|
|
10287
|
+
height = _v === void 0 ? 1 : _v;
|
|
10295
10288
|
var cameraRef = React.useContext(CameraStateContext).cameraRef;
|
|
10289
|
+
var theme = styled.useTheme();
|
|
10296
10290
|
assets.frontPortraitGuidesImageUrl || (assets.frontPortraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Portrait-2.svg"));
|
|
10297
10291
|
assets.frontLandscapeGuidesImageUrl || (assets.frontLandscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg"));
|
|
10298
10292
|
assets.backPortraitGuidesImageUrl || (assets.backPortraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Portrait-2.svg"));
|
|
10299
10293
|
assets.backLandscapeGuidesImageUrl || (assets.backLandscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-2.svg"));
|
|
10300
10294
|
var instruction = useVerbiage(verbiage.instructionText, 'Please flip your ID card...');
|
|
10301
|
-
var padding = isMobile() ? 0 : 50;
|
|
10302
|
-
|
|
10303
|
-
var
|
|
10304
|
-
var
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
setDimensions = _k.setDimensions;
|
|
10295
|
+
var padding = (userSuppliedPadding !== null && userSuppliedPadding !== void 0 ? userSuppliedPadding : isMobile()) ? (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.mobilePadding) !== null && _d !== void 0 ? _d : 0 : (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.desktopPadding) !== null && _g !== void 0 ? _g : 50;
|
|
10296
|
+
if (borderWidth === undefined) borderWidth = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.borderWidth) !== null && _k !== void 0 ? _k : 4;
|
|
10297
|
+
var isMirrored = !((_l = cameraRef.current) === null || _l === void 0 ? void 0 : _l.isRearFacing);
|
|
10298
|
+
var _w = React.useContext(GuideOrientationContext),
|
|
10299
|
+
orientation = _w.orientation,
|
|
10300
|
+
wrapperRef = _w.wrapperRef,
|
|
10301
|
+
wrapperWidth = _w.wrapperWidth,
|
|
10302
|
+
wrapperHeight = _w.wrapperHeight,
|
|
10303
|
+
imageAspectRatio = _w.imageAspectRatio,
|
|
10304
|
+
wrapperAspectRatio = _w.wrapperAspectRatio,
|
|
10305
|
+
onImageLoaded = _w.onImageLoaded,
|
|
10306
|
+
setDimensions = _w.setDimensions;
|
|
10314
10307
|
React.useEffect(function () {
|
|
10315
10308
|
setDimensions({
|
|
10316
10309
|
width: width,
|
|
@@ -10318,6 +10311,7 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10318
10311
|
});
|
|
10319
10312
|
}, [height, setDimensions, width]);
|
|
10320
10313
|
var paddingAndBorderPx = padding * 2 + borderWidth * 2;
|
|
10314
|
+
var imagePadding = (_p = userSuppliedImagePadding !== null && userSuppliedImagePadding !== void 0 ? userSuppliedImagePadding : (_o = (_m = theme.idCapture) === null || _m === void 0 ? void 0 : _m.guideBox) === null || _o === void 0 ? void 0 : _o.imagePadding) !== null && _p !== void 0 ? _p : 0;
|
|
10321
10315
|
var imageWidth = undefined,
|
|
10322
10316
|
imageHeight = undefined;
|
|
10323
10317
|
if (imageAspectRatio >= wrapperAspectRatio) {
|
|
@@ -10325,12 +10319,12 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10325
10319
|
} else {
|
|
10326
10320
|
imageHeight = wrapperHeight - paddingAndBorderPx;
|
|
10327
10321
|
}
|
|
10328
|
-
var
|
|
10329
|
-
transitionTime =
|
|
10330
|
-
setTransitionTime =
|
|
10331
|
-
var
|
|
10332
|
-
rotationAngle =
|
|
10333
|
-
setRotationAngle =
|
|
10322
|
+
var _x = React.useState(1),
|
|
10323
|
+
transitionTime = _x[0],
|
|
10324
|
+
setTransitionTime = _x[1];
|
|
10325
|
+
var _y = React.useState(0),
|
|
10326
|
+
rotationAngle = _y[0],
|
|
10327
|
+
setRotationAngle = _y[1];
|
|
10334
10328
|
var frontTransforms = ["rotateY(".concat(rotationAngle, "deg)")];
|
|
10335
10329
|
if (isMirrored) frontTransforms.push('scaleX(-1)');
|
|
10336
10330
|
var backTransforms = ["rotateY(".concat(180 - rotationAngle, "deg)")];
|
|
@@ -10352,7 +10346,7 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10352
10346
|
}, []);
|
|
10353
10347
|
return /*#__PURE__*/React__default['default'].createElement(PageContainer, {
|
|
10354
10348
|
ref: ref,
|
|
10355
|
-
className:
|
|
10349
|
+
className: classNames.container
|
|
10356
10350
|
}, /*#__PURE__*/React__default['default'].createElement(GuidesContainer, {
|
|
10357
10351
|
ref: wrapperRef,
|
|
10358
10352
|
className: classNames.inner
|
|
@@ -10366,7 +10360,7 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10366
10360
|
}, /*#__PURE__*/React__default['default'].createElement(GuideRegion, {
|
|
10367
10361
|
"$minWidth": padding,
|
|
10368
10362
|
className: regionClsx(classNames, 'Left')
|
|
10369
|
-
}), /*#__PURE__*/React__default['default'].createElement(GuideCenterBorder, {
|
|
10363
|
+
}), /*#__PURE__*/React__default['default'].createElement(GuideCenterRegion, null, /*#__PURE__*/React__default['default'].createElement(GuideCenterBorder, {
|
|
10370
10364
|
"$borderWidth": borderWidth,
|
|
10371
10365
|
"$borderColor": borderColor,
|
|
10372
10366
|
className: classNames.centerRegion
|
|
@@ -10376,6 +10370,7 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10376
10370
|
className: classNames.image,
|
|
10377
10371
|
"$width": imageWidth,
|
|
10378
10372
|
"$height": imageHeight,
|
|
10373
|
+
"$padding": imagePadding,
|
|
10379
10374
|
"$transitionTime": transitionTime,
|
|
10380
10375
|
"$transforms": frontTransforms.join(' '),
|
|
10381
10376
|
onLoad: onImageLoaded
|
|
@@ -10385,9 +10380,10 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
|
10385
10380
|
className: classNames.image,
|
|
10386
10381
|
"$width": imageWidth,
|
|
10387
10382
|
"$height": imageHeight,
|
|
10383
|
+
"$padding": imagePadding,
|
|
10388
10384
|
"$transitionTime": transitionTime,
|
|
10389
10385
|
"$transforms": backTransforms.join(' ')
|
|
10390
|
-
})), /*#__PURE__*/React__default['default'].createElement(GuideRegion, {
|
|
10386
|
+
}))), /*#__PURE__*/React__default['default'].createElement(GuideRegion, {
|
|
10391
10387
|
"$minWidth": padding,
|
|
10392
10388
|
className: regionClsx(classNames, 'Right')
|
|
10393
10389
|
})), /*#__PURE__*/React__default['default'].createElement(GuideRegion, {
|
|
@@ -11000,7 +10996,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
11000
10996
|
colors: colors,
|
|
11001
10997
|
verbiage: idCardFrontVerbiage,
|
|
11002
10998
|
debugMode: debugMode,
|
|
11003
|
-
processingDelay: state.capturedDocuments.idCardBack ? undefined :
|
|
10999
|
+
processingDelay: state.capturedDocuments.idCardBack ? undefined : 60000,
|
|
11004
11000
|
processingScreen: state.capturedDocuments.idCardBack ? undefined : ( /*#__PURE__*/React__default['default'].createElement(FlipIdPrompt, {
|
|
11005
11001
|
assets: assets.flipIdPrompt,
|
|
11006
11002
|
classNames: classNames.flipIdPrompt,
|
|
@@ -14223,7 +14219,9 @@ var defaultTheme = {
|
|
|
14223
14219
|
guideBox: {
|
|
14224
14220
|
unsatisfiedColor: 'white',
|
|
14225
14221
|
satisfiedColor: 'var(--idm-color-positive-500)',
|
|
14226
|
-
borderWidth: 4
|
|
14222
|
+
borderWidth: 4,
|
|
14223
|
+
desktopPadding: 50,
|
|
14224
|
+
mobilePadding: 0
|
|
14227
14225
|
}
|
|
14228
14226
|
},
|
|
14229
14227
|
selfieCapture: {
|