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
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.199';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -508,9 +508,9 @@
|
|
|
508
508
|
|
|
509
509
|
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"])));
|
|
510
510
|
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"])));
|
|
511
|
-
var dualRingSpinnerAnimation = styled.keyframes(templateObject_3$
|
|
511
|
+
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"])));
|
|
512
512
|
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"])));
|
|
513
|
-
var templateObject_1$S, templateObject_2$N, templateObject_3$
|
|
513
|
+
var templateObject_1$S, templateObject_2$N, templateObject_3$A, templateObject_4$t;
|
|
514
514
|
|
|
515
515
|
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) {
|
|
516
516
|
return props.theme.background ? "".concat(props.theme.background) : "white";
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
}, function (props) {
|
|
524
524
|
return props.theme.padding ? "box-sizing: border-box; padding: ".concat(props.theme.padding, ";") : "";
|
|
525
525
|
});
|
|
526
|
-
var OverlayImageContainer = styled.div(templateObject_3$
|
|
526
|
+
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"])));
|
|
527
527
|
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"])));
|
|
528
528
|
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$l || (templateObject_5$l = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
529
529
|
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"])));
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
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"])));
|
|
566
566
|
var LoadingOverlayCustomLoadingGraphic = styled.img(templateObject_21$2 || (templateObject_21$2 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
567
567
|
var LoadingOverlayContinueButtonContainer = styled.div(templateObject_22$2 || (templateObject_22$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
568
|
-
var templateObject_1$R, templateObject_2$M, templateObject_3$
|
|
568
|
+
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;
|
|
569
569
|
|
|
570
570
|
function _extends() {
|
|
571
571
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
};
|
|
1112
1112
|
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"])));
|
|
1113
1113
|
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"])));
|
|
1114
|
-
var Heading$b = styled.h3(templateObject_3$
|
|
1114
|
+
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"])));
|
|
1115
1115
|
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"])));
|
|
1116
1116
|
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"])));
|
|
1117
1117
|
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"])));
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
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"])));
|
|
1123
1123
|
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"])));
|
|
1124
1124
|
var RetryContainer = styled.div(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-top: 24px;\n"], ["\n margin-top: 24px;\n"])));
|
|
1125
|
-
var templateObject_1$Q, templateObject_2$L, templateObject_3$
|
|
1125
|
+
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;
|
|
1126
1126
|
|
|
1127
1127
|
var SessionIdMissingOverlay = function SessionIdMissingOverlay() {
|
|
1128
1128
|
return /*#__PURE__*/React.createElement(OverlayContainer, null, /*#__PURE__*/React.createElement(OverlayInner$2, {
|
|
@@ -12788,7 +12788,7 @@
|
|
|
12788
12788
|
Cancel: 'Cancelar',
|
|
12789
12789
|
'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',
|
|
12790
12790
|
'Camera tampering detected': 'Se ha detectado un intento de manipulación de la cámara',
|
|
12791
|
-
"
|
|
12791
|
+
"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.',
|
|
12792
12792
|
'Position your face in the circle and click to capture.': 'Enfoca tu cara en el círculo y da clic en capturar.',
|
|
12793
12793
|
'Sign here': 'Firma aquí'
|
|
12794
12794
|
};
|
|
@@ -12921,7 +12921,7 @@
|
|
|
12921
12921
|
Cancel: 'Abbrechen',
|
|
12922
12922
|
'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.',
|
|
12923
12923
|
'Camera tampering detected': 'Kamera manipuliert',
|
|
12924
|
-
"
|
|
12924
|
+
"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.',
|
|
12925
12925
|
'Position your face in the circle and click to capture.': 'Stellen Sie Ihr Gesicht im Kreis ein und klicken Sie auf Erfassen.',
|
|
12926
12926
|
'Sign here': 'Hier unterschreiben'
|
|
12927
12927
|
};
|
|
@@ -13054,7 +13054,7 @@
|
|
|
13054
13054
|
Cancel: 'Annuler',
|
|
13055
13055
|
'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.",
|
|
13056
13056
|
'Camera tampering detected': 'Manipulation de la caméra détectée',
|
|
13057
|
-
"
|
|
13057
|
+
"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.",
|
|
13058
13058
|
'Position your face in the circle and click to capture.': 'Positionnez votre visage dans le cercle et cliquez pour capturer.',
|
|
13059
13059
|
'Sign here': 'Signer ici'
|
|
13060
13060
|
};
|
|
@@ -13187,7 +13187,7 @@
|
|
|
13187
13187
|
Cancel: 'Annulla',
|
|
13188
13188
|
'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.",
|
|
13189
13189
|
'Camera tampering detected': 'Manipolazione della fotocamera rilevata',
|
|
13190
|
-
"
|
|
13190
|
+
"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.",
|
|
13191
13191
|
'Position your face in the circle and click to capture.': 'Posiziona il tuo volto nel cerchio e clicca per acquisire.',
|
|
13192
13192
|
'Sign here': 'Firma qui'
|
|
13193
13193
|
};
|
|
@@ -13320,7 +13320,7 @@
|
|
|
13320
13320
|
Cancel: 'キャンセル',
|
|
13321
13321
|
'Upload the back of the ID if it is not included in the front image.': '表面画像に裏面が含まれていない場合は、裏面をアップロードしてください。',
|
|
13322
13322
|
'Camera tampering detected': 'カメラの操作が検出されました',
|
|
13323
|
-
"
|
|
13323
|
+
"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.": 'ブラウザの拡張機能または他のソフトウェアがカメラへのアクセスを妨げています。ブラウザの拡張機能を無効にするか、ブラウザを最新バージョンに更新するか、別のブラウザに切り替えてください。',
|
|
13324
13324
|
'Position your face in the circle and click to capture.': '顔を円の中に合わせてクリックして撮影してください。',
|
|
13325
13325
|
'Sign here': 'ここに署名'
|
|
13326
13326
|
};
|
|
@@ -13453,7 +13453,7 @@
|
|
|
13453
13453
|
Cancel: 'Cancelar',
|
|
13454
13454
|
'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.',
|
|
13455
13455
|
'Camera tampering detected': 'Manipulação da câmera detectada',
|
|
13456
|
-
"
|
|
13456
|
+
"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.',
|
|
13457
13457
|
'Position your face in the circle and click to capture.': 'Posicione seu rosto no círculo e clique para capturar.',
|
|
13458
13458
|
'Sign here': 'Assinar aqui'
|
|
13459
13459
|
};
|
|
@@ -13586,7 +13586,7 @@
|
|
|
13586
13586
|
Cancel: 'Отменить',
|
|
13587
13587
|
'Upload the back of the ID if it is not included in the front image.': 'Загрузите заднюю сторону удостоверения, если она не включена в изображение передней стороны.',
|
|
13588
13588
|
'Camera tampering detected': 'Обнаружена манипуляция с камерой',
|
|
13589
|
-
"
|
|
13589
|
+
"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.": 'Расширение браузера или другое программное обеспечение мешает доступу к камере. Попробуйте отключить расширения браузера, обновить браузер до последней версии или переключиться на другой браузер.',
|
|
13590
13590
|
'Position your face in the circle and click to capture.': 'Поместите свое лицо в круг и нажмите для съемки.',
|
|
13591
13591
|
'Sign here': 'Подписать здесь'
|
|
13592
13592
|
};
|
|
@@ -13719,7 +13719,7 @@
|
|
|
13719
13719
|
Cancel: '取消',
|
|
13720
13720
|
'Upload the back of the ID if it is not included in the front image.': '如果正面照片没有包含身份证背面,请上传背面照片。',
|
|
13721
13721
|
'Camera tampering detected': '檢測到相機被篡改',
|
|
13722
|
-
"
|
|
13722
|
+
"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.": '瀏覽器擴充功能或其他軟體正在干擾相機存取。請嘗試停用瀏覽器擴充功能、將瀏覽器更新至最新版本或切換至其他瀏覽器。',
|
|
13723
13723
|
'Position your face in the circle and click to capture.': '將您的臉部置於圓圈中,點擊拍攝。',
|
|
13724
13724
|
'Sign here': '在此簽名'
|
|
13725
13725
|
};
|
|
@@ -13831,6 +13831,7 @@
|
|
|
13831
13831
|
iphoneContinuityCameraAvailable: false,
|
|
13832
13832
|
iphoneContinuityCameraDenied: false,
|
|
13833
13833
|
preferIphoneContinuityCamera: true,
|
|
13834
|
+
enableTamperDetection: false,
|
|
13834
13835
|
cameraTamperingDetected: false,
|
|
13835
13836
|
microphoneReady: false,
|
|
13836
13837
|
microphoneAccessDenied: false
|
|
@@ -13871,14 +13872,14 @@
|
|
|
13871
13872
|
},
|
|
13872
13873
|
requestCameraAccess: function requestCameraAccess() {
|
|
13873
13874
|
return __awaiter(this, void 0, void 0, function () {
|
|
13874
|
-
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;
|
|
13875
|
+
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;
|
|
13875
13876
|
var _b, _c, _d, _e;
|
|
13876
13877
|
return __generator(this, function (_f) {
|
|
13877
13878
|
switch (_f.label) {
|
|
13878
13879
|
case 0:
|
|
13879
13880
|
debug("".concat(LOG_TAG, " requestCameraAccess"), new Error().stack);
|
|
13880
|
-
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
13881
|
-
if (guardGetUserMedia(mediaIntegrityToken)) {
|
|
13881
|
+
_a = get(), videoRef = _a.videoRef, releaseCameraAccess = _a.releaseCameraAccess, preferFrontFacingCamera = _a.preferFrontFacingCamera, preferIphoneContinuityCamera = _a.preferIphoneContinuityCamera, iphoneContinuityCameraDenied = _a.iphoneContinuityCameraDenied, enableTamperDetection = _a.enableTamperDetection, mediaIntegrityToken = _a.mediaIntegrityToken;
|
|
13882
|
+
if (enableTamperDetection && guardGetUserMedia(mediaIntegrityToken)) {
|
|
13882
13883
|
set({
|
|
13883
13884
|
cameraTamperingDetected: true
|
|
13884
13885
|
});
|
|
@@ -14100,7 +14101,7 @@
|
|
|
14100
14101
|
switch (_a.label) {
|
|
14101
14102
|
case 0:
|
|
14102
14103
|
get().releaseMicrophoneAccess();
|
|
14103
|
-
if (guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
14104
|
+
if (get().enableTamperDetection && guardGetUserMedia(get().mediaIntegrityToken)) {
|
|
14104
14105
|
set({
|
|
14105
14106
|
cameraTamperingDetected: true
|
|
14106
14107
|
});
|
|
@@ -14180,6 +14181,8 @@
|
|
|
14180
14181
|
});
|
|
14181
14182
|
};
|
|
14182
14183
|
var CameraStoreContext = /*#__PURE__*/React.createContext(undefined);
|
|
14184
|
+
/** Text for the exit button shown when `onExitAfterTamperSealPopped` is bound. */
|
|
14185
|
+
var DEFAULT_EXIT_BUTTON_TEXT = 'Exit';
|
|
14183
14186
|
function CameraStoreProvider(_a) {
|
|
14184
14187
|
var _b;
|
|
14185
14188
|
var children = _a.children,
|
|
@@ -14194,14 +14197,17 @@
|
|
|
14194
14197
|
maxFps = _a.maxFps,
|
|
14195
14198
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14196
14199
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
14200
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
14197
14201
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
14198
14202
|
_g = _a.requireMicrophoneAccess,
|
|
14199
14203
|
requireMicrophoneAccess = _g === void 0 ? false : _g,
|
|
14204
|
+
_h = _a.enableTamperDetection,
|
|
14205
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
14200
14206
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
14201
|
-
|
|
14202
|
-
classNames =
|
|
14203
|
-
|
|
14204
|
-
verbiage =
|
|
14207
|
+
_j = _a.classNames,
|
|
14208
|
+
classNames = _j === void 0 ? {} : _j,
|
|
14209
|
+
_k = _a.verbiage,
|
|
14210
|
+
verbiage = _k === void 0 ? {} : _k;
|
|
14205
14211
|
var videoRef = React.useRef(null);
|
|
14206
14212
|
var store = React.useRef(undefined);
|
|
14207
14213
|
store.current || (store.current = createCameraStore({
|
|
@@ -14214,10 +14220,12 @@
|
|
|
14214
14220
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
14215
14221
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
14216
14222
|
requireMicrophoneAccess: requireMicrophoneAccess,
|
|
14223
|
+
enableTamperDetection: enableTamperDetection,
|
|
14217
14224
|
mediaIntegrityToken: mediaIntegrityToken
|
|
14218
14225
|
}));
|
|
14219
14226
|
React.useEffect(function () {
|
|
14220
14227
|
var _a;
|
|
14228
|
+
if (!enableTamperDetection) return;
|
|
14221
14229
|
var result = checkGetUserMediaIntegrity(mediaIntegrityToken);
|
|
14222
14230
|
if (result.tampered) {
|
|
14223
14231
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -14225,9 +14233,9 @@
|
|
|
14225
14233
|
});
|
|
14226
14234
|
}
|
|
14227
14235
|
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
14228
|
-
var
|
|
14229
|
-
videoWidth =
|
|
14230
|
-
videoHeight =
|
|
14236
|
+
var _l = (_b = videoRef.current) !== null && _b !== void 0 ? _b : {},
|
|
14237
|
+
videoWidth = _l.videoWidth,
|
|
14238
|
+
videoHeight = _l.videoHeight;
|
|
14231
14239
|
React.useEffect(function () {
|
|
14232
14240
|
var _a;
|
|
14233
14241
|
(_a = store.current) === null || _a === void 0 ? void 0 : _a.setState({
|
|
@@ -14263,6 +14271,7 @@
|
|
|
14263
14271
|
value: store.current
|
|
14264
14272
|
}, /*#__PURE__*/React.createElement(CameraTamperSeal, {
|
|
14265
14273
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
14274
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
14266
14275
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
14267
14276
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
14268
14277
|
classNames: classNames.cameraTamperSeal,
|
|
@@ -14272,6 +14281,7 @@
|
|
|
14272
14281
|
function CameraTamperSeal(_a) {
|
|
14273
14282
|
var children = _a.children,
|
|
14274
14283
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
14284
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
14275
14285
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14276
14286
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
14277
14287
|
_b = _a.classNames,
|
|
@@ -14284,10 +14294,12 @@
|
|
|
14284
14294
|
microphoneAccessDenied = _d.microphoneAccessDenied;
|
|
14285
14295
|
var _e = useTranslations(rawVerbiage, {
|
|
14286
14296
|
headingText: 'Camera tampering detected',
|
|
14287
|
-
messageText:
|
|
14297
|
+
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.',
|
|
14298
|
+
exitButtonText: DEFAULT_EXIT_BUTTON_TEXT
|
|
14288
14299
|
}),
|
|
14289
14300
|
headingText = _e.headingText,
|
|
14290
|
-
messageText = _e.messageText
|
|
14301
|
+
messageText = _e.messageText,
|
|
14302
|
+
exitButtonText = _e.exitButtonText;
|
|
14291
14303
|
var onCameraTamperingDetectedRef = React.useRef(onCameraTamperingDetected);
|
|
14292
14304
|
React.useEffect(function () {
|
|
14293
14305
|
onCameraTamperingDetectedRef.current = onCameraTamperingDetected;
|
|
@@ -14321,16 +14333,27 @@
|
|
|
14321
14333
|
className: classNames.heading
|
|
14322
14334
|
}, headingText), /*#__PURE__*/React.createElement("p", {
|
|
14323
14335
|
className: classNames.message
|
|
14324
|
-
}, messageText)
|
|
14336
|
+
}, messageText), onExitAfterTamperSealPopped && (/*#__PURE__*/React.createElement(StyledExitButton, {
|
|
14337
|
+
type: "button",
|
|
14338
|
+
className: classNames.exitButton,
|
|
14339
|
+
onClick: onExitAfterTamperSealPopped
|
|
14340
|
+
}, exitButtonText))));
|
|
14325
14341
|
}
|
|
14326
14342
|
var StyledOverlayInner$4 = styled(OverlayInner$2)(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
14327
14343
|
var StyledOverlayHeading = styled.h3(templateObject_2$J || (templateObject_2$J = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
14344
|
+
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) {
|
|
14345
|
+
var _a, _b, _c;
|
|
14346
|
+
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';
|
|
14347
|
+
}, function (props) {
|
|
14348
|
+
var _a, _b, _c;
|
|
14349
|
+
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';
|
|
14350
|
+
});
|
|
14328
14351
|
function useCameraStore(selector) {
|
|
14329
14352
|
var store = React.useContext(CameraStoreContext);
|
|
14330
14353
|
if (!store) throw new Error('useCameraStore cannot be used without Provider');
|
|
14331
14354
|
return useStore(store, selector);
|
|
14332
14355
|
}
|
|
14333
|
-
var templateObject_1$O, templateObject_2$J;
|
|
14356
|
+
var templateObject_1$O, templateObject_2$J, templateObject_3$x;
|
|
14334
14357
|
|
|
14335
14358
|
var DocumentDetectionModelContext = /*#__PURE__*/React.createContext({
|
|
14336
14359
|
startDocumentDetection: function startDocumentDetection() {
|
|
@@ -24201,14 +24224,18 @@
|
|
|
24201
24224
|
var _b, _c, _d, _e, _f, _g;
|
|
24202
24225
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24203
24226
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
24227
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
24204
24228
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
24229
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
24205
24230
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
24206
24231
|
shouldLoadIdCaptureModels = _a.shouldLoadIdCaptureModels,
|
|
24207
|
-
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
24232
|
+
idCaptureProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken", "shouldLoadIdCaptureModels"]);
|
|
24208
24233
|
return /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
24209
24234
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
24210
24235
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
24236
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
24211
24237
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
24238
|
+
enableTamperDetection: enableTamperDetection,
|
|
24212
24239
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
24213
24240
|
requestAccessAutomatically: shouldLoadIdCaptureModels,
|
|
24214
24241
|
classNames: (_b = idCaptureProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
@@ -26907,15 +26934,19 @@
|
|
|
26907
26934
|
var _b, _c;
|
|
26908
26935
|
var onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
26909
26936
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
26937
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
26910
26938
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
26939
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
26911
26940
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
26912
|
-
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onMicrophoneAccessDenied", "mediaIntegrityToken"]);
|
|
26941
|
+
faceLivenessProps = __rest(_a, ["onCameraAccessDenied", "onCameraTamperingDetected", "onExitAfterTamperSealPopped", "onMicrophoneAccessDenied", "enableTamperDetection", "mediaIntegrityToken"]);
|
|
26913
26942
|
return /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
26914
26943
|
preferFrontFacingCamera: true,
|
|
26915
26944
|
preferIphoneContinuityCamera: false,
|
|
26916
26945
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
26917
26946
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
26947
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
26918
26948
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
26949
|
+
enableTamperDetection: enableTamperDetection,
|
|
26919
26950
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
26920
26951
|
classNames: (_b = faceLivenessProps.classNames) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider,
|
|
26921
26952
|
verbiage: (_c = faceLivenessProps.verbiage) === null || _c === void 0 ? void 0 : _c.cameraStoreProvider
|
|
@@ -29786,7 +29817,9 @@
|
|
|
29786
29817
|
maxFps: 30,
|
|
29787
29818
|
onCameraAccessDenied: props.onCameraAccessDenied,
|
|
29788
29819
|
onCameraTamperingDetected: props.onCameraTamperingDetected,
|
|
29820
|
+
onExitAfterTamperSealPopped: props.onExitAfterTamperSealPopped,
|
|
29789
29821
|
onMicrophoneAccessDenied: props.onMicrophoneAccessDenied,
|
|
29822
|
+
enableTamperDetection: props.enableTamperDetection,
|
|
29790
29823
|
mediaIntegrityToken: props.mediaIntegrityToken,
|
|
29791
29824
|
classNames: (_a = props.classNames) === null || _a === void 0 ? void 0 : _a.cameraStoreProvider,
|
|
29792
29825
|
verbiage: (_b = props.verbiage) === null || _b === void 0 ? void 0 : _b.cameraStoreProvider
|
|
@@ -30894,7 +30927,9 @@
|
|
|
30894
30927
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
30895
30928
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
30896
30929
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
30930
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
30897
30931
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
30932
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
30898
30933
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
30899
30934
|
_k = _a.idCaptureProps,
|
|
30900
30935
|
idCaptureProps = _k === void 0 ? {} : _k,
|
|
@@ -31056,7 +31091,9 @@
|
|
|
31056
31091
|
maxFps: isCapturingId ? 60 : 30,
|
|
31057
31092
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31058
31093
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31094
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31059
31095
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
31096
|
+
enableTamperDetection: enableTamperDetection,
|
|
31060
31097
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
31061
31098
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
31062
31099
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -31199,7 +31236,9 @@
|
|
|
31199
31236
|
captureSignatureVideo = _j === void 0 ? false : _j,
|
|
31200
31237
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
31201
31238
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
31239
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
31202
31240
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
31241
|
+
enableTamperDetection = _a.enableTamperDetection,
|
|
31203
31242
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
31204
31243
|
_k = _a.debugMode,
|
|
31205
31244
|
debugMode = _k === void 0 ? false : _k;
|
|
@@ -31320,7 +31359,9 @@
|
|
|
31320
31359
|
return /*#__PURE__*/React.createElement(IdCaptureWizardWithProviders, _assign({}, idCaptureProps, {
|
|
31321
31360
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31322
31361
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31362
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31323
31363
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
31364
|
+
enableTamperDetection: enableTamperDetection,
|
|
31324
31365
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
31325
31366
|
shouldLoadIdCaptureModels: shouldLoadIdCaptureModels,
|
|
31326
31367
|
onSuccess: onIdCaptureSuccess
|
|
@@ -31330,14 +31371,18 @@
|
|
|
31330
31371
|
onComplete: onVideoIdCaptureComplete,
|
|
31331
31372
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31332
31373
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31374
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31333
31375
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
31376
|
+
enableTamperDetection: enableTamperDetection,
|
|
31334
31377
|
mediaIntegrityToken: mediaIntegrityToken
|
|
31335
31378
|
}));
|
|
31336
31379
|
case 'FaceLiveness':
|
|
31337
31380
|
return /*#__PURE__*/React.createElement(FaceLivenessWizardWithProviders, _assign({}, faceLivenessProps, {
|
|
31338
31381
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31339
31382
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31383
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31340
31384
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
31385
|
+
enableTamperDetection: enableTamperDetection,
|
|
31341
31386
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
31342
31387
|
onComplete: onFaceLivenessComplete
|
|
31343
31388
|
}));
|
|
@@ -31352,7 +31397,9 @@
|
|
|
31352
31397
|
onComplete: onVideoSignatureComplete,
|
|
31353
31398
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31354
31399
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31400
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31355
31401
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
31402
|
+
enableTamperDetection: enableTamperDetection,
|
|
31356
31403
|
mediaIntegrityToken: mediaIntegrityToken
|
|
31357
31404
|
}));
|
|
31358
31405
|
case 'AdditionalDocumentCapture':
|
|
@@ -31731,38 +31778,41 @@
|
|
|
31731
31778
|
onModelError = _a.onModelError,
|
|
31732
31779
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
31733
31780
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
31781
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
31782
|
+
_w = _a.enableTamperDetection,
|
|
31783
|
+
enableTamperDetection = _w === void 0 ? false : _w,
|
|
31734
31784
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
31735
31785
|
onDocumentCaptured = _a.onDocumentCaptured,
|
|
31736
31786
|
onDocumentDetected = _a.onDocumentDetected,
|
|
31737
|
-
|
|
31738
|
-
documentDetectionThrottleMs =
|
|
31739
|
-
|
|
31740
|
-
theme =
|
|
31741
|
-
|
|
31742
|
-
assets =
|
|
31743
|
-
|
|
31744
|
-
classNames =
|
|
31745
|
-
|
|
31746
|
-
colors =
|
|
31747
|
-
|
|
31748
|
-
verbiage =
|
|
31749
|
-
|
|
31750
|
-
captureSignature =
|
|
31751
|
-
|
|
31752
|
-
captureSignatureVideo =
|
|
31753
|
-
|
|
31754
|
-
captureAdditionalDocuments =
|
|
31755
|
-
|
|
31756
|
-
geolocationEnabled =
|
|
31757
|
-
|
|
31758
|
-
geolocationRequired =
|
|
31759
|
-
|
|
31760
|
-
debugMode =
|
|
31787
|
+
_x = _a.documentDetectionThrottleMs,
|
|
31788
|
+
documentDetectionThrottleMs = _x === void 0 ? 0 : _x,
|
|
31789
|
+
_y = _a.theme,
|
|
31790
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
31791
|
+
_z = _a.assets,
|
|
31792
|
+
assets = _z === void 0 ? {} : _z,
|
|
31793
|
+
_0 = _a.classNames,
|
|
31794
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
31795
|
+
_1 = _a.colors,
|
|
31796
|
+
colors = _1 === void 0 ? {} : _1,
|
|
31797
|
+
_2 = _a.verbiage,
|
|
31798
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
31799
|
+
_3 = _a.captureSignature,
|
|
31800
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
31801
|
+
_4 = _a.captureSignatureVideo,
|
|
31802
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
31803
|
+
_5 = _a.captureAdditionalDocuments,
|
|
31804
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
31805
|
+
_6 = _a.geolocationEnabled,
|
|
31806
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
31807
|
+
_7 = _a.geolocationRequired,
|
|
31808
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
31809
|
+
_8 = _a.debugMode,
|
|
31810
|
+
debugMode = _8 === void 0 ? false : _8,
|
|
31761
31811
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
31762
|
-
|
|
31763
|
-
enableBarcodeRecapture =
|
|
31764
|
-
|
|
31765
|
-
barcodeParsingMode =
|
|
31812
|
+
_9 = _a.enableBarcodeRecapture,
|
|
31813
|
+
enableBarcodeRecapture = _9 === void 0 ? false : _9,
|
|
31814
|
+
_10 = _a.barcodeParsingMode,
|
|
31815
|
+
barcodeParsingMode = _10 === void 0 ? 'aggressive' : _10,
|
|
31766
31816
|
aggressiveModeDecodeThreshold = _a.aggressiveModeDecodeThreshold,
|
|
31767
31817
|
aggressiveModeDecodeIntervalMs = _a.aggressiveModeDecodeIntervalMs;
|
|
31768
31818
|
useLanguage(lang);
|
|
@@ -31901,6 +31951,8 @@
|
|
|
31901
31951
|
captureSignatureVideo: captureSignatureVideo,
|
|
31902
31952
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
31903
31953
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
31954
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
31955
|
+
enableTamperDetection: enableTamperDetection,
|
|
31904
31956
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
31905
31957
|
debugMode: debugMode
|
|
31906
31958
|
})))));
|
|
@@ -31963,19 +32015,22 @@
|
|
|
31963
32015
|
onModelError = _a.onModelError,
|
|
31964
32016
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
31965
32017
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
32018
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
32019
|
+
_j = _a.enableTamperDetection,
|
|
32020
|
+
enableTamperDetection = _j === void 0 ? false : _j,
|
|
31966
32021
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
31967
|
-
|
|
31968
|
-
theme =
|
|
32022
|
+
_k = _a.theme,
|
|
32023
|
+
theme = _k === void 0 ? 'default' : _k,
|
|
31969
32024
|
assets = _a.assets,
|
|
31970
32025
|
classNames = _a.classNames,
|
|
31971
32026
|
colors = _a.colors,
|
|
31972
32027
|
verbiage = _a.verbiage,
|
|
31973
|
-
|
|
31974
|
-
geolocationEnabled =
|
|
31975
|
-
|
|
31976
|
-
geolocationRequired =
|
|
31977
|
-
|
|
31978
|
-
debugMode =
|
|
32028
|
+
_l = _a.geolocationEnabled,
|
|
32029
|
+
geolocationEnabled = _l === void 0 ? true : _l,
|
|
32030
|
+
_m = _a.geolocationRequired,
|
|
32031
|
+
geolocationRequired = _m === void 0 ? false : _m,
|
|
32032
|
+
_o = _a.debugMode,
|
|
32033
|
+
debugMode = _o === void 0 ? false : _o;
|
|
31979
32034
|
useLanguage(lang);
|
|
31980
32035
|
useDebugLogging(debugMode);
|
|
31981
32036
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -32048,6 +32103,8 @@
|
|
|
32048
32103
|
faceLivenessProps: faceLivenessProps,
|
|
32049
32104
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
32050
32105
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
32106
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
32107
|
+
enableTamperDetection: enableTamperDetection,
|
|
32051
32108
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
32052
32109
|
debugMode: debugMode
|
|
32053
32110
|
})))));
|
|
@@ -32153,29 +32210,32 @@
|
|
|
32153
32210
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
32154
32211
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
32155
32212
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
32213
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
32214
|
+
_y = _a.enableTamperDetection,
|
|
32215
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
32156
32216
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
32157
|
-
|
|
32158
|
-
captureSignature =
|
|
32159
|
-
|
|
32160
|
-
captureSignatureVideo =
|
|
32161
|
-
|
|
32162
|
-
captureAdditionalDocuments =
|
|
32163
|
-
|
|
32164
|
-
theme =
|
|
32165
|
-
|
|
32166
|
-
assets =
|
|
32167
|
-
|
|
32168
|
-
classNames =
|
|
32169
|
-
|
|
32170
|
-
colors =
|
|
32171
|
-
|
|
32172
|
-
verbiage =
|
|
32173
|
-
|
|
32174
|
-
geolocationEnabled =
|
|
32175
|
-
|
|
32176
|
-
geolocationRequired =
|
|
32177
|
-
|
|
32178
|
-
debugMode =
|
|
32217
|
+
_z = _a.captureSignature,
|
|
32218
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
32219
|
+
_0 = _a.captureSignatureVideo,
|
|
32220
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
32221
|
+
_1 = _a.captureAdditionalDocuments,
|
|
32222
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
32223
|
+
_2 = _a.theme,
|
|
32224
|
+
theme = _2 === void 0 ? 'default' : _2,
|
|
32225
|
+
_3 = _a.assets,
|
|
32226
|
+
assets = _3 === void 0 ? {} : _3,
|
|
32227
|
+
_4 = _a.classNames,
|
|
32228
|
+
classNames = _4 === void 0 ? {} : _4,
|
|
32229
|
+
_5 = _a.colors,
|
|
32230
|
+
colors = _5 === void 0 ? {} : _5,
|
|
32231
|
+
_6 = _a.verbiage,
|
|
32232
|
+
verbiage = _6 === void 0 ? {} : _6,
|
|
32233
|
+
_7 = _a.geolocationEnabled,
|
|
32234
|
+
geolocationEnabled = _7 === void 0 ? true : _7,
|
|
32235
|
+
_8 = _a.geolocationRequired,
|
|
32236
|
+
geolocationRequired = _8 === void 0 ? false : _8,
|
|
32237
|
+
_9 = _a.debugMode,
|
|
32238
|
+
debugMode = _9 === void 0 ? false : _9;
|
|
32179
32239
|
useLanguage(lang);
|
|
32180
32240
|
useDebugLogging(debugMode);
|
|
32181
32241
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -32331,6 +32391,8 @@
|
|
|
32331
32391
|
captureSignatureVideo: captureSignatureVideo,
|
|
32332
32392
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
32333
32393
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
32394
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
32395
|
+
enableTamperDetection: enableTamperDetection,
|
|
32334
32396
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
32335
32397
|
debugMode: debugMode
|
|
32336
32398
|
})))));
|
|
@@ -32439,32 +32501,35 @@
|
|
|
32439
32501
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
32440
32502
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
32441
32503
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
32504
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
32505
|
+
_y = _a.enableTamperDetection,
|
|
32506
|
+
enableTamperDetection = _y === void 0 ? false : _y,
|
|
32442
32507
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
32443
|
-
|
|
32444
|
-
captureSignature =
|
|
32445
|
-
|
|
32446
|
-
captureSignatureVideo =
|
|
32447
|
-
|
|
32448
|
-
captureAdditionalDocuments =
|
|
32449
|
-
|
|
32450
|
-
captureVideoId =
|
|
32508
|
+
_z = _a.captureSignature,
|
|
32509
|
+
captureSignature = _z === void 0 ? false : _z,
|
|
32510
|
+
_0 = _a.captureSignatureVideo,
|
|
32511
|
+
captureSignatureVideo = _0 === void 0 ? false : _0,
|
|
32512
|
+
_1 = _a.captureAdditionalDocuments,
|
|
32513
|
+
captureAdditionalDocuments = _1 === void 0 ? [] : _1,
|
|
32514
|
+
_2 = _a.captureVideoId,
|
|
32515
|
+
captureVideoId = _2 === void 0 ? false : _2,
|
|
32451
32516
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
32452
|
-
|
|
32453
|
-
theme =
|
|
32454
|
-
|
|
32455
|
-
assets =
|
|
32456
|
-
|
|
32457
|
-
classNames =
|
|
32458
|
-
|
|
32459
|
-
colors =
|
|
32460
|
-
|
|
32461
|
-
verbiage =
|
|
32462
|
-
|
|
32463
|
-
geolocationEnabled =
|
|
32464
|
-
|
|
32465
|
-
geolocationRequired =
|
|
32466
|
-
|
|
32467
|
-
debugMode =
|
|
32517
|
+
_3 = _a.theme,
|
|
32518
|
+
theme = _3 === void 0 ? 'default' : _3,
|
|
32519
|
+
_4 = _a.assets,
|
|
32520
|
+
assets = _4 === void 0 ? {} : _4,
|
|
32521
|
+
_5 = _a.classNames,
|
|
32522
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
32523
|
+
_6 = _a.colors,
|
|
32524
|
+
colors = _6 === void 0 ? {} : _6,
|
|
32525
|
+
_7 = _a.verbiage,
|
|
32526
|
+
verbiage = _7 === void 0 ? {} : _7,
|
|
32527
|
+
_8 = _a.geolocationEnabled,
|
|
32528
|
+
geolocationEnabled = _8 === void 0 ? true : _8,
|
|
32529
|
+
_9 = _a.geolocationRequired,
|
|
32530
|
+
geolocationRequired = _9 === void 0 ? false : _9,
|
|
32531
|
+
_10 = _a.debugMode,
|
|
32532
|
+
debugMode = _10 === void 0 ? false : _10;
|
|
32468
32533
|
useLanguage(lang);
|
|
32469
32534
|
useDebugLogging(debugMode);
|
|
32470
32535
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -32639,6 +32704,8 @@
|
|
|
32639
32704
|
captureSignatureVideo: captureSignatureVideo,
|
|
32640
32705
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
32641
32706
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
32707
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
32708
|
+
enableTamperDetection: enableTamperDetection,
|
|
32642
32709
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
32643
32710
|
debugMode: debugMode
|
|
32644
32711
|
})))));
|
|
@@ -33155,13 +33222,16 @@
|
|
|
33155
33222
|
onModelError = _a.onModelError,
|
|
33156
33223
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
33157
33224
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
33225
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
33226
|
+
_h = _a.enableTamperDetection,
|
|
33227
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
33158
33228
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
33159
|
-
|
|
33160
|
-
geolocationEnabled =
|
|
33161
|
-
|
|
33162
|
-
geolocationRequired =
|
|
33163
|
-
|
|
33164
|
-
debugMode =
|
|
33229
|
+
_j = _a.geolocationEnabled,
|
|
33230
|
+
geolocationEnabled = _j === void 0 ? true : _j,
|
|
33231
|
+
_k = _a.geolocationRequired,
|
|
33232
|
+
geolocationRequired = _k === void 0 ? false : _k,
|
|
33233
|
+
_l = _a.debugMode,
|
|
33234
|
+
debugMode = _l === void 0 ? false : _l;
|
|
33165
33235
|
useLanguage(lang);
|
|
33166
33236
|
useDebugLogging(debugMode);
|
|
33167
33237
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -33201,6 +33271,8 @@
|
|
|
33201
33271
|
preferFrontFacingCamera: true,
|
|
33202
33272
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
33203
33273
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
33274
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
33275
|
+
enableTamperDetection: enableTamperDetection,
|
|
33204
33276
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
33205
33277
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
33206
33278
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -33735,18 +33807,21 @@
|
|
|
33735
33807
|
onModelError = _a.onModelError,
|
|
33736
33808
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
33737
33809
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
33810
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
33811
|
+
_g = _a.enableTamperDetection,
|
|
33812
|
+
enableTamperDetection = _g === void 0 ? false : _g,
|
|
33738
33813
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
33739
|
-
|
|
33740
|
-
theme =
|
|
33814
|
+
_h = _a.theme,
|
|
33815
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
33741
33816
|
assets = _a.assets,
|
|
33742
33817
|
classNames = _a.classNames,
|
|
33743
33818
|
colors = _a.colors,
|
|
33744
33819
|
verbiage = _a.verbiage,
|
|
33745
33820
|
geolocationEnabled = _a.geolocationEnabled,
|
|
33746
|
-
|
|
33747
|
-
geolocationRequired =
|
|
33748
|
-
|
|
33749
|
-
debugMode =
|
|
33821
|
+
_j = _a.geolocationRequired,
|
|
33822
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
33823
|
+
_k = _a.debugMode,
|
|
33824
|
+
debugMode = _k === void 0 ? false : _k;
|
|
33750
33825
|
useLanguage(lang);
|
|
33751
33826
|
useDebugLogging(debugMode);
|
|
33752
33827
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -33785,6 +33860,8 @@
|
|
|
33785
33860
|
preferFrontFacingCamera: true,
|
|
33786
33861
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
33787
33862
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
33863
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
33864
|
+
enableTamperDetection: enableTamperDetection,
|
|
33788
33865
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
33789
33866
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
33790
33867
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|
|
@@ -33847,52 +33924,55 @@
|
|
|
33847
33924
|
onModelError = _a.onModelError,
|
|
33848
33925
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
33849
33926
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
33927
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
33928
|
+
_c = _a.enableTamperDetection,
|
|
33929
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
33850
33930
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
33851
33931
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
33852
|
-
|
|
33853
|
-
loadingOverlayMode =
|
|
33932
|
+
_d = _a.loadingOverlayMode,
|
|
33933
|
+
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
33854
33934
|
customOverlayContent = _a.customOverlayContent,
|
|
33855
|
-
|
|
33856
|
-
skipSuccessScreen =
|
|
33857
|
-
|
|
33858
|
-
captureAudio =
|
|
33935
|
+
_e = _a.skipSuccessScreen,
|
|
33936
|
+
skipSuccessScreen = _e === void 0 ? false : _e,
|
|
33937
|
+
_f = _a.captureAudio,
|
|
33938
|
+
captureAudio = _f === void 0 ? false : _f,
|
|
33859
33939
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
33860
|
-
|
|
33861
|
-
minSignaturePadPoints =
|
|
33862
|
-
|
|
33863
|
-
headTrackingDisabled =
|
|
33864
|
-
|
|
33865
|
-
headTrackingBoundaryPercentage =
|
|
33866
|
-
|
|
33867
|
-
headTrackingBoundaryType =
|
|
33868
|
-
|
|
33869
|
-
modelLoadTimeoutMs =
|
|
33870
|
-
|
|
33871
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
33872
|
-
|
|
33873
|
-
restartVideoOnSignaturePadCleared =
|
|
33940
|
+
_g = _a.minSignaturePadPoints,
|
|
33941
|
+
minSignaturePadPoints = _g === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _g,
|
|
33942
|
+
_h = _a.headTrackingDisabled,
|
|
33943
|
+
headTrackingDisabled = _h === void 0 ? false : _h,
|
|
33944
|
+
_j = _a.headTrackingBoundaryPercentage,
|
|
33945
|
+
headTrackingBoundaryPercentage = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _j,
|
|
33946
|
+
_k = _a.headTrackingBoundaryType,
|
|
33947
|
+
headTrackingBoundaryType = _k === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _k,
|
|
33948
|
+
_l = _a.modelLoadTimeoutMs,
|
|
33949
|
+
modelLoadTimeoutMs = _l === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _l,
|
|
33950
|
+
_m = _a.allowSignatureAfterLivenessCheckFailure,
|
|
33951
|
+
allowSignatureAfterLivenessCheckFailure = _m === void 0 ? false : _m,
|
|
33952
|
+
_o = _a.restartVideoOnSignaturePadCleared,
|
|
33953
|
+
restartVideoOnSignaturePadCleared = _o === void 0 ? true : _o,
|
|
33874
33954
|
faceLivenessProps = _a.faceLivenessProps,
|
|
33875
|
-
|
|
33876
|
-
skipLivenessValidation =
|
|
33877
|
-
|
|
33878
|
-
allowManualSelfieCaptureOnLoadingError =
|
|
33955
|
+
_p = _a.skipLivenessValidation,
|
|
33956
|
+
skipLivenessValidation = _p === void 0 ? false : _p,
|
|
33957
|
+
_q = _a.allowManualSelfieCaptureOnLoadingError,
|
|
33958
|
+
allowManualSelfieCaptureOnLoadingError = _q === void 0 ? false : _q,
|
|
33879
33959
|
guidesComponent = _a.guidesComponent,
|
|
33880
|
-
|
|
33881
|
-
showFaceGuideThenSignaturePad =
|
|
33960
|
+
_r = _a.showFaceGuideThenSignaturePad,
|
|
33961
|
+
showFaceGuideThenSignaturePad = _r === void 0 ? false : _r,
|
|
33882
33962
|
minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
|
|
33883
33963
|
minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
|
|
33884
33964
|
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
33885
|
-
|
|
33886
|
-
theme =
|
|
33965
|
+
_s = _a.theme,
|
|
33966
|
+
theme = _s === void 0 ? 'default' : _s,
|
|
33887
33967
|
classNames = _a.classNames,
|
|
33888
33968
|
colors = _a.colors,
|
|
33889
33969
|
verbiage = _a.verbiage,
|
|
33890
33970
|
geolocationEnabled = _a.geolocationEnabled,
|
|
33891
33971
|
geolocationRequired = _a.geolocationRequired,
|
|
33892
|
-
|
|
33893
|
-
debugMode =
|
|
33894
|
-
|
|
33895
|
-
debugShowSamplePoints =
|
|
33972
|
+
_t = _a.debugMode,
|
|
33973
|
+
debugMode = _t === void 0 ? false : _t,
|
|
33974
|
+
_u = _a.debugShowSamplePoints,
|
|
33975
|
+
debugShowSamplePoints = _u === void 0 ? false : _u;
|
|
33896
33976
|
useLanguage(lang);
|
|
33897
33977
|
useDebugLogging(debugMode);
|
|
33898
33978
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -33931,6 +34011,8 @@
|
|
|
33931
34011
|
}, []),
|
|
33932
34012
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
33933
34013
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
34014
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
34015
|
+
enableTamperDetection: enableTamperDetection,
|
|
33934
34016
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
33935
34017
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
33936
34018
|
return {
|
|
@@ -34027,75 +34109,78 @@
|
|
|
34027
34109
|
onUserCancel = _a.onUserCancel,
|
|
34028
34110
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
34029
34111
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
34112
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
34113
|
+
_c = _a.enableTamperDetection,
|
|
34114
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
34030
34115
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
34031
34116
|
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
34032
34117
|
idCaptureProps = _a.idCaptureProps,
|
|
34033
34118
|
faceLivenessProps = _a.faceLivenessProps,
|
|
34034
|
-
|
|
34035
|
-
idCaptureModelsEnabled =
|
|
34036
|
-
|
|
34037
|
-
videoIdCaptureThresholds =
|
|
34119
|
+
_d = _a.idCaptureModelsEnabled,
|
|
34120
|
+
idCaptureModelsEnabled = _d === void 0 ? true : _d,
|
|
34121
|
+
_e = _a.videoIdCaptureThresholds,
|
|
34122
|
+
videoIdCaptureThresholds = _e === void 0 ? defaultVideoIdCaptureThresholds : _e,
|
|
34038
34123
|
readTextPrompt = _a.readTextPrompt,
|
|
34039
|
-
|
|
34040
|
-
readTextTimeoutDurationMs =
|
|
34041
|
-
|
|
34042
|
-
readTextMinReadingMs =
|
|
34043
|
-
|
|
34044
|
-
skipSuccessScreen =
|
|
34045
|
-
|
|
34046
|
-
skipIdCapture =
|
|
34047
|
-
|
|
34048
|
-
skipShowIdCardBack =
|
|
34049
|
-
|
|
34050
|
-
idCaptureLoadingOverlayMode =
|
|
34124
|
+
_f = _a.readTextTimeoutDurationMs,
|
|
34125
|
+
readTextTimeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
34126
|
+
_g = _a.readTextMinReadingMs,
|
|
34127
|
+
readTextMinReadingMs = _g === void 0 ? 10000 : _g,
|
|
34128
|
+
_h = _a.skipSuccessScreen,
|
|
34129
|
+
skipSuccessScreen = _h === void 0 ? false : _h,
|
|
34130
|
+
_j = _a.skipIdCapture,
|
|
34131
|
+
skipIdCapture = _j === void 0 ? false : _j,
|
|
34132
|
+
_k = _a.skipShowIdCardBack,
|
|
34133
|
+
skipShowIdCardBack = _k === void 0 ? false : _k,
|
|
34134
|
+
_l = _a.idCaptureLoadingOverlayMode,
|
|
34135
|
+
idCaptureLoadingOverlayMode = _l === void 0 ? 'default' : _l,
|
|
34051
34136
|
customOverlayContent = _a.customOverlayContent,
|
|
34052
34137
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
34053
|
-
|
|
34054
|
-
idCaptureGuideType =
|
|
34055
|
-
|
|
34056
|
-
idCaptureGuideImages =
|
|
34057
|
-
|
|
34058
|
-
idCapturePortraitGuidesOnMobile =
|
|
34059
|
-
|
|
34060
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
34138
|
+
_m = _a.idCaptureGuideType,
|
|
34139
|
+
idCaptureGuideType = _m === void 0 ? 'fit' : _m,
|
|
34140
|
+
_o = _a.idCaptureGuideImages,
|
|
34141
|
+
idCaptureGuideImages = _o === void 0 ? defaultIdCaptureGuideImages : _o,
|
|
34142
|
+
_p = _a.idCapturePortraitGuidesOnMobile,
|
|
34143
|
+
idCapturePortraitGuidesOnMobile = _p === void 0 ? true : _p,
|
|
34144
|
+
_q = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
34145
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _q === void 0 ? true : _q,
|
|
34061
34146
|
documentEdgeDistancePct = _a.documentEdgeDistancePct,
|
|
34062
34147
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
34063
|
-
|
|
34064
|
-
idDocumentType =
|
|
34065
|
-
|
|
34066
|
-
faceLivenessLoadingOverlayMode =
|
|
34067
|
-
|
|
34068
|
-
disableFaceDetectionWhileAudioCapture =
|
|
34069
|
-
|
|
34070
|
-
disableFaceDetectionWhileAudioCaptureMsDelay =
|
|
34071
|
-
|
|
34072
|
-
silentFallback =
|
|
34073
|
-
|
|
34074
|
-
mergeAVStreams =
|
|
34075
|
-
|
|
34076
|
-
matchOnly =
|
|
34077
|
-
|
|
34078
|
-
theme =
|
|
34079
|
-
|
|
34080
|
-
assets =
|
|
34081
|
-
|
|
34082
|
-
classNames =
|
|
34083
|
-
|
|
34084
|
-
colors =
|
|
34085
|
-
|
|
34086
|
-
verbiage =
|
|
34087
|
-
|
|
34088
|
-
captureSignature =
|
|
34089
|
-
|
|
34090
|
-
captureSignatureVideo =
|
|
34091
|
-
|
|
34092
|
-
captureAdditionalDocuments =
|
|
34093
|
-
|
|
34094
|
-
geolocationEnabled =
|
|
34095
|
-
|
|
34096
|
-
geolocationRequired =
|
|
34097
|
-
|
|
34098
|
-
debugMode =
|
|
34148
|
+
_r = _a.idDocumentType,
|
|
34149
|
+
idDocumentType = _r === void 0 ? 'idCardOrPassport' : _r,
|
|
34150
|
+
_s = _a.faceLivenessLoadingOverlayMode,
|
|
34151
|
+
faceLivenessLoadingOverlayMode = _s === void 0 ? 'default' : _s,
|
|
34152
|
+
_t = _a.disableFaceDetectionWhileAudioCapture,
|
|
34153
|
+
disableFaceDetectionWhileAudioCapture = _t === void 0 ? false : _t,
|
|
34154
|
+
_u = _a.disableFaceDetectionWhileAudioCaptureMsDelay,
|
|
34155
|
+
disableFaceDetectionWhileAudioCaptureMsDelay = _u === void 0 ? 2000 : _u,
|
|
34156
|
+
_v = _a.silentFallback,
|
|
34157
|
+
silentFallback = _v === void 0 ? false : _v,
|
|
34158
|
+
_w = _a.mergeAVStreams,
|
|
34159
|
+
mergeAVStreams = _w === void 0 ? false : _w,
|
|
34160
|
+
_x = _a.matchOnly,
|
|
34161
|
+
matchOnly = _x === void 0 ? false : _x,
|
|
34162
|
+
_y = _a.theme,
|
|
34163
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
34164
|
+
_z = _a.assets,
|
|
34165
|
+
assets = _z === void 0 ? {} : _z,
|
|
34166
|
+
_0 = _a.classNames,
|
|
34167
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
34168
|
+
_1 = _a.colors,
|
|
34169
|
+
colors = _1 === void 0 ? {} : _1,
|
|
34170
|
+
_2 = _a.verbiage,
|
|
34171
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
34172
|
+
_3 = _a.captureSignature,
|
|
34173
|
+
captureSignature = _3 === void 0 ? false : _3,
|
|
34174
|
+
_4 = _a.captureSignatureVideo,
|
|
34175
|
+
captureSignatureVideo = _4 === void 0 ? false : _4,
|
|
34176
|
+
_5 = _a.captureAdditionalDocuments,
|
|
34177
|
+
captureAdditionalDocuments = _5 === void 0 ? [] : _5,
|
|
34178
|
+
_6 = _a.geolocationEnabled,
|
|
34179
|
+
geolocationEnabled = _6 === void 0 ? true : _6,
|
|
34180
|
+
_7 = _a.geolocationRequired,
|
|
34181
|
+
geolocationRequired = _7 === void 0 ? false : _7,
|
|
34182
|
+
_8 = _a.debugMode,
|
|
34183
|
+
debugMode = _8 === void 0 ? false : _8;
|
|
34099
34184
|
useLanguage(lang);
|
|
34100
34185
|
useDebugLogging(debugMode);
|
|
34101
34186
|
var mergedIdCaptureProps = React.useMemo(function () {
|
|
@@ -34226,6 +34311,8 @@
|
|
|
34226
34311
|
captureSignatureVideo: captureSignatureVideo,
|
|
34227
34312
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
34228
34313
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
34314
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
34315
|
+
enableTamperDetection: enableTamperDetection,
|
|
34229
34316
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
34230
34317
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
34231
34318
|
debugMode: debugMode
|
|
@@ -34289,29 +34376,32 @@
|
|
|
34289
34376
|
onModelError = _a.onModelError,
|
|
34290
34377
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
34291
34378
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
34379
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
34380
|
+
_h = _a.enableTamperDetection,
|
|
34381
|
+
enableTamperDetection = _h === void 0 ? false : _h,
|
|
34292
34382
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
34293
|
-
|
|
34294
|
-
captureAdditionalDocuments =
|
|
34295
|
-
|
|
34296
|
-
captureSignature =
|
|
34297
|
-
|
|
34298
|
-
captureSignatureVideo =
|
|
34299
|
-
|
|
34300
|
-
theme =
|
|
34301
|
-
|
|
34302
|
-
assets =
|
|
34303
|
-
|
|
34304
|
-
classNames =
|
|
34305
|
-
|
|
34306
|
-
colors =
|
|
34307
|
-
|
|
34308
|
-
verbiage =
|
|
34309
|
-
|
|
34310
|
-
geolocationEnabled =
|
|
34311
|
-
|
|
34312
|
-
geolocationRequired =
|
|
34313
|
-
|
|
34314
|
-
debugMode =
|
|
34383
|
+
_j = _a.captureAdditionalDocuments,
|
|
34384
|
+
captureAdditionalDocuments = _j === void 0 ? [] : _j,
|
|
34385
|
+
_k = _a.captureSignature,
|
|
34386
|
+
captureSignature = _k === void 0 ? false : _k,
|
|
34387
|
+
_l = _a.captureSignatureVideo,
|
|
34388
|
+
captureSignatureVideo = _l === void 0 ? false : _l,
|
|
34389
|
+
_m = _a.theme,
|
|
34390
|
+
theme = _m === void 0 ? 'default' : _m,
|
|
34391
|
+
_o = _a.assets,
|
|
34392
|
+
assets = _o === void 0 ? {} : _o,
|
|
34393
|
+
_p = _a.classNames,
|
|
34394
|
+
classNames = _p === void 0 ? {} : _p,
|
|
34395
|
+
_q = _a.colors,
|
|
34396
|
+
colors = _q === void 0 ? {} : _q,
|
|
34397
|
+
_r = _a.verbiage,
|
|
34398
|
+
verbiage = _r === void 0 ? {} : _r,
|
|
34399
|
+
_s = _a.geolocationEnabled,
|
|
34400
|
+
geolocationEnabled = _s === void 0 ? true : _s,
|
|
34401
|
+
_t = _a.geolocationRequired,
|
|
34402
|
+
geolocationRequired = _t === void 0 ? false : _t,
|
|
34403
|
+
_u = _a.debugMode,
|
|
34404
|
+
debugMode = _u === void 0 ? false : _u;
|
|
34315
34405
|
useLanguage(lang);
|
|
34316
34406
|
useDebugLogging(debugMode);
|
|
34317
34407
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -34420,6 +34510,8 @@
|
|
|
34420
34510
|
captureSignatureVideo: captureSignatureVideo,
|
|
34421
34511
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
34422
34512
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
34513
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
34514
|
+
enableTamperDetection: enableTamperDetection,
|
|
34423
34515
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
34424
34516
|
debugMode: debugMode
|
|
34425
34517
|
})))));
|
|
@@ -34451,24 +34543,27 @@
|
|
|
34451
34543
|
onUserCancel = _a.onUserCancel,
|
|
34452
34544
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
34453
34545
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
34546
|
+
onExitAfterTamperSealPopped = _a.onExitAfterTamperSealPopped,
|
|
34547
|
+
_c = _a.enableTamperDetection,
|
|
34548
|
+
enableTamperDetection = _c === void 0 ? false : _c,
|
|
34454
34549
|
mediaIntegrityToken = _a.mediaIntegrityToken,
|
|
34455
|
-
|
|
34456
|
-
documents =
|
|
34550
|
+
_d = _a.documents,
|
|
34551
|
+
documents = _d === void 0 ? [] : _d,
|
|
34457
34552
|
aspectRatio = _a.aspectRatio,
|
|
34458
34553
|
cameraFeedMode = _a.cameraFeedMode,
|
|
34459
34554
|
instructions = _a.instructions,
|
|
34460
|
-
|
|
34461
|
-
theme =
|
|
34462
|
-
|
|
34463
|
-
classNames =
|
|
34464
|
-
|
|
34465
|
-
verbiage =
|
|
34466
|
-
|
|
34467
|
-
geolocationEnabled =
|
|
34468
|
-
|
|
34469
|
-
geolocationRequired =
|
|
34470
|
-
|
|
34471
|
-
debugMode =
|
|
34555
|
+
_e = _a.theme,
|
|
34556
|
+
theme = _e === void 0 ? 'default' : _e,
|
|
34557
|
+
_f = _a.classNames,
|
|
34558
|
+
classNames = _f === void 0 ? {} : _f,
|
|
34559
|
+
_g = _a.verbiage,
|
|
34560
|
+
verbiage = _g === void 0 ? {} : _g,
|
|
34561
|
+
_h = _a.geolocationEnabled,
|
|
34562
|
+
geolocationEnabled = _h === void 0 ? true : _h,
|
|
34563
|
+
_j = _a.geolocationRequired,
|
|
34564
|
+
geolocationRequired = _j === void 0 ? false : _j,
|
|
34565
|
+
_k = _a.debugMode,
|
|
34566
|
+
debugMode = _k === void 0 ? false : _k;
|
|
34472
34567
|
useLanguage(lang);
|
|
34473
34568
|
useDebugLogging(debugMode);
|
|
34474
34569
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
@@ -34498,6 +34593,8 @@
|
|
|
34498
34593
|
preferIphoneContinuityCamera: true,
|
|
34499
34594
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
34500
34595
|
onCameraTamperingDetected: onCameraTamperingDetected,
|
|
34596
|
+
onExitAfterTamperSealPopped: onExitAfterTamperSealPopped,
|
|
34597
|
+
enableTamperDetection: enableTamperDetection,
|
|
34501
34598
|
mediaIntegrityToken: mediaIntegrityToken,
|
|
34502
34599
|
classNames: classNames === null || classNames === void 0 ? void 0 : classNames.cameraStoreProvider,
|
|
34503
34600
|
verbiage: verbiage === null || verbiage === void 0 ? void 0 : verbiage.cameraStoreProvider
|