idmission-web-sdk 2.3.33 → 2.3.34
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/GuideOrientationContextProvider.d.ts +2 -6
- package/dist/components/GuideOrientationContextProvider.d.ts.map +1 -1
- package/dist/components/id_capture/FlipIdPrompt.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +107 -146
- 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 +107 -146
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +107 -146
- 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.34';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -17100,7 +17100,11 @@
|
|
|
17100
17100
|
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : borderColor;
|
|
17101
17101
|
var progressBarIndicatorColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarIndicatorColor) !== null && _o !== void 0 ? _o : '#287ec6';
|
|
17102
17102
|
var progressBarWidth = (_r = (_q = (_p = theme.idCapture) === null || _p === void 0 ? void 0 : _p.guideBox) === null || _q === void 0 ? void 0 : _q.progressBarWidth) !== null && _r !== void 0 ? _r : borderWidth;
|
|
17103
|
-
return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props
|
|
17103
|
+
return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props, {
|
|
17104
|
+
style: {
|
|
17105
|
+
aspectRatio: aspectRatio
|
|
17106
|
+
}
|
|
17107
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17104
17108
|
ref: ref,
|
|
17105
17109
|
style: {
|
|
17106
17110
|
maxHeight: '100%',
|
|
@@ -17205,7 +17209,7 @@
|
|
|
17205
17209
|
className: isProgressBar ? "idmSdkProgressBorder ".concat(progressPaused ? 'idmSdkProgressPaused' : '') : ''
|
|
17206
17210
|
}));
|
|
17207
17211
|
}
|
|
17208
|
-
var IdCardBorderContainer = styled.div(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 100%;\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n"], ["\n max-width: 100%;\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
|
|
17212
|
+
var IdCardBorderContainer = styled.div(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n"], ["\n max-width: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
|
|
17209
17213
|
var SvgOverlay = styled.svg(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"])));
|
|
17210
17214
|
var IdCardBorderRect = styled.rect(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n &.idmSdkProgressBorder {\n animation: ", " ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n"], ["\n &.idmSdkProgressBorder {\n animation: ", " ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n"])), progressBorderAnimation, function (props) {
|
|
17211
17215
|
var _a;
|
|
@@ -17397,65 +17401,6 @@
|
|
|
17397
17401
|
});
|
|
17398
17402
|
var templateObject_1$z;
|
|
17399
17403
|
|
|
17400
|
-
var GuideOrientationContext = /*#__PURE__*/React.createContext({
|
|
17401
|
-
orientation: 'landscape',
|
|
17402
|
-
wrapperWidth: 1,
|
|
17403
|
-
wrapperHeight: 1,
|
|
17404
|
-
wrapperAspectRatio: 0,
|
|
17405
|
-
imageAspectRatio: 0,
|
|
17406
|
-
wrapperRef: null,
|
|
17407
|
-
setDimensions: function setDimensions() {
|
|
17408
|
-
return null;
|
|
17409
|
-
},
|
|
17410
|
-
onImageLoaded: function onImageLoaded() {
|
|
17411
|
-
return null;
|
|
17412
|
-
}
|
|
17413
|
-
});
|
|
17414
|
-
function GuideOrientationContextProvider(_a) {
|
|
17415
|
-
var children = _a.children;
|
|
17416
|
-
var setDimensions = React.useState({
|
|
17417
|
-
width: 1,
|
|
17418
|
-
height: 1
|
|
17419
|
-
})[1];
|
|
17420
|
-
var _b = React.useState(1),
|
|
17421
|
-
imageAspectRatio = _b[0],
|
|
17422
|
-
setImageAspectRatio = _b[1];
|
|
17423
|
-
var _c = useResizeObserver(),
|
|
17424
|
-
wrapperRef = _c.ref,
|
|
17425
|
-
_d = _c.width,
|
|
17426
|
-
wrapperWidth = _d === void 0 ? 1 : _d,
|
|
17427
|
-
_e = _c.height,
|
|
17428
|
-
wrapperHeight = _e === void 0 ? 1 : _e;
|
|
17429
|
-
var wrapperAspectRatio = React.useMemo(function () {
|
|
17430
|
-
return wrapperWidth / wrapperHeight;
|
|
17431
|
-
}, [wrapperHeight, wrapperWidth]);
|
|
17432
|
-
var onImageLoaded = React.useCallback(function (e) {
|
|
17433
|
-
var img = e.target;
|
|
17434
|
-
setImageAspectRatio(img.naturalWidth / img.naturalHeight);
|
|
17435
|
-
}, []);
|
|
17436
|
-
var orientation = 'landscape'; //width > height ? 'landscape' : 'portrait'
|
|
17437
|
-
var value = React.useMemo(function () {
|
|
17438
|
-
return {
|
|
17439
|
-
orientation: orientation,
|
|
17440
|
-
wrapperWidth: wrapperWidth,
|
|
17441
|
-
wrapperHeight: wrapperHeight,
|
|
17442
|
-
wrapperAspectRatio: wrapperAspectRatio,
|
|
17443
|
-
imageAspectRatio: imageAspectRatio,
|
|
17444
|
-
setDimensions: setDimensions,
|
|
17445
|
-
wrapperRef: wrapperRef,
|
|
17446
|
-
onImageLoaded: onImageLoaded
|
|
17447
|
-
};
|
|
17448
|
-
}, [imageAspectRatio, onImageLoaded, setDimensions, wrapperAspectRatio, wrapperHeight, wrapperRef, wrapperWidth]);
|
|
17449
|
-
return /*#__PURE__*/React.createElement(GuideOrientationContext.Provider, {
|
|
17450
|
-
value: value
|
|
17451
|
-
}, children);
|
|
17452
|
-
}
|
|
17453
|
-
function useGuideOrientationContext() {
|
|
17454
|
-
var ctx = React.useContext(GuideOrientationContext);
|
|
17455
|
-
if (!ctx) throw new Error('useGuideOrientationContext cannot be used without GuideOrientationContextProvider');
|
|
17456
|
-
return ctx;
|
|
17457
|
-
}
|
|
17458
|
-
|
|
17459
17404
|
var FlipIdPrompt = function FlipIdPrompt(_a) {
|
|
17460
17405
|
var _b = _a.images,
|
|
17461
17406
|
images = _b === void 0 ? defaultIdCaptureGuideImages : _b,
|
|
@@ -17473,7 +17418,6 @@
|
|
|
17473
17418
|
portraitGuidesOnMobile = _g === void 0 ? true : _g,
|
|
17474
17419
|
_h = _a.classNames,
|
|
17475
17420
|
classNames = _h === void 0 ? {} : _h;
|
|
17476
|
-
var onImageLoaded = useGuideOrientationContext().onImageLoaded;
|
|
17477
17421
|
var orientation = getOrientation(portraitGuidesOnMobile);
|
|
17478
17422
|
var _j = React.useState(1),
|
|
17479
17423
|
transitionTime = _j[0],
|
|
@@ -17515,7 +17459,6 @@
|
|
|
17515
17459
|
alt: "",
|
|
17516
17460
|
src: images[orientation].SHOW_ID_FRONT.url,
|
|
17517
17461
|
className: classNames.frontImage,
|
|
17518
|
-
onLoad: onImageLoaded,
|
|
17519
17462
|
width: width,
|
|
17520
17463
|
height: height
|
|
17521
17464
|
})), /*#__PURE__*/React.createElement(FlipImageContainer, {
|
|
@@ -17536,67 +17479,97 @@
|
|
|
17536
17479
|
})));
|
|
17537
17480
|
};
|
|
17538
17481
|
|
|
17482
|
+
var GuideOrientationContext = /*#__PURE__*/React.createContext({
|
|
17483
|
+
orientation: 'landscape',
|
|
17484
|
+
wrapperWidth: 1,
|
|
17485
|
+
wrapperHeight: 1,
|
|
17486
|
+
wrapperAspectRatio: 0,
|
|
17487
|
+
imageAspectRatio: 0,
|
|
17488
|
+
wrapperRef: null,
|
|
17489
|
+
setImageAspectRatio: function setImageAspectRatio() {
|
|
17490
|
+
return null;
|
|
17491
|
+
}
|
|
17492
|
+
});
|
|
17493
|
+
function GuideOrientationContextProvider(_a) {
|
|
17494
|
+
var children = _a.children;
|
|
17495
|
+
var _b = React.useState(1),
|
|
17496
|
+
imageAspectRatio = _b[0],
|
|
17497
|
+
setImageAspectRatio = _b[1];
|
|
17498
|
+
var _c = useResizeObserver(),
|
|
17499
|
+
wrapperRef = _c.ref,
|
|
17500
|
+
_d = _c.width,
|
|
17501
|
+
wrapperWidth = _d === void 0 ? 1 : _d,
|
|
17502
|
+
_e = _c.height,
|
|
17503
|
+
wrapperHeight = _e === void 0 ? 1 : _e;
|
|
17504
|
+
var wrapperAspectRatio = React.useMemo(function () {
|
|
17505
|
+
return wrapperWidth / wrapperHeight;
|
|
17506
|
+
}, [wrapperHeight, wrapperWidth]);
|
|
17507
|
+
var orientation = 'landscape'; //width > height ? 'landscape' : 'portrait'
|
|
17508
|
+
var value = React.useMemo(function () {
|
|
17509
|
+
return {
|
|
17510
|
+
orientation: orientation,
|
|
17511
|
+
wrapperWidth: wrapperWidth,
|
|
17512
|
+
wrapperHeight: wrapperHeight,
|
|
17513
|
+
wrapperAspectRatio: wrapperAspectRatio,
|
|
17514
|
+
imageAspectRatio: imageAspectRatio,
|
|
17515
|
+
setImageAspectRatio: setImageAspectRatio,
|
|
17516
|
+
wrapperRef: wrapperRef
|
|
17517
|
+
};
|
|
17518
|
+
}, [imageAspectRatio, wrapperAspectRatio, wrapperHeight, wrapperRef, wrapperWidth]);
|
|
17519
|
+
return /*#__PURE__*/React.createElement(GuideOrientationContext.Provider, {
|
|
17520
|
+
value: value
|
|
17521
|
+
}, children);
|
|
17522
|
+
}
|
|
17523
|
+
function useGuideOrientationContext() {
|
|
17524
|
+
var ctx = React.useContext(GuideOrientationContext);
|
|
17525
|
+
if (!ctx) throw new Error('useGuideOrientationContext cannot be used without GuideOrientationContextProvider');
|
|
17526
|
+
return ctx;
|
|
17527
|
+
}
|
|
17528
|
+
|
|
17539
17529
|
var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
|
|
17540
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
17541
|
-
var
|
|
17542
|
-
classNames =
|
|
17543
|
-
|
|
17544
|
-
userSuppliedImages =
|
|
17530
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
17531
|
+
var _s = _a.classNames,
|
|
17532
|
+
classNames = _s === void 0 ? {} : _s,
|
|
17533
|
+
_t = _a.images,
|
|
17534
|
+
userSuppliedImages = _t === void 0 ? defaultIdCaptureGuideImages : _t,
|
|
17545
17535
|
userSuppliedPadding = _a.padding,
|
|
17546
17536
|
userSuppliedImagePadding = _a.imagePadding,
|
|
17547
|
-
|
|
17548
|
-
imageVisible =
|
|
17537
|
+
_u = _a.imageVisible,
|
|
17538
|
+
imageVisible = _u === void 0 ? true : _u,
|
|
17549
17539
|
borderWidth = _a.borderWidth,
|
|
17550
17540
|
borderColor = _a.borderColor,
|
|
17551
|
-
|
|
17552
|
-
idCardBorderWidth =
|
|
17553
|
-
|
|
17554
|
-
idCardBorderColor =
|
|
17541
|
+
_v = _a.idCardBorderWidth,
|
|
17542
|
+
idCardBorderWidth = _v === void 0 ? '2.5%' : _v,
|
|
17543
|
+
_w = _a.idCardBorderColor,
|
|
17544
|
+
idCardBorderColor = _w === void 0 ? 'white' : _w,
|
|
17555
17545
|
maskColor = _a.maskColor,
|
|
17556
|
-
|
|
17557
|
-
isMirrored =
|
|
17558
|
-
|
|
17559
|
-
isBackToFront =
|
|
17560
|
-
|
|
17561
|
-
portraitGuidesOnMobile =
|
|
17562
|
-
|
|
17563
|
-
instruction =
|
|
17564
|
-
|
|
17565
|
-
requestedAction =
|
|
17566
|
-
|
|
17567
|
-
progress =
|
|
17568
|
-
|
|
17569
|
-
status =
|
|
17546
|
+
_x = _a.isMirrored,
|
|
17547
|
+
isMirrored = _x === void 0 ? false : _x,
|
|
17548
|
+
_y = _a.isBackToFront,
|
|
17549
|
+
isBackToFront = _y === void 0 ? false : _y,
|
|
17550
|
+
_z = _a.portraitGuidesOnMobile,
|
|
17551
|
+
portraitGuidesOnMobile = _z === void 0 ? true : _z,
|
|
17552
|
+
_0 = _a.instruction,
|
|
17553
|
+
instruction = _0 === void 0 ? '' : _0,
|
|
17554
|
+
_1 = _a.requestedAction,
|
|
17555
|
+
requestedAction = _1 === void 0 ? 'SHOW_ID_FRONT' : _1,
|
|
17556
|
+
_2 = _a.progress,
|
|
17557
|
+
progress = _2 === void 0 ? 0 : _2,
|
|
17558
|
+
_3 = _a.status,
|
|
17559
|
+
status = _3 === void 0 ? 'ready' : _3,
|
|
17570
17560
|
onClick = _a.onClick;
|
|
17571
|
-
var
|
|
17572
|
-
wrapperRef =
|
|
17573
|
-
wrapperWidth =
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
width: 0,
|
|
17582
|
-
height: 0
|
|
17583
|
-
}),
|
|
17584
|
-
imageDimensions = _7[0],
|
|
17585
|
-
setImageDimensions = _7[1];
|
|
17586
|
-
var _8 = React.useState({
|
|
17587
|
-
width: 0,
|
|
17588
|
-
height: 0
|
|
17589
|
-
}),
|
|
17590
|
-
containerDimensions = _8[0],
|
|
17591
|
-
setContainerDimensions = _8[1];
|
|
17561
|
+
var _4 = useGuideOrientationContext(),
|
|
17562
|
+
wrapperRef = _4.wrapperRef,
|
|
17563
|
+
wrapperWidth = _4.wrapperWidth,
|
|
17564
|
+
imageAspectRatio = _4.imageAspectRatio,
|
|
17565
|
+
wrapperAspectRatio = _4.wrapperAspectRatio,
|
|
17566
|
+
setImageAspectRatio = _4.setImageAspectRatio;
|
|
17567
|
+
var _5 = useResizeObserver(),
|
|
17568
|
+
innerRef = _5.ref,
|
|
17569
|
+
innerWidth = _5.width,
|
|
17570
|
+
innerHeight = _5.height;
|
|
17592
17571
|
var theme = styled.useTheme();
|
|
17593
17572
|
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;
|
|
17594
|
-
React.useEffect(function () {
|
|
17595
|
-
setDimensions({
|
|
17596
|
-
width: wrapperWidth,
|
|
17597
|
-
height: wrapperHeight
|
|
17598
|
-
});
|
|
17599
|
-
}, [setDimensions, wrapperHeight, wrapperWidth]);
|
|
17600
17573
|
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;
|
|
17601
17574
|
var paddingAndBorderPx = padding * 2 + (borderWidth !== null && borderWidth !== void 0 ? borderWidth : 0) * 2;
|
|
17602
17575
|
var images = useImagesWithBackToFront(userSuppliedImages, isBackToFront);
|
|
@@ -17604,28 +17577,16 @@
|
|
|
17604
17577
|
var currentImage = images[orientation][requestedAction === 'FLIP_ID' ? 'SHOW_ID_FRONT' : requestedAction];
|
|
17605
17578
|
var imagePadding = userSuppliedImagePadding !== null && userSuppliedImagePadding !== void 0 ? userSuppliedImagePadding : isMobile() ? (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.mobileImagePadding) !== null && _o !== void 0 ? _o : 0 : (_r = (_q = (_p = theme.idCapture) === null || _p === void 0 ? void 0 : _p.guideBox) === null || _q === void 0 ? void 0 : _q.imagePadding) !== null && _r !== void 0 ? _r : 50;
|
|
17606
17579
|
var centerRegionMinWidth = imageAspectRatio >= wrapperAspectRatio ? wrapperWidth - paddingAndBorderPx : undefined;
|
|
17607
|
-
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17580
|
+
function onImageLoaded() {
|
|
17581
|
+
setImageAspectRatio(currentImage.width / currentImage.height);
|
|
17582
|
+
dispatchIdCaptureAction({
|
|
17583
|
+
type: 'guideImageLoaded',
|
|
17584
|
+
payload: {
|
|
17585
|
+
width: currentImage.width,
|
|
17586
|
+
height: currentImage.height
|
|
17587
|
+
}
|
|
17612
17588
|
});
|
|
17613
|
-
}
|
|
17614
|
-
React.useEffect(function () {
|
|
17615
|
-
if (containerRef.current && containerRef.current.clientWidth && containerRef.current.clientHeight) {
|
|
17616
|
-
setContainerDimensions({
|
|
17617
|
-
width: containerRef.current.clientWidth,
|
|
17618
|
-
height: containerRef.current.clientHeight
|
|
17619
|
-
});
|
|
17620
|
-
dispatchIdCaptureAction({
|
|
17621
|
-
type: 'guideImageLoaded',
|
|
17622
|
-
payload: {
|
|
17623
|
-
width: imageDimensions.width,
|
|
17624
|
-
height: imageDimensions.height
|
|
17625
|
-
}
|
|
17626
|
-
});
|
|
17627
|
-
}
|
|
17628
|
-
}, [setDimensions, setContainerDimensions, imageDimensions.height, imageDimensions.width]);
|
|
17589
|
+
}
|
|
17629
17590
|
return /*#__PURE__*/React.createElement(StyledPageContainer, {
|
|
17630
17591
|
ref: wrapperRef,
|
|
17631
17592
|
onClick: onClick,
|
|
@@ -17655,10 +17616,10 @@
|
|
|
17655
17616
|
className: classNames.centerRegionBorder
|
|
17656
17617
|
}, /*#__PURE__*/React.createElement(GuideCenterInner, {
|
|
17657
17618
|
"$isLandscape": orientation === 'landscape',
|
|
17658
|
-
ref:
|
|
17619
|
+
ref: innerRef,
|
|
17659
17620
|
className: classNames.centerRegionInner,
|
|
17660
17621
|
style: {
|
|
17661
|
-
aspectRatio:
|
|
17622
|
+
aspectRatio: imageAspectRatio
|
|
17662
17623
|
}
|
|
17663
17624
|
}, /*#__PURE__*/React.createElement(IdCardGuideImageContainer, {
|
|
17664
17625
|
status: status,
|
|
@@ -17666,7 +17627,7 @@
|
|
|
17666
17627
|
borderWidth: idCardBorderWidth,
|
|
17667
17628
|
borderColor: idCardBorderColor,
|
|
17668
17629
|
"$isVisible": requestedAction !== 'FLIP_ID',
|
|
17669
|
-
aspectRatio:
|
|
17630
|
+
aspectRatio: imageAspectRatio
|
|
17670
17631
|
}, /*#__PURE__*/React.createElement(IdCardGuideImage, {
|
|
17671
17632
|
alt: "",
|
|
17672
17633
|
src: currentImage.url,
|
|
@@ -17674,8 +17635,8 @@
|
|
|
17674
17635
|
className: classNames.image,
|
|
17675
17636
|
"$isInvisible": !imageVisible,
|
|
17676
17637
|
"$isMirrored": isMirrored,
|
|
17677
|
-
width:
|
|
17678
|
-
height:
|
|
17638
|
+
width: innerWidth || currentImage.width,
|
|
17639
|
+
height: innerHeight || currentImage.height
|
|
17679
17640
|
})), requestedAction === 'FLIP_ID' && ( /*#__PURE__*/React.createElement(FlipIdPrompt, {
|
|
17680
17641
|
images: images,
|
|
17681
17642
|
borderWidth: idCardBorderWidth,
|
|
@@ -17683,8 +17644,8 @@
|
|
|
17683
17644
|
portraitGuidesOnMobile: portraitGuidesOnMobile,
|
|
17684
17645
|
isMirrored: isMirrored,
|
|
17685
17646
|
classNames: classNames.flipIdPrompt,
|
|
17686
|
-
width:
|
|
17687
|
-
height:
|
|
17647
|
+
width: currentImage.width,
|
|
17648
|
+
height: currentImage.height
|
|
17688
17649
|
}))))), /*#__PURE__*/React.createElement(Spacer, {
|
|
17689
17650
|
"$maskColor": maskColor,
|
|
17690
17651
|
"$minWidth": padding,
|
|
@@ -17724,14 +17685,14 @@
|
|
|
17724
17685
|
}, function (props) {
|
|
17725
17686
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
17726
17687
|
});
|
|
17727
|
-
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) {
|
|
17688
|
+
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 max-width: 100%;\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 max-width: 100%;\n position: relative;\n ", "\n"])), function (props) {
|
|
17728
17689
|
var _a, _b;
|
|
17729
17690
|
return "".concat((_a = props.$borderWidth) !== null && _a !== void 0 ? _a : 4, "px solid ").concat((_b = props.$borderColor) !== null && _b !== void 0 ? _b : 'white');
|
|
17730
17691
|
}, function (props) {
|
|
17731
17692
|
return props.$padding ? "padding: ".concat(props.$padding, "px;") : '';
|
|
17732
17693
|
});
|
|
17733
17694
|
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"])));
|
|
17734
|
-
var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n"], ["\n position: relative;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n"])), function (props) {
|
|
17695
|
+
var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: relative;\n margin: auto;\n ", "\n max-height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (props) {
|
|
17735
17696
|
return props.$isLandscape ? 'height: 100%;' : 'width: 90%;';
|
|
17736
17697
|
});
|
|
17737
17698
|
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;
|