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/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.33';
207
+ var webSdkVersion = '2.3.34';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7962,7 +7962,11 @@ function IdCardBorder(_a) {
7962
7962
  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;
7963
7963
  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';
7964
7964
  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;
7965
- return /*#__PURE__*/React__default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__default.createElement("div", {
7965
+ return /*#__PURE__*/React__default.createElement(IdCardBorderContainer, _assign({}, props, {
7966
+ style: {
7967
+ aspectRatio: aspectRatio
7968
+ }
7969
+ }), /*#__PURE__*/React__default.createElement("div", {
7966
7970
  ref: ref,
7967
7971
  style: {
7968
7972
  maxHeight: '100%',
@@ -8067,7 +8071,7 @@ function IdCardBorderSvg(_a) {
8067
8071
  className: isProgressBar ? "idmSdkProgressBorder ".concat(progressPaused ? 'idmSdkProgressPaused' : '') : ''
8068
8072
  }));
8069
8073
  }
8070
- 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);
8074
+ 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);
8071
8075
  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"])));
8072
8076
  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) {
8073
8077
  var _a;
@@ -8259,65 +8263,6 @@ var FlipImageContainer = styled(IdCardGuideImageContainer)(templateObject_1$z ||
8259
8263
  });
8260
8264
  var templateObject_1$z;
8261
8265
 
8262
- var GuideOrientationContext = /*#__PURE__*/createContext({
8263
- orientation: 'landscape',
8264
- wrapperWidth: 1,
8265
- wrapperHeight: 1,
8266
- wrapperAspectRatio: 0,
8267
- imageAspectRatio: 0,
8268
- wrapperRef: null,
8269
- setDimensions: function setDimensions() {
8270
- return null;
8271
- },
8272
- onImageLoaded: function onImageLoaded() {
8273
- return null;
8274
- }
8275
- });
8276
- function GuideOrientationContextProvider(_a) {
8277
- var children = _a.children;
8278
- var setDimensions = useState({
8279
- width: 1,
8280
- height: 1
8281
- })[1];
8282
- var _b = useState(1),
8283
- imageAspectRatio = _b[0],
8284
- setImageAspectRatio = _b[1];
8285
- var _c = useResizeObserver(),
8286
- wrapperRef = _c.ref,
8287
- _d = _c.width,
8288
- wrapperWidth = _d === void 0 ? 1 : _d,
8289
- _e = _c.height,
8290
- wrapperHeight = _e === void 0 ? 1 : _e;
8291
- var wrapperAspectRatio = useMemo(function () {
8292
- return wrapperWidth / wrapperHeight;
8293
- }, [wrapperHeight, wrapperWidth]);
8294
- var onImageLoaded = useCallback(function (e) {
8295
- var img = e.target;
8296
- setImageAspectRatio(img.naturalWidth / img.naturalHeight);
8297
- }, []);
8298
- var orientation = 'landscape'; //width > height ? 'landscape' : 'portrait'
8299
- var value = useMemo(function () {
8300
- return {
8301
- orientation: orientation,
8302
- wrapperWidth: wrapperWidth,
8303
- wrapperHeight: wrapperHeight,
8304
- wrapperAspectRatio: wrapperAspectRatio,
8305
- imageAspectRatio: imageAspectRatio,
8306
- setDimensions: setDimensions,
8307
- wrapperRef: wrapperRef,
8308
- onImageLoaded: onImageLoaded
8309
- };
8310
- }, [imageAspectRatio, onImageLoaded, setDimensions, wrapperAspectRatio, wrapperHeight, wrapperRef, wrapperWidth]);
8311
- return /*#__PURE__*/React__default.createElement(GuideOrientationContext.Provider, {
8312
- value: value
8313
- }, children);
8314
- }
8315
- function useGuideOrientationContext() {
8316
- var ctx = useContext(GuideOrientationContext);
8317
- if (!ctx) throw new Error('useGuideOrientationContext cannot be used without GuideOrientationContextProvider');
8318
- return ctx;
8319
- }
8320
-
8321
8266
  var FlipIdPrompt = function FlipIdPrompt(_a) {
8322
8267
  var _b = _a.images,
8323
8268
  images = _b === void 0 ? defaultIdCaptureGuideImages : _b,
@@ -8335,7 +8280,6 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
8335
8280
  portraitGuidesOnMobile = _g === void 0 ? true : _g,
8336
8281
  _h = _a.classNames,
8337
8282
  classNames = _h === void 0 ? {} : _h;
8338
- var onImageLoaded = useGuideOrientationContext().onImageLoaded;
8339
8283
  var orientation = getOrientation(portraitGuidesOnMobile);
8340
8284
  var _j = useState(1),
8341
8285
  transitionTime = _j[0],
@@ -8377,7 +8321,6 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
8377
8321
  alt: "",
8378
8322
  src: images[orientation].SHOW_ID_FRONT.url,
8379
8323
  className: classNames.frontImage,
8380
- onLoad: onImageLoaded,
8381
8324
  width: width,
8382
8325
  height: height
8383
8326
  })), /*#__PURE__*/React__default.createElement(FlipImageContainer, {
@@ -8398,67 +8341,97 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
8398
8341
  })));
8399
8342
  };
8400
8343
 
8344
+ var GuideOrientationContext = /*#__PURE__*/createContext({
8345
+ orientation: 'landscape',
8346
+ wrapperWidth: 1,
8347
+ wrapperHeight: 1,
8348
+ wrapperAspectRatio: 0,
8349
+ imageAspectRatio: 0,
8350
+ wrapperRef: null,
8351
+ setImageAspectRatio: function setImageAspectRatio() {
8352
+ return null;
8353
+ }
8354
+ });
8355
+ function GuideOrientationContextProvider(_a) {
8356
+ var children = _a.children;
8357
+ var _b = useState(1),
8358
+ imageAspectRatio = _b[0],
8359
+ setImageAspectRatio = _b[1];
8360
+ var _c = useResizeObserver(),
8361
+ wrapperRef = _c.ref,
8362
+ _d = _c.width,
8363
+ wrapperWidth = _d === void 0 ? 1 : _d,
8364
+ _e = _c.height,
8365
+ wrapperHeight = _e === void 0 ? 1 : _e;
8366
+ var wrapperAspectRatio = useMemo(function () {
8367
+ return wrapperWidth / wrapperHeight;
8368
+ }, [wrapperHeight, wrapperWidth]);
8369
+ var orientation = 'landscape'; //width > height ? 'landscape' : 'portrait'
8370
+ var value = useMemo(function () {
8371
+ return {
8372
+ orientation: orientation,
8373
+ wrapperWidth: wrapperWidth,
8374
+ wrapperHeight: wrapperHeight,
8375
+ wrapperAspectRatio: wrapperAspectRatio,
8376
+ imageAspectRatio: imageAspectRatio,
8377
+ setImageAspectRatio: setImageAspectRatio,
8378
+ wrapperRef: wrapperRef
8379
+ };
8380
+ }, [imageAspectRatio, wrapperAspectRatio, wrapperHeight, wrapperRef, wrapperWidth]);
8381
+ return /*#__PURE__*/React__default.createElement(GuideOrientationContext.Provider, {
8382
+ value: value
8383
+ }, children);
8384
+ }
8385
+ function useGuideOrientationContext() {
8386
+ var ctx = useContext(GuideOrientationContext);
8387
+ if (!ctx) throw new Error('useGuideOrientationContext cannot be used without GuideOrientationContextProvider');
8388
+ return ctx;
8389
+ }
8390
+
8401
8391
  var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8402
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
8403
- var _u = _a.classNames,
8404
- classNames = _u === void 0 ? {} : _u,
8405
- _v = _a.images,
8406
- userSuppliedImages = _v === void 0 ? defaultIdCaptureGuideImages : _v,
8392
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
8393
+ var _s = _a.classNames,
8394
+ classNames = _s === void 0 ? {} : _s,
8395
+ _t = _a.images,
8396
+ userSuppliedImages = _t === void 0 ? defaultIdCaptureGuideImages : _t,
8407
8397
  userSuppliedPadding = _a.padding,
8408
8398
  userSuppliedImagePadding = _a.imagePadding,
8409
- _w = _a.imageVisible,
8410
- imageVisible = _w === void 0 ? true : _w,
8399
+ _u = _a.imageVisible,
8400
+ imageVisible = _u === void 0 ? true : _u,
8411
8401
  borderWidth = _a.borderWidth,
8412
8402
  borderColor = _a.borderColor,
8413
- _x = _a.idCardBorderWidth,
8414
- idCardBorderWidth = _x === void 0 ? '2.5%' : _x,
8415
- _y = _a.idCardBorderColor,
8416
- idCardBorderColor = _y === void 0 ? 'white' : _y,
8403
+ _v = _a.idCardBorderWidth,
8404
+ idCardBorderWidth = _v === void 0 ? '2.5%' : _v,
8405
+ _w = _a.idCardBorderColor,
8406
+ idCardBorderColor = _w === void 0 ? 'white' : _w,
8417
8407
  maskColor = _a.maskColor,
8418
- _z = _a.isMirrored,
8419
- isMirrored = _z === void 0 ? false : _z,
8420
- _0 = _a.isBackToFront,
8421
- isBackToFront = _0 === void 0 ? false : _0,
8422
- _1 = _a.portraitGuidesOnMobile,
8423
- portraitGuidesOnMobile = _1 === void 0 ? true : _1,
8424
- _2 = _a.instruction,
8425
- instruction = _2 === void 0 ? '' : _2,
8426
- _3 = _a.requestedAction,
8427
- requestedAction = _3 === void 0 ? 'SHOW_ID_FRONT' : _3,
8428
- _4 = _a.progress,
8429
- progress = _4 === void 0 ? 0 : _4,
8430
- _5 = _a.status,
8431
- status = _5 === void 0 ? 'ready' : _5,
8408
+ _x = _a.isMirrored,
8409
+ isMirrored = _x === void 0 ? false : _x,
8410
+ _y = _a.isBackToFront,
8411
+ isBackToFront = _y === void 0 ? false : _y,
8412
+ _z = _a.portraitGuidesOnMobile,
8413
+ portraitGuidesOnMobile = _z === void 0 ? true : _z,
8414
+ _0 = _a.instruction,
8415
+ instruction = _0 === void 0 ? '' : _0,
8416
+ _1 = _a.requestedAction,
8417
+ requestedAction = _1 === void 0 ? 'SHOW_ID_FRONT' : _1,
8418
+ _2 = _a.progress,
8419
+ progress = _2 === void 0 ? 0 : _2,
8420
+ _3 = _a.status,
8421
+ status = _3 === void 0 ? 'ready' : _3,
8432
8422
  onClick = _a.onClick;
8433
- var _6 = useGuideOrientationContext(),
8434
- wrapperRef = _6.wrapperRef,
8435
- wrapperWidth = _6.wrapperWidth,
8436
- wrapperHeight = _6.wrapperHeight,
8437
- imageAspectRatio = _6.imageAspectRatio,
8438
- wrapperAspectRatio = _6.wrapperAspectRatio,
8439
- guideOrientationOnImageLoaded = _6.onImageLoaded,
8440
- setDimensions = _6.setDimensions;
8441
- var containerRef = useRef(null);
8442
- var _7 = useState({
8443
- width: 0,
8444
- height: 0
8445
- }),
8446
- imageDimensions = _7[0],
8447
- setImageDimensions = _7[1];
8448
- var _8 = useState({
8449
- width: 0,
8450
- height: 0
8451
- }),
8452
- containerDimensions = _8[0],
8453
- setContainerDimensions = _8[1];
8423
+ var _4 = useGuideOrientationContext(),
8424
+ wrapperRef = _4.wrapperRef,
8425
+ wrapperWidth = _4.wrapperWidth,
8426
+ imageAspectRatio = _4.imageAspectRatio,
8427
+ wrapperAspectRatio = _4.wrapperAspectRatio,
8428
+ setImageAspectRatio = _4.setImageAspectRatio;
8429
+ var _5 = useResizeObserver(),
8430
+ innerRef = _5.ref,
8431
+ innerWidth = _5.width,
8432
+ innerHeight = _5.height;
8454
8433
  var theme = useTheme();
8455
8434
  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;
8456
- useEffect(function () {
8457
- setDimensions({
8458
- width: wrapperWidth,
8459
- height: wrapperHeight
8460
- });
8461
- }, [setDimensions, wrapperHeight, wrapperWidth]);
8462
8435
  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;
8463
8436
  var paddingAndBorderPx = padding * 2 + (borderWidth !== null && borderWidth !== void 0 ? borderWidth : 0) * 2;
8464
8437
  var images = useImagesWithBackToFront(userSuppliedImages, isBackToFront);
@@ -8466,28 +8439,16 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8466
8439
  var currentImage = images[orientation][requestedAction === 'FLIP_ID' ? 'SHOW_ID_FRONT' : requestedAction];
8467
8440
  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;
8468
8441
  var centerRegionMinWidth = imageAspectRatio >= wrapperAspectRatio ? wrapperWidth - paddingAndBorderPx : undefined;
8469
- var onImageLoaded = useCallback(function (e) {
8470
- guideOrientationOnImageLoaded(e);
8471
- setImageDimensions({
8472
- width: (currentImage === null || currentImage === void 0 ? void 0 : currentImage.width) || imageDimensions.width,
8473
- height: (currentImage === null || currentImage === void 0 ? void 0 : currentImage.height) || imageDimensions.height
8442
+ function onImageLoaded() {
8443
+ setImageAspectRatio(currentImage.width / currentImage.height);
8444
+ dispatchIdCaptureAction({
8445
+ type: 'guideImageLoaded',
8446
+ payload: {
8447
+ width: currentImage.width,
8448
+ height: currentImage.height
8449
+ }
8474
8450
  });
8475
- }, [guideOrientationOnImageLoaded, currentImage, imageDimensions.height, imageDimensions.width]);
8476
- useEffect(function () {
8477
- if (containerRef.current && containerRef.current.clientWidth && containerRef.current.clientHeight) {
8478
- setContainerDimensions({
8479
- width: containerRef.current.clientWidth,
8480
- height: containerRef.current.clientHeight
8481
- });
8482
- dispatchIdCaptureAction({
8483
- type: 'guideImageLoaded',
8484
- payload: {
8485
- width: imageDimensions.width,
8486
- height: imageDimensions.height
8487
- }
8488
- });
8489
- }
8490
- }, [setDimensions, setContainerDimensions, imageDimensions.height, imageDimensions.width]);
8451
+ }
8491
8452
  return /*#__PURE__*/React__default.createElement(StyledPageContainer, {
8492
8453
  ref: wrapperRef,
8493
8454
  onClick: onClick,
@@ -8517,10 +8478,10 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8517
8478
  className: classNames.centerRegionBorder
8518
8479
  }, /*#__PURE__*/React__default.createElement(GuideCenterInner, {
8519
8480
  "$isLandscape": orientation === 'landscape',
8520
- ref: containerRef,
8481
+ ref: innerRef,
8521
8482
  className: classNames.centerRegionInner,
8522
8483
  style: {
8523
- aspectRatio: imageDimensions.width && imageDimensions.height ? imageDimensions.width / imageDimensions.height : 1
8484
+ aspectRatio: imageAspectRatio
8524
8485
  }
8525
8486
  }, /*#__PURE__*/React__default.createElement(IdCardGuideImageContainer, {
8526
8487
  status: status,
@@ -8528,7 +8489,7 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8528
8489
  borderWidth: idCardBorderWidth,
8529
8490
  borderColor: idCardBorderColor,
8530
8491
  "$isVisible": requestedAction !== 'FLIP_ID',
8531
- aspectRatio: imageDimensions.width && imageDimensions.height ? imageDimensions.width / imageDimensions.height : 1
8492
+ aspectRatio: imageAspectRatio
8532
8493
  }, /*#__PURE__*/React__default.createElement(IdCardGuideImage, {
8533
8494
  alt: "",
8534
8495
  src: currentImage.url,
@@ -8536,8 +8497,8 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8536
8497
  className: classNames.image,
8537
8498
  "$isInvisible": !imageVisible,
8538
8499
  "$isMirrored": isMirrored,
8539
- width: containerDimensions.width ? containerDimensions.width : imageDimensions.width,
8540
- height: containerDimensions.height ? containerDimensions.height : imageDimensions.height
8500
+ width: innerWidth || currentImage.width,
8501
+ height: innerHeight || currentImage.height
8541
8502
  })), requestedAction === 'FLIP_ID' && ( /*#__PURE__*/React__default.createElement(FlipIdPrompt, {
8542
8503
  images: images,
8543
8504
  borderWidth: idCardBorderWidth,
@@ -8545,8 +8506,8 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8545
8506
  portraitGuidesOnMobile: portraitGuidesOnMobile,
8546
8507
  isMirrored: isMirrored,
8547
8508
  classNames: classNames.flipIdPrompt,
8548
- width: (_s = currentImage === null || currentImage === void 0 ? void 0 : currentImage.width) !== null && _s !== void 0 ? _s : imageDimensions.width,
8549
- height: (_t = currentImage === null || currentImage === void 0 ? void 0 : currentImage.width) !== null && _t !== void 0 ? _t : imageDimensions.height
8509
+ width: currentImage.width,
8510
+ height: currentImage.height
8550
8511
  }))))), /*#__PURE__*/React__default.createElement(Spacer, {
8551
8512
  "$maskColor": maskColor,
8552
8513
  "$minWidth": padding,
@@ -8586,14 +8547,14 @@ var GuideCenterRegion = styled.div(templateObject_6$6 || (templateObject_6$6 = _
8586
8547
  }, function (props) {
8587
8548
  return props.$isMirrored ? 'transform: scaleX(-1);' : '';
8588
8549
  });
8589
- 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) {
8550
+ 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) {
8590
8551
  var _a, _b;
8591
8552
  return "".concat((_a = props.$borderWidth) !== null && _a !== void 0 ? _a : 4, "px solid ").concat((_b = props.$borderColor) !== null && _b !== void 0 ? _b : 'white');
8592
8553
  }, function (props) {
8593
8554
  return props.$padding ? "padding: ".concat(props.$padding, "px;") : '';
8594
8555
  });
8595
8556
  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"])));
8596
- 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) {
8557
+ 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) {
8597
8558
  return props.$isLandscape ? 'height: 100%;' : 'width: 90%;';
8598
8559
  });
8599
8560
  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;