idmission-web-sdk 2.2.164 → 2.2.166

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.
Files changed (42) hide show
  1. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -0
  2. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
  3. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
  4. package/dist/components/id_capture/IdCaptureLoadingOverlayLegacy.d.ts.map +1 -1
  5. package/dist/components/id_capture/IdCaptureModelsProvider.d.ts +1 -0
  6. package/dist/components/id_capture/IdCaptureModelsProvider.d.ts.map +1 -1
  7. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -0
  8. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
  9. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
  10. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayLegacy.d.ts.map +1 -1
  11. package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +1 -0
  12. package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts.map +1 -1
  13. package/dist/contexts/AuthStateContext.d.ts.map +1 -1
  14. package/dist/lib/locales/de.d.ts +3 -1
  15. package/dist/lib/locales/de.d.ts.map +1 -1
  16. package/dist/lib/locales/es.d.ts +1 -1
  17. package/dist/lib/locales/fr.d.ts +3 -1
  18. package/dist/lib/locales/fr.d.ts.map +1 -1
  19. package/dist/lib/locales/index.d.ts +21 -7
  20. package/dist/lib/locales/index.d.ts.map +1 -1
  21. package/dist/lib/locales/it.d.ts +3 -1
  22. package/dist/lib/locales/it.d.ts.map +1 -1
  23. package/dist/lib/locales/ja.d.ts +3 -1
  24. package/dist/lib/locales/ja.d.ts.map +1 -1
  25. package/dist/lib/locales/pt.d.ts +3 -1
  26. package/dist/lib/locales/pt.d.ts.map +1 -1
  27. package/dist/lib/locales/ru.d.ts +2 -0
  28. package/dist/lib/locales/ru.d.ts.map +1 -1
  29. package/dist/lib/locales/zh.d.ts +3 -1
  30. package/dist/lib/locales/zh.d.ts.map +1 -1
  31. package/dist/sdk2.cjs.development.js +379 -285
  32. package/dist/sdk2.cjs.development.js.map +1 -1
  33. package/dist/sdk2.cjs.production.js +1 -1
  34. package/dist/sdk2.cjs.production.js.map +1 -1
  35. package/dist/sdk2.esm.js +379 -286
  36. package/dist/sdk2.esm.js.map +1 -1
  37. package/dist/sdk2.umd.development.js +397 -290
  38. package/dist/sdk2.umd.development.js.map +1 -1
  39. package/dist/sdk2.umd.production.js +1 -1
  40. package/dist/sdk2.umd.production.js.map +1 -1
  41. package/dist/version.d.ts +1 -1
  42. package/package.json +2 -1
@@ -15,6 +15,7 @@ var useDebounce = require('use-debounce');
15
15
  var middleware = require('zustand/middleware');
16
16
  var shallow = require('zustand/react/shallow');
17
17
  var reactDom = require('react-dom');
18
+ var cn = require('clsx');
18
19
  var SignatureCanvas = require('react-signature-canvas');
19
20
 
20
21
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -44,6 +45,7 @@ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
44
45
  var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
45
46
  var LanguageDetector__default = /*#__PURE__*/_interopDefaultCompat(LanguageDetector);
46
47
  var i18n__default = /*#__PURE__*/_interopDefaultCompat(i18n);
48
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
47
49
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultCompat(SignatureCanvas);
48
50
 
49
51
  /******************************************************************************
@@ -233,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
233
235
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
234
236
  };
235
237
 
236
- var webSdkVersion = '2.2.164';
238
+ var webSdkVersion = '2.2.166';
237
239
 
238
240
  function getPlatform() {
239
241
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -770,38 +772,60 @@ var SessionValidationErrorOverlay = function SessionValidationErrorOverlay(_a) {
770
772
  }, retryText)))));
771
773
  };
772
774
 
773
- var wavesAnimation = styled.keyframes(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"], ["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
774
- var progressBarAnimation = styled.keyframes(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"], ["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
775
- var dualRingSpinnerAnimation = styled.keyframes(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
776
- var progressBorderAnimation = styled.keyframes(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n to {\n stroke-dashoffset: 0;\n }\n"], ["\n to {\n stroke-dashoffset: 0;\n }\n"])));
777
- var templateObject_1$K, templateObject_2$B, templateObject_3$r, templateObject_4$l;
778
-
779
- var Spinner = styled__default.default.div(templateObject_1$J || (templateObject_1$J = __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: ", " 1.2s linear infinite;\n box-sizing: content-box;\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: ", " 1.2s linear infinite;\n box-sizing: content-box;\n }\n"])), function (_a) {
780
- var $size = _a.$size;
781
- return $size !== null && $size !== void 0 ? $size : 80;
782
- }, function (_a) {
783
- var $size = _a.$size;
784
- return $size !== null && $size !== void 0 ? $size : 80;
785
- }, function (_a) {
786
- var $size = _a.$size;
787
- return ($size !== null && $size !== void 0 ? $size : 80) - 16;
788
- }, function (_a) {
789
- var $size = _a.$size;
790
- return ($size !== null && $size !== void 0 ? $size : 80) - 16;
791
- }, function (_a) {
792
- var $thickness = _a.$thickness;
793
- return $thickness !== null && $thickness !== void 0 ? $thickness : 6;
794
- }, function (_a) {
795
- var $color = _a.$color;
796
- return $color !== null && $color !== void 0 ? $color : '#888';
797
- }, function (_a) {
798
- var $color = _a.$color;
799
- return $color !== null && $color !== void 0 ? $color : '#888';
800
- }, function (_a) {
801
- var $color = _a.$color;
802
- return $color !== null && $color !== void 0 ? $color : '#888';
803
- }, dualRingSpinnerAnimation);
804
- var templateObject_1$J;
775
+ var LogLevel;
776
+ (function (LogLevel) {
777
+ LogLevel[LogLevel["Off"] = 0] = "Off";
778
+ LogLevel[LogLevel["Error"] = 1] = "Error";
779
+ LogLevel[LogLevel["Warn"] = 2] = "Warn";
780
+ LogLevel[LogLevel["Info"] = 3] = "Info";
781
+ LogLevel[LogLevel["Debug"] = 4] = "Debug";
782
+ })(LogLevel || (LogLevel = {}));
783
+ var logLevel = LogLevel.Warn;
784
+ function useLogLevel(newLogLevel) {
785
+ React.useEffect(function () {
786
+ var oldLogLevel = logLevel;
787
+ if (newLogLevel === oldLogLevel) return;
788
+ logLevel = newLogLevel;
789
+ return function () {
790
+ logLevel = oldLogLevel;
791
+ };
792
+ }, [newLogLevel]);
793
+ }
794
+ function useDebugLogging(enabled) {
795
+ useLogLevel(enabled ? LogLevel.Debug : logLevel);
796
+ }
797
+ function debug() {
798
+ var parts = [];
799
+ for (var _i = 0; _i < arguments.length; _i++) {
800
+ parts[_i] = arguments[_i];
801
+ }
802
+ if (logLevel < LogLevel.Debug) return;
803
+ console.debug.apply(console, parts); // eslint-disable-line no-console
804
+ }
805
+ function log() {
806
+ var parts = [];
807
+ for (var _i = 0; _i < arguments.length; _i++) {
808
+ parts[_i] = arguments[_i];
809
+ }
810
+ if (logLevel < LogLevel.Info) return;
811
+ console.log.apply(console, parts); // eslint-disable-line no-console
812
+ }
813
+ function warn() {
814
+ var parts = [];
815
+ for (var _i = 0; _i < arguments.length; _i++) {
816
+ parts[_i] = arguments[_i];
817
+ }
818
+ if (logLevel < LogLevel.Warn) return;
819
+ console.warn.apply(console, parts); // eslint-disable-line no-console
820
+ }
821
+ function error() {
822
+ var parts = [];
823
+ for (var _i = 0; _i < arguments.length; _i++) {
824
+ parts[_i] = arguments[_i];
825
+ }
826
+ if (logLevel < LogLevel.Error) return;
827
+ console.error.apply(console, parts); // eslint-disable-line no-console
828
+ }
805
829
 
806
830
  exports.defaultAuthUrl = 'https://portal-api.idmission.com';
807
831
  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'];
@@ -840,8 +864,95 @@ var reducer$4 = function reducer(state, action) {
840
864
  return state;
841
865
  }
842
866
  };
867
+ function makeValidateSessionRequest(authUrl_1, sessionId_1) {
868
+ return __awaiter(this, arguments, void 0, function (authUrl, sessionId, retryCount) {
869
+ var maxRetries, baseDelay, response, delay_1, error_1, delay_2;
870
+ if (retryCount === void 0) {
871
+ retryCount = 0;
872
+ }
873
+ return __generator(this, function (_a) {
874
+ switch (_a.label) {
875
+ case 0:
876
+ maxRetries = 10;
877
+ baseDelay = 1000 // 1 second
878
+ ;
879
+ _a.label = 1;
880
+ case 1:
881
+ _a.trys.push([1, 4,, 6]);
882
+ return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
883
+ method: 'POST',
884
+ headers: {
885
+ 'Content-Type': 'application/json'
886
+ },
887
+ body: JSON.stringify({
888
+ id: sessionId
889
+ })
890
+ })
891
+ // If the request was successful or we've hit max retries, return the response
892
+ ];
893
+ case 2:
894
+ response = _a.sent();
895
+ // If the request was successful or we've hit max retries, return the response
896
+ if (response.ok || retryCount >= maxRetries) {
897
+ return [2 /*return*/, response];
898
+ }
899
+ delay_1 = baseDelay * Math.pow(2, retryCount) // Exponential backoff
900
+ ;
901
+ return [4 /*yield*/, new Promise(function (resolve) {
902
+ return setTimeout(resolve, delay_1);
903
+ })];
904
+ case 3:
905
+ _a.sent();
906
+ return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
907
+ case 4:
908
+ error_1 = _a.sent();
909
+ // If we've hit max retries, throw the error
910
+ if (retryCount >= maxRetries) {
911
+ throw error_1;
912
+ }
913
+ delay_2 = baseDelay * Math.pow(2, retryCount);
914
+ return [4 /*yield*/, new Promise(function (resolve) {
915
+ return setTimeout(resolve, delay_2);
916
+ })];
917
+ case 5:
918
+ _a.sent();
919
+ return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
920
+ case 6:
921
+ return [2 /*return*/];
922
+ }
923
+ });
924
+ });
925
+ }
926
+ function validateSession(authUrl, sessionId) {
927
+ return __awaiter(this, void 0, void 0, function () {
928
+ var resp, respText, message, valid, respJson;
929
+ return __generator(this, function (_a) {
930
+ switch (_a.label) {
931
+ case 0:
932
+ return [4 /*yield*/, makeValidateSessionRequest(authUrl, sessionId)];
933
+ case 1:
934
+ resp = _a.sent();
935
+ return [4 /*yield*/, resp.text()];
936
+ case 2:
937
+ respText = _a.sent();
938
+ message = respText;
939
+ valid = false;
940
+ try {
941
+ respJson = JSON.parse(respText);
942
+ message = respJson.message;
943
+ valid = respJson.valid;
944
+ } catch (e) {
945
+ warn('Failed to parse session validation response', e);
946
+ }
947
+ if (!resp.ok) {
948
+ throw new SessionValidationFailedError(new Error(message), authUrl);
949
+ }
950
+ return [2 /*return*/, valid];
951
+ }
952
+ });
953
+ });
954
+ }
843
955
  function useAuthReducer(authUrl, sessionId) {
844
- var _this = this;
845
956
  if (authUrl === void 0) {
846
957
  authUrl = exports.defaultAuthUrl;
847
958
  }
@@ -887,51 +998,17 @@ function useAuthReducer(authUrl, sessionId) {
887
998
  type: 'setCheckState',
888
999
  payload: 'RUNNING'
889
1000
  });
890
- (function () {
891
- return __awaiter(_this, void 0, void 0, function () {
892
- var resp, _a, valid, message, e_1;
893
- return __generator(this, function (_b) {
894
- switch (_b.label) {
895
- case 0:
896
- _b.trys.push([0, 3,, 4]);
897
- return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
898
- method: 'POST',
899
- headers: {
900
- 'Content-Type': 'application/json'
901
- },
902
- body: JSON.stringify({
903
- id: resolvedSessionId
904
- })
905
- })];
906
- case 1:
907
- resp = _b.sent();
908
- return [4 /*yield*/, resp.json()];
909
- case 2:
910
- _a = _b.sent(), valid = _a.valid, message = _a.message;
911
- if (!resp.ok) {
912
- dispatch({
913
- type: 'setError',
914
- payload: new SessionValidationFailedError(new Error(message), authUrl)
915
- });
916
- }
917
- dispatch({
918
- type: 'setCheckState',
919
- payload: valid ? 'PASSED' : 'FAILED'
920
- });
921
- return [3 /*break*/, 4];
922
- case 3:
923
- e_1 = _b.sent();
924
- dispatch({
925
- type: 'setError',
926
- payload: new SessionValidationFailedError(e_1, authUrl)
927
- });
928
- return [3 /*break*/, 4];
929
- case 4:
930
- return [2 /*return*/];
931
- }
932
- });
1001
+ validateSession(authUrl, resolvedSessionId).then(function (valid) {
1002
+ dispatch({
1003
+ type: 'setCheckState',
1004
+ payload: valid ? 'PASSED' : 'FAILED'
1005
+ });
1006
+ })["catch"](function (e) {
1007
+ dispatch({
1008
+ type: 'setError',
1009
+ payload: new SessionValidationFailedError(e, authUrl)
933
1010
  });
934
- })();
1011
+ });
935
1012
  }
936
1013
  }, [authUrl, sessionCheckState, resolvedSessionId, sessionId]);
937
1014
  return [state, dispatch];
@@ -972,9 +1049,6 @@ function AuthProvider(_a) {
972
1049
  }
973
1050
  });
974
1051
  }
975
- if (state.sessionCheckState === 'READY' || state.sessionCheckState === 'RUNNING') return /*#__PURE__*/React__namespace.default.createElement(PageContainer, {
976
- className: "flex"
977
- }, /*#__PURE__*/React__namespace.default.createElement(Spinner, null));
978
1052
  return /*#__PURE__*/React__namespace.default.createElement(AuthStateContext.Provider, {
979
1053
  value: state
980
1054
  }, /*#__PURE__*/React__namespace.default.createElement(AuthDispatchContext.Provider, {
@@ -982,61 +1056,6 @@ function AuthProvider(_a) {
982
1056
  }, children));
983
1057
  }
984
1058
 
985
- var LogLevel;
986
- (function (LogLevel) {
987
- LogLevel[LogLevel["Off"] = 0] = "Off";
988
- LogLevel[LogLevel["Error"] = 1] = "Error";
989
- LogLevel[LogLevel["Warn"] = 2] = "Warn";
990
- LogLevel[LogLevel["Info"] = 3] = "Info";
991
- LogLevel[LogLevel["Debug"] = 4] = "Debug";
992
- })(LogLevel || (LogLevel = {}));
993
- var logLevel = LogLevel.Warn;
994
- function useLogLevel(newLogLevel) {
995
- React.useEffect(function () {
996
- var oldLogLevel = logLevel;
997
- if (newLogLevel === oldLogLevel) return;
998
- logLevel = newLogLevel;
999
- return function () {
1000
- logLevel = oldLogLevel;
1001
- };
1002
- }, [newLogLevel]);
1003
- }
1004
- function useDebugLogging(enabled) {
1005
- useLogLevel(enabled ? LogLevel.Debug : logLevel);
1006
- }
1007
- function debug() {
1008
- var parts = [];
1009
- for (var _i = 0; _i < arguments.length; _i++) {
1010
- parts[_i] = arguments[_i];
1011
- }
1012
- if (logLevel < LogLevel.Debug) return;
1013
- console.debug.apply(console, parts); // eslint-disable-line no-console
1014
- }
1015
- function log() {
1016
- var parts = [];
1017
- for (var _i = 0; _i < arguments.length; _i++) {
1018
- parts[_i] = arguments[_i];
1019
- }
1020
- if (logLevel < LogLevel.Info) return;
1021
- console.log.apply(console, parts); // eslint-disable-line no-console
1022
- }
1023
- function warn() {
1024
- var parts = [];
1025
- for (var _i = 0; _i < arguments.length; _i++) {
1026
- parts[_i] = arguments[_i];
1027
- }
1028
- if (logLevel < LogLevel.Warn) return;
1029
- console.warn.apply(console, parts); // eslint-disable-line no-console
1030
- }
1031
- function error() {
1032
- var parts = [];
1033
- for (var _i = 0; _i < arguments.length; _i++) {
1034
- parts[_i] = arguments[_i];
1035
- }
1036
- if (logLevel < LogLevel.Error) return;
1037
- console.error.apply(console, parts); // eslint-disable-line no-console
1038
- }
1039
-
1040
1059
  exports.defaultSubmissionUrl = 'https://portal-api.idmission.com/swagger';
1041
1060
  function setDefaultSubmissionUrl(url) {
1042
1061
  exports.defaultSubmissionUrl = url;
@@ -2091,7 +2110,7 @@ function getFrameDimensions(frame) {
2091
2110
  return [frameWidth, frameHeight];
2092
2111
  }
2093
2112
 
2094
- var InvisibleCanvas = styled__default.default.canvas(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
2113
+ var InvisibleCanvas = styled__default.default.canvas(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
2095
2114
  function drawToCanvas(canvas, frame, width, height) {
2096
2115
  if (!canvas) return;
2097
2116
  var ctx = canvas.getContext('2d');
@@ -2111,7 +2130,7 @@ function clearCanvas(canvas) {
2111
2130
  var _a;
2112
2131
  (_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);
2113
2132
  }
2114
- var templateObject_1$I;
2133
+ var templateObject_1$K;
2115
2134
 
2116
2135
  function cropToShoulders(rawCanvas, cropCanvas, resizeCanvas, frame, face, quality, maxHeight) {
2117
2136
  if (quality === void 0) {
@@ -3563,7 +3582,7 @@ var es = {
3563
3582
  'Document is not centered': 'Documento no centrado',
3564
3583
  'Document too close please back up': 'Documento muy cerca, favor de alejarse',
3565
3584
  'Please hold your ID document steady': 'Por favor, hay que mantener firme su identificación',
3566
- 'Document out of focus try improving the lighting': 'Documento no enfocado, hay que tratar de mejorar la iluminación',
3585
+ 'Document out of focus - try improving the lighting': 'Documento no enfocado, hay que tratar de mejorar la iluminación',
3567
3586
  'ID card front detected - please flip your ID card': 'Frente de la ID detectado, por favor hay que voltearla',
3568
3587
  'ID card back detected - please flip your ID card': 'Reverso de la ID detectado, por favor hay que voltearla',
3569
3588
  'ID card detected please scan a passport instead': 'Se ha detectado una credencial, por favor hay que escanear un pasaporte',
@@ -3690,7 +3709,7 @@ var de = {
3690
3709
  'Document is not centered': 'Dokument ist nicht zentriert',
3691
3710
  'Document too close please back up': 'Dokument ist zu nah, bitte Abstand vergrößern',
3692
3711
  'Please hold your ID document steady': 'Ihr Ausweisdokument ruhig halten',
3693
- 'Document out of focus try improving the lighting': 'Dokument unscharf versuchen Sie, die Beleuchtung zu verbessern',
3712
+ 'Document out of focus - try improving the lighting': 'Dokument unscharf - versuchen Sie, die Beleuchtung zu verbessern',
3694
3713
  'ID card front detected - please flip your ID card': 'Vorderseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
3695
3714
  'ID card back detected - please flip your ID card': 'Rückseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
3696
3715
  'ID card detected please scan a passport instead': 'Ausweis erkannt, bitte stattdessen einen Pass scannen',
@@ -3773,7 +3792,7 @@ var de = {
3773
3792
  'Camera ready': 'Kamera bereit',
3774
3793
  'Loading guided capture experience...': 'Geführte Erfassung wird geladen...',
3775
3794
  'Guided capture experience ready': 'Geführte Erfassung bereit',
3776
- "Let's Go!": 'Los gehts!',
3795
+ "Let's Go!": "Los geht's!",
3777
3796
  'We are having trouble identifying the correct side of your id do you want to continue with capture anyway?': 'Wir haben Probleme, die richtige Seite Ihres Ausweises zu erkennen. Möchten Sie dennoch mit der Erfassung fortfahren?',
3778
3797
  OK: 'OK',
3779
3798
  'Capture with Camera': 'Mit der Kamera aufnehmen',
@@ -3785,7 +3804,9 @@ var de = {
3785
3804
  'Upload ID Front': 'Vorderseite der ID hochladen',
3786
3805
  'Upload ID Back': 'Rückseite der ID hochladen',
3787
3806
  Cancel: 'Abbrechen',
3788
- 'Upload the back of the ID if it is not included in the front image.': 'Laden Sie die Rückseite des Ausweises hoch, wenn diese nicht im Bild der Vorderseite enthalten ist.\r\n'
3807
+ 'Upload the back of the ID if it is not included in the front image.': 'Laden Sie die Rückseite des Ausweises hoch, wenn diese nicht im Bild der Vorderseite enthalten ist.',
3808
+ 'Camera tampering detected': 'Kamera manipuliert',
3809
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Leider scheint die Kamera manipuliert zu werden. Bitte prüfen Sie Ihr Gerät und laden Sie die Seite neu.'
3789
3810
  };
3790
3811
 
3791
3812
  var fr = {
@@ -3815,7 +3836,7 @@ var fr = {
3815
3836
  'Document is not centered': "Le document n'est pas centré",
3816
3837
  'Document too close please back up': 'Document trop proche, veuillez sauvegarder',
3817
3838
  'Please hold your ID document steady': "Veuillez maintenir fermement votre pièce d'identité",
3818
- 'Document out of focus try improving the lighting': 'Document flou essayez daméliorer l’éclairage',
3839
+ 'Document out of focus - try improving the lighting': "Document flou - essayez d'améliorer l'éclairage",
3819
3840
  'ID card front detected - please flip your ID card': "Recto de la carte d'identité détecté - veuillez retourner votre carte d'identité",
3820
3841
  'ID card back detected - please flip your ID card': "Verso de la carte d'identité détectée - veuillez retourner votre carte d'identité",
3821
3842
  'ID card detected please scan a passport instead': "Carte d'identité détectée, veuillez scanner plutôt un passeport",
@@ -3830,7 +3851,7 @@ var fr = {
3830
3851
  'ID card front captured.': "Recto de la carte d'identité capturé.",
3831
3852
  'ID card back captured.': "Verso de la carte d'identité capturé.",
3832
3853
  'ID Capture Successful': "Capture d'identité réussie",
3833
- 'Verify the entire ID was captured clearly with no glare.': "Vérifiez que l'intégralité de la pièce didentité a été capturée clairement, sans reflet.",
3854
+ 'Verify the entire ID was captured clearly with no glare.': "Vérifiez que l'intégralité de la pièce d'identité a été capturée clairement, sans reflet.",
3834
3855
  Submit: 'Soumettre',
3835
3856
  'Submitting...': 'Soumission en cours...',
3836
3857
  'Use your device camera to capture your face': 'Utilisez la caméra de votre appareil pour capturer votre visage',
@@ -3874,20 +3895,20 @@ var fr = {
3874
3895
  'Display the back of your ID card...': "Affichez le verso de votre carte d'identité...",
3875
3896
  'Display the ID page of your passport...': "Montrez la page d'identité de votre passeport...",
3876
3897
  'Please move your face to the center...': 'Veuillez déplacer votre visage vers le centre...',
3877
- 'Searching for ID card...': "Recherche dune carte d'identité...",
3898
+ 'Searching for ID card...': "Recherche d'une carte d'identité...",
3878
3899
  'Please read the following text aloud': 'Veuillez lire le texte suivant à voix haute',
3879
- 'Video ID has been successfully captured!': 'L’ID vidéo a été capturé avec succès!',
3880
- 'ID Front Image': 'Image recto de la pièce didentité',
3881
- 'ID Back Image': 'Image verso de la pièce didentité',
3900
+ 'Video ID has been successfully captured!': "L'ID vidéo a été capturé avec succès!",
3901
+ 'ID Front Image': "Image recto de la pièce d'identité",
3902
+ 'ID Back Image': "Image verso de la pièce d'identité",
3882
3903
  "We're having some trouble.": 'Nous rencontrons quelques problèmes.',
3883
3904
  'On-device capture guidance failed please capture a selfie manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer un selfie manuellement.",
3884
3905
  'Verifying...': 'Vérification en cours...',
3885
3906
  'Please capture the front of your ID card.': "Veuillez capturer le recto de votre carte d'identité.",
3886
3907
  'Please capture the back of your ID card.': "Veuillez capturer le verso de votre carte d'identité.",
3887
- 'Please capture the front of your ID card, or the ID page of your passport.': 'Veuillez capturer le recto de votre carte didentité ou la page didentité de votre passeport.',
3888
- 'Please capture the back of your ID card, or click Done if submitting a passport.': 'Veuillez capturer le verso de votre carte didentité ou cliquer sur Terminé si vous soumettez un passeport.',
3908
+ 'Please capture the front of your ID card, or the ID page of your passport.': "Veuillez capturer le recto de votre carte d'identité ou la page d'identité de votre passeport.",
3909
+ 'Please capture the back of your ID card, or click Done if submitting a passport.': "Veuillez capturer le verso de votre carte d'identité ou cliquer sur Terminé si vous soumettez un passeport.",
3889
3910
  'Please capture the ID page of your passport.': "Veuillez capturer la page d'identité de votre passeport.",
3890
- 'On-device capture guidance failed please capture a photo of your ID card manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre pièce didentité manuellement.",
3911
+ 'On-device capture guidance failed please capture a photo of your ID card manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre pièce d'identité manuellement.",
3891
3912
  'On-device capture guidance failed please capture a photo of your passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer une photo de votre passeport manuellement.",
3892
3913
  'On-device capture guidance failed please capture photos of your ID card and passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer manuellement des photos de votre carte d'identité et de votre passeport.",
3893
3914
  'On-device capture guidance failed please capture photos of your ID card or passport manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer manuellement des photos de votre carte d'identité ou de votre passeport.",
@@ -3910,7 +3931,9 @@ var fr = {
3910
3931
  'Upload ID Front': "Télécharger le recto de la pièce d'identité",
3911
3932
  'Upload ID Back': "Télécharger le verso de la pièce d'identité",
3912
3933
  Cancel: 'Annuler',
3913
- 'Upload the back of the ID if it is not included in the front image.': "Téléchargez le verso de la pièce d'identité si ce n'est pas inclus dans l'image du recto."
3934
+ 'Upload the back of the ID if it is not included in the front image.': "Téléchargez le verso de la pièce d'identité si ce n'est pas inclus dans l'image du recto.",
3935
+ 'Camera tampering detected': 'Manipulation de la caméra détectée',
3936
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Nous sommes désolés, mais il semble que la caméra soit manipulée. Veuillez vérifier votre appareil et réessayer en rechargeant la page.'
3914
3937
  };
3915
3938
 
3916
3939
  var it = {
@@ -3933,27 +3956,27 @@ var it = {
3933
3956
  'Scan the front of ID': 'Scansiona il fronte del documento',
3934
3957
  'Scan the back of ID': 'Scansiona il retro del documento',
3935
3958
  'Scan the ID page of passport': 'Scansione la pagina identificativa del passaporto',
3936
- 'ID Card Front': 'Fronte documento didentità',
3937
- 'ID Card Back': 'Retro documento didentità',
3959
+ 'ID Card Front': "Fronte documento d'identità",
3960
+ 'ID Card Back': "Retro documento d'identità",
3938
3961
  Passport: 'Passaporto',
3939
3962
  'Document not detected': 'Documento non rilevato',
3940
3963
  'Document is not centered': 'Documento non centrato',
3941
3964
  'Document too close please back up': 'Documento troppo vicino, allontanarlo',
3942
- 'Please hold your ID document steady': 'Tenere il documento didentità fermo',
3943
- 'Document out of focus try improving the lighting': 'Documento fuori fuoco - provare a migliorare lilluminazione',
3944
- 'ID card front detected - please flip your ID card': 'Fronte del documento didentità rilevato - Girare il documento didentità',
3945
- 'ID card back detected - please flip your ID card': 'Retro del documento didentità rilevato - Girare il documento didentità',
3946
- 'ID card detected please scan a passport instead': 'Documento didentità rilevato, scansionare un passaporto al suo posto',
3947
- 'Passport detected please scan an ID card instead': 'Passaporto rilevato, scansionare una documento didentità al suo posto',
3965
+ 'Please hold your ID document steady': "Tenere il documento d'identità fermo",
3966
+ 'Document out of focus - try improving the lighting': "Documento fuori fuoco - provare a migliorare l'illuminazione",
3967
+ 'ID card front detected - please flip your ID card': "Fronte del documento d'identità rilevato - Girare il documento d'identità",
3968
+ 'ID card back detected - please flip your ID card': "Retro del documento d'identità rilevato - Girare il documento d'identità",
3969
+ 'ID card detected please scan a passport instead': "Documento d'identità rilevato, scansionare un passaporto al suo posto",
3970
+ 'Passport detected please scan an ID card instead': "Passaporto rilevato, scansionare una documento d'identità al suo posto",
3948
3971
  'Document detected, hold still...': 'Documento rilevato, tenere fermo...',
3949
- 'ID card front detected, hold still...': 'Fronte documento didentità rilevato, tenere fermo...',
3950
- 'ID card back detected, hold still...': 'Retro documento didentità rilevato, tenere fermo...',
3972
+ 'ID card front detected, hold still...': "Fronte documento d'identità rilevato, tenere fermo...",
3973
+ 'ID card back detected, hold still...': "Retro documento d'identità rilevato, tenere fermo...",
3951
3974
  'Passport detected, hold still...': 'Passaporto rilevato, tenere fermo...',
3952
3975
  'Capturing...': 'Acquisizione...',
3953
3976
  'Capture failed!': 'Acquisizione non riuscita!',
3954
- 'Please flip your ID card...': 'Capovolgere il documento didentità',
3955
- 'ID card front captured.': 'Fronte documento didentità acquisito.',
3956
- 'ID card back captured.': 'Retro documento didentità acquisito.',
3977
+ 'Please flip your ID card...': "Capovolgere il documento d'identità",
3978
+ 'ID card front captured.': "Fronte documento d'identità acquisito.",
3979
+ 'ID card back captured.': "Retro documento d'identità acquisito.",
3957
3980
  'ID Capture Successful': 'Acquisizione documento riuscita',
3958
3981
  'Verify the entire ID was captured clearly with no glare.': 'Verificare che tutto il documento sia acquisito chiaramente e senza riflessi.',
3959
3982
  Submit: 'Invia',
@@ -3995,29 +4018,29 @@ var it = {
3995
4018
  'Uploading...': 'Caricamento...',
3996
4019
  'Upload succeeded!': 'Caricamento riuscito!',
3997
4020
  'Performing facial recognition, please hold still...': 'Riconoscimento volto in corso, tenere fermo...',
3998
- 'Display the front of your ID card...': 'Mostrare il fronte del documento didentità...',
3999
- 'Display the back of your ID card...': 'Mostrare il retro della documento didentità...',
4021
+ 'Display the front of your ID card...': "Mostrare il fronte del documento d'identità...",
4022
+ 'Display the back of your ID card...': "Mostrare il retro della documento d'identità...",
4000
4023
  'Display the ID page of your passport...': 'Mostrare la pagina identificativa del passaporto...',
4001
4024
  'Please move your face to the center...': 'Spostare il volto al centro...',
4002
- 'Searching for ID card...': 'Ricerca documento didentità in corso...',
4025
+ 'Searching for ID card...': "Ricerca documento d'identità in corso...",
4003
4026
  'Please read the following text aloud': 'Leggere il testo seguente a voce alta',
4004
- 'Video ID has been successfully captured!': 'L’ID video è stato acquisito correttamente!',
4005
- 'ID Front Image': 'Immagine fronte documento didentità',
4006
- 'ID Back Image': 'Immagine retro documento didentità',
4027
+ 'Video ID has been successfully captured!': "L'ID video è stato acquisito correttamente!",
4028
+ 'ID Front Image': "Immagine fronte documento d'identità",
4029
+ 'ID Back Image': "Immagine retro documento d'identità",
4007
4030
  "We're having some trouble.": 'Si è verificato un problema.',
4008
4031
  'On-device capture guidance failed please capture a selfie manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Scattare un selfie manualmente.",
4009
4032
  'Verifying...': 'Verifica...',
4010
- 'Please capture the front of your ID card.': 'Acquisire il fronte del documento didentità.',
4011
- 'Please capture the back of your ID card.': 'Acquisire il retro del documento didentità.',
4012
- 'Please capture the front of your ID card, or the ID page of your passport.': 'Acquisire il fronte del documento didentità o la pagina identificativa del passaporto.',
4013
- 'Please capture the back of your ID card, or click Done if submitting a passport.': 'Acquisire il retro del documento didentità o fare clic su Fatto se si invia un passaporto.',
4033
+ 'Please capture the front of your ID card.': "Acquisire il fronte del documento d'identità.",
4034
+ 'Please capture the back of your ID card.': "Acquisire il retro del documento d'identità.",
4035
+ 'Please capture the front of your ID card, or the ID page of your passport.': "Acquisire il fronte del documento d'identità o la pagina identificativa del passaporto.",
4036
+ 'Please capture the back of your ID card, or click Done if submitting a passport.': "Acquisire il retro del documento d'identità o fare clic su Fatto se si invia un passaporto.",
4014
4037
  'Please capture the ID page of your passport.': 'Acquisire la pagina identificativa del passaporto.',
4015
- 'On-device capture guidance failed please capture a photo of your ID card manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del documento didentità manualmente.",
4038
+ 'On-device capture guidance failed please capture a photo of your ID card manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del documento d'identità manualmente.",
4016
4039
  'On-device capture guidance failed please capture a photo of your passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire una foto del passaporto manualmente.",
4017
- 'On-device capture guidance failed please capture photos of your ID card and passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento didentità e del passaporto manualmente.",
4018
- 'On-device capture guidance failed please capture photos of your ID card or passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento didentità o del passaporto manualmente.",
4040
+ 'On-device capture guidance failed please capture photos of your ID card and passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d'identità e del passaporto manualmente.",
4041
+ 'On-device capture guidance failed please capture photos of your ID card or passport manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Acquisire delle foto del documento d'identità o del passaporto manualmente.",
4019
4042
  'Capture ID page of passport': 'Acquisisci pagina identificativa del passaporto',
4020
- 'Capture back of ID card': 'Acquisisci retro del documento didentità',
4043
+ 'Capture back of ID card': "Acquisisci retro del documento d'identità",
4021
4044
  'Downloading...': 'Download in corso...',
4022
4045
  'Accessing camera...': 'Accesso alla fotocamera...',
4023
4046
  'Camera ready': 'Fotocamera pronta',
@@ -4035,7 +4058,9 @@ var it = {
4035
4058
  'Upload ID Front': "Carica il fronte dell'ID",
4036
4059
  'Upload ID Back': "Carica il retro dell'ID",
4037
4060
  Cancel: 'Annulla',
4038
- 'Upload the back of the ID if it is not included in the front image.': "Carica il retro dell'ID se non è incluso nell'immagine del fronte.\r\n"
4061
+ 'Upload the back of the ID if it is not included in the front image.': "Carica il retro dell'ID se non è incluso nell'immagine del fronte.",
4062
+ 'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
4063
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Siamo spiacenti, ma sembra che la fotocamera stia venendo manipolata. Controlla il tuo dispositivo e riprova ricaricando la pagina.'
4039
4064
  };
4040
4065
 
4041
4066
  var ja = {
@@ -4065,7 +4090,7 @@ var ja = {
4065
4090
  'Document is not centered': 'ドキュメントが中央に合っていません',
4066
4091
  'Document too close please back up': 'ドキュメントが近すぎます。遠ざけてください',
4067
4092
  'Please hold your ID document steady': '身分証が動かないように押さえてください',
4068
- 'Document out of focus try improving the lighting': 'ドキュメントの焦点がぼやけています。照明を調節してください',
4093
+ 'Document out of focus - try improving the lighting': 'ドキュメントの焦点がぼやけています。照明を調節してください',
4069
4094
  'ID card front detected - please flip your ID card': '身分証の正面が検出されました。身分証を裏返してください',
4070
4095
  'ID card back detected - please flip your ID card': '身分証の背面が検出されました。身分証を裏返してください',
4071
4096
  'ID card detected please scan a passport instead': '身分証が検出されました。パスポートをスキャンしてください',
@@ -4160,7 +4185,9 @@ var ja = {
4160
4185
  'Upload ID Front': '身分証明書の表面をアップロード',
4161
4186
  'Upload ID Back': '身分証明書の裏面をアップロード',
4162
4187
  Cancel: 'キャンセル',
4163
- 'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。'
4188
+ 'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
4189
+ 'Camera tampering detected': 'カメラの操作が検出されました',
4190
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'カメラの操作が検出されました。デバイスを確認し、ページを再読み込みしてください。'
4164
4191
  };
4165
4192
 
4166
4193
  var pt = {
@@ -4190,7 +4217,7 @@ var pt = {
4190
4217
  'Document is not centered': 'Documento não está centralizado',
4191
4218
  'Document too close please back up': 'Documento muito próximo, recue',
4192
4219
  'Please hold your ID document steady': 'Segure seu documento de identificação com firmeza',
4193
- 'Document out of focus try improving the lighting': 'Documento fora de foco - tente melhorar a iluminação',
4220
+ 'Document out of focus - try improving the lighting': 'Documento fora de foco - tente melhorar a iluminação',
4194
4221
  'ID card front detected - please flip your ID card': 'Detectada a frente da carteira de identidade - vire a carteira de identidade',
4195
4222
  'ID card back detected - please flip your ID card': 'Detectado o verso da carteira de identidade - vire a carteira de identidade',
4196
4223
  'ID card detected please scan a passport instead': 'Detectada a carteira de identidade - escaneie um passaporte em seu lugar',
@@ -4285,7 +4312,9 @@ var pt = {
4285
4312
  'Upload ID Front': 'Carregar frente do ID',
4286
4313
  'Upload ID Back': 'Carregar verso do ID',
4287
4314
  Cancel: 'Cancelar',
4288
- 'Upload the back of the ID if it is not included in the front image.': 'Carregue o verso do ID se não estiver incluído na imagem da frente.'
4315
+ 'Upload the back of the ID if it is not included in the front image.': 'Carregue o verso do ID se não estiver incluído na imagem da frente.',
4316
+ 'Camera tampering detected': 'Manipulação da câmera detectada',
4317
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'Lamentamos, mas parece que a câmera está sendo manipulada. Verifique seu dispositivo e tente novamente recarregando a página.'
4289
4318
  };
4290
4319
 
4291
4320
  var ru = {
@@ -4410,7 +4439,9 @@ var ru = {
4410
4439
  'Upload ID Front': 'Загрузить переднюю сторону удостоверения личности',
4411
4440
  'Upload ID Back': 'Загрузить заднюю сторону удостоверения личности',
4412
4441
  Cancel: 'Отменить',
4413
- 'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.\r\n'
4442
+ 'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
4443
+ 'Camera tampering detected': 'Обнаружена манипуляция с камерой',
4444
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'К сожалению, кажется, что камера подвергается манипуляциям. Пожалуйста, проверьте свое устройство и попробуйте снова, перезагрузив страницу.'
4414
4445
  };
4415
4446
 
4416
4447
  var zh = {
@@ -4440,7 +4471,7 @@ var zh = {
4440
4471
  'Document is not centered': '文件未置中',
4441
4472
  'Document too close please back up': '文件太近,請後退',
4442
4473
  'Please hold your ID document steady': '請拿穩證件',
4443
- 'Document out of focus try improving the lighting': '文件失焦 請嘗試改善燈光',
4474
+ 'Document out of focus - try improving the lighting': '文件失焦 - 請嘗試改善燈光',
4444
4475
  'ID card front detected - please flip your ID card': '偵測到證件正面 - 請將證件翻面',
4445
4476
  'ID card back detected - please flip your ID card': '偵測到證件背面 - 請將證件翻面',
4446
4477
  'ID card detected please scan a passport instead': '偵測到證件,請掃描護照',
@@ -4501,7 +4532,7 @@ var zh = {
4501
4532
  'Please move your face to the center...': '請將臉部移至中心...',
4502
4533
  'Searching for ID card...': '正在搜尋證件...',
4503
4534
  'Please read the following text aloud': '請大聲讀出以下文字',
4504
- 'Video ID has been successfully captured!': '已成功拍攝影片 ID',
4535
+ 'Video ID has been successfully captured!': '已成功拍攝影片 ID!',
4505
4536
  'ID Front Image': '證件正面影像',
4506
4537
  'ID Back Image': '證件背面影像',
4507
4538
  "We're having some trouble.": '發生一些問題。',
@@ -4535,7 +4566,9 @@ var zh = {
4535
4566
  'Upload ID Front': '上传身份证正面',
4536
4567
  'Upload ID Back': '上传身份证背面',
4537
4568
  Cancel: '取消',
4538
- 'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。'
4569
+ 'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
4570
+ 'Camera tampering detected': '檢測到相機被篡改',
4571
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": '很抱歉,看起來相機被篡改了。請檢查您的設備並重新載入頁面。'
4539
4572
  };
4540
4573
 
4541
4574
  var resources = {
@@ -5056,14 +5089,14 @@ function CameraTamperSeal(_a) {
5056
5089
  className: classNames.message
5057
5090
  }, messageText)));
5058
5091
  }
5059
- var StyledOverlayInner$4 = styled__default.default(OverlayInner$2)(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
5060
- var StyledOverlayHeading = styled__default.default.h3(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
5092
+ var StyledOverlayInner$4 = styled__default.default(OverlayInner$2)(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
5093
+ var StyledOverlayHeading = styled__default.default.h3(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
5061
5094
  function useCameraStore(selector) {
5062
5095
  var store = React.useContext(CameraStoreContext);
5063
5096
  if (!store) throw new Error('useCameraStore cannot be used without Provider');
5064
5097
  return zustand.useStore(store, selector);
5065
5098
  }
5066
- var templateObject_1$H, templateObject_2$A;
5099
+ var templateObject_1$J, templateObject_2$B;
5067
5100
 
5068
5101
  var DocumentDetectionModelContext = /*#__PURE__*/React.createContext({
5069
5102
  startDocumentDetection: function startDocumentDetection() {
@@ -5562,6 +5595,13 @@ function IdCaptureModelsProvider(_a) {
5562
5595
  props = __rest(_a, ["children"]);
5563
5596
  return /*#__PURE__*/React__namespace.default.createElement(DocumentDetectionModelProvider, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement(FocusModelProvider, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement(IdCaptureModelsProviderInner, _assign({}, props), children)));
5564
5597
  }
5598
+ function useIdCaptureModelsContext() {
5599
+ var context = React.useContext(IdCaptureModelsContext);
5600
+ if (!context) {
5601
+ throw new Error('useIdCaptureModelsContext must be used within an IdCaptureModelsProvider');
5602
+ }
5603
+ return context;
5604
+ }
5565
5605
 
5566
5606
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie'];
5567
5607
 
@@ -6021,12 +6061,12 @@ function DebugStatsPane(_a) {
6021
6061
  if (!portalLocation) return element;
6022
6062
  return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
6023
6063
  }
6024
- var DebugStatsPaneDiv = styled__default.default.span(templateObject_1$G || (templateObject_1$G = __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"])));
6025
- var ObjectDetectionDebugOverlayDiv = styled__default.default.div(templateObject_2$z || (templateObject_2$z = __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 transform-style: preserve-3d;\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 transform-style: preserve-3d;\n"])), function (_a) {
6064
+ var DebugStatsPaneDiv = styled__default.default.span(templateObject_1$I || (templateObject_1$I = __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"])));
6065
+ var ObjectDetectionDebugOverlayDiv = styled__default.default.div(templateObject_2$A || (templateObject_2$A = __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 transform-style: preserve-3d;\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 transform-style: preserve-3d;\n"])), function (_a) {
6026
6066
  var $flipX = _a.$flipX;
6027
6067
  return $flipX ? 'transform: scaleX(-1);' : '';
6028
6068
  });
6029
- var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"], ["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_a) {
6069
+ var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"], ["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_a) {
6030
6070
  var $color = _a.$color;
6031
6071
  return $color !== null && $color !== void 0 ? $color : 'green';
6032
6072
  }, function (_a) {
@@ -6036,7 +6076,7 @@ var ObjectDetectionDebugBox = styled__default.default.div(templateObject_3$q ||
6036
6076
  var $flipX = _a.$flipX;
6037
6077
  return $flipX ? 'transform: scaleX(-1);' : '';
6038
6078
  });
6039
- var FaceDetectionKeypointMarker = styled__default.default.div(templateObject_4$k || (templateObject_4$k = __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 transform-style: preserve-3d;\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 transform-style: preserve-3d;\n"])), function (_a) {
6079
+ var FaceDetectionKeypointMarker = styled__default.default.div(templateObject_4$l || (templateObject_4$l = __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 transform-style: preserve-3d;\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 transform-style: preserve-3d;\n"])), function (_a) {
6040
6080
  var $color = _a.$color;
6041
6081
  return $color !== null && $color !== void 0 ? $color : 'red';
6042
6082
  }, function (_a) {
@@ -6227,9 +6267,9 @@ function SelfieCaptureFaceKeypoint(_a) {
6227
6267
  }
6228
6268
  });
6229
6269
  }
6230
- var templateObject_1$G, templateObject_2$z, templateObject_3$q, templateObject_4$k;
6270
+ var templateObject_1$I, templateObject_2$A, templateObject_3$r, templateObject_4$l;
6231
6271
 
6232
- var GuidanceMessageContainerDiv = styled__default.default.div(templateObject_1$F || (templateObject_1$F = __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) {
6272
+ var GuidanceMessageContainerDiv = styled__default.default.div(templateObject_1$H || (templateObject_1$H = __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) {
6233
6273
  var $top = _a.$top;
6234
6274
  return $top !== null && $top !== void 0 ? $top : '10vh';
6235
6275
  }, function (_a) {
@@ -6242,14 +6282,14 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
6242
6282
  if (!portalLocation) return element;
6243
6283
  return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
6244
6284
  };
6245
- var GuidanceMessage = styled__default.default.div(templateObject_2$y || (templateObject_2$y = __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) {
6285
+ var GuidanceMessage = styled__default.default.div(templateObject_2$z || (templateObject_2$z = __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) {
6246
6286
  var _a, _b, _c, _d, _e, _f;
6247
6287
  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';
6248
6288
  }, function (props) {
6249
6289
  var _a, _b, _c, _d, _e, _f;
6250
6290
  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';
6251
6291
  });
6252
- var templateObject_1$F, templateObject_2$y;
6292
+ var templateObject_1$H, templateObject_2$z;
6253
6293
 
6254
6294
  function OverrideWrongDocumentTypeGuidanceDialog(_a) {
6255
6295
  var _b = _a.classNames,
@@ -6282,18 +6322,18 @@ function OverrideWrongDocumentTypeGuidanceDialog(_a) {
6282
6322
  }
6283
6323
  }, verbiage.buttonText))));
6284
6324
  }
6285
- var Container$2 = styled__default.default.div(templateObject_1$E || (templateObject_1$E = __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) {
6325
+ var Container$2 = styled__default.default.div(templateObject_1$G || (templateObject_1$G = __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) {
6286
6326
  var _a, _b, _c;
6287
6327
  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';
6288
6328
  }, function (props) {
6289
6329
  var _a, _b, _c;
6290
6330
  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';
6291
6331
  });
6292
- var InnerContainer = styled__default.default.div(templateObject_2$x || (templateObject_2$x = __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"])));
6293
- var Message = styled__default.default.span(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n display: block;\n margin: auto 12px auto 0;\n"], ["\n display: block;\n margin: auto 12px auto 0;\n"])));
6294
- var ButtonContainer = styled__default.default.div(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n display: flex;\n margin-left: auto;\n"], ["\n display: flex;\n margin-left: auto;\n"])));
6332
+ var InnerContainer = styled__default.default.div(templateObject_2$y || (templateObject_2$y = __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"])));
6333
+ var Message = styled__default.default.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n display: block;\n margin: auto 12px auto 0;\n"], ["\n display: block;\n margin: auto 12px auto 0;\n"])));
6334
+ var ButtonContainer = styled__default.default.div(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n display: flex;\n margin-left: auto;\n"], ["\n display: flex;\n margin-left: auto;\n"])));
6295
6335
  var Button$1 = styled__default.default(LoaderButton)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n white-space: nowrap;\n margin: auto;\n"], ["\n white-space: nowrap;\n margin: auto;\n"])));
6296
- var templateObject_1$E, templateObject_2$x, templateObject_3$p, templateObject_4$j, templateObject_5$c;
6336
+ var templateObject_1$G, templateObject_2$y, templateObject_3$q, templateObject_4$k, templateObject_5$c;
6297
6337
 
6298
6338
  // This is a simplified version of https://github.com/ZeeCoder/use-resize-observer.
6299
6339
  // We have removed all options and made it compliant with React Compiler/React 19.
@@ -6615,13 +6655,13 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_a) {
6615
6655
  finished: true
6616
6656
  }, verbiage.retryBtnText)));
6617
6657
  };
6618
- var StyledOverlayInner$3 = styled__default.default(OverlayInner$2)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"], ["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
6619
- var StyledOverlayImageContainer$3 = styled__default.default(OverlayImageContainer)(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n flex-grow: 0;\n"], ["\n flex-grow: 0;\n"])));
6620
- var Description$4 = styled__default.default.p(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n line-height: 1.5;\n margin-bottom: 50px;\n"], ["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
6621
- var RetryButton$1 = styled__default.default(LoaderButton)(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n width: 200px;\n margin: 0 auto;\n"], ["\n width: 200px;\n margin: 0 auto;\n"])));
6622
- var templateObject_1$D, templateObject_2$w, templateObject_3$o, templateObject_4$i;
6658
+ var StyledOverlayInner$3 = styled__default.default(OverlayInner$2)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"], ["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
6659
+ var StyledOverlayImageContainer$3 = styled__default.default(OverlayImageContainer)(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n flex-grow: 0;\n"], ["\n flex-grow: 0;\n"])));
6660
+ var Description$4 = styled__default.default.p(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n line-height: 1.5;\n margin-bottom: 50px;\n"], ["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
6661
+ var RetryButton$1 = styled__default.default(LoaderButton)(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n width: 200px;\n margin: 0 auto;\n"], ["\n width: 200px;\n margin: 0 auto;\n"])));
6662
+ var templateObject_1$F, templateObject_2$x, templateObject_3$p, templateObject_4$j;
6623
6663
 
6624
- var ExitCaptureStyledButton = styled__default.default.button(templateObject_1$C || (templateObject_1$C = __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"])));
6664
+ var ExitCaptureStyledButton = styled__default.default.button(templateObject_1$E || (templateObject_1$E = __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"])));
6625
6665
  var ExitCaptureButton = function ExitCaptureButton(_a) {
6626
6666
  var onClick = _a.onClick,
6627
6667
  className = _a.className;
@@ -6665,10 +6705,10 @@ var ExitCaptureButton = function ExitCaptureButton(_a) {
6665
6705
  y2: "19.75"
6666
6706
  }))));
6667
6707
  };
6668
- var templateObject_1$C;
6708
+ var templateObject_1$E;
6669
6709
 
6670
- var ButtonsRow = styled__default.default.div(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"], ["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"])));
6671
- var templateObject_1$B;
6710
+ var ButtonsRow = styled__default.default.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"], ["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n"])));
6711
+ var templateObject_1$D;
6672
6712
 
6673
6713
  function IdCaptureLoadingGraphic(props) {
6674
6714
  var isMobile = window.innerHeight > window.innerWidth;
@@ -7149,21 +7189,21 @@ function IdCaptureLoadingGraphicMobile(_a) {
7149
7189
  fill: "white"
7150
7190
  }))));
7151
7191
  }
7152
- var LoadingGraphicWrapper = styled__default.default.div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n display: flex;\n width: 100%;\n height: 100%;\n"], ["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
7153
- var LoadingGraphicSvg = styled__default.default.svg(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"], ["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"])), function (props) {
7192
+ var LoadingGraphicWrapper = styled__default.default.div(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n display: flex;\n width: 100%;\n height: 100%;\n"], ["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
7193
+ var LoadingGraphicSvg = styled__default.default.svg(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"], ["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n"])), function (props) {
7154
7194
  return props.$frame > 1 ? 1 : props.$frame === 1 ? 1.25 : 0.75;
7155
7195
  }, function (props) {
7156
7196
  return props.$frame >= 5 ? 10 : 0;
7157
7197
  }, function (props) {
7158
7198
  return props.$borderColor;
7159
7199
  });
7160
- var LoadingGraphicCardGroup = styled__default.default.g(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
7200
+ var LoadingGraphicCardGroup = styled__default.default.g(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
7161
7201
  return props.$offScreen ? '-500px' : '0';
7162
7202
  });
7163
- var LoadingGraphicPhoneGroup = styled__default.default.g(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
7203
+ var LoadingGraphicPhoneGroup = styled__default.default.g(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"], ["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
7164
7204
  return props.$offScreen ? '40px' : '0';
7165
7205
  });
7166
- var templateObject_1$A, templateObject_2$v, templateObject_3$n, templateObject_4$h;
7206
+ var templateObject_1$C, templateObject_2$w, templateObject_3$o, templateObject_4$i;
7167
7207
 
7168
7208
  function LoadingListItemIndicator(_a) {
7169
7209
  var _b = _a.state,
@@ -7214,34 +7254,42 @@ function LoadingListItemIndicator(_a) {
7214
7254
  }))))));
7215
7255
  }
7216
7256
 
7257
+ var wavesAnimation = styled.keyframes(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"], ["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
7258
+ var progressBarAnimation = styled.keyframes(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"], ["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
7259
+ var dualRingSpinnerAnimation = styled.keyframes(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
7260
+ var progressBorderAnimation = styled.keyframes(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n to {\n stroke-dashoffset: 0;\n }\n"], ["\n to {\n stroke-dashoffset: 0;\n }\n"])));
7261
+ var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$h;
7262
+
7217
7263
  var legacyInstructionImageUrl$1 = "".concat(DEFAULT_CDN_URL, "/WebSDK-Instruction-DL-Capture-3-Portrait.png");
7218
7264
  var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a) {
7219
- var _b, _c, _d, _e, _f, _g;
7265
+ var _b, _c, _d, _e;
7220
7266
  var onDismissed = _a.onDismissed,
7221
7267
  onUserCancel = _a.onUserCancel,
7222
7268
  instructions = _a.instructions,
7223
- _h = _a.rotateImage,
7224
- rotateImage = _h === void 0 ? false : _h,
7225
- _j = _a.assets,
7226
- assets = _j === void 0 ? {} : _j,
7227
- _k = _a.classNames,
7228
- classNames = _k === void 0 ? {} : _k,
7229
- _l = _a.colors,
7230
- colors = _l === void 0 ? {} : _l,
7231
- _m = _a.verbiage,
7232
- rawVerbiage = _m === void 0 ? {} : _m,
7269
+ _f = _a.rotateImage,
7270
+ rotateImage = _f === void 0 ? false : _f,
7271
+ _g = _a.assets,
7272
+ assets = _g === void 0 ? {} : _g,
7273
+ _h = _a.classNames,
7274
+ classNames = _h === void 0 ? {} : _h,
7275
+ _j = _a.colors,
7276
+ colors = _j === void 0 ? {} : _j,
7277
+ _k = _a.verbiage,
7278
+ rawVerbiage = _k === void 0 ? {} : _k,
7233
7279
  customOverlayContent = _a.customOverlayContent;
7234
- var _o = React.useContext(IdCaptureModelsContext),
7235
- modelsReady = _o.ready,
7236
- modelDownloadProgress = _o.modelDownloadProgress;
7237
- var _p = useCameraStore(),
7238
- cameraReady = _p.cameraReady,
7239
- cameraAccessDenied = _p.cameraAccessDenied,
7240
- iphoneContinuityCameraAvailable = _p.iphoneContinuityCameraAvailable,
7241
- setIphoneContinuityCameraAllowed = _p.setIphoneContinuityCameraAllowed;
7242
- var _q = React.useState(false),
7243
- dismissed = _q[0],
7244
- setDismissed = _q[1];
7280
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
7281
+ var sessionReady = sessionCheckState === 'PASSED';
7282
+ var _l = useIdCaptureModelsContext(),
7283
+ modelsReady = _l.ready,
7284
+ modelDownloadProgress = _l.modelDownloadProgress;
7285
+ var _m = useCameraStore(),
7286
+ cameraReady = _m.cameraReady,
7287
+ cameraAccessDenied = _m.cameraAccessDenied,
7288
+ iphoneContinuityCameraAvailable = _m.iphoneContinuityCameraAvailable,
7289
+ setIphoneContinuityCameraAllowed = _m.setIphoneContinuityCameraAllowed;
7290
+ var _o = React.useState(false),
7291
+ dismissed = _o[0],
7292
+ setDismissed = _o[1];
7245
7293
  assets.instructionImageUrl || (assets.instructionImageUrl = legacyInstructionImageUrl$1);
7246
7294
  var verbiage = useTranslations(rawVerbiage, {
7247
7295
  headingText: 'Use your device camera to capture your ID',
@@ -7251,19 +7299,21 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7251
7299
  modelsReadyText: 'Guided capture experience ready',
7252
7300
  cameraInitializingText: 'Camera initializing...',
7253
7301
  cameraInitializedText: 'Camera ready',
7254
- continueText: "Let's Go!"
7302
+ continueText: "Let's Go!",
7303
+ sessionCheckingText: 'Checking session...'
7255
7304
  });
7305
+ var ready = sessionReady && modelsReady && cameraReady;
7256
7306
  React.useEffect(function () {
7257
- if (modelsReady && cameraReady) return function () {
7307
+ if (ready) return function () {
7258
7308
  return null;
7259
7309
  };
7260
7310
  var t = setTimeout(function () {
7261
- setDismissed(false);
7311
+ return setDismissed(false);
7262
7312
  }, 500);
7263
7313
  return function () {
7264
- clearTimeout(t);
7314
+ return clearTimeout(t);
7265
7315
  };
7266
- }, [cameraReady, modelsReady]);
7316
+ }, [ready]);
7267
7317
  var imageRef = React.useRef(null);
7268
7318
  if (dismissed) return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null);
7269
7319
  if (cameraAccessDenied) {
@@ -7336,18 +7386,18 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7336
7386
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingList$1, {
7337
7387
  className: classNames.loadingList
7338
7388
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItem$1, {
7339
- className: "".concat((_f = classNames.loadingListItem) !== null && _f !== void 0 ? _f : '', " ").concat(cameraReady ? 'done' : 'running')
7389
+ className: cn__default.default(classNames.loadingListItem, cameraReady ? 'done' : 'running')
7340
7390
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
7341
7391
  className: classNames.loadingListItemIndicator,
7342
7392
  state: cameraReady ? 'done' : 'running'
7343
7393
  }), cameraReady ? verbiage.cameraInitializedText : verbiage.cameraInitializingText), /*#__PURE__*/React__namespace.default.createElement(LoadingListItem$1, {
7344
- className: "".concat((_g = classNames.loadingListItem) !== null && _g !== void 0 ? _g : '', " ").concat(modelsReady ? 'done' : 'running')
7394
+ className: cn__default.default(classNames.loadingListItem, sessionReady && modelsReady ? 'done' : 'running')
7345
7395
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
7346
7396
  className: classNames.loadingListItemIndicator,
7347
- state: modelsReady ? 'done' : 'running'
7348
- }), modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer$1, {
7397
+ state: sessionReady && modelsReady ? 'done' : 'running'
7398
+ }), !sessionReady ? verbiage.sessionCheckingText : modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer$1, {
7349
7399
  className: classNames.continueBtnContainer
7350
- }, modelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
7400
+ }, ready && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
7351
7401
  autoFocus: true,
7352
7402
  finished: true,
7353
7403
  className: classNames.continueBtn,
@@ -7359,7 +7409,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7359
7409
  }
7360
7410
  }, verbiage.continueText))))));
7361
7411
  };
7362
- var OverlayInner$1 = styled__default.default.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
7412
+ var OverlayInner$1 = styled__default.default.div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
7363
7413
  var _a, _b, _c, _d;
7364
7414
  return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
7365
7415
  }, function (props) {
@@ -7414,9 +7464,9 @@ var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_18 |
7414
7464
  var _a, _b, _c, _d, _e, _f;
7415
7465
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
7416
7466
  });
7417
- var templateObject_1$z, templateObject_2$u, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18;
7467
+ var templateObject_1$A, templateObject_2$u, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18;
7418
7468
 
7419
- var ContinuityCameraCheckboxContainer = styled__default.default.div(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
7469
+ var ContinuityCameraCheckboxContainer = styled__default.default.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n margin-top: 15px;\n margin-bottom: 15px;\n"], ["\n margin-top: 15px;\n margin-bottom: 15px;\n"])));
7420
7470
  var ContinuityCameraCheckbox = styled__default.default.input(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
7421
7471
  var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_a) {
7422
7472
  var _b, _c, _d, _e;
@@ -7433,7 +7483,9 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_a) {
7433
7483
  colors = _j === void 0 ? {} : _j,
7434
7484
  _k = _a.verbiage,
7435
7485
  rawVerbiage = _k === void 0 ? {} : _k;
7436
- var _l = React.useContext(IdCaptureModelsContext),
7486
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
7487
+ var sessionReady = sessionCheckState === 'PASSED';
7488
+ var _l = useIdCaptureModelsContext(),
7437
7489
  modelsReady = _l.ready,
7438
7490
  modelDownloadProgress = _l.modelDownloadProgress;
7439
7491
  var _m = useCameraStore(shallow.useShallow(function (state) {
@@ -7460,17 +7512,18 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_a) {
7460
7512
  cameraInitializingText: 'Camera initializing...',
7461
7513
  continueText: 'Continue'
7462
7514
  });
7515
+ var ready = sessionReady && modelsReady && cameraReady;
7463
7516
  React.useEffect(function () {
7464
- if (modelsReady && cameraReady) return function () {
7517
+ if (ready) return function () {
7465
7518
  return null;
7466
7519
  };
7467
7520
  var t = setTimeout(function () {
7468
- setDismissed(false);
7521
+ return setDismissed(false);
7469
7522
  }, 500);
7470
7523
  return function () {
7471
- clearTimeout(t);
7524
+ return clearTimeout(t);
7472
7525
  };
7473
- }, [cameraReady, modelsReady]);
7526
+ }, [ready]);
7474
7527
  var imageRef = React.useRef(null);
7475
7528
  if (dismissed) return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null);
7476
7529
  if (cameraAccessDenied) {
@@ -7526,16 +7579,16 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_a) {
7526
7579
  }, verbiage.useContinuityCameraText)))), /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
7527
7580
  className: classNames.continueBtn,
7528
7581
  variant: "positive",
7529
- disabled: !cameraReady || !modelsReady,
7530
- finished: modelsReady && cameraReady,
7582
+ disabled: !ready,
7583
+ finished: ready,
7531
7584
  colors: colors.continueBtn,
7532
7585
  onClick: function onClick() {
7533
7586
  setDismissed(true);
7534
7587
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
7535
7588
  }
7536
- }, cameraReady && modelsReady ? verbiage.continueText : modelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)"))));
7589
+ }, ready ? verbiage.continueText : modelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)"))));
7537
7590
  };
7538
- var templateObject_1$y, templateObject_2$t;
7591
+ var templateObject_1$z, templateObject_2$t;
7539
7592
 
7540
7593
  var components$1 = {
7541
7594
  "default": IdCaptureLoadingOverlayDefault,
@@ -7593,9 +7646,9 @@ var CapturedDocumentImg = function CapturedDocumentImg(_a) {
7593
7646
  });
7594
7647
  };
7595
7648
 
7596
- var Card = styled__default.default.div(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"], ["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
7649
+ var Card = styled__default.default.div(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"], ["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100dvw - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
7597
7650
  var FlexCard = styled__default.default(Card)(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
7598
- var templateObject_1$x, templateObject_2$s;
7651
+ var templateObject_1$y, templateObject_2$s;
7599
7652
 
7600
7653
  var IdCaptureSuccess = function IdCaptureSuccess(_a) {
7601
7654
  var capturedDocuments = _a.capturedDocuments,
@@ -7654,13 +7707,13 @@ var IdCaptureSuccess = function IdCaptureSuccess(_a) {
7654
7707
  finished: true
7655
7708
  }, verbiage.retryText)))));
7656
7709
  };
7657
- var Heading$a = styled__default.default.h1(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"], ["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
7710
+ var Heading$a = styled__default.default.h1(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"], ["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
7658
7711
  var ImagesContainer = styled__default.default(OverlayImageContainer)(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"], ["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
7659
7712
  var ImageRow = styled__default.default(OverlayImageRow)(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n"], ["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n"])));
7660
7713
  var ImageCol$1 = styled__default.default.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n width: 100%;\n max-height: none !important;\n"], ["\n width: 100%;\n max-height: none !important;\n"])));
7661
7714
  var StyledImage = styled__default.default(CapturedDocumentImg)(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
7662
7715
  var DebugPre = styled__default.default.pre(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"], ["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"])));
7663
- var templateObject_1$w, templateObject_2$r, templateObject_3$l, templateObject_4$f, templateObject_5$a, templateObject_6$8;
7716
+ var templateObject_1$x, templateObject_2$r, templateObject_3$l, templateObject_4$f, templateObject_5$a, templateObject_6$8;
7664
7717
 
7665
7718
  function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
7666
7719
  var _this = this;
@@ -7712,7 +7765,7 @@ function resetCanvasDimensions(canvas) {
7712
7765
  canvas.style.height = '0';
7713
7766
  }
7714
7767
 
7715
- var IdCardGuideImageContainer = styled__default.default(IdCardBorder)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n position: relative;\n ", "\n box-sizing: border-box;\n"], ["\n position: relative;\n ", "\n box-sizing: border-box;\n"])), function (props) {
7768
+ var IdCardGuideImageContainer = styled__default.default(IdCardBorder)(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n position: relative;\n ", "\n box-sizing: border-box;\n"], ["\n position: relative;\n ", "\n box-sizing: border-box;\n"])), function (props) {
7716
7769
  return props.$isVisible ? '' : 'opacity: 0;';
7717
7770
  });
7718
7771
  var IdCardGuideImage = styled__default.default.img(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n transform-style: preserve-3d;\n ", "\n ", "\n"], ["\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
@@ -7868,7 +7921,7 @@ var IdCardBorderRect = styled__default.default.rect(templateObject_5$9 || (templ
7868
7921
  var _a;
7869
7922
  return (_a = props.$fillMode) !== null && _a !== void 0 ? _a : 'forwards';
7870
7923
  });
7871
- var templateObject_1$v, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9;
7924
+ var templateObject_1$w, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9;
7872
7925
 
7873
7926
  var defaultIdCaptureGuideImages = {
7874
7927
  portrait: {
@@ -8044,12 +8097,12 @@ var IdVideoCaptureFlipIdPrompt = function IdVideoCaptureFlipIdPrompt(_a) {
8044
8097
  style: imageStyle
8045
8098
  })));
8046
8099
  };
8047
- var FlipImageContainer = styled__default.default(IdCardGuideImageContainer)(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"], ["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"])), function (props) {
8100
+ var FlipImageContainer = styled__default.default(IdCardGuideImageContainer)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"], ["\n backface-visibility: hidden;\n transition: transform ", "s;\n transform: ", ";\n transform-style: preserve-3d;\n position: absolute;\n display: block;\n top: 0;\n width: 100%;\n max-height: 100%;\n"])), function (props) {
8048
8101
  return props.$transitionTime;
8049
8102
  }, function (props) {
8050
8103
  return props.$transforms;
8051
8104
  });
8052
- var templateObject_1$u;
8105
+ var templateObject_1$v;
8053
8106
 
8054
8107
  var GuideOrientationContext = /*#__PURE__*/React.createContext({
8055
8108
  orientation: 'landscape',
@@ -8336,7 +8389,7 @@ var regionClsx = function regionClsx(classNames, which) {
8336
8389
  return v;
8337
8390
  }).join(' ');
8338
8391
  };
8339
- var StyledPageContainer = styled__default.default(PageContainerDiv)(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n z-index: 1000;\n overflow-y: hidden;\n"], ["\n z-index: 1000;\n overflow-y: hidden;\n"])));
8392
+ var StyledPageContainer = styled__default.default(PageContainerDiv)(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n z-index: 1000;\n overflow-y: hidden;\n"], ["\n z-index: 1000;\n overflow-y: hidden;\n"])));
8340
8393
  var GuidesContainer = styled__default.default.div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n width: 100dvw;\n height: 100dvh;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n width: 100dvw;\n height: 100dvh;\n"])));
8341
8394
  var GuideCenterRow = styled__default.default.div(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"], ["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
8342
8395
  var GuideRegion = styled__default.default.div(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
@@ -8364,7 +8417,7 @@ var GuideCenterBorder = styled__default.default.div(templateObject_7$5 || (templ
8364
8417
  });
8365
8418
  var GuideText = styled__default.default.span(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
8366
8419
  var GuideCenterInner = styled__default.default.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n"], ["\n position: relative;\n margin: auto;\n"])));
8367
- var templateObject_1$t, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$2;
8420
+ var templateObject_1$u, templateObject_2$p, templateObject_3$j, templateObject_4$d, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$2;
8368
8421
 
8369
8422
  var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
8370
8423
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
@@ -8505,11 +8558,11 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {
8505
8558
  progress: progress
8506
8559
  }));
8507
8560
  };
8508
- var CanvasWrapper$1 = styled__default.default.div(templateObject_1$s || (templateObject_1$s = __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) {
8561
+ var CanvasWrapper$1 = styled__default.default.div(templateObject_1$t || (templateObject_1$t = __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) {
8509
8562
  return props.$maskColor;
8510
8563
  });
8511
8564
  var Canvas$1 = styled__default.default.canvas(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: block;\n"], ["\n display: block;\n"])));
8512
- var templateObject_1$s, templateObject_2$o;
8565
+ var templateObject_1$t, templateObject_2$o;
8513
8566
 
8514
8567
  function IdCaptureGuides(_a) {
8515
8568
  var _b = _a.guideType,
@@ -8565,6 +8618,33 @@ function IdCaptureGuides(_a) {
8565
8618
  })));
8566
8619
  }
8567
8620
 
8621
+ var Spinner = styled__default.default.div(templateObject_1$s || (templateObject_1$s = __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: ", " 1.2s linear infinite;\n box-sizing: content-box;\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: ", " 1.2s linear infinite;\n box-sizing: content-box;\n }\n"])), function (_a) {
8622
+ var $size = _a.$size;
8623
+ return $size !== null && $size !== void 0 ? $size : 80;
8624
+ }, function (_a) {
8625
+ var $size = _a.$size;
8626
+ return $size !== null && $size !== void 0 ? $size : 80;
8627
+ }, function (_a) {
8628
+ var $size = _a.$size;
8629
+ return ($size !== null && $size !== void 0 ? $size : 80) - 16;
8630
+ }, function (_a) {
8631
+ var $size = _a.$size;
8632
+ return ($size !== null && $size !== void 0 ? $size : 80) - 16;
8633
+ }, function (_a) {
8634
+ var $thickness = _a.$thickness;
8635
+ return $thickness !== null && $thickness !== void 0 ? $thickness : 6;
8636
+ }, function (_a) {
8637
+ var $color = _a.$color;
8638
+ return $color !== null && $color !== void 0 ? $color : '#888';
8639
+ }, function (_a) {
8640
+ var $color = _a.$color;
8641
+ return $color !== null && $color !== void 0 ? $color : '#888';
8642
+ }, function (_a) {
8643
+ var $color = _a.$color;
8644
+ return $color !== null && $color !== void 0 ? $color : '#888';
8645
+ }, dualRingSpinnerAnimation);
8646
+ var templateObject_1$s;
8647
+
8568
8648
  var IdCaptureImagePreview = function IdCaptureImagePreview(_a) {
8569
8649
  var _b = _a.classNames,
8570
8650
  classNames = _b === void 0 ? {} : _b,
@@ -11236,6 +11316,13 @@ function SelfieGuidanceModelsProvider(_a) {
11236
11316
  ref: canvasRef
11237
11317
  }), children);
11238
11318
  }
11319
+ function useSelfieGuidanceModelsContext() {
11320
+ var context = React__namespace.useContext(SelfieGuidanceModelsContext);
11321
+ if (!context) {
11322
+ throw new Error('useSelfieGuidanceModelsContext must be used within a SelfieGuidanceModelsProvider');
11323
+ }
11324
+ return context;
11325
+ }
11239
11326
 
11240
11327
  var useTimeout = function useTimeout(durationMs, onTimeout, timeoutAverted, shouldWaitLonger, shouldStart) {
11241
11328
  if (shouldStart === void 0) {
@@ -12111,6 +12198,8 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
12111
12198
  colors = _e === void 0 ? {} : _e,
12112
12199
  _f = _a.verbiage,
12113
12200
  rawVerbiage = _f === void 0 ? {} : _f;
12201
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
12202
+ var sessionReady = sessionCheckState === 'PASSED';
12114
12203
  var _g = useCameraStore(shallow.useShallow(function (state) {
12115
12204
  return {
12116
12205
  cameraReady: state.cameraReady,
@@ -12121,7 +12210,7 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
12121
12210
  cameraReady = _g.cameraReady,
12122
12211
  cameraAccessDenied = _g.cameraAccessDenied,
12123
12212
  microphoneAccessDenied = _g.microphoneAccessDenied;
12124
- var _h = React.useContext(SelfieGuidanceModelsContext),
12213
+ var _h = useSelfieGuidanceModelsContext(),
12125
12214
  modelsReady = _h.ready,
12126
12215
  modelDownloadProgress = _h.modelDownloadProgress;
12127
12216
  var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
@@ -12156,6 +12245,7 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
12156
12245
  });
12157
12246
  }
12158
12247
  var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
12248
+ var ready = sessionReady && allModelsReady && cameraReady;
12159
12249
  return /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, {
12160
12250
  className: classNames.container
12161
12251
  }, /*#__PURE__*/React__namespace.default.createElement(OverlayInner$2, {
@@ -12175,15 +12265,15 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
12175
12265
  className: classNames.buttonsRow
12176
12266
  }, /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
12177
12267
  variant: "positive",
12178
- disabled: !cameraReady || !allModelsReady,
12179
- finished: cameraReady && allModelsReady,
12268
+ disabled: !ready,
12269
+ finished: ready,
12180
12270
  className: classNames.continueBtn,
12181
12271
  colors: colors.continueBtn,
12182
12272
  onClick: function onClick() {
12183
12273
  setDismissed(true);
12184
12274
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
12185
12275
  }
12186
- }, cameraReady && allModelsReady ? verbiage.continueText : allModelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? "".concat(verbiage.modelsWarmingUpText) : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))));
12276
+ }, ready ? verbiage.continueText : allModelsReady ? verbiage.cameraInitializingText : modelDownloadProgress >= 100 ? "".concat(verbiage.modelsWarmingUpText) : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))));
12187
12277
  };
12188
12278
  var StyledGuidanceMessage$1 = styled__default.default(GuidanceMessage)(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"], ["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
12189
12279
  var StyledButtonsRow$6 = styled__default.default(ButtonsRow)(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n flex-direction: column;\n padding-top: 25px;\n"], ["\n flex-direction: column;\n padding-top: 25px;\n"])));
@@ -12211,6 +12301,8 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12211
12301
  colors = _e === void 0 ? {} : _e,
12212
12302
  _f = _a.verbiage,
12213
12303
  rawVerbiage = _f === void 0 ? {} : _f;
12304
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
12305
+ var sessionReady = sessionCheckState === 'PASSED';
12214
12306
  var _g = useCameraStore(shallow.useShallow(function (state) {
12215
12307
  return {
12216
12308
  cameraReady: state.cameraReady,
@@ -12221,7 +12313,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12221
12313
  cameraReady = _g.cameraReady,
12222
12314
  cameraAccessDenied = _g.cameraAccessDenied,
12223
12315
  microphoneAccessDenied = _g.microphoneAccessDenied;
12224
- var _h = React.useContext(SelfieGuidanceModelsContext),
12316
+ var _h = useSelfieGuidanceModelsContext(),
12225
12317
  modelsReady = _h.ready,
12226
12318
  modelDownloadProgress = _h.modelDownloadProgress;
12227
12319
  var idCaptureModelsContext = React.useContext(IdCaptureModelsContext);
@@ -12234,7 +12326,8 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12234
12326
  cameraInitializedText: 'Camera ready',
12235
12327
  downloadingText: 'Downloading...',
12236
12328
  modelsWarmingUpText: 'Loading guided capture experience...',
12237
- modelsReadyText: 'Guided capture experience ready'
12329
+ modelsReadyText: 'Guided capture experience ready',
12330
+ sessionCheckingText: 'Checking session...'
12238
12331
  });
12239
12332
  var _j = React.useState(0),
12240
12333
  headingTextIndex = _j[0],
@@ -12268,6 +12361,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12268
12361
  });
12269
12362
  }
12270
12363
  var allModelsReady = modelsReady && (!waitForIdCaptureModels || (idCaptureModelsContext === null || idCaptureModelsContext === void 0 ? void 0 : idCaptureModelsContext.ready));
12364
+ var ready = sessionReady && allModelsReady && cameraReady;
12271
12365
  return /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, {
12272
12366
  className: classNames.container
12273
12367
  }, /*#__PURE__*/React__namespace.default.createElement(OverlayInner, {
@@ -12303,18 +12397,18 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12303
12397
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingList, {
12304
12398
  className: classNames.loadingList
12305
12399
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItem, {
12306
- className: "".concat(classNames.loadingListItem, " ").concat(cameraReady ? 'done' : 'running')
12400
+ className: cn__default.default(classNames.loadingListItem, cameraReady ? 'done' : 'running')
12307
12401
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
12308
12402
  className: classNames.loadingListItemIndicator,
12309
12403
  state: cameraReady ? 'done' : 'running'
12310
12404
  }), cameraReady ? verbiage.cameraInitializedText : verbiage.cameraInitializingText), /*#__PURE__*/React__namespace.default.createElement(LoadingListItem, {
12311
- className: "".concat(classNames.loadingListItem, " ").concat(allModelsReady ? 'done' : 'running')
12405
+ className: cn__default.default(classNames.loadingListItem, sessionReady && allModelsReady ? 'done' : 'running')
12312
12406
  }, /*#__PURE__*/React__namespace.default.createElement(LoadingListItemIndicator, {
12313
12407
  className: classNames.loadingListItemIndicator,
12314
- state: allModelsReady ? 'done' : 'running'
12315
- }), allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer, {
12408
+ state: sessionReady && allModelsReady ? 'done' : 'running'
12409
+ }), !sessionReady ? verbiage.sessionCheckingText : !allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer, {
12316
12410
  className: classNames.continueBtnContainer
12317
- }, allModelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
12411
+ }, ready && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
12318
12412
  autoFocus: true,
12319
12413
  finished: true,
12320
12414
  className: classNames.continueBtn,