idmission-web-sdk 2.1.34 → 2.1.36

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.
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.1.34';
237
+ var webSdkVersion = '2.1.36';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -391,7 +391,7 @@ function videoDataUrlToB64(url) {
391
391
  });
392
392
  }
393
393
 
394
- var PageContainerDiv = styled__default.default.div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n ", "\n\n ", "\n\n &.flex {\n display: flex;\n }\n\n &.padded {\n box-sizing: border-box;\n padding: 16px 24px;\n }\n"], ["\n ", "\n\n ", "\n\n &.flex {\n display: flex;\n }\n\n &.padded {\n box-sizing: border-box;\n padding: 16px 24px;\n }\n"])), function (props) {
394
+ var PageContainerDiv = styled__default.default.div(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n ", "\n\n ", "\n\n &.flex {\n display: flex;\n }\n\n &.padded {\n box-sizing: border-box;\n padding: 16px 24px;\n }\n"], ["\n ", "\n\n ", "\n\n &.flex {\n display: flex;\n }\n\n &.padded {\n box-sizing: border-box;\n padding: 16px 24px;\n }\n"])), function (props) {
395
395
  var _a;
396
396
  return props.theme.isFullscreen === false ? "" : "\n position: fixed;\n top: 0;\n left: 0;\n width: var(--app-width);\n height: calc(\n var(--app-height) - ".concat((_a = props.$heightOffset) !== null && _a !== void 0 ? _a : 0, "px\n );\n overflow-x: hidden;\n overflow-y: auto;\n ");
397
397
  }, function (props) {
@@ -431,22 +431,22 @@ var PageContainer = /*#__PURE__*/React.forwardRef(function (_a, ref) {
431
431
  }, dimensionsCalculated && children);
432
432
  });
433
433
  PageContainer.displayName = 'PageContainer';
434
- var templateObject_1$G;
434
+ var templateObject_1$H;
435
435
 
436
- var OverlayContainer = styled__default.default(PageContainer)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n background: ", ";\n ", "\n z-index: 10000;\n"], ["\n background: ", ";\n ", "\n z-index: 10000;\n"])), function (props) {
436
+ var OverlayContainer = styled__default.default(PageContainer)(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n background: ", ";\n ", "\n z-index: 10000;\n"], ["\n background: ", ";\n ", "\n z-index: 10000;\n"])), function (props) {
437
437
  return props.theme.background ? "".concat(props.theme.background) : "white";
438
438
  }, function (props) {
439
439
  return props.theme.textColor ? "color: ".concat(props.theme.textColor, ";") : "";
440
440
  });
441
- var OverlayInner$2 = styled__default.default.div(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n max-height: var(--app-height);\n height: 100%;\n ", "\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n max-height: var(--app-height);\n height: 100%;\n ", "\n"])), function (props) {
441
+ var OverlayInner$2 = styled__default.default.div(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n max-height: var(--app-height);\n height: 100%;\n ", "\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n max-height: var(--app-height);\n height: 100%;\n ", "\n"])), function (props) {
442
442
  var _a;
443
443
  return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
444
444
  }, function (props) {
445
445
  return props.theme.padding ? "box-sizing: border-box; padding: ".concat(props.theme.padding, ";") : "";
446
446
  });
447
- var OverlayImageContainer = styled__default.default.div(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
448
- var OverlayImageRow = styled__default.default.div(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
449
- var templateObject_1$F, templateObject_2$r, templateObject_3$l, templateObject_4$g;
447
+ var OverlayImageContainer = styled__default.default.div(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
448
+ var OverlayImageRow = styled__default.default.div(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
449
+ var templateObject_1$G, templateObject_2$s, templateObject_3$m, templateObject_4$h;
450
450
 
451
451
  var LoaderButton = function LoaderButton(_a) {
452
452
  var children = _a.children,
@@ -505,11 +505,11 @@ var LoaderButton = function LoaderButton(_a) {
505
505
  className: "ladda-label"
506
506
  }, children));
507
507
  };
508
- var StyledButton = styled__default.default.button(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n ", "\n\n /*!\n * Ladda\n * http://lab.hakim.se/ladda\n * MIT licensed\n *\n * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n */\n @keyframes ladda-spinner-line-fade {\n 0%,\n 100% {\n opacity: 0.22;\n }\n 1% {\n opacity: 1;\n }\n }\n\n position: relative;\n\n .ladda-spinner {\n position: absolute;\n z-index: 2;\n display: inline-block;\n width: 32px;\n top: 50%;\n margin-top: 0;\n opacity: 0;\n pointer-events: none;\n }\n .ladda-label {\n position: relative;\n z-index: 3;\n }\n .ladda-progress {\n position: absolute;\n width: 0;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n transition: 0.1s linear all !important;\n }\n &[data-loading] .ladda-progress {\n display: block;\n }\n\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n\n .ladda-spinner,\n .ladda-label {\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n }\n &[data-style='zoom-in'],\n &[data-style='zoom-in'] .ladda-spinner,\n &[data-style='zoom-in'] .ladda-label,\n &[data-style='zoom-out'],\n &[data-style='zoom-out'] .ladda-spinner,\n &[data-style='zoom-out'] .ladda-label {\n transition: 0.3s ease all !important;\n }\n &[data-style='expand-right'] .ladda-spinner {\n right: -6px;\n }\n &[data-style='expand-right'][data-size='s'] .ladda-spinner,\n &[data-style='expand-right'][data-size='xs'] .ladda-spinner {\n right: -12px;\n }\n &[data-style='expand-right'][data-loading] {\n padding-right: 56px;\n }\n &[data-style='expand-right'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-right'][data-loading][data-size='s'],\n &[data-style='expand-right'][data-loading][data-size='xs'] {\n padding-right: 40px;\n }\n &[data-style='expand-left'] .ladda-spinner {\n left: 26px;\n }\n &[data-style='expand-left'][data-size='s'] .ladda-spinner,\n &[data-style='expand-left'][data-size='xs'] .ladda-spinner {\n left: 4px;\n }\n &[data-style='expand-left'][data-loading] {\n padding-left: 56px;\n }\n &[data-style='expand-left'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-left'][data-loading][data-size='s'],\n &[data-style='expand-left'][data-loading][data-size='xs'] {\n padding-left: 40px;\n }\n &[data-style='expand-up'] {\n overflow: hidden;\n }\n &[data-style='expand-up'] .ladda-spinner {\n top: -32px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-up'][data-loading] {\n padding-top: 54px;\n }\n &[data-style='expand-up'][data-loading] .ladda-spinner {\n opacity: 1;\n top: 26px;\n margin-top: 0;\n }\n &[data-style='expand-up'][data-loading][data-size='s'],\n &[data-style='expand-up'][data-loading][data-size='xs'] {\n padding-top: 32px;\n }\n &[data-style='expand-up'][data-loading][data-size='s'] .ladda-spinner,\n &[data-style='expand-up'][data-loading][data-size='xs'] .ladda-spinner {\n top: 4px;\n }\n &[data-style='expand-down'] {\n overflow: hidden;\n }\n &[data-style='expand-down'] .ladda-spinner {\n top: 62px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-down'][data-size='s'] .ladda-spinner,\n &[data-style='expand-down'][data-size='xs'] .ladda-spinner {\n top: 40px;\n }\n &[data-style='expand-down'][data-loading] {\n padding-bottom: 54px;\n }\n &[data-style='expand-down'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-down'][data-loading][data-size='s'],\n &[data-style='expand-down'][data-loading][data-size='xs'] {\n padding-bottom: 32px;\n }\n &[data-style='slide-left'] {\n overflow: hidden;\n }\n &[data-style='slide-left'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-left'] .ladda-spinner {\n left: 100%;\n margin-left: 0;\n }\n &[data-style='slide-left'][data-loading] .ladda-label {\n opacity: 0;\n left: -100%;\n }\n &[data-style='slide-left'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-right'] {\n overflow: hidden;\n }\n &[data-style='slide-right'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-right'] .ladda-spinner {\n right: 100%;\n margin-left: 0;\n left: 16px;\n }\n [dir='rtl'] &[data-style='slide-right'] .ladda-spinner {\n right: auto;\n }\n &[data-style='slide-right'][data-loading] .ladda-label {\n opacity: 0;\n left: 100%;\n }\n &[data-style='slide-right'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-up'] {\n overflow: hidden;\n }\n &[data-style='slide-up'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-up'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: 1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-label {\n opacity: 0;\n top: -1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='slide-down'] {\n overflow: hidden;\n }\n &[data-style='slide-down'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-down'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: -2em;\n }\n &[data-style='slide-down'][data-loading] .ladda-label {\n opacity: 0;\n top: 1em;\n }\n &[data-style='slide-down'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='zoom-out'] {\n overflow: hidden;\n }\n &[data-style='zoom-out'] .ladda-spinner {\n left: 50%;\n margin-left: 32px;\n transform: scale(2.5);\n }\n &[data-style='zoom-out'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-out'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(0.5);\n }\n &[data-style='zoom-out'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='zoom-in'] {\n overflow: hidden;\n }\n &[data-style='zoom-in'] .ladda-spinner {\n left: 50%;\n margin-left: -16px;\n transform: scale(0.2);\n }\n &[data-style='zoom-in'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-in'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(2.2);\n }\n &[data-style='zoom-in'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='contract'] {\n overflow: hidden;\n width: 100px;\n }\n &[data-style='contract'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract'][data-loading] {\n border-radius: 50%;\n width: 52px;\n }\n &[data-style='contract'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='contract-overlay'] {\n overflow: hidden;\n width: 100px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0);\n }\n &[data-style='contract-overlay'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract-overlay'][data-loading] {\n border-radius: 50%;\n width: 52px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0.8);\n }\n &[data-style='contract-overlay'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract-overlay'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n [dir='rtl'] .ladda-spinner > div {\n left: 25% !important;\n }\n"], ["\n ", "\n\n /*!\n * Ladda\n * http://lab.hakim.se/ladda\n * MIT licensed\n *\n * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n */\n @keyframes ladda-spinner-line-fade {\n 0%,\n 100% {\n opacity: 0.22;\n }\n 1% {\n opacity: 1;\n }\n }\n\n position: relative;\n\n .ladda-spinner {\n position: absolute;\n z-index: 2;\n display: inline-block;\n width: 32px;\n top: 50%;\n margin-top: 0;\n opacity: 0;\n pointer-events: none;\n }\n .ladda-label {\n position: relative;\n z-index: 3;\n }\n .ladda-progress {\n position: absolute;\n width: 0;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n transition: 0.1s linear all !important;\n }\n &[data-loading] .ladda-progress {\n display: block;\n }\n\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n\n .ladda-spinner,\n .ladda-label {\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n }\n &[data-style='zoom-in'],\n &[data-style='zoom-in'] .ladda-spinner,\n &[data-style='zoom-in'] .ladda-label,\n &[data-style='zoom-out'],\n &[data-style='zoom-out'] .ladda-spinner,\n &[data-style='zoom-out'] .ladda-label {\n transition: 0.3s ease all !important;\n }\n &[data-style='expand-right'] .ladda-spinner {\n right: -6px;\n }\n &[data-style='expand-right'][data-size='s'] .ladda-spinner,\n &[data-style='expand-right'][data-size='xs'] .ladda-spinner {\n right: -12px;\n }\n &[data-style='expand-right'][data-loading] {\n padding-right: 56px;\n }\n &[data-style='expand-right'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-right'][data-loading][data-size='s'],\n &[data-style='expand-right'][data-loading][data-size='xs'] {\n padding-right: 40px;\n }\n &[data-style='expand-left'] .ladda-spinner {\n left: 26px;\n }\n &[data-style='expand-left'][data-size='s'] .ladda-spinner,\n &[data-style='expand-left'][data-size='xs'] .ladda-spinner {\n left: 4px;\n }\n &[data-style='expand-left'][data-loading] {\n padding-left: 56px;\n }\n &[data-style='expand-left'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-left'][data-loading][data-size='s'],\n &[data-style='expand-left'][data-loading][data-size='xs'] {\n padding-left: 40px;\n }\n &[data-style='expand-up'] {\n overflow: hidden;\n }\n &[data-style='expand-up'] .ladda-spinner {\n top: -32px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-up'][data-loading] {\n padding-top: 54px;\n }\n &[data-style='expand-up'][data-loading] .ladda-spinner {\n opacity: 1;\n top: 26px;\n margin-top: 0;\n }\n &[data-style='expand-up'][data-loading][data-size='s'],\n &[data-style='expand-up'][data-loading][data-size='xs'] {\n padding-top: 32px;\n }\n &[data-style='expand-up'][data-loading][data-size='s'] .ladda-spinner,\n &[data-style='expand-up'][data-loading][data-size='xs'] .ladda-spinner {\n top: 4px;\n }\n &[data-style='expand-down'] {\n overflow: hidden;\n }\n &[data-style='expand-down'] .ladda-spinner {\n top: 62px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-down'][data-size='s'] .ladda-spinner,\n &[data-style='expand-down'][data-size='xs'] .ladda-spinner {\n top: 40px;\n }\n &[data-style='expand-down'][data-loading] {\n padding-bottom: 54px;\n }\n &[data-style='expand-down'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-down'][data-loading][data-size='s'],\n &[data-style='expand-down'][data-loading][data-size='xs'] {\n padding-bottom: 32px;\n }\n &[data-style='slide-left'] {\n overflow: hidden;\n }\n &[data-style='slide-left'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-left'] .ladda-spinner {\n left: 100%;\n margin-left: 0;\n }\n &[data-style='slide-left'][data-loading] .ladda-label {\n opacity: 0;\n left: -100%;\n }\n &[data-style='slide-left'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-right'] {\n overflow: hidden;\n }\n &[data-style='slide-right'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-right'] .ladda-spinner {\n right: 100%;\n margin-left: 0;\n left: 16px;\n }\n [dir='rtl'] &[data-style='slide-right'] .ladda-spinner {\n right: auto;\n }\n &[data-style='slide-right'][data-loading] .ladda-label {\n opacity: 0;\n left: 100%;\n }\n &[data-style='slide-right'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-up'] {\n overflow: hidden;\n }\n &[data-style='slide-up'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-up'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: 1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-label {\n opacity: 0;\n top: -1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='slide-down'] {\n overflow: hidden;\n }\n &[data-style='slide-down'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-down'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: -2em;\n }\n &[data-style='slide-down'][data-loading] .ladda-label {\n opacity: 0;\n top: 1em;\n }\n &[data-style='slide-down'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='zoom-out'] {\n overflow: hidden;\n }\n &[data-style='zoom-out'] .ladda-spinner {\n left: 50%;\n margin-left: 32px;\n transform: scale(2.5);\n }\n &[data-style='zoom-out'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-out'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(0.5);\n }\n &[data-style='zoom-out'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='zoom-in'] {\n overflow: hidden;\n }\n &[data-style='zoom-in'] .ladda-spinner {\n left: 50%;\n margin-left: -16px;\n transform: scale(0.2);\n }\n &[data-style='zoom-in'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-in'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(2.2);\n }\n &[data-style='zoom-in'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='contract'] {\n overflow: hidden;\n width: 100px;\n }\n &[data-style='contract'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract'][data-loading] {\n border-radius: 50%;\n width: 52px;\n }\n &[data-style='contract'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='contract-overlay'] {\n overflow: hidden;\n width: 100px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0);\n }\n &[data-style='contract-overlay'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract-overlay'][data-loading] {\n border-radius: 50%;\n width: 52px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0.8);\n }\n &[data-style='contract-overlay'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract-overlay'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n [dir='rtl'] .ladda-spinner > div {\n left: 25% !important;\n }\n"])), function (props) {
508
+ var StyledButton = styled__default.default.button(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n ", "\n\n /*!\n * Ladda\n * http://lab.hakim.se/ladda\n * MIT licensed\n *\n * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n */\n @keyframes ladda-spinner-line-fade {\n 0%,\n 100% {\n opacity: 0.22;\n }\n 1% {\n opacity: 1;\n }\n }\n\n position: relative;\n\n .ladda-spinner {\n position: absolute;\n z-index: 2;\n display: inline-block;\n width: 32px;\n top: 50%;\n margin-top: 0;\n opacity: 0;\n pointer-events: none;\n }\n .ladda-label {\n position: relative;\n z-index: 3;\n }\n .ladda-progress {\n position: absolute;\n width: 0;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n transition: 0.1s linear all !important;\n }\n &[data-loading] .ladda-progress {\n display: block;\n }\n\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n\n .ladda-spinner,\n .ladda-label {\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n }\n &[data-style='zoom-in'],\n &[data-style='zoom-in'] .ladda-spinner,\n &[data-style='zoom-in'] .ladda-label,\n &[data-style='zoom-out'],\n &[data-style='zoom-out'] .ladda-spinner,\n &[data-style='zoom-out'] .ladda-label {\n transition: 0.3s ease all !important;\n }\n &[data-style='expand-right'] .ladda-spinner {\n right: -6px;\n }\n &[data-style='expand-right'][data-size='s'] .ladda-spinner,\n &[data-style='expand-right'][data-size='xs'] .ladda-spinner {\n right: -12px;\n }\n &[data-style='expand-right'][data-loading] {\n padding-right: 56px;\n }\n &[data-style='expand-right'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-right'][data-loading][data-size='s'],\n &[data-style='expand-right'][data-loading][data-size='xs'] {\n padding-right: 40px;\n }\n &[data-style='expand-left'] .ladda-spinner {\n left: 26px;\n }\n &[data-style='expand-left'][data-size='s'] .ladda-spinner,\n &[data-style='expand-left'][data-size='xs'] .ladda-spinner {\n left: 4px;\n }\n &[data-style='expand-left'][data-loading] {\n padding-left: 56px;\n }\n &[data-style='expand-left'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-left'][data-loading][data-size='s'],\n &[data-style='expand-left'][data-loading][data-size='xs'] {\n padding-left: 40px;\n }\n &[data-style='expand-up'] {\n overflow: hidden;\n }\n &[data-style='expand-up'] .ladda-spinner {\n top: -32px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-up'][data-loading] {\n padding-top: 54px;\n }\n &[data-style='expand-up'][data-loading] .ladda-spinner {\n opacity: 1;\n top: 26px;\n margin-top: 0;\n }\n &[data-style='expand-up'][data-loading][data-size='s'],\n &[data-style='expand-up'][data-loading][data-size='xs'] {\n padding-top: 32px;\n }\n &[data-style='expand-up'][data-loading][data-size='s'] .ladda-spinner,\n &[data-style='expand-up'][data-loading][data-size='xs'] .ladda-spinner {\n top: 4px;\n }\n &[data-style='expand-down'] {\n overflow: hidden;\n }\n &[data-style='expand-down'] .ladda-spinner {\n top: 62px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-down'][data-size='s'] .ladda-spinner,\n &[data-style='expand-down'][data-size='xs'] .ladda-spinner {\n top: 40px;\n }\n &[data-style='expand-down'][data-loading] {\n padding-bottom: 54px;\n }\n &[data-style='expand-down'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-down'][data-loading][data-size='s'],\n &[data-style='expand-down'][data-loading][data-size='xs'] {\n padding-bottom: 32px;\n }\n &[data-style='slide-left'] {\n overflow: hidden;\n }\n &[data-style='slide-left'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-left'] .ladda-spinner {\n left: 100%;\n margin-left: 0;\n }\n &[data-style='slide-left'][data-loading] .ladda-label {\n opacity: 0;\n left: -100%;\n }\n &[data-style='slide-left'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-right'] {\n overflow: hidden;\n }\n &[data-style='slide-right'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-right'] .ladda-spinner {\n right: 100%;\n margin-left: 0;\n left: 16px;\n }\n [dir='rtl'] &[data-style='slide-right'] .ladda-spinner {\n right: auto;\n }\n &[data-style='slide-right'][data-loading] .ladda-label {\n opacity: 0;\n left: 100%;\n }\n &[data-style='slide-right'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-up'] {\n overflow: hidden;\n }\n &[data-style='slide-up'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-up'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: 1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-label {\n opacity: 0;\n top: -1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='slide-down'] {\n overflow: hidden;\n }\n &[data-style='slide-down'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-down'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: -2em;\n }\n &[data-style='slide-down'][data-loading] .ladda-label {\n opacity: 0;\n top: 1em;\n }\n &[data-style='slide-down'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='zoom-out'] {\n overflow: hidden;\n }\n &[data-style='zoom-out'] .ladda-spinner {\n left: 50%;\n margin-left: 32px;\n transform: scale(2.5);\n }\n &[data-style='zoom-out'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-out'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(0.5);\n }\n &[data-style='zoom-out'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='zoom-in'] {\n overflow: hidden;\n }\n &[data-style='zoom-in'] .ladda-spinner {\n left: 50%;\n margin-left: -16px;\n transform: scale(0.2);\n }\n &[data-style='zoom-in'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-in'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(2.2);\n }\n &[data-style='zoom-in'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='contract'] {\n overflow: hidden;\n width: 100px;\n }\n &[data-style='contract'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract'][data-loading] {\n border-radius: 50%;\n width: 52px;\n }\n &[data-style='contract'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='contract-overlay'] {\n overflow: hidden;\n width: 100px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0);\n }\n &[data-style='contract-overlay'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract-overlay'][data-loading] {\n border-radius: 50%;\n width: 52px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0.8);\n }\n &[data-style='contract-overlay'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract-overlay'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n [dir='rtl'] .ladda-spinner > div {\n left: 25% !important;\n }\n"], ["\n ", "\n\n /*!\n * Ladda\n * http://lab.hakim.se/ladda\n * MIT licensed\n *\n * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n */\n @keyframes ladda-spinner-line-fade {\n 0%,\n 100% {\n opacity: 0.22;\n }\n 1% {\n opacity: 1;\n }\n }\n\n position: relative;\n\n .ladda-spinner {\n position: absolute;\n z-index: 2;\n display: inline-block;\n width: 32px;\n top: 50%;\n margin-top: 0;\n opacity: 0;\n pointer-events: none;\n }\n .ladda-label {\n position: relative;\n z-index: 3;\n }\n .ladda-progress {\n position: absolute;\n width: 0;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n transition: 0.1s linear all !important;\n }\n &[data-loading] .ladda-progress {\n display: block;\n }\n\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n\n .ladda-spinner,\n .ladda-label {\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;\n }\n &[data-style='zoom-in'],\n &[data-style='zoom-in'] .ladda-spinner,\n &[data-style='zoom-in'] .ladda-label,\n &[data-style='zoom-out'],\n &[data-style='zoom-out'] .ladda-spinner,\n &[data-style='zoom-out'] .ladda-label {\n transition: 0.3s ease all !important;\n }\n &[data-style='expand-right'] .ladda-spinner {\n right: -6px;\n }\n &[data-style='expand-right'][data-size='s'] .ladda-spinner,\n &[data-style='expand-right'][data-size='xs'] .ladda-spinner {\n right: -12px;\n }\n &[data-style='expand-right'][data-loading] {\n padding-right: 56px;\n }\n &[data-style='expand-right'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-right'][data-loading][data-size='s'],\n &[data-style='expand-right'][data-loading][data-size='xs'] {\n padding-right: 40px;\n }\n &[data-style='expand-left'] .ladda-spinner {\n left: 26px;\n }\n &[data-style='expand-left'][data-size='s'] .ladda-spinner,\n &[data-style='expand-left'][data-size='xs'] .ladda-spinner {\n left: 4px;\n }\n &[data-style='expand-left'][data-loading] {\n padding-left: 56px;\n }\n &[data-style='expand-left'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-left'][data-loading][data-size='s'],\n &[data-style='expand-left'][data-loading][data-size='xs'] {\n padding-left: 40px;\n }\n &[data-style='expand-up'] {\n overflow: hidden;\n }\n &[data-style='expand-up'] .ladda-spinner {\n top: -32px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-up'][data-loading] {\n padding-top: 54px;\n }\n &[data-style='expand-up'][data-loading] .ladda-spinner {\n opacity: 1;\n top: 26px;\n margin-top: 0;\n }\n &[data-style='expand-up'][data-loading][data-size='s'],\n &[data-style='expand-up'][data-loading][data-size='xs'] {\n padding-top: 32px;\n }\n &[data-style='expand-up'][data-loading][data-size='s'] .ladda-spinner,\n &[data-style='expand-up'][data-loading][data-size='xs'] .ladda-spinner {\n top: 4px;\n }\n &[data-style='expand-down'] {\n overflow: hidden;\n }\n &[data-style='expand-down'] .ladda-spinner {\n top: 62px;\n left: 50%;\n margin-left: 0;\n }\n &[data-style='expand-down'][data-size='s'] .ladda-spinner,\n &[data-style='expand-down'][data-size='xs'] .ladda-spinner {\n top: 40px;\n }\n &[data-style='expand-down'][data-loading] {\n padding-bottom: 54px;\n }\n &[data-style='expand-down'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='expand-down'][data-loading][data-size='s'],\n &[data-style='expand-down'][data-loading][data-size='xs'] {\n padding-bottom: 32px;\n }\n &[data-style='slide-left'] {\n overflow: hidden;\n }\n &[data-style='slide-left'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-left'] .ladda-spinner {\n left: 100%;\n margin-left: 0;\n }\n &[data-style='slide-left'][data-loading] .ladda-label {\n opacity: 0;\n left: -100%;\n }\n &[data-style='slide-left'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-right'] {\n overflow: hidden;\n }\n &[data-style='slide-right'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-right'] .ladda-spinner {\n right: 100%;\n margin-left: 0;\n left: 16px;\n }\n [dir='rtl'] &[data-style='slide-right'] .ladda-spinner {\n right: auto;\n }\n &[data-style='slide-right'][data-loading] .ladda-label {\n opacity: 0;\n left: 100%;\n }\n &[data-style='slide-right'][data-loading] .ladda-spinner {\n opacity: 1;\n left: 50%;\n }\n &[data-style='slide-up'] {\n overflow: hidden;\n }\n &[data-style='slide-up'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-up'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: 1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-label {\n opacity: 0;\n top: -1em;\n }\n &[data-style='slide-up'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='slide-down'] {\n overflow: hidden;\n }\n &[data-style='slide-down'] .ladda-label {\n position: relative;\n }\n &[data-style='slide-down'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n margin-top: -2em;\n }\n &[data-style='slide-down'][data-loading] .ladda-label {\n opacity: 0;\n top: 1em;\n }\n &[data-style='slide-down'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-top: 0;\n }\n &[data-style='zoom-out'] {\n overflow: hidden;\n }\n &[data-style='zoom-out'] .ladda-spinner {\n left: 50%;\n margin-left: 32px;\n transform: scale(2.5);\n }\n &[data-style='zoom-out'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-out'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(0.5);\n }\n &[data-style='zoom-out'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='zoom-in'] {\n overflow: hidden;\n }\n &[data-style='zoom-in'] .ladda-spinner {\n left: 50%;\n margin-left: -16px;\n transform: scale(0.2);\n }\n &[data-style='zoom-in'] .ladda-label {\n position: relative;\n display: inline-block;\n }\n &[data-style='zoom-in'][data-loading] .ladda-label {\n opacity: 0;\n transform: scale(2.2);\n }\n &[data-style='zoom-in'][data-loading] .ladda-spinner {\n opacity: 1;\n margin-left: 0;\n transform: none;\n }\n &[data-style='contract'] {\n overflow: hidden;\n width: 100px;\n }\n &[data-style='contract'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract'][data-loading] {\n border-radius: 50%;\n width: 52px;\n }\n &[data-style='contract'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n &[data-style='contract-overlay'] {\n overflow: hidden;\n width: 100px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0);\n }\n &[data-style='contract-overlay'] .ladda-spinner {\n left: 50%;\n margin-left: 0;\n }\n &[data-style='contract-overlay'][data-loading] {\n border-radius: 50%;\n width: 52px;\n box-shadow: 0px 0px 0px 2000px rgba(0, 0, 0, 0.8);\n }\n &[data-style='contract-overlay'][data-loading] .ladda-label {\n opacity: 0;\n }\n &[data-style='contract-overlay'][data-loading] .ladda-spinner {\n opacity: 1;\n }\n [dir='rtl'] .ladda-spinner > div {\n left: 25% !important;\n }\n"])), function (props) {
509
509
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
510
510
  return ((_a = props.theme.buttons) === null || _a === void 0 ? void 0 : _a.style) === 'bootstrap' && "\n border-radius: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n text-transform: none;\n -webkit-appearance: button;\n \n &:not(:disabled),\n &[type='button']:not(:disabled),\n &[type='reset']:not(:disabled),\n &[type='submit']:not(:disabled) {\n cursor: pointer;\n }\n \n &:focus:not(:focus-visible) {\n outline: 0;\n }\n \n --bs-btn-padding-x: 0.75rem;\n --bs-btn-padding-y: 0.375rem;\n --bs-btn-font-family: ;\n --bs-btn-font-size: 1rem;\n --bs-btn-font-weight: 400;\n --bs-btn-line-height: 1.5;\n --bs-btn-color: var(--bs-body-color);\n --bs-btn-bg: transparent;\n --bs-btn-border-width: var(--bs-border-width);\n --bs-btn-border-color: transparent;\n --bs-btn-border-radius: var(--bs-border-radius);\n --bs-btn-hover-border-color: transparent;\n --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),\n 0 1px 1px rgba(0, 0, 0, 0.075);\n --bs-btn-disabled-opacity: 0.65;\n --bs-btn-focus-box-shadow: 0 0 0 0.25rem\n rgba(var(--bs-btn-focus-shadow-rgb), 0.5);\n display: inline-block;\n padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);\n font-family: var(--bs-btn-font-family);\n font-size: var(--bs-btn-font-size);\n font-weight: var(--bs-btn-font-weight);\n line-height: var(--bs-btn-line-height);\n color: var(--bs-btn-color);\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);\n border-radius: var(--bs-btn-border-radius);\n background-color: var(--bs-btn-bg);\n //transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,\n // border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n \n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n \n &:hover {\n filter: brightness(1.15);\n }\n \n &:focus-visible {\n color: var(--bs-btn-hover-color);\n background-color: var(--bs-btn-hover-bg);\n border-color: var(--bs-btn-hover-border-color);\n outline: 0;\n box-shadow: var(--bs-btn-focus-box-shadow);\n }\n \n &:disabled,\n &.disabled,\n fieldset:disabled & {\n color: var(--bs-btn-disabled-color);\n pointer-events: none;\n background-color: var(--bs-btn-disabled-bg);\n border-color: var(--bs-btn-disabled-border-color);\n opacity: var(--bs-btn-disabled-opacity);\n }\n \n --bs-btn-color: ".concat((_f = (_b = props.$textColor) !== null && _b !== void 0 ? _b : (_e = (_c = props.theme.buttons) === null || _c === void 0 ? void 0 : _c[(_d = props.$variant) !== null && _d !== void 0 ? _d : 'primary']) === null || _e === void 0 ? void 0 : _e.textColor) !== null && _f !== void 0 ? _f : '#fff', ";\n --bs-btn-bg: ").concat((_l = (_g = props.$backgroundColor) !== null && _g !== void 0 ? _g : (_k = (_h = props.theme.buttons) === null || _h === void 0 ? void 0 : _h[(_j = props.$variant) !== null && _j !== void 0 ? _j : 'primary']) === null || _k === void 0 ? void 0 : _k.backgroundColor) !== null && _l !== void 0 ? _l : '#0d6efd', ";\n --bs-btn-border-color: var(--bs-btn-bg);\n --bs-btn-focus-shadow-rgb: 49, 132, 253;\n --bs-btn-active-color: #fff;\n --bs-btn-active-bg: #0a58ca;\n --bs-btn-active-border-color: #0a53be;\n --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n --bs-btn-disabled-color: ").concat((_q = (_m = props.$disabledTextColor) !== null && _m !== void 0 ? _m : (_p = (_o = props.theme.buttons) === null || _o === void 0 ? void 0 : _o.loading) === null || _p === void 0 ? void 0 : _p.textColor) !== null && _q !== void 0 ? _q : '#fff', ";\n --bs-btn-disabled-bg: ").concat((_u = (_r = props.$disabledBackgroundColor) !== null && _r !== void 0 ? _r : (_t = (_s = props.theme.buttons) === null || _s === void 0 ? void 0 : _s.loading) === null || _t === void 0 ? void 0 : _t.backgroundColor) !== null && _u !== void 0 ? _u : 'gray', ";\n --bs-btn-disabled-border-color: ").concat((_v = props.$disabledBackgroundColor) !== null && _v !== void 0 ? _v : '#0d6efd', ";\n \n --bs-btn-padding-y: 14px;\n --bs-btn-padding-x: 1rem;\n --bs-btn-font-size: 18px;\n --bs-btn-border-radius: 4px;\n ");
511
511
  });
512
- var templateObject_1$E;
512
+ var templateObject_1$F;
513
513
 
514
514
  var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
515
515
  var accessBlockedImageUrl = _a.accessBlockedImageUrl;
@@ -756,7 +756,7 @@ var SessionValidationErrorOverlay = function SessionValidationErrorOverlay(_a) {
756
756
  }, retryText)))));
757
757
  };
758
758
 
759
- var Spinner = styled__default.default.div(templateObject_1$D || (templateObject_1$D = __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) {
759
+ var Spinner = styled__default.default.div(templateObject_1$E || (templateObject_1$E = __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) {
760
760
  var $size = _a.$size;
761
761
  return $size !== null && $size !== void 0 ? $size : 80;
762
762
  }, function (_a) {
@@ -781,7 +781,7 @@ var Spinner = styled__default.default.div(templateObject_1$D || (templateObject_
781
781
  var $color = _a.$color;
782
782
  return $color !== null && $color !== void 0 ? $color : '#888';
783
783
  });
784
- var templateObject_1$D;
784
+ var templateObject_1$E;
785
785
 
786
786
  exports.defaultAuthUrl = 'https://portal-api.idmission.com';
787
787
  var allowedAuthUrls = ['https://portal-api.idmission.com', 'https://portal-api-uat.idmission.com', 'https://portal-api-demo.idmission.com', 'https://portal-api-dev.idmission.com', 'http://localhost:10000'];
@@ -1844,7 +1844,7 @@ function getFrameDimensions(frame) {
1844
1844
  return [frameWidth, frameHeight];
1845
1845
  }
1846
1846
 
1847
- var InvisibleCanvas = styled__default.default.canvas(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
1847
+ var InvisibleCanvas = styled__default.default.canvas(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
1848
1848
  function drawToCanvas(canvas, frame, width, height) {
1849
1849
  if (!canvas) return;
1850
1850
  var ctx = canvas.getContext('2d');
@@ -1864,7 +1864,7 @@ function clearCanvas(canvas) {
1864
1864
  var _a;
1865
1865
  (_a = canvas === null || canvas === void 0 ? void 0 : canvas.getContext('2d')) === null || _a === void 0 ? void 0 : _a.clearRect(0, 0, canvas === null || canvas === void 0 ? void 0 : canvas.width, canvas === null || canvas === void 0 ? void 0 : canvas.height);
1866
1866
  }
1867
- var templateObject_1$C;
1867
+ var templateObject_1$D;
1868
1868
 
1869
1869
  function listAvailableCameras(facingMode_1) {
1870
1870
  return __awaiter(this, arguments, void 0, function (facingMode, requestMicAccess) {
@@ -6140,8 +6140,10 @@ var initialState$4 = {
6140
6140
  documentTooClose: false,
6141
6141
  flipRequired: false,
6142
6142
  backDetectedFirst: false,
6143
- allowOverrideFlipRequirement: false,
6144
- overrideFlipRequirement: false,
6143
+ enableOverrideWrongDocumentTypeDialog: false,
6144
+ allowOverrideWrongDocumentTypeAfterMs: 8000,
6145
+ allowOverrideWrongDocumentTypeGuidance: false,
6146
+ overrideWrongDocumentTypeGuidance: false,
6145
6147
  wrongDocumentTypePredictions: 0,
6146
6148
  idCardFrontDetectionScore: 0,
6147
6149
  idCardFrontDetectionThresholdMet: false,
@@ -6178,10 +6180,14 @@ var _reducer = function reducer(state, action) {
6178
6180
  var _c = action.payload,
6179
6181
  captureRequirement = _c.captureRequirement,
6180
6182
  precapturedDocuments = _c.precapturedDocuments,
6181
- allowIdCardBackToFrontCapture = _c.allowIdCardBackToFrontCapture;
6183
+ allowIdCardBackToFrontCapture = _c.allowIdCardBackToFrontCapture,
6184
+ enableOverrideWrongDocumentTypeDialog = _c.enableOverrideWrongDocumentTypeDialog,
6185
+ allowOverrideWrongDocumentTypeAfterMs = _c.allowOverrideWrongDocumentTypeAfterMs;
6182
6186
  var newState = _assign(_assign({}, state), {
6183
6187
  captureRequirement: captureRequirement,
6184
- allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture !== null && allowIdCardBackToFrontCapture !== void 0 ? allowIdCardBackToFrontCapture : false
6188
+ allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture !== null && allowIdCardBackToFrontCapture !== void 0 ? allowIdCardBackToFrontCapture : false,
6189
+ enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
6190
+ allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs
6185
6191
  });
6186
6192
  if (captureRequirement === 'idCardBack') newState.requestedDocumentType = 'idCardBack';
6187
6193
  if (captureRequirement === 'passport') newState.requestedDocumentType = 'passport';
@@ -6261,8 +6267,8 @@ var _reducer = function reducer(state, action) {
6261
6267
  goodFramesThreshold = Math.ceil(3 * frameCaptureRate);
6262
6268
  }
6263
6269
  }
6264
- var flipRequired = !state.overrideFlipRequirement && (state.allowIdCardBackToFrontCapture ? 'idCardFront' in state.capturedDocuments && detectedDocumentType === 'idCardFront' : state.requestedDocumentType === 'idCardBack' && detectedDocumentType === 'idCardFront');
6265
- var backDetectedFirst = !state.overrideFlipRequirement && (state.allowIdCardBackToFrontCapture ? 'idCardBack' in state.capturedDocuments && detectedDocumentType === 'idCardBack' : state.requestedDocumentType === 'idCardFront' && detectedDocumentType === 'idCardBack');
6270
+ var flipRequired = !state.overrideWrongDocumentTypeGuidance && (state.allowIdCardBackToFrontCapture ? 'idCardFront' in state.capturedDocuments && detectedDocumentType === 'idCardFront' : state.requestedDocumentType === 'idCardBack' && detectedDocumentType === 'idCardFront');
6271
+ var backDetectedFirst = !state.overrideWrongDocumentTypeGuidance && (state.allowIdCardBackToFrontCapture ? 'idCardBack' in state.capturedDocuments && detectedDocumentType === 'idCardBack' : state.requestedDocumentType === 'idCardFront' && detectedDocumentType === 'idCardBack');
6266
6272
  var wrongDocumentTypePredictions = state.wrongDocumentTypePredictions;
6267
6273
  if (state.captureState === 'capturing' && (flipRequired || backDetectedFirst)) {
6268
6274
  wrongDocumentTypePredictions += 1;
@@ -6290,8 +6296,8 @@ var _reducer = function reducer(state, action) {
6290
6296
  }
6291
6297
  }
6292
6298
  var hasBeenRunningForLongEnough = !!state.captureStartedAt && new Date().getTime() - state.captureStartedAt.getTime() > 1000;
6293
- var overrideFlipRequirementThreshold = Math.ceil(8 * frameCaptureRate);
6294
- var allowOverrideFlipRequirement = hasBeenRunningForLongEnough && !state.overrideFlipRequirement && overrideFlipRequirementThreshold > 0 && (state.allowOverrideFlipRequirement || wrongDocumentTypePredictions >= overrideFlipRequirementThreshold);
6299
+ var overrideFlipRequirementThreshold = Math.ceil(state.allowOverrideWrongDocumentTypeAfterMs / 1000 * frameCaptureRate);
6300
+ var allowOverrideFlipRequirement = state.enableOverrideWrongDocumentTypeDialog && hasBeenRunningForLongEnough && !state.overrideWrongDocumentTypeGuidance && overrideFlipRequirementThreshold > 0 && (state.allowOverrideWrongDocumentTypeGuidance || wrongDocumentTypePredictions >= overrideFlipRequirementThreshold);
6295
6301
  return _assign(_assign({}, state), {
6296
6302
  videoWidth: frameWidth,
6297
6303
  videoHeight: frameHeight,
@@ -6304,7 +6310,7 @@ var _reducer = function reducer(state, action) {
6304
6310
  documentTooClose: documentTooClose,
6305
6311
  flipRequired: flipRequired,
6306
6312
  backDetectedFirst: backDetectedFirst,
6307
- allowOverrideFlipRequirement: allowOverrideFlipRequirement,
6313
+ allowOverrideWrongDocumentTypeGuidance: allowOverrideFlipRequirement,
6308
6314
  wrongDocumentTypePredictions: wrongDocumentTypePredictions,
6309
6315
  idCardFrontDetectionScore: idCardFrontDetectionScore,
6310
6316
  idCardFrontDetectionThresholdMet: idCardFrontDetectionThresholdMet,
@@ -6419,18 +6425,18 @@ var _reducer = function reducer(state, action) {
6419
6425
  case 'flipRequestCompleted':
6420
6426
  return _assign(_assign({}, state), {
6421
6427
  captureState: 'capturing',
6422
- allowOverrideFlipRequirement: false,
6423
- overrideFlipRequirement: false,
6428
+ allowOverrideWrongDocumentTypeGuidance: false,
6429
+ overrideWrongDocumentTypeGuidance: false,
6424
6430
  wrongDocumentTypePredictions: 0
6425
6431
  });
6426
6432
  case 'allowOverrideFlipRequirement':
6427
6433
  return _assign(_assign({}, state), {
6428
- allowOverrideFlipRequirement: true
6434
+ allowOverrideWrongDocumentTypeGuidance: true
6429
6435
  });
6430
6436
  case 'overrideFlipRequirement':
6431
6437
  return _assign(_assign({}, state), {
6432
- allowOverrideFlipRequirement: false,
6433
- overrideFlipRequirement: true
6438
+ allowOverrideWrongDocumentTypeGuidance: false,
6439
+ overrideWrongDocumentTypeGuidance: true
6434
6440
  });
6435
6441
  case 'resetWizard':
6436
6442
  return _assign(_assign({}, initialState$4), {
@@ -6460,10 +6466,10 @@ var IdCaptureStateProvider = function IdCaptureStateProvider(_a) {
6460
6466
  }, [onResize]);
6461
6467
  var setRequiredDocumentType = React.useContext(IdCaptureModelsContext).setRequiredDocumentType;
6462
6468
  React.useEffect(function () {
6463
- if (state.overrideFlipRequirement) {
6469
+ if (state.overrideWrongDocumentTypeGuidance) {
6464
6470
  setRequiredDocumentType('none');
6465
6471
  }
6466
- }, [state.overrideFlipRequirement, setRequiredDocumentType]);
6472
+ }, [state.overrideWrongDocumentTypeGuidance, setRequiredDocumentType]);
6467
6473
  return /*#__PURE__*/React__namespace.default.createElement(IdCaptureStateContext.Provider, {
6468
6474
  value: state
6469
6475
  }, /*#__PURE__*/React__namespace.default.createElement(IdCaptureDispatchContext.Provider, {
@@ -6484,12 +6490,12 @@ function DebugStatsPane(_a) {
6484
6490
  if (!portalLocation) return element;
6485
6491
  return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
6486
6492
  }
6487
- var DebugStatsPaneDiv = styled__default.default.span(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\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"], ["\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"])));
6488
- var ObjectDetectionDebugOverlayDiv = styled__default.default.div(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n"], ["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n"])), function (_a) {
6493
+ var DebugStatsPaneDiv = styled__default.default.span(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\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"], ["\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"])));
6494
+ var ObjectDetectionDebugOverlayDiv = styled__default.default.div(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n"], ["\n position: absolute;\n z-index: 1001;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n"])), function (_a) {
6489
6495
  var $flipX = _a.$flipX;
6490
6496
  return $flipX ? 'transform: scaleX(-1);' : '';
6491
6497
  });
6492
- var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n"], ["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n"])), function (_a) {
6498
+ var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n"], ["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n"])), function (_a) {
6493
6499
  var $color = _a.$color;
6494
6500
  return $color !== null && $color !== void 0 ? $color : 'green';
6495
6501
  }, function (_a) {
@@ -6499,7 +6505,7 @@ var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$k ||
6499
6505
  var $flipX = _a.$flipX;
6500
6506
  return $flipX ? 'transform: scaleX(-1);' : '';
6501
6507
  });
6502
- var FaceDetectionKeypointMarker = styled__default.default.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n"], ["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n"])), function (_a) {
6508
+ var FaceDetectionKeypointMarker = styled__default.default.div(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n"], ["\n position: absolute;\n width: 4px;\n height: 4px;\n border: 2px solid ", ";\n font: 10px monospace;\n color: ", ";\n border-radius: 50%;\n ", "\n"])), function (_a) {
6503
6509
  var $color = _a.$color;
6504
6510
  return $color !== null && $color !== void 0 ? $color : 'red';
6505
6511
  }, function (_a) {
@@ -6690,7 +6696,7 @@ function SelfieCaptureFaceKeypoint(_a) {
6690
6696
  }
6691
6697
  });
6692
6698
  }
6693
- var templateObject_1$B, templateObject_2$q, templateObject_3$k, templateObject_4$f;
6699
+ var templateObject_1$C, templateObject_2$r, templateObject_3$l, templateObject_4$g;
6694
6700
 
6695
6701
  var enTranslation = {};
6696
6702
 
@@ -6794,7 +6800,9 @@ var esTranslation = {
6794
6800
  'Camera ready': 'Cámara está lista',
6795
6801
  'Loading guided capture experience...': 'Cargando la experiencia guiada para la captura....',
6796
6802
  'Guided capture experience ready': 'La experiencia guiada está lista',
6797
- "Let's Go!": 'Vamos!'
6803
+ "Let's Go!": 'Vamos!',
6804
+ 'We are having trouble identifying the correct side of your id, do you want to continue with capture anyway?': 'Estamos teniendo problemas para identificar el lado correcto de tu identificación, quieres continuar con la captura?',
6805
+ OK: 'Sí'
6798
6806
  };
6799
6807
 
6800
6808
  var resources = {
@@ -6858,7 +6866,7 @@ function useTranslations(verbiage, fallbacks) {
6858
6866
  }, [fallbacks, i18n.language, t, verbiage]);
6859
6867
  }
6860
6868
 
6861
- var GuidanceMessageContainerDiv = styled__default.default.div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
6869
+ var GuidanceMessageContainerDiv = styled__default.default.div(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"], ["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n"])), function (_a) {
6862
6870
  var $top = _a.$top;
6863
6871
  return $top !== null && $top !== void 0 ? $top : '10vh';
6864
6872
  }, function (_a) {
@@ -6871,17 +6879,61 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
6871
6879
  if (!portalLocation) return element;
6872
6880
  return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
6873
6881
  };
6874
- var GuidanceMessage = styled__default.default.div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"], ["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"])), function (props) {
6882
+ var GuidanceMessage = styled__default.default.div(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"], ["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n padding: 10px 12px 8px;\n border-radius: 8px;\n z-index: 10001;\n"])), function (props) {
6875
6883
  var _a, _b, _c, _d, _e, _f;
6876
6884
  return (_f = (_a = props.$background) !== 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.backgroundColor) !== null && _f !== void 0 ? _f : '#ccc';
6877
6885
  }, function (props) {
6878
6886
  var _a, _b, _c, _d, _e, _f;
6879
6887
  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';
6880
6888
  });
6881
- var templateObject_1$A, templateObject_2$p;
6889
+ var templateObject_1$B, templateObject_2$q;
6882
6890
 
6883
6891
  var DEFAULT_CDN_URL = 'https://websdk-cdn-dev.idmission.com/assets';
6884
6892
 
6893
+ function OverrideWrongDocumentTypeGuidanceDialog(_a) {
6894
+ var _b = _a.classNames,
6895
+ classNames = _b === void 0 ? {} : _b,
6896
+ _c = _a.verbiage,
6897
+ rawVerbiage = _c === void 0 ? {} : _c;
6898
+ var _d = useIdCaptureState(),
6899
+ state = _d[0],
6900
+ dispatch = _d[1];
6901
+ var verbiage = useTranslations(rawVerbiage, {
6902
+ messageText: 'We are having trouble identifying the correct side of your id, do you want to continue with capture anyway?',
6903
+ buttonText: 'OK'
6904
+ });
6905
+ if (!state.allowOverrideWrongDocumentTypeGuidance) return null;
6906
+ return /*#__PURE__*/React__namespace.default.createElement(Container$1, {
6907
+ className: classNames.container
6908
+ }, /*#__PURE__*/React__namespace.default.createElement(InnerContainer, {
6909
+ className: classNames.inner
6910
+ }, /*#__PURE__*/React__namespace.default.createElement(Message, {
6911
+ className: classNames.message
6912
+ }, verbiage.messageText), /*#__PURE__*/React__namespace.default.createElement(ButtonContainer, {
6913
+ className: classNames.buttonContainer
6914
+ }, /*#__PURE__*/React__namespace.default.createElement(Button, {
6915
+ variant: "positive",
6916
+ className: classNames.button,
6917
+ onClick: function onClick() {
6918
+ return dispatch({
6919
+ type: 'overrideFlipRequirement'
6920
+ });
6921
+ }
6922
+ }, verbiage.buttonText))));
6923
+ }
6924
+ var Container$1 = styled__default.default.div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n position: fixed;\n left: 0;\n bottom: 0;\n width: 100dvw;\n background: ", ";\n color: ", ";\n display: flex;\n z-index: 100001;\n"], ["\n position: fixed;\n left: 0;\n bottom: 0;\n width: 100dvw;\n background: ", ";\n color: ", ";\n display: flex;\n z-index: 100001;\n"])), function (props) {
6925
+ var _a, _b, _c;
6926
+ return (_c = (_b = (_a = props.theme.idCapture) === null || _a === void 0 ? void 0 : _a.overrideWrongDocumentTypeGuidance) === null || _b === void 0 ? void 0 : _b.backgroundColor) !== null && _c !== void 0 ? _c : '#eed202';
6927
+ }, function (props) {
6928
+ var _a, _b, _c;
6929
+ return (_c = (_b = (_a = props.theme.idCapture) === null || _a === void 0 ? void 0 : _a.overrideWrongDocumentTypeGuidance) === null || _b === void 0 ? void 0 : _b.textColor) !== null && _c !== void 0 ? _c : 'black';
6930
+ });
6931
+ var InnerContainer = styled__default.default.div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
6932
+ var Message = styled__default.default.span(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n display: block;\n margin: auto 12px auto 0;\n"], ["\n display: block;\n margin: auto 12px auto 0;\n"])));
6933
+ var ButtonContainer = styled__default.default.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n margin-left: auto;\n"], ["\n display: flex;\n margin-left: auto;\n"])));
6934
+ var Button = styled__default.default(LoaderButton)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n white-space: nowrap;\n margin: auto;\n"], ["\n white-space: nowrap;\n margin: auto;\n"])));
6935
+ var templateObject_1$A, templateObject_2$p, templateObject_3$k, templateObject_4$f, templateObject_5$9;
6936
+
6885
6937
  var IdCapture = function IdCapture(_a) {
6886
6938
  var _b, _c, _d, _e, _f, _g, _h, _j;
6887
6939
  var requiredDocumentType = _a.requiredDocumentType,
@@ -7016,46 +7068,10 @@ var IdCapture = function IdCapture(_a) {
7016
7068
  }, /*#__PURE__*/React__namespace.default.createElement(GuidanceMessage, {
7017
7069
  "$variant": satisfied ? 'positive' : 'default',
7018
7070
  className: classNames.guidanceMessage
7019
- }, guidanceMessage), state.allowOverrideFlipRequirement && ( /*#__PURE__*/React__namespace.default.createElement("div", {
7020
- style: {
7021
- position: 'fixed',
7022
- left: 0,
7023
- bottom: 0,
7024
- width: '100dvw',
7025
- background: '#eed202',
7026
- display: 'flex',
7027
- zIndex: 100001
7028
- }
7029
- }, /*#__PURE__*/React__namespace.default.createElement("div", {
7030
- style: {
7031
- display: 'flex',
7032
- flexDirection: 'row',
7033
- padding: '16px 24px',
7034
- margin: 'auto 0',
7035
- width: '100%'
7036
- }
7037
- }, /*#__PURE__*/React__namespace.default.createElement("span", {
7038
- style: {
7039
- display: 'block',
7040
- margin: 'auto 12px auto 0'
7041
- }
7042
- }, "It appears that you are attempting to capture the wrong side of your ID card, but perhaps we are wrong about that. Would you like to proceed with capture anyway?"), /*#__PURE__*/React__namespace.default.createElement("div", {
7043
- style: {
7044
- marginLeft: 'auto',
7045
- display: 'flex'
7046
- }
7047
- }, /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
7048
- variant: "positive",
7049
- style: {
7050
- whiteSpace: 'nowrap',
7051
- margin: 'auto'
7052
- },
7053
- onClick: function onClick() {
7054
- return dispatch({
7055
- type: 'overrideFlipRequirement'
7056
- });
7057
- }
7058
- }, "Capture Anyway"))))))), debugMode && ( /*#__PURE__*/React__namespace.default.createElement(DebugBoundingBoxOverlay, {
7071
+ }, guidanceMessage), /*#__PURE__*/React__namespace.default.createElement(OverrideWrongDocumentTypeGuidanceDialog, {
7072
+ classNames: classNames.overrideWrongDocumentTypeGuidanceDialog,
7073
+ verbiage: rawVerbiage.overrideWrongDocumentTypeGuidanceDialog
7074
+ }))), debugMode && ( /*#__PURE__*/React__namespace.default.createElement(DebugBoundingBoxOverlay, {
7059
7075
  "$flipX": !((_j = cameraRef.current) === null || _j === void 0 ? void 0 : _j.isRearFacing),
7060
7076
  scaling: debugScalingDetails
7061
7077
  }, state.detectedObjects.map(function (obj, i) {
@@ -9650,50 +9666,56 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9650
9666
  forceFallbackMode = _3 === void 0 ? false : _3,
9651
9667
  _4 = _a.allowIdCardBackToFrontCapture,
9652
9668
  allowIdCardBackToFrontCapture = _4 === void 0 ? false : _4,
9653
- _5 = _a.assets,
9654
- assets = _5 === void 0 ? {} : _5,
9655
- _6 = _a.classNames,
9656
- classNames = _6 === void 0 ? {} : _6,
9657
- _7 = _a.colors,
9658
- colors = _7 === void 0 ? {} : _7,
9659
- _8 = _a.verbiage,
9660
- verbiage = _8 === void 0 ? {} : _8,
9661
- _9 = _a.debugMode,
9662
- debugMode = _9 === void 0 ? false : _9;
9663
- var _10 = useIdCaptureState(),
9664
- state = _10[0],
9665
- dispatch = _10[1];
9666
- var _11 = React.useContext(CameraStateContext),
9667
- cameraAccessDenied = _11.cameraAccessDenied,
9668
- requestCameraAccess = _11.requestCameraAccess,
9669
- releaseCameraAccess = _11.releaseCameraAccess;
9670
- var _12 = React.useState(false),
9671
- overlayDismissed = _12[0],
9672
- setOverlayDismissed = _12[1];
9673
- var _13 = React.useContext(SubmissionContext),
9674
- submissionStatus = _13.submissionStatus,
9675
- setIdFrontImage = _13.setIdFrontImage,
9676
- setIdBackImage = _13.setIdBackImage,
9677
- setPassportImage = _13.setPassportImage,
9678
- logIdFrontCaptureAttempt = _13.logIdFrontCaptureAttempt,
9679
- logIdBackCaptureAttempt = _13.logIdBackCaptureAttempt;
9680
- var _14 = React.useContext(IdCaptureModelsContext),
9681
- start = _14.start,
9682
- stop = _14.stop,
9683
- onPredictionMade = _14.onPredictionMade,
9684
- setRequiredDocumentType = _14.setRequiredDocumentType,
9685
- modelError = _14.modelError,
9686
- resetBestFrame = _14.resetBestFrame;
9669
+ _5 = _a.enableOverrideWrongDocumentTypeDialog,
9670
+ enableOverrideWrongDocumentTypeDialog = _5 === void 0 ? false : _5,
9671
+ _6 = _a.allowOverrideWrongDocumentTypeAfterMs,
9672
+ allowOverrideWrongDocumentTypeAfterMs = _6 === void 0 ? 8000 : _6,
9673
+ _7 = _a.assets,
9674
+ assets = _7 === void 0 ? {} : _7,
9675
+ _8 = _a.classNames,
9676
+ classNames = _8 === void 0 ? {} : _8,
9677
+ _9 = _a.colors,
9678
+ colors = _9 === void 0 ? {} : _9,
9679
+ _10 = _a.verbiage,
9680
+ verbiage = _10 === void 0 ? {} : _10,
9681
+ _11 = _a.debugMode,
9682
+ debugMode = _11 === void 0 ? false : _11;
9683
+ var _12 = useIdCaptureState(),
9684
+ state = _12[0],
9685
+ dispatch = _12[1];
9686
+ var _13 = React.useContext(CameraStateContext),
9687
+ cameraAccessDenied = _13.cameraAccessDenied,
9688
+ requestCameraAccess = _13.requestCameraAccess,
9689
+ releaseCameraAccess = _13.releaseCameraAccess;
9690
+ var _14 = React.useState(false),
9691
+ overlayDismissed = _14[0],
9692
+ setOverlayDismissed = _14[1];
9693
+ var _15 = React.useContext(SubmissionContext),
9694
+ submissionStatus = _15.submissionStatus,
9695
+ setIdFrontImage = _15.setIdFrontImage,
9696
+ setIdBackImage = _15.setIdBackImage,
9697
+ setPassportImage = _15.setPassportImage,
9698
+ logIdFrontCaptureAttempt = _15.logIdFrontCaptureAttempt,
9699
+ logIdBackCaptureAttempt = _15.logIdBackCaptureAttempt;
9700
+ var _16 = React.useContext(IdCaptureModelsContext),
9701
+ start = _16.start,
9702
+ stop = _16.stop,
9703
+ onPredictionMade = _16.onPredictionMade,
9704
+ setRequiredDocumentType = _16.setRequiredDocumentType,
9705
+ modelError = _16.modelError,
9706
+ resetBestFrame = _16.resetBestFrame;
9687
9707
  React.useEffect(function () {
9688
9708
  dispatch({
9689
9709
  type: 'configureWizard',
9690
9710
  payload: {
9691
9711
  captureRequirement: captureRequirement,
9692
9712
  precapturedDocuments: precapturedDocuments,
9693
- allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture
9713
+ allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
9714
+ enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
9715
+ allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs
9694
9716
  }
9695
9717
  });
9696
- }, [allowIdCardBackToFrontCapture, captureRequirement, dispatch, precapturedDocuments]);
9718
+ }, [allowIdCardBackToFrontCapture, allowOverrideWrongDocumentTypeAfterMs, captureRequirement, dispatch, enableOverrideWrongDocumentTypeDialog, precapturedDocuments]);
9697
9719
  var documentCount = Object.keys(state.capturedDocuments).length;
9698
9720
  React.useEffect(function () {
9699
9721
  documentCount && resetBestFrame();
@@ -9773,9 +9795,9 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9773
9795
  type: 'resetWizard'
9774
9796
  });
9775
9797
  }, [dispatch]);
9776
- var _15 = React.useState(0),
9777
- attempt = _15[0],
9778
- setAttempt = _15[1];
9798
+ var _17 = React.useState(0),
9799
+ attempt = _17[0],
9800
+ setAttempt = _17[1];
9779
9801
  var onExit = React.useCallback(function () {
9780
9802
  releaseCameraAccess();
9781
9803
  setOverlayDismissed(false);
@@ -9828,12 +9850,12 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9828
9850
  })
9829
9851
  };
9830
9852
  var theme = styled.useTheme();
9831
- var _16 = useIdCaptureState()[0],
9832
- guideRectX = _16.guideRectX,
9833
- guideRectY = _16.guideRectY,
9834
- guideRectWidth = _16.guideRectWidth,
9835
- guideRectHeight = _16.guideRectHeight,
9836
- imageUrl = _16.imageUrl;
9853
+ var _18 = useIdCaptureState()[0],
9854
+ guideRectX = _18.guideRectX,
9855
+ guideRectY = _18.guideRectY,
9856
+ guideRectWidth = _18.guideRectWidth,
9857
+ guideRectHeight = _18.guideRectHeight,
9858
+ imageUrl = _18.imageUrl;
9837
9859
  var idCaptureAssets = assets[state.requestedDocumentType];
9838
9860
  var idCaptureVerbiage = idCaptureVerbiages[state.requestedDocumentType];
9839
9861
  React.useEffect(function () {
@@ -14168,6 +14190,10 @@ var IdValidation = function IdValidation(_a) {
14168
14190
  forceFallbackMode = _m === void 0 ? false : _m,
14169
14191
  _o = _a.allowIdCardBackToFrontCapture,
14170
14192
  allowIdCardBackToFrontCapture = _o === void 0 ? false : _o,
14193
+ _p = _a.enableOverrideWrongDocumentTypeDialog,
14194
+ enableOverrideWrongDocumentTypeDialog = _p === void 0 ? false : _p,
14195
+ _q = _a.allowOverrideWrongDocumentTypeAfterMs,
14196
+ allowOverrideWrongDocumentTypeAfterMs = _q === void 0 ? 8000 : _q,
14171
14197
  onBeforeSubmit = _a.onBeforeSubmit,
14172
14198
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14173
14199
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -14181,28 +14207,28 @@ var IdValidation = function IdValidation(_a) {
14181
14207
  onUserCancel = _a.onUserCancel,
14182
14208
  onModelError = _a.onModelError,
14183
14209
  onCameraAccessDenied = _a.onCameraAccessDenied,
14184
- _p = _a.theme,
14185
- theme = _p === void 0 ? 'default' : _p,
14186
- _q = _a.assets,
14187
- assets = _q === void 0 ? {} : _q,
14188
- _r = _a.classNames,
14189
- classNames = _r === void 0 ? {} : _r,
14190
- _s = _a.colors,
14191
- colors = _s === void 0 ? {} : _s,
14192
- _t = _a.verbiage,
14193
- verbiage = _t === void 0 ? {} : _t,
14194
- _u = _a.captureSignature,
14195
- captureSignature = _u === void 0 ? false : _u,
14196
- _v = _a.captureSignatureVideo,
14197
- captureSignatureVideo = _v === void 0 ? false : _v,
14198
- _w = _a.captureAdditionalDocuments,
14199
- captureAdditionalDocuments = _w === void 0 ? [] : _w,
14200
- _x = _a.geolocationEnabled,
14201
- geolocationEnabled = _x === void 0 ? true : _x,
14202
- _y = _a.geolocationRequired,
14203
- geolocationRequired = _y === void 0 ? false : _y,
14204
- _z = _a.debugMode,
14205
- debugMode = _z === void 0 ? false : _z;
14210
+ _r = _a.theme,
14211
+ theme = _r === void 0 ? 'default' : _r,
14212
+ _s = _a.assets,
14213
+ assets = _s === void 0 ? {} : _s,
14214
+ _t = _a.classNames,
14215
+ classNames = _t === void 0 ? {} : _t,
14216
+ _u = _a.colors,
14217
+ colors = _u === void 0 ? {} : _u,
14218
+ _v = _a.verbiage,
14219
+ verbiage = _v === void 0 ? {} : _v,
14220
+ _w = _a.captureSignature,
14221
+ captureSignature = _w === void 0 ? false : _w,
14222
+ _x = _a.captureSignatureVideo,
14223
+ captureSignatureVideo = _x === void 0 ? false : _x,
14224
+ _y = _a.captureAdditionalDocuments,
14225
+ captureAdditionalDocuments = _y === void 0 ? [] : _y,
14226
+ _z = _a.geolocationEnabled,
14227
+ geolocationEnabled = _z === void 0 ? true : _z,
14228
+ _0 = _a.geolocationRequired,
14229
+ geolocationRequired = _0 === void 0 ? false : _0,
14230
+ _1 = _a.debugMode,
14231
+ debugMode = _1 === void 0 ? false : _1;
14206
14232
  useLanguage(lang);
14207
14233
  useDebugLogging(debugMode);
14208
14234
  var idCaptureProps = React.useMemo(function () {
@@ -14223,13 +14249,15 @@ var IdValidation = function IdValidation(_a) {
14223
14249
  portraitGuidesOnMobile: portraitGuidesOnMobile,
14224
14250
  rotateLoadingOverlayImageWhenPortrait: rotateLoadingOverlayImageWhenPortrait,
14225
14251
  modelLoadTimeoutMs: modelLoadTimeoutMs,
14252
+ enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
14253
+ allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
14226
14254
  assets: assets,
14227
14255
  classNames: classNames,
14228
14256
  colors: colors,
14229
14257
  verbiage: verbiage,
14230
14258
  debugMode: debugMode
14231
14259
  };
14232
- }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, assets, classNames, colors, verbiage, debugMode]);
14260
+ }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
14233
14261
  var additionalDocumentCaptureProps = React.useMemo(function () {
14234
14262
  return {
14235
14263
  documents: captureAdditionalDocuments,
@@ -14475,6 +14503,10 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14475
14503
  selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
14476
14504
  _p = _a.allowIdCardBackToFrontCapture,
14477
14505
  allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
14506
+ _q = _a.enableOverrideWrongDocumentTypeDialog,
14507
+ enableOverrideWrongDocumentTypeDialog = _q === void 0 ? false : _q,
14508
+ _r = _a.allowOverrideWrongDocumentTypeAfterMs,
14509
+ allowOverrideWrongDocumentTypeAfterMs = _r === void 0 ? 8000 : _r,
14478
14510
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14479
14511
  onDocumentUploaded = _a.onDocumentUploaded,
14480
14512
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -14491,28 +14523,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14491
14523
  onIdCaptureModelError = _a.onIdCaptureModelError,
14492
14524
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
14493
14525
  onCameraAccessDenied = _a.onCameraAccessDenied,
14494
- _q = _a.captureSignature,
14495
- captureSignature = _q === void 0 ? false : _q,
14496
- _r = _a.captureSignatureVideo,
14497
- captureSignatureVideo = _r === void 0 ? false : _r,
14498
- _s = _a.captureAdditionalDocuments,
14499
- captureAdditionalDocuments = _s === void 0 ? [] : _s,
14500
- _t = _a.theme,
14501
- theme = _t === void 0 ? 'default' : _t,
14502
- _u = _a.assets,
14503
- assets = _u === void 0 ? {} : _u,
14504
- _v = _a.classNames,
14505
- classNames = _v === void 0 ? {} : _v,
14506
- _w = _a.colors,
14507
- colors = _w === void 0 ? {} : _w,
14508
- _x = _a.verbiage,
14509
- verbiage = _x === void 0 ? {} : _x,
14510
- _y = _a.geolocationEnabled,
14511
- geolocationEnabled = _y === void 0 ? true : _y,
14512
- _z = _a.geolocationRequired,
14513
- geolocationRequired = _z === void 0 ? false : _z,
14514
- _0 = _a.debugMode,
14515
- debugMode = _0 === void 0 ? false : _0;
14526
+ _s = _a.captureSignature,
14527
+ captureSignature = _s === void 0 ? false : _s,
14528
+ _t = _a.captureSignatureVideo,
14529
+ captureSignatureVideo = _t === void 0 ? false : _t,
14530
+ _u = _a.captureAdditionalDocuments,
14531
+ captureAdditionalDocuments = _u === void 0 ? [] : _u,
14532
+ _v = _a.theme,
14533
+ theme = _v === void 0 ? 'default' : _v,
14534
+ _w = _a.assets,
14535
+ assets = _w === void 0 ? {} : _w,
14536
+ _x = _a.classNames,
14537
+ classNames = _x === void 0 ? {} : _x,
14538
+ _y = _a.colors,
14539
+ colors = _y === void 0 ? {} : _y,
14540
+ _z = _a.verbiage,
14541
+ verbiage = _z === void 0 ? {} : _z,
14542
+ _0 = _a.geolocationEnabled,
14543
+ geolocationEnabled = _0 === void 0 ? true : _0,
14544
+ _1 = _a.geolocationRequired,
14545
+ geolocationRequired = _1 === void 0 ? false : _1,
14546
+ _2 = _a.debugMode,
14547
+ debugMode = _2 === void 0 ? false : _2;
14516
14548
  useLanguage(lang);
14517
14549
  useDebugLogging(debugMode);
14518
14550
  var idCaptureProps = React.useMemo(function () {
@@ -14534,10 +14566,12 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14534
14566
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
14535
14567
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
14536
14568
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
14569
+ enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
14570
+ allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
14537
14571
  skipSuccessScreen: skipSuccessScreen,
14538
14572
  debugMode: debugMode
14539
14573
  };
14540
- }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, skipSuccessScreen, debugMode]);
14574
+ }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, skipSuccessScreen, debugMode]);
14541
14575
  var faceLivenessProps = React.useMemo(function () {
14542
14576
  return {
14543
14577
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -14700,6 +14734,10 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14700
14734
  selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
14701
14735
  _p = _a.allowIdCardBackToFrontCapture,
14702
14736
  allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
14737
+ _q = _a.enableOverrideWrongDocumentTypeDialog,
14738
+ enableOverrideWrongDocumentTypeDialog = _q === void 0 ? false : _q,
14739
+ _r = _a.allowOverrideWrongDocumentTypeAfterMs,
14740
+ allowOverrideWrongDocumentTypeAfterMs = _r === void 0 ? 8000 : _r,
14703
14741
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14704
14742
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
14705
14743
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -14715,28 +14753,28 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14715
14753
  onIdCaptureModelError = _a.onIdCaptureModelError,
14716
14754
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
14717
14755
  onCameraAccessDenied = _a.onCameraAccessDenied,
14718
- _q = _a.captureSignature,
14719
- captureSignature = _q === void 0 ? false : _q,
14720
- _r = _a.captureSignatureVideo,
14721
- captureSignatureVideo = _r === void 0 ? false : _r,
14722
- _s = _a.captureAdditionalDocuments,
14723
- captureAdditionalDocuments = _s === void 0 ? [] : _s,
14724
- _t = _a.theme,
14725
- theme = _t === void 0 ? 'default' : _t,
14726
- _u = _a.assets,
14727
- assets = _u === void 0 ? {} : _u,
14728
- _v = _a.classNames,
14729
- classNames = _v === void 0 ? {} : _v,
14730
- _w = _a.colors,
14731
- colors = _w === void 0 ? {} : _w,
14732
- _x = _a.verbiage,
14733
- verbiage = _x === void 0 ? {} : _x,
14734
- _y = _a.geolocationEnabled,
14735
- geolocationEnabled = _y === void 0 ? true : _y,
14736
- _z = _a.geolocationRequired,
14737
- geolocationRequired = _z === void 0 ? false : _z,
14738
- _0 = _a.debugMode,
14739
- debugMode = _0 === void 0 ? false : _0;
14756
+ _s = _a.captureSignature,
14757
+ captureSignature = _s === void 0 ? false : _s,
14758
+ _t = _a.captureSignatureVideo,
14759
+ captureSignatureVideo = _t === void 0 ? false : _t,
14760
+ _u = _a.captureAdditionalDocuments,
14761
+ captureAdditionalDocuments = _u === void 0 ? [] : _u,
14762
+ _v = _a.theme,
14763
+ theme = _v === void 0 ? 'default' : _v,
14764
+ _w = _a.assets,
14765
+ assets = _w === void 0 ? {} : _w,
14766
+ _x = _a.classNames,
14767
+ classNames = _x === void 0 ? {} : _x,
14768
+ _y = _a.colors,
14769
+ colors = _y === void 0 ? {} : _y,
14770
+ _z = _a.verbiage,
14771
+ verbiage = _z === void 0 ? {} : _z,
14772
+ _0 = _a.geolocationEnabled,
14773
+ geolocationEnabled = _0 === void 0 ? true : _0,
14774
+ _1 = _a.geolocationRequired,
14775
+ geolocationRequired = _1 === void 0 ? false : _1,
14776
+ _2 = _a.debugMode,
14777
+ debugMode = _2 === void 0 ? false : _2;
14740
14778
  useLanguage(lang);
14741
14779
  useDebugLogging(debugMode);
14742
14780
  var idCaptureProps = React.useMemo(function () {
@@ -14754,13 +14792,15 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14754
14792
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
14755
14793
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
14756
14794
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
14795
+ enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
14796
+ allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
14757
14797
  onExitCapture: onExitCapture,
14758
14798
  onUserCancel: onUserCancel,
14759
14799
  onModelError: onIdCaptureModelError,
14760
14800
  skipSuccessScreen: skipSuccessScreen,
14761
14801
  debugMode: debugMode
14762
14802
  };
14763
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
14803
+ }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
14764
14804
  var faceLivenessProps = React.useMemo(function () {
14765
14805
  return {
14766
14806
  onExitCapture: onExitCapture,