idmission-web-sdk 2.2.164 → 2.2.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.164';
206
+ var webSdkVersion = '2.2.165';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -773,6 +773,61 @@ var Spinner = styled.div(templateObject_1$J || (templateObject_1$J = __makeTempl
773
773
  }, dualRingSpinnerAnimation);
774
774
  var templateObject_1$J;
775
775
 
776
+ var LogLevel;
777
+ (function (LogLevel) {
778
+ LogLevel[LogLevel["Off"] = 0] = "Off";
779
+ LogLevel[LogLevel["Error"] = 1] = "Error";
780
+ LogLevel[LogLevel["Warn"] = 2] = "Warn";
781
+ LogLevel[LogLevel["Info"] = 3] = "Info";
782
+ LogLevel[LogLevel["Debug"] = 4] = "Debug";
783
+ })(LogLevel || (LogLevel = {}));
784
+ var logLevel = LogLevel.Warn;
785
+ function useLogLevel(newLogLevel) {
786
+ useEffect(function () {
787
+ var oldLogLevel = logLevel;
788
+ if (newLogLevel === oldLogLevel) return;
789
+ logLevel = newLogLevel;
790
+ return function () {
791
+ logLevel = oldLogLevel;
792
+ };
793
+ }, [newLogLevel]);
794
+ }
795
+ function useDebugLogging(enabled) {
796
+ useLogLevel(enabled ? LogLevel.Debug : logLevel);
797
+ }
798
+ function debug() {
799
+ var parts = [];
800
+ for (var _i = 0; _i < arguments.length; _i++) {
801
+ parts[_i] = arguments[_i];
802
+ }
803
+ if (logLevel < LogLevel.Debug) return;
804
+ console.debug.apply(console, parts); // eslint-disable-line no-console
805
+ }
806
+ function log() {
807
+ var parts = [];
808
+ for (var _i = 0; _i < arguments.length; _i++) {
809
+ parts[_i] = arguments[_i];
810
+ }
811
+ if (logLevel < LogLevel.Info) return;
812
+ console.log.apply(console, parts); // eslint-disable-line no-console
813
+ }
814
+ function warn() {
815
+ var parts = [];
816
+ for (var _i = 0; _i < arguments.length; _i++) {
817
+ parts[_i] = arguments[_i];
818
+ }
819
+ if (logLevel < LogLevel.Warn) return;
820
+ console.warn.apply(console, parts); // eslint-disable-line no-console
821
+ }
822
+ function error() {
823
+ var parts = [];
824
+ for (var _i = 0; _i < arguments.length; _i++) {
825
+ parts[_i] = arguments[_i];
826
+ }
827
+ if (logLevel < LogLevel.Error) return;
828
+ console.error.apply(console, parts); // eslint-disable-line no-console
829
+ }
830
+
776
831
  var defaultAuthUrl = 'https://portal-api.idmission.com';
777
832
  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'];
778
833
  function setDefaultAuthUrl(url) {
@@ -810,8 +865,95 @@ var reducer$4 = function reducer(state, action) {
810
865
  return state;
811
866
  }
812
867
  };
868
+ function makeValidateSessionRequest(authUrl_1, sessionId_1) {
869
+ return __awaiter(this, arguments, void 0, function (authUrl, sessionId, retryCount) {
870
+ var maxRetries, baseDelay, response, delay_1, error_1, delay_2;
871
+ if (retryCount === void 0) {
872
+ retryCount = 0;
873
+ }
874
+ return __generator(this, function (_a) {
875
+ switch (_a.label) {
876
+ case 0:
877
+ maxRetries = 10;
878
+ baseDelay = 1000 // 1 second
879
+ ;
880
+ _a.label = 1;
881
+ case 1:
882
+ _a.trys.push([1, 4,, 6]);
883
+ return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
884
+ method: 'POST',
885
+ headers: {
886
+ 'Content-Type': 'application/json'
887
+ },
888
+ body: JSON.stringify({
889
+ id: sessionId
890
+ })
891
+ })
892
+ // If the request was successful or we've hit max retries, return the response
893
+ ];
894
+ case 2:
895
+ response = _a.sent();
896
+ // If the request was successful or we've hit max retries, return the response
897
+ if (response.ok || retryCount >= maxRetries) {
898
+ return [2 /*return*/, response];
899
+ }
900
+ delay_1 = baseDelay * Math.pow(2, retryCount) // Exponential backoff
901
+ ;
902
+ return [4 /*yield*/, new Promise(function (resolve) {
903
+ return setTimeout(resolve, delay_1);
904
+ })];
905
+ case 3:
906
+ _a.sent();
907
+ return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
908
+ case 4:
909
+ error_1 = _a.sent();
910
+ // If we've hit max retries, throw the error
911
+ if (retryCount >= maxRetries) {
912
+ throw error_1;
913
+ }
914
+ delay_2 = baseDelay * Math.pow(2, retryCount);
915
+ return [4 /*yield*/, new Promise(function (resolve) {
916
+ return setTimeout(resolve, delay_2);
917
+ })];
918
+ case 5:
919
+ _a.sent();
920
+ return [2 /*return*/, makeValidateSessionRequest(authUrl, sessionId, retryCount + 1)];
921
+ case 6:
922
+ return [2 /*return*/];
923
+ }
924
+ });
925
+ });
926
+ }
927
+ function validateSession(authUrl, sessionId) {
928
+ return __awaiter(this, void 0, void 0, function () {
929
+ var resp, respText, message, valid, respJson;
930
+ return __generator(this, function (_a) {
931
+ switch (_a.label) {
932
+ case 0:
933
+ return [4 /*yield*/, makeValidateSessionRequest(authUrl, sessionId)];
934
+ case 1:
935
+ resp = _a.sent();
936
+ return [4 /*yield*/, resp.text()];
937
+ case 2:
938
+ respText = _a.sent();
939
+ message = respText;
940
+ valid = false;
941
+ try {
942
+ respJson = JSON.parse(respText);
943
+ message = respJson.message;
944
+ valid = respJson.valid;
945
+ } catch (e) {
946
+ warn('Failed to parse session validation response', e);
947
+ }
948
+ if (!resp.ok) {
949
+ throw new SessionValidationFailedError(new Error(message), authUrl);
950
+ }
951
+ return [2 /*return*/, valid];
952
+ }
953
+ });
954
+ });
955
+ }
813
956
  function useAuthReducer(authUrl, sessionId) {
814
- var _this = this;
815
957
  if (authUrl === void 0) {
816
958
  authUrl = defaultAuthUrl;
817
959
  }
@@ -857,51 +999,17 @@ function useAuthReducer(authUrl, sessionId) {
857
999
  type: 'setCheckState',
858
1000
  payload: 'RUNNING'
859
1001
  });
860
- (function () {
861
- return __awaiter(_this, void 0, void 0, function () {
862
- var resp, _a, valid, message, e_1;
863
- return __generator(this, function (_b) {
864
- switch (_b.label) {
865
- case 0:
866
- _b.trys.push([0, 3,, 4]);
867
- return [4 /*yield*/, fetch("".concat(authUrl, "/portal.sessions.v1.SessionsService/ValidateSession"), {
868
- method: 'POST',
869
- headers: {
870
- 'Content-Type': 'application/json'
871
- },
872
- body: JSON.stringify({
873
- id: resolvedSessionId
874
- })
875
- })];
876
- case 1:
877
- resp = _b.sent();
878
- return [4 /*yield*/, resp.json()];
879
- case 2:
880
- _a = _b.sent(), valid = _a.valid, message = _a.message;
881
- if (!resp.ok) {
882
- dispatch({
883
- type: 'setError',
884
- payload: new SessionValidationFailedError(new Error(message), authUrl)
885
- });
886
- }
887
- dispatch({
888
- type: 'setCheckState',
889
- payload: valid ? 'PASSED' : 'FAILED'
890
- });
891
- return [3 /*break*/, 4];
892
- case 3:
893
- e_1 = _b.sent();
894
- dispatch({
895
- type: 'setError',
896
- payload: new SessionValidationFailedError(e_1, authUrl)
897
- });
898
- return [3 /*break*/, 4];
899
- case 4:
900
- return [2 /*return*/];
901
- }
902
- });
1002
+ validateSession(authUrl, resolvedSessionId).then(function (valid) {
1003
+ dispatch({
1004
+ type: 'setCheckState',
1005
+ payload: valid ? 'PASSED' : 'FAILED'
903
1006
  });
904
- })();
1007
+ })["catch"](function (e) {
1008
+ dispatch({
1009
+ type: 'setError',
1010
+ payload: new SessionValidationFailedError(e, authUrl)
1011
+ });
1012
+ });
905
1013
  }
906
1014
  }, [authUrl, sessionCheckState, resolvedSessionId, sessionId]);
907
1015
  return [state, dispatch];
@@ -952,61 +1060,6 @@ function AuthProvider(_a) {
952
1060
  }, children));
953
1061
  }
954
1062
 
955
- var LogLevel;
956
- (function (LogLevel) {
957
- LogLevel[LogLevel["Off"] = 0] = "Off";
958
- LogLevel[LogLevel["Error"] = 1] = "Error";
959
- LogLevel[LogLevel["Warn"] = 2] = "Warn";
960
- LogLevel[LogLevel["Info"] = 3] = "Info";
961
- LogLevel[LogLevel["Debug"] = 4] = "Debug";
962
- })(LogLevel || (LogLevel = {}));
963
- var logLevel = LogLevel.Warn;
964
- function useLogLevel(newLogLevel) {
965
- useEffect(function () {
966
- var oldLogLevel = logLevel;
967
- if (newLogLevel === oldLogLevel) return;
968
- logLevel = newLogLevel;
969
- return function () {
970
- logLevel = oldLogLevel;
971
- };
972
- }, [newLogLevel]);
973
- }
974
- function useDebugLogging(enabled) {
975
- useLogLevel(enabled ? LogLevel.Debug : logLevel);
976
- }
977
- function debug() {
978
- var parts = [];
979
- for (var _i = 0; _i < arguments.length; _i++) {
980
- parts[_i] = arguments[_i];
981
- }
982
- if (logLevel < LogLevel.Debug) return;
983
- console.debug.apply(console, parts); // eslint-disable-line no-console
984
- }
985
- function log() {
986
- var parts = [];
987
- for (var _i = 0; _i < arguments.length; _i++) {
988
- parts[_i] = arguments[_i];
989
- }
990
- if (logLevel < LogLevel.Info) return;
991
- console.log.apply(console, parts); // eslint-disable-line no-console
992
- }
993
- function warn() {
994
- var parts = [];
995
- for (var _i = 0; _i < arguments.length; _i++) {
996
- parts[_i] = arguments[_i];
997
- }
998
- if (logLevel < LogLevel.Warn) return;
999
- console.warn.apply(console, parts); // eslint-disable-line no-console
1000
- }
1001
- function error() {
1002
- var parts = [];
1003
- for (var _i = 0; _i < arguments.length; _i++) {
1004
- parts[_i] = arguments[_i];
1005
- }
1006
- if (logLevel < LogLevel.Error) return;
1007
- console.error.apply(console, parts); // eslint-disable-line no-console
1008
- }
1009
-
1010
1063
  var defaultSubmissionUrl = 'https://portal-api.idmission.com/swagger';
1011
1064
  function setDefaultSubmissionUrl(url) {
1012
1065
  defaultSubmissionUrl = url;
@@ -3533,7 +3586,7 @@ var es = {
3533
3586
  'Document is not centered': 'Documento no centrado',
3534
3587
  'Document too close please back up': 'Documento muy cerca, favor de alejarse',
3535
3588
  'Please hold your ID document steady': 'Por favor, hay que mantener firme su identificación',
3536
- 'Document out of focus try improving the lighting': 'Documento no enfocado, hay que tratar de mejorar la iluminación',
3589
+ 'Document out of focus - try improving the lighting': 'Documento no enfocado, hay que tratar de mejorar la iluminación',
3537
3590
  'ID card front detected - please flip your ID card': 'Frente de la ID detectado, por favor hay que voltearla',
3538
3591
  'ID card back detected - please flip your ID card': 'Reverso de la ID detectado, por favor hay que voltearla',
3539
3592
  'ID card detected please scan a passport instead': 'Se ha detectado una credencial, por favor hay que escanear un pasaporte',
@@ -3660,7 +3713,7 @@ var de = {
3660
3713
  'Document is not centered': 'Dokument ist nicht zentriert',
3661
3714
  'Document too close please back up': 'Dokument ist zu nah, bitte Abstand vergrößern',
3662
3715
  'Please hold your ID document steady': 'Ihr Ausweisdokument ruhig halten',
3663
- 'Document out of focus try improving the lighting': 'Dokument unscharf versuchen Sie, die Beleuchtung zu verbessern',
3716
+ 'Document out of focus - try improving the lighting': 'Dokument unscharf - versuchen Sie, die Beleuchtung zu verbessern',
3664
3717
  'ID card front detected - please flip your ID card': 'Vorderseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
3665
3718
  'ID card back detected - please flip your ID card': 'Rückseite des Ausweises erkannt - bitte Ihren Ausweis umdrehen',
3666
3719
  'ID card detected please scan a passport instead': 'Ausweis erkannt, bitte stattdessen einen Pass scannen',
@@ -3743,7 +3796,7 @@ var de = {
3743
3796
  'Camera ready': 'Kamera bereit',
3744
3797
  'Loading guided capture experience...': 'Geführte Erfassung wird geladen...',
3745
3798
  'Guided capture experience ready': 'Geführte Erfassung bereit',
3746
- "Let's Go!": 'Los gehts!',
3799
+ "Let's Go!": "Los geht's!",
3747
3800
  '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?',
3748
3801
  OK: 'OK',
3749
3802
  'Capture with Camera': 'Mit der Kamera aufnehmen',
@@ -3755,7 +3808,9 @@ var de = {
3755
3808
  'Upload ID Front': 'Vorderseite der ID hochladen',
3756
3809
  'Upload ID Back': 'Rückseite der ID hochladen',
3757
3810
  Cancel: 'Abbrechen',
3758
- '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'
3811
+ '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.',
3812
+ 'Camera tampering detected': 'Kamera manipuliert',
3813
+ "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.'
3759
3814
  };
3760
3815
 
3761
3816
  var fr = {
@@ -3785,7 +3840,7 @@ var fr = {
3785
3840
  'Document is not centered': "Le document n'est pas centré",
3786
3841
  'Document too close please back up': 'Document trop proche, veuillez sauvegarder',
3787
3842
  'Please hold your ID document steady': "Veuillez maintenir fermement votre pièce d'identité",
3788
- 'Document out of focus try improving the lighting': 'Document flou essayez daméliorer l’éclairage',
3843
+ 'Document out of focus - try improving the lighting': "Document flou - essayez d'améliorer l'éclairage",
3789
3844
  'ID card front detected - please flip your ID card': "Recto de la carte d'identité détecté - veuillez retourner votre carte d'identité",
3790
3845
  'ID card back detected - please flip your ID card': "Verso de la carte d'identité détectée - veuillez retourner votre carte d'identité",
3791
3846
  'ID card detected please scan a passport instead': "Carte d'identité détectée, veuillez scanner plutôt un passeport",
@@ -3800,7 +3855,7 @@ var fr = {
3800
3855
  'ID card front captured.': "Recto de la carte d'identité capturé.",
3801
3856
  'ID card back captured.': "Verso de la carte d'identité capturé.",
3802
3857
  'ID Capture Successful': "Capture d'identité réussie",
3803
- '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.",
3858
+ '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.",
3804
3859
  Submit: 'Soumettre',
3805
3860
  'Submitting...': 'Soumission en cours...',
3806
3861
  'Use your device camera to capture your face': 'Utilisez la caméra de votre appareil pour capturer votre visage',
@@ -3844,20 +3899,20 @@ var fr = {
3844
3899
  'Display the back of your ID card...': "Affichez le verso de votre carte d'identité...",
3845
3900
  'Display the ID page of your passport...': "Montrez la page d'identité de votre passeport...",
3846
3901
  'Please move your face to the center...': 'Veuillez déplacer votre visage vers le centre...',
3847
- 'Searching for ID card...': "Recherche dune carte d'identité...",
3902
+ 'Searching for ID card...': "Recherche d'une carte d'identité...",
3848
3903
  'Please read the following text aloud': 'Veuillez lire le texte suivant à voix haute',
3849
- 'Video ID has been successfully captured!': 'L’ID vidéo a été capturé avec succès!',
3850
- 'ID Front Image': 'Image recto de la pièce didentité',
3851
- 'ID Back Image': 'Image verso de la pièce didentité',
3904
+ 'Video ID has been successfully captured!': "L'ID vidéo a été capturé avec succès!",
3905
+ 'ID Front Image': "Image recto de la pièce d'identité",
3906
+ 'ID Back Image': "Image verso de la pièce d'identité",
3852
3907
  "We're having some trouble.": 'Nous rencontrons quelques problèmes.',
3853
3908
  'On-device capture guidance failed please capture a selfie manually.': "Le guidage de capture sur l'appareil a échoué, veuillez capturer un selfie manuellement.",
3854
3909
  'Verifying...': 'Vérification en cours...',
3855
3910
  'Please capture the front of your ID card.': "Veuillez capturer le recto de votre carte d'identité.",
3856
3911
  'Please capture the back of your ID card.': "Veuillez capturer le verso de votre carte d'identité.",
3857
- '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.',
3858
- '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.',
3912
+ '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.",
3913
+ '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.",
3859
3914
  'Please capture the ID page of your passport.': "Veuillez capturer la page d'identité de votre passeport.",
3860
- '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.",
3915
+ '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.",
3861
3916
  '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.",
3862
3917
  '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.",
3863
3918
  '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.",
@@ -3880,7 +3935,9 @@ var fr = {
3880
3935
  'Upload ID Front': "Télécharger le recto de la pièce d'identité",
3881
3936
  'Upload ID Back': "Télécharger le verso de la pièce d'identité",
3882
3937
  Cancel: 'Annuler',
3883
- '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."
3938
+ '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.",
3939
+ 'Camera tampering detected': 'Manipulation de la caméra détectée',
3940
+ "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.'
3884
3941
  };
3885
3942
 
3886
3943
  var it = {
@@ -3903,27 +3960,27 @@ var it = {
3903
3960
  'Scan the front of ID': 'Scansiona il fronte del documento',
3904
3961
  'Scan the back of ID': 'Scansiona il retro del documento',
3905
3962
  'Scan the ID page of passport': 'Scansione la pagina identificativa del passaporto',
3906
- 'ID Card Front': 'Fronte documento didentità',
3907
- 'ID Card Back': 'Retro documento didentità',
3963
+ 'ID Card Front': "Fronte documento d'identità",
3964
+ 'ID Card Back': "Retro documento d'identità",
3908
3965
  Passport: 'Passaporto',
3909
3966
  'Document not detected': 'Documento non rilevato',
3910
3967
  'Document is not centered': 'Documento non centrato',
3911
3968
  'Document too close please back up': 'Documento troppo vicino, allontanarlo',
3912
- 'Please hold your ID document steady': 'Tenere il documento didentità fermo',
3913
- 'Document out of focus try improving the lighting': 'Documento fuori fuoco - provare a migliorare lilluminazione',
3914
- 'ID card front detected - please flip your ID card': 'Fronte del documento didentità rilevato - Girare il documento didentità',
3915
- 'ID card back detected - please flip your ID card': 'Retro del documento didentità rilevato - Girare il documento didentità',
3916
- 'ID card detected please scan a passport instead': 'Documento didentità rilevato, scansionare un passaporto al suo posto',
3917
- 'Passport detected please scan an ID card instead': 'Passaporto rilevato, scansionare una documento didentità al suo posto',
3969
+ 'Please hold your ID document steady': "Tenere il documento d'identità fermo",
3970
+ 'Document out of focus - try improving the lighting': "Documento fuori fuoco - provare a migliorare l'illuminazione",
3971
+ 'ID card front detected - please flip your ID card': "Fronte del documento d'identità rilevato - Girare il documento d'identità",
3972
+ 'ID card back detected - please flip your ID card': "Retro del documento d'identità rilevato - Girare il documento d'identità",
3973
+ 'ID card detected please scan a passport instead': "Documento d'identità rilevato, scansionare un passaporto al suo posto",
3974
+ 'Passport detected please scan an ID card instead': "Passaporto rilevato, scansionare una documento d'identità al suo posto",
3918
3975
  'Document detected, hold still...': 'Documento rilevato, tenere fermo...',
3919
- 'ID card front detected, hold still...': 'Fronte documento didentità rilevato, tenere fermo...',
3920
- 'ID card back detected, hold still...': 'Retro documento didentità rilevato, tenere fermo...',
3976
+ 'ID card front detected, hold still...': "Fronte documento d'identità rilevato, tenere fermo...",
3977
+ 'ID card back detected, hold still...': "Retro documento d'identità rilevato, tenere fermo...",
3921
3978
  'Passport detected, hold still...': 'Passaporto rilevato, tenere fermo...',
3922
3979
  'Capturing...': 'Acquisizione...',
3923
3980
  'Capture failed!': 'Acquisizione non riuscita!',
3924
- 'Please flip your ID card...': 'Capovolgere il documento didentità',
3925
- 'ID card front captured.': 'Fronte documento didentità acquisito.',
3926
- 'ID card back captured.': 'Retro documento didentità acquisito.',
3981
+ 'Please flip your ID card...': "Capovolgere il documento d'identità",
3982
+ 'ID card front captured.': "Fronte documento d'identità acquisito.",
3983
+ 'ID card back captured.': "Retro documento d'identità acquisito.",
3927
3984
  'ID Capture Successful': 'Acquisizione documento riuscita',
3928
3985
  'Verify the entire ID was captured clearly with no glare.': 'Verificare che tutto il documento sia acquisito chiaramente e senza riflessi.',
3929
3986
  Submit: 'Invia',
@@ -3965,29 +4022,29 @@ var it = {
3965
4022
  'Uploading...': 'Caricamento...',
3966
4023
  'Upload succeeded!': 'Caricamento riuscito!',
3967
4024
  'Performing facial recognition, please hold still...': 'Riconoscimento volto in corso, tenere fermo...',
3968
- 'Display the front of your ID card...': 'Mostrare il fronte del documento didentità...',
3969
- 'Display the back of your ID card...': 'Mostrare il retro della documento didentità...',
4025
+ 'Display the front of your ID card...': "Mostrare il fronte del documento d'identità...",
4026
+ 'Display the back of your ID card...': "Mostrare il retro della documento d'identità...",
3970
4027
  'Display the ID page of your passport...': 'Mostrare la pagina identificativa del passaporto...',
3971
4028
  'Please move your face to the center...': 'Spostare il volto al centro...',
3972
- 'Searching for ID card...': 'Ricerca documento didentità in corso...',
4029
+ 'Searching for ID card...': "Ricerca documento d'identità in corso...",
3973
4030
  'Please read the following text aloud': 'Leggere il testo seguente a voce alta',
3974
- 'Video ID has been successfully captured!': 'L’ID video è stato acquisito correttamente!',
3975
- 'ID Front Image': 'Immagine fronte documento didentità',
3976
- 'ID Back Image': 'Immagine retro documento didentità',
4031
+ 'Video ID has been successfully captured!': "L'ID video è stato acquisito correttamente!",
4032
+ 'ID Front Image': "Immagine fronte documento d'identità",
4033
+ 'ID Back Image': "Immagine retro documento d'identità",
3977
4034
  "We're having some trouble.": 'Si è verificato un problema.',
3978
4035
  'On-device capture guidance failed please capture a selfie manually.': "La guida all'acquisizione sul dispositivo non è riuscita. Scattare un selfie manualmente.",
3979
4036
  'Verifying...': 'Verifica...',
3980
- 'Please capture the front of your ID card.': 'Acquisire il fronte del documento didentità.',
3981
- 'Please capture the back of your ID card.': 'Acquisire il retro del documento didentità.',
3982
- '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.',
3983
- '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.',
4037
+ 'Please capture the front of your ID card.': "Acquisire il fronte del documento d'identità.",
4038
+ 'Please capture the back of your ID card.': "Acquisire il retro del documento d'identità.",
4039
+ '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.",
4040
+ '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.",
3984
4041
  'Please capture the ID page of your passport.': 'Acquisire la pagina identificativa del passaporto.',
3985
- '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.",
4042
+ '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.",
3986
4043
  '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.",
3987
- '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.",
3988
- '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.",
4044
+ '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.",
4045
+ '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.",
3989
4046
  'Capture ID page of passport': 'Acquisisci pagina identificativa del passaporto',
3990
- 'Capture back of ID card': 'Acquisisci retro del documento didentità',
4047
+ 'Capture back of ID card': "Acquisisci retro del documento d'identità",
3991
4048
  'Downloading...': 'Download in corso...',
3992
4049
  'Accessing camera...': 'Accesso alla fotocamera...',
3993
4050
  'Camera ready': 'Fotocamera pronta',
@@ -4005,7 +4062,9 @@ var it = {
4005
4062
  'Upload ID Front': "Carica il fronte dell'ID",
4006
4063
  'Upload ID Back': "Carica il retro dell'ID",
4007
4064
  Cancel: 'Annulla',
4008
- '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"
4065
+ '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.",
4066
+ 'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
4067
+ "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.'
4009
4068
  };
4010
4069
 
4011
4070
  var ja = {
@@ -4035,7 +4094,7 @@ var ja = {
4035
4094
  'Document is not centered': 'ドキュメントが中央に合っていません',
4036
4095
  'Document too close please back up': 'ドキュメントが近すぎます。遠ざけてください',
4037
4096
  'Please hold your ID document steady': '身分証が動かないように押さえてください',
4038
- 'Document out of focus try improving the lighting': 'ドキュメントの焦点がぼやけています。照明を調節してください',
4097
+ 'Document out of focus - try improving the lighting': 'ドキュメントの焦点がぼやけています。照明を調節してください',
4039
4098
  'ID card front detected - please flip your ID card': '身分証の正面が検出されました。身分証を裏返してください',
4040
4099
  'ID card back detected - please flip your ID card': '身分証の背面が検出されました。身分証を裏返してください',
4041
4100
  'ID card detected please scan a passport instead': '身分証が検出されました。パスポートをスキャンしてください',
@@ -4130,7 +4189,9 @@ var ja = {
4130
4189
  'Upload ID Front': '身分証明書の表面をアップロード',
4131
4190
  'Upload ID Back': '身分証明書の裏面をアップロード',
4132
4191
  Cancel: 'キャンセル',
4133
- 'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。'
4192
+ 'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
4193
+ 'Camera tampering detected': 'カメラの操作が検出されました',
4194
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'カメラの操作が検出されました。デバイスを確認し、ページを再読み込みしてください。'
4134
4195
  };
4135
4196
 
4136
4197
  var pt = {
@@ -4160,7 +4221,7 @@ var pt = {
4160
4221
  'Document is not centered': 'Documento não está centralizado',
4161
4222
  'Document too close please back up': 'Documento muito próximo, recue',
4162
4223
  'Please hold your ID document steady': 'Segure seu documento de identificação com firmeza',
4163
- 'Document out of focus try improving the lighting': 'Documento fora de foco - tente melhorar a iluminação',
4224
+ 'Document out of focus - try improving the lighting': 'Documento fora de foco - tente melhorar a iluminação',
4164
4225
  'ID card front detected - please flip your ID card': 'Detectada a frente da carteira de identidade - vire a carteira de identidade',
4165
4226
  'ID card back detected - please flip your ID card': 'Detectado o verso da carteira de identidade - vire a carteira de identidade',
4166
4227
  'ID card detected please scan a passport instead': 'Detectada a carteira de identidade - escaneie um passaporte em seu lugar',
@@ -4255,7 +4316,9 @@ var pt = {
4255
4316
  'Upload ID Front': 'Carregar frente do ID',
4256
4317
  'Upload ID Back': 'Carregar verso do ID',
4257
4318
  Cancel: 'Cancelar',
4258
- '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.'
4319
+ '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.',
4320
+ 'Camera tampering detected': 'Manipulação da câmera detectada',
4321
+ "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.'
4259
4322
  };
4260
4323
 
4261
4324
  var ru = {
@@ -4380,7 +4443,9 @@ var ru = {
4380
4443
  'Upload ID Front': 'Загрузить переднюю сторону удостоверения личности',
4381
4444
  'Upload ID Back': 'Загрузить заднюю сторону удостоверения личности',
4382
4445
  Cancel: 'Отменить',
4383
- 'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.\r\n'
4446
+ 'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
4447
+ 'Camera tampering detected': 'Обнаружена манипуляция с камерой',
4448
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": 'К сожалению, кажется, что камера подвергается манипуляциям. Пожалуйста, проверьте свое устройство и попробуйте снова, перезагрузив страницу.'
4384
4449
  };
4385
4450
 
4386
4451
  var zh = {
@@ -4410,7 +4475,7 @@ var zh = {
4410
4475
  'Document is not centered': '文件未置中',
4411
4476
  'Document too close please back up': '文件太近,請後退',
4412
4477
  'Please hold your ID document steady': '請拿穩證件',
4413
- 'Document out of focus try improving the lighting': '文件失焦 請嘗試改善燈光',
4478
+ 'Document out of focus - try improving the lighting': '文件失焦 - 請嘗試改善燈光',
4414
4479
  'ID card front detected - please flip your ID card': '偵測到證件正面 - 請將證件翻面',
4415
4480
  'ID card back detected - please flip your ID card': '偵測到證件背面 - 請將證件翻面',
4416
4481
  'ID card detected please scan a passport instead': '偵測到證件,請掃描護照',
@@ -4471,7 +4536,7 @@ var zh = {
4471
4536
  'Please move your face to the center...': '請將臉部移至中心...',
4472
4537
  'Searching for ID card...': '正在搜尋證件...',
4473
4538
  'Please read the following text aloud': '請大聲讀出以下文字',
4474
- 'Video ID has been successfully captured!': '已成功拍攝影片 ID',
4539
+ 'Video ID has been successfully captured!': '已成功拍攝影片 ID!',
4475
4540
  'ID Front Image': '證件正面影像',
4476
4541
  'ID Back Image': '證件背面影像',
4477
4542
  "We're having some trouble.": '發生一些問題。',
@@ -4505,7 +4570,9 @@ var zh = {
4505
4570
  'Upload ID Front': '上传身份证正面',
4506
4571
  'Upload ID Back': '上传身份证背面',
4507
4572
  Cancel: '取消',
4508
- 'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。'
4573
+ 'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
4574
+ 'Camera tampering detected': '檢測到相機被篡改',
4575
+ "We're sorry, but it looks like the camera is being tampered with. Please check your device and try again by reloading the page.": '很抱歉,看起來相機被篡改了。請檢查您的設備並重新載入頁面。'
4509
4576
  };
4510
4577
 
4511
4578
  var resources = {