idmission-web-sdk 1.0.142 → 1.0.144

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.
@@ -53,11 +53,10 @@ export type IdCaptureProps = {
53
53
  onPrediction?: (prediction: IdCapturePrediction) => void;
54
54
  onBarcodeScanned?: (result: PDF417DetectionResult) => void;
55
55
  onCapture?: (frame: string, width: number, height: number, metadata: CaptureAttemptMetadata) => void;
56
- onExit?: () => void;
57
56
  assets?: IdCaptureAssets;
58
57
  classNames?: IdCaptureClassNames;
59
58
  colors?: IdCaptureColors;
60
59
  verbiage?: IdCaptureVerbiage;
61
60
  debugMode?: boolean;
62
61
  };
63
- export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, guidanceMessage, guidanceSatisfied, onPrediction, onBarcodeScanned, onCapture, onExit, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
62
+ export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, guidanceMessage, guidanceSatisfied, onPrediction, onBarcodeScanned, onCapture, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
@@ -34,11 +34,6 @@ export type IdCaptureThresholds = {
34
34
  mobile?: number;
35
35
  };
36
36
  };
37
- export declare const PREDICTION_POSITIONS: {
38
- boxes: number;
39
- scores: number;
40
- labels: number;
41
- };
42
37
  export type BestFrame = {
43
38
  canvas: HTMLCanvasElement;
44
39
  boundingBox?: number[];
@@ -1,7 +1,14 @@
1
1
  import * as tf from '@tensorflow/tfjs';
2
2
  export type DocumentType = 'none' | 'idCard' | 'passport';
3
- export declare let documentDetectionModel: tf.GraphModel | null;
4
- export declare function loadDocumentDetectionModel(url: string): Promise<tf.GraphModel>;
3
+ export interface DocumentDetectionModel extends tf.GraphModel {
4
+ outputPositions: {
5
+ boxes: number;
6
+ scores: number;
7
+ labels: number;
8
+ };
9
+ }
10
+ export declare let documentDetectionModel: DocumentDetectionModel | null;
11
+ export declare function loadDocumentDetectionModel(url: string): Promise<DocumentDetectionModel>;
5
12
  export declare function unloadDocumentDetectionModel(): void;
6
13
  export type RawEdgeDetectionResult = tf.Tensor<tf.Rank>[];
7
14
  export declare function makeDocumentDetectionPredictions(model: tf.GraphModel, image: ImageBitmap | ImageData | HTMLImageElement): Promise<[RawEdgeDetectionResult, () => void]>;
@@ -47,7 +47,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
47
47
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
48
48
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
49
49
 
50
- var webSdkVersion = '1.0.142';
50
+ var webSdkVersion = '1.0.144';
51
51
 
52
52
  function getPlatform() {
53
53
  if (typeof window === 'undefined') return;
@@ -1903,7 +1903,7 @@ var CameraProvider = function CameraProvider(_a) {
1903
1903
  var documentDetectionModel;
1904
1904
  function loadDocumentDetectionModel(url) {
1905
1905
  return tslib.__awaiter(this, void 0, void 0, function () {
1906
- var zeroes, tfInt32, tf4d_, tf4d, _a, _b;
1906
+ var zeroes, tfInt32, tf4d_, tf4d, _a, _b, outputKeys;
1907
1907
  return tslib.__generator(this, function (_c) {
1908
1908
  switch (_c.label) {
1909
1909
  case 0:
@@ -1928,6 +1928,14 @@ function loadDocumentDetectionModel(url) {
1928
1928
  tf4d.dispose();
1929
1929
  tf4d_.dispose();
1930
1930
  tf__namespace.dispose(zeroes);
1931
+ outputKeys = documentDetectionModel.outputs.map(function (o) {
1932
+ return o.name;
1933
+ });
1934
+ documentDetectionModel.outputPositions = {
1935
+ boxes: outputKeys.indexOf('Identity_1'),
1936
+ scores: outputKeys.indexOf('Identity_4'),
1937
+ labels: outputKeys.indexOf('Identity_2')
1938
+ };
1931
1939
  return [2 /*return*/, documentDetectionModel];
1932
1940
  }
1933
1941
  });
@@ -8646,12 +8654,6 @@ function cropToBoundingBox(frame, bbox, canvas) {
8646
8654
  return canvas;
8647
8655
  }
8648
8656
 
8649
- // export const PREDICTION_POSITIONS = { boxes: 1, scores: 4, labels: 2 } // for docdetectuint8
8650
- var PREDICTION_POSITIONS = {
8651
- boxes: 0,
8652
- scores: 7,
8653
- labels: 4
8654
- }; // for documentdetectionquantized
8655
8657
  var IdCaptureModelsContext = /*#__PURE__*/React.createContext({
8656
8658
  ready: false,
8657
8659
  working: {
@@ -8679,7 +8681,7 @@ var IdCaptureModelsContext = /*#__PURE__*/React.createContext({
8679
8681
  bestFrameDetectionScore: 0,
8680
8682
  bestFrameFocusScore: 0
8681
8683
  });
8682
- var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/documentdetection448/model.json");
8684
+ var defaultDocumentDetectionModelUrl = "".concat(DEFAULT_CDN_URL, "/models/docdetect20240125/model.json");
8683
8685
  var defaultFocusModelUrl = "".concat(DEFAULT_CDN_URL, "/models/focus/model.json");
8684
8686
  var IdCaptureModelsProvider = function IdCaptureModelsProvider(_a) {
8685
8687
  var children = _a.children,
@@ -9014,13 +9016,13 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
9014
9016
  return r.arraySync();
9015
9017
  }));
9016
9018
  }
9017
- return [4 /*yield*/, predictions[PREDICTION_POSITIONS.boxes].array()];
9019
+ return [4 /*yield*/, predictions[documentDetectionModel.outputPositions.boxes].array()];
9018
9020
  case 4:
9019
9021
  boxes = _e.sent()[0];
9020
- return [4 /*yield*/, predictions[PREDICTION_POSITIONS.scores].array()];
9022
+ return [4 /*yield*/, predictions[documentDetectionModel.outputPositions.scores].array()];
9021
9023
  case 5:
9022
9024
  scores = _e.sent()[0];
9023
- return [4 /*yield*/, predictions[PREDICTION_POSITIONS.labels].array()];
9025
+ return [4 /*yield*/, predictions[documentDetectionModel.outputPositions.labels].array()];
9024
9026
  case 6:
9025
9027
  labels = _e.sent()[0];
9026
9028
  labels = labels.map(function (l) {
@@ -9549,53 +9551,7 @@ function SelfieCaptureFaceKeypoint(_a) {
9549
9551
  }
9550
9552
  var templateObject_1$w, templateObject_2$l, templateObject_3$e, templateObject_4$a;
9551
9553
 
9552
- var ExitCaptureStyledButton = styled__default['default'].button(templateObject_1$v || (templateObject_1$v = tslib.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"], ["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"])));
9553
- var ExitCaptureButton = function ExitCaptureButton(_a) {
9554
- var onClick = _a.onClick,
9555
- className = _a.className;
9556
- return /*#__PURE__*/React__default['default'].createElement(ExitCaptureStyledButton, {
9557
- onClick: onClick,
9558
- className: className
9559
- }, /*#__PURE__*/React__default['default'].createElement("svg", {
9560
- version: "1.1",
9561
- xmlns: "http://www.w3.org/2000/svg",
9562
- x: "0px",
9563
- y: "0px",
9564
- viewBox: "19.3 19.3 25.499999999999996 25.499999999999996",
9565
- enableBackground: "new 0 0 64 64",
9566
- width: 16,
9567
- height: 16
9568
- }, /*#__PURE__*/React__default['default'].createElement("g", {
9569
- id: "close-outline-bot_x5F_s1g1_x5F_s2g2_x5F_s3g1_x5F_s4g1"
9570
- }, /*#__PURE__*/React__default['default'].createElement("line", {
9571
- fill: "none",
9572
- stroke: "#000000",
9573
- strokeWidth: "1",
9574
- strokeLinecap: "round",
9575
- strokeLinejoin: "round",
9576
- strokeMiterlimit: "10",
9577
- x1: "19.75",
9578
- y1: "44.25",
9579
- x2: "44.25",
9580
- y2: "19.75"
9581
- })), /*#__PURE__*/React__default['default'].createElement("g", {
9582
- id: "close-outline-top_x5F_s1g1_x5F_s2g2_x5F_s3g1_x5F_s4g1"
9583
- }, /*#__PURE__*/React__default['default'].createElement("line", {
9584
- fill: "none",
9585
- stroke: "#000000",
9586
- strokeWidth: "1",
9587
- strokeLinecap: "round",
9588
- strokeLinejoin: "round",
9589
- strokeMiterlimit: "10",
9590
- x1: "44.25",
9591
- y1: "44.25",
9592
- x2: "19.75",
9593
- y2: "19.75"
9594
- }))));
9595
- };
9596
- var templateObject_1$v;
9597
-
9598
- var Spinner = styled__default['default'].div(templateObject_1$u || (templateObject_1$u = tslib.__makeTemplateObject(["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n box-sizing: content-box;\n }\n\n @keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"], ["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n box-sizing: content-box;\n }\n\n @keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])), function (_a) {
9554
+ var Spinner = styled__default['default'].div(templateObject_1$v || (templateObject_1$v = tslib.__makeTemplateObject(["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n box-sizing: content-box;\n }\n\n @keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"], ["\n display: inline-block;\n width: ", "px;\n height: ", "px;\n margin: auto;\n\n &:after {\n content: ' ';\n display: block;\n width: ", "px;\n height: ", "px;\n margin: 8px;\n border-radius: 50%;\n border: ", "px solid\n ", ";\n border-color: ", " transparent\n ", " transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n box-sizing: content-box;\n }\n\n @keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])), function (_a) {
9599
9555
  var $size = _a.$size;
9600
9556
  return $size !== null && $size !== void 0 ? $size : 80;
9601
9557
  }, function (_a) {
@@ -9620,7 +9576,7 @@ var Spinner = styled__default['default'].div(templateObject_1$u || (templateObje
9620
9576
  var $color = _a.$color;
9621
9577
  return $color !== null && $color !== void 0 ? $color : '#888';
9622
9578
  });
9623
- var templateObject_1$u;
9579
+ var templateObject_1$v;
9624
9580
 
9625
9581
  var IdCaptureImagePreview = function IdCaptureImagePreview(_a) {
9626
9582
  var _b = _a.classNames,
@@ -9661,11 +9617,11 @@ var SelfieProgressPreview = function SelfieProgressPreview(_a) {
9661
9617
  className: classNames.image
9662
9618
  })));
9663
9619
  };
9664
- var StyledSpinner = styled__default['default'](Spinner)(templateObject_1$t || (templateObject_1$t = tslib.__makeTemplateObject(["\n position: relative;\n top: 4px;\n left: -3px;\n margin: 0 3px 0 -12px;\n"], ["\n position: relative;\n top: 4px;\n left: -3px;\n margin: 0 3px 0 -12px;\n"])));
9620
+ var StyledSpinner = styled__default['default'](Spinner)(templateObject_1$u || (templateObject_1$u = tslib.__makeTemplateObject(["\n position: relative;\n top: 4px;\n left: -3px;\n margin: 0 3px 0 -12px;\n"], ["\n position: relative;\n top: 4px;\n left: -3px;\n margin: 0 3px 0 -12px;\n"])));
9665
9621
  var ImagePreviewWrapper = styled__default['default'].div(templateObject_2$k || (templateObject_2$k = tslib.__makeTemplateObject(["\n position: absolute;\n display: flex;\n flex-direction: column;\n height: 33%;\n bottom: 12px;\n right: 12px;\n"], ["\n position: absolute;\n display: flex;\n flex-direction: column;\n height: 33%;\n bottom: 12px;\n right: 12px;\n"])));
9666
9622
  var ImagePreviewText = styled__default['default'].div(templateObject_3$d || (templateObject_3$d = tslib.__makeTemplateObject(["\n display: block;\n position: absolute;\n top: -32px;\n font:\n 14px -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol';\n color: white;\n text-align: center;\n margin: 0 auto;\n width: 100%;\n"], ["\n display: block;\n position: absolute;\n top: -32px;\n font:\n 14px -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol';\n color: white;\n text-align: center;\n margin: 0 auto;\n width: 100%;\n"])));
9667
9623
  var ImagePreviewImageWrapper = styled__default['default'].div(templateObject_4$9 || (templateObject_4$9 = tslib.__makeTemplateObject(["\n position: relative;\n height: calc(100% - 8px);\n padding: 4px;\n border-radius: 4px;\n background: white;\n\n & > img {\n border-radius: 4px;\n width: auto;\n max-height: 100%;\n }\n"], ["\n position: relative;\n height: calc(100% - 8px);\n padding: 4px;\n border-radius: 4px;\n background: white;\n\n & > img {\n border-radius: 4px;\n width: auto;\n max-height: 100%;\n }\n"])));
9668
- var templateObject_1$t, templateObject_2$k, templateObject_3$d, templateObject_4$9;
9624
+ var templateObject_1$u, templateObject_2$k, templateObject_3$d, templateObject_4$9;
9669
9625
 
9670
9626
  var enTranslation = {};
9671
9627
 
@@ -9790,7 +9746,7 @@ function useTranslations(verbiage, fallbacks) {
9790
9746
  }, [fallbacks, i18n.language, t, verbiage]);
9791
9747
  }
9792
9748
 
9793
- var GuidanceMessageContainer = styled__default['default'].div(templateObject_1$s || (templateObject_1$s = tslib.__makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
9749
+ var GuidanceMessageContainer = styled__default['default'].div(templateObject_1$t || (templateObject_1$t = tslib.__makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
9794
9750
  var $top = _a.$top;
9795
9751
  return $top !== null && $top !== void 0 ? $top : '10vh';
9796
9752
  });
@@ -9801,7 +9757,7 @@ var GuidanceMessage = styled__default['default'].div(templateObject_2$j || (temp
9801
9757
  var _a, _b, _c, _d, _e, _f;
9802
9758
  return (_f = (_a = props.$textColor) !== null && _a !== void 0 ? _a : (_e = (_c = (_b = props.theme) === null || _b === void 0 ? void 0 : _b.guidanceMessages) === null || _c === void 0 ? void 0 : _c[(_d = props.$variant) !== null && _d !== void 0 ? _d : 'default']) === null || _e === void 0 ? void 0 : _e.textColor) !== null && _f !== void 0 ? _f : 'black';
9803
9759
  });
9804
- var templateObject_1$s, templateObject_2$j;
9760
+ var templateObject_1$t, templateObject_2$j;
9805
9761
 
9806
9762
  var IdCapture = function IdCapture(_a) {
9807
9763
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
@@ -9831,7 +9787,6 @@ var IdCapture = function IdCapture(_a) {
9831
9787
  onPrediction = _a.onPrediction,
9832
9788
  onBarcodeScanned = _a.onBarcodeScanned,
9833
9789
  onCapture = _a.onCapture,
9834
- onExit = _a.onExit,
9835
9790
  _y = _a.assets,
9836
9791
  assets = _y === void 0 ? {} : _y,
9837
9792
  _z = _a.classNames,
@@ -10113,10 +10068,7 @@ var IdCapture = function IdCapture(_a) {
10113
10068
  scaling: debugScalingDetails,
10114
10069
  flipX: !((_a = cameraRef.current) === null || _a === void 0 ? void 0 : _a.isRearFacing)
10115
10070
  });
10116
- }))), debugMode && ( /*#__PURE__*/React__default['default'].createElement(DebugStatsPane, null, cameraRef.current ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u2705 Camera: ", cameraRef.current.label, " (", cameraRef.current.width, "x", cameraRef.current.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__default['default'].createElement("br", null), state.frameCaptureRate > 0.75 ? '✅' : '👎', " Frame Rate:", ' ', Math.round((state.frameCaptureRate + Number.EPSILON) * 1000) / 1000, ' ', "fps (", detectionTime, "ms doc detect, ", focusPredictionTime, "ms focus)", /*#__PURE__*/React__default['default'].createElement("br", null), modelsReady ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, state.documentDetectionThresholdMet ? '✅' : '❌', " Document Score: ", state.documentDetectionScore, " (", state.documentType, ")", /*#__PURE__*/React__default['default'].createElement("br", null), state.documentInBounds ? '✅' : '❌', " Document In Bounds", /*#__PURE__*/React__default['default'].createElement("br", null), state.focusThresholdMet ? '✅' : '❌', " Focus Score:", ' ', state.focusScore, /*#__PURE__*/React__default['default'].createElement("br", null), state.goodFramesThresholdMet ? '✅' : '❌', " Good Frame Count:", ' ', state.goodFramesCount, "/", state.goodFramesThreshold, barcodeScanningEnabled && state.autoCaptureBarcodeRequired ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("br", null), state.barcodeResult ? '✅' : '❌', " Barcode Scanned (", supportsNativeBarcodeScanning() ? 'Native' : 'ZXing', ",", ' ', state.barcodeScanFailedAttempts, "/", state.maxBarcodeScanAttempts, " failed attempts)")) : null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u274C Models not ready")))), /*#__PURE__*/React__default['default'].createElement(ExitCaptureButton, {
10117
- onClick: onExit,
10118
- className: classNames.exitCaptureBtn
10119
- }));
10071
+ }))), debugMode && ( /*#__PURE__*/React__default['default'].createElement(DebugStatsPane, null, cameraRef.current ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u2705 Camera: ", cameraRef.current.label, " (", cameraRef.current.width, "x", cameraRef.current.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__default['default'].createElement("br", null), state.frameCaptureRate > 0.75 ? '✅' : '👎', " Frame Rate:", ' ', Math.round((state.frameCaptureRate + Number.EPSILON) * 1000) / 1000, ' ', "fps (", detectionTime, "ms doc detect, ", focusPredictionTime, "ms focus)", /*#__PURE__*/React__default['default'].createElement("br", null), modelsReady ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, state.documentDetectionThresholdMet ? '✅' : '❌', " Document Score: ", state.documentDetectionScore, " (", state.documentType, ")", /*#__PURE__*/React__default['default'].createElement("br", null), state.documentInBounds ? '✅' : '❌', " Document In Bounds", /*#__PURE__*/React__default['default'].createElement("br", null), state.focusThresholdMet ? '✅' : '❌', " Focus Score:", ' ', state.focusScore, /*#__PURE__*/React__default['default'].createElement("br", null), state.goodFramesThresholdMet ? '✅' : '❌', " Good Frame Count:", ' ', state.goodFramesCount, "/", state.goodFramesThreshold, barcodeScanningEnabled && state.autoCaptureBarcodeRequired ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("br", null), state.barcodeResult ? '✅' : '❌', " Barcode Scanned (", supportsNativeBarcodeScanning() ? 'Native' : 'ZXing', ",", ' ', state.barcodeScanFailedAttempts, "/", state.maxBarcodeScanAttempts, " failed attempts)")) : null)) : ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u274C Models not ready")))));
10120
10072
  };
10121
10073
  var timeSince = function timeSince(t) {
10122
10074
  if (!t) return 0;
@@ -10162,11 +10114,57 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_a) {
10162
10114
  finished: true
10163
10115
  }, verbiage.retryBtnText)));
10164
10116
  };
10165
- var StyledOverlayInner$2 = styled__default['default'](OverlayInner)(templateObject_1$r || (templateObject_1$r = tslib.__makeTemplateObject(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"], ["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
10117
+ var StyledOverlayInner$2 = styled__default['default'](OverlayInner)(templateObject_1$s || (templateObject_1$s = tslib.__makeTemplateObject(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"], ["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
10166
10118
  var StyledOverlayImageContainer = styled__default['default'](OverlayImageContainer)(templateObject_2$i || (templateObject_2$i = tslib.__makeTemplateObject(["\n flex-grow: 0;\n"], ["\n flex-grow: 0;\n"])));
10167
10119
  var Description$3 = styled__default['default'].p(templateObject_3$c || (templateObject_3$c = tslib.__makeTemplateObject(["\n line-height: 1.5;\n margin-bottom: 50px;\n"], ["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
10168
10120
  var RetryButton = styled__default['default'](LoaderButton)(templateObject_4$8 || (templateObject_4$8 = tslib.__makeTemplateObject(["\n width: 200px;\n margin: 0 auto;\n"], ["\n width: 200px;\n margin: 0 auto;\n"])));
10169
- var templateObject_1$r, templateObject_2$i, templateObject_3$c, templateObject_4$8;
10121
+ var templateObject_1$s, templateObject_2$i, templateObject_3$c, templateObject_4$8;
10122
+
10123
+ var ExitCaptureStyledButton = styled__default['default'].button(templateObject_1$r || (templateObject_1$r = tslib.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"], ["\n position: absolute;\n top: 12px;\n right: 12px;\n font-size: 20px;\n width: 32px;\n height: 32px;\n font-family: monospace;\n z-index: 1002;\n border: none;\n border-radius: 4px;\n background: #ccc;\n cursor: pointer;\n padding: 8px;\n box-sizing: border-box;\n display: flex;\n\n &:hover {\n background: #ddd;\n }\n\n & > svg {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n"])));
10124
+ var ExitCaptureButton = function ExitCaptureButton(_a) {
10125
+ var onClick = _a.onClick,
10126
+ className = _a.className;
10127
+ return /*#__PURE__*/React__default['default'].createElement(ExitCaptureStyledButton, {
10128
+ onClick: onClick,
10129
+ className: className
10130
+ }, /*#__PURE__*/React__default['default'].createElement("svg", {
10131
+ version: "1.1",
10132
+ xmlns: "http://www.w3.org/2000/svg",
10133
+ x: "0px",
10134
+ y: "0px",
10135
+ viewBox: "19.3 19.3 25.499999999999996 25.499999999999996",
10136
+ enableBackground: "new 0 0 64 64",
10137
+ width: 16,
10138
+ height: 16
10139
+ }, /*#__PURE__*/React__default['default'].createElement("g", {
10140
+ id: "close-outline-bot_x5F_s1g1_x5F_s2g2_x5F_s3g1_x5F_s4g1"
10141
+ }, /*#__PURE__*/React__default['default'].createElement("line", {
10142
+ fill: "none",
10143
+ stroke: "#000000",
10144
+ strokeWidth: "1",
10145
+ strokeLinecap: "round",
10146
+ strokeLinejoin: "round",
10147
+ strokeMiterlimit: "10",
10148
+ x1: "19.75",
10149
+ y1: "44.25",
10150
+ x2: "44.25",
10151
+ y2: "19.75"
10152
+ })), /*#__PURE__*/React__default['default'].createElement("g", {
10153
+ id: "close-outline-top_x5F_s1g1_x5F_s2g2_x5F_s3g1_x5F_s4g1"
10154
+ }, /*#__PURE__*/React__default['default'].createElement("line", {
10155
+ fill: "none",
10156
+ stroke: "#000000",
10157
+ strokeWidth: "1",
10158
+ strokeLinecap: "round",
10159
+ strokeLinejoin: "round",
10160
+ strokeMiterlimit: "10",
10161
+ x1: "44.25",
10162
+ y1: "44.25",
10163
+ x2: "19.75",
10164
+ y2: "19.75"
10165
+ }))));
10166
+ };
10167
+ var templateObject_1$r;
10170
10168
 
10171
10169
  var ContinuityCameraCheckboxContainer = styled__default['default'].div(templateObject_1$q || (templateObject_1$q = tslib.__makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
10172
10170
  var ContinuityCameraCheckbox = styled__default['default'].input(templateObject_2$h || (templateObject_2$h = tslib.__makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
@@ -10423,7 +10421,7 @@ var CameraVideoTag = function CameraVideoTag(_a) {
10423
10421
  "$isRearFacing": (_b = cameraRef.current) === null || _b === void 0 ? void 0 : _b.isRearFacing
10424
10422
  });
10425
10423
  };
10426
- var FullscreenVideoTag = styled__default['default'].video(templateObject_1$n || (templateObject_1$n = tslib.__makeTemplateObject(["\n transform: ", ";\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"], ["\n transform: ", ";\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"])), function (props) {
10424
+ var FullscreenVideoTag = styled__default['default'].video(templateObject_1$n || (templateObject_1$n = tslib.__makeTemplateObject(["\n transform: ", ";\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"], ["\n transform: ", ";\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) {
10427
10425
  return props.$isRearFacing ? '' : 'scaleX(-1)';
10428
10426
  });
10429
10427
  var templateObject_1$n;
@@ -10942,7 +10940,7 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
10942
10940
  aspectRatio = guideImageWidth / guideImageHeight;
10943
10941
  }
10944
10942
  if (maskColor === undefined) {
10945
- maskColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideOverlay) === null || _m === void 0 ? void 0 : _m.backgroundColor) !== null && _o !== void 0 ? _o : '#888';
10943
+ maskColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideOverlay) === null || _m === void 0 ? void 0 : _m.backgroundColor) !== null && _o !== void 0 ? _o : '#708090';
10946
10944
  }
10947
10945
  React.useEffect(function () {
10948
10946
  var canvas = canvasRef.current;
@@ -11034,7 +11032,7 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
11034
11032
  classNames: classNames
11035
11033
  })));
11036
11034
  };
11037
- var CanvasWrapper$1 = styled__default['default'].div(templateObject_1$i || (templateObject_1$i = tslib.__makeTemplateObject(["\n position: relative;\n flex-grow: 1;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n"], ["\n position: relative;\n flex-grow: 1;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n"])), function (props) {
11035
+ var CanvasWrapper$1 = styled__default['default'].div(templateObject_1$i || (templateObject_1$i = tslib.__makeTemplateObject(["\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 box-shadow: inset 0 0 0 2px ", ";\n z-index: -1;\n"], ["\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 box-shadow: inset 0 0 0 2px ", ";\n z-index: -1;\n"])), function (props) {
11038
11036
  return props.$maskColor;
11039
11037
  });
11040
11038
  var Canvas$1 = styled__default['default'].canvas(templateObject_2$c || (templateObject_2$c = tslib.__makeTemplateObject(["\n display: block;\n"], ["\n display: block;\n"])));
@@ -11204,63 +11202,63 @@ var reducer$4 = function reducer(state, action) {
11204
11202
  }
11205
11203
  };
11206
11204
  var IdCaptureWizard = function IdCaptureWizard(_a) {
11207
- var _b, _c, _d;
11208
- var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11205
+ var _b, _c, _d, _e;
11206
+ var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
11209
11207
  var onSuccess = _a.onSuccess,
11210
11208
  onExitCapture = _a.onExitCapture,
11211
11209
  onUserCancel = _a.onUserCancel,
11212
11210
  precapturedDocuments = _a.precapturedDocuments,
11213
- _q = _a.captureRequirement,
11214
- captureRequirement = _q === void 0 ? 'idCardOrPassport' : _q,
11215
- _r = _a.autoCaptureEnabled,
11216
- autoCaptureEnabled = _r === void 0 ? true : _r,
11217
- _s = _a.autoCaptureGoodFramesRequired,
11218
- autoCaptureGoodFramesRequired = _s === void 0 ? 3 : _s,
11219
- _t = _a.autoCaptureBarcodeRequired,
11220
- autoCaptureBarcodeRequired = _t === void 0 ? 'mobile' : _t,
11221
- _u = _a.barcodeScanningEnabled,
11222
- barcodeScanningEnabled = _u === void 0 ? false : _u,
11223
- _v = _a.idCardAutoCaptureScoreThreshold,
11224
- idCardAutoCaptureScoreThreshold = _v === void 0 ? 0.8 : _v,
11225
- _w = _a.passportAutoCaptureScoreThreshold,
11226
- passportAutoCaptureScoreThreshold = _w === void 0 ? 0.75 : _w,
11227
- _x = _a.mrzDetectionScoreThreshold,
11228
- mrzDetectionScoreThreshold = _x === void 0 ? 0.25 : _x,
11229
- _y = _a.idCardFocusScoreThreshold,
11230
- idCardFocusScoreThreshold = _y === void 0 ? 0.3 : _y,
11231
- _z = _a.passportFocusScoreThreshold,
11232
- passportFocusScoreThreshold = _z === void 0 ? 0.3 : _z,
11233
- _0 = _a.skipSuccessScreen,
11234
- skipSuccessScreen = _0 === void 0 ? false : _0,
11211
+ _r = _a.captureRequirement,
11212
+ captureRequirement = _r === void 0 ? 'idCardOrPassport' : _r,
11213
+ _s = _a.autoCaptureEnabled,
11214
+ autoCaptureEnabled = _s === void 0 ? true : _s,
11215
+ _t = _a.autoCaptureGoodFramesRequired,
11216
+ autoCaptureGoodFramesRequired = _t === void 0 ? 3 : _t,
11217
+ _u = _a.autoCaptureBarcodeRequired,
11218
+ autoCaptureBarcodeRequired = _u === void 0 ? 'mobile' : _u,
11219
+ _v = _a.barcodeScanningEnabled,
11220
+ barcodeScanningEnabled = _v === void 0 ? false : _v,
11221
+ _w = _a.idCardAutoCaptureScoreThreshold,
11222
+ idCardAutoCaptureScoreThreshold = _w === void 0 ? 0.8 : _w,
11223
+ _x = _a.passportAutoCaptureScoreThreshold,
11224
+ passportAutoCaptureScoreThreshold = _x === void 0 ? 0.75 : _x,
11225
+ _y = _a.mrzDetectionScoreThreshold,
11226
+ mrzDetectionScoreThreshold = _y === void 0 ? 0.25 : _y,
11227
+ _z = _a.idCardFocusScoreThreshold,
11228
+ idCardFocusScoreThreshold = _z === void 0 ? 0.3 : _z,
11229
+ _0 = _a.passportFocusScoreThreshold,
11230
+ passportFocusScoreThreshold = _0 === void 0 ? 0.3 : _0,
11231
+ _1 = _a.skipSuccessScreen,
11232
+ skipSuccessScreen = _1 === void 0 ? false : _1,
11235
11233
  instructions = _a.instructions,
11236
- _1 = _a.releaseCameraAccessOnExit,
11237
- releaseCameraAccessOnExit = _1 === void 0 ? true : _1,
11238
- _2 = _a.guideType,
11239
- guideType = _2 === void 0 ? 'fit' : _2,
11240
- _3 = _a.assets,
11241
- assets = _3 === void 0 ? {} : _3,
11242
- _4 = _a.classNames,
11243
- classNames = _4 === void 0 ? {} : _4,
11244
- _5 = _a.colors,
11245
- colors = _5 === void 0 ? {} : _5,
11246
- _6 = _a.verbiage,
11247
- verbiage = _6 === void 0 ? {} : _6,
11248
- _7 = _a.debugMode,
11249
- debugMode = _7 === void 0 ? false : _7;
11250
- var _8 = React.useReducer(reducer$4, initialState$4),
11251
- state = _8[0],
11252
- dispatch = _8[1];
11234
+ _2 = _a.releaseCameraAccessOnExit,
11235
+ releaseCameraAccessOnExit = _2 === void 0 ? true : _2,
11236
+ _3 = _a.guideType,
11237
+ guideType = _3 === void 0 ? 'fit' : _3,
11238
+ _4 = _a.assets,
11239
+ assets = _4 === void 0 ? {} : _4,
11240
+ _5 = _a.classNames,
11241
+ classNames = _5 === void 0 ? {} : _5,
11242
+ _6 = _a.colors,
11243
+ colors = _6 === void 0 ? {} : _6,
11244
+ _7 = _a.verbiage,
11245
+ verbiage = _7 === void 0 ? {} : _7,
11246
+ _8 = _a.debugMode,
11247
+ debugMode = _8 === void 0 ? false : _8;
11248
+ var _9 = React.useReducer(reducer$4, initialState$4),
11249
+ state = _9[0],
11250
+ dispatch = _9[1];
11253
11251
  var releaseCameraAccess = React.useContext(CameraStateContext).releaseCameraAccess;
11254
- var _9 = React.useState(false),
11255
- overlayDismissed = _9[0],
11256
- setOverlayDismissed = _9[1];
11257
- var _10 = React.useContext(SubmissionContext),
11258
- submissionStatus = _10.submissionStatus,
11259
- setIdFrontImage = _10.setIdFrontImage,
11260
- setIdBackImage = _10.setIdBackImage,
11261
- setPassportImage = _10.setPassportImage,
11262
- logIdFrontCaptureAttempt = _10.logIdFrontCaptureAttempt,
11263
- logIdBackCaptureAttempt = _10.logIdBackCaptureAttempt;
11252
+ var _10 = React.useState(false),
11253
+ overlayDismissed = _10[0],
11254
+ setOverlayDismissed = _10[1];
11255
+ var _11 = React.useContext(SubmissionContext),
11256
+ submissionStatus = _11.submissionStatus,
11257
+ setIdFrontImage = _11.setIdFrontImage,
11258
+ setIdBackImage = _11.setIdBackImage,
11259
+ setPassportImage = _11.setPassportImage,
11260
+ logIdFrontCaptureAttempt = _11.logIdFrontCaptureAttempt,
11261
+ logIdBackCaptureAttempt = _11.logIdBackCaptureAttempt;
11264
11262
  var modelsError = React.useContext(IdCaptureModelsContext).error;
11265
11263
  var operationStartedAt = React.useRef();
11266
11264
  React.useEffect(function () {
@@ -11333,9 +11331,9 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11333
11331
  type: 'reset'
11334
11332
  });
11335
11333
  }, []);
11336
- var _11 = React.useState(0),
11337
- attempt = _11[0],
11338
- setAttempt = _11[1];
11334
+ var _12 = React.useState(0),
11335
+ attempt = _12[0],
11336
+ setAttempt = _12[1];
11339
11337
  var onExit = React.useCallback(function () {
11340
11338
  setOverlayDismissed(false);
11341
11339
  setAttempt(function (n) {
@@ -11352,19 +11350,19 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11352
11350
  }
11353
11351
  }, [releaseCameraAccess, releaseCameraAccessOnExit, submissionStatus]);
11354
11352
  assets.idCardFront || (assets.idCardFront = {});
11355
- (_e = assets.idCardFront).portraitGuidesImageUrl || (_e.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Portrait-2.svg"));
11356
- (_f = assets.idCardFront).landscapeGuidesImageUrl || (_f.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg"));
11353
+ (_f = assets.idCardFront).portraitGuidesImageUrl || (_f.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Portrait-2.svg"));
11354
+ (_g = assets.idCardFront).landscapeGuidesImageUrl || (_g.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg"));
11357
11355
  assets.idCardBack || (assets.idCardBack = {});
11358
- (_g = assets.idCardBack).portraitGuidesImageUrl || (_g.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Portrait-2.svg"));
11359
- (_h = assets.idCardBack).landscapeGuidesImageUrl || (_h.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-2.svg"));
11356
+ (_h = assets.idCardBack).portraitGuidesImageUrl || (_h.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Portrait-2.svg"));
11357
+ (_j = assets.idCardBack).landscapeGuidesImageUrl || (_j.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-2.svg"));
11360
11358
  assets.passport || (assets.passport = {});
11361
- (_j = assets.passport).portraitGuidesImageUrl || (_j.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-Passport-Front-SVG-Portrait-2.svg"));
11362
- (_k = assets.passport).landscapeGuidesImageUrl || (_k.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-Passport-Front-SVG-Landscape-2.svg"));
11359
+ (_k = assets.passport).portraitGuidesImageUrl || (_k.portraitGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-Passport-Front-SVG-Portrait-2.svg"));
11360
+ (_l = assets.passport).landscapeGuidesImageUrl || (_l.landscapeGuidesImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-Passport-Front-SVG-Landscape-2.svg"));
11363
11361
  assets.flipIdPrompt || (assets.flipIdPrompt = {});
11364
- (_l = assets.flipIdPrompt).frontPortraitGuidesImageUrl || (_l.frontPortraitGuidesImageUrl = assets.idCardFront.portraitGuidesImageUrl);
11365
- (_m = assets.flipIdPrompt).frontLandscapeGuidesImageUrl || (_m.frontLandscapeGuidesImageUrl = assets.idCardFront.landscapeGuidesImageUrl);
11366
- (_o = assets.flipIdPrompt).backPortraitGuidesImageUrl || (_o.backPortraitGuidesImageUrl = assets.idCardBack.portraitGuidesImageUrl);
11367
- (_p = assets.flipIdPrompt).backLandscapeGuidesImageUrl || (_p.backLandscapeGuidesImageUrl = assets.idCardBack.landscapeGuidesImageUrl);
11362
+ (_m = assets.flipIdPrompt).frontPortraitGuidesImageUrl || (_m.frontPortraitGuidesImageUrl = assets.idCardFront.portraitGuidesImageUrl);
11363
+ (_o = assets.flipIdPrompt).frontLandscapeGuidesImageUrl || (_o.frontLandscapeGuidesImageUrl = assets.idCardFront.landscapeGuidesImageUrl);
11364
+ (_p = assets.flipIdPrompt).backPortraitGuidesImageUrl || (_p.backPortraitGuidesImageUrl = assets.idCardBack.portraitGuidesImageUrl);
11365
+ (_q = assets.flipIdPrompt).backLandscapeGuidesImageUrl || (_q.backLandscapeGuidesImageUrl = assets.idCardBack.landscapeGuidesImageUrl);
11368
11366
  var idCaptureVerbiages = {
11369
11367
  idCardFront: useTranslations(verbiage.idCardFront, {
11370
11368
  instructionText: 'Scan the front of ID',
@@ -11377,11 +11375,11 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11377
11375
  instructionText: 'Scan the ID page of passport'
11378
11376
  })
11379
11377
  };
11380
- var _12 = useIdCaptureState()[0],
11381
- guideRectX = _12.guideRectX,
11382
- guideRectY = _12.guideRectY,
11383
- guideRectWidth = _12.guideRectWidth,
11384
- guideRectHeight = _12.guideRectHeight;
11378
+ var _13 = useIdCaptureState()[0],
11379
+ guideRectX = _13.guideRectX,
11380
+ guideRectY = _13.guideRectY,
11381
+ guideRectWidth = _13.guideRectWidth,
11382
+ guideRectHeight = _13.guideRectHeight;
11385
11383
  var idCaptureAssets = assets[state.requestedDocumentType];
11386
11384
  var idCaptureVerbiage = idCaptureVerbiages[state.requestedDocumentType];
11387
11385
  React.useEffect(function () {
@@ -11436,7 +11434,6 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11436
11434
  focusScoreThreshold: idCardFocusScoreThreshold,
11437
11435
  onPrediction: onPrediction,
11438
11436
  onCapture: onCapture,
11439
- onExit: onExit,
11440
11437
  assets: idCaptureAssets,
11441
11438
  classNames: classNames === null || classNames === void 0 ? void 0 : classNames.capture,
11442
11439
  colors: colors,
@@ -11457,7 +11454,6 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11457
11454
  onPrediction: onPrediction,
11458
11455
  onBarcodeScanned: onBarcodeScanned,
11459
11456
  onCapture: onCapture,
11460
- onExit: onExit,
11461
11457
  assets: idCaptureAssets,
11462
11458
  classNames: classNames === null || classNames === void 0 ? void 0 : classNames.capture,
11463
11459
  colors: colors,
@@ -11478,7 +11474,6 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11478
11474
  onPrediction: onPrediction,
11479
11475
  onBarcodeScanned: onBarcodeScanned,
11480
11476
  onCapture: onCapture,
11481
- onExit: onExit,
11482
11477
  assets: idCaptureAssets,
11483
11478
  classNames: classNames === null || classNames === void 0 ? void 0 : classNames.capture,
11484
11479
  colors: colors,
@@ -11497,6 +11492,9 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11497
11492
  assets: idCaptureAssets,
11498
11493
  colors: colors,
11499
11494
  verbiage: idCaptureVerbiage
11495
+ }), /*#__PURE__*/React__default['default'].createElement(ExitCaptureButton, {
11496
+ onClick: onExit,
11497
+ className: (_e = classNames.capture) === null || _e === void 0 ? void 0 : _e.exitCaptureBtn
11500
11498
  }), !overlayDismissed && ( /*#__PURE__*/React__default['default'].createElement(IdCaptureLoadingOverlay, {
11501
11499
  key: attempt,
11502
11500
  instructions: instructions,
@@ -14688,7 +14686,7 @@ var defaultTheme = {
14688
14686
  },
14689
14687
  idCapture: {
14690
14688
  guideOverlay: {
14691
- backgroundColor: 'rgba(0,0,0,0.5)',
14689
+ backgroundColor: '#708090',
14692
14690
  textColor: 'white'
14693
14691
  },
14694
14692
  guideBox: {