idmission-web-sdk 2.3.198 → 2.3.199
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/components/CompositeWizard.d.ts +2 -0
- package/dist/components/CompositeWizard.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +4 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +4 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +4 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +4 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/DocumentCapture.d.ts +4 -0
- package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +4 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +4 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts +4 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +4 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +4 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +3 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +3 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +3 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -0
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/lib/camera/cameraStore.d.ts +8 -1
- package/dist/lib/camera/cameraStore.d.ts.map +1 -1
- package/dist/lib/locales/de.d.ts +1 -1
- package/dist/lib/locales/es.d.ts +1 -1
- package/dist/lib/locales/fr.d.ts +1 -1
- package/dist/lib/locales/index.d.ts +8 -8
- package/dist/lib/locales/it.d.ts +1 -1
- package/dist/lib/locales/ja.d.ts +1 -1
- package/dist/lib/locales/pt.d.ts +1 -1
- package/dist/lib/locales/ru.d.ts +1 -1
- package/dist/lib/locales/zh.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +351 -254
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +351 -254
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +351 -254
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.3.
|
|
207
|
+
var webSdkVersion = '2.3.199';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -501,9 +501,9 @@ var templateObject_1$T, templateObject_2$O;
|
|
|
501
501
|
|
|
502
502
|
var wavesAnimation = keyframes(templateObject_1$S || (templateObject_1$S = __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"])));
|
|
503
503
|
var progressBarAnimation = keyframes(templateObject_2$N || (templateObject_2$N = __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"])));
|
|
504
|
-
var dualRingSpinnerAnimation = keyframes(templateObject_3$
|
|
504
|
+
var dualRingSpinnerAnimation = keyframes(templateObject_3$A || (templateObject_3$A = __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"])));
|
|
505
505
|
keyframes(templateObject_4$t || (templateObject_4$t = __makeTemplateObject(["\n to {\n stroke-dashoffset: 0;\n }\n"], ["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
506
|
-
var templateObject_1$S, templateObject_2$N, templateObject_3$
|
|
506
|
+
var templateObject_1$S, templateObject_2$N, templateObject_3$A, templateObject_4$t;
|
|
507
507
|
|
|
508
508
|
var OverlayContainer = styled.div(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"])), function (props) {
|
|
509
509
|
return props.theme.background ? "".concat(props.theme.background) : "white";
|
|
@@ -516,7 +516,7 @@ var OverlayInner$2 = styled.div(templateObject_2$M || (templateObject_2$M = __ma
|
|
|
516
516
|
}, function (props) {
|
|
517
517
|
return props.theme.padding ? "box-sizing: border-box; padding: ".concat(props.theme.padding, ";") : "";
|
|
518
518
|
});
|
|
519
|
-
var OverlayImageContainer = styled.div(templateObject_3$
|
|
519
|
+
var OverlayImageContainer = styled.div(templateObject_3$z || (templateObject_3$z = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
|
|
520
520
|
var OverlayImageRow = styled.div(templateObject_4$s || (templateObject_4$s = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
|
|
521
521
|
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$l || (templateObject_5$l = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
522
522
|
var ButtonsColumn = styled.div(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"])));
|
|
@@ -558,7 +558,7 @@ var LoadingOverlayLoadingListItem = styled.li(templateObject_19$2 || (templateOb
|
|
|
558
558
|
var LoadingOverlayProgressContainer = styled.div(templateObject_20$2 || (templateObject_20$2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
559
559
|
var LoadingOverlayCustomLoadingGraphic = styled.img(templateObject_21$2 || (templateObject_21$2 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
560
560
|
var LoadingOverlayContinueButtonContainer = styled.div(templateObject_22$2 || (templateObject_22$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
561
|
-
var templateObject_1$R, templateObject_2$M, templateObject_3$
|
|
561
|
+
var templateObject_1$R, templateObject_2$M, templateObject_3$z, templateObject_4$s, templateObject_5$l, templateObject_6$d, templateObject_7$9, templateObject_8$8, templateObject_9$5, templateObject_10$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$2;
|
|
562
562
|
|
|
563
563
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
564
564
|
var accessBlockedImageUrl = _a.accessBlockedImageUrl;
|
|
@@ -786,7 +786,7 @@ var NetworkErrorContent = function NetworkErrorContent(_a) {
|
|
|
786
786
|
};
|
|
787
787
|
var ErrorContainer = styled.div(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 600px;\n width: 100%;\n padding: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 600px;\n width: 100%;\n padding: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n"])));
|
|
788
788
|
var ErrorIcon = styled.div(templateObject_2$L || (templateObject_2$L = __makeTemplateObject(["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #fee2e2;\n color: #dc2626;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 16px;\n"], ["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #fee2e2;\n color: #dc2626;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 16px;\n"])));
|
|
789
|
-
var Heading$b = styled.h3(templateObject_3$
|
|
789
|
+
var Heading$b = styled.h3(templateObject_3$y || (templateObject_3$y = __makeTemplateObject(["\n margin: 0 0 16px 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #1f2937;\n text-align: center;\n"], ["\n margin: 0 0 16px 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #1f2937;\n text-align: center;\n"])));
|
|
790
790
|
var Message$1 = styled.p(templateObject_4$r || (templateObject_4$r = __makeTemplateObject(["\n margin: 0 0 16px 0;\n color: #6b7280;\n text-align: center;\n line-height: 1.5;\n"], ["\n margin: 0 0 16px 0;\n color: #6b7280;\n text-align: center;\n line-height: 1.5;\n"])));
|
|
791
791
|
var StatusBadge$1 = styled.div(templateObject_5$k || (templateObject_5$k = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: 8px;\n background-color: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 6px;\n padding: 6px 12px;\n margin-bottom: 20px;\n"], ["\n display: inline-flex;\n align-items: center;\n gap: 8px;\n background-color: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 6px;\n padding: 6px 12px;\n margin-bottom: 20px;\n"])));
|
|
792
792
|
var StatusLabel = styled.span(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 500;\n color: #991b1b;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n"], ["\n font-size: 0.75rem;\n font-weight: 500;\n color: #991b1b;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n"])));
|
|
@@ -797,7 +797,7 @@ var DetailsLabel = styled.span(templateObject_10$3 || (templateObject_10$3 = __m
|
|
|
797
797
|
var CopyButton = styled.button(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"], ["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"])));
|
|
798
798
|
var CodeBlock = styled.pre(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n background-color: #1f2937;\n border-radius: 8px;\n padding: 16px;\n margin: 0;\n overflow-x: auto;\n max-height: 300px;\n overflow-y: auto;\n text-align: left;\n\n code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: #e5e7eb;\n white-space: pre-wrap;\n word-break: break-word;\n display: block;\n text-align: left;\n }\n"], ["\n background-color: #1f2937;\n border-radius: 8px;\n padding: 16px;\n margin: 0;\n overflow-x: auto;\n max-height: 300px;\n overflow-y: auto;\n text-align: left;\n\n code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: #e5e7eb;\n white-space: pre-wrap;\n word-break: break-word;\n display: block;\n text-align: left;\n }\n"])));
|
|
799
799
|
var RetryContainer = styled.div(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-top: 24px;\n"], ["\n margin-top: 24px;\n"])));
|
|
800
|
-
var templateObject_1$Q, templateObject_2$L, templateObject_3$
|
|
800
|
+
var templateObject_1$Q, templateObject_2$L, templateObject_3$y, templateObject_4$r, templateObject_5$k, templateObject_6$c, templateObject_7$8, templateObject_8$7, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3;
|
|
801
801
|
|
|
802
802
|
var SessionIdMissingOverlay = function SessionIdMissingOverlay() {
|
|
803
803
|
return /*#__PURE__*/React__default.createElement(OverlayContainer, null, /*#__PURE__*/React__default.createElement(OverlayInner$2, {
|
|
@@ -4028,7 +4028,7 @@ var es = {
|
|
|
4028
4028
|
Cancel: 'Cancelar',
|
|
4029
4029
|
'Upload the back of the ID if it is not included in the front image.': 'Adjuntar el reverso de la ID si no se incluye en la imagen del frente',
|
|
4030
4030
|
'Camera tampering detected': 'Se ha detectado un intento de manipulación de la cámara',
|
|
4031
|
-
"
|
|
4031
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": 'Una extensión del navegador u otro software está interfiriendo con el acceso a la cámara. Intente deshabilitar las extensiones del navegador, actualizar su navegador a la última versión o cambiar a un navegador diferente.',
|
|
4032
4032
|
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.',
|
|
4033
4033
|
'Sign here': 'Firma aquí'
|
|
4034
4034
|
};
|
|
@@ -4161,7 +4161,7 @@ var de = {
|
|
|
4161
4161
|
Cancel: 'Abbrechen',
|
|
4162
4162
|
'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.',
|
|
4163
4163
|
'Camera tampering detected': 'Kamera manipuliert',
|
|
4164
|
-
"
|
|
4164
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": 'Eine Browsererweiterung oder andere Software stört den Kamerazugriff. Bitte deaktivieren Sie Browsererweiterungen, aktualisieren Sie Ihren Browser auf die neueste Version oder wechseln Sie zu einem anderen Browser.',
|
|
4165
4165
|
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.',
|
|
4166
4166
|
'Sign here': 'Hier unterschreiben'
|
|
4167
4167
|
};
|
|
@@ -4294,7 +4294,7 @@ var fr = {
|
|
|
4294
4294
|
Cancel: 'Annuler',
|
|
4295
4295
|
'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.",
|
|
4296
4296
|
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
4297
|
-
"
|
|
4297
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": "Une extension de navigateur ou un autre logiciel interfère avec l'accès à la caméra. Veuillez essayer de désactiver les extensions de navigateur, de mettre à jour votre navigateur vers la dernière version ou d'utiliser un autre navigateur.",
|
|
4298
4298
|
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.',
|
|
4299
4299
|
'Sign here': 'Signer ici'
|
|
4300
4300
|
};
|
|
@@ -4427,7 +4427,7 @@ var it = {
|
|
|
4427
4427
|
Cancel: 'Annulla',
|
|
4428
4428
|
'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.",
|
|
4429
4429
|
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
4430
|
-
"
|
|
4430
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": "Un'estensione del browser o un altro software sta interferendo con l'accesso alla fotocamera. Prova a disabilitare le estensioni del browser, ad aggiornare il browser all'ultima versione o a passare a un browser diverso.",
|
|
4431
4431
|
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.',
|
|
4432
4432
|
'Sign here': 'Firma qui'
|
|
4433
4433
|
};
|
|
@@ -4560,7 +4560,7 @@ var ja = {
|
|
|
4560
4560
|
Cancel: 'キャンセル',
|
|
4561
4561
|
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
4562
4562
|
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
4563
|
-
"
|
|
4563
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": 'ブラウザの拡張機能または他のソフトウェアがカメラへのアクセスを妨げています。ブラウザの拡張機能を無効にするか、ブラウザを最新バージョンに更新するか、別のブラウザに切り替えてください。',
|
|
4564
4564
|
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。',
|
|
4565
4565
|
'Sign here': 'ここに署名'
|
|
4566
4566
|
};
|
|
@@ -4693,7 +4693,7 @@ var pt = {
|
|
|
4693
4693
|
Cancel: 'Cancelar',
|
|
4694
4694
|
'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.',
|
|
4695
4695
|
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
4696
|
-
"
|
|
4696
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": 'Uma extensão do navegador ou outro software está interferindo no acesso à câmera. Tente desativar as extensões do navegador, atualizar seu navegador para a versão mais recente ou mudar para um navegador diferente.',
|
|
4697
4697
|
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.',
|
|
4698
4698
|
'Sign here': 'Assinar aqui'
|
|
4699
4699
|
};
|
|
@@ -4826,7 +4826,7 @@ var ru = {
|
|
|
4826
4826
|
Cancel: 'Отменить',
|
|
4827
4827
|
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
4828
4828
|
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
4829
|
-
"
|
|
4829
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": 'Расширение браузера или другое программное обеспечение мешает доступу к камере. Попробуйте отключить расширения браузера, обновить браузер до последней версии или переключиться на другой браузер.',
|
|
4830
4830
|
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.',
|
|
4831
4831
|
'Sign here': 'Подписать здесь'
|
|
4832
4832
|
};
|
|
@@ -4959,7 +4959,7 @@ var zh = {
|
|
|
4959
4959
|
Cancel: '取消',
|
|
4960
4960
|
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
4961
4961
|
'Camera tampering detected': '檢測到相機被篡改',
|
|
4962
|
-
"
|
|
4962
|
+
"A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.": '瀏覽器擴充功能或其他軟體正在干擾相機存取。請嘗試停用瀏覽器擴充功能、將瀏覽器更新至最新版本或切換至其他瀏覽器。',
|
|
4963
4963
|
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。',
|
|
4964
4964
|
'Sign here': '在此簽名'
|
|
4965
4965
|
};
|
|
@@ -5071,6 +5071,7 @@ var initialState$6 = {
|
|
|
5071
5071
|
iphoneContinuityCameraAvailable: false,
|
|
5072
5072
|
iphoneContinuityCameraDenied: false,
|
|
5073
5073
|
preferIphoneContinuityCamera: true,
|
|
5074
|
+
enableTamperDetection: false,
|
|
5074
5075
|
cameraTamperingDetected: false,
|
|
5075
5076
|
microphoneReady: false,
|
|
5076
5077
|
microphoneAccessDenied: false
|
|
@@ -5111,14 +5112,14 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5111
5112
|
},
|
|
5112
5113
|
requestCameraAccess: function requestCameraAccess() {
|
|
5113
5114
|
return __awaiter(this, void 0, void 0, function () {
|
|
5114
|
-
var _a, videoRef, releaseCameraAccess, preferFrontFacingCamera, preferIphoneContinuityCamera, iphoneContinuityCameraDenied, mediaIntegrityToken, availableCameras, selectedCamera, platform_1, iphoneContinuityCamera, constraints, stream_1, e_1, e_2, handleStreamEnded_1, videoTrack_1, e_3;
|
|
5115
|
+
var _a, videoRef, releaseCameraAccess, preferFrontFacingCamera, preferIphoneContinuityCamera, iphoneContinuityCameraDenied, enableTamperDetection, mediaIntegrityToken, availableCameras, selectedCamera, platform_1, iphoneContinuityCamera, constraints, stream_1, e_1, e_2, handleStreamEnded_1, videoTrack_1, e_3;
|
|
5115
5116
|
var _b, _c, _d, _e;
|
|
5116
5117
|
return __generator(this, function (_f) {
|
|
5117
5118
|
switch (_f.label) {
|
|
5118
5119
|
case 0:
|
|
5119
5120
|
debug("".concat(LOG_TAG, " requestCameraAccess"), new Error().stack);
|
|
5120
|
-
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
5121
|
-
if (guardGetUserMedia(mediaIntegrityToken)) {
|
|
5121
|
+
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, enableTamperDetection = _a.enableTamperDetection, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
5122
|
+
if (enableTamperDetection && guardGetUserMedia(mediaIntegrityToken)) {
|
|
5122
5123
|
set({
|
|
5123
5124
|
cameraTamperingDetected: true
|
|
5124
5125
|
});
|
|
@@ -5340,7 +5341,7 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5340
5341
|
switch (_a.label) {
|
|
5341
5342
|
case 0:
|
|
5342
5343
|
get().releaseMicrophoneAccess();
|
|
5343
|
-
if (guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
5344
|
+
if (get().enableTamperDetection && guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
5344
5345
|
set({
|
|
5345
5346
|
cameraTamperingDetected: true
|
|
5346
5347
|
});
|
|
@@ -5420,6 +5421,8 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5420
5421
|
});
|
|
5421
5422
|
};
|
|
5422
5423
|
var CameraStoreContext = /*#__PURE__*/createContext(undefined);
|
|
5424
|
+
/** Text for the exit button shown when `onExitAfterTamperSealPopped` is bound. */
|
|
5425
|
+
var DEFAULT_EXIT_BUTTON_TEXT = 'Exit';
|
|
5423
5426
|
function CameraStoreProvider(_a) {
|
|
5424
5427
|
var _b;
|
|
5425
5428
|
var children = _a.children,
|
|
@@ -5434,14 +5437,17 @@ function CameraStoreProvider(_a) {
|
|
|
5434
5437
|
maxFps = _a.maxFps,
|
|
5435
5438
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
5436
5439
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
5440
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
5437
5441
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
5438
5442
|
_g = _a.requireMicrophoneAccess,
|
|
5439
5443
|
requireMicrophoneAccess = _g === void 0 ? false : _g,
|
|
5444
|
+
_h = _a.enableTamperDetection,
|
|
5445
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
5440
5446
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
5441
|
-
|
|
5442
|
-
classNames =
|
|
5443
|
-
|
|
5444
|
-
verbiage =
|
|
5447
|
+
_j = _a.classNames,
|
|
5448
|
+
classNames = _j === void 0 ? {} : _j,
|
|
5449
|
+
_k = _a.verbiage,
|
|
5450
|
+
verbiage = _k === void 0 ? {} : _k;
|
|
5445
5451
|
var videoRef = useRef(null);
|
|
5446
5452
|
var store = useRef(undefined);
|
|
5447
5453
|
store.current || (store.current = createCameraStore({
|
|
@@ -5454,10 +5460,12 @@ function CameraStoreProvider(_a) {
|
|
|
5454
5460
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
5455
5461
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
5456
5462
|
requireMicrophoneAccess: requireMicrophoneAccess,
|
|
5463
|
+
enableTamperDetection: enableTamperDetection,
|
|
5457
5464
|
mediaIntegrityToken: mediaIntegrityToken
|
|
5458
5465
|
}));
|
|
5459
5466
|
useEffect(function () {
|
|
5460
5467
|
var _a;
|
|
5468
|
+
if (!enableTamperDetection) return;
|
|
5461
5469
|
var result = checkGetUserMediaIntegrity(mediaIntegrityToken);
|
|
5462
5470
|
if (result.tampered) {
|
|
5463
5471
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -5465,9 +5473,9 @@ function CameraStoreProvider(_a) {
|
|
|
5465
5473
|
});
|
|
5466
5474
|
}
|
|
5467
5475
|
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
5468
|
-
var
|
|
5469
|
-
videoWidth =
|
|
5470
|
-
videoHeight =
|
|
5476
|
+
var _l = (_b = videoRef.current) !== null && _b !== void 0 ? _b : {},
|
|
5477
|
+
videoWidth = _l.videoWidth,
|
|
5478
|
+
videoHeight = _l.videoHeight;
|
|
5471
5479
|
useEffect(function () {
|
|
5472
5480
|
var _a;
|
|
5473
5481
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -5503,6 +5511,7 @@ function CameraStoreProvider(_a) {
|
|
|
5503
5511
|
value: store.current
|
|
5504
5512
|
}, /*#__PURE__*/React__default.createElement(CameraTamperSeal, {
|
|
5505
5513
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
5514
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
5506
5515
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
5507
5516
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
5508
5517
|
classNames: classNames.cameraTamperSeal,
|
|
@@ -5512,6 +5521,7 @@ function CameraStoreProvider(_a) {
|
|
|
5512
5521
|
function CameraTamperSeal(_a) {
|
|
5513
5522
|
var children = _a.children,
|
|
5514
5523
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
5524
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
5515
5525
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
5516
5526
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
5517
5527
|
_b = _a.classNames,
|
|
@@ -5524,10 +5534,12 @@ function CameraTamperSeal(_a) {
|
|
|
5524
5534
|
microphoneAccessDenied = _d.microphoneAccessDenied;
|
|
5525
5535
|
var _e = useTranslations(rawVerbiage, {
|
|
5526
5536
|
headingText: 'Camera tampering detected',
|
|
5527
|
-
messageText:
|
|
5537
|
+
messageText: 'A browser extension or other software is interfering with camera access. Please try disabling browser extensions, updating your browser to the latest version, or switching to a different browser.',
|
|
5538
|
+
exitButtonText: DEFAULT_EXIT_BUTTON_TEXT
|
|
5528
5539
|
}),
|
|
5529
5540
|
headingText = _e.headingText,
|
|
5530
|
-
messageText = _e.messageText
|
|
5541
|
+
messageText = _e.messageText,
|
|
5542
|
+
exitButtonText = _e.exitButtonText;
|
|
5531
5543
|
var onCameraTamperingDetectedRef = useRef(onCameraTamperingDetected);
|
|
5532
5544
|
useEffect(function () {
|
|
5533
5545
|
onCameraTamperingDetectedRef.current = onCameraTamperingDetected;
|
|
@@ -5561,16 +5573,27 @@ function CameraTamperSeal(_a) {
|
|
|
5561
5573
|
className: classNames.heading
|
|
5562
5574
|
}, headingText), /*#__PURE__*/React__default.createElement("p", {
|
|
5563
5575
|
className: classNames.message
|
|
5564
|
-
}, messageText)
|
|
5576
|
+
}, messageText), onExitAfterTamperSealPopped && (/*#__PURE__*/React__default.createElement(StyledExitButton, {
|
|
5577
|
+
type: "button",
|
|
5578
|
+
className: classNames.exitButton,
|
|
5579
|
+
onClick: onExitAfterTamperSealPopped
|
|
5580
|
+
}, exitButtonText))));
|
|
5565
5581
|
}
|
|
5566
5582
|
var StyledOverlayInner$4 = styled(OverlayInner$2)(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
5567
5583
|
var StyledOverlayHeading = styled.h3(templateObject_2$J || (templateObject_2$J = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
5584
|
+
var StyledExitButton = styled.button(templateObject_3$x || (templateObject_3$x = __makeTemplateObject(["\n margin-top: 24px;\n padding: 12px 32px;\n border: none;\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 16px;\n cursor: pointer;\n align-self: center;\n\n &:hover {\n filter: brightness(1.15);\n }\n"], ["\n margin-top: 24px;\n padding: 12px 32px;\n border: none;\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 16px;\n cursor: pointer;\n align-self: center;\n\n &:hover {\n filter: brightness(1.15);\n }\n"])), function (props) {
|
|
5585
|
+
var _a, _b, _c;
|
|
5586
|
+
return (_c = (_b = (_a = props.theme.buttons) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.backgroundColor) !== null && _c !== void 0 ? _c : '#0d6efd';
|
|
5587
|
+
}, function (props) {
|
|
5588
|
+
var _a, _b, _c;
|
|
5589
|
+
return (_c = (_b = (_a = props.theme.buttons) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.textColor) !== null && _c !== void 0 ? _c : '#fff';
|
|
5590
|
+
});
|
|
5568
5591
|
function useCameraStore(selector) {
|
|
5569
5592
|
var store = useContext(CameraStoreContext);
|
|
5570
5593
|
if (!store) throw new Error('useCameraStore cannot be used without Provider');
|
|
5571
5594
|
return useStore(store, selector);
|
|
5572
5595
|
}
|
|
5573
|
-
var templateObject_1$O, templateObject_2$J;
|
|
5596
|
+
var templateObject_1$O, templateObject_2$J, templateObject_3$x;
|
|
5574
5597
|
|
|
5575
5598
|
var DocumentDetectionModelContext = /*#__PURE__*/createContext({
|
|
5576
5599
|
startDocumentDetection: function startDocumentDetection() {
|
|
@@ -15063,14 +15086,18 @@ function IdCaptureWizardWithProviders(_a) {
|
|
|
15063
15086
|
var _b, _c, _d, _e, _f, _g;
|
|
15064
15087
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15065
15088
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
15089
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
15066
15090
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
15091
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
15067
15092
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
15068
15093
|
shouldLoadIdCaptureModels = _a.shouldLoadIdCaptureModels,
|
|
15069
|
-
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
15094
|
+
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
15070
15095
|
return /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
15071
15096
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
15072
15097
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
15098
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
15073
15099
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
15100
|
+
enableTamperDetection: enableTamperDetection,
|
|
15074
15101
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
15075
15102
|
requestAccessAutomatically: shouldLoadIdCaptureModels,
|
|
15076
15103
|
classNames: (_b = idCaptureProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
@@ -17769,15 +17796,19 @@ function FaceLivenessWizardWithProviders(_a) {
|
|
|
17769
17796
|
var _b, _c;
|
|
17770
17797
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
17771
17798
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
17799
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
17772
17800
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
17801
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
17773
17802
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
17774
|
-
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken"]);
|
|
17803
|
+
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken"]);
|
|
17775
17804
|
return /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
17776
17805
|
preferFrontFacingCamera: true,
|
|
17777
17806
|
preferIphoneContinuityCamera: false,
|
|
17778
17807
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
17779
17808
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
17809
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
17780
17810
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
17811
|
+
enableTamperDetection: enableTamperDetection,
|
|
17781
17812
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
17782
17813
|
classNames: (_b = faceLivenessProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
17783
17814
|
verbiage: (_c = faceLivenessProps.verbiage) === null || _c === void 0 ? void 0 : _c.cameraStoreProvider
|
|
@@ -19880,7 +19911,9 @@ function VideoSignatureWizardWithProvidersComponent(props, ref) {
|
|
|
19880
19911
|
maxFps: 30,
|
|
19881
19912
|
onCameraAccessDenied: props.onCameraAccessDenied,
|
|
19882
19913
|
onCameraTamperingDetected: props.onCameraTamperingDetected,
|
|
19914
|
+
onExitAfterTamperSealPopped: props.onExitAfterTamperSealPopped,
|
|
19883
19915
|
onMicrophoneAccessDenied: props.onMicrophoneAccessDenied,
|
|
19916
|
+
enableTamperDetection: props.enableTamperDetection,
|
|
19884
19917
|
mediaIntegrityToken: props.mediaIntegrityToken,
|
|
19885
19918
|
classNames: (_a = props.classNames) === null || _a === void 0 ? void 0 : _a.cameraStoreProvider,
|
|
19886
19919
|
verbiage: (_b = props.verbiage) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider
|
|
@@ -20988,7 +21021,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
20988
21021
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
20989
21022
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
20990
21023
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21024
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
20991
21025
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
21026
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
20992
21027
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
20993
21028
|
_k = _a.idCaptureProps,
|
|
20994
21029
|
idCaptureProps = _k === void 0 ? {} : _k,
|
|
@@ -21150,7 +21185,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
21150
21185
|
maxFps: isCapturingId ? 60 : 30,
|
|
21151
21186
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21152
21187
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21188
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21153
21189
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21190
|
+
enableTamperDetection: enableTamperDetection,
|
|
21154
21191
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21155
21192
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
21156
21193
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -21293,7 +21330,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21293
21330
|
captureSignatureVideo = _j === void 0 ? false : _j,
|
|
21294
21331
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
21295
21332
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21333
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
21296
21334
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
21335
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
21297
21336
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
21298
21337
|
_k = _a.debugMode,
|
|
21299
21338
|
debugMode = _k === void 0 ? false : _k;
|
|
@@ -21414,7 +21453,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21414
21453
|
return /*#__PURE__*/React__default.createElement(IdCaptureWizardWithProviders, _assign({}, idCaptureProps, {
|
|
21415
21454
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21416
21455
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21456
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21417
21457
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21458
|
+
enableTamperDetection: enableTamperDetection,
|
|
21418
21459
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21419
21460
|
shouldLoadIdCaptureModels: shouldLoadIdCaptureModels,
|
|
21420
21461
|
onSuccess: onIdCaptureSuccess
|
|
@@ -21424,14 +21465,18 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21424
21465
|
onComplete: onVideoIdCaptureComplete,
|
|
21425
21466
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21426
21467
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21468
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21427
21469
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21470
|
+
enableTamperDetection: enableTamperDetection,
|
|
21428
21471
|
mediaIntegrityToken: mediaIntegrityToken
|
|
21429
21472
|
}));
|
|
21430
21473
|
case 'FaceLiveness':
|
|
21431
21474
|
return /*#__PURE__*/React__default.createElement(FaceLivenessWizardWithProviders, _assign({}, faceLivenessProps, {
|
|
21432
21475
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21433
21476
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21477
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21434
21478
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21479
|
+
enableTamperDetection: enableTamperDetection,
|
|
21435
21480
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21436
21481
|
onComplete: onFaceLivenessComplete
|
|
21437
21482
|
}));
|
|
@@ -21446,7 +21491,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21446
21491
|
onComplete: onVideoSignatureComplete,
|
|
21447
21492
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21448
21493
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21494
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21449
21495
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21496
|
+
enableTamperDetection: enableTamperDetection,
|
|
21450
21497
|
mediaIntegrityToken: mediaIntegrityToken
|
|
21451
21498
|
}));
|
|
21452
21499
|
case 'AdditionalDocumentCapture':
|
|
@@ -21825,38 +21872,41 @@ var IdValidation = function IdValidation(_a) {
|
|
|
21825
21872
|
onModelError = _a.onModelError,
|
|
21826
21873
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
21827
21874
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21875
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
21876
|
+
_w = _a.enableTamperDetection,
|
|
21877
|
+
enableTamperDetection = _w === void 0 ? false : _w,
|
|
21828
21878
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
21829
21879
|
onDocumentCaptured = _a.onDocumentCaptured,
|
|
21830
21880
|
onDocumentDetected = _a.onDocumentDetected,
|
|
21831
|
-
|
|
21832
|
-
documentDetectionThrottleMs =
|
|
21833
|
-
|
|
21834
|
-
theme =
|
|
21835
|
-
|
|
21836
|
-
assets =
|
|
21837
|
-
|
|
21838
|
-
classNames =
|
|
21839
|
-
|
|
21840
|
-
colors =
|
|
21841
|
-
|
|
21842
|
-
verbiage =
|
|
21843
|
-
|
|
21844
|
-
captureSignature =
|
|
21845
|
-
|
|
21846
|
-
captureSignatureVideo =
|
|
21847
|
-
|
|
21848
|
-
captureAdditionalDocuments =
|
|
21849
|
-
|
|
21850
|
-
geolocationEnabled =
|
|
21851
|
-
|
|
21852
|
-
geolocationRequired =
|
|
21853
|
-
|
|
21854
|
-
debugMode =
|
|
21881
|
+
_x = _a.documentDetectionThrottleMs,
|
|
21882
|
+
documentDetectionThrottleMs = _x === void 0 ? 0 : _x,
|
|
21883
|
+
_y = _a.theme,
|
|
21884
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
21885
|
+
_z = _a.assets,
|
|
21886
|
+
assets = _z === void 0 ? {} : _z,
|
|
21887
|
+
_0 = _a.classNames,
|
|
21888
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
21889
|
+
_1 = _a.colors,
|
|
21890
|
+
colors = _1 === void 0 ? {} : _1,
|
|
21891
|
+
_2 = _a.verbiage,
|
|
21892
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
21893
|
+
_3 = _a.captureSignature,
|
|
21894
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
21895
|
+
_4 = _a.captureSignatureVideo,
|
|
21896
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
21897
|
+
_5 = _a.captureAdditionalDocuments,
|
|
21898
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
21899
|
+
_6 = _a.geolocationEnabled,
|
|
21900
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
21901
|
+
_7 = _a.geolocationRequired,
|
|
21902
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
21903
|
+
_8 = _a.debugMode,
|
|
21904
|
+
debugMode = _8 === void 0 ? false : _8,
|
|
21855
21905
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
21856
|
-
|
|
21857
|
-
enableBarcodeRecapture =
|
|
21858
|
-
|
|
21859
|
-
barcodeParsingMode =
|
|
21906
|
+
_9 = _a.enableBarcodeRecapture,
|
|
21907
|
+
enableBarcodeRecapture = _9 === void 0 ? false : _9,
|
|
21908
|
+
_10 = _a.barcodeParsingMode,
|
|
21909
|
+
barcodeParsingMode = _10 === void 0 ? 'aggressive' : _10,
|
|
21860
21910
|
aggressiveModeDecodeThreshold = _a.aggressiveModeDecodeThreshold,
|
|
21861
21911
|
aggressiveModeDecodeIntervalMs = _a.aggressiveModeDecodeIntervalMs;
|
|
21862
21912
|
useLanguage(lang);
|
|
@@ -21995,6 +22045,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
21995
22045
|
captureSignatureVideo: captureSignatureVideo,
|
|
21996
22046
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21997
22047
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22048
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22049
|
+
enableTamperDetection: enableTamperDetection,
|
|
21998
22050
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21999
22051
|
debugMode: debugMode
|
|
22000
22052
|
})))));
|
|
@@ -22057,19 +22109,22 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
22057
22109
|
onModelError = _a.onModelError,
|
|
22058
22110
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22059
22111
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22112
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22113
|
+
_j = _a.enableTamperDetection,
|
|
22114
|
+
enableTamperDetection = _j === void 0 ? false : _j,
|
|
22060
22115
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22061
|
-
|
|
22062
|
-
theme =
|
|
22116
|
+
_k = _a.theme,
|
|
22117
|
+
theme = _k === void 0 ? 'default' : _k,
|
|
22063
22118
|
assets = _a.assets,
|
|
22064
22119
|
classNames = _a.classNames,
|
|
22065
22120
|
colors = _a.colors,
|
|
22066
22121
|
verbiage = _a.verbiage,
|
|
22067
|
-
|
|
22068
|
-
geolocationEnabled =
|
|
22069
|
-
|
|
22070
|
-
geolocationRequired =
|
|
22071
|
-
|
|
22072
|
-
debugMode =
|
|
22122
|
+
_l = _a.geolocationEnabled,
|
|
22123
|
+
geolocationEnabled = _l === void 0 ? true : _l,
|
|
22124
|
+
_m = _a.geolocationRequired,
|
|
22125
|
+
geolocationRequired = _m === void 0 ? false : _m,
|
|
22126
|
+
_o = _a.debugMode,
|
|
22127
|
+
debugMode = _o === void 0 ? false : _o;
|
|
22073
22128
|
useLanguage(lang);
|
|
22074
22129
|
useDebugLogging(debugMode);
|
|
22075
22130
|
var faceLivenessProps = useMemo(function () {
|
|
@@ -22142,6 +22197,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
22142
22197
|
faceLivenessProps: faceLivenessProps,
|
|
22143
22198
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22144
22199
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22200
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22201
|
+
enableTamperDetection: enableTamperDetection,
|
|
22145
22202
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22146
22203
|
debugMode: debugMode
|
|
22147
22204
|
})))));
|
|
@@ -22247,29 +22304,32 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
22247
22304
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
22248
22305
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22249
22306
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22307
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22308
|
+
_y = _a.enableTamperDetection,
|
|
22309
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
22250
22310
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22251
|
-
|
|
22252
|
-
captureSignature =
|
|
22253
|
-
|
|
22254
|
-
captureSignatureVideo =
|
|
22255
|
-
|
|
22256
|
-
captureAdditionalDocuments =
|
|
22257
|
-
|
|
22258
|
-
theme =
|
|
22259
|
-
|
|
22260
|
-
assets =
|
|
22261
|
-
|
|
22262
|
-
classNames =
|
|
22263
|
-
|
|
22264
|
-
colors =
|
|
22265
|
-
|
|
22266
|
-
verbiage =
|
|
22267
|
-
|
|
22268
|
-
geolocationEnabled =
|
|
22269
|
-
|
|
22270
|
-
geolocationRequired =
|
|
22271
|
-
|
|
22272
|
-
debugMode =
|
|
22311
|
+
_z = _a.captureSignature,
|
|
22312
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
22313
|
+
_0 = _a.captureSignatureVideo,
|
|
22314
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
22315
|
+
_1 = _a.captureAdditionalDocuments,
|
|
22316
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
22317
|
+
_2 = _a.theme,
|
|
22318
|
+
theme = _2 === void 0 ? 'default' : _2,
|
|
22319
|
+
_3 = _a.assets,
|
|
22320
|
+
assets = _3 === void 0 ? {} : _3,
|
|
22321
|
+
_4 = _a.classNames,
|
|
22322
|
+
classNames = _4 === void 0 ? {} : _4,
|
|
22323
|
+
_5 = _a.colors,
|
|
22324
|
+
colors = _5 === void 0 ? {} : _5,
|
|
22325
|
+
_6 = _a.verbiage,
|
|
22326
|
+
verbiage = _6 === void 0 ? {} : _6,
|
|
22327
|
+
_7 = _a.geolocationEnabled,
|
|
22328
|
+
geolocationEnabled = _7 === void 0 ? true : _7,
|
|
22329
|
+
_8 = _a.geolocationRequired,
|
|
22330
|
+
geolocationRequired = _8 === void 0 ? false : _8,
|
|
22331
|
+
_9 = _a.debugMode,
|
|
22332
|
+
debugMode = _9 === void 0 ? false : _9;
|
|
22273
22333
|
useLanguage(lang);
|
|
22274
22334
|
useDebugLogging(debugMode);
|
|
22275
22335
|
var idCaptureProps = useMemo(function () {
|
|
@@ -22425,6 +22485,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
22425
22485
|
captureSignatureVideo: captureSignatureVideo,
|
|
22426
22486
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22427
22487
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22488
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22489
|
+
enableTamperDetection: enableTamperDetection,
|
|
22428
22490
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22429
22491
|
debugMode: debugMode
|
|
22430
22492
|
})))));
|
|
@@ -22533,32 +22595,35 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
22533
22595
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
22534
22596
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22535
22597
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22598
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22599
|
+
_y = _a.enableTamperDetection,
|
|
22600
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
22536
22601
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22537
|
-
|
|
22538
|
-
captureSignature =
|
|
22539
|
-
|
|
22540
|
-
captureSignatureVideo =
|
|
22541
|
-
|
|
22542
|
-
captureAdditionalDocuments =
|
|
22543
|
-
|
|
22544
|
-
captureVideoId =
|
|
22602
|
+
_z = _a.captureSignature,
|
|
22603
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
22604
|
+
_0 = _a.captureSignatureVideo,
|
|
22605
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
22606
|
+
_1 = _a.captureAdditionalDocuments,
|
|
22607
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
22608
|
+
_2 = _a.captureVideoId,
|
|
22609
|
+
captureVideoId = _2 === void 0 ? false : _2,
|
|
22545
22610
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
22546
|
-
|
|
22547
|
-
theme =
|
|
22548
|
-
|
|
22549
|
-
assets =
|
|
22550
|
-
|
|
22551
|
-
classNames =
|
|
22552
|
-
|
|
22553
|
-
colors =
|
|
22554
|
-
|
|
22555
|
-
verbiage =
|
|
22556
|
-
|
|
22557
|
-
geolocationEnabled =
|
|
22558
|
-
|
|
22559
|
-
geolocationRequired =
|
|
22560
|
-
|
|
22561
|
-
debugMode =
|
|
22611
|
+
_3 = _a.theme,
|
|
22612
|
+
theme = _3 === void 0 ? 'default' : _3,
|
|
22613
|
+
_4 = _a.assets,
|
|
22614
|
+
assets = _4 === void 0 ? {} : _4,
|
|
22615
|
+
_5 = _a.classNames,
|
|
22616
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
22617
|
+
_6 = _a.colors,
|
|
22618
|
+
colors = _6 === void 0 ? {} : _6,
|
|
22619
|
+
_7 = _a.verbiage,
|
|
22620
|
+
verbiage = _7 === void 0 ? {} : _7,
|
|
22621
|
+
_8 = _a.geolocationEnabled,
|
|
22622
|
+
geolocationEnabled = _8 === void 0 ? true : _8,
|
|
22623
|
+
_9 = _a.geolocationRequired,
|
|
22624
|
+
geolocationRequired = _9 === void 0 ? false : _9,
|
|
22625
|
+
_10 = _a.debugMode,
|
|
22626
|
+
debugMode = _10 === void 0 ? false : _10;
|
|
22562
22627
|
useLanguage(lang);
|
|
22563
22628
|
useDebugLogging(debugMode);
|
|
22564
22629
|
var idCaptureProps = useMemo(function () {
|
|
@@ -22733,6 +22798,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
22733
22798
|
captureSignatureVideo: captureSignatureVideo,
|
|
22734
22799
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22735
22800
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22801
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22802
|
+
enableTamperDetection: enableTamperDetection,
|
|
22736
22803
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22737
22804
|
debugMode: debugMode
|
|
22738
22805
|
})))));
|
|
@@ -23249,13 +23316,16 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
23249
23316
|
onModelError = _a.onModelError,
|
|
23250
23317
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23251
23318
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
23319
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
23320
|
+
_h = _a.enableTamperDetection,
|
|
23321
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
23252
23322
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23253
|
-
|
|
23254
|
-
geolocationEnabled =
|
|
23255
|
-
|
|
23256
|
-
geolocationRequired =
|
|
23257
|
-
|
|
23258
|
-
debugMode =
|
|
23323
|
+
_j = _a.geolocationEnabled,
|
|
23324
|
+
geolocationEnabled = _j === void 0 ? true : _j,
|
|
23325
|
+
_k = _a.geolocationRequired,
|
|
23326
|
+
geolocationRequired = _k === void 0 ? false : _k,
|
|
23327
|
+
_l = _a.debugMode,
|
|
23328
|
+
debugMode = _l === void 0 ? false : _l;
|
|
23259
23329
|
useLanguage(lang);
|
|
23260
23330
|
useDebugLogging(debugMode);
|
|
23261
23331
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -23295,6 +23365,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
23295
23365
|
preferFrontFacingCamera: true,
|
|
23296
23366
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
23297
23367
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
23368
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
23369
|
+
enableTamperDetection: enableTamperDetection,
|
|
23298
23370
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
23299
23371
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
23300
23372
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -23829,18 +23901,21 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
23829
23901
|
onModelError = _a.onModelError,
|
|
23830
23902
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23831
23903
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
23904
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
23905
|
+
_g = _a.enableTamperDetection,
|
|
23906
|
+
enableTamperDetection = _g === void 0 ? false : _g,
|
|
23832
23907
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23833
|
-
|
|
23834
|
-
theme =
|
|
23908
|
+
_h = _a.theme,
|
|
23909
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
23835
23910
|
assets = _a.assets,
|
|
23836
23911
|
classNames = _a.classNames,
|
|
23837
23912
|
colors = _a.colors,
|
|
23838
23913
|
verbiage = _a.verbiage,
|
|
23839
23914
|
geolocationEnabled = _a.geolocationEnabled,
|
|
23840
|
-
|
|
23841
|
-
geolocationRequired =
|
|
23842
|
-
|
|
23843
|
-
debugMode =
|
|
23915
|
+
_j = _a.geolocationRequired,
|
|
23916
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
23917
|
+
_k = _a.debugMode,
|
|
23918
|
+
debugMode = _k === void 0 ? false : _k;
|
|
23844
23919
|
useLanguage(lang);
|
|
23845
23920
|
useDebugLogging(debugMode);
|
|
23846
23921
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -23879,6 +23954,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
23879
23954
|
preferFrontFacingCamera: true,
|
|
23880
23955
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
23881
23956
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
23957
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
23958
|
+
enableTamperDetection: enableTamperDetection,
|
|
23882
23959
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
23883
23960
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
23884
23961
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -23941,52 +24018,55 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
23941
24018
|
onModelError = _a.onModelError,
|
|
23942
24019
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23943
24020
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24021
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24022
|
+
_c = _a.enableTamperDetection,
|
|
24023
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
23944
24024
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23945
24025
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
23946
|
-
|
|
23947
|
-
loadingOverlayMode =
|
|
24026
|
+
_d = _a.loadingOverlayMode,
|
|
24027
|
+
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
23948
24028
|
customOverlayContent = _a.customOverlayContent,
|
|
23949
|
-
|
|
23950
|
-
skipSuccessScreen =
|
|
23951
|
-
|
|
23952
|
-
captureAudio =
|
|
24029
|
+
_e = _a.skipSuccessScreen,
|
|
24030
|
+
skipSuccessScreen = _e === void 0 ? false : _e,
|
|
24031
|
+
_f = _a.captureAudio,
|
|
24032
|
+
captureAudio = _f === void 0 ? false : _f,
|
|
23953
24033
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
23954
|
-
|
|
23955
|
-
minSignaturePadPoints =
|
|
23956
|
-
|
|
23957
|
-
headTrackingDisabled =
|
|
23958
|
-
|
|
23959
|
-
headTrackingBoundaryPercentage =
|
|
23960
|
-
|
|
23961
|
-
headTrackingBoundaryType =
|
|
23962
|
-
|
|
23963
|
-
modelLoadTimeoutMs =
|
|
23964
|
-
|
|
23965
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
23966
|
-
|
|
23967
|
-
restartVideoOnSignaturePadCleared =
|
|
24034
|
+
_g = _a.minSignaturePadPoints,
|
|
24035
|
+
minSignaturePadPoints = _g === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _g,
|
|
24036
|
+
_h = _a.headTrackingDisabled,
|
|
24037
|
+
headTrackingDisabled = _h === void 0 ? false : _h,
|
|
24038
|
+
_j = _a.headTrackingBoundaryPercentage,
|
|
24039
|
+
headTrackingBoundaryPercentage = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _j,
|
|
24040
|
+
_k = _a.headTrackingBoundaryType,
|
|
24041
|
+
headTrackingBoundaryType = _k === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _k,
|
|
24042
|
+
_l = _a.modelLoadTimeoutMs,
|
|
24043
|
+
modelLoadTimeoutMs = _l === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _l,
|
|
24044
|
+
_m = _a.allowSignatureAfterLivenessCheckFailure,
|
|
24045
|
+
allowSignatureAfterLivenessCheckFailure = _m === void 0 ? false : _m,
|
|
24046
|
+
_o = _a.restartVideoOnSignaturePadCleared,
|
|
24047
|
+
restartVideoOnSignaturePadCleared = _o === void 0 ? true : _o,
|
|
23968
24048
|
faceLivenessProps = _a.faceLivenessProps,
|
|
23969
|
-
|
|
23970
|
-
skipLivenessValidation =
|
|
23971
|
-
|
|
23972
|
-
allowManualSelfieCaptureOnLoadingError =
|
|
24049
|
+
_p = _a.skipLivenessValidation,
|
|
24050
|
+
skipLivenessValidation = _p === void 0 ? false : _p,
|
|
24051
|
+
_q = _a.allowManualSelfieCaptureOnLoadingError,
|
|
24052
|
+
allowManualSelfieCaptureOnLoadingError = _q === void 0 ? false : _q,
|
|
23973
24053
|
guidesComponent = _a.guidesComponent,
|
|
23974
|
-
|
|
23975
|
-
showFaceGuideThenSignaturePad =
|
|
24054
|
+
_r = _a.showFaceGuideThenSignaturePad,
|
|
24055
|
+
showFaceGuideThenSignaturePad = _r === void 0 ? false : _r,
|
|
23976
24056
|
minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
|
|
23977
24057
|
minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
|
|
23978
24058
|
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
23979
|
-
|
|
23980
|
-
theme =
|
|
24059
|
+
_s = _a.theme,
|
|
24060
|
+
theme = _s === void 0 ? 'default' : _s,
|
|
23981
24061
|
classNames = _a.classNames,
|
|
23982
24062
|
colors = _a.colors,
|
|
23983
24063
|
verbiage = _a.verbiage,
|
|
23984
24064
|
geolocationEnabled = _a.geolocationEnabled,
|
|
23985
24065
|
geolocationRequired = _a.geolocationRequired,
|
|
23986
|
-
|
|
23987
|
-
debugMode =
|
|
23988
|
-
|
|
23989
|
-
debugShowSamplePoints =
|
|
24066
|
+
_t = _a.debugMode,
|
|
24067
|
+
debugMode = _t === void 0 ? false : _t,
|
|
24068
|
+
_u = _a.debugShowSamplePoints,
|
|
24069
|
+
debugShowSamplePoints = _u === void 0 ? false : _u;
|
|
23990
24070
|
useLanguage(lang);
|
|
23991
24071
|
useDebugLogging(debugMode);
|
|
23992
24072
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -24025,6 +24105,8 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
24025
24105
|
}, []),
|
|
24026
24106
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24027
24107
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24108
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24109
|
+
enableTamperDetection: enableTamperDetection,
|
|
24028
24110
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24029
24111
|
videoSignatureCaptureProps: useMemo(function () {
|
|
24030
24112
|
return {
|
|
@@ -24121,75 +24203,78 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
24121
24203
|
onUserCancel = _a.onUserCancel,
|
|
24122
24204
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24123
24205
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24206
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24207
|
+
_c = _a.enableTamperDetection,
|
|
24208
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
24124
24209
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24125
24210
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
24126
24211
|
idCaptureProps = _a.idCaptureProps,
|
|
24127
24212
|
faceLivenessProps = _a.faceLivenessProps,
|
|
24128
|
-
|
|
24129
|
-
idCaptureModelsEnabled =
|
|
24130
|
-
|
|
24131
|
-
videoIdCaptureThresholds =
|
|
24213
|
+
_d = _a.idCaptureModelsEnabled,
|
|
24214
|
+
idCaptureModelsEnabled = _d === void 0 ? true : _d,
|
|
24215
|
+
_e = _a.videoIdCaptureThresholds,
|
|
24216
|
+
videoIdCaptureThresholds = _e === void 0 ? defaultVideoIdCaptureThresholds : _e,
|
|
24132
24217
|
readTextPrompt = _a.readTextPrompt,
|
|
24133
|
-
|
|
24134
|
-
readTextTimeoutDurationMs =
|
|
24135
|
-
|
|
24136
|
-
readTextMinReadingMs =
|
|
24137
|
-
|
|
24138
|
-
skipSuccessScreen =
|
|
24139
|
-
|
|
24140
|
-
skipIdCapture =
|
|
24141
|
-
|
|
24142
|
-
skipShowIdCardBack =
|
|
24143
|
-
|
|
24144
|
-
idCaptureLoadingOverlayMode =
|
|
24218
|
+
_f = _a.readTextTimeoutDurationMs,
|
|
24219
|
+
readTextTimeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
24220
|
+
_g = _a.readTextMinReadingMs,
|
|
24221
|
+
readTextMinReadingMs = _g === void 0 ? 10000 : _g,
|
|
24222
|
+
_h = _a.skipSuccessScreen,
|
|
24223
|
+
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
24224
|
+
_j = _a.skipIdCapture,
|
|
24225
|
+
skipIdCapture = _j === void 0 ? false : _j,
|
|
24226
|
+
_k = _a.skipShowIdCardBack,
|
|
24227
|
+
skipShowIdCardBack = _k === void 0 ? false : _k,
|
|
24228
|
+
_l = _a.idCaptureLoadingOverlayMode,
|
|
24229
|
+
idCaptureLoadingOverlayMode = _l === void 0 ? 'default' : _l,
|
|
24145
24230
|
customOverlayContent = _a.customOverlayContent,
|
|
24146
24231
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
24147
|
-
|
|
24148
|
-
idCaptureGuideType =
|
|
24149
|
-
|
|
24150
|
-
idCaptureGuideImages =
|
|
24151
|
-
|
|
24152
|
-
idCapturePortraitGuidesOnMobile =
|
|
24153
|
-
|
|
24154
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
24232
|
+
_m = _a.idCaptureGuideType,
|
|
24233
|
+
idCaptureGuideType = _m === void 0 ? 'fit' : _m,
|
|
24234
|
+
_o = _a.idCaptureGuideImages,
|
|
24235
|
+
idCaptureGuideImages = _o === void 0 ? defaultIdCaptureGuideImages : _o,
|
|
24236
|
+
_p = _a.idCapturePortraitGuidesOnMobile,
|
|
24237
|
+
idCapturePortraitGuidesOnMobile = _p === void 0 ? true : _p,
|
|
24238
|
+
_q = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
24239
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _q === void 0 ? true : _q,
|
|
24155
24240
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
24156
24241
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
24157
|
-
|
|
24158
|
-
idDocumentType =
|
|
24159
|
-
|
|
24160
|
-
faceLivenessLoadingOverlayMode =
|
|
24161
|
-
|
|
24162
|
-
disableFaceDetectionWhileAudioCapture =
|
|
24163
|
-
|
|
24164
|
-
disableFaceDetectionWhileAudioCaptureMsDelay =
|
|
24165
|
-
|
|
24166
|
-
silentFallback =
|
|
24167
|
-
|
|
24168
|
-
mergeAVStreams =
|
|
24169
|
-
|
|
24170
|
-
matchOnly =
|
|
24171
|
-
|
|
24172
|
-
theme =
|
|
24173
|
-
|
|
24174
|
-
assets =
|
|
24175
|
-
|
|
24176
|
-
classNames =
|
|
24177
|
-
|
|
24178
|
-
colors =
|
|
24179
|
-
|
|
24180
|
-
verbiage =
|
|
24181
|
-
|
|
24182
|
-
captureSignature =
|
|
24183
|
-
|
|
24184
|
-
captureSignatureVideo =
|
|
24185
|
-
|
|
24186
|
-
captureAdditionalDocuments =
|
|
24187
|
-
|
|
24188
|
-
geolocationEnabled =
|
|
24189
|
-
|
|
24190
|
-
geolocationRequired =
|
|
24191
|
-
|
|
24192
|
-
debugMode =
|
|
24242
|
+
_r = _a.idDocumentType,
|
|
24243
|
+
idDocumentType = _r === void 0 ? 'idCardOrPassport' : _r,
|
|
24244
|
+
_s = _a.faceLivenessLoadingOverlayMode,
|
|
24245
|
+
faceLivenessLoadingOverlayMode = _s === void 0 ? 'default' : _s,
|
|
24246
|
+
_t = _a.disableFaceDetectionWhileAudioCapture,
|
|
24247
|
+
disableFaceDetectionWhileAudioCapture = _t === void 0 ? false : _t,
|
|
24248
|
+
_u = _a.disableFaceDetectionWhileAudioCaptureMsDelay,
|
|
24249
|
+
disableFaceDetectionWhileAudioCaptureMsDelay = _u === void 0 ? 2000 : _u,
|
|
24250
|
+
_v = _a.silentFallback,
|
|
24251
|
+
silentFallback = _v === void 0 ? false : _v,
|
|
24252
|
+
_w = _a.mergeAVStreams,
|
|
24253
|
+
mergeAVStreams = _w === void 0 ? false : _w,
|
|
24254
|
+
_x = _a.matchOnly,
|
|
24255
|
+
matchOnly = _x === void 0 ? false : _x,
|
|
24256
|
+
_y = _a.theme,
|
|
24257
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
24258
|
+
_z = _a.assets,
|
|
24259
|
+
assets = _z === void 0 ? {} : _z,
|
|
24260
|
+
_0 = _a.classNames,
|
|
24261
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
24262
|
+
_1 = _a.colors,
|
|
24263
|
+
colors = _1 === void 0 ? {} : _1,
|
|
24264
|
+
_2 = _a.verbiage,
|
|
24265
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
24266
|
+
_3 = _a.captureSignature,
|
|
24267
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
24268
|
+
_4 = _a.captureSignatureVideo,
|
|
24269
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
24270
|
+
_5 = _a.captureAdditionalDocuments,
|
|
24271
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
24272
|
+
_6 = _a.geolocationEnabled,
|
|
24273
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
24274
|
+
_7 = _a.geolocationRequired,
|
|
24275
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
24276
|
+
_8 = _a.debugMode,
|
|
24277
|
+
debugMode = _8 === void 0 ? false : _8;
|
|
24193
24278
|
useLanguage(lang);
|
|
24194
24279
|
useDebugLogging(debugMode);
|
|
24195
24280
|
var mergedIdCaptureProps = useMemo(function () {
|
|
@@ -24320,6 +24405,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
24320
24405
|
captureSignatureVideo: captureSignatureVideo,
|
|
24321
24406
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24322
24407
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24408
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24409
|
+
enableTamperDetection: enableTamperDetection,
|
|
24323
24410
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24324
24411
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
24325
24412
|
debugMode: debugMode
|
|
@@ -24383,29 +24470,32 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
24383
24470
|
onModelError = _a.onModelError,
|
|
24384
24471
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24385
24472
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24473
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24474
|
+
_h = _a.enableTamperDetection,
|
|
24475
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
24386
24476
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24387
|
-
|
|
24388
|
-
captureAdditionalDocuments =
|
|
24389
|
-
|
|
24390
|
-
captureSignature =
|
|
24391
|
-
|
|
24392
|
-
captureSignatureVideo =
|
|
24393
|
-
|
|
24394
|
-
theme =
|
|
24395
|
-
|
|
24396
|
-
assets =
|
|
24397
|
-
|
|
24398
|
-
classNames =
|
|
24399
|
-
|
|
24400
|
-
colors =
|
|
24401
|
-
|
|
24402
|
-
verbiage =
|
|
24403
|
-
|
|
24404
|
-
geolocationEnabled =
|
|
24405
|
-
|
|
24406
|
-
geolocationRequired =
|
|
24407
|
-
|
|
24408
|
-
debugMode =
|
|
24477
|
+
_j = _a.captureAdditionalDocuments,
|
|
24478
|
+
captureAdditionalDocuments = _j === void 0 ? [] : _j,
|
|
24479
|
+
_k = _a.captureSignature,
|
|
24480
|
+
captureSignature = _k === void 0 ? false : _k,
|
|
24481
|
+
_l = _a.captureSignatureVideo,
|
|
24482
|
+
captureSignatureVideo = _l === void 0 ? false : _l,
|
|
24483
|
+
_m = _a.theme,
|
|
24484
|
+
theme = _m === void 0 ? 'default' : _m,
|
|
24485
|
+
_o = _a.assets,
|
|
24486
|
+
assets = _o === void 0 ? {} : _o,
|
|
24487
|
+
_p = _a.classNames,
|
|
24488
|
+
classNames = _p === void 0 ? {} : _p,
|
|
24489
|
+
_q = _a.colors,
|
|
24490
|
+
colors = _q === void 0 ? {} : _q,
|
|
24491
|
+
_r = _a.verbiage,
|
|
24492
|
+
verbiage = _r === void 0 ? {} : _r,
|
|
24493
|
+
_s = _a.geolocationEnabled,
|
|
24494
|
+
geolocationEnabled = _s === void 0 ? true : _s,
|
|
24495
|
+
_t = _a.geolocationRequired,
|
|
24496
|
+
geolocationRequired = _t === void 0 ? false : _t,
|
|
24497
|
+
_u = _a.debugMode,
|
|
24498
|
+
debugMode = _u === void 0 ? false : _u;
|
|
24409
24499
|
useLanguage(lang);
|
|
24410
24500
|
useDebugLogging(debugMode);
|
|
24411
24501
|
var faceLivenessProps = useMemo(function () {
|
|
@@ -24514,6 +24604,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
24514
24604
|
captureSignatureVideo: captureSignatureVideo,
|
|
24515
24605
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24516
24606
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24607
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24608
|
+
enableTamperDetection: enableTamperDetection,
|
|
24517
24609
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24518
24610
|
debugMode: debugMode
|
|
24519
24611
|
})))));
|
|
@@ -24545,24 +24637,27 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
24545
24637
|
onUserCancel = _a.onUserCancel,
|
|
24546
24638
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24547
24639
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24640
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24641
|
+
_c = _a.enableTamperDetection,
|
|
24642
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
24548
24643
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24549
|
-
|
|
24550
|
-
documents =
|
|
24644
|
+
_d = _a.documents,
|
|
24645
|
+
documents = _d === void 0 ? [] : _d,
|
|
24551
24646
|
aspectRatio = _a.aspectRatio,
|
|
24552
24647
|
cameraFeedMode = _a.cameraFeedMode,
|
|
24553
24648
|
instructions = _a.instructions,
|
|
24554
|
-
|
|
24555
|
-
theme =
|
|
24556
|
-
|
|
24557
|
-
classNames =
|
|
24558
|
-
|
|
24559
|
-
verbiage =
|
|
24560
|
-
|
|
24561
|
-
geolocationEnabled =
|
|
24562
|
-
|
|
24563
|
-
geolocationRequired =
|
|
24564
|
-
|
|
24565
|
-
debugMode =
|
|
24649
|
+
_e = _a.theme,
|
|
24650
|
+
theme = _e === void 0 ? 'default' : _e,
|
|
24651
|
+
_f = _a.classNames,
|
|
24652
|
+
classNames = _f === void 0 ? {} : _f,
|
|
24653
|
+
_g = _a.verbiage,
|
|
24654
|
+
verbiage = _g === void 0 ? {} : _g,
|
|
24655
|
+
_h = _a.geolocationEnabled,
|
|
24656
|
+
geolocationEnabled = _h === void 0 ? true : _h,
|
|
24657
|
+
_j = _a.geolocationRequired,
|
|
24658
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
24659
|
+
_k = _a.debugMode,
|
|
24660
|
+
debugMode = _k === void 0 ? false : _k;
|
|
24566
24661
|
useLanguage(lang);
|
|
24567
24662
|
useDebugLogging(debugMode);
|
|
24568
24663
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -24592,6 +24687,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
24592
24687
|
preferIphoneContinuityCamera: true,
|
|
24593
24688
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24594
24689
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24690
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24691
|
+
enableTamperDetection: enableTamperDetection,
|
|
24595
24692
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24596
24693
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
24597
24694
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|