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
|
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
235
235
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
var webSdkVersion = '2.3.
|
|
238
|
+
var webSdkVersion = '2.3.199';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -532,9 +532,9 @@ var templateObject_1$T, templateObject_2$O;
|
|
|
532
532
|
|
|
533
533
|
var wavesAnimation = styled.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"])));
|
|
534
534
|
var progressBarAnimation = styled.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"])));
|
|
535
|
-
var dualRingSpinnerAnimation = styled.keyframes(templateObject_3$
|
|
535
|
+
var dualRingSpinnerAnimation = styled.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"])));
|
|
536
536
|
styled.keyframes(templateObject_4$t || (templateObject_4$t = __makeTemplateObject(["\n to {\n stroke-dashoffset: 0;\n }\n"], ["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
537
|
-
var templateObject_1$S, templateObject_2$N, templateObject_3$
|
|
537
|
+
var templateObject_1$S, templateObject_2$N, templateObject_3$A, templateObject_4$t;
|
|
538
538
|
|
|
539
539
|
var OverlayContainer = styled__default.default.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) {
|
|
540
540
|
return props.theme.background ? "".concat(props.theme.background) : "white";
|
|
@@ -547,7 +547,7 @@ var OverlayInner$2 = styled__default.default.div(templateObject_2$M || (template
|
|
|
547
547
|
}, function (props) {
|
|
548
548
|
return props.theme.padding ? "box-sizing: border-box; padding: ".concat(props.theme.padding, ";") : "";
|
|
549
549
|
});
|
|
550
|
-
var OverlayImageContainer = styled__default.default.div(templateObject_3$
|
|
550
|
+
var OverlayImageContainer = styled__default.default.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"])));
|
|
551
551
|
var OverlayImageRow = styled__default.default.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"])));
|
|
552
552
|
var GrayOverlayContainer = styled__default.default(OverlayContainer)(templateObject_5$l || (templateObject_5$l = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
553
553
|
var ButtonsColumn = styled__default.default.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"])));
|
|
@@ -589,7 +589,7 @@ var LoadingOverlayLoadingListItem = styled__default.default.li(templateObject_19
|
|
|
589
589
|
var LoadingOverlayProgressContainer = styled__default.default.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"])));
|
|
590
590
|
var LoadingOverlayCustomLoadingGraphic = styled__default.default.img(templateObject_21$2 || (templateObject_21$2 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
591
591
|
var LoadingOverlayContinueButtonContainer = styled__default.default.div(templateObject_22$2 || (templateObject_22$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
592
|
-
var templateObject_1$R, templateObject_2$M, templateObject_3$
|
|
592
|
+
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;
|
|
593
593
|
|
|
594
594
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
595
595
|
var accessBlockedImageUrl = _a.accessBlockedImageUrl;
|
|
@@ -817,7 +817,7 @@ var NetworkErrorContent = function NetworkErrorContent(_a) {
|
|
|
817
817
|
};
|
|
818
818
|
var ErrorContainer = styled__default.default.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"])));
|
|
819
819
|
var ErrorIcon = styled__default.default.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"])));
|
|
820
|
-
var Heading$b = styled__default.default.h3(templateObject_3$
|
|
820
|
+
var Heading$b = styled__default.default.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"])));
|
|
821
821
|
var Message$1 = styled__default.default.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"])));
|
|
822
822
|
var StatusBadge$1 = styled__default.default.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"])));
|
|
823
823
|
var StatusLabel = styled__default.default.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"])));
|
|
@@ -828,7 +828,7 @@ var DetailsLabel = styled__default.default.span(templateObject_10$3 || (template
|
|
|
828
828
|
var CopyButton = styled__default.default.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"])));
|
|
829
829
|
var CodeBlock = styled__default.default.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"])));
|
|
830
830
|
var RetryContainer = styled__default.default.div(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-top: 24px;\n"], ["\n margin-top: 24px;\n"])));
|
|
831
|
-
var templateObject_1$Q, templateObject_2$L, templateObject_3$
|
|
831
|
+
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;
|
|
832
832
|
|
|
833
833
|
var SessionIdMissingOverlay = function SessionIdMissingOverlay() {
|
|
834
834
|
return /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, null, /*#__PURE__*/React__namespace.default.createElement(OverlayInner$2, {
|
|
@@ -4059,7 +4059,7 @@ var es = {
|
|
|
4059
4059
|
Cancel: 'Cancelar',
|
|
4060
4060
|
'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',
|
|
4061
4061
|
'Camera tampering detected': 'Se ha detectado un intento de manipulación de la cámara',
|
|
4062
|
-
"
|
|
4062
|
+
"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.',
|
|
4063
4063
|
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.',
|
|
4064
4064
|
'Sign here': 'Firma aquí'
|
|
4065
4065
|
};
|
|
@@ -4192,7 +4192,7 @@ var de = {
|
|
|
4192
4192
|
Cancel: 'Abbrechen',
|
|
4193
4193
|
'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.',
|
|
4194
4194
|
'Camera tampering detected': 'Kamera manipuliert',
|
|
4195
|
-
"
|
|
4195
|
+
"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.',
|
|
4196
4196
|
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.',
|
|
4197
4197
|
'Sign here': 'Hier unterschreiben'
|
|
4198
4198
|
};
|
|
@@ -4325,7 +4325,7 @@ var fr = {
|
|
|
4325
4325
|
Cancel: 'Annuler',
|
|
4326
4326
|
'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.",
|
|
4327
4327
|
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
4328
|
-
"
|
|
4328
|
+
"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.",
|
|
4329
4329
|
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.',
|
|
4330
4330
|
'Sign here': 'Signer ici'
|
|
4331
4331
|
};
|
|
@@ -4458,7 +4458,7 @@ var it = {
|
|
|
4458
4458
|
Cancel: 'Annulla',
|
|
4459
4459
|
'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.",
|
|
4460
4460
|
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
4461
|
-
"
|
|
4461
|
+
"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.",
|
|
4462
4462
|
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.',
|
|
4463
4463
|
'Sign here': 'Firma qui'
|
|
4464
4464
|
};
|
|
@@ -4591,7 +4591,7 @@ var ja = {
|
|
|
4591
4591
|
Cancel: 'キャンセル',
|
|
4592
4592
|
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
4593
4593
|
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
4594
|
-
"
|
|
4594
|
+
"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.": 'ブラウザの拡張機能または他のソフトウェアがカメラへのアクセスを妨げています。ブラウザの拡張機能を無効にするか、ブラウザを最新バージョンに更新するか、別のブラウザに切り替えてください。',
|
|
4595
4595
|
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。',
|
|
4596
4596
|
'Sign here': 'ここに署名'
|
|
4597
4597
|
};
|
|
@@ -4724,7 +4724,7 @@ var pt = {
|
|
|
4724
4724
|
Cancel: 'Cancelar',
|
|
4725
4725
|
'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.',
|
|
4726
4726
|
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
4727
|
-
"
|
|
4727
|
+
"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.',
|
|
4728
4728
|
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.',
|
|
4729
4729
|
'Sign here': 'Assinar aqui'
|
|
4730
4730
|
};
|
|
@@ -4857,7 +4857,7 @@ var ru = {
|
|
|
4857
4857
|
Cancel: 'Отменить',
|
|
4858
4858
|
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
4859
4859
|
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
4860
|
-
"
|
|
4860
|
+
"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.": 'Расширение браузера или другое программное обеспечение мешает доступу к камере. Попробуйте отключить расширения браузера, обновить браузер до последней версии или переключиться на другой браузер.',
|
|
4861
4861
|
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.',
|
|
4862
4862
|
'Sign here': 'Подписать здесь'
|
|
4863
4863
|
};
|
|
@@ -4990,7 +4990,7 @@ var zh = {
|
|
|
4990
4990
|
Cancel: '取消',
|
|
4991
4991
|
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
4992
4992
|
'Camera tampering detected': '檢測到相機被篡改',
|
|
4993
|
-
"
|
|
4993
|
+
"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.": '瀏覽器擴充功能或其他軟體正在干擾相機存取。請嘗試停用瀏覽器擴充功能、將瀏覽器更新至最新版本或切換至其他瀏覽器。',
|
|
4994
4994
|
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。',
|
|
4995
4995
|
'Sign here': '在此簽名'
|
|
4996
4996
|
};
|
|
@@ -5102,6 +5102,7 @@ var initialState$6 = {
|
|
|
5102
5102
|
iphoneContinuityCameraAvailable: false,
|
|
5103
5103
|
iphoneContinuityCameraDenied: false,
|
|
5104
5104
|
preferIphoneContinuityCamera: true,
|
|
5105
|
+
enableTamperDetection: false,
|
|
5105
5106
|
cameraTamperingDetected: false,
|
|
5106
5107
|
microphoneReady: false,
|
|
5107
5108
|
microphoneAccessDenied: false
|
|
@@ -5142,14 +5143,14 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5142
5143
|
},
|
|
5143
5144
|
requestCameraAccess: function requestCameraAccess() {
|
|
5144
5145
|
return __awaiter(this, void 0, void 0, function () {
|
|
5145
|
-
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;
|
|
5146
|
+
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;
|
|
5146
5147
|
var _b, _c, _d, _e;
|
|
5147
5148
|
return __generator(this, function (_f) {
|
|
5148
5149
|
switch (_f.label) {
|
|
5149
5150
|
case 0:
|
|
5150
5151
|
debug("".concat(LOG_TAG, " requestCameraAccess"), new Error().stack);
|
|
5151
|
-
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
5152
|
-
if (guardGetUserMedia(mediaIntegrityToken)) {
|
|
5152
|
+
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, enableTamperDetection = _a.enableTamperDetection, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
5153
|
+
if (enableTamperDetection && guardGetUserMedia(mediaIntegrityToken)) {
|
|
5153
5154
|
set({
|
|
5154
5155
|
cameraTamperingDetected: true
|
|
5155
5156
|
});
|
|
@@ -5371,7 +5372,7 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5371
5372
|
switch (_a.label) {
|
|
5372
5373
|
case 0:
|
|
5373
5374
|
get().releaseMicrophoneAccess();
|
|
5374
|
-
if (guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
5375
|
+
if (get().enableTamperDetection && guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
5375
5376
|
set({
|
|
5376
5377
|
cameraTamperingDetected: true
|
|
5377
5378
|
});
|
|
@@ -5451,6 +5452,8 @@ var createCameraStore = function createCameraStore(config) {
|
|
|
5451
5452
|
});
|
|
5452
5453
|
};
|
|
5453
5454
|
var CameraStoreContext = /*#__PURE__*/React.createContext(undefined);
|
|
5455
|
+
/** Text for the exit button shown when `onExitAfterTamperSealPopped` is bound. */
|
|
5456
|
+
var DEFAULT_EXIT_BUTTON_TEXT = 'Exit';
|
|
5454
5457
|
function CameraStoreProvider(_a) {
|
|
5455
5458
|
var _b;
|
|
5456
5459
|
var children = _a.children,
|
|
@@ -5465,14 +5468,17 @@ function CameraStoreProvider(_a) {
|
|
|
5465
5468
|
maxFps = _a.maxFps,
|
|
5466
5469
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
5467
5470
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
5471
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
5468
5472
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
5469
5473
|
_g = _a.requireMicrophoneAccess,
|
|
5470
5474
|
requireMicrophoneAccess = _g === void 0 ? false : _g,
|
|
5475
|
+
_h = _a.enableTamperDetection,
|
|
5476
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
5471
5477
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
5472
|
-
|
|
5473
|
-
classNames =
|
|
5474
|
-
|
|
5475
|
-
verbiage =
|
|
5478
|
+
_j = _a.classNames,
|
|
5479
|
+
classNames = _j === void 0 ? {} : _j,
|
|
5480
|
+
_k = _a.verbiage,
|
|
5481
|
+
verbiage = _k === void 0 ? {} : _k;
|
|
5476
5482
|
var videoRef = React.useRef(null);
|
|
5477
5483
|
var store = React.useRef(undefined);
|
|
5478
5484
|
store.current || (store.current = createCameraStore({
|
|
@@ -5485,10 +5491,12 @@ function CameraStoreProvider(_a) {
|
|
|
5485
5491
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
5486
5492
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
5487
5493
|
requireMicrophoneAccess: requireMicrophoneAccess,
|
|
5494
|
+
enableTamperDetection: enableTamperDetection,
|
|
5488
5495
|
mediaIntegrityToken: mediaIntegrityToken
|
|
5489
5496
|
}));
|
|
5490
5497
|
React.useEffect(function () {
|
|
5491
5498
|
var _a;
|
|
5499
|
+
if (!enableTamperDetection) return;
|
|
5492
5500
|
var result = checkGetUserMediaIntegrity(mediaIntegrityToken);
|
|
5493
5501
|
if (result.tampered) {
|
|
5494
5502
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -5496,9 +5504,9 @@ function CameraStoreProvider(_a) {
|
|
|
5496
5504
|
});
|
|
5497
5505
|
}
|
|
5498
5506
|
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
5499
|
-
var
|
|
5500
|
-
videoWidth =
|
|
5501
|
-
videoHeight =
|
|
5507
|
+
var _l = (_b = videoRef.current) !== null && _b !== void 0 ? _b : {},
|
|
5508
|
+
videoWidth = _l.videoWidth,
|
|
5509
|
+
videoHeight = _l.videoHeight;
|
|
5502
5510
|
React.useEffect(function () {
|
|
5503
5511
|
var _a;
|
|
5504
5512
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -5534,6 +5542,7 @@ function CameraStoreProvider(_a) {
|
|
|
5534
5542
|
value: store.current
|
|
5535
5543
|
}, /*#__PURE__*/React__namespace.default.createElement(CameraTamperSeal, {
|
|
5536
5544
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
5545
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
5537
5546
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
5538
5547
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
5539
5548
|
classNames: classNames.cameraTamperSeal,
|
|
@@ -5543,6 +5552,7 @@ function CameraStoreProvider(_a) {
|
|
|
5543
5552
|
function CameraTamperSeal(_a) {
|
|
5544
5553
|
var children = _a.children,
|
|
5545
5554
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
5555
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
5546
5556
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
5547
5557
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
5548
5558
|
_b = _a.classNames,
|
|
@@ -5555,10 +5565,12 @@ function CameraTamperSeal(_a) {
|
|
|
5555
5565
|
microphoneAccessDenied = _d.microphoneAccessDenied;
|
|
5556
5566
|
var _e = useTranslations(rawVerbiage, {
|
|
5557
5567
|
headingText: 'Camera tampering detected',
|
|
5558
|
-
messageText:
|
|
5568
|
+
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.',
|
|
5569
|
+
exitButtonText: DEFAULT_EXIT_BUTTON_TEXT
|
|
5559
5570
|
}),
|
|
5560
5571
|
headingText = _e.headingText,
|
|
5561
|
-
messageText = _e.messageText
|
|
5572
|
+
messageText = _e.messageText,
|
|
5573
|
+
exitButtonText = _e.exitButtonText;
|
|
5562
5574
|
var onCameraTamperingDetectedRef = React.useRef(onCameraTamperingDetected);
|
|
5563
5575
|
React.useEffect(function () {
|
|
5564
5576
|
onCameraTamperingDetectedRef.current = onCameraTamperingDetected;
|
|
@@ -5592,16 +5604,27 @@ function CameraTamperSeal(_a) {
|
|
|
5592
5604
|
className: classNames.heading
|
|
5593
5605
|
}, headingText), /*#__PURE__*/React__namespace.default.createElement("p", {
|
|
5594
5606
|
className: classNames.message
|
|
5595
|
-
}, messageText)
|
|
5607
|
+
}, messageText), onExitAfterTamperSealPopped && (/*#__PURE__*/React__namespace.default.createElement(StyledExitButton, {
|
|
5608
|
+
type: "button",
|
|
5609
|
+
className: classNames.exitButton,
|
|
5610
|
+
onClick: onExitAfterTamperSealPopped
|
|
5611
|
+
}, exitButtonText))));
|
|
5596
5612
|
}
|
|
5597
5613
|
var StyledOverlayInner$4 = styled__default.default(OverlayInner$2)(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
5598
5614
|
var StyledOverlayHeading = styled__default.default.h3(templateObject_2$J || (templateObject_2$J = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
5615
|
+
var StyledExitButton = styled__default.default.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) {
|
|
5616
|
+
var _a, _b, _c;
|
|
5617
|
+
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';
|
|
5618
|
+
}, function (props) {
|
|
5619
|
+
var _a, _b, _c;
|
|
5620
|
+
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';
|
|
5621
|
+
});
|
|
5599
5622
|
function useCameraStore(selector) {
|
|
5600
5623
|
var store = React.useContext(CameraStoreContext);
|
|
5601
5624
|
if (!store) throw new Error('useCameraStore cannot be used without Provider');
|
|
5602
5625
|
return zustand.useStore(store, selector);
|
|
5603
5626
|
}
|
|
5604
|
-
var templateObject_1$O, templateObject_2$J;
|
|
5627
|
+
var templateObject_1$O, templateObject_2$J, templateObject_3$x;
|
|
5605
5628
|
|
|
5606
5629
|
var DocumentDetectionModelContext = /*#__PURE__*/React.createContext({
|
|
5607
5630
|
startDocumentDetection: function startDocumentDetection() {
|
|
@@ -15094,14 +15117,18 @@ function IdCaptureWizardWithProviders(_a) {
|
|
|
15094
15117
|
var _b, _c, _d, _e, _f, _g;
|
|
15095
15118
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15096
15119
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
15120
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
15097
15121
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
15122
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
15098
15123
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
15099
15124
|
shouldLoadIdCaptureModels = _a.shouldLoadIdCaptureModels,
|
|
15100
|
-
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
15125
|
+
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
15101
15126
|
return /*#__PURE__*/React__namespace.default.createElement(CameraStoreProvider, {
|
|
15102
15127
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
15103
15128
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
15129
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
15104
15130
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
15131
|
+
enableTamperDetection: enableTamperDetection,
|
|
15105
15132
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
15106
15133
|
requestAccessAutomatically: shouldLoadIdCaptureModels,
|
|
15107
15134
|
classNames: (_b = idCaptureProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
@@ -17800,15 +17827,19 @@ function FaceLivenessWizardWithProviders(_a) {
|
|
|
17800
17827
|
var _b, _c;
|
|
17801
17828
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
17802
17829
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
17830
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
17803
17831
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
17832
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
17804
17833
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
17805
|
-
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken"]);
|
|
17834
|
+
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken"]);
|
|
17806
17835
|
return /*#__PURE__*/React__namespace.default.createElement(CameraStoreProvider, {
|
|
17807
17836
|
preferFrontFacingCamera: true,
|
|
17808
17837
|
preferIphoneContinuityCamera: false,
|
|
17809
17838
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
17810
17839
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
17840
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
17811
17841
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
17842
|
+
enableTamperDetection: enableTamperDetection,
|
|
17812
17843
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
17813
17844
|
classNames: (_b = faceLivenessProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
17814
17845
|
verbiage: (_c = faceLivenessProps.verbiage) === null || _c === void 0 ? void 0 : _c.cameraStoreProvider
|
|
@@ -19911,7 +19942,9 @@ function VideoSignatureWizardWithProvidersComponent(props, ref) {
|
|
|
19911
19942
|
maxFps: 30,
|
|
19912
19943
|
onCameraAccessDenied: props.onCameraAccessDenied,
|
|
19913
19944
|
onCameraTamperingDetected: props.onCameraTamperingDetected,
|
|
19945
|
+
onExitAfterTamperSealPopped: props.onExitAfterTamperSealPopped,
|
|
19914
19946
|
onMicrophoneAccessDenied: props.onMicrophoneAccessDenied,
|
|
19947
|
+
enableTamperDetection: props.enableTamperDetection,
|
|
19915
19948
|
mediaIntegrityToken: props.mediaIntegrityToken,
|
|
19916
19949
|
classNames: (_a = props.classNames) === null || _a === void 0 ? void 0 : _a.cameraStoreProvider,
|
|
19917
19950
|
verbiage: (_b = props.verbiage) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider
|
|
@@ -21019,7 +21052,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
21019
21052
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
21020
21053
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
21021
21054
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21055
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
21022
21056
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
21057
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
21023
21058
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
21024
21059
|
_k = _a.idCaptureProps,
|
|
21025
21060
|
idCaptureProps = _k === void 0 ? {} : _k,
|
|
@@ -21181,7 +21216,9 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
21181
21216
|
maxFps: isCapturingId ? 60 : 30,
|
|
21182
21217
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21183
21218
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21219
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21184
21220
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21221
|
+
enableTamperDetection: enableTamperDetection,
|
|
21185
21222
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21186
21223
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
21187
21224
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -21324,7 +21361,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21324
21361
|
captureSignatureVideo = _j === void 0 ? false : _j,
|
|
21325
21362
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
21326
21363
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21364
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
21327
21365
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
21366
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
21328
21367
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
21329
21368
|
_k = _a.debugMode,
|
|
21330
21369
|
debugMode = _k === void 0 ? false : _k;
|
|
@@ -21445,7 +21484,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21445
21484
|
return /*#__PURE__*/React__namespace.default.createElement(IdCaptureWizardWithProviders, _assign({}, idCaptureProps, {
|
|
21446
21485
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21447
21486
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21487
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21448
21488
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21489
|
+
enableTamperDetection: enableTamperDetection,
|
|
21449
21490
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21450
21491
|
shouldLoadIdCaptureModels: shouldLoadIdCaptureModels,
|
|
21451
21492
|
onSuccess: onIdCaptureSuccess
|
|
@@ -21455,14 +21496,18 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21455
21496
|
onComplete: onVideoIdCaptureComplete,
|
|
21456
21497
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21457
21498
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21499
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21458
21500
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21501
|
+
enableTamperDetection: enableTamperDetection,
|
|
21459
21502
|
mediaIntegrityToken: mediaIntegrityToken
|
|
21460
21503
|
}));
|
|
21461
21504
|
case 'FaceLiveness':
|
|
21462
21505
|
return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizardWithProviders, _assign({}, faceLivenessProps, {
|
|
21463
21506
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21464
21507
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21508
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21465
21509
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21510
|
+
enableTamperDetection: enableTamperDetection,
|
|
21466
21511
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
21467
21512
|
onComplete: onFaceLivenessComplete
|
|
21468
21513
|
}));
|
|
@@ -21477,7 +21522,9 @@ function CompositeWizardComponent(_a, ref) {
|
|
|
21477
21522
|
onComplete: onVideoSignatureComplete,
|
|
21478
21523
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
21479
21524
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
21525
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
21480
21526
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
21527
|
+
enableTamperDetection: enableTamperDetection,
|
|
21481
21528
|
mediaIntegrityToken: mediaIntegrityToken
|
|
21482
21529
|
}));
|
|
21483
21530
|
case 'AdditionalDocumentCapture':
|
|
@@ -21856,38 +21903,41 @@ var IdValidation = function IdValidation(_a) {
|
|
|
21856
21903
|
onModelError = _a.onModelError,
|
|
21857
21904
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
21858
21905
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
21906
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
21907
|
+
_w = _a.enableTamperDetection,
|
|
21908
|
+
enableTamperDetection = _w === void 0 ? false : _w,
|
|
21859
21909
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
21860
21910
|
onDocumentCaptured = _a.onDocumentCaptured,
|
|
21861
21911
|
onDocumentDetected = _a.onDocumentDetected,
|
|
21862
|
-
|
|
21863
|
-
documentDetectionThrottleMs =
|
|
21864
|
-
|
|
21865
|
-
theme =
|
|
21866
|
-
|
|
21867
|
-
assets =
|
|
21868
|
-
|
|
21869
|
-
classNames =
|
|
21870
|
-
|
|
21871
|
-
colors =
|
|
21872
|
-
|
|
21873
|
-
verbiage =
|
|
21874
|
-
|
|
21875
|
-
captureSignature =
|
|
21876
|
-
|
|
21877
|
-
captureSignatureVideo =
|
|
21878
|
-
|
|
21879
|
-
captureAdditionalDocuments =
|
|
21880
|
-
|
|
21881
|
-
geolocationEnabled =
|
|
21882
|
-
|
|
21883
|
-
geolocationRequired =
|
|
21884
|
-
|
|
21885
|
-
debugMode =
|
|
21912
|
+
_x = _a.documentDetectionThrottleMs,
|
|
21913
|
+
documentDetectionThrottleMs = _x === void 0 ? 0 : _x,
|
|
21914
|
+
_y = _a.theme,
|
|
21915
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
21916
|
+
_z = _a.assets,
|
|
21917
|
+
assets = _z === void 0 ? {} : _z,
|
|
21918
|
+
_0 = _a.classNames,
|
|
21919
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
21920
|
+
_1 = _a.colors,
|
|
21921
|
+
colors = _1 === void 0 ? {} : _1,
|
|
21922
|
+
_2 = _a.verbiage,
|
|
21923
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
21924
|
+
_3 = _a.captureSignature,
|
|
21925
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
21926
|
+
_4 = _a.captureSignatureVideo,
|
|
21927
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
21928
|
+
_5 = _a.captureAdditionalDocuments,
|
|
21929
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
21930
|
+
_6 = _a.geolocationEnabled,
|
|
21931
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
21932
|
+
_7 = _a.geolocationRequired,
|
|
21933
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
21934
|
+
_8 = _a.debugMode,
|
|
21935
|
+
debugMode = _8 === void 0 ? false : _8,
|
|
21886
21936
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
21887
|
-
|
|
21888
|
-
enableBarcodeRecapture =
|
|
21889
|
-
|
|
21890
|
-
barcodeParsingMode =
|
|
21937
|
+
_9 = _a.enableBarcodeRecapture,
|
|
21938
|
+
enableBarcodeRecapture = _9 === void 0 ? false : _9,
|
|
21939
|
+
_10 = _a.barcodeParsingMode,
|
|
21940
|
+
barcodeParsingMode = _10 === void 0 ? 'aggressive' : _10,
|
|
21891
21941
|
aggressiveModeDecodeThreshold = _a.aggressiveModeDecodeThreshold,
|
|
21892
21942
|
aggressiveModeDecodeIntervalMs = _a.aggressiveModeDecodeIntervalMs;
|
|
21893
21943
|
useLanguage(lang);
|
|
@@ -22026,6 +22076,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
22026
22076
|
captureSignatureVideo: captureSignatureVideo,
|
|
22027
22077
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22028
22078
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22079
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22080
|
+
enableTamperDetection: enableTamperDetection,
|
|
22029
22081
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22030
22082
|
debugMode: debugMode
|
|
22031
22083
|
})))));
|
|
@@ -22088,19 +22140,22 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
22088
22140
|
onModelError = _a.onModelError,
|
|
22089
22141
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22090
22142
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22143
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22144
|
+
_j = _a.enableTamperDetection,
|
|
22145
|
+
enableTamperDetection = _j === void 0 ? false : _j,
|
|
22091
22146
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22092
|
-
|
|
22093
|
-
theme =
|
|
22147
|
+
_k = _a.theme,
|
|
22148
|
+
theme = _k === void 0 ? 'default' : _k,
|
|
22094
22149
|
assets = _a.assets,
|
|
22095
22150
|
classNames = _a.classNames,
|
|
22096
22151
|
colors = _a.colors,
|
|
22097
22152
|
verbiage = _a.verbiage,
|
|
22098
|
-
|
|
22099
|
-
geolocationEnabled =
|
|
22100
|
-
|
|
22101
|
-
geolocationRequired =
|
|
22102
|
-
|
|
22103
|
-
debugMode =
|
|
22153
|
+
_l = _a.geolocationEnabled,
|
|
22154
|
+
geolocationEnabled = _l === void 0 ? true : _l,
|
|
22155
|
+
_m = _a.geolocationRequired,
|
|
22156
|
+
geolocationRequired = _m === void 0 ? false : _m,
|
|
22157
|
+
_o = _a.debugMode,
|
|
22158
|
+
debugMode = _o === void 0 ? false : _o;
|
|
22104
22159
|
useLanguage(lang);
|
|
22105
22160
|
useDebugLogging(debugMode);
|
|
22106
22161
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -22173,6 +22228,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
22173
22228
|
faceLivenessProps: faceLivenessProps,
|
|
22174
22229
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22175
22230
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22231
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22232
|
+
enableTamperDetection: enableTamperDetection,
|
|
22176
22233
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22177
22234
|
debugMode: debugMode
|
|
22178
22235
|
})))));
|
|
@@ -22278,29 +22335,32 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
22278
22335
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
22279
22336
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22280
22337
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22338
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22339
|
+
_y = _a.enableTamperDetection,
|
|
22340
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
22281
22341
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22282
|
-
|
|
22283
|
-
captureSignature =
|
|
22284
|
-
|
|
22285
|
-
captureSignatureVideo =
|
|
22286
|
-
|
|
22287
|
-
captureAdditionalDocuments =
|
|
22288
|
-
|
|
22289
|
-
theme =
|
|
22290
|
-
|
|
22291
|
-
assets =
|
|
22292
|
-
|
|
22293
|
-
classNames =
|
|
22294
|
-
|
|
22295
|
-
colors =
|
|
22296
|
-
|
|
22297
|
-
verbiage =
|
|
22298
|
-
|
|
22299
|
-
geolocationEnabled =
|
|
22300
|
-
|
|
22301
|
-
geolocationRequired =
|
|
22302
|
-
|
|
22303
|
-
debugMode =
|
|
22342
|
+
_z = _a.captureSignature,
|
|
22343
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
22344
|
+
_0 = _a.captureSignatureVideo,
|
|
22345
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
22346
|
+
_1 = _a.captureAdditionalDocuments,
|
|
22347
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
22348
|
+
_2 = _a.theme,
|
|
22349
|
+
theme = _2 === void 0 ? 'default' : _2,
|
|
22350
|
+
_3 = _a.assets,
|
|
22351
|
+
assets = _3 === void 0 ? {} : _3,
|
|
22352
|
+
_4 = _a.classNames,
|
|
22353
|
+
classNames = _4 === void 0 ? {} : _4,
|
|
22354
|
+
_5 = _a.colors,
|
|
22355
|
+
colors = _5 === void 0 ? {} : _5,
|
|
22356
|
+
_6 = _a.verbiage,
|
|
22357
|
+
verbiage = _6 === void 0 ? {} : _6,
|
|
22358
|
+
_7 = _a.geolocationEnabled,
|
|
22359
|
+
geolocationEnabled = _7 === void 0 ? true : _7,
|
|
22360
|
+
_8 = _a.geolocationRequired,
|
|
22361
|
+
geolocationRequired = _8 === void 0 ? false : _8,
|
|
22362
|
+
_9 = _a.debugMode,
|
|
22363
|
+
debugMode = _9 === void 0 ? false : _9;
|
|
22304
22364
|
useLanguage(lang);
|
|
22305
22365
|
useDebugLogging(debugMode);
|
|
22306
22366
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -22456,6 +22516,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
22456
22516
|
captureSignatureVideo: captureSignatureVideo,
|
|
22457
22517
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22458
22518
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22519
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22520
|
+
enableTamperDetection: enableTamperDetection,
|
|
22459
22521
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22460
22522
|
debugMode: debugMode
|
|
22461
22523
|
})))));
|
|
@@ -22564,32 +22626,35 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
22564
22626
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
22565
22627
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
22566
22628
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
22629
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
22630
|
+
_y = _a.enableTamperDetection,
|
|
22631
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
22567
22632
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
22568
|
-
|
|
22569
|
-
captureSignature =
|
|
22570
|
-
|
|
22571
|
-
captureSignatureVideo =
|
|
22572
|
-
|
|
22573
|
-
captureAdditionalDocuments =
|
|
22574
|
-
|
|
22575
|
-
captureVideoId =
|
|
22633
|
+
_z = _a.captureSignature,
|
|
22634
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
22635
|
+
_0 = _a.captureSignatureVideo,
|
|
22636
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
22637
|
+
_1 = _a.captureAdditionalDocuments,
|
|
22638
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
22639
|
+
_2 = _a.captureVideoId,
|
|
22640
|
+
captureVideoId = _2 === void 0 ? false : _2,
|
|
22576
22641
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
22577
|
-
|
|
22578
|
-
theme =
|
|
22579
|
-
|
|
22580
|
-
assets =
|
|
22581
|
-
|
|
22582
|
-
classNames =
|
|
22583
|
-
|
|
22584
|
-
colors =
|
|
22585
|
-
|
|
22586
|
-
verbiage =
|
|
22587
|
-
|
|
22588
|
-
geolocationEnabled =
|
|
22589
|
-
|
|
22590
|
-
geolocationRequired =
|
|
22591
|
-
|
|
22592
|
-
debugMode =
|
|
22642
|
+
_3 = _a.theme,
|
|
22643
|
+
theme = _3 === void 0 ? 'default' : _3,
|
|
22644
|
+
_4 = _a.assets,
|
|
22645
|
+
assets = _4 === void 0 ? {} : _4,
|
|
22646
|
+
_5 = _a.classNames,
|
|
22647
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
22648
|
+
_6 = _a.colors,
|
|
22649
|
+
colors = _6 === void 0 ? {} : _6,
|
|
22650
|
+
_7 = _a.verbiage,
|
|
22651
|
+
verbiage = _7 === void 0 ? {} : _7,
|
|
22652
|
+
_8 = _a.geolocationEnabled,
|
|
22653
|
+
geolocationEnabled = _8 === void 0 ? true : _8,
|
|
22654
|
+
_9 = _a.geolocationRequired,
|
|
22655
|
+
geolocationRequired = _9 === void 0 ? false : _9,
|
|
22656
|
+
_10 = _a.debugMode,
|
|
22657
|
+
debugMode = _10 === void 0 ? false : _10;
|
|
22593
22658
|
useLanguage(lang);
|
|
22594
22659
|
useDebugLogging(debugMode);
|
|
22595
22660
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -22764,6 +22829,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
22764
22829
|
captureSignatureVideo: captureSignatureVideo,
|
|
22765
22830
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
22766
22831
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
22832
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
22833
|
+
enableTamperDetection: enableTamperDetection,
|
|
22767
22834
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
22768
22835
|
debugMode: debugMode
|
|
22769
22836
|
})))));
|
|
@@ -23280,13 +23347,16 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
23280
23347
|
onModelError = _a.onModelError,
|
|
23281
23348
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23282
23349
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
23350
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
23351
|
+
_h = _a.enableTamperDetection,
|
|
23352
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
23283
23353
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23284
|
-
|
|
23285
|
-
geolocationEnabled =
|
|
23286
|
-
|
|
23287
|
-
geolocationRequired =
|
|
23288
|
-
|
|
23289
|
-
debugMode =
|
|
23354
|
+
_j = _a.geolocationEnabled,
|
|
23355
|
+
geolocationEnabled = _j === void 0 ? true : _j,
|
|
23356
|
+
_k = _a.geolocationRequired,
|
|
23357
|
+
geolocationRequired = _k === void 0 ? false : _k,
|
|
23358
|
+
_l = _a.debugMode,
|
|
23359
|
+
debugMode = _l === void 0 ? false : _l;
|
|
23290
23360
|
useLanguage(lang);
|
|
23291
23361
|
useDebugLogging(debugMode);
|
|
23292
23362
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
@@ -23326,6 +23396,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
23326
23396
|
preferFrontFacingCamera: true,
|
|
23327
23397
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
23328
23398
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
23399
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
23400
|
+
enableTamperDetection: enableTamperDetection,
|
|
23329
23401
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
23330
23402
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
23331
23403
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -23860,18 +23932,21 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
23860
23932
|
onModelError = _a.onModelError,
|
|
23861
23933
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23862
23934
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
23935
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
23936
|
+
_g = _a.enableTamperDetection,
|
|
23937
|
+
enableTamperDetection = _g === void 0 ? false : _g,
|
|
23863
23938
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23864
|
-
|
|
23865
|
-
theme =
|
|
23939
|
+
_h = _a.theme,
|
|
23940
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
23866
23941
|
assets = _a.assets,
|
|
23867
23942
|
classNames = _a.classNames,
|
|
23868
23943
|
colors = _a.colors,
|
|
23869
23944
|
verbiage = _a.verbiage,
|
|
23870
23945
|
geolocationEnabled = _a.geolocationEnabled,
|
|
23871
|
-
|
|
23872
|
-
geolocationRequired =
|
|
23873
|
-
|
|
23874
|
-
debugMode =
|
|
23946
|
+
_j = _a.geolocationRequired,
|
|
23947
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
23948
|
+
_k = _a.debugMode,
|
|
23949
|
+
debugMode = _k === void 0 ? false : _k;
|
|
23875
23950
|
useLanguage(lang);
|
|
23876
23951
|
useDebugLogging(debugMode);
|
|
23877
23952
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
@@ -23910,6 +23985,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
23910
23985
|
preferFrontFacingCamera: true,
|
|
23911
23986
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
23912
23987
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
23988
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
23989
|
+
enableTamperDetection: enableTamperDetection,
|
|
23913
23990
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
23914
23991
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
23915
23992
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -23972,52 +24049,55 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
23972
24049
|
onModelError = _a.onModelError,
|
|
23973
24050
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23974
24051
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24052
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24053
|
+
_c = _a.enableTamperDetection,
|
|
24054
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
23975
24055
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
23976
24056
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
23977
|
-
|
|
23978
|
-
loadingOverlayMode =
|
|
24057
|
+
_d = _a.loadingOverlayMode,
|
|
24058
|
+
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
23979
24059
|
customOverlayContent = _a.customOverlayContent,
|
|
23980
|
-
|
|
23981
|
-
skipSuccessScreen =
|
|
23982
|
-
|
|
23983
|
-
captureAudio =
|
|
24060
|
+
_e = _a.skipSuccessScreen,
|
|
24061
|
+
skipSuccessScreen = _e === void 0 ? false : _e,
|
|
24062
|
+
_f = _a.captureAudio,
|
|
24063
|
+
captureAudio = _f === void 0 ? false : _f,
|
|
23984
24064
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
23985
|
-
|
|
23986
|
-
minSignaturePadPoints =
|
|
23987
|
-
|
|
23988
|
-
headTrackingDisabled =
|
|
23989
|
-
|
|
23990
|
-
headTrackingBoundaryPercentage =
|
|
23991
|
-
|
|
23992
|
-
headTrackingBoundaryType =
|
|
23993
|
-
|
|
23994
|
-
modelLoadTimeoutMs =
|
|
23995
|
-
|
|
23996
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
23997
|
-
|
|
23998
|
-
restartVideoOnSignaturePadCleared =
|
|
24065
|
+
_g = _a.minSignaturePadPoints,
|
|
24066
|
+
minSignaturePadPoints = _g === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _g,
|
|
24067
|
+
_h = _a.headTrackingDisabled,
|
|
24068
|
+
headTrackingDisabled = _h === void 0 ? false : _h,
|
|
24069
|
+
_j = _a.headTrackingBoundaryPercentage,
|
|
24070
|
+
headTrackingBoundaryPercentage = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _j,
|
|
24071
|
+
_k = _a.headTrackingBoundaryType,
|
|
24072
|
+
headTrackingBoundaryType = _k === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _k,
|
|
24073
|
+
_l = _a.modelLoadTimeoutMs,
|
|
24074
|
+
modelLoadTimeoutMs = _l === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _l,
|
|
24075
|
+
_m = _a.allowSignatureAfterLivenessCheckFailure,
|
|
24076
|
+
allowSignatureAfterLivenessCheckFailure = _m === void 0 ? false : _m,
|
|
24077
|
+
_o = _a.restartVideoOnSignaturePadCleared,
|
|
24078
|
+
restartVideoOnSignaturePadCleared = _o === void 0 ? true : _o,
|
|
23999
24079
|
faceLivenessProps = _a.faceLivenessProps,
|
|
24000
|
-
|
|
24001
|
-
skipLivenessValidation =
|
|
24002
|
-
|
|
24003
|
-
allowManualSelfieCaptureOnLoadingError =
|
|
24080
|
+
_p = _a.skipLivenessValidation,
|
|
24081
|
+
skipLivenessValidation = _p === void 0 ? false : _p,
|
|
24082
|
+
_q = _a.allowManualSelfieCaptureOnLoadingError,
|
|
24083
|
+
allowManualSelfieCaptureOnLoadingError = _q === void 0 ? false : _q,
|
|
24004
24084
|
guidesComponent = _a.guidesComponent,
|
|
24005
|
-
|
|
24006
|
-
showFaceGuideThenSignaturePad =
|
|
24085
|
+
_r = _a.showFaceGuideThenSignaturePad,
|
|
24086
|
+
showFaceGuideThenSignaturePad = _r === void 0 ? false : _r,
|
|
24007
24087
|
minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
|
|
24008
24088
|
minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
|
|
24009
24089
|
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
24010
|
-
|
|
24011
|
-
theme =
|
|
24090
|
+
_s = _a.theme,
|
|
24091
|
+
theme = _s === void 0 ? 'default' : _s,
|
|
24012
24092
|
classNames = _a.classNames,
|
|
24013
24093
|
colors = _a.colors,
|
|
24014
24094
|
verbiage = _a.verbiage,
|
|
24015
24095
|
geolocationEnabled = _a.geolocationEnabled,
|
|
24016
24096
|
geolocationRequired = _a.geolocationRequired,
|
|
24017
|
-
|
|
24018
|
-
debugMode =
|
|
24019
|
-
|
|
24020
|
-
debugShowSamplePoints =
|
|
24097
|
+
_t = _a.debugMode,
|
|
24098
|
+
debugMode = _t === void 0 ? false : _t,
|
|
24099
|
+
_u = _a.debugShowSamplePoints,
|
|
24100
|
+
debugShowSamplePoints = _u === void 0 ? false : _u;
|
|
24021
24101
|
useLanguage(lang);
|
|
24022
24102
|
useDebugLogging(debugMode);
|
|
24023
24103
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
@@ -24056,6 +24136,8 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
24056
24136
|
}, []),
|
|
24057
24137
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24058
24138
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24139
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24140
|
+
enableTamperDetection: enableTamperDetection,
|
|
24059
24141
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24060
24142
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
24061
24143
|
return {
|
|
@@ -24152,75 +24234,78 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
24152
24234
|
onUserCancel = _a.onUserCancel,
|
|
24153
24235
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24154
24236
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24237
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24238
|
+
_c = _a.enableTamperDetection,
|
|
24239
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
24155
24240
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24156
24241
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
24157
24242
|
idCaptureProps = _a.idCaptureProps,
|
|
24158
24243
|
faceLivenessProps = _a.faceLivenessProps,
|
|
24159
|
-
|
|
24160
|
-
idCaptureModelsEnabled =
|
|
24161
|
-
|
|
24162
|
-
videoIdCaptureThresholds =
|
|
24244
|
+
_d = _a.idCaptureModelsEnabled,
|
|
24245
|
+
idCaptureModelsEnabled = _d === void 0 ? true : _d,
|
|
24246
|
+
_e = _a.videoIdCaptureThresholds,
|
|
24247
|
+
videoIdCaptureThresholds = _e === void 0 ? defaultVideoIdCaptureThresholds : _e,
|
|
24163
24248
|
readTextPrompt = _a.readTextPrompt,
|
|
24164
|
-
|
|
24165
|
-
readTextTimeoutDurationMs =
|
|
24166
|
-
|
|
24167
|
-
readTextMinReadingMs =
|
|
24168
|
-
|
|
24169
|
-
skipSuccessScreen =
|
|
24170
|
-
|
|
24171
|
-
skipIdCapture =
|
|
24172
|
-
|
|
24173
|
-
skipShowIdCardBack =
|
|
24174
|
-
|
|
24175
|
-
idCaptureLoadingOverlayMode =
|
|
24249
|
+
_f = _a.readTextTimeoutDurationMs,
|
|
24250
|
+
readTextTimeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
24251
|
+
_g = _a.readTextMinReadingMs,
|
|
24252
|
+
readTextMinReadingMs = _g === void 0 ? 10000 : _g,
|
|
24253
|
+
_h = _a.skipSuccessScreen,
|
|
24254
|
+
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
24255
|
+
_j = _a.skipIdCapture,
|
|
24256
|
+
skipIdCapture = _j === void 0 ? false : _j,
|
|
24257
|
+
_k = _a.skipShowIdCardBack,
|
|
24258
|
+
skipShowIdCardBack = _k === void 0 ? false : _k,
|
|
24259
|
+
_l = _a.idCaptureLoadingOverlayMode,
|
|
24260
|
+
idCaptureLoadingOverlayMode = _l === void 0 ? 'default' : _l,
|
|
24176
24261
|
customOverlayContent = _a.customOverlayContent,
|
|
24177
24262
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
24178
|
-
|
|
24179
|
-
idCaptureGuideType =
|
|
24180
|
-
|
|
24181
|
-
idCaptureGuideImages =
|
|
24182
|
-
|
|
24183
|
-
idCapturePortraitGuidesOnMobile =
|
|
24184
|
-
|
|
24185
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
24263
|
+
_m = _a.idCaptureGuideType,
|
|
24264
|
+
idCaptureGuideType = _m === void 0 ? 'fit' : _m,
|
|
24265
|
+
_o = _a.idCaptureGuideImages,
|
|
24266
|
+
idCaptureGuideImages = _o === void 0 ? defaultIdCaptureGuideImages : _o,
|
|
24267
|
+
_p = _a.idCapturePortraitGuidesOnMobile,
|
|
24268
|
+
idCapturePortraitGuidesOnMobile = _p === void 0 ? true : _p,
|
|
24269
|
+
_q = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
24270
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _q === void 0 ? true : _q,
|
|
24186
24271
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
24187
24272
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
24188
|
-
|
|
24189
|
-
idDocumentType =
|
|
24190
|
-
|
|
24191
|
-
faceLivenessLoadingOverlayMode =
|
|
24192
|
-
|
|
24193
|
-
disableFaceDetectionWhileAudioCapture =
|
|
24194
|
-
|
|
24195
|
-
disableFaceDetectionWhileAudioCaptureMsDelay =
|
|
24196
|
-
|
|
24197
|
-
silentFallback =
|
|
24198
|
-
|
|
24199
|
-
mergeAVStreams =
|
|
24200
|
-
|
|
24201
|
-
matchOnly =
|
|
24202
|
-
|
|
24203
|
-
theme =
|
|
24204
|
-
|
|
24205
|
-
assets =
|
|
24206
|
-
|
|
24207
|
-
classNames =
|
|
24208
|
-
|
|
24209
|
-
colors =
|
|
24210
|
-
|
|
24211
|
-
verbiage =
|
|
24212
|
-
|
|
24213
|
-
captureSignature =
|
|
24214
|
-
|
|
24215
|
-
captureSignatureVideo =
|
|
24216
|
-
|
|
24217
|
-
captureAdditionalDocuments =
|
|
24218
|
-
|
|
24219
|
-
geolocationEnabled =
|
|
24220
|
-
|
|
24221
|
-
geolocationRequired =
|
|
24222
|
-
|
|
24223
|
-
debugMode =
|
|
24273
|
+
_r = _a.idDocumentType,
|
|
24274
|
+
idDocumentType = _r === void 0 ? 'idCardOrPassport' : _r,
|
|
24275
|
+
_s = _a.faceLivenessLoadingOverlayMode,
|
|
24276
|
+
faceLivenessLoadingOverlayMode = _s === void 0 ? 'default' : _s,
|
|
24277
|
+
_t = _a.disableFaceDetectionWhileAudioCapture,
|
|
24278
|
+
disableFaceDetectionWhileAudioCapture = _t === void 0 ? false : _t,
|
|
24279
|
+
_u = _a.disableFaceDetectionWhileAudioCaptureMsDelay,
|
|
24280
|
+
disableFaceDetectionWhileAudioCaptureMsDelay = _u === void 0 ? 2000 : _u,
|
|
24281
|
+
_v = _a.silentFallback,
|
|
24282
|
+
silentFallback = _v === void 0 ? false : _v,
|
|
24283
|
+
_w = _a.mergeAVStreams,
|
|
24284
|
+
mergeAVStreams = _w === void 0 ? false : _w,
|
|
24285
|
+
_x = _a.matchOnly,
|
|
24286
|
+
matchOnly = _x === void 0 ? false : _x,
|
|
24287
|
+
_y = _a.theme,
|
|
24288
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
24289
|
+
_z = _a.assets,
|
|
24290
|
+
assets = _z === void 0 ? {} : _z,
|
|
24291
|
+
_0 = _a.classNames,
|
|
24292
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
24293
|
+
_1 = _a.colors,
|
|
24294
|
+
colors = _1 === void 0 ? {} : _1,
|
|
24295
|
+
_2 = _a.verbiage,
|
|
24296
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
24297
|
+
_3 = _a.captureSignature,
|
|
24298
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
24299
|
+
_4 = _a.captureSignatureVideo,
|
|
24300
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
24301
|
+
_5 = _a.captureAdditionalDocuments,
|
|
24302
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
24303
|
+
_6 = _a.geolocationEnabled,
|
|
24304
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
24305
|
+
_7 = _a.geolocationRequired,
|
|
24306
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
24307
|
+
_8 = _a.debugMode,
|
|
24308
|
+
debugMode = _8 === void 0 ? false : _8;
|
|
24224
24309
|
useLanguage(lang);
|
|
24225
24310
|
useDebugLogging(debugMode);
|
|
24226
24311
|
var mergedIdCaptureProps = React.useMemo(function () {
|
|
@@ -24351,6 +24436,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
24351
24436
|
captureSignatureVideo: captureSignatureVideo,
|
|
24352
24437
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24353
24438
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24439
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24440
|
+
enableTamperDetection: enableTamperDetection,
|
|
24354
24441
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24355
24442
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
24356
24443
|
debugMode: debugMode
|
|
@@ -24414,29 +24501,32 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
24414
24501
|
onModelError = _a.onModelError,
|
|
24415
24502
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24416
24503
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24504
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24505
|
+
_h = _a.enableTamperDetection,
|
|
24506
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
24417
24507
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24418
|
-
|
|
24419
|
-
captureAdditionalDocuments =
|
|
24420
|
-
|
|
24421
|
-
captureSignature =
|
|
24422
|
-
|
|
24423
|
-
captureSignatureVideo =
|
|
24424
|
-
|
|
24425
|
-
theme =
|
|
24426
|
-
|
|
24427
|
-
assets =
|
|
24428
|
-
|
|
24429
|
-
classNames =
|
|
24430
|
-
|
|
24431
|
-
colors =
|
|
24432
|
-
|
|
24433
|
-
verbiage =
|
|
24434
|
-
|
|
24435
|
-
geolocationEnabled =
|
|
24436
|
-
|
|
24437
|
-
geolocationRequired =
|
|
24438
|
-
|
|
24439
|
-
debugMode =
|
|
24508
|
+
_j = _a.captureAdditionalDocuments,
|
|
24509
|
+
captureAdditionalDocuments = _j === void 0 ? [] : _j,
|
|
24510
|
+
_k = _a.captureSignature,
|
|
24511
|
+
captureSignature = _k === void 0 ? false : _k,
|
|
24512
|
+
_l = _a.captureSignatureVideo,
|
|
24513
|
+
captureSignatureVideo = _l === void 0 ? false : _l,
|
|
24514
|
+
_m = _a.theme,
|
|
24515
|
+
theme = _m === void 0 ? 'default' : _m,
|
|
24516
|
+
_o = _a.assets,
|
|
24517
|
+
assets = _o === void 0 ? {} : _o,
|
|
24518
|
+
_p = _a.classNames,
|
|
24519
|
+
classNames = _p === void 0 ? {} : _p,
|
|
24520
|
+
_q = _a.colors,
|
|
24521
|
+
colors = _q === void 0 ? {} : _q,
|
|
24522
|
+
_r = _a.verbiage,
|
|
24523
|
+
verbiage = _r === void 0 ? {} : _r,
|
|
24524
|
+
_s = _a.geolocationEnabled,
|
|
24525
|
+
geolocationEnabled = _s === void 0 ? true : _s,
|
|
24526
|
+
_t = _a.geolocationRequired,
|
|
24527
|
+
geolocationRequired = _t === void 0 ? false : _t,
|
|
24528
|
+
_u = _a.debugMode,
|
|
24529
|
+
debugMode = _u === void 0 ? false : _u;
|
|
24440
24530
|
useLanguage(lang);
|
|
24441
24531
|
useDebugLogging(debugMode);
|
|
24442
24532
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -24545,6 +24635,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
24545
24635
|
captureSignatureVideo: captureSignatureVideo,
|
|
24546
24636
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24547
24637
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24638
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24639
|
+
enableTamperDetection: enableTamperDetection,
|
|
24548
24640
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24549
24641
|
debugMode: debugMode
|
|
24550
24642
|
})))));
|
|
@@ -24576,24 +24668,27 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
24576
24668
|
onUserCancel = _a.onUserCancel,
|
|
24577
24669
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24578
24670
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24671
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24672
|
+
_c = _a.enableTamperDetection,
|
|
24673
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
24579
24674
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24580
|
-
|
|
24581
|
-
documents =
|
|
24675
|
+
_d = _a.documents,
|
|
24676
|
+
documents = _d === void 0 ? [] : _d,
|
|
24582
24677
|
aspectRatio = _a.aspectRatio,
|
|
24583
24678
|
cameraFeedMode = _a.cameraFeedMode,
|
|
24584
24679
|
instructions = _a.instructions,
|
|
24585
|
-
|
|
24586
|
-
theme =
|
|
24587
|
-
|
|
24588
|
-
classNames =
|
|
24589
|
-
|
|
24590
|
-
verbiage =
|
|
24591
|
-
|
|
24592
|
-
geolocationEnabled =
|
|
24593
|
-
|
|
24594
|
-
geolocationRequired =
|
|
24595
|
-
|
|
24596
|
-
debugMode =
|
|
24680
|
+
_e = _a.theme,
|
|
24681
|
+
theme = _e === void 0 ? 'default' : _e,
|
|
24682
|
+
_f = _a.classNames,
|
|
24683
|
+
classNames = _f === void 0 ? {} : _f,
|
|
24684
|
+
_g = _a.verbiage,
|
|
24685
|
+
verbiage = _g === void 0 ? {} : _g,
|
|
24686
|
+
_h = _a.geolocationEnabled,
|
|
24687
|
+
geolocationEnabled = _h === void 0 ? true : _h,
|
|
24688
|
+
_j = _a.geolocationRequired,
|
|
24689
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
24690
|
+
_k = _a.debugMode,
|
|
24691
|
+
debugMode = _k === void 0 ? false : _k;
|
|
24597
24692
|
useLanguage(lang);
|
|
24598
24693
|
useDebugLogging(debugMode);
|
|
24599
24694
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
@@ -24623,6 +24718,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
24623
24718
|
preferIphoneContinuityCamera: true,
|
|
24624
24719
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24625
24720
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24721
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24722
|
+
enableTamperDetection: enableTamperDetection,
|
|
24626
24723
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24627
24724
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
24628
24725
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|