idmission-web-sdk 2.5.61 → 2.5.62
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/index.d.ts +1 -1
- package/dist/props.json +1 -1
- package/dist/sdk2.cjs.development.js +124 -105
- 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 +124 -105
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +124 -105
- 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/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -7619,7 +7619,7 @@ function useGuideOrientationContext() {
|
|
|
7619
7619
|
return ctx;
|
|
7620
7620
|
}
|
|
7621
7621
|
|
|
7622
|
-
var _templateObject$_, _templateObject2$
|
|
7622
|
+
var _templateObject$_, _templateObject2$Q;
|
|
7623
7623
|
var _excluded$i = ["isRearFacing"];
|
|
7624
7624
|
var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref) {
|
|
7625
7625
|
var isRearFacing = _ref.isRearFacing,
|
|
@@ -7635,7 +7635,7 @@ var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref)
|
|
|
7635
7635
|
var FullscreenVideoTag = styled.video(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n transform: ", ";\n transform-style: preserve-3d;\n min-width: 100%;\n min-height: 100%;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n background: black;\n z-index: -2;\n"])), function (props) {
|
|
7636
7636
|
return props.$isRearFacing ? '' : 'scaleX(-1)';
|
|
7637
7637
|
});
|
|
7638
|
-
var CameraFeedWrapper = styled.div(_templateObject2$
|
|
7638
|
+
var CameraFeedWrapper = styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n /* Keep CameraVideoTag's legacy negative z-index above opaque flow shells. */\n isolation: isolate;\n\n ", "\n\n /* Last, so it wins over both branches' display. */\n ", "\n"])), function (props) {
|
|
7639
7639
|
return props.$mode === 'snapToGuides' ? "display: flex;\n position: absolute;\n z-index: -2;\n left: " + props.$x + "px;\n top: " + props.$y + "px;\n width: " + props.$w + "px;\n height: " + props.$h + "px;\n /* Match the mask's hole when the guide publishes a radius. The mask\n sits above this feed (-1 vs -2), so square corners here show through\n as dimmed wedges outside the rounded hole. Guides that publish no\n radius keep the previous unclipped behaviour. */\n " + (props.$radius ? "border-radius: " + props.$radius + "px; overflow: hidden;" : '') : "display: flex;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;";
|
|
7640
7640
|
}, function (props) {
|
|
7641
7641
|
return props.$hidden ? 'display: none;' : '';
|
|
@@ -7690,7 +7690,7 @@ function ScalingCameraFeed(_ref2) {
|
|
|
7690
7690
|
});
|
|
7691
7691
|
}
|
|
7692
7692
|
|
|
7693
|
-
var _templateObject$Z, _templateObject2$
|
|
7693
|
+
var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
|
|
7694
7694
|
function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7695
7695
|
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
7696
7696
|
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -7713,7 +7713,7 @@ function DebugStatsPane(_ref2) {
|
|
|
7713
7713
|
return /*#__PURE__*/createPortal(element, portalLocation);
|
|
7714
7714
|
}
|
|
7715
7715
|
var DebugStatsPaneDiv = styled.span(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
|
|
7716
|
-
var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$
|
|
7716
|
+
var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
|
|
7717
7717
|
var $flipX = _ref3.$flipX;
|
|
7718
7718
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
7719
7719
|
});
|
|
@@ -8215,7 +8215,7 @@ var StyledButton = styled.button(_templateObject$X || (_templateObject$X = _tagg
|
|
|
8215
8215
|
var _templateObject$W;
|
|
8216
8216
|
var ButtonsRow$2 = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n text-align: left;\n"])));
|
|
8217
8217
|
|
|
8218
|
-
var _templateObject$V, _templateObject2$
|
|
8218
|
+
var _templateObject$V, _templateObject2$O;
|
|
8219
8219
|
var GuidanceMessageContainerDiv = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n padding: 0 10%;\n box-sizing: border-box;\n"])), function (_ref) {
|
|
8220
8220
|
var $top = _ref.$top;
|
|
8221
8221
|
return $top != null ? $top : '10%';
|
|
@@ -8229,7 +8229,7 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
|
|
|
8229
8229
|
if (!portalLocation) return element;
|
|
8230
8230
|
return /*#__PURE__*/createPortal(element, portalLocation);
|
|
8231
8231
|
};
|
|
8232
|
-
var GuidanceMessage = styled.div(_templateObject2$
|
|
8232
|
+
var GuidanceMessage = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
|
|
8233
8233
|
var _ref3, _props$$background, _props$theme, _props$$variant;
|
|
8234
8234
|
return (_ref3 = (_props$$background = props.$background) != null ? _props$$background : (_props$theme = props.theme) == null || (_props$theme = _props$theme.guidanceMessages) == null || (_props$theme = _props$theme[(_props$$variant = props.$variant) != null ? _props$$variant : 'default']) == null ? void 0 : _props$theme.backgroundColor) != null ? _ref3 : 'white';
|
|
8235
8235
|
}, function (props) {
|
|
@@ -8281,19 +8281,19 @@ var PlacedGuidanceMessageContainer = function PlacedGuidanceMessageContainer(_re
|
|
|
8281
8281
|
});
|
|
8282
8282
|
};
|
|
8283
8283
|
|
|
8284
|
-
var _templateObject$U, _templateObject2$
|
|
8284
|
+
var _templateObject$U, _templateObject2$N, _templateObject3$C, _templateObject4$x;
|
|
8285
8285
|
var wavesAnimation = keyframes(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
|
|
8286
|
-
var progressBarAnimation = keyframes(_templateObject2$
|
|
8286
|
+
var progressBarAnimation = keyframes(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
8287
8287
|
keyframes(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
8288
8288
|
keyframes(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
8289
8289
|
|
|
8290
|
-
var _templateObject$T, _templateObject2$
|
|
8290
|
+
var _templateObject$T, _templateObject2$M, _templateObject3$B, _templateObject4$w, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$a, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
|
|
8291
8291
|
var OverlayContainer = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"])), function (props) {
|
|
8292
8292
|
return props.theme.background ? "" + props.theme.background : "white";
|
|
8293
8293
|
}, function (props) {
|
|
8294
8294
|
return props.theme.textColor ? "color: " + props.theme.textColor + ";" : "";
|
|
8295
8295
|
});
|
|
8296
|
-
var OverlayInner$2 = styled.div(_templateObject2$
|
|
8296
|
+
var OverlayInner$2 = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n ", "\n"])), function (props) {
|
|
8297
8297
|
var _props$theme$textAlig;
|
|
8298
8298
|
return (_props$theme$textAlig = props.theme.textAlign) != null ? _props$theme$textAlig : 'center';
|
|
8299
8299
|
}, function (props) {
|
|
@@ -8463,13 +8463,13 @@ var error = function error() {
|
|
|
8463
8463
|
|
|
8464
8464
|
var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
|
|
8465
8465
|
_excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
|
|
8466
|
-
var _templateObject$S, _templateObject2$
|
|
8466
|
+
var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
8467
8467
|
var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
|
|
8468
8468
|
return props.$isVisible ? '' : 'opacity: 0;';
|
|
8469
8469
|
}, function (props) {
|
|
8470
8470
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
8471
8471
|
});
|
|
8472
|
-
var IdCardGuideImage = styled.img(_templateObject2$
|
|
8472
|
+
var IdCardGuideImage = styled.img(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
|
|
8473
8473
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
8474
8474
|
}, function (props) {
|
|
8475
8475
|
return props.$isInvisible ? 'opacity: 0;' : '';
|
|
@@ -8861,7 +8861,7 @@ var Wrapper$1 = styled.div(_templateObject$R || (_templateObject$R = _taggedTemp
|
|
|
8861
8861
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
8862
8862
|
});
|
|
8863
8863
|
|
|
8864
|
-
var _templateObject$Q, _templateObject2$
|
|
8864
|
+
var _templateObject$Q, _templateObject2$K, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
|
|
8865
8865
|
var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
|
|
8866
8866
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid2, _theme$idCapture2, _theme$idCapture$guid3, _theme$idCapture3, _theme$idCapture$guid4, _theme$idCapture4, _theme$idCapture$guid5, _theme$idCapture5;
|
|
8867
8867
|
var _ref$classNames = _ref.classNames,
|
|
@@ -9018,7 +9018,7 @@ var regionClsx = function regionClsx(classNames, which) {
|
|
|
9018
9018
|
}).join(' ');
|
|
9019
9019
|
};
|
|
9020
9020
|
var StyledPageContainer = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
|
|
9021
|
-
var GuidesContainer = styled.div(_templateObject2$
|
|
9021
|
+
var GuidesContainer = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
|
|
9022
9022
|
var GuideCenterRow = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
|
|
9023
9023
|
var GuideRegion = styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
|
|
9024
9024
|
var _ref2, _props$$maskColor, _props$theme;
|
|
@@ -9050,7 +9050,7 @@ var GuideCenterInner = styled.div(_templateObject9$c || (_templateObject9$c = _t
|
|
|
9050
9050
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
9051
9051
|
var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
|
|
9052
9052
|
|
|
9053
|
-
var _templateObject$P, _templateObject2$
|
|
9053
|
+
var _templateObject$P, _templateObject2$J, _templateObject3$y, _templateObject4$t;
|
|
9054
9054
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
9055
9055
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
|
|
9056
9056
|
var aspectRatio = _ref.aspectRatio,
|
|
@@ -9290,7 +9290,7 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
|
9290
9290
|
var CanvasWrapper$1 = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n background-clip: padding-box;\n /* The default -1 puts the mask behind a 'fullscreen' camera feed, which hides\n the dimming entirely; it only works because 'snapToGuides' clips the feed to\n the guide rect. Lifting it is opt-in so existing integrations are untouched. */\n ", "\n"])), function (props) {
|
|
9291
9291
|
return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
|
|
9292
9292
|
});
|
|
9293
|
-
var Canvas$2 = styled.canvas(_templateObject2$
|
|
9293
|
+
var Canvas$2 = styled.canvas(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
9294
9294
|
var CaptureAreaProgress = styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
|
|
9295
9295
|
return props.$x;
|
|
9296
9296
|
}, function (props) {
|
|
@@ -9369,7 +9369,7 @@ var ExitCaptureButton = function ExitCaptureButton(_ref) {
|
|
|
9369
9369
|
});
|
|
9370
9370
|
};
|
|
9371
9371
|
|
|
9372
|
-
var _templateObject$N, _templateObject2$
|
|
9372
|
+
var _templateObject$N, _templateObject2$I, _templateObject3$x, _templateObject4$s;
|
|
9373
9373
|
function IdCaptureLoadingGraphic(props) {
|
|
9374
9374
|
var isMobile = window.innerHeight > window.innerWidth;
|
|
9375
9375
|
return isMobile ? jsx(IdCaptureLoadingGraphicMobile, _extends({}, props)) : jsx(IdCaptureLoadingGraphicDesktop, _extends({}, props));
|
|
@@ -9867,7 +9867,7 @@ function IdCaptureLoadingGraphicMobile(_ref2) {
|
|
|
9867
9867
|
});
|
|
9868
9868
|
}
|
|
9869
9869
|
var LoadingGraphicWrapper = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
|
|
9870
|
-
var LoadingGraphicSvg = styled.svg(_templateObject2$
|
|
9870
|
+
var LoadingGraphicSvg = styled.svg(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n max-height: 80%;\n max-width: 80%;\n"])), function (props) {
|
|
9871
9871
|
return props.$frame > 1 ? 1 : props.$frame === 1 ? 1.25 : 0.75;
|
|
9872
9872
|
}, function (props) {
|
|
9873
9873
|
return props.$frame >= 5 ? 10 : 0;
|
|
@@ -10135,7 +10135,7 @@ function CustomerLoadingSpinner(_ref2) {
|
|
|
10135
10135
|
// parent's gap/padding, which would offset the fallback it sits next to.
|
|
10136
10136
|
var SpinnerSlot = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
|
|
10137
10137
|
|
|
10138
|
-
var _templateObject$L, _templateObject2$
|
|
10138
|
+
var _templateObject$L, _templateObject2$H, _templateObject3$w, _templateObject4$r, _templateObject5$p;
|
|
10139
10139
|
var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
|
|
10140
10140
|
// Module-level so the default `now` prop has a stable identity across
|
|
10141
10141
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -10331,7 +10331,7 @@ var OverlayInner$1 = styled(LoadingOverlayInner)(_templateObject$L || (_template
|
|
|
10331
10331
|
var _props$theme$idCaptur2, _props$theme2;
|
|
10332
10332
|
return (_props$theme$idCaptur2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.idCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$idCaptur2 : 'black';
|
|
10333
10333
|
});
|
|
10334
|
-
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(_templateObject2$
|
|
10334
|
+
var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
|
|
10335
10335
|
var _props$theme$idCaptur3, _props$theme3;
|
|
10336
10336
|
return (_props$theme$idCaptur3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.idCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$idCaptur3 : 'white';
|
|
10337
10337
|
}, function (props) {
|
|
@@ -18985,7 +18985,7 @@ function instructionVerbiage(bag, code) {
|
|
|
18985
18985
|
return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
|
|
18986
18986
|
}
|
|
18987
18987
|
|
|
18988
|
-
var _templateObject$K, _templateObject2$
|
|
18988
|
+
var _templateObject$K, _templateObject2$G, _templateObject3$v, _templateObject4$q, _templateObject5$o;
|
|
18989
18989
|
var PDF417_ASPECT_RATIO = 3 / 1;
|
|
18990
18990
|
function BarcodeGuideOverlay(_ref) {
|
|
18991
18991
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
@@ -19116,14 +19116,14 @@ function BarcodeGuideOverlay(_ref) {
|
|
|
19116
19116
|
});
|
|
19117
19117
|
}
|
|
19118
19118
|
var Wrapper = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n"])));
|
|
19119
|
-
var Canvas$1 = styled.canvas(_templateObject2$
|
|
19119
|
+
var Canvas$1 = styled.canvas(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
19120
19120
|
var TextOverlay = styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding-top: 48px;\n pointer-events: none;\n z-index: 2;\n"])));
|
|
19121
19121
|
var HeaderText = styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n margin-bottom: 16px;\n"])));
|
|
19122
19122
|
var InstructionText = styled.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 16px;\n font-weight: 400;\n text-align: center;\n max-width: 300px;\n line-height: 1.4;\n opacity: 0.9;\n"])));
|
|
19123
19123
|
|
|
19124
|
-
var _templateObject$J, _templateObject2$
|
|
19124
|
+
var _templateObject$J, _templateObject2$F, _templateObject3$u, _templateObject4$p, _templateObject5$n, _templateObject6$h;
|
|
19125
19125
|
var scaleIn = keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"])));
|
|
19126
|
-
var drawCheck = keyframes(_templateObject2$
|
|
19126
|
+
var drawCheck = keyframes(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
|
|
19127
19127
|
styled.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
|
|
19128
19128
|
styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n animation: ", " 0.4s ease-out forwards;\n"])), function (props) {
|
|
19129
19129
|
return props.$color;
|
|
@@ -19223,7 +19223,7 @@ function IdCaptureGuides(_ref) {
|
|
|
19223
19223
|
});
|
|
19224
19224
|
}
|
|
19225
19225
|
|
|
19226
|
-
var _templateObject$I, _templateObject2$
|
|
19226
|
+
var _templateObject$I, _templateObject2$E, _templateObject3$t, _templateObject4$o, _templateObject5$m;
|
|
19227
19227
|
function OverrideWrongDocumentTypeDialog(_ref) {
|
|
19228
19228
|
var visible = _ref.visible,
|
|
19229
19229
|
onOverride = _ref.onOverride,
|
|
@@ -19262,7 +19262,7 @@ var Container$3 = styled.div(_templateObject$I || (_templateObject$I = _taggedTe
|
|
|
19262
19262
|
var _props$theme$idCaptur3, _props$theme$idCaptur4;
|
|
19263
19263
|
return (_props$theme$idCaptur3 = (_props$theme$idCaptur4 = props.theme.idCapture) == null || (_props$theme$idCaptur4 = _props$theme$idCaptur4.overrideWrongDocumentTypeGuidance) == null ? void 0 : _props$theme$idCaptur4.textColor) != null ? _props$theme$idCaptur3 : 'black';
|
|
19264
19264
|
});
|
|
19265
|
-
var InnerContainer = styled.div(_templateObject2$
|
|
19265
|
+
var InnerContainer = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
19266
19266
|
var Message = styled.span(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
19267
19267
|
var ButtonContainer = styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
|
|
19268
19268
|
var Button = styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
@@ -19372,7 +19372,7 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref)
|
|
|
19372
19372
|
});
|
|
19373
19373
|
};
|
|
19374
19374
|
|
|
19375
|
-
var _templateObject$H, _templateObject2$
|
|
19375
|
+
var _templateObject$H, _templateObject2$D;
|
|
19376
19376
|
var RING_SIZE = 74;
|
|
19377
19377
|
var RADIUS = 32;
|
|
19378
19378
|
var CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
@@ -19418,7 +19418,7 @@ var RingProgress = function RingProgress(_ref) {
|
|
|
19418
19418
|
});
|
|
19419
19419
|
};
|
|
19420
19420
|
var RingSvg = styled.svg(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n transform: rotate(-90deg);\n"])), RING_SIZE, RING_SIZE);
|
|
19421
|
-
var FillCircle = styled.circle(_templateObject2$
|
|
19421
|
+
var FillCircle = styled.circle(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n transition: stroke-dashoffset 0.3s linear;\n"])));
|
|
19422
19422
|
|
|
19423
19423
|
var selectRingStatusKey = function selectRingStatusKey(_ref) {
|
|
19424
19424
|
var ready = _ref.ready,
|
|
@@ -19433,7 +19433,7 @@ var selectRingStatusKey = function selectRingStatusKey(_ref) {
|
|
|
19433
19433
|
return 'warming';
|
|
19434
19434
|
};
|
|
19435
19435
|
|
|
19436
|
-
var _templateObject$G, _templateObject2$
|
|
19436
|
+
var _templateObject$G, _templateObject2$C, _templateObject3$s, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9, _templateObject10$9;
|
|
19437
19437
|
/**
|
|
19438
19438
|
* The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
|
|
19439
19439
|
* badge, title/subtitle, step chips, reassurance chip, "Enable camera &
|
|
@@ -19513,7 +19513,7 @@ var RingIntroScreen = function RingIntroScreen(_ref) {
|
|
|
19513
19513
|
});
|
|
19514
19514
|
};
|
|
19515
19515
|
var _float = keyframes(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
|
|
19516
|
-
var sweep = keyframes(_templateObject2$
|
|
19516
|
+
var sweep = keyframes(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n from { transform: translateX(-100%); }\n to { transform: translateX(100%); }\n"])));
|
|
19517
19517
|
var IntroLayout = styled.div(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 34px;\n text-align: center;\n"])));
|
|
19518
19518
|
var Badge = styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 84px;\n height: 84px;\n border-radius: 28px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 12px 28px\n color-mix(in srgb, ", " 35%, transparent);\n margin-bottom: 8px;\n animation: ", " 3s ease-in-out infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n svg {\n width: 40px;\n height: 40px;\n fill: #ffffff;\n }\n"])), function (props) {
|
|
19519
19519
|
return props.$color;
|
|
@@ -19563,7 +19563,7 @@ var selectRingOverlayStage = function selectRingOverlayStage(_ref) {
|
|
|
19563
19563
|
return requesting ? 'requesting' : 'intro';
|
|
19564
19564
|
};
|
|
19565
19565
|
|
|
19566
|
-
var _templateObject$F, _templateObject2$
|
|
19566
|
+
var _templateObject$F, _templateObject2$B, _templateObject3$r, _templateObject4$m, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
|
|
19567
19567
|
/** Minimum time a stage handoff stays on screen so its message is
|
|
19568
19568
|
* legible even when everything preloaded and readiness is instant. */
|
|
19569
19569
|
var STAGE_TRANSITION_HOLD_MS = 1600;
|
|
@@ -19623,7 +19623,7 @@ var RingStageTransition = function RingStageTransition(_ref) {
|
|
|
19623
19623
|
});
|
|
19624
19624
|
};
|
|
19625
19625
|
var badgePop = keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n 0% { transform: scale(0.4); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); opacity: 1; }\n"])));
|
|
19626
|
-
var cardFlip = keyframes(_templateObject2$
|
|
19626
|
+
var cardFlip = keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
|
|
19627
19627
|
var microcopyBeat = keyframes(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n 0% { opacity: 0; transform: translateY(6px); }\n 18% { opacity: 1; transform: translateY(0); }\n 60% { opacity: 1; transform: translateY(0); }\n 80% { opacity: 0; transform: translateY(-6px); }\n 100% { opacity: 0; }\n"])));
|
|
19628
19628
|
var rise = keyframes(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
|
|
19629
19629
|
var riseSubtle = keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
|
|
@@ -19654,7 +19654,7 @@ var LoadingRow = styled.div(_templateObject15$4 || (_templateObject15$4 = _tagge
|
|
|
19654
19654
|
return props.$visible ? 1 : 0;
|
|
19655
19655
|
});
|
|
19656
19656
|
|
|
19657
|
-
var _templateObject$E, _templateObject2$
|
|
19657
|
+
var _templateObject$E, _templateObject2$A, _templateObject3$q, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$c;
|
|
19658
19658
|
// Module-level so the default `now` prop has a stable identity across
|
|
19659
19659
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
19660
19660
|
var defaultNow$2 = function defaultNow() {
|
|
@@ -19929,7 +19929,7 @@ var IdCaptureLoadingOverlayRing = function IdCaptureLoadingOverlayRing(_ref) {
|
|
|
19929
19929
|
});
|
|
19930
19930
|
};
|
|
19931
19931
|
var overlayFadeIn$1 = keyframes(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
19932
|
-
var RingOverlayInner$1 = styled(LoadingOverlayInner)(_templateObject2$
|
|
19932
|
+
var RingOverlayInner$1 = styled(LoadingOverlayInner)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
|
|
19933
19933
|
var _props$theme$idCaptur, _props$theme;
|
|
19934
19934
|
var tintBase = (_props$theme$idCaptur = (_props$theme = props.theme) == null || (_props$theme = _props$theme.idCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$idCaptur : 'var(--idm-color-primary-500)';
|
|
19935
19935
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
|
|
@@ -20033,11 +20033,11 @@ var CapturedDocumentImg = function CapturedDocumentImg(_ref) {
|
|
|
20033
20033
|
});
|
|
20034
20034
|
};
|
|
20035
20035
|
|
|
20036
|
-
var _templateObject$D, _templateObject2$
|
|
20036
|
+
var _templateObject$D, _templateObject2$z;
|
|
20037
20037
|
var Card = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100% - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
|
|
20038
|
-
var FlexCard = styled(Card)(_templateObject2$
|
|
20038
|
+
var FlexCard = styled(Card)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
20039
20039
|
|
|
20040
|
-
var _templateObject$C, _templateObject2$
|
|
20040
|
+
var _templateObject$C, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
|
|
20041
20041
|
function ReviewDocumentDiagnostics(_ref) {
|
|
20042
20042
|
var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
|
|
20043
20043
|
var document = _ref.document,
|
|
@@ -20497,7 +20497,7 @@ function RotationAttemptRow(_ref3) {
|
|
|
20497
20497
|
});
|
|
20498
20498
|
}
|
|
20499
20499
|
var DebugInfoContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border-radius: 6px;\n border: 1px solid #e9ecef;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n line-height: 1.35;\n text-align: left;\n"])));
|
|
20500
|
-
var DebugSection = styled.div(_templateObject2$
|
|
20500
|
+
var DebugSection = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
|
|
20501
20501
|
var DebugLabel = styled.span(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
|
|
20502
20502
|
var DebugValue = styled.span(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
|
|
20503
20503
|
var ScoreBadge = styled.span(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n padding: 0.1875rem 0.5rem;\n border: 1px solid\n ", ";\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 0.75rem;\n font-weight: 600;\n"])), function (_ref4) {
|
|
@@ -20612,7 +20612,7 @@ var DiagnosticsBadge = styled.span(_templateObject44 || (_templateObject44 = _ta
|
|
|
20612
20612
|
return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
|
|
20613
20613
|
});
|
|
20614
20614
|
|
|
20615
|
-
var _templateObject$B, _templateObject2$
|
|
20615
|
+
var _templateObject$B, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$h;
|
|
20616
20616
|
var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
|
|
20617
20617
|
var ReviewScreen = function ReviewScreen(_ref) {
|
|
20618
20618
|
var capturedDocuments = _ref.capturedDocuments,
|
|
@@ -20700,12 +20700,12 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20700
20700
|
});
|
|
20701
20701
|
};
|
|
20702
20702
|
var Heading$9 = styled.h1(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
|
|
20703
|
-
var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$
|
|
20703
|
+
var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
20704
20704
|
var ImageRow = styled(OverlayImageRow)(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
20705
20705
|
var ImageCol$1 = styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
20706
20706
|
var StyledImage = styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
20707
20707
|
|
|
20708
|
-
var _templateObject$A, _templateObject2$
|
|
20708
|
+
var _templateObject$A, _templateObject2$w, _templateObject3$n, _templateObject4$i;
|
|
20709
20709
|
var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
20710
20710
|
var _assets$imageUrl, _classNames$container;
|
|
20711
20711
|
var onRetry = _ref.onRetry,
|
|
@@ -20765,11 +20765,11 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
|
20765
20765
|
});
|
|
20766
20766
|
};
|
|
20767
20767
|
var StyledOverlayInner$2 = styled(OverlayInner$2)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
|
|
20768
|
-
var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$
|
|
20768
|
+
var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
|
|
20769
20769
|
var Description$3 = styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
|
|
20770
20770
|
var RetryButton$1 = styled(LoaderButton)(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
|
|
20771
20771
|
|
|
20772
|
-
var _templateObject$z, _templateObject2$
|
|
20772
|
+
var _templateObject$z, _templateObject2$v, _templateObject3$m;
|
|
20773
20773
|
var ErrorScreen = function ErrorScreen(_ref) {
|
|
20774
20774
|
var error = _ref.error,
|
|
20775
20775
|
onRetry = _ref.onRetry,
|
|
@@ -20961,7 +20961,7 @@ var cameraFailureClassNames = function cameraFailureClassNames(own, bag) {
|
|
|
20961
20961
|
// IdCaptureLoadingOverlayDefault's `theme...textColor ?? 'black'`); do the
|
|
20962
20962
|
// same here rather than inherit a foreground meant for the dark overlays.
|
|
20963
20963
|
var ErrorCard = styled(FlexCard)(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
|
|
20964
|
-
var Heading$8 = styled.h1(_templateObject2$
|
|
20964
|
+
var Heading$8 = styled.h1(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
|
|
20965
20965
|
var Description$2 = styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
|
|
20966
20966
|
|
|
20967
20967
|
// The one file-read both fallback screens use.
|
|
@@ -21003,7 +21003,7 @@ function fallbackCaptureMoreLabelForStep(idCaptureRequirement, idCardBackCapture
|
|
|
21003
21003
|
return key === 'third' ? 'ID page of passport' : 'back of ID card';
|
|
21004
21004
|
}
|
|
21005
21005
|
|
|
21006
|
-
var _templateObject$y, _templateObject2$
|
|
21006
|
+
var _templateObject$y, _templateObject2$u, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$c, _templateObject7$a;
|
|
21007
21007
|
function IdCaptureFallback(_ref) {
|
|
21008
21008
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21009
21009
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21173,14 +21173,14 @@ function IdCaptureFallback(_ref) {
|
|
|
21173
21173
|
});
|
|
21174
21174
|
}
|
|
21175
21175
|
var StyledOverlayInner$1 = styled(OverlayInner$2)(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
21176
|
-
var Heading$7 = styled.h3(_templateObject2$
|
|
21176
|
+
var Heading$7 = styled.h3(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21177
21177
|
var Description$1 = styled.p(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21178
21178
|
var Instruction = styled.p(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21179
21179
|
var ReadFailed$1 = styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21180
21180
|
var ImageCol = styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
|
|
21181
21181
|
var StyledButtonsRow$6 = styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
21182
21182
|
|
|
21183
|
-
var _templateObject$x, _templateObject2$
|
|
21183
|
+
var _templateObject$x, _templateObject2$t, _templateObject3$k, _templateObject4$g, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
|
|
21184
21184
|
function IdCaptureOrUploadScreen(_ref) {
|
|
21185
21185
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21186
21186
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21431,7 +21431,7 @@ var ScreenContainer = styled.div(_templateObject$x || (_templateObject$x = _tagg
|
|
|
21431
21431
|
var _props$theme$backgrou, _props$theme;
|
|
21432
21432
|
return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
21433
21433
|
});
|
|
21434
|
-
var ScreenPanel = styled.div(_templateObject2$
|
|
21434
|
+
var ScreenPanel = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
|
|
21435
21435
|
var DashedSeparator = styled.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 320px;\n border-top: 1px dashed currentColor;\n opacity: 0.4;\n"])));
|
|
21436
21436
|
var OrWrapper = styled.span(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
|
|
21437
21437
|
var _props$theme$backgrou2, _props$theme2;
|
|
@@ -25933,7 +25933,7 @@ function SelfieCameraFeed(_ref) {
|
|
|
25933
25933
|
});
|
|
25934
25934
|
}
|
|
25935
25935
|
|
|
25936
|
-
var _templateObject$u, _templateObject2$
|
|
25936
|
+
var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
|
|
25937
25937
|
var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
|
|
25938
25938
|
_excluded2$4 = ["status", "guideStyle"],
|
|
25939
25939
|
_excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
|
|
@@ -26011,7 +26011,7 @@ HeadGuideSvg.displayName = 'HeadGuideSvg';
|
|
|
26011
26011
|
// while also running the camera and face model. Waves only render while the
|
|
26012
26012
|
// status is 'ready', so the pulse replays each time the face leaves the guide.
|
|
26013
26013
|
var headGuideWavesAnimation = keyframes(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 60% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(1.3);\n }\n"])));
|
|
26014
|
-
var PulsingHeadGuideContainer = styled.div(_templateObject2$
|
|
26014
|
+
var PulsingHeadGuideContainer = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n opacity: 0;\n animation: ", " 2s ease-out 3;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n }\n\n /* Paints far past its box; the nearest clipping ancestor bounds it\n (FaceCaptureGuideOverlay clips to the capture surface). */\n & > .idmSdkSpotlight {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"])), headGuideWavesAnimation);
|
|
26015
26015
|
function HeadGuide(_ref2) {
|
|
26016
26016
|
var _theme$selfieCapture$, _theme$selfieCapture, _theme$selfieCapture$2, _theme$selfieCapture2, _theme$selfieCapture$3, _theme$selfieCapture3, _props$className;
|
|
26017
26017
|
var _ref2$status = _ref2.status,
|
|
@@ -26320,11 +26320,11 @@ function SelfieCaptureAnimatedMaskWithStatus(_ref4) {
|
|
|
26320
26320
|
}));
|
|
26321
26321
|
}
|
|
26322
26322
|
|
|
26323
|
-
var _templateObject$t, _templateObject2$
|
|
26323
|
+
var _templateObject$t, _templateObject2$r;
|
|
26324
26324
|
var FaceCaptureGuideContainer = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1000;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px;\n box-sizing: border-box;\n /* Keeps the spotlight dim inside the capture surface when the view is\n embedded rather than full-screen. */\n ", "\n"])), function (props) {
|
|
26325
26325
|
return props.$clip ? 'overflow: hidden;' : '';
|
|
26326
26326
|
});
|
|
26327
|
-
var FaceCaptureGuideInner = styled.div(_templateObject2$
|
|
26327
|
+
var FaceCaptureGuideInner = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 60%;\n"])));
|
|
26328
26328
|
// Memoized: the capture surfaces re-render on every analyzed frame, but the
|
|
26329
26329
|
// guide's props only change when the mask status does.
|
|
26330
26330
|
var FaceCaptureGuideOverlay = /*#__PURE__*/memo(function FaceCaptureGuideOverlay(_ref) {
|
|
@@ -26635,7 +26635,7 @@ function SelfieCaptureLoadingGraphic(_ref) {
|
|
|
26635
26635
|
});
|
|
26636
26636
|
}
|
|
26637
26637
|
|
|
26638
|
-
var _templateObject$s, _templateObject2$
|
|
26638
|
+
var _templateObject$s, _templateObject2$q, _templateObject3$i, _templateObject4$e, _templateObject5$e;
|
|
26639
26639
|
var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
|
|
26640
26640
|
// Module-level so the default `now` prop has a stable identity across
|
|
26641
26641
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -26813,7 +26813,7 @@ var OverlayInner = styled(LoadingOverlayInner)(_templateObject$s || (_templateOb
|
|
|
26813
26813
|
var _props$theme$selfieCa2, _props$theme2;
|
|
26814
26814
|
return (_props$theme$selfieCa2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.selfieCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$selfieCa2 : 'black';
|
|
26815
26815
|
});
|
|
26816
|
-
var ButtonsRow = styled(LoadingOverlayButtonsRow)(_templateObject2$
|
|
26816
|
+
var ButtonsRow = styled(LoadingOverlayButtonsRow)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
|
|
26817
26817
|
var _props$theme$selfieCa3, _props$theme3;
|
|
26818
26818
|
return (_props$theme$selfieCa3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.selfieCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$selfieCa3 : 'white';
|
|
26819
26819
|
}, function (props) {
|
|
@@ -26872,7 +26872,7 @@ function selfieLoadingOverlayBottomEdgeColor(theme, modelsReady) {
|
|
|
26872
26872
|
});
|
|
26873
26873
|
}
|
|
26874
26874
|
|
|
26875
|
-
var _templateObject$r, _templateObject2$
|
|
26875
|
+
var _templateObject$r, _templateObject2$p;
|
|
26876
26876
|
var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLegacy(_ref) {
|
|
26877
26877
|
var _assets$instructionIm;
|
|
26878
26878
|
var state = _ref.state,
|
|
@@ -26949,9 +26949,9 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
|
|
|
26949
26949
|
});
|
|
26950
26950
|
};
|
|
26951
26951
|
var StyledGuidanceMessage = styled(GuidanceMessage)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
|
|
26952
|
-
var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$
|
|
26952
|
+
var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
|
|
26953
26953
|
|
|
26954
|
-
var _templateObject$q, _templateObject2$
|
|
26954
|
+
var _templateObject$q, _templateObject2$o, _templateObject3$h, _templateObject4$d, _templateObject5$d, _templateObject6$a, _templateObject7$8;
|
|
26955
26955
|
// Module-level so the default `now` prop has a stable identity across
|
|
26956
26956
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
26957
26957
|
var defaultNow = function defaultNow() {
|
|
@@ -27210,7 +27210,7 @@ var SelfieCaptureLoadingOverlayRing = function SelfieCaptureLoadingOverlayRing(_
|
|
|
27210
27210
|
});
|
|
27211
27211
|
};
|
|
27212
27212
|
var overlayFadeIn = keyframes(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
27213
|
-
var RingOverlayInner = styled(LoadingOverlayInner)(_templateObject2$
|
|
27213
|
+
var RingOverlayInner = styled(LoadingOverlayInner)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
|
|
27214
27214
|
var _props$theme$selfieCa, _props$theme;
|
|
27215
27215
|
var tintBase = (_props$theme$selfieCa = (_props$theme = props.theme) == null || (_props$theme = _props$theme.selfieCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$selfieCa : 'var(--idm-color-primary-500)';
|
|
27216
27216
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
|
|
@@ -27252,7 +27252,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
|
|
|
27252
27252
|
return jsx(Component, _extends({}, props));
|
|
27253
27253
|
};
|
|
27254
27254
|
|
|
27255
|
-
var _templateObject$p, _templateObject2$
|
|
27255
|
+
var _templateObject$p, _templateObject2$n, _templateObject3$g, _templateObject4$c, _templateObject5$c, _templateObject6$9;
|
|
27256
27256
|
function SelfieCaptureFallback(_ref) {
|
|
27257
27257
|
var _ref$silentFallback = _ref.silentFallback,
|
|
27258
27258
|
silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
|
|
@@ -27407,13 +27407,13 @@ function SelfieCaptureFallback(_ref) {
|
|
|
27407
27407
|
});
|
|
27408
27408
|
}
|
|
27409
27409
|
var StyledOverlayInner = styled(OverlayInner$2)(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
|
|
27410
|
-
var Heading$6 = styled.h1(_templateObject2$
|
|
27410
|
+
var Heading$6 = styled.h1(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
|
|
27411
27411
|
var Description = styled.p(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
|
|
27412
27412
|
var ImageContainer$4 = styled.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin-bottom: 1.5rem;\n\n & > img {\n max-width: 100%;\n max-height: 40vh;\n border-radius: 8px;\n }\n"])));
|
|
27413
27413
|
var ReadFailed = styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
|
|
27414
27414
|
var StyledButtonsRow$4 = styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
|
|
27415
27415
|
|
|
27416
|
-
var _templateObject$o, _templateObject2$
|
|
27416
|
+
var _templateObject$o, _templateObject2$m;
|
|
27417
27417
|
function SelfieCaptureSurface(_ref) {
|
|
27418
27418
|
var _state$error, _state$error2, _state$captureRecover, _state$error5, _state$captureRecover2, _state$prediction, _state$prediction$sam, _state$prediction2, _state$prediction3, _state$prediction4, _state$prediction5, _state$prediction6, _state$prediction7, _state$prediction8, _state$prediction9, _state$prediction0, _state$prediction1, _state$prediction$bri, _state$prediction10, _state$prediction$ran, _state$prediction11, _state$prediction$var, _state$prediction12, _assets$loadingOverla, _classNames$loadingOv, _colors$loadingOverla, _verbiage$loadingOver;
|
|
27419
27419
|
var controller = _ref.controller,
|
|
@@ -27810,7 +27810,7 @@ function EyesOpenDebugLines(_ref2) {
|
|
|
27810
27810
|
}
|
|
27811
27811
|
var ManualCaptureButtonContainer = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n left: 50%;\n bottom: 24px;\n transform: translateX(-50%);\n"])));
|
|
27812
27812
|
// A footer below the camera keeps the lighting guidance visible above it.
|
|
27813
|
-
var CaptureRecoveryActions = styled.div(_templateObject2$
|
|
27813
|
+
var CaptureRecoveryActions = styled.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 10001;\n inset: auto 0 0;\n padding: 16px 24px max(16px, env(safe-area-inset-bottom));\n background: white;\n color: #333;\n text-align: center;\n display: grid;\n justify-items: center;\n gap: 12px;\n\n p { margin: 0; font-size: 14px; line-height: 1.4; }\n button { width: 100%; max-width: 320px; }\n"])));
|
|
27814
27814
|
|
|
27815
27815
|
// Byte-identical to sdk2's verbiage defaults
|
|
27816
27816
|
// (SelfieCapture.tsx:273-284, FaceLivenessCapture.tsx:845-912), except
|
|
@@ -28139,7 +28139,7 @@ function SelfieCaptureViewContent(_ref) {
|
|
|
28139
28139
|
});
|
|
28140
28140
|
}
|
|
28141
28141
|
|
|
28142
|
-
var _templateObject$m, _templateObject2$
|
|
28142
|
+
var _templateObject$m, _templateObject2$l;
|
|
28143
28143
|
var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
|
|
28144
28144
|
var imageUrl = _ref.imageUrl,
|
|
28145
28145
|
onDoneClick = _ref.onDoneClick,
|
|
@@ -28203,9 +28203,9 @@ var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
|
|
|
28203
28203
|
});
|
|
28204
28204
|
};
|
|
28205
28205
|
var ImageContainer$3 = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n position: relative;\n flex-grow: 1;\n margin-bottom: 25px;\n max-width: 100%;\n max-height: 100%;\n overflow-y: auto;\n border-radius: 12px;\n\n & > img,\n & > svg {\n width: 100%;\n max-width: 100%;\n margin: 0 auto;\n display: block;\n border-radius: 12px;\n }\n"])));
|
|
28206
|
-
var Heading$5 = styled.h3(_templateObject2$
|
|
28206
|
+
var Heading$5 = styled.h3(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n font-size: 1.2rem;\n margin: 0;\n"])));
|
|
28207
28207
|
|
|
28208
|
-
var _templateObject$l, _templateObject2$
|
|
28208
|
+
var _templateObject$l, _templateObject2$k;
|
|
28209
28209
|
var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
|
|
28210
28210
|
var _assets$imageUrl;
|
|
28211
28211
|
var _ref$canRetry = _ref.canRetry,
|
|
@@ -28264,7 +28264,7 @@ var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
|
|
|
28264
28264
|
});
|
|
28265
28265
|
};
|
|
28266
28266
|
var ImageContainer$2 = styled(OverlayImageContainer)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
28267
|
-
var Heading$4 = styled.h3(_templateObject2$
|
|
28267
|
+
var Heading$4 = styled.h3(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n margin-bottom: 36px;\n"])));
|
|
28268
28268
|
|
|
28269
28269
|
var _templateObject$k;
|
|
28270
28270
|
// The FaceMessageCode a ladder resolved -> the FaceLivenessGuidanceVerbiage
|
|
@@ -32191,7 +32191,7 @@ function useSignatureCapture(controller) {
|
|
|
32191
32191
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
32192
32192
|
}
|
|
32193
32193
|
|
|
32194
|
-
var _templateObject$j, _templateObject2$
|
|
32194
|
+
var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
|
|
32195
32195
|
var _excluded$a = ["device", "frameDecode"];
|
|
32196
32196
|
var ASSUMED_TRIM_PADDING = {
|
|
32197
32197
|
startMs: TRIM_PADDING_START_MS,
|
|
@@ -32471,7 +32471,7 @@ function Row$1(_ref1) {
|
|
|
32471
32471
|
}
|
|
32472
32472
|
var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
|
|
32473
32473
|
var Panel = styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n width: min(720px, 90vw);\n margin-top: 0.75rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 6px;\n text-align: left;\n overflow-x: auto;\n"])));
|
|
32474
|
-
var Table = styled.table(_templateObject2$
|
|
32474
|
+
var Table = styled.table(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
|
|
32475
32475
|
var SectionCell = styled.th(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n padding: 0.5rem 0 0.25rem;\n border-bottom: 1px solid #e9ecef;\n color: #495057;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-align: left;\n text-transform: uppercase;\n"])));
|
|
32476
32476
|
var LabelCell = styled.td(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n width: 45%;\n padding: 0.1875rem 0.5rem 0.1875rem 0;\n color: #495057;\n font-weight: 600;\n vertical-align: top;\n"])));
|
|
32477
32477
|
var ValueCell = styled.td(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding: 0.1875rem 0;\n color: ", ";\n font-weight: ", ";\n vertical-align: top;\n word-break: break-word;\n"])), function (props) {
|
|
@@ -32481,7 +32481,7 @@ var ValueCell = styled.td(_templateObject5$b || (_templateObject5$b = _taggedTem
|
|
|
32481
32481
|
});
|
|
32482
32482
|
var Note = styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
|
|
32483
32483
|
|
|
32484
|
-
var _templateObject$i, _templateObject2$
|
|
32484
|
+
var _templateObject$i, _templateObject2$i, _templateObject3$e, _templateObject4$a, _templateObject5$a;
|
|
32485
32485
|
function MessageOverlay(_ref) {
|
|
32486
32486
|
var heading = _ref.heading,
|
|
32487
32487
|
children = _ref.children,
|
|
@@ -32702,12 +32702,12 @@ function SubmissionErrorOverlay(_ref1) {
|
|
|
32702
32702
|
});
|
|
32703
32703
|
}
|
|
32704
32704
|
var CenteredInner = styled(OverlayInner$2)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n max-width: 640px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 32px;\n"])));
|
|
32705
|
-
var Content = styled.div(_templateObject2$
|
|
32705
|
+
var Content = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
|
|
32706
32706
|
var Details = styled.p(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
|
|
32707
32707
|
var PermissionImage = styled(OverlayImageContainer)(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
|
|
32708
32708
|
var RetryButton = styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
|
|
32709
32709
|
|
|
32710
|
-
var _templateObject$h, _templateObject2$
|
|
32710
|
+
var _templateObject$h, _templateObject2$h, _templateObject3$d, _templateObject4$9, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
|
|
32711
32711
|
var FALLBACKS = {
|
|
32712
32712
|
headingText: "Please sign the box below",
|
|
32713
32713
|
signHereText: "Sign here",
|
|
@@ -33287,7 +33287,7 @@ var Root$2 = styled.div(_templateObject$h || (_templateObject$h = _taggedTemplat
|
|
|
33287
33287
|
return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : "#26332e";
|
|
33288
33288
|
});
|
|
33289
33289
|
/** Sits below the pad's stacking context and never receives signing input. */
|
|
33290
|
-
var LiveDiagnostics = styled.div(_templateObject2$
|
|
33290
|
+
var LiveDiagnostics = styled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 0;\n top: 64px;\n left: 20px;\n display: grid;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.65);\n font: 14px/20px monospace;\n pointer-events: none;\n\n @container signature-capture (max-width: 1024px) {\n top: 12px;\n left: 12px;\n right: 12px;\n grid-template-columns: repeat(2, max-content);\n column-gap: 12px;\n font-size: clamp(11px, 3cqw, 12px);\n line-height: 18px;\n\n > :first-child {\n grid-column: 1 / -1;\n }\n }\n"])));
|
|
33291
33291
|
/**
|
|
33292
33292
|
* Black behind the feed. WebKit snaps the mirrored front-camera video's layer
|
|
33293
33293
|
* to device pixels and can leave one column uncovered along an edge, which
|
|
@@ -34809,7 +34809,7 @@ function useVideoIdCapture(controller) {
|
|
|
34809
34809
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
34810
34810
|
}
|
|
34811
34811
|
|
|
34812
|
-
var _templateObject$g, _templateObject2$
|
|
34812
|
+
var _templateObject$g, _templateObject2$g, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
|
|
34813
34813
|
/**
|
|
34814
34814
|
* The combined face-over-document guide used by SDK2's Video ID recording
|
|
34815
34815
|
* stage. Unlike the standalone ID overlay, both subjects remain framed in a
|
|
@@ -35024,7 +35024,7 @@ var Container = styled.div(_templateObject$g || (_templateObject$g = _taggedTemp
|
|
|
35024
35024
|
var _props$theme;
|
|
35025
35025
|
return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
|
|
35026
35026
|
});
|
|
35027
|
-
var Inner$1 = styled.div(_templateObject2$
|
|
35027
|
+
var Inner$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
|
|
35028
35028
|
var FaceGuideContainer = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
|
|
35029
35029
|
var IdCardGuideContainer = styled.div(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n max-width: 100%;\n height: 35%;\n margin: 0 auto;\n"])));
|
|
35030
35030
|
var IdCardGuideInner = styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
|
|
@@ -35055,7 +35055,7 @@ var VIDEO_ID_FALLBACKS = {
|
|
|
35055
35055
|
};
|
|
35056
35056
|
(_VIDEO_ID_GUIDANCE_FA = {}, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_FRONT] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_BACK] = VIDEO_ID_FALLBACKS.idBackInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_PASSPORT] = VIDEO_ID_FALLBACKS.passportInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.FLIP_ID] = VIDEO_ID_FALLBACKS.flipIdInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SEARCHING_FOR_ID] = VIDEO_ID_FALLBACKS.searchingForIdCardText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.HOLD_STEADY] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA);
|
|
35057
35057
|
|
|
35058
|
-
var _templateObject$f, _templateObject2$
|
|
35058
|
+
var _templateObject$f, _templateObject2$f, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
|
|
35059
35059
|
function VideoIdCaptureView(props) {
|
|
35060
35060
|
var _props$lang;
|
|
35061
35061
|
return jsx(SdkLanguageProvider, {
|
|
@@ -35392,7 +35392,7 @@ function VideoIdCaptureDebugLayer(_ref2) {
|
|
|
35392
35392
|
});
|
|
35393
35393
|
}
|
|
35394
35394
|
var Root$1 = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n overflow: hidden;\n"])));
|
|
35395
|
-
var CameraLayer = styled.div(_templateObject2$
|
|
35395
|
+
var CameraLayer = styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
|
|
35396
35396
|
return props.$visible ? 'flex' : 'none';
|
|
35397
35397
|
});
|
|
35398
35398
|
var ReadTextPrompt = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n padding: 24px;\n"])));
|
|
@@ -35416,7 +35416,7 @@ function useDocumentCapture(controller) {
|
|
|
35416
35416
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
35417
35417
|
}
|
|
35418
35418
|
|
|
35419
|
-
var _templateObject$e, _templateObject2$
|
|
35419
|
+
var _templateObject$e, _templateObject2$e, _templateObject3$a, _templateObject4$6, _templateObject5$6;
|
|
35420
35420
|
/** Human wording for each gate, in the order the engine reports them. */
|
|
35421
35421
|
/** Short enough that the triple fits one line on a phone. */
|
|
35422
35422
|
var GUIDANCE_LABELS = {
|
|
@@ -35718,7 +35718,7 @@ var PaneAnchor = styled.div(_templateObject$e || (_templateObject$e = _taggedTem
|
|
|
35718
35718
|
// `DebugStatsPaneDiv` sets `pointer-events: none` so the shared pane can never
|
|
35719
35719
|
// swallow a capture tap. This one has to be tappable, so it re-enables them on
|
|
35720
35720
|
// its own subtree only.
|
|
35721
|
-
var InteractivePane = styled.span(_templateObject2$
|
|
35721
|
+
var InteractivePane = styled.span(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
|
|
35722
35722
|
var Row = styled.span(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
35723
35723
|
var Controls = styled.span(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
|
|
35724
35724
|
var Chip = styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n font: bold 11px monospace;\n padding: 4px 8px;\n border: 1px solid limegreen;\n border-radius: 3px;\n background: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_ref5) {
|
|
@@ -35729,7 +35729,7 @@ var Chip = styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemp
|
|
|
35729
35729
|
return $active ? 'black' : 'limegreen';
|
|
35730
35730
|
});
|
|
35731
35731
|
|
|
35732
|
-
var _templateObject$d, _templateObject2$
|
|
35732
|
+
var _templateObject$d, _templateObject2$d, _templateObject3$9;
|
|
35733
35733
|
/**
|
|
35734
35734
|
* Which verbiage member renders each code.
|
|
35735
35735
|
*
|
|
@@ -35815,7 +35815,7 @@ var GuidanceChip = styled.div(_templateObject$d || (_templateObject$d = _taggedT
|
|
|
35815
35815
|
* Follows the text colour while unsatisfied, so a themed chip needs no dot
|
|
35816
35816
|
* colour of its own.
|
|
35817
35817
|
*/
|
|
35818
|
-
var StateDot = styled.span(_templateObject2$
|
|
35818
|
+
var StateDot = styled.span(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n flex: none;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: ", ";\n opacity: ", ";\n transition:\n background-color 160ms ease-out,\n opacity 160ms ease-out;\n"])), function (_ref4) {
|
|
35819
35819
|
var $satisfied = _ref4.$satisfied;
|
|
35820
35820
|
return $satisfied ? '#7ef0d2' : 'currentColor';
|
|
35821
35821
|
}, function (_ref5) {
|
|
@@ -35846,7 +35846,7 @@ function DocumentCaptureManualCaptureHint(_ref6) {
|
|
|
35846
35846
|
*/
|
|
35847
35847
|
var ManualCaptureHint = styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: min(88%, 38ch);\n padding: 7px 14px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n text-align: center;\n color: rgba(255, 255, 255, 0.86);\n background: rgba(10, 14, 19, 0.7);\n"])));
|
|
35848
35848
|
|
|
35849
|
-
var _templateObject$c, _templateObject2$
|
|
35849
|
+
var _templateObject$c, _templateObject2$c, _templateObject3$8;
|
|
35850
35850
|
function DocumentCaptureReviewScreen(_ref) {
|
|
35851
35851
|
var contentUrl = _ref.contentUrl,
|
|
35852
35852
|
headingText = _ref.headingText,
|
|
@@ -35905,7 +35905,7 @@ var ReviewHeading = styled.h2(_templateObject$c || (_templateObject$c = _taggedT
|
|
|
35905
35905
|
// `min-height: 0` is what actually lets this shrink inside the flex card —
|
|
35906
35906
|
// without it the default `min-height: auto` floors the wrapper at the image's
|
|
35907
35907
|
// intrinsic height and the buttons get pushed off the bottom of a phone.
|
|
35908
|
-
var ImageWrap = styled.div(_templateObject2$
|
|
35908
|
+
var ImageWrap = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
|
|
35909
35909
|
var PreviewImage$1 = styled.img(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
|
|
35910
35910
|
|
|
35911
35911
|
function computeGuideRect$1(_ref) {
|
|
@@ -35943,7 +35943,7 @@ function computeGuideRect$1(_ref) {
|
|
|
35943
35943
|
};
|
|
35944
35944
|
}
|
|
35945
35945
|
|
|
35946
|
-
var _templateObject$b, _templateObject2$
|
|
35946
|
+
var _templateObject$b, _templateObject2$b;
|
|
35947
35947
|
/**
|
|
35948
35948
|
* How far the camera feed overhangs the guide box on each side, in CSS pixels.
|
|
35949
35949
|
*
|
|
@@ -36183,9 +36183,9 @@ function drawCornerBrackets(ctx, rect, opts) {
|
|
|
36183
36183
|
var CanvasWrapper = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n /* REQUIRED, not tidying. setCanvasDimensions puts an explicit pixel height on\n the child canvas, and a flex item's default min-height of auto floors it at\n its content \u2014 so this wrapper can grow but can never shrink back.\n\n It bit on exactly one transition: while auto-capture is guiding, the header\n is absolutely positioned and out of flow, so the wrapper is measured at the\n FULL surface height and the canvas is pinned there. Accepting the manual\n fallback swaps in the in-flow heading bar, the column then needs this item\n to give back that height, an auto min-height refuses, and the surface\n overflows by the header's height \u2014 carrying the footer, and the Capture\n button the applicant just asked for, below the fold with nothing to\n scroll.\n\n No backticks in this comment: it lives inside a styled-components template\n literal, where one would end the template. */\n min-height: 0;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n"])), function (props) {
|
|
36184
36184
|
return props.$maskColor;
|
|
36185
36185
|
});
|
|
36186
|
-
var Canvas = styled.canvas(_templateObject2$
|
|
36186
|
+
var Canvas = styled.canvas(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
36187
36187
|
|
|
36188
|
-
var _templateObject$a, _templateObject2$
|
|
36188
|
+
var _templateObject$a, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
36189
36189
|
/** The verbiage fallbacks, exported so the i18n parity test reads the real
|
|
36190
36190
|
* literals rather than a second copy that could drift from them. */
|
|
36191
36191
|
var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
|
|
@@ -36757,7 +36757,7 @@ var GUIDED_STACK_GAP_PX = 12;
|
|
|
36757
36757
|
* `pointer-events: none` because nothing in here is tappable and the shutter
|
|
36758
36758
|
* is centred directly below it.
|
|
36759
36759
|
*/
|
|
36760
|
-
var GuidedBottomStack = styled.div(_templateObject2$
|
|
36760
|
+
var GuidedBottomStack = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n\n ", "\n"])), function (_ref2) {
|
|
36761
36761
|
var $centreY = _ref2.$centreY,
|
|
36762
36762
|
$aboveShutter = _ref2.$aboveShutter;
|
|
36763
36763
|
if (!$aboveShutter) {
|
|
@@ -37112,7 +37112,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
37112
37112
|
});
|
|
37113
37113
|
};
|
|
37114
37114
|
|
|
37115
|
-
var _templateObject$9, _templateObject2$
|
|
37115
|
+
var _templateObject$9, _templateObject2$9, _templateObject3$6, _templateObject4$4, _templateObject5$4;
|
|
37116
37116
|
// The `useTranslations` fallback defaults, exported so the i18n parity
|
|
37117
37117
|
// guard (additionalDocumentStrings.test.ts) can assert every non-English
|
|
37118
37118
|
// locale carries these exact literals by reading them from here rather than
|
|
@@ -37281,7 +37281,7 @@ function AdditionalDocumentCapture(_ref) {
|
|
|
37281
37281
|
});
|
|
37282
37282
|
}
|
|
37283
37283
|
var Inner = styled(OverlayInner$2)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
37284
|
-
var Heading$2 = styled.h3(_templateObject2$
|
|
37284
|
+
var Heading$2 = styled.h3(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37285
37285
|
var DescriptionText = styled.p(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37286
37286
|
var ErrorText = styled.p(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37287
37287
|
var StyledButtonsRow$2 = styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
@@ -37407,7 +37407,7 @@ function AdditionalDocumentCaptureWizard(_ref) {
|
|
|
37407
37407
|
}, index);
|
|
37408
37408
|
}
|
|
37409
37409
|
|
|
37410
|
-
var _templateObject$8, _templateObject2$
|
|
37410
|
+
var _templateObject$8, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
|
|
37411
37411
|
var CONFETTI_COUNT = 44;
|
|
37412
37412
|
var CONFETTI_LIFETIME_MS = 4500;
|
|
37413
37413
|
/**
|
|
@@ -37529,7 +37529,7 @@ var RingSuccessScreen = function RingSuccessScreen(_ref) {
|
|
|
37529
37529
|
});
|
|
37530
37530
|
};
|
|
37531
37531
|
var fadeIn$1 = keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
37532
|
-
var popCheck = keyframes(_templateObject2$
|
|
37532
|
+
var popCheck = keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
|
|
37533
37533
|
var drawTick = keyframes(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
|
|
37534
37534
|
var confettiFall = keyframes(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
|
|
37535
37535
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
@@ -37551,7 +37551,7 @@ var StatList = styled.div(_templateObject0$3 || (_templateObject0$3 = _taggedTem
|
|
|
37551
37551
|
var StatChip = styled.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n background: #ffffff;\n border: 1px solid rgb(0 0 0 / 0.08);\n border-radius: 12px;\n padding: 9px 14px;\n font-size: 11.5px;\n opacity: 0.9;\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n b {\n font-size: 14px;\n }\n"])));
|
|
37552
37552
|
var ConfettiPiece = styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 9px;\n height: 14px;\n top: -20px;\n opacity: 0.95;\n z-index: 5;\n animation-name: ", ";\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n"])), confettiFall);
|
|
37553
37553
|
|
|
37554
|
-
var _templateObject$7, _templateObject2$
|
|
37554
|
+
var _templateObject$7, _templateObject2$7, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
|
|
37555
37555
|
var toDataUrl$2 = function toDataUrl(value) {
|
|
37556
37556
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37557
37557
|
};
|
|
@@ -37734,7 +37734,7 @@ var RingFailureScreen = function RingFailureScreen(_ref) {
|
|
|
37734
37734
|
});
|
|
37735
37735
|
};
|
|
37736
37736
|
var enter = keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(12px); filter: blur(4px); }\n to { opacity: 1; transform: translateY(0); filter: blur(0); }\n"])));
|
|
37737
|
-
var markIn = keyframes(_templateObject2$
|
|
37737
|
+
var markIn = keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: scale(0.25); filter: blur(4px); }\n to { opacity: 1; transform: scale(1); filter: blur(0); }\n"])));
|
|
37738
37738
|
// The gradient is light WHATEVER the theme says — it mixes the tint into white
|
|
37739
37739
|
// rather than replacing it — so the foreground is pinned here instead of taken
|
|
37740
37740
|
// from `loadingOverlay.textColor`. A 2.x theme sets that key for the DARK
|
|
@@ -37776,7 +37776,7 @@ var PrimaryAction = styled(LoaderButton)(_templateObject15$1 || (_templateObject
|
|
|
37776
37776
|
});
|
|
37777
37777
|
var SecondaryAction = styled(LoaderButton)(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n && {\n min-height: 44px;\n border: none;\n border-radius: 22px;\n padding: 10px 22px;\n background-color: transparent;\n color: #26312e;\n font-size: 14px;\n font-weight: 600;\n opacity: 0.7;\n box-shadow: none;\n transition-property: transform, opacity, background-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &:hover:not(.disabled) {\n opacity: 1;\n background-color: rgb(255 255 255 / 0.45);\n }\n\n &:active:not(.disabled) {\n transform: scale(0.96);\n }\n\n &:focus-visible {\n outline: none;\n opacity: 1;\n box-shadow: 0 0 0 3px rgb(0 0 0 / 0.09);\n }\n\n @media (prefers-reduced-motion: reduce) {\n &:hover:not(.disabled),\n &:active:not(.disabled) {\n transform: none;\n }\n }\n }\n"])));
|
|
37778
37778
|
|
|
37779
|
-
var _templateObject$6, _templateObject2$
|
|
37779
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
|
|
37780
37780
|
var toDataUrl$1 = function toDataUrl(value) {
|
|
37781
37781
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37782
37782
|
};
|
|
@@ -37883,7 +37883,7 @@ var RingFinishingScreen = function RingFinishingScreen(_ref) {
|
|
|
37883
37883
|
});
|
|
37884
37884
|
};
|
|
37885
37885
|
var fadeIn = keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
37886
|
-
var spin = keyframes(_templateObject2$
|
|
37886
|
+
var spin = keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
|
|
37887
37887
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
37888
37888
|
// for why the foreground is pinned rather than read from the theme.
|
|
37889
37889
|
var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
|
|
@@ -37936,7 +37936,7 @@ var readFlowElapsedMs = function readFlowElapsedMs() {
|
|
|
37936
37936
|
return flowStartedAt === null ? null : Date.now() - flowStartedAt;
|
|
37937
37937
|
};
|
|
37938
37938
|
|
|
37939
|
-
var _templateObject$5, _templateObject2$
|
|
37939
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$2;
|
|
37940
37940
|
var DEFAULT_HEADING$1 = {
|
|
37941
37941
|
identification: 'Customer has been identified!',
|
|
37942
37942
|
verification: 'Customer has been verified!'
|
|
@@ -37994,10 +37994,10 @@ function CustomerMatchSuccess(_ref) {
|
|
|
37994
37994
|
});
|
|
37995
37995
|
}
|
|
37996
37996
|
var Heading$1 = styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
37997
|
-
var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$
|
|
37997
|
+
var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
37998
37998
|
var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
37999
37999
|
|
|
38000
|
-
var _templateObject$4, _templateObject2$
|
|
38000
|
+
var _templateObject$4, _templateObject2$4, _templateObject3$1;
|
|
38001
38001
|
var DEFAULT_HEADING = {
|
|
38002
38002
|
identification: 'Customer not found',
|
|
38003
38003
|
verification: 'Customer not verified'
|
|
@@ -38058,7 +38058,7 @@ function CustomerMatchFailure(_ref) {
|
|
|
38058
38058
|
});
|
|
38059
38059
|
}
|
|
38060
38060
|
var Heading = styled.h3(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
38061
|
-
var ImageContainer = styled(ButtonsRow$2)(_templateObject2$
|
|
38061
|
+
var ImageContainer = styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
38062
38062
|
var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
38063
38063
|
|
|
38064
38064
|
var SubmissionContext = /*#__PURE__*/createContext(null);
|
|
@@ -38451,7 +38451,7 @@ var highlightJson = function highlightJson(str) {
|
|
|
38451
38451
|
return elements;
|
|
38452
38452
|
};
|
|
38453
38453
|
|
|
38454
|
-
var _templateObject$3, _templateObject2$
|
|
38454
|
+
var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
38455
38455
|
function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38456
38456
|
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
38457
38457
|
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -39017,7 +39017,7 @@ function TimingFact(_ref9) {
|
|
|
39017
39017
|
});
|
|
39018
39018
|
}
|
|
39019
39019
|
var SuccessInner = styled(OverlayInner$2)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n max-width: 900px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 40px;\n text-align: left;\n"])));
|
|
39020
|
-
var Header = styled.header(_templateObject2$
|
|
39020
|
+
var Header = styled.header(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
|
|
39021
39021
|
var Eyebrow = styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
|
|
39022
39022
|
var TimingGrid = styled.dl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
|
|
39023
39023
|
var TimingCard = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding: 14px;\n border: 1px solid #d9e2dc;\n border-radius: 8px;\n\n dt {\n color: #62706a;\n font-size: 0.75rem;\n }\n\n dd {\n margin: 6px 0 0;\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n }\n"])));
|
|
@@ -39043,7 +39043,7 @@ var JsonBlockHeader = styled.div(_templateObject22 || (_templateObject22 = _tagg
|
|
|
39043
39043
|
var JsonBlockActions = styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
|
|
39044
39044
|
var ResponsePre = styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
|
|
39045
39045
|
|
|
39046
|
-
var _templateObject$2, _templateObject2$
|
|
39046
|
+
var _templateObject$2, _templateObject2$2;
|
|
39047
39047
|
function OrbStatusScreen(_ref) {
|
|
39048
39048
|
var state = _ref.state,
|
|
39049
39049
|
text = _ref.text,
|
|
@@ -39105,7 +39105,7 @@ var Root = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateL
|
|
|
39105
39105
|
var _props$theme$textColo;
|
|
39106
39106
|
return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : '#26332e';
|
|
39107
39107
|
});
|
|
39108
|
-
var Label = styled.span(_templateObject2$
|
|
39108
|
+
var Label = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
|
|
39109
39109
|
|
|
39110
39110
|
function CompositeWizard(_ref) {
|
|
39111
39111
|
var _successScreen$isAppr;
|
|
@@ -40065,7 +40065,7 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40065
40065
|
return null;
|
|
40066
40066
|
}
|
|
40067
40067
|
|
|
40068
|
-
var _templateObject$1;
|
|
40068
|
+
var _templateObject$1, _templateObject2$1;
|
|
40069
40069
|
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
|
|
40070
40070
|
function FlowChassis(_ref) {
|
|
40071
40071
|
var client = _ref.client,
|
|
@@ -40159,7 +40159,26 @@ function AuthGate(_ref2) {
|
|
|
40159
40159
|
return null;
|
|
40160
40160
|
}
|
|
40161
40161
|
}
|
|
40162
|
-
|
|
40162
|
+
/**
|
|
40163
|
+
* The flow's page surface: `theme.header` and `theme.footer` (2.x's
|
|
40164
|
+
* SdkPage.tsx:41) frame a body that takes the remaining height and is the
|
|
40165
|
+
* positioned ancestor every flow stage lays out against.
|
|
40166
|
+
*/
|
|
40167
|
+
function FlowPage(_ref3) {
|
|
40168
|
+
var className = _ref3.className,
|
|
40169
|
+
children = _ref3.children;
|
|
40170
|
+
var _useTheme = useTheme(),
|
|
40171
|
+
Header = _useTheme.header,
|
|
40172
|
+
Footer = _useTheme.footer;
|
|
40173
|
+
return jsxs(FlowPageOuter, {
|
|
40174
|
+
className: className,
|
|
40175
|
+
children: [Header && jsx(Header, {}), jsx(FlowPageBody, {
|
|
40176
|
+
children: children
|
|
40177
|
+
}), Footer && jsx(Footer, {})]
|
|
40178
|
+
});
|
|
40179
|
+
}
|
|
40180
|
+
var FlowPageBody = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
|
|
40181
|
+
var FlowPageOuter = styled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
|
|
40163
40182
|
var _props$theme$backgrou;
|
|
40164
40183
|
return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
40165
40184
|
}, function (props) {
|
|
@@ -48016,7 +48035,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48016
48035
|
});
|
|
48017
48036
|
}
|
|
48018
48037
|
|
|
48019
|
-
var webSdkVersion = '2.5.
|
|
48038
|
+
var webSdkVersion = '2.5.62';
|
|
48020
48039
|
|
|
48021
48040
|
var MAPPED = 'mapped';
|
|
48022
48041
|
var NOOP = 'dropped-noop';
|